Switch to DuckDuckGo Search
   July 3, 2014  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >

Toggle Join/Part | bottom
[00:00:00] <linagee> djam90: weird. can you go here please? http://www.whatsmyuseragent.com/ I'm interesting in your Android version (4.4?) and the WebKit version.
[00:00:04] <djam90> the Note 3 was also kitkat
[00:00:07] <linagee> ah, 4.4?
[00:00:08] <robdubya> really the only reason to learn Obj-C is native iOS apps. So if you're learning it for that reason, the whole point of swift is to be able to accomplish the same thing with way less cruft and learning curve vs ObjC
[00:00:09] *** jsoverson has joined #angularjs
[00:00:12] <djam90> yep
[00:00:15] <djam90> both devices 4.4
[00:00:21] *** kroogs has joined #angularjs
[00:00:21] <linagee> djam90: do you know what WebKit version?
[00:00:22] <djam90> i have a jellybean tablet too
[00:00:25] <djam90> 1sec
[00:00:27] <marcospgp> Found this on some rambling post. Quite funny "The learning cycle of web frameworks is roughly this; - Get "Hello World" out. - Put "Hello Computer" in. - Judge harshly and proclaim yourself an expert.
[00:00:41] *** timelf123 has quit IRC
[00:01:10] <djam90> webkit 534.30
[00:01:17] <djam90> android 4.4.2
[00:01:21] <djam90> htc one M8
[00:01:23] *** jsoverson has quit IRC
[00:01:36] <robdubya> uwotm8
[00:02:05] *** jsoverson has joined #angularjs
[00:02:06] <linagee> djam90: mine that its not working on is an S4, 4.4.2, WebKit 537.36
[00:02:11] <djam90> and my galaxy note 3 is 4.4.2 with webkit 537.36
[00:02:21] *** aslate has quit IRC
[00:02:23] <linagee> weird... :(
[00:02:49] <djam90> i have firefox too on my note 3
[00:03:04] <linagee> strangely, I didn't have the problem I'm mentioning on firefox
[00:03:12] *** andkan_ has joined #angularjs
[00:03:13] *** Emperor_Earth__ has joined #angularjs
[00:03:14] *** Emperor_Earth_ has quit IRC
[00:03:17] <djam90> but you did on chrome?
[00:03:19] *** jsoverson has quit IRC
[00:03:33] <linagee> djam90: on chrome and on Android Browser. (both the same WebKit version)
[00:03:48] <djam90> hmmm
[00:03:50] <jaime> marcospgp, you may want to check a pre defined coding layout
[00:03:52] <linagee> djam90: I've gone crazy on this problem and narrowed it down to the event handler being called twice for each keyup... :(
[00:03:59] *** jsoverson has joined #angularjs
[00:04:07] <linagee> djam90: but that doesn't happen on the desktop for whatever reason.
[00:04:10] *** walden is now known as walden|afk
[00:04:10] <jaime> probably the enterprise template that comes in latest yeoman
[00:04:12] <djam90> have you hooked up to chrome dev tools? is there anything there that might shed light?
[00:04:22] <jaime> that will surely get you started quickly
[00:04:29] *** terrykfwong has quit IRC
[00:04:30] <jaime> and you can learn from it as you move forward
[00:04:34] <linagee> djam90: the deal where you can remote debug using Chrome? yep. tried that.
[00:04:40] <djam90> yeah
[00:04:41] *** KushS has quit IRC
[00:04:46] <linagee> djam90: added a crapload of console.logs and still haven't gotten anywhere.
[00:04:53] <Cixis> is anything binding the event twice?
[00:05:02] <robdubya> nickeddy the cheers from the audience in this vid tell you alllll you need to know about us long-suffering Obj-C develoeprs
[00:05:04] <robdubya> http://www.youtube.com/watch?v=w87fOAG8fjk&list=PLxwBNxx9j4PUPPcHVrrCHRPmtrsA_Tmzq
[00:05:11] *** kroogs has quit IRC
[00:05:12] *** SkywardCKO has quit IRC
[00:05:14] *** jsoverson has quit IRC
[00:05:17] *** john41 has quit IRC
[00:05:22] *** FunnyLookinHat has quit IRC
[00:05:29] <linagee> djam90: started to even play around with using the "debugger;" call. quite nifty, but no closer. both desktop and android have the same .bind calls.
[00:05:34] <jaime> I started with that, but later moved to ng boilerplate template which is just a git repo that you pull and have an opinionated layout
[00:05:40] <robdubya> linagee when you have a sec, you should DEF watch that
[00:05:54] *** jsoverson has joined #angularjs
[00:05:59] <linagee> djam90: at first I thought it was getting a double bind call. and maybe it still is. maybe there's some weird race condition happening.
[00:06:01] <jaime> ngbp -> https://github.com/ngbp/ngbp
[00:06:08] <linagee> robdubya: what is it?
[00:06:14] <djam90> marcospgp, my learning cycle... check out framework, do hello world, change it to hello universe, try to build full application, mess it up, rewrite it 99999 times, get stuck on a jQuery carousel, annoy robdubya, plan to give up on Angular but continue to build new apps anyway
[00:06:15] <Cixis> usually events being called twice are the result of double binds
[00:06:23] <robdubya> apple introducing swift
[00:06:26] <robdubya> linagee ^
[00:06:28] <linagee> nice thanks you
[00:06:29] *** texinwien has quit IRC
[00:06:32] *** payomdousti has quit IRC
[00:06:51] *** tomzx is now known as tomzx`afk
[00:06:58] *** sloria has joined #angularjs
[00:07:03] *** bullicon has quit IRC
[00:07:10] *** jsoverson has quit IRC
[00:07:14] <marcospgp> jaime: thanks a lot, I had bookmarked ng boilerplate already
[00:07:23] <robdubya> linagee its been a joy so far to use
[00:07:26] <marcospgp> jaime: but I can't really do a lot with it if I don't understand the framework yet
[00:07:41] <robdubya> and the playground is the fucking coolest thing i've ever used when coding
[00:07:41] <juan_> o_o
[00:07:46] <marcospgp> djam90: ahah nice
[00:07:47] <juan_> Im ilegal
[00:07:51] *** jsoverson has joined #angularjs
[00:07:56] *** zanea has quit IRC
[00:08:00] *** mikeerickson has quit IRC
[00:08:16] *** ekinmur has quit IRC
[00:08:26] *** pkayfire_ has quit IRC
[00:08:40] *** benjf has quit IRC
[00:09:03] *** ngbot has joined #angularjs
[00:09:03] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/ZT7ilA
[00:09:03] <ngbot> angular.js/master c90cefe Caitlin Potter: feat(input): support constant expressions for ngTrueValue/ngFalseValue...
[00:09:03] *** ngbot has left #angularjs
[00:09:06] *** jsoverson has quit IRC
[00:09:09] <jaime> marcospgp: sure, we all begin like that, I recommend check the readme files that you can find in the different directories in ngbp, they have done a great job explaining why the separation and how it helps you to keep things organized
[00:09:20] *** bullicon has joined #angularjs
[00:09:22] *** pkayfire has joined #angularjs
[00:09:24] *** encryptd_fractl has quit IRC
[00:09:39] *** boptop has joined #angularjs
[00:09:46] *** jsoverson has joined #angularjs
[00:09:57] *** aesinv`w has quit IRC
[00:09:58] *** Vinnyceptr has quit IRC
[00:10:17] <marcospgp> jaime: thanks I will
[00:11:01] *** jsoverson has quit IRC
[00:11:17] *** sal1191 has joined #angularjs
[00:11:18] *** sigurding has quit IRC
[00:11:37] *** Asiajey has quit IRC
[00:11:41] *** jsoverson has joined #angularjs
[00:12:21] *** Vinnyceptr has joined #angularjs
[00:12:56] *** jsoverson has quit IRC
[00:13:36] *** jsoverson has joined #angularjs
[00:13:51] *** darrin has joined #angularjs
[00:14:14] *** pkayfire has quit IRC
[00:14:19] *** nezt_ has joined #angularjs
[00:14:25] *** jonnybro has quit IRC
[00:14:33] *** yoshokatana has quit IRC
[00:14:52] *** jsoverson has quit IRC
[00:14:55] *** thomasreggi has quit IRC
[00:15:03] *** batdorf has quit IRC
[00:15:13] *** sonofdirt has quit IRC
[00:15:31] *** jsoverson has joined #angularjs
[00:15:42] *** cisox_ is now known as cisox_away
[00:15:58] *** sonofdirt has joined #angularjs
[00:16:06] *** InezK is now known as InezK_away
[00:16:16] *** tmrudick has quit IRC
[00:16:21] *** hswolff has quit IRC
[00:16:25] *** mspier is now known as mspier_off
[00:16:38] *** cisox_away has quit IRC
[00:16:47] *** jsoverson has quit IRC
[00:17:27] *** jsoverson has joined #angularjs
[00:17:35] *** rodr1go_ is now known as rodr1go
[00:17:44] *** rodr1go has quit IRC
[00:17:44] *** rodr1go has joined #angularjs
[00:18:02] *** InezK_away is now known as InezK
[00:18:29] *** benjf has joined #angularjs
[00:18:30] *** shackleford has quit IRC
[00:18:36] *** juan_ has quit IRC
[00:18:40] *** darrin has quit IRC
[00:18:55] *** toors has quit IRC
[00:19:30] *** dhcar is now known as dhcar_AFK
[00:19:39] *** tmrudick has joined #angularjs
[00:19:45] *** bullicon has quit IRC
[00:20:03] *** sonofdirt has quit IRC
[00:20:21] *** jaime has quit IRC
[00:20:49] *** arizzo has joined #angularjs
[00:21:28] <linagee> djam90: I just tried google voice's input. (the whole speech to text thing) I just spoke one number. and only one number appeared.....
[00:21:38] <djam90> how bizarre!
[00:21:51] <linagee> djam90: I think there is some weirdness with the Samsung onscreen keyboard maybe. I think my next test will be with the Android simulator
[00:21:55] *** faviouz has joined #angularjs
[00:22:08] <djam90> I use Swiftkey :P
[00:22:15] <djam90> HTC One M8 used the HTC keyboard
[00:22:20] *** tmrudick has quit IRC
[00:22:21] <cthrax> +1 for Swiftkey
[00:23:22] *** ledonk has joined #angularjs
[00:23:35] *** sloria has quit IRC
[00:23:43] *** Milanito has quit IRC
[00:23:49] *** nanoyak has quit IRC
[00:23:59] *** imehesz has quit IRC
[00:24:01] <linagee> robdubya: I just saw this in a headline: "Apple's Swift is Great, but Objective-C is not Going Anywhere"
[00:24:03] *** zwacky has quit IRC
[00:24:24] *** OddDuck has joined #angularjs
[00:24:55] <robdubya> well yeah, they're not going to drop the entire language before they even release the new one
[00:25:11] <robdubya> its quite clear though that this is the direction they want new iOS devs to go
[00:25:13] *** nodweber has quit IRC
[00:25:36] *** rkalfane has quit IRC
[00:25:44] *** andkan_ has quit IRC
[00:25:52] <caitp> are they even supporting it on lapmacs and deskmacs?
[00:26:06] <caitp> i assume yes, but I haven't inquired
[00:26:21] *** andkan_ has joined #angularjs
[00:26:30] <robdubya> ya
[00:26:38] <robdubya> trashcanmacs too
[00:26:41] *** rkalfane has joined #angularjs
[00:27:10] *** payomdousti has joined #angularjs
[00:27:21] <robdubya> linagee if you had some previous ObjC experience it might be different story, but if you're entirely new to the platform, i reckon at least try it out
[00:27:28] <robdubya> http://i.imgur.com/UDKXHkF.png
[00:27:31] <linagee> djam90: that's going to drive me crazy!
[00:27:40] <linagee> djam90: I just switched to "Google Keyboard"
[00:27:44] <robdubya> i really like the playground editor. its like plunker for iOS
[00:27:48] <linagee> djam90: ... no problems at all now ....
[00:28:06] <djam90> how mental! what keyboatd DID you have
[00:28:16] <linagee> Swype or whatever its called
[00:28:22] *** xanadu has quit IRC
[00:28:36] *** jmichaelward has quit IRC
[00:28:41] <linagee> djam90: the default for Samsung S4. (so its not like I can just ignore it as some weird keyboard, a lot of people use this one.)
[00:28:43] *** m0t0r has quit IRC
[00:28:58] <cthrax> In angular-dart is there an equivalent to the angularjs run() on module?
[00:29:08] <robdubya> fuckin swype on iOS. what is the world coming to
[00:29:17] <cthrax> I'm attempting to port an app from angularjs atm
[00:29:32] <cthrax> the whole deprecated @controller thing is confusing
[00:29:58] <cthrax> but that's separate from my question
[00:30:03] *** scmx has quit IRC
[00:30:15] *** atomical has quit IRC
[00:30:23] *** jeremymarc has joined #angularjs
[00:30:28] *** Marcogomesweb has joined #angularjs
[00:30:43] <robdubya> caitp mind if i ask a ng2 question?
[00:30:46] *** andkan_ has quit IRC
[00:31:05] <caitp> i may or may not be able to answer
[00:31:05] *** josh-k has joined #angularjs
[00:31:13] <robdubya> everything seems to be hunky dory with my tests until i use an @Anything annotation anyhwere
[00:31:13] *** jamto11_ has joined #angularjs
[00:31:34] *** nanoyak has joined #angularjs
[00:31:35] <caitp> you need to import annotations, iirc
[00:31:38] <caitp> it's kinda dumb
[00:31:46] <robdubya> then it blows the fuck up. with the karma stuff, do i need to build (via grunt) and THEN run karma with the preprocessors?
[00:31:48] *** sacho has quit IRC
[00:31:53] <caitp> like, `import {Inject] from di`
[00:31:58] <caitp> derp typo
[00:32:00] <robdubya> or should it work with the pre-processors
[00:32:11] <nezt_> Hey all, I'm attempting to create web dashboard that displays mongodb in like a spreadsheet form, and maybe some other views. what would be a good front end tool ? dojo? angular?elm?
[00:32:28] *** bayousoft has quit IRC
[00:32:32] <linagee> djam90: I think its just called "Samsung Keyboard". (so now I've got to play with all the settings in there, lol.)
[00:32:44] <nezt_> like i pull data from a mongodb based on search parameters, display it in a grid with maybe a graph as well or something
[00:33:19] <marcospgp> nezt_: Well this is the angularjs irc channel so we might be a little biased
[00:33:34] *** jamto11 has quit IRC
[00:33:34] <postitnote> nezt_: I am not biased. Use angular :)
[00:33:42] <robdubya> fuckign elm
[00:33:52] <robdubya> i need to stop going into nodejs
[00:33:52] *** cthrax_ has joined #angularjs
[00:33:56] *** krawchyk has joined #angularjs
[00:34:29] *** krawchyk has quit IRC
[00:34:30] *** arrty has quit IRC
[00:34:38] <linagee> djam90: WOW. got it!!!
[00:34:51] *** AngularUI has joined #angularjs
[00:34:52] <AngularUI> [ng-grid] hugotox opened pull request #1278: Fixed error “Cannot read property ‘slice’ of undefined” (master...master) http://git.io/3-BFpg
[00:34:52] *** AngularUI has left #angularjs
[00:34:57] <linagee> djam90: after playing with code for hours and hours and only now finding out its a "mobile keyboard" problem. *sigh*
[00:35:03] *** arrty has joined #angularjs
[00:35:09] <djam90> hahaha did you fix it?????
[00:35:12] *** Nijikokun has quit IRC
[00:35:14] <linagee> djam90: settings on Samsung Keyboard, uncheck "Predictice text"
[00:35:17] <linagee> what a POS
[00:35:21] <djam90> oh dear !!!
[00:35:29] <postitnote> nezt_: Also, check out Restangular.
[00:35:34] <linagee> djam90: how weird, never would have expected that to double type everything
[00:35:34] <robdubya> samsung? POS? what a surprise!
[00:35:54] <djam90> hey! my Galaxy Note 3 is EPIC
[00:36:07] <linagee> djam90: one of the crazy parts? I ran a .bind jQuery test for keyup, it runs fine. no double keys.
[00:36:26] <djam90> Samdung!
[00:36:41] <postitnote> robdubya: Do you have a node problem? If not, let me enjoy this brief moment where I have deluded myself into thinking I can help YOU for a change.
[00:36:58] <sal1191> i think he meant the channel
[00:37:00] <robdubya> postitnote no, my problem is hanging around in #nodejs
[00:37:14] <linagee> djam90: still not sure how I will fix the problem now. :( don't use ui-mask? *sigh*
[00:37:14] <postitnote> Oh haha…channel not platform.
[00:37:29] *** dcherman has quit IRC
[00:37:34] *** cthrax has quit IRC
[00:37:35] <postitnote> I spent a solid year in there I think.
[00:37:40] *** pkayfire has joined #angularjs
[00:37:43] <robdubya> "javascript sucks, use <some other language that compiles to javascript> instead!"
[00:37:55] <sal1191> meh
[00:38:35] <oniijin> js2js ftw
[00:38:48] <postitnote> robdubya: You're giving me flashbacks to the semicolon argument of 2012.
[00:39:02] *** cthrax_ is now known as cthrax
[00:39:06] <linagee> robdubya: coffeescript! /s
[00:39:14] <linagee> robdubya: but coffeescript sucks too
[00:39:14] <sal1191> cant do function declarations in coffeescript without backquotes
[00:39:16] <robdubya> haskell/elm/go/etc do it better
[00:39:22] *** boptop has quit IRC
[00:39:22] *** arrty has quit IRC
[00:39:27] <sal1191> interestingly enough
[00:39:30] <djam90> linagee, have to shoot now, try google the ui-mask issue, and maybe code around it somehow, not sure what else you can do, night and thanks everyone for help !!
[00:39:32] *** djam90 has quit IRC
[00:39:35] <nezt_> Does anyone have an example of a grid or spreadsheet created in elm
[00:39:48] <robdubya> ughghghgh
[00:39:48] <linagee> robdubya: coffeescript sucks because its like having to learn a whole new language, you get very little benefit other than obfuscating your code from people who know Javascript only.
[00:39:50] *** qwerty has joined #angularjs
[00:39:55] *** krawek has quit IRC
[00:40:00] <robdubya> linagee that's how i feel about pretty much all those languages
[00:40:14] *** qwerty is now known as Guest96902
[00:40:17] <postitnote> linagee: +1
[00:40:25] *** UniBot has joined #angularjs
[00:40:32] <robdubya> es6 solves most of my truly annoying things, and its still... js
[00:40:42] <robdubya> (wacky annotations notwithstanding)
[00:40:46] <linagee> the thing I hate most about coffeescript is that trendy people use it
[00:40:48] <snapwich> i despise webpages that give javascript examples in coffeescript
[00:40:52] <postitnote> over semicolons: https://news.ycombinator.com/item?id=3842713 aye.
[00:40:54] <sal1191> coffeescript was fun to use with backbone
[00:41:02] <sal1191> class IndexView extends Backbone.View
[00:41:12] <sal1191> but uh
[00:41:18] <nezt_> Does anyone have a good example of a spreadsheet in angular .js or elm
[00:41:24] <sal1191> the guy who made coffeescript made backbone, so maybe thats why
[00:41:39] <linagee> sal1191: but wait, this is #angularjs. backbone sucks. :)
[00:41:50] <sal1191> oh yes thats why im here not there
[00:42:03] *** Marcogomesweb has quit IRC
[00:42:03] *** dc_ has quit IRC
[00:42:16] *** earthquake has joined #angularjs
[00:42:18] <Guest96902> what is the reason for having both min and ng-minlength? https://docs.angularjs.org/api/ng/input/input%5Bnumber%5D
[00:42:22] <sal1191> they dont even have an irc channel
[00:42:33] <linagee> sal1191: no? lol. what crap.
[00:42:42] <snurfery> Guest96902: minlength is the length in characters, min is numeric value
[00:42:46] *** mrogne has joined #angularjs
[00:42:47] <sal1191> theres not enough people in either #backbone or #backbonejs to tell if they're even active
[00:42:59] <sal1191> i once went over to #backbone and asked if we were javascripters or spinal cord aficionados
[00:43:03] <robdubya> postitnote i dont want to read that
[00:43:06] <robdubya> its going to anny me
[00:43:15] <robdubya> i'm 10 posts in and hate everybody already
[00:43:17] <snurfery> <input name=age min=18> vs <input name=email ng-minlength=5>
[00:43:20] *** dcherman has joined #angularjs
[00:43:27] <postitnote> It's like idiots who insist on comma-first in arrays.
[00:43:30] * postitnote hides
[00:43:42] *** dhcar_AFK is now known as dhcar
[00:43:54] <Guest96902> snurfrey u mean if i write min=3 and this will ngMinimumLength="three" ?
[00:44:09] *** jdcasey has quit IRC
[00:44:09] *** BlinkyBill has joined #angularjs
[00:44:11] <snurfery> no min is comparing numbers
[00:44:16] <snurfery> like 3 is less than 4
[00:44:26] <snurfery> min-length is the length in characters
[00:44:35] <postitnote> robdubya: You don't want to read the longest thread in github history? https://github.com/twbs/bootstrap/issues/3057
[00:44:40] <snurfery> like "bob" has a length of 3, "foobar1000" has a length of 10
[00:44:52] *** intellix has left #angularjs
[00:45:03] *** ledonk has quit IRC
[00:45:05] <postitnote> I think that was also the day I learned what "bike shedding" was
[00:45:09] <robdubya> postitnote that's nothing. check out this gem from the sails repo https://github.com/balderdashy/sails/issues/599
[00:45:20] *** faviouz has quit IRC
[00:45:23] *** ngbot has joined #angularjs
[00:45:23] <ngbot> [angular.js] juliemr pushed 1 new commit to master: http://git.io/miPKSA
[00:45:23] <ngbot> angular.js/master 63e8952 Julie Ralph: chore(e2e): update protractor to 1.0.0-rc2 and add more logging...
[00:45:23] *** ngbot has left #angularjs
[00:45:24] *** dcherman2 has joined #angularjs
[00:45:46] <Guest96902> ok thanks for explanation
[00:45:52] *** JrDeveloper has joined #angularjs
[00:45:57] *** cpciv has joined #angularjs
[00:46:28] <sal1191> is sails.js something i should take seriously now?
[00:46:32] *** andizzle has joined #angularjs
[00:46:33] <nezt_> Is angular frequently used with expressjs
[00:46:39] *** artisangoose has quit IRC
[00:46:41] <sal1191> i read something about it a while ago
[00:46:50] *** ustunozg_ has quit IRC
[00:47:01] *** discipolo__ has quit IRC
[00:47:05] *** DrMabuse has quit IRC
[00:47:12] <sal1191> it looks like its just a port of the rails conventions to node
[00:47:14] <robdubya> sal1191 i certainly do, but i'm a bit biased
[00:47:18] <postitnote> nezt_: I don't think angular cares what the backend is. Just concentrate on making your backend a nice REST service that would be a joy for others to use :)
[00:47:31] *** DrMabuse has joined #angularjs
[00:47:35] <sal1191> is it cleaner than writing my app the old way, using express?
[00:47:46] *** jsoverson has quit IRC
[00:48:01] <robdubya> its "just" an opionated structure for express (it uses express)
[00:48:19] <robdubya> plus some socket.io coolness
[00:48:23] <sal1191> im lookin at it now
[00:48:27] *** jsoverson has joined #angularjs
[00:48:29] *** jdj_dk_ has joined #angularjs
[00:48:37] *** JrDeveloper has quit IRC
[00:48:44] <sal1191> socket.io is just included?
[00:49:04] *** dcherman has quit IRC
[00:49:04] <sal1191> or do you use it to serve content
[00:49:42] *** jsoverson has quit IRC
[00:50:05] <Guest96902> git it
[00:50:05] <Guest96902> thanks
[00:50:10] *** Guest96902 has quit IRC
[00:50:25] *** jsoverson has joined #angularjs
[00:50:40] <robdubya> sal1191 it provides a REST API, which you can use via http, or over socket.io
[00:50:47] *** sheerun has quit IRC
[00:50:49] <robdubya> if you use socket.io, you get notified of changes to models
[00:50:54] *** endash has quit IRC
[00:50:57] <sal1191> ohh that is cool
[00:51:08] <nezt_> Is there any reason to use Ember over Angular
[00:51:22] <snapwich> shouldn't you be asking that in the ember channel
[00:51:23] <snapwich> ?
[00:51:36] <robdubya> sal1191 which plus https://github.com/balderdashy/angularSails (which i wrote) makes for pretty slick angular apps
[00:51:36] *** kas84 has left #angularjs
[00:51:37] *** jsoverson has quit IRC
[00:51:57] *** tekky has quit IRC
[00:51:57] *** DrMabuse has quit IRC
[00:52:08] <robdubya> i really need to pull off warning there
[00:52:16] <sal1191> this is cool
[00:52:17] *** jsoverson has joined #angularjs
[00:53:01] <robdubya> docs balderdashy.github.io/angularSails/#/api/ngsails.$sailsSocket
[00:53:03] *** mindlace has joined #angularjs
[00:53:08] *** jdj_dk_ has quit IRC
[00:53:28] *** rtpg has joined #angularjs
[00:53:32] *** jsoverson has quit IRC
[00:53:37] <snurfery> nezt_: if it's already written in ember and you don't want to spend a year reimplementing it
[00:53:47] <snurfery> that'd be a great reason
[00:53:56] <sal1191> so you use the $sailsSocket service to make requests like you would with $http?
[00:53:59] *** sdouglas has quit IRC
[00:54:07] <sal1191> using the same routes?
[00:54:14] *** jsoverson has joined #angularjs
[00:54:34] *** sdouglas has joined #angularjs
[00:54:47] *** rideau has joined #angularjs
[00:56:12] *** blueadept has quit IRC
[00:56:21] *** andkan_ has joined #angularjs
[00:56:27] *** night-owl has quit IRC
[00:56:46] *** Yahkob has quit IRC
[00:56:47] *** blueadept has joined #angularjs
[00:57:07] *** treeface has joined #angularjs
[00:57:53] <snurfery> sup blueadept
[00:57:54] *** colinbits has quit IRC
[00:57:59] *** Darkingz has joined #angularjs
[00:58:07] *** ustunozgur has joined #angularjs
[00:58:15] *** sdouglas_ has joined #angularjs
[00:58:30] <blueadept> yo
[00:58:31] *** Darkingz has left #angularjs
[00:58:34] *** MuffinMan` has quit IRC
[00:58:55] *** tomzx`afk is now known as tomzx
[00:59:12] <snurfery> just watched some youtube vid on frontend dev practices and the dude introduced me to localtunnel.me
[00:59:15] *** sdouglas has quit IRC
[00:59:18] <snurfery> looks pretty smooth
[00:59:34] <snurfery> no more ridiculous ssh tunnels everywhere
[00:59:47] <sal1191> oh that is cool
[01:00:04] <sal1191> no more ssh -g haha
[01:00:22] *** andizzle has quit IRC
[01:00:23] *** DrShoggoth has quit IRC
[01:00:48] *** Pookz has joined #angularjs
[01:00:54] <Foxandxss> localtunnel is half time down or hell slow
[01:00:59] *** kroogs has joined #angularjs
[01:01:06] *** brownbathrobe has joined #angularjs
[01:01:26] <snurfery> is it?
[01:01:30] <snurfery> aw, that sucks
[01:01:34] *** Ymesio has quit IRC
[01:01:47] <Foxandxss> at least was my experience
[01:01:49] <snurfery> oh well, ssh-tunnels work perfectly fine for me
[01:01:53] *** dbouwman_ has joined #angularjs
[01:01:55] *** aniM has joined #angularjs
[01:01:58] <snurfery> maybe I'll just make a little wrapper around it =)
[01:02:01] <snurfery> around them*
[01:02:14] *** earthquake has quit IRC
[01:02:20] *** Danny-Mcc has quit IRC
[01:03:22] <robdubya> sal1191 yea
[01:03:48] <brownbathrobe> hey folks, looking for a little directive advice...
[01:03:53] *** armdale has quit IRC
[01:04:18] <brownbathrobe> i've got a bunch of buttons and they each need to open a modal when clicked
[01:04:25] *** earthquake has joined #angularjs
[01:04:26] *** mikaeldice has joined #angularjs
[01:04:37] <brownbathrobe> right now i've got a directive on each button that has a controller which opens the appropriate modal
[01:04:52] *** dbouwman has quit IRC
[01:05:10] *** morenoh149 has quit IRC
[01:05:12] <nezt_> Does anyone have an argument of why angular is better than ember
[01:05:33] <snurfery> google does
[01:05:34] <robdubya> snurfery i use this https://ngrok.com/
[01:05:37] <robdubya> quite like it
[01:05:46] *** kroogs has quit IRC
[01:05:53] *** Yahkob has joined #angularjs
[01:06:07] <Foxandxss> nezt_: no, make it yourself
[01:06:08] <robdubya> nezt_ http://www.youtube.com/watch?v=jScLjUlLTLI if you have 20 minutes of your life to burn
[01:06:21] *** dbouwman_ has quit IRC
[01:06:34] *** rho has quit IRC
[01:06:38] <nezt_> robdubya: ty
[01:07:10] <Foxandxss> robdubya: that stinks ember only
[01:07:10] *** Jdubs_ has joined #angularjs
[01:07:23] <robdubya> Foxandxss they talk about angular just as much as ember
[01:07:30] <Foxandxss> yeah, but they are from ember
[01:07:32] <Foxandxss> not from angular
[01:07:41] <Foxandxss> they are never partial
[01:07:42] <Foxandxss> never
[01:07:42] *** jamto11_ has quit IRC
[01:07:53] *** xavia has quit IRC
[01:08:04] <robdubya> i like that talk, because i dont think anyhting they say is *wrong*
[01:08:07] *** juanlas has quit IRC
[01:08:24] *** mspier_off is now known as mspier
[01:09:02] *** dk01 has quit IRC
[01:09:22] *** Jdubs has quit IRC
[01:09:32] *** ustunozgur has quit IRC
[01:09:58] *** recurrence has joined #angularjs
[01:10:02] *** ustunozgur has joined #angularjs
[01:10:03] <robdubya> they think angular sucks because its too flexible, which is the whole reason i like it
[01:10:10] <recurrence> it's not too flexible
[01:10:13] <recurrence> perl is too flexible :D
[01:10:13] *** joshua___ has joined #angularjs
[01:10:30] *** jr3 has quit IRC
[01:10:40] *** mspier is now known as mspier_off
[01:10:48] *** chrisshattuck has quit IRC
[01:10:52] <moogumbo> I have 2 different JSON endpoints that I'd like to fire off requests to in parallel; when either of them returns, I need to recalculate some data. What's a sane way to architect this with Angular?
[01:11:11] <robdubya> write a couple of services
[01:11:21] <moogumbo> Right now I have two different custom services, one for each endpoint; each one depends on $http and fires off the request
[01:11:30] <moogumbo> But what's the best way to tie them together?
[01:11:34] <robdubya> a 3rd service
[01:11:39] <robdubya> which injects them bith
[01:12:06] *** anth0ny_ has quit IRC
[01:12:13] *** atomical has joined #angularjs
[01:12:35] *** evilaliv3 has joined #angularjs
[01:12:54] <moogumbo> Hm... but how to get the 3rd service to recalculate when the two DataServices get fresh data from the server?
[01:13:28] *** mspier_off is now known as mspier
[01:13:30] <recurrence> I have an ng-repeat, in that scope I want to embed a variable from in the ng-repeat variable to be available to the template. Is there a way to do that in html?
[01:13:31] <moogumbo> Do I have to use $scope.$watch?
[01:13:46] *** RedOrangeZ has quit IRC
[01:13:47] <robdubya> moogumbo no, probably not, but this is a broad question
[01:13:54] *** adborden has quit IRC
[01:14:22] *** adborden has joined #angularjs
[01:14:31] <moogumbo> robdubya: Yeah, just looking for some pointers/heuristics on how to go about it
[01:14:31] *** brownbathrobe has quit IRC
[01:14:38] *** adborden has quit IRC
[01:14:43] *** zemanel has quit IRC
[01:14:44] *** DrShoggoth has joined #angularjs
[01:14:48] *** klaut has quit IRC
[01:15:01] <moogumbo> In the Backbone code I'm replacing, I had done it with $.when(promiseOne, promiseTwo) where both those promises were from the $.ajax call
[01:15:03] <robdubya> store the "calculated" data in the 3rd service
[01:15:21] <robdubya> and then when the promise comes back from the request, you can recalculate inside
[01:15:29] <marcospgp> Services are just global objects
[01:15:31] <marcospgp> is this true?
[01:15:33] *** adborden has joined #angularjs
[01:15:39] <marcospgp> why are things in angular so overly complicated?
[01:15:44] <robdubya> not exactly
[01:15:51] <robdubya> they're singletons, but not global
[01:15:53] <moogumbo> I see, so it is basically the same idea... I can do it with $scope.$watch or just the promise returned by $http.get ?
[01:16:03] <Foxandxss> marcospgp: it is not complicated
[01:16:09] <marcospgp> hm i got that from here http://www.objectpartners.com/2013/08/09/i-wish-i-knew-then-what-i-know-now-life-with-angularjs/
[01:16:15] <robdubya> moogumbo $watch doesn't really make sense - you already have a "trigger"
[01:16:22] <robdubya> (the promise coming back)
[01:16:25] *** TorpedoS_ has joined #angularjs
[01:16:31] *** TorpedoSkyline has quit IRC
[01:16:44] *** Shrooms has quit IRC
[01:16:49] <Foxandxss> marcospgp: dont trust bloggers, trust the source code
[01:17:02] <marcospgp> and irc :p
[01:17:23] <Cixis> also the past tense of "bind" is "bound" not "binded"
[01:17:24] <Foxandxss> not even IRC
[01:17:40] <Cixis> as well as the adverb
[01:18:01] *** DrMabuse has joined #angularjs
[01:18:10] <Foxandxss> I can say that I am an angular expert, but if my word says something and the source code something different, trust the source :)
[01:18:11] *** ecool has quit IRC
[01:18:33] *** aniM has quit IRC
[01:19:25] <moogumbo> robdubya: So the DataService should expose the promise as well as the data?
[01:20:26] *** discipolo has joined #angularjs
[01:21:18] *** RobinBAwesome has quit IRC
[01:21:53] *** lucasefe has quit IRC
[01:22:24] <moogumbo> Right now things are a lot like this http://plnkr.co/edit/LnK6weUufD0gVYSKwQeP?p=preview and in the controllers, I'm just doing $scope.people = DataService.people; $scope.$watchCollection('people', doStuff)
[01:22:41] <marcospgp> Well I have a long day of checking source code tomorrow. Time to hit the hay. Goodnight fellow angled beings!
[01:22:44] *** evilaliv3 has quit IRC
[01:22:50] *** DrMabuse has quit IRC
[01:22:56] *** night-owl has joined #angularjs
[01:22:58] *** knownasilya has quit IRC
[01:23:08] *** Reskp has joined #angularjs
[01:23:15] *** chrislerum has joined #angularjs
[01:23:26] *** rtpg has quit IRC
[01:23:27] *** arizzo has quit IRC
[01:23:57] *** Jdubs has joined #angularjs
[01:23:58] *** rtpg has joined #angularjs
[01:24:03] *** arizzo has joined #angularjs
[01:24:05] *** nickp has joined #angularjs
[01:24:07] *** earthquake has quit IRC
[01:25:03] *** chrislerum has quit IRC
[01:25:05] <robdubya> moogumbo http://plnkr.co/edit/rSk9zRkTA7OCA9bO0TkH?p=preview
[01:25:32] *** Ir1sh_ has quit IRC
[01:25:34] <robdubya> mmmm that looks familiar
[01:25:45] *** Left_Turn has quit IRC
[01:26:02] *** earthquake has joined #angularjs
[01:26:28] *** Jdubs__ has joined #angularjs
[01:26:30] <joshua___> most probably know, but Packt has all of their ebooks $10 this week; picked up mastering Directives
[01:26:48] <Foxandxss> joshua___: I heard it is pretty basic
[01:26:54] *** marcospgp has quit IRC
[01:26:55] *** annlewis has joined #angularjs
[01:27:17] <moogumbo> robdubya: Heh, yeah, that's the Plunker you showed me a day or two ago
[01:27:19] *** Jdubs_ has quit IRC
[01:27:26] *** RobinBAwesome has joined #angularjs
[01:27:34] *** Reskp has quit IRC
[01:27:52] *** helen__ has joined #angularjs
[01:27:54] *** arizzo_ has joined #angularjs
[01:27:57] <moogumbo> robdubya: So this new Plunker is roughly what I was thinking; the twist is that I'd like to expose the foobars to multiple controllers without having to repeatedly fire the requests
[01:28:05] *** olveraricardo72 has quit IRC
[01:28:18] *** olveraricardo72 has joined #angularjs
[01:28:20] *** arizzo has quit IRC
[01:28:34] *** rtpg has quit IRC
[01:28:34] *** Jdubs has quit IRC
[01:29:33] *** cmoneylulz has joined #angularjs
[01:30:18] <moogumbo> Hm, I guess I could write _promise = _get(); inside each of the two controllers and then return that promise as well
[01:30:56] <robdubya> moogumbo refresh it
[01:31:08] *** annlewis has quit IRC
[01:31:14] *** thedodd has quit IRC
[01:31:16] *** emil_stdio has joined #angularjs
[01:32:41] *** sirkitree is now known as sirkitree|afk
[01:33:09] *** bamyyyooo14335 has quit IRC
[01:33:13] *** chrislerum has joined #angularjs
[01:33:14] *** sdouglas_ has quit IRC
[01:33:20] *** KendrickVT has quit IRC
[01:33:28] *** bamyyyooo14335 has joined #angularjs
[01:33:38] <moogumbo> robdubya: Cool, I get the idea. Thanks.
[01:33:47] *** sdouglas has joined #angularjs
[01:33:55] *** snapwich has quit IRC
[01:34:17] *** disorder20 has quit IRC
[01:34:45] <andrew9183> has anyone run into a problem when updating a ng-model inside a ng-repeat, it doesn't trigger an update to an element that is bound to the ng-model ?
[01:35:10] <robdubya> is the ng-model a primitive?
[01:35:14] <andrew9183> no
[01:35:18] <robdubya> like, ng-repeating over an array of strings?
[01:36:04] <andrew9183> over an array of objects
[01:36:17] *** Jdubs__ has quit IRC
[01:36:19] *** andizzle has joined #angularjs
[01:36:34] *** cthrax has quit IRC
[01:36:45] <andrew9183> i can put together a fiddle, but it'll take a while
[01:37:18] *** mspier is now known as mspier_off
[01:37:25] *** chrislerum has quit IRC
[01:37:25] <robdubya> would be helpful
[01:38:03] *** arizzo_ has quit IRC
[01:38:23] *** krawek has joined #angularjs
[01:38:23] *** krawek has joined #angularjs
[01:38:39] *** arizzo has joined #angularjs
[01:38:46] *** sdouglas has quit IRC
[01:39:34] *** nemothekid has quit IRC
[01:39:58] *** QuantumNinja has joined #angularjs
[01:40:09] *** mguillech has quit IRC
[01:40:15] *** rmichnik has joined #angularjs
[01:40:34] *** idvb has joined #angularjs
[01:40:39] *** hswolff has joined #angularjs
[01:41:37] *** Ymesio has joined #angularjs
[01:43:02] *** arizzo_ has joined #angularjs
[01:43:03] *** arizzo has quit IRC
[01:43:36] *** sdouglas has joined #angularjs
[01:43:51] *** digia is now known as digia|away
[01:45:58] *** enhance_ has quit IRC
[01:46:10] *** earthquake has quit IRC
[01:47:45] *** sdouglas has quit IRC
[01:48:05] *** UniBot has quit IRC
[01:48:08] *** earthquake has joined #angularjs
[01:49:18] *** benjf has quit IRC
[01:49:49] *** RobinBAwesome has quit IRC
[01:51:05] *** bamyyyooo14335 has quit IRC
[01:53:13] *** zanea has joined #angularjs
[01:53:57] *** arizzo_ has quit IRC
[01:54:09] *** mpaarating has quit IRC
[01:54:12] <G1eb> robdubya, quick question, suppose I have an object and I need to patch just 1 of the fields when that field is edited, is there a way to see which field was changed in the scope.$watch method?
[01:54:13] *** DerekPerkins has joined #angularjs
[01:54:31] *** bamyyyooo14335 has joined #angularjs
[01:54:36] *** TorpedoS_ has quit IRC
[01:54:38] *** arizzo has joined #angularjs
[01:54:56] <Foxandxss> no
[01:54:57] *** AlSquire has quit IRC
[01:54:58] *** pkayfire has quit IRC
[01:55:03] <G1eb> hmm
[01:55:15] <robdubya> you mean patch to the server?
[01:55:20] *** mange has joined #angularjs
[01:55:23] <G1eb> yeah
[01:55:25] *** pkayfire has joined #angularjs
[01:55:48] <G1eb> eventually, so inside that directive I can call a function in the controller that would do a patch
[01:56:04] *** chrislerum has joined #angularjs
[01:56:20] <G1eb> I'm using restangular by the way, not sure if that makes a difference in this case
[01:56:21] <robdubya> i'd do this at the service level. actually at the model level
[01:56:22] <snurfery> hopefully you mean a method within a service
[01:56:30] <snurfery> =)
[01:56:41] *** arizzo_ has joined #angularjs
[01:56:52] <G1eb> ehh, yes it should be inside a service
[01:56:52] <linagee> if I ask questions in here, should I be asking them on stackoverflow instead?
[01:56:55] <robdubya> assuming you had instances of a model (vs pojos) you could do it via getters / setters
[01:57:10] *** chrislerum has quit IRC
[01:57:12] *** wallerdev has quit IRC
[01:57:20] *** tfennelly has quit IRC
[01:57:48] *** chrislerum has joined #angularjs
[01:58:05] *** DerekPerkins_ has quit IRC
[01:58:06] <G1eb> so what do you mean with model level exactly? not sure im following
[01:58:09] *** aniM has joined #angularjs
[01:58:18] <G1eb> i had a feeling i was doing something wrong here
[01:58:29] *** spencercarnage has quit IRC
[01:58:35] *** DerekPerkins has quit IRC
[01:58:42] <linagee> does Apple watch when you code on Xcode? lol
[01:58:54] <robdubya> what? no
[01:59:02] <moogumbo> What do you mean, "model"? I thought The Angular Way was to use POJOs for the model layer?
[01:59:06] *** arizzo has quit IRC
[01:59:10] <linagee> robdubya: Apple is a walled garden. they very well *could*. hahahaha.
[01:59:25] *** joshua___ has quit IRC
[01:59:25] *** s00pcan has quit IRC
[01:59:26] <robdubya> linagee apple imo takes privacy far more seriously than the others
[01:59:42] <robdubya> moogumbo you *can* use pojos, there's no requirement to use a "special" model
[01:59:49] <robdubya> but that doesn't preclude you from doing so
[01:59:56] *** pkayfire has quit IRC
[02:00:09] <robdubya> moogumbo are you wanting to do this on the fly? or via an action (like clicking the save button)
[02:00:09] * G1eb had to google pojo
[02:00:20] <robdubya> eeeerrr G1eb
[02:00:26] * snurfery almost thought he meant kujo
[02:00:32] <G1eb> :D
[02:00:44] <snurfery> err "Cujo"
[02:00:52] <moogumbo> Yeah, I'm using POJOs now, but I'm curious if there's alternatives that people use commonly
[02:01:32] <robdubya> G1eb are you wanting to do this on the fly? or via an action (like clicking the save button)
[02:01:47] <G1eb> action, which would be a blur event
[02:02:04] *** chrislerum has quit IRC
[02:02:04] *** spencercarnage has joined #angularjs
[02:02:10] <linagee> robdubya: 1:46:16 on the video you sent me. What does @selector(scrollViewDidScroll:) do?
[02:02:37] *** RobinBAwesome has joined #angularjs
[02:02:39] * linagee hasn't learned what @selector means yet
[02:02:43] *** bamyyyooo14335 has quit IRC
[02:02:49] *** mven_ has joined #angularjs
[02:02:59] <robdubya> @selector is ~ .apply() in JS
[02:03:09] <robdubya> "call the method named"
[02:03:12] * snurfery just read the imdb reviews for Cujo, and now wants to see it
[02:03:22] <snurfery> robdubya: did not know that
[02:03:28] <linagee> robdubya: I think my brain just exploded
[02:03:38] <robdubya> that's the best way i can describe it.
[02:03:46] *** nickp has quit IRC
[02:04:00] *** InezK is now known as InezK_away
[02:04:11] <robdubya> linagee if you're a registered iOS dev, grab the xcode beta
[02:04:36] *** InezK_away is now known as InezK
[02:04:37] <robdubya> G1eb paradoxically, its a LOT easier to do a PUT than a patch
[02:04:39] <linagee> robdubya: was registered a few days ago. I need to get my work to give me a "refill".
[02:04:41] *** Foxandxss has quit IRC
[02:05:05] <linagee> robdubya: my apple-dev-fuel just hit 'E' on the gauge.
[02:05:14] *** waylon999 has quit IRC
[02:05:21] *** Malone has quit IRC
[02:05:29] <robdubya> mine hit that a few months back, swift has reinspired me
[02:05:33] <robdubya> its "fun" again
[02:05:47] *** nickp has joined #angularjs
[02:06:31] *** bphogan has joined #angularjs
[02:07:04] <moogumbo> @selector doesn't call the named method -- it's just a handle on that method that allows you to pass it around
[02:07:15] *** blueadept has quit IRC
[02:07:23] <robdubya> better explanation than mine
[02:07:31] <linagee> robdubya: a "taste" of Swift? hahahaha. yeah, don't tell me they aren't trying to play with people's minds when they do that.
[02:07:39] <linagee> do/say
[02:07:55] *** earthquake has quit IRC
[02:08:14] *** nickpellegrino has joined #angularjs
[02:08:34] *** Willow has quit IRC
[02:08:35] <linagee> what the hell? var s = "Hello" + " WWDC!"? I just learned in Objective-C that you *can't* do that. hahahah.
[02:08:37] *** DrShoggoth has quit IRC
[02:08:39] <robdubya> SEL someMethod = @selector(doSomeShit)
[02:08:59] <robdubya> [someThing performSelector:someMethod]'
[02:09:01] <robdubya> iirc
[02:09:01] *** Willow has joined #angularjs
[02:09:03] <robdubya> moogumbo?
[02:09:06] *** patricka_ has quit IRC
[02:09:24] <moogumbo> Yeah, that's the idea
[02:09:25] *** joshua___ has joined #angularjs
[02:09:28] <moogumbo> https://developer.apple.com/library/ios/documentation/general/conceptual/devpedia-cocoacore/Selector.html
[02:09:29] *** joshua___ has quit IRC
[02:09:48] *** nemothekid has joined #angularjs
[02:09:53] *** earthquake has joined #angularjs
[02:09:54] <robdubya> so more accurately performSelector ~ apply / call
[02:10:03] <andrew9183> robdubya: http://jsfiddle.net/U3pVM/6551/
[02:10:04] <robdubya> these are the silly things i dont miss :D
[02:10:08] <andrew9183> why can't i do something like that
[02:10:09] *** boptop has joined #angularjs
[02:10:45] <moogumbo> A common pattern is often e.g. if ([myScrollViewDelegate respondsToSelector:@selector(scrollViewDidScroll:)]) { [myScrollViewDelegate scrollViewDidScroll:scrollView]; }
[02:10:57] *** Yahkob has quit IRC
[02:10:59] <robdubya> andrew9183 http://jsfiddle.net/a9Rzn/
[02:11:13] *** pkayfire has joined #angularjs
[02:11:15] *** nickp has quit IRC
[02:11:20] *** shinnya has quit IRC
[02:11:22] *** n3t0cfg has left #angularjs
[02:11:31] *** andizzle has quit IRC
[02:11:41] <andrew9183> weird, never seen this angular.extend
[02:11:59] *** bayousoft has joined #angularjs
[02:11:59] <robdubya> swift: Selector('scrollViewDidScroll')
[02:12:06] <andrew9183> looks like query's extend
[02:12:08] <andrew9183> *jquery
[02:12:11] *** RobinBAwesome has quit IRC
[02:12:11] <robdubya> same thing
[02:12:18] <robdubya> andrew9183 you're replacing the reference in your demo
[02:12:40] *** Yahkob has joined #angularjs
[02:12:59] <andrew9183> humph, what do you mean by that ?
[02:13:30] *** fastfrwrd has joined #angularjs
[02:13:34] *** Willow has quit IRC
[02:13:49] <andrew9183> does it only "save" once too ?
[02:13:50] *** fastfrwrd has quit IRC
[02:13:54] *** tsalb has quit IRC
[02:13:58] <andrew9183> i'm guessing since its a hash, it won't extend it again
[02:13:59] *** edzez has quit IRC
[02:14:23] *** idvb has quit IRC
[02:14:29] *** InezK is now known as InezK_away
[02:14:31] *** subnl has quit IRC
[02:14:36] *** patrick__ has joined #angularjs
[02:14:47] <robdubya> you initiallly bind a specific instance of the object to the view
[02:14:53] *** joshua___ has joined #angularjs
[02:14:55] *** kirfu has joined #angularjs
[02:14:56] <robdubya> doing p = {some: 'otherObject' }
[02:14:57] *** edzez has joined #angularjs
[02:14:58] *** idvb has joined #angularjs
[02:15:10] <robdubya> now its a different instance
[02:15:19] <robdubya> which angular isn't bound to
[02:15:24] *** mven has quit IRC
[02:15:38] *** aniM has quit IRC
[02:16:11] *** joshua___ has quit IRC
[02:16:39] <robdubya> linagee yeah, the var s = 'hello world' thing made me sit up and pay attention
[02:16:42] <robdubya> whaaaaaaat
[02:16:44] *** InezK_away is now known as InezK
[02:17:02] *** dc_ has joined #angularjs
[02:17:04] <G1eb> robdubya, unfortunately I have to do patch quite a lot, i've made this as an example http://jsfiddle.net/7zdHw/3/ to call a patch function
[02:17:40] *** postitnote has quit IRC
[02:17:55] *** snapwich has joined #angularjs
[02:17:55] *** bmac has joined #angularjs
[02:17:59] *** patrickc_ has quit IRC
[02:18:00] *** nytrm has joined #angularjs
[02:18:24] <andrew9183> robdubya: would you expect it to work if i replaced the reference, and then did scope.apply ?
[02:18:33] <robdubya> nope
[02:18:37] *** DrMabuse has joined #angularjs
[02:18:45] *** patrick__ has quit IRC
[02:19:17] *** kennbrodhagen has joined #angularjs
[02:19:34] *** idvb has quit IRC
[02:19:47] *** conan_the_destro has quit IRC
[02:20:34] *** asc2030 has quit IRC
[02:21:19] *** zelrik has joined #angularjs
[02:21:23] <zelrik> hello
[02:21:26] *** dc_ has quit IRC
[02:22:03] <andrew9183> oh i think i get it, thanks robdubya
[02:22:05] <zelrik> I made my first bower package Oo
[02:22:15] *** nytrm has quit IRC
[02:22:27] *** joshua___ has joined #angularjs
[02:22:41] *** joshua___ has quit IRC
[02:23:04] *** DrMabuse has quit IRC
[02:23:48] *** pkayfire_ has joined #angularjs
[02:23:49] *** jamto11 has joined #angularjs
[02:23:49] *** Reskp has joined #angularjs
[02:24:09] *** lenswipe has joined #angularjs
[02:24:41] *** quellhorst has quit IRC
[02:24:44] *** jsoverson has quit IRC
[02:25:04] <zelrik> nobody cares Oo
[02:25:39] *** tommmied has joined #angularjs
[02:26:37] *** annlewis has joined #angularjs
[02:26:44] <andrew9183> zelrik: whats it do ?
[02:27:08] <zelrik> hold on I ll update the github repo
[02:27:35] *** pkayfire has quit IRC
[02:27:44] <robdubya> G1eb / moogumbo http://plnkr.co/edit/Y24sZsWXsqZ089ElJcOc?p=preview
[02:27:50] *** Shrooms has joined #angularjs
[02:27:57] <robdubya> "model" style. you'd want to tweak that directive a bit probably
[02:28:04] *** Reskp has quit IRC
[02:28:08] *** benschwarz has joined #angularjs
[02:28:10] *** ustunozgur has quit IRC
[02:28:42] *** dashed has quit IRC
[02:29:03] *** AciD`` has quit IRC
[02:29:37] *** subnl2 has joined #angularjs
[02:29:40] *** Yahkob has quit IRC
[02:29:44] <andrew9183> this angular.extend is a miracle. thank you once again
[02:29:47] *** earthquake has quit IRC
[02:30:06] <robdubya> andrew9183 the opposite for when you inevitably need it is copy
[02:30:13] <moogumbo> robdubya: Yeah that's pretty much what I'm doing. It ends up looking pretty nice with CoffeeScript syntax for the "class" stuff
[02:30:35] *** Guest76468 has quit IRC
[02:30:38] <andrew9183> cool
[02:30:41] <robdubya> indeed. in es6 its real classes, which is nicer still
[02:30:58] <robdubya> "real" classes = still fake js classes but with proper sugar
[02:31:08] *** annlewis has quit IRC
[02:31:22] *** chrislerum has joined #angularjs
[02:31:26] <robdubya> moogumbo speaking of, https://gist.github.com/robwormald/ece74f14e2ecacf3c3d2
[02:31:34] *** mmitchell has quit IRC
[02:32:30] <zelrik> andrew9183, https://github.com/AlexCppns/ac-fancy-input
[02:32:42] <robdubya> oh you fancy huh?
[02:33:03] <zelrik> you can install it via bower install ac-fancy-input#0.1.3
[02:33:11] <moogumbo> robdubya: Heh, is this what I think it is?
[02:33:12] <andrew9183> oh pretty slick !
[02:33:13] <moogumbo> Interesting
[02:33:21] <robdubya> yes it is
[02:33:25] <zelrik> the example's dependency might need to be editing
[02:33:39] *** Jdubs has joined #angularjs
[02:33:47] <snurfery> have you guys heard of the OnePlus One phone?
[02:33:48] *** packet has quit IRC
[02:33:51] *** kennbrodhagen has quit IRC
[02:33:52] <snurfery> it looks ridiculous
[02:33:55] <robdubya> moogumbo i kept stealing ideas from it, i figured "fuck it, do it properly
[02:33:56] <snurfery> for $300
[02:34:04] <snurfery> http://www.engadget.com/2014/05/08/oneplus-one-review/
[02:34:16] <robdubya> somebody else already did it with coffeescript, which took the wind out of my sails a bit
[02:34:19] <zelrik> andrew9183, the example.html works if you edit the path of the dependencies
[02:34:23] <zelrik> I havent fixed that yet
[02:34:36] <robdubya> but its sort of how im figuring out all this new ng2.0 / es6++ business
[02:34:44] *** Yancy has quit IRC
[02:34:45] *** krawek has quit IRC
[02:34:50] *** arrty has joined #angularjs
[02:34:53] *** idvb has joined #angularjs
[02:34:54] *** danielpq_ has quit IRC
[02:34:54] *** Yancy has joined #angularjs
[02:35:11] <moogumbo> robdubya: Very interesting
[02:35:11] *** s3ri0us has quit IRC
[02:35:16] <moogumbo> robdubya: They did? Is it open-source?
[02:35:22] *** Diego_ has joined #angularjs
[02:35:27] <robdubya> not even a little
[02:35:30] *** OdinIncarnate has joined #angularjs
[02:35:30] <Diego_> Hey guys
[02:35:31] *** tyfighter has quit IRC
[02:35:34] <moogumbo> Ah heh
[02:36:01] <Diego_> does someone know about a study case of using AngularJS? I'm needing to study one for my final paper in college
[02:36:19] <robdubya> moogumbo i'm hoping i can use the same nsmanagedObjectModel type stuff
[02:36:23] <robdubya> share some domain logic
[02:36:40] <zelrik> andrew9183, did you try it out
[02:36:41] <zelrik> ?
[02:36:47] *** jdj_dk_ has joined #angularjs
[02:36:56] <andrew9183> i tried the jquery one out
[02:37:04] <robdubya> moogumbo er, the js vresion is open source, core data is not
[02:37:15] <G1eb> robdubya, thanks I'm looking in to it now
[02:37:18] <zelrik> the jquery one is not as useful in practice
[02:37:19] <moogumbo> robdubya: Of course. I meant the JS version.
[02:37:24] <zelrik> mine had a reallife usage
[02:37:31] <snurfery> Diego_: study case?
[02:37:32] *** SpearThruster has quit IRC
[02:37:43] <Diego_> case study, sry
[02:37:58] <moogumbo> Couldn't turn it up in Google
[02:37:59] <zelrik> it was still helpful to build the angularJS one though
[02:38:02] *** morenoh149 has joined #angularjs
[02:38:04] *** tfennelly has joined #angularjs
[02:38:07] *** chrislerum has quit IRC
[02:38:08] *** UniBot has joined #angularjs
[02:38:09] <robdubya> moogumbo http://registry.npmjs.org/js-core-data/-/js-core-data-0.2.9.tgz
[02:38:17] *** willmarshall has joined #angularjs
[02:38:17] <moogumbo> robdubya: Aha. Thanks.
[02:38:31] <robdubya> not on the githubs, or i woulda forked it
[02:38:33] <Diego_> snufery case study
[02:38:38] <snurfery> yeah
[02:38:52] <Diego_> do you know some?
[02:39:00] <Diego_> I'm trying to google it but I'm not able
[02:39:03] *** arrty has quit IRC
[02:39:04] <moogumbo> robdubya: I haven't been the biggest fan of CoreData, but it's not unreasonable. And there's almost always some logic that ends up shared between client and server.
[02:39:11] <snurfery> um, there are some blogs about 'switching over to angular', written from an engineer's perspective
[02:39:14] <zelrik> if you guys can give me some feedback, that d be awesome
[02:39:14] <robdubya> moogumbo i've used AFIncrementalStore for a while, which i really like
[02:39:24] <Diego_> let me try to find some
[02:39:27] <snurfery> what are you trying to learn from the case study?
[02:39:34] <robdubya> and i really like the toolchain - the model editor and such
[02:39:45] <robdubya> (i already parse that xcmodelthingy and use that)
[02:40:10] <Diego_> the benefits of using angularJS - e.g. productivy, testability, quality of code, reusability and so on
[02:40:10] <moogumbo> Ah, I see
[02:40:55] <moogumbo> robdubya: I've been away from iOS for a while, but for a couple projects I used SQLite + PlausibleDB
[02:41:03] *** jdj_dk_ has quit IRC
[02:41:08] <snurfery> Diego_: http://joelhooks.com/blog/2013/05/22/lessons-learned-kicking-off-an-angularjs-project/
[02:41:27] <Diego_> let me see it
[02:41:34] *** wasabi has joined #angularjs
[02:41:44] <robdubya> moogumbo yeah, me too. most of my sutff is ionic now, but i've always missed the Core Data stuff. es6 / ng2 seems a reasonable place to attempt it
[02:41:47] <Diego_> maybe youtube does not have? because the switched to angular. Right?
[02:41:54] <snurfery> Diego_: also, http://jeffwhelpley.com/angularjs/ called "Why Angular"
[02:41:58] *** wasabi is now known as Guest47486
[02:42:12] <snurfery> it's easier to scan a webpage than watch a 20-minute geek rant ;)
[02:42:20] *** obert has joined #angularjs
[02:42:40] *** emil_stdio has quit IRC
[02:42:55] *** one_zero has joined #angularjs
[02:43:41] <robdubya> https://github.com/swift2js/swift2js (!)
[02:44:46] *** tfennelly has quit IRC
[02:45:15] *** joojis has joined #angularjs
[02:45:25] *** tilgovi has quit IRC
[02:46:04] <moogumbo> robdubya: Interesting combination
[02:46:31] <robdubya> there's a few of them out there
[02:46:56] *** nectarys has joined #angularjs
[02:47:05] *** chachan has joined #angularjs
[02:47:33] *** rtpg has joined #angularjs
[02:47:49] *** bayousoft has quit IRC
[02:49:57] *** Ymesio has quit IRC
[02:50:25] *** nanoyak has quit IRC
[02:50:57] *** Yahkob has joined #angularjs
[02:50:59] *** kennbrodhagen has joined #angularjs
[02:53:10] *** ecool has joined #angularjs
[02:53:13] <zelrik> which angularJS version you guys are using
[02:53:28] *** jamto11 has quit IRC
[02:53:40] *** fels_zh has joined #angularjs
[02:53:41] *** patrickarlt has joined #angularjs
[02:53:44] *** arizzo_ has quit IRC
[02:53:56] <snurfery> 1.2.18
[02:54:11] <zelrik> I stopped at 1.2.9
[02:54:15] *** aniM has joined #angularjs
[02:54:16] *** arizzo has joined #angularjs
[02:54:30] <snurfery> no time like the present to catch up
[02:54:44] <snurfery> bug/performance fixes are pretty valuable
[02:54:53] <zelrik> they dropped ie8 support in later versions
[02:55:00] <snurfery> not in 1.2
[02:55:07] <zelrik> oh
[02:55:17] <zelrik> so it makes sense then
[02:55:26] <snurfery> it's a minor version update, nothing crazy like that is planned
[02:55:26] <zelrik> I ll update it
[02:55:32] <snurfery> read the changelog
[02:55:46] *** dc_ has joined #angularjs
[02:56:27] <snurfery> https://github.com/angular/angular.js/blob/master/CHANGELOG.md only the stuff between your version and 1.2.18
[02:56:52] <snurfery> esp the 'breaking changes' part.. like I believe they removed ng-bind-html-unsafe
[02:57:02] *** dbouwman has joined #angularjs
[02:57:36] *** dc_ has quit IRC
[02:58:32] *** arizzo has quit IRC
[02:58:34] *** DerekPerkins has joined #angularjs
[02:58:37] <zelrik> I dont think I use it
[02:58:56] <snurfery> zelrik: sorry I was wrong
[02:58:58] <ngoyal> robdubya: using systemjs and classes and DI... how do you debug? Like get a stack trace that isn't a bunch of tryCatch1 and evals
[02:59:11] <zelrik> ?
[02:59:13] *** TorpedoSkyline has joined #angularjs
[02:59:16] <robdubya> very carefully
[02:59:16] <snurfery> oh wait nm
[02:59:29] <snurfery> I thought it said ie8 was no longer supported, but that was 1.3.x
[02:59:38] *** kroogs has joined #angularjs
[02:59:41] <zelrik> alright
[02:59:50] *** TorpedoSkyline has quit IRC
[02:59:51] *** earthquake has joined #angularjs
[02:59:52] <zelrik> snurfery, did you check my new module ? :)
[03:00:34] <snurfery> no
[03:00:38] *** CodeFriar has quit IRC
[03:00:43] <snurfery> is it that ac-fancy-input link you posted?
[03:00:46] <zelrik> yeah
[03:00:55] <robdubya> zelrik you should set up a gh-pages demo
[03:00:55] <zelrik> I havent ported the tests yet
[03:00:55] *** dhcar is now known as dhcar_AFK
[03:01:03] <zelrik> and it s still in alpha
[03:01:07] <zelrik> what s that
[03:01:09] *** ustunozg_ has joined #angularjs
[03:01:24] *** Ymesio has joined #angularjs
[03:01:25] <snurfery> +1 to robdubya's suggestion
[03:01:26] *** jareddlc has quit IRC
[03:01:34] <ngoyal> robdubya: so no source map or any support of that kind when node systemjs?
[03:01:34] <robdubya> https://pages.github.com/
[03:01:35] *** nibster has joined #angularjs
[03:01:45] *** boptop has quit IRC
[03:01:49] <robdubya> ngoyal pretty sure it supports sourcemaps
[03:01:56] *** TorpedoSkyline has joined #angularjs
[03:02:48] <zelrik> ok
[03:02:58] <zelrik> let me have a look
[03:03:20] <monokrome> Don't look. It's a trap.
[03:03:27] <ngoyal> robdubya: yea - but not sure how to get that within something like node-debug
[03:03:31] *** jhulten has quit IRC
[03:03:42] *** dbouwman has quit IRC
[03:03:52] <robdubya> oh, in node, i have no idea. you're pretty much doomed there for the moment i reckon
[03:04:00] *** mmitchell has joined #angularjs
[03:04:04] <ngoyal> haha
[03:04:17] <ngoyal> ok - well i guess ill have to revisit in a little while then
[03:04:25] <robdubya> i'm running all my tests through karma (browser)
[03:05:06] <ngoyal> yea - some things may be server side only, though i guess i could mock those parts out
[03:05:08] *** kroogs has quit IRC
[03:05:09] <zelrik> hmm should I set that up tonight
[03:05:16] *** LuxuryMode has quit IRC
[03:05:23] <robdubya> ngoyal alternately you oculd compile to cjs and do it normally
[03:05:42] *** chachan has quit IRC
[03:05:46] *** ustunozg_ has quit IRC
[03:06:18] *** cmoneylulz has quit IRC
[03:06:19] *** thepro4ever has joined #angularjs
[03:06:29] <ngoyal> hmm
[03:06:31] *** moritzs has quit IRC
[03:06:33] *** thepro4ever has left #angularjs
[03:06:34] *** dcherman2 has quit IRC
[03:06:35] *** TorpedoSkyline has quit IRC
[03:06:51] <robdubya> ngoyal just steal the gulpfile from one of the angular projects
[03:06:58] <robdubya> its setup already to do amd / cjs
[03:07:53] *** Destos has joined #angularjs
[03:08:10] *** nectarys has quit IRC
[03:08:27] <robdubya> ngoyal the mock thing is what i'm trying to accomplish (tho less "mock" and more "platform specific implementation"
[03:08:52] *** QuantumN_ has joined #angularjs
[03:09:11] <robdubya> there's a note in the DI repo about interfaces, which i think is probably the way forward
[03:09:20] <ngoyal> ah interesting
[03:09:20] <robdubya> like a .h / .m thing
[03:09:55] <robdubya> god help vojta if he shows up in here, i have so many questions :D
[03:10:06] <robdubya> also if you havent looked at the reference project yet, its pretty cool
[03:10:08] *** Gambit- has quit IRC
[03:10:25] *** QuantumNinja has quit IRC
[03:11:22] <ngoyal> the kitchen one?
[03:11:25] *** fold has joined #angularjs
[03:11:32] <robdubya> https://github.com/angular/projects
[03:11:49] <robdubya> https://projects.angularjs.org/
[03:12:15] <ngoyal> is gulp the way to go at this point?
[03:12:31] <robdubya> i like it
[03:12:35] <robdubya> ng seems to like it
[03:12:37] *** raphael has joined #angularjs
[03:12:42] <robdubya> if you speak stream its pretty slick
[03:12:47] *** stevvooe has quit IRC
[03:13:07] *** raphael has quit IRC
[03:13:12] <zelrik> robdubya, it s really barebone still but AlexCppns.github.io
[03:13:24] *** raphael has joined #angularjs
[03:13:38] <robdubya> nice dude
[03:13:45] *** kirfu1 has joined #angularjs
[03:13:49] *** kirfu has quit IRC
[03:13:52] <raphael> Hi everyone.. i had a noob question..
[03:14:01] <robdubya> whats the story on the single instance only zelrik ?
[03:14:05] *** snapwich has quit IRC
[03:14:20] <zelrik> robdubya, it s the way I designed it when it was part of my app
[03:14:32] <zelrik> I pulled the code out inside its own module
[03:14:40] <raphael> i'm trying to update a $scope.variable with a function on my controller.. but this doesn't reflect on my view.. I can't understand why...
[03:14:44] <zelrik> but I need more refactoring if I want multiple instances
[03:14:54] <zelrik> like, a lot of refactoring
[03:15:00] <raphael> on my view i'm using: {{variable}}
[03:15:49] <robdubya> zelrik gotcha. looks like its the afci-data bit?
[03:15:53] <ngoyal> raphael: how is the function being called?
[03:16:06] *** jeremymarc has quit IRC
[03:16:07] <zelrik> robdubya, yeah
[03:16:15] <ngoyal> if it's outside of something angular knows, you need to put it within a $scope.apply
[03:16:27] <robdubya> if you took that object literal afciInput = {}
[03:16:27] <zelrik> robdubya, the trick is to make it so it still works with my current app
[03:16:28] <raphael> ngoyal: on my view.. i had a list with ng-click="updateMyScope()"
[03:16:29] <ngoyal> or $apply
[03:16:39] <robdubya> and turned it into function AFCInput(data){}
[03:16:55] <robdubya> AFCInput.prototype.initText = fucntion(...
[03:16:56] <ngoyal> ah ok - then probably a child scope has it in the scope chain and the controller is updating it in a parent.
[03:16:57] <robdubya> etc
[03:17:06] <zelrik> I see
[03:17:11] <robdubya> then you could just store a hash of instances
[03:17:17] *** nickpellegrino has quit IRC
[03:17:18] <zelrik> that what I guessed I should do
[03:17:33] <zelrik> not sure how much work it d be to make it work across my app though
[03:17:39] <robdubya> should work nicely. nice work on backing it with a service tho
[03:17:48] <raphael> ngoyal: I will post the code somewhere.. can you wait for it? i'ts just a second
[03:18:08] <robdubya> not too bad, i guess you'd have to give each instance a unique ID of some sort (or just a use an es6 Set )
[03:18:12] <zelrik> I inject that service a bit everywhere in my app
[03:18:12] <ngoyal> sure - ill take a look. others here are way smarter than me tho ;)
[03:18:27] *** chrislerum has joined #angularjs
[03:19:19] <monokrome> Hmm... I'm trying to make Angular a bit more user friendly / a bit less repetitive in terms of injection and defining new components. Does anyone have any ideas for things like that? My project is at http://github.com/monokrome/intersect.js
[03:19:28] <zelrik> robdubya, I think I did the hardest part though :)
[03:19:30] <monokrome> Wondering if anyone has ideas on how to make things less repetitious :)
[03:19:37] *** DrMabuse has joined #angularjs
[03:19:40] <robdubya> zelrik indeed, its pretty slick
[03:19:47] <zelrik> which is to encapsulate the code within a module
[03:19:55] <monokrome> (also wondering why angular doesn't do this in the first place!)
[03:20:03] <zelrik> now I can just build from there
[03:20:24] *** boptop has joined #angularjs
[03:20:31] <robdubya> monokrome you could figure out a reasonable pattern for doing stuff like building a base model class and then exteding it
[03:20:33] *** moritzs has joined #angularjs
[03:20:40] *** snapwich has joined #angularjs
[03:20:45] <robdubya> its a bit of a clusterfuck at the moment
[03:20:51] <monokrome> robdubya: coffeescript
[03:20:58] <monokrome> look at the bottom of the readme
[03:21:03] *** DrMabuse has quit IRC
[03:21:03] <robdubya> fuck your coffeescript
[03:21:05] <sal1191> haha
[03:21:06] *** DrMabuse_ has joined #angularjs
[03:21:11] <robdubya> :D
[03:21:16] <monokrome> You could do that in JS also, but JS is just verbose for those things.
[03:21:21] <monokrome> ES6 has classess in JS
[03:21:36] <ngoyal> es6 will be nice when its prevalent
[03:21:37] <raphael> ngoyal: http://codepen.io/raphagodoi/pen/hCEbn
[03:21:40] *** simon has left #angularjs
[03:22:03] <monokrome> I was thinking about having components defined with this tool use a different function signature
[03:22:03] <zelrik> I was never into coffeescript
[03:22:12] <robdubya> monokrome you should defo dig around the new repos if you havent
[03:22:13] <monokrome> So, they would get one argument back that is just an object containing all the injections
[03:22:15] <zelrik> it's too dry to learn js
[03:22:17] <raphael> look.. it's not function on codepen but reflect what i'm trying to do
[03:22:17] <monokrome> instead of having this big long list of args
[03:22:19] *** katsh has joined #angularjs
[03:22:27] <monokrome> robdubya: What new repos?
[03:22:31] <ngoyal> raphael: where is getChamado defined?
[03:22:34] <zelrik> maybe once I am more senior I d like it
[03:22:36] <robdubya> alll the angular 2.0 stuff, which is all es6
[03:22:37] <helen__> http://davej.github.io/angular-classy/
[03:22:37] <sal1191> i was coffeecurious for a while
[03:22:49] <raphael> oh sorry.. it's on my controller
[03:22:52] <sal1191> weird time for me
[03:23:10] *** aniM has quit IRC
[03:23:16] <raphael> ngoyal: updated
[03:23:19] <ngoyal> raphael: i think you're missing some directives (like ion-*) and other things
[03:23:32] <monokrome> helen__: I've seen angular classy but it's 300 lines of code and doing a lot of magic stuff
[03:23:33] <robdubya> monokrome https://github.com/angular/projects https://github.com/angular/di.js etc
[03:23:41] *** TorchDragon has quit IRC
[03:23:51] <ngoyal> raphael: you're referencing chamado in the template, but the variable name in scope is chamado_item
[03:23:54] <helen__> 300 lines of well used coed :D
[03:23:57] <helen__> code*
[03:24:15] <zelrik> robdubya, did you notice that I made the suggestion data very flexible
[03:24:22] <zelrik> each item is a hash
[03:24:31] <ngoyal> and even then, chamado_item isn't an object, just a string literal
[03:24:37] <zelrik> and has nesting by default
[03:24:38] <ngoyal> so there's some funky stuff going on ;)
[03:24:40] *** Reskp has joined #angularjs
[03:24:48] <robdubya> monokrome its totally poisoned my brain
[03:24:56] <robdubya> i shouldnt have ever looked :/
[03:24:58] <ngoyal> that said, ng-click within ng-repeat will set a variable only on that child scope, so parents won't see it
[03:25:17] <monokrome> robdubya: Why?
[03:25:24] <raphael> ngoyal: thats not all my code.. everything with chamado.. is working.. just the <h2>{{chamado_item}}</h2> don't
[03:25:33] *** DrMabuse_ has quit IRC
[03:25:34] *** kirfu1 has quit IRC
[03:25:37] <robdubya> because (as your repo suggests) its far less verbose and silly
[03:25:41] <monokrome> I have a project that does client <=> server data binding between Node and the browser
[03:25:43] <raphael> hmm
[03:25:45] <monokrome> Maybe I should be doing that in Angular2
[03:25:53] <ngoyal> raphael: ah ok - so yes the ng-click is setting chamado_item on a child scope of where your template expects it
[03:25:54] <robdubya> monokrome we should talk :D
[03:26:00] *** m0t0r has joined #angularjs
[03:26:03] <monokrome> robdubya: about what?
[03:26:06] <ngoyal> so the template has no visibility
[03:26:12] <robdubya> client <=> server data binding between Node and the browser
[03:26:35] <monokrome> robdubya: The idea is that there's a "remoteController" directive and it assigns a scope to an element
[03:26:35] *** moritzs has quit IRC
[03:26:37] <robdubya> monokrome https://gist.github.com/robwormald/ece74f14e2ecacf3c3d2
[03:26:38] *** annlewis has joined #angularjs
[03:26:41] <zelrik> I have a project that does my brain <=> your brain data binding
[03:26:43] <zelrik> all in JS
[03:26:46] <monokrome> When the scope changes, it uses socketio to send changes to the server and sync back
[03:26:49] <raphael> ngoyal: I understand.. what are my options to click on this list.. and open a view with the data updated
[03:26:51] <raphael> ?
[03:26:56] *** in_deep_thought has quit IRC
[03:27:01] <monokrome> so the controller is running Angular in node on the server
[03:27:02] <zelrik> :p
[03:27:18] <robdubya> monokrome ha. i use sails right now for that exact thing, but i really want a pure es6 angular focused version
[03:27:21] *** motionman has joined #angularjs
[03:27:28] <monokrome> <div remote-controller='some.serverside.business.logic'>
[03:27:42] <monokrome> Running Angular on the server requires some hackery though
[03:27:54] <robdubya> yhea, that's why the 2.0 stuff is so intriguing
[03:27:56] <ngoyal> raphael you could expose a method on the parent scope called setChamadoItem and have your ng-click="setChamadoItem('whatever')"
[03:28:00] <robdubya> angular's not a "thing"
[03:28:00] *** nickp has joined #angularjs
[03:28:01] <monokrome> 2.0 is server-side?
[03:28:03] *** kennbrodhagen has quit IRC
[03:28:03] <robdubya> just a collection of things
[03:28:12] <monokrome> I'm using Angular 1.2.x on the server
[03:28:13] <robdubya> so you can use the various bits (eg DI ) server side
[03:28:16] <ngoyal> oh wait
[03:28:17] <ngoyal> one sec
[03:28:37] <zelrik> I never understood server side js
[03:28:38] <robdubya> monokrome that's madness. totally insane. i'm impressed :D
[03:28:46] *** joshontheweb has joined #angularjs
[03:29:01] <robdubya> zelrik there's a lot to be said about speaking one language on both the cleint and the server
[03:29:04] *** Reskp has quit IRC
[03:29:13] <robdubya> if purely from a not havng to switch gears in your brain every 2 minutes
[03:29:14] *** k-dawg has joined #angularjs
[03:29:15] <monokrome> I bound it to jsdom but I don't use dom/directives or anything, so might not be needed
[03:29:26] <ngoyal> zelrik: embrace it! it's sweet
[03:29:40] <monokrome> Angular's controller / service pattern is nice on the server though
[03:30:00] <raphael> ngoyal: that's something i dont understand in angular.. (ps: i'm noob on angular just trying to get out of jquery :D)
[03:30:08] <monokrome> you could in theory create directives in JSDOM though and just give HTML back to the client if you wanted to do something crazy
[03:30:15] <robdubya> monokrome https://gist.github.com/robwormald/245ab22b8ce94efbf56d
[03:30:20] <ngoyal> raphael: im sort of a noob too - just a sec
[03:30:32] <robdubya> that sort of thing - http being switched out depending on the context
[03:30:45] *** treeface has quit IRC
[03:31:01] <monokrome> robdubya: The fact that you have to put @Inject(http) and then you have to redefine the list of injections in the constroctor bothers me
[03:31:06] *** kalehv has joined #angularjs
[03:31:08] *** annlewis has quit IRC
[03:31:21] <robdubya> you dont have to redefine, that's the output from traceur
[03:31:31] <zelrik> ngoyal, I like RoR too much :p
[03:31:36] *** jtimon has quit IRC
[03:31:52] *** olveraricardo72 has quit IRC
[03:31:54] <monokrome> Oh, there's some pre-processing similar to sweet.js going on?
[03:32:18] <robdubya> yeah - since its es6, they're using traceur to transpile it to AMD / CJS
[03:32:19] *** franzip has quit IRC
[03:32:39] <robdubya> the @Whatevers get rewritten to this.$whatever
[03:32:54] <monokrome> robdubya: Oh, cool. You can use Angular2 in older browsers because of this?
[03:33:03] <zelrik> damn
[03:33:04] <robdubya> that's the general idea, yeah
[03:33:10] <monokrome> neat
[03:33:14] <zelrik> 8 months ago I knew nothing about angularJS
[03:33:19] <zelrik> things move fast
[03:33:25] *** InezK is now known as InezK_away
[03:33:26] <robdubya> so write pure es6, transpile, share code
[03:33:31] <monokrome> I did my first Angular project 2 months ago
[03:33:35] <monokrome> :(
[03:33:39] <ngoyal> raphael: here's a barebones example of what you need - http://plnkr.co/edit/xzVkcxYDXvoJLT82PsY0
[03:33:46] <robdubya> zelrik yeah, its like being a noob all over again
[03:33:51] *** heidi has quit IRC
[03:33:57] *** DerekPerkins_ has joined #angularjs
[03:33:58] <zelrik> 4 years ago, I didnt even know what javascript was
[03:33:59] <ngoyal> so there is probably some intermediate scope that is causing problems
[03:34:01] <zelrik> or html even
[03:34:15] <zelrik> ht..what?
[03:34:22] <raphael> ngoyal: thanks i'll take a look right now
[03:34:59] <zelrik> 'I can inspect elements in the browser? really? '
[03:35:01] *** whunt has quit IRC
[03:35:27] <ngoyal> i suspect because the <h2> is outside of your <ion-view> that the <h2> doesn't see the scope in ion-view - directives usually have isolated scopes
[03:35:30] <monokrome> robdubya: If traceur really lets me use ES6 in a backwards-compat way, how does module loading work?
[03:35:34] *** danielpquinn has joined #angularjs
[03:35:38] <monokrome> I'll stop using coffee if this is legitimately useful
[03:35:47] <zelrik> what s es6
[03:35:57] <monokrome> zelrik: Next version of JS
[03:36:01] <ngoyal> so you could broadcast, or use a service, or use $rootScope. I think an angular vet here could offer something better
[03:36:08] *** jdj_dk_ has joined #angularjs
[03:36:09] <zelrik> monokrome, eta?
[03:36:20] *** stirling_ has quit IRC
[03:36:35] <raphael> angular vet?
[03:36:44] <monokrome> when it gets done
[03:36:44] <ngoyal> or you can do a two way binding for chamado_item - i think that's the best bet actually
[03:36:50] <zelrik> in case your angular is sick
[03:36:52] <zelrik> raphael,
[03:37:05] <robdubya> monokrome you can use requireJS or SystemJS or basically any async loader
[03:37:07] <raphael> zelrik: yes?
[03:37:19] <monokrome> robdubya: and traceur will use it?
[03:37:27] <zelrik> raphael, sorry I wrote that in the wrong order
[03:37:29] <robdubya> traceur will output AMD or CommonJS (node) modules
[03:37:37] <monokrome> awesome
[03:37:38] <zelrik> I meant to say your name first
[03:37:47] <zelrik> raphael, :D
[03:37:53] <monokrome> I guess that I'm going to be learning Angular2 tonight
[03:37:58] <robdubya> heh
[03:38:07] <monokrome> Even though it's not done yet :D
[03:38:10] *** DerekPerkins has quit IRC
[03:38:21] <monokrome> https://projects.angularjs.org/ breaks in Firefox
[03:38:23] <raphael> zelrik: hehe ok..
[03:38:30] <monokrome> Maybe Angular2 isn't ready for me yet :)
[03:38:50] *** k-dawg has quit IRC
[03:39:14] <robdubya> the other one that's interesting would be using the new templating stuff on the server
[03:39:18] *** tfennelly has joined #angularjs
[03:39:21] *** dcherman has joined #angularjs
[03:39:30] <robdubya> for you poeple who insist on rendering shit on the server.
[03:39:52] *** danielpquinn has quit IRC
[03:39:54] <monokrome> wat
[03:40:02] <robdubya> i have no idea if its techincally possible, but you might since you're already using jsdom or whaever
[03:40:14] <monokrome> Oh, I'm avoiding doing templates on the server
[03:40:24] *** bayousoft has joined #angularjs
[03:40:24] *** woebtz has quit IRC
[03:40:24] <raphael> ngoyal: look, my logic is: i set some routes, on first: list my itens then click an open data on second view.. getting data from a service.. everythig is working but that scope is breaking my brain
[03:40:31] <monokrome> I'm just using the server to sync a client-side $scope with server data
[03:40:34] *** jdj_dk_ has quit IRC
[03:40:55] <monokrome> only things I use on the server are controllers & services
[03:41:17] *** ekinmur has joined #angularjs
[03:42:19] <monokrome> material design looks interesting
[03:42:21] <zelrik> if you should know one thing about angularJS, it s the scope
[03:42:29] *** raphael has quit IRC
[03:42:55] <monokrome> If you should know one thing about AngularJS, it's that you should know all the things about AngularJS :D
[03:42:58] <ngoyal> <ion-view> has its own scope. the <h2> doesn't see it. so you need to use a service or inject $rootScope and set the value on that
[03:42:59] *** rburns has joined #angularjs
[03:43:36] <zelrik> In practice, the scope still confuses me
[03:43:39] *** fels_zh has quit IRC
[03:43:42] *** moritzs has joined #angularjs
[03:43:57] *** tfennelly has quit IRC
[03:44:37] *** encryptd_fractl has joined #angularjs
[03:46:19] <zelrik> the best way I found to hack around the scope is to use services
[03:46:34] <zelrik> They re very portable
[03:46:36] <ngoyal> or just throw it on $rootScope :P
[03:46:42] <ngoyal> but yea, services are the best approach
[03:47:09] <zelrik> I use rootscope when I cant find a good service for the variable
[03:47:13] <ngoyal> and using $broadcast/$emit
[03:47:28] *** jeremymarc has joined #angularjs
[03:47:31] <zelrik> rootscope is kind of a 'I ll fix it later' thing for me
[03:47:41] *** k-dawg has joined #angularjs
[03:48:17] <ngoyal> yea - its generally not the best approach. i agree with your description
[03:49:37] *** snapwich has quit IRC
[03:50:02] <robdubya> monokrome re material design https://github.com/angular/templating/tree/master/src/example/polymertab
[03:50:27] *** raphael has joined #angularjs
[03:50:32] *** k-dawg has quit IRC
[03:50:33] *** encryptd_fractl has quit IRC
[03:51:33] *** Diego_ has quit IRC
[03:51:39] <monokrome> robdubya: Thanks. I'll check it out.
[03:51:49] *** blueadept has joined #angularjs
[03:51:49] *** blueadept has joined #angularjs
[03:52:12] *** snapwich has joined #angularjs
[03:53:22] *** aniM has joined #angularjs
[03:54:55] *** kennbrodhagen has joined #angularjs
[03:55:19] *** jordandotdev has joined #angularjs
[03:57:39] *** fraenzn has joined #angularjs
[03:57:57] *** freeman42 has quit IRC
[03:58:14] *** fouadm has joined #angularjs
[03:58:30] *** DerekPerkins_ has quit IRC
[03:58:51] *** kennbrod_ has joined #angularjs
[03:59:33] *** ustunozgur has joined #angularjs
[03:59:46] *** kennbrodhagen has quit IRC
[03:59:48] *** jayrobot has quit IRC
[03:59:57] *** DerekPerkins has joined #angularjs
[04:00:06] *** kroogs has joined #angularjs
[04:00:44] *** dc_ has joined #angularjs
[04:01:42] *** jpiasetz has quit IRC
[04:01:46] *** Ir1sh has joined #angularjs
[04:01:59] *** Nek has quit IRC
[04:02:08] <raphael> ngoyal: sorry i lost my connection..
[04:02:19] <raphael> ngoyal: look, my logic is: i set some routes, on first: list my itens then click an open data on second view.. getting data from a service.. everythig is working but that scope is breaking my brain
[04:02:21] *** chrislerum has joined #angularjs
[04:02:59] <ngoyal> <ion-view> has its own scope. the <h2> doesn't see it. so you need to use a service or inject $rootScope and set the value on that
[04:03:03] *** kennbrod_ has quit IRC
[04:03:21] *** mdedetrich has joined #angularjs
[04:03:39] *** jayrobot has joined #angularjs
[04:03:54] <ngoyal> raphael: check out the accepted answer on this - it's a good read - http://stackoverflow.com/questions/14049480/what-are-the-nuances-of-scope-prototypal-prototypical-inheritance-in-angularjs
[04:04:06] <ngoyal> focus on the way the variable is looked up
[04:04:12] *** ustunozgur has quit IRC
[04:04:17] <ngoyal> and then realize in a directive, that they are actually isolated scopes
[04:04:35] *** vf1 has quit IRC
[04:05:00] *** snapwich has quit IRC
[04:05:38] *** kroogs has quit IRC
[04:05:44] *** dseminara has joined #angularjs
[04:05:56] <dseminara> Hello Everybody
[04:05:57] <dseminara> !
[04:06:15] *** Ir1sh has quit IRC
[04:07:01] <dseminara> I know this can sound a dumb question, but where is the best place to put UI logic ?
[04:07:23] <dseminara> (for example, I have three panels, each of 3 buttons open each panel and close all others)
[04:08:50] <raphael> ngoyal: ok, it's complicated, but let me try... thanks!!!!
[04:09:23] *** rho has joined #angularjs
[04:09:25] <ngoyal> anybody following this conversation, am i wrong? please let me/us know
[04:09:27] *** sdouglas has joined #angularjs
[04:09:45] <ngoyal> don't want to spread bad info around
[04:10:00] *** Alina-malina has quit IRC
[04:10:58] *** Alina-malina has joined #angularjs
[04:10:59] *** nickpellegrino has joined #angularjs
[04:11:12] <zelrik> dseminara, routes or controllers
[04:11:13] <raphael> ngoyal: there's a way to call a function directly from a service and use the data retrievd on view?
[04:11:24] <zelrik> a controller most likely
[04:11:41] <dseminara> zelrik, thanks!
[04:11:51] *** dman777 has joined #angularjs
[04:11:56] <dman777> http://bpaste.net/show/S9kD3IIySP6FFO2iqPId/ trying to make service to where I can call Date() from the template...would this be correct?
[04:12:16] *** chrislerum has quit IRC
[04:12:31] <ngoyal> raphael: you can inject a service, which knows about $rootScope. setting the value actually just calls $rootScope.$broadcast() and then in the controller(s) that cares about the variable, you can listen for it via $scope.$on
[04:12:56] <dseminara> I have a coworker tellme it's wront to put thar logic on controllers, and I believe on them (I doesn't want to put that logic on controllers nor directives)
[04:13:01] *** QuantumNinja has joined #angularjs
[04:13:03] <ngoyal> im not sure how to watch a service change without creating a new scope or registering your own listeners
[04:13:03] *** fraenzn has quit IRC
[04:13:04] *** The_HunterT has joined #angularjs
[04:13:09] <zelrik> dseminara, actually, could be a directive also, it depends on the details
[04:13:36] <raphael> ngoyal: hmmm ok..
[04:13:43] <dman777> would there be anything wrong with attaching a function to rootScope if all controllers will use it?
[04:13:51] *** m0t0r has quit IRC
[04:13:57] *** pkayfire_ has quit IRC
[04:13:57] <The_HunterT> I realize this is a very open question and differs among people but how long did it take you to learn Angular? Did you have any background in MVC before?
[04:14:10] *** nickp has quit IRC
[04:14:13] <dseminara> zelrik, I moved the logic from directive, because it was too imperative (something like $(".button").click(function() { $(".panel").addClass("open" ...)
[04:14:26] <zelrik> dseminara, DOM manipulation is done in directives, scope manipulation in controllers (and indirectly via services)
[04:14:38] *** spencercarnage has quit IRC
[04:14:50] <dman777> dseminara: directives for element manipulation/creation..and services for logic/model manipulation.
[04:14:53] <zelrik> .click methods go in directives
[04:15:14] <dseminara> I removed the dom manipulation for directive, and added logic on controllers
[04:15:16] *** patrickc_ has joined #angularjs
[04:15:28] *** mguillech has joined #angularjs
[04:15:34] *** sir_pinecone has joined #angularjs
[04:15:37] <dseminara> (instead of using dom manipulation on click, I implemented a stateVariable for the panel and ng-class that)
[04:15:44] *** Ymesio has quit IRC
[04:15:50] <ngoyal> The_HunterT: im still learning it
[04:15:59] *** Destos has quit IRC
[04:16:04] *** QuantumN_ has quit IRC
[04:16:11] <zelrik> the only logic you want in a controller has to do with the scope
[04:16:11] <zelrik> and $on methods
[04:16:12] <dseminara> is alwaywa preferable do that kind of things ?, is ok to avoid dom manipulation where posibble ?
[04:16:30] <zelrik> $scope.$on('something', function(){ $scope.myService.action(); });
[04:16:45] <dseminara> got it
[04:16:49] <zelrik> NEVER DO DOM MANIP IN CONTROLLER
[04:16:52] <dseminara> I will rewrite the question
[04:17:00] <The_HunterT> ngoyal: How long did it take you to be competent enough to list in on your resume?
[04:17:02] <dman777> would there be anything wrong with attaching a function to rootScope if all controllers will use it?
[04:17:02] <dseminara> of course, I know, dom manipulation on cotrller is wrong
[04:17:35] *** BillCriswell has joined #angularjs
[04:18:13] <dseminara> I am right, if I say doing a little logic on controller is preferable before doing dom manipulation on custom directive ?
[04:18:24] <ngoyal> i guess by the time i look for a new job ill list it ;) i could probably list it now and talk about it in an interview. dive in with a few projects and you'll be better at it after the 2nd one
[04:18:36] <zelrik> dseminara, you know a directive can have its own controller right?
[04:18:46] <dseminara> nope :(
[04:18:48] <The_HunterT> ngoyal: Recommend projects, where to learn?
[04:18:48] *** sdouglas has quit IRC
[04:18:52] <zelrik> thing is only do scope related stuff with it
[04:18:57] *** dk01 has joined #angularjs
[04:19:12] *** TheAceOfHearts has quit IRC
[04:19:16] <ngoyal> the 1st project is always just learning and hacking.. 2nd and beyond is where you get better
[04:19:16] <zelrik> that s all what a controller should do
[04:19:17] <dseminara> so, it doesnt sound so wrong implementing ui logic on directive ?
[04:19:19] <zelrik> update the scope
[04:19:20] *** sdouglas has joined #angularjs
[04:19:32] <zelrik> and catch emit/broadcast events
[04:19:35] *** patrickc_ has quit IRC
[04:19:37] <ngoyal> The_HunterT: plenty of videos/sample code/tutorials can be found via google
[04:19:48] *** darrin has joined #angularjs
[04:20:05] <dseminara> I understand now the magic of angular is avoiding doing a lot of dom manipulation and wrting declarative when/where possible
[04:20:05] <ngoyal> if you have something you are interested in building, that's a good start. or something you've already built that you want to try converting
[04:20:30] <The_HunterT> Yeah, I went through Angular's tutorial, I'm doing the Thinkster page now. Is there anything that's above everything else?
[04:20:38] <ngoyal> dseminara: i implement a fair amount of ui logic in my directives if needed.
[04:20:41] <zelrik> dseminara, angularJS is very different from the 'jquery way'
[04:20:48] <zelrik> even though you can use both at the same time
[04:20:52] <dseminara> yes, that is what I mean
[04:20:58] <ngoyal> The_HunterT: i can't really speak to it, i learn better by just diving in and googling while hacking
[04:21:01] <dseminara> is the first thing a learn about the angular way
[04:21:17] <dseminara> avoiding jQuery, trying to be declarative
[04:21:22] *** mguillech has quit IRC
[04:21:25] <dseminara> I am defining object states
[04:21:26] <The_HunterT> ngoyal: That's typically how I learn. Thanks!
[04:21:41] <zelrik> even after understanding that, it still hard to get away from old habits
[04:21:43] <raphael> zelrik: but, like ion-view and list's each one has own scope, how to control this on my controller?
[04:21:48] <dseminara> "the panel is open" and then I am using ng-class conditional to the state of the panel
[04:21:53] *** DrMabuse has joined #angularjs
[04:22:00] <raphael> zelrik: I can't figure out.
[04:22:01] <zelrik> raphael, you got some code to show?
[04:22:06] <dseminara> a think it is prefereable to doing "addClass/removeClass"
[04:22:11] <dseminara> (I am right ?)
[04:22:17] <zelrik> nop
[04:22:17] *** frkout has joined #angularjs
[04:22:31] <zelrik> I never used it, besides for animating stuff
[04:22:42] *** Alina-malina has quit IRC
[04:22:46] <raphael> I'll put my code on github, one moment
[04:22:55] <dseminara> really?
[04:23:06] <zelrik> you do ng-class="{something: Condition }"
[04:23:17] <dseminara> yeah
[04:23:18] <zelrik> where the Condition is a scope variable
[04:23:24] *** BillCriswell has quit IRC
[04:23:25] <dseminara> yes
[04:23:39] <dseminara> is that a bad practice ?
[04:23:41] <zelrik> you update your app state with the scope
[04:23:44] *** stirlingw has joined #angularjs
[04:23:49] <zelrik> whenever possible
[04:23:56] *** patrickarlt has quit IRC
[04:24:00] *** sdouglas has quit IRC
[04:24:04] <zelrik> addClass is the jquery way
[04:24:18] <zelrik> mostly
[04:24:23] <dseminara> I am avoiding the jquery way
[04:24:32] *** patrickarlt has joined #angularjs
[04:24:34] <zelrik> so avoid addClass if you can
[04:25:02] <zelrik> I used it at the begining to animate something
[04:25:18] <dseminara> got it
[04:25:20] <zelrik> but that could be refactored, maybe
[04:25:26] *** Reskp has joined #angularjs
[04:25:29] *** willmarshall has quit IRC
[04:25:47] <zelrik> there are use cases for it
[04:25:50] <zelrik> it s just rare
[04:26:11] <dseminara> I say it wrong , I say "a think it is prefereable to doing "addClass/removeClass", and I wanted to say the inverse "a think it is prefereable from doing "addClass/removeClass""
[04:26:17] *** nickpellegrino has quit IRC
[04:26:18] *** mary5030 has joined #angularjs
[04:26:22] <dseminara> :(
[04:26:33] *** DrMabuse has quit IRC
[04:26:39] *** annlewis has joined #angularjs
[04:26:59] <dseminara> I really know using jQuery is an small from the angular point of view, doing unnecesary dom manipulation an antipattern
[04:27:07] <dseminara> *an smell
[04:27:10] *** Destos has joined #angularjs
[04:27:12] *** Reskp_ has joined #angularjs
[04:27:24] *** cmoneylulz has joined #angularjs
[04:27:41] <dseminara> What I really want to know, Is where Is better to put the UI logic
[04:28:10] *** sdouglas has joined #angularjs
[04:28:23] *** TorpedoSkyline has joined #angularjs
[04:28:25] *** annlewis_ has joined #angularjs
[04:28:35] *** DerekPerkins_ has joined #angularjs
[04:28:40] *** LuxuryMode has joined #angularjs
[04:28:49] <dseminara> example: I click that button (i am using ng-click="togglePanel()"), and the panel toggle (I am using ng-class="{open: displayPanel}" )
[04:28:57] *** suffice has quit IRC
[04:29:03] *** patrickarlt has quit IRC
[04:29:07] <dseminara> where is the best place to implement togglePanel function ?
[04:29:23] *** mguillech has joined #angularjs
[04:29:24] <zelrik> either in a controller or service
[04:29:30] <zelrik> normally
[04:29:33] *** Reskp has quit IRC
[04:29:37] *** suffice has joined #angularjs
[04:29:53] *** Tidwell has joined #angularjs
[04:30:22] *** frkout_ has joined #angularjs
[04:30:30] *** DerekPerkins has quit IRC
[04:30:37] <dseminara> controller or services are the possible best choices ?
[04:30:51] *** atomical has quit IRC
[04:31:08] *** annlewis has quit IRC
[04:31:20] <dseminara> if togglePanel should has access to scope to change displayPanel variable, should it be on controller, right ?
[04:31:33] *** Reskp_ has quit IRC
[04:31:46] <dseminara> doesn't make sense to put that logic on services (???)
[04:32:48] *** boptop has quit IRC
[04:32:50] *** Hackwar has joined #angularjs
[04:33:03] *** xavia has joined #angularjs
[04:33:03] *** annlewis_ has quit IRC
[04:33:36] *** mguillech has quit IRC
[04:33:41] *** frkout has quit IRC
[04:34:05] *** aniM has quit IRC
[04:34:08] *** Hackwar1 has quit IRC
[04:34:36] *** cocotton has joined #angularjs
[04:34:48] *** dhcar_AFK is now known as dhcar
[04:35:40] *** bmac has quit IRC
[04:35:52] *** dbouwman has joined #angularjs
[04:36:31] *** danielpquinn has joined #angularjs
[04:36:48] <cocotton> Hey channel. I'm really new in web dev and I'm currently learning angularjs. Now, I was thinking about something which I'm not sure of how to fix. Let's say I have a <div> with multiple css attributes (color, shapes, etc). I'd like the user to be able to define each of these, but now the problem I can't solve is, how could I actually modify a css file so that the modifications from the user would be permanent? (le
[04:36:48] <cocotton> ts assume we have only 1 user).
[04:37:12] <cocotton> Would it be possible to send an ajax call to a javascript file?
[04:37:34] *** kalehv has quit IRC
[04:37:50] *** davesidious_ has joined #angularjs
[04:37:53] *** recurrence has quit IRC
[04:38:05] *** davesidious has quit IRC
[04:38:07] *** kalehv has joined #angularjs
[04:38:13] <dman777> http://bpaste.net/show/yulZI1aAGQzpFATJ9nNw/ blah....
[04:38:24] *** tfennelly has joined #angularjs
[04:38:30] <dman777> setTimeout(function() {} ) no good in a service?
[04:39:42] *** TyrfingMjolnir_ has joined #angularjs
[04:39:44] *** TyrfingMjolnir has quit IRC
[04:39:45] *** TyrfingMjolnir_ is now known as TyrfingMjolnir
[04:40:11] *** UniBot has quit IRC
[04:41:04] *** danielpquinn has quit IRC
[04:41:29] *** Gooder has joined #angularjs
[04:42:13] <dman777> could I return $scope.$watchCollection(function(){} from a service to a controller? or does it have to be in the controller natively?
[04:42:54] *** kalehv has quit IRC
[04:43:03] *** tfennelly has quit IRC
[04:43:08] <dman777> cocotton: do you want the changes to reflect in all clients or just that one?
[04:43:51] <cocotton> dman777: For the moment, just that one. I'm really trying to understand what would be the right way to modify a server file
[04:44:20] <dman777> cocotton: that would be very risky security wise.
[04:44:23] <cocotton> I'm pretty sure I could do this with node.js, yet I'm not certain if it is really necessary
[04:44:44] <dman777> cocotton: your best bet is single client only for that session rather than all client see the clients custom changes
[04:45:16] <dman777> cocotton: but anyways....use raw javasript to do that. it's not hard to do what you want to do...dynamically modify elements css properties.
[04:45:27] *** postitnote has joined #angularjs
[04:45:30] <dman777> cocotton: in that clients session...not writing to css file
[04:45:32] <cocotton> dman777: I agree. I was assuming at this point there is only 1 user that will ever access that "tool".
[04:45:46] <dman777> cocotton: node is my persnonal favorite.
[04:46:08] *** chrislerum has joined #angularjs
[04:46:34] *** joshontheweb has quit IRC
[04:46:37] <dman777> cocotton: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/JavaScript
[04:47:16] *** sdouglas has quit IRC
[04:47:28] <cocotton> What I had in mind is really : There is a page with a square (default : blue). An admin can sign it and then have access to a pannel in which he can input a new color for the square. When saved, the modificaiton are made in the css file. So anyone who's looking at the square will see the new color (after a refresh for simplicity)
[04:48:43] <dman777> cocotton: you would want to use node with websockets for that. but that is pretty much hard for a newbie. start with the other. you have to use the other code I linked you regardless
[04:48:58] *** TyrfingMjolnir has quit IRC
[04:49:15] <raphael> thanks again zelrik if my code work's i promise to back here or post the solution somewhere..
[04:49:44] *** jaitaiwan has quit IRC
[04:49:47] *** bmac has joined #angularjs
[04:50:43] <cocotton> dman777: thx for that link :) I'm a linux sysadmin IRL with ruby background learning web dev. socket.io with node seems really nice
[04:50:53] *** nodeman has joined #angularjs
[04:51:00] *** Yahkob has quit IRC
[04:51:16] *** bmac has quit IRC
[04:51:32] <ngoyal> cocotton: how do you plan to build the sign in functionality?
[04:52:14] *** bmac has joined #angularjs
[04:52:18] <ngoyal> raphael: what was the solution you guys came up with
[04:52:25] <cocotton> I don't really plan to build the product I was talking about. I was asking really just to understand the process
[04:52:29] *** TyrfingMjolnir has joined #angularjs
[04:52:29] *** wxo has quit IRC
[04:53:05] <raphael> ngoyal: put everything on service :D and binding to $scope on controller..
[04:53:22] *** bmac has quit IRC
[04:53:27] <raphael> ngoyal: I'll do this right know and tell the result's
[04:53:40] <raphael> but seens to work
[04:53:45] *** fold has quit IRC
[04:54:10] *** TorpedoSkyline has quit IRC
[04:54:34] *** jamto11 has joined #angularjs
[04:54:48] *** patrickarlt has joined #angularjs
[04:56:35] *** patricka_ has joined #angularjs
[04:56:38] *** helen__ has quit IRC
[04:57:14] *** Jdubs has quit IRC
[04:57:21] <dman777> setTimeout(function() {} ) no good in a service????
[04:57:29] *** cmoneylu_ has joined #angularjs
[04:57:36] *** rchavik has joined #angularjs
[04:58:39] *** ronaldinhoA20 has joined #angularjs
[04:59:04] <ronaldinhoA20> hi everybody
[04:59:06] *** jamto11 has quit IRC
[04:59:08] <ronaldinhoA20> i'm a newbie
[04:59:24] <ronaldinhoA20> i want to research about angularjs
[04:59:35] *** patrickarlt has quit IRC
[04:59:53] *** ekinmur has quit IRC
[05:00:01] *** charuru has quit IRC
[05:00:02] *** cmoneylu_ has quit IRC
[05:00:10] <ronaldinhoA20> i want to know where could i begin
[05:00:13] *** kroogs has joined #angularjs
[05:00:25] <The_HunterT> ronaldinhoA20: angularjs.org
[05:00:38] <The_HunterT> Then: Google.
[05:00:38] <ngoyal> +1
[05:00:38] *** cmoneylulz has quit IRC
[05:01:07] *** vonnegut has quit IRC
[05:01:17] *** benjf has joined #angularjs
[05:01:21] *** patricka_ has quit IRC
[05:01:23] *** arrty has joined #angularjs
[05:01:51] *** ronaldinhoA20 has quit IRC
[05:01:55] *** darrin has quit IRC
[05:02:20] *** cmoneylulz has joined #angularjs
[05:02:34] <cocotton> dman777: The more I read about angular, the more I like it. It's really neat!
[05:02:57] <cocotton> I still hesitating about which between angular and ember I'll be using :P
[05:03:46] <The_HunterT> Acutally cocotton I was doing research on that. Let me show you my stats so far.
[05:03:57] <cocotton> The_HunterT: Nice!
[05:05:05] *** nemothekid has quit IRC
[05:05:08] *** daivyk has quit IRC
[05:05:24] *** kroogs has quit IRC
[05:05:56] <The_HunterT> # of GitHub Repos with X in name: Angular 24431, BackBone 13721, Ember 6037
[05:06:06] <robdubya> more learnery https://github.com/jmcunningham/AngularJS-Learning
[05:06:40] <The_HunterT> # of Reddit readers: Angular 5415, BackBone 553, Ember 1117
[05:07:07] <The_HunterT> Google Trends: Angular eclipses everthing by a LARGE majority
[05:07:26] <raphael> ronaldinhoA20: so pra saber, brasileiro?
[05:07:40] <The_HunterT> I realize that this is very subjective data
[05:08:11] *** chrisbirk has joined #angularjs
[05:08:12] <cocotton> The_HunterT: Wow! Still pretty interesting! I was really thinking ember and angular were toe to toe!
[05:08:35] *** ekinmur has joined #angularjs
[05:08:41] <The_HunterT> Ember is extremly young.
[05:08:58] <The_HunterT> Age wise: Backbone > Angular > Ember
[05:09:09] *** darrin has joined #angularjs
[05:09:24] <cocotton> Ohhh that's very interesting!
[05:09:54] *** earthquake has quit IRC
[05:10:31] *** bmac has joined #angularjs
[05:11:07] <chovy> > Reactjs
[05:11:19] *** Aliks has quit IRC
[05:12:01] *** mguillech has joined #angularjs
[05:12:05] *** mindlace has quit IRC
[05:15:50] *** DerekPerkins has joined #angularjs
[05:16:00] *** Yancy has quit IRC
[05:16:06] *** Aliks has joined #angularjs
[05:16:14] *** Yancy has joined #angularjs
[05:16:21] *** TyrfingMjolnir has quit IRC
[05:16:25] *** QuantumN_ has joined #angularjs
[05:16:35] *** mguillech has quit IRC
[05:17:17] *** atomical has joined #angularjs
[05:17:25] *** AnthonyC has quit IRC
[05:17:31] *** fold has joined #angularjs
[05:17:41] *** QuantumNinja has quit IRC
[05:17:55] *** postitnote has quit IRC
[05:17:56] *** Aliks_ has joined #angularjs
[05:18:02] *** cmoneylulz has quit IRC
[05:18:49] *** Aliks_ has quit IRC
[05:20:14] *** LuxuryMode has quit IRC
[05:20:20] *** DerekPerkins_ has quit IRC
[05:20:33] *** Aliks_ has joined #angularjs
[05:20:33] *** subnl2 has left #angularjs
[05:21:08] *** Aliks has quit IRC
[05:21:15] *** fostertheweb has joined #angularjs
[05:22:38] *** DrMabuse has joined #angularjs
[05:24:25] *** jdj_dk_ has joined #angularjs
[05:24:31] *** sdouglas has joined #angularjs
[05:25:34] *** earthquake has joined #angularjs
[05:26:12] *** Reskp has joined #angularjs
[05:26:12] *** Yancy has quit IRC
[05:26:18] *** TorpedoSkyline has joined #angularjs
[05:26:23] *** Yancy has joined #angularjs
[05:26:35] *** annlewis has joined #angularjs
[05:26:47] *** rho has quit IRC
[05:27:19] *** DrMabuse has quit IRC
[05:27:32] *** Ethix has quit IRC
[05:27:32] *** TyrfingMjolnir has joined #angularjs
[05:28:08] *** narutimateum has joined #angularjs
[05:29:12] *** jdj_dk_ has quit IRC
[05:30:04] *** Demego has joined #angularjs
[05:30:26] *** willmarshall has joined #angularjs
[05:31:04] *** Reskp has quit IRC
[05:31:21] *** chrislerum has quit IRC
[05:31:21] *** frkout_ has quit IRC
[05:31:35] *** frkout has joined #angularjs
[05:31:44] *** annlewis has quit IRC
[05:32:35] *** andkan_ has quit IRC
[05:32:55] *** idvb has quit IRC
[05:33:02] *** cmoneylulz has joined #angularjs
[05:33:09] *** andkan_ has joined #angularjs
[05:33:29] *** idvb has joined #angularjs
[05:33:42] *** TorpedoSkyline has quit IRC
[05:34:22] *** jpiasetz has joined #angularjs
[05:34:54] *** Demego has quit IRC
[05:36:11] *** xavia has quit IRC
[05:36:12] *** Yancy has quit IRC
[05:36:21] *** Yancy has joined #angularjs
[05:37:06] *** Demego has joined #angularjs
[05:37:07] *** Aliks_ has quit IRC
[05:37:08] *** danielpquinn has joined #angularjs
[05:37:33] *** idvb has quit IRC
[05:37:34] *** Aliks has joined #angularjs
[05:37:40] *** andkan_ has quit IRC
[05:37:43] *** cocotton has quit IRC
[05:39:30] *** sloria has joined #angularjs
[05:39:45] *** chrislerum has joined #angularjs
[05:39:59] *** jpiasetz has quit IRC
[05:40:28] *** bayousoft has quit IRC
[05:40:47] *** sdouglas has quit IRC
[05:41:51] *** danielpquinn has quit IRC
[05:41:54] *** chrisbirk has quit IRC
[05:42:00] *** LuxuryMode has joined #angularjs
[05:42:08] *** Gambit- has joined #angularjs
[05:43:38] *** Emperor_Earth_ has joined #angularjs
[05:43:42] <LuxuryMode> I have this directive https://www.refheap.com/d04b4708e5e10dede1b3664b8, the sole purpose of which is to be able to pass in a youtube id to some javascript. However, when I build my app with grunt I get "Unexpected token <" somewhere in there. Is there a better/easier way to do this than having that huge string in there?
[05:44:17] *** Cache_Money has joined #angularjs
[05:44:27] *** bmac has quit IRC
[05:45:24] *** in_deep_thought has joined #angularjs
[05:45:39] *** robdubya has quit IRC
[05:46:04] *** Aliks has quit IRC
[05:47:10] *** Emperor_Earth__ has quit IRC
[05:47:47] *** gauravsaini03 has joined #angularjs
[05:48:09] *** hswolff has quit IRC
[05:48:44] *** raphael has left #angularjs
[05:49:08] *** dc_ has quit IRC
[05:49:08] *** idvb has joined #angularjs
[05:49:20] *** atomical_ has joined #angularjs
[05:50:23] <The_HunterT> Okay so correct me if I am wrong: If I am getting a string from a controller and that string changes in the controller the string displayed on the page should update?
[05:51:26] *** darrin has quit IRC
[05:51:27] <LuxuryMode> assuming that string is defined on the $scope, yes
[05:51:57] <LuxuryMode> The_HunterT is it not wokring?
[05:52:03] *** atomical has quit IRC
[05:52:29] *** steffengy has quit IRC
[05:52:30] *** steffengy1 has joined #angularjs
[05:52:43] *** nemothekid has joined #angularjs
[05:52:54] *** bayousoft has joined #angularjs
[05:52:55] *** idvb has quit IRC
[05:53:12] <The_HunterT> No, I think I may be asking the wrong question
[05:53:48] *** kalehv has joined #angularjs
[05:54:00] *** atomical has joined #angularjs
[05:55:21] *** moritzs has quit IRC
[05:55:33] *** atomical_ has quit IRC
[05:55:37] <LuxuryMode> is something not working as you expect?
[05:55:54] <The_HunterT> Let me post a JSFiddle
[05:56:29] *** zeph__ has quit IRC
[05:56:40] *** patrickarlt has joined #angularjs
[05:56:43] *** chakkimatti has joined #angularjs
[05:57:27] *** Mouzi has joined #angularjs
[05:57:33] *** sgnl has joined #angularjs
[05:57:39] *** lenswipe has quit IRC
[05:57:41] *** frkout has quit IRC
[05:57:46] *** rmichnik has quit IRC
[05:58:03] *** instence has joined #angularjs
[05:58:15] *** frkout has joined #angularjs
[05:58:30] *** sir_pinecone has quit IRC
[05:58:48] <LuxuryMode> k
[05:58:57] *** instence_ has quit IRC
[05:59:41] *** ustunozgur has joined #angularjs
[05:59:43] *** kennbrodhagen has joined #angularjs
[06:00:21] *** heidi has joined #angularjs
[06:00:36] *** kroogs has joined #angularjs
[06:01:12] *** patrickarlt has quit IRC
[06:02:38] *** chrisbirk has joined #angularjs
[06:02:51] *** RootWeiller has quit IRC
[06:02:57] *** Nizumzen has joined #angularjs
[06:03:51] <The_HunterT> http://jsfiddle.net/2BH7J/
[06:03:56] *** massi_223 has joined #angularjs
[06:04:03] *** ustunozgur has quit IRC
[06:04:40] *** kennbrodhagen has quit IRC
[06:05:08] <nibster> anyone working with angularjs and jquery?
[06:05:32] *** kroogs has quit IRC
[06:05:48] *** ekinmur has quit IRC
[06:05:49] <nibster> because when i integrate ng-repeat in piece of code ( div container ) which is processed by jQuery function (3rd party library) the interpolation or something else is not working ..
[06:05:52] <narutimateum> can i ask knockout/prototype/jquery question
[06:06:14] *** jeremymarc has quit IRC
[06:07:32] *** InezK_away is now known as InezK
[06:07:49] *** morenoh149 has quit IRC
[06:08:57] <LuxuryMode> The_HunterT what's the question?
[06:09:29] <The_HunterT> If I update the string in the controller does the string in the view change without a reload. It doesn't look like it
[06:09:44] *** cmoneylulz has quit IRC
[06:09:51] <LuxuryMode> yes it does, but you're not changing the scope at all
[06:09:53] *** Milanito has joined #angularjs
[06:09:54] <LuxuryMode> check this: http://jsfiddle.net/2BH7J/1/
[06:10:07] <LuxuryMode> i bind the input to the name on the $scope and it updates in realtime as i type
[06:10:21] *** heidi has quit IRC
[06:10:33] *** bmac has joined #angularjs
[06:11:01] <The_HunterT> Yeah I am aware you can do that, I want it to work like that except from the controller. Is that possible?
[06:11:04] <LuxuryMode> The_HunterT http://jsfiddle.net/2BH7J/2/ or that
[06:11:21] <LuxuryMode> The_HunterT of course it's possible, but you need to do something in the controller to change that variable
[06:11:30] <LuxuryMode> like fetch some data and set that var
[06:11:33] <LuxuryMode> or whatever
[06:11:40] <LuxuryMode> look at my last example
[06:11:53] <LuxuryMode> that timeout can be replaced with fetching data or anything logic that will change that variable
[06:12:34] <LuxuryMode> or any other logic*
[06:12:38] *** mguillech has joined #angularjs
[06:12:42] <The_HunterT> Okay, thanks
[06:12:47] *** mguillech has quit IRC
[06:12:48] *** mguillech has joined #angularjs
[06:15:10] *** patrickc_ has joined #angularjs
[06:17:17] *** Alina-malina has joined #angularjs
[06:17:57] *** mguillech has quit IRC
[06:18:08] *** tfennelly has joined #angularjs
[06:19:17] *** patrickc_ has quit IRC
[06:20:20] *** HACKING-FACEBOOK has joined #angularjs
[06:20:23] *** chrislerum has quit IRC
[06:20:46] *** ascarter has quit IRC
[06:21:28] *** willmarshall has quit IRC
[06:22:22] *** Diaoer has joined #angularjs
[06:23:02] *** tfennelly has quit IRC
[06:23:05] *** Diaoer has quit IRC
[06:23:07] *** roymiloh has joined #angularjs
[06:23:14] *** Pilate has quit IRC
[06:23:22] *** DrMabuse has joined #angularjs
[06:23:50] *** Guest75790 has joined #angularjs
[06:24:21] *** pdillinger has joined #angularjs
[06:24:34] *** mange has quit IRC
[06:24:35] *** mary5030 has quit IRC
[06:25:00] *** ascarter has joined #angularjs
[06:26:06] *** RandomStranger has joined #angularjs
[06:26:12] *** bayousoft has quit IRC
[06:26:41] *** davedev2_ has joined #angularjs
[06:26:41] *** Yancy has quit IRC
[06:26:42] *** annlewis has joined #angularjs
[06:26:47] *** wolf2k_huh has joined #angularjs
[06:26:51] *** Yancy has joined #angularjs
[06:26:52] *** mamarilmanson has joined #angularjs
[06:26:57] *** Reskp has joined #angularjs
[06:27:04] *** RandomStranger- has quit IRC
[06:28:00] *** DrMabuse has quit IRC
[06:28:23] *** mamarilmanson has quit IRC
[06:28:30] *** Yahkob has joined #angularjs
[06:28:39] *** davedev24_ has quit IRC
[06:29:04] *** anjumkaiser has joined #angularjs
[06:29:11] *** wolfman2000 has quit IRC
[06:29:37] <massi_223> Hi, a scope variable with same name in two controllers is one variable or two?
[06:29:45] *** Milanito has quit IRC
[06:30:00] *** ngoyal_ has joined #angularjs
[06:30:06] *** btc_panhandler has joined #angularjs
[06:30:17] <snurfery> technically two variables, but they both might refer to the same object
[06:30:41] *** mange has joined #angularjs
[06:30:57] <massi_223> i want to know that it is the same object or two objects
[06:31:03] *** annlewis has quit IRC
[06:31:34] *** Reskp has quit IRC
[06:31:48] <snurfery> might be one, might be two
[06:32:24] *** mamarilmanson has joined #angularjs
[06:32:32] <massi_223> snurfery:lol ..than i need to check
[06:32:52] *** dseminara has quit IRC
[06:32:56] <snurfery> I'm trying to find a link that explains it
[06:32:57] *** ngoyal has quit IRC
[06:33:04] *** roymiloh has quit IRC
[06:33:13] <snurfery> about scope nesting and prototypical inheritance
[06:33:20] *** zumba_addict has joined #angularjs
[06:33:42] *** mamarilmanson has quit IRC
[06:34:03] <snurfery> http://jimhoskins.com/2012/12/14/nested-scopes-in-angularjs.html
[06:34:03] *** mamarilmanson has joined #angularjs
[06:34:22] *** Destos has quit IRC
[06:34:31] *** sloria has quit IRC
[06:34:34] *** ngoyal_ has quit IRC
[06:34:51] *** mamarilmanson has quit IRC
[06:34:52] <snurfery> read it until you understand it 100% and it'll make your life wonderful
[06:34:55] <snurfery> =)
[06:35:05] *** Nizumzen has quit IRC
[06:35:18] *** cujojp has joined #angularjs
[06:35:23] *** mamarilmanson has joined #angularjs
[06:35:36] *** mamarilmanson2 has joined #angularjs
[06:35:40] *** RandomStranger- has joined #angularjs
[06:36:09] *** subnl2 has joined #angularjs
[06:36:10] <cujojp> Hey all really quick one. Any way to bind a string to scope without using data attrs? `scope.title = '@'` <div directive>My Awesome Title</div>
[06:36:11] *** Nguyen has joined #angularjs
[06:36:20] *** dk01 has quit IRC
[06:36:22] *** Destos has joined #angularjs
[06:36:34] *** RandomStranger has quit IRC
[06:36:39] *** KernelCurry has quit IRC
[06:36:56] <cujojp> versus `scope.title = '@title'` <div directive title="My Awesome Title"></div>
[06:37:27] <cujojp> Don't want to use a data attribute for something so simple.
[06:37:54] *** mennea has joined #angularjs
[06:38:04] *** danielpquinn has joined #angularjs
[06:38:06] *** atomical has quit IRC
[06:38:16] *** Destos has quit IRC
[06:38:18] *** in_deep_thought has quit IRC
[06:38:33] <cujojp> Person whom answers gets a free car. :)
[06:38:36] *** BobbieBarker has joined #angularjs
[06:39:16] <zumba_addict> hey guys, today I found ng-bind to perform way better than {{}} Is my observation correct?
[06:39:46] <zumba_addict> I'm thinking of changing all my {{}} and use ng-bind
[06:39:49] *** sloria has joined #angularjs
[06:39:50] <snurfery> yup
[06:39:54] *** mamarilmanson has quit IRC
[06:40:00] <zumba_addict> thanks for the confirmation snurfery ;)
[06:40:23] <snurfery> then in case your js crashes you don't have all these mustaches sprinkled around
[06:40:32] *** sgnl has quit IRC
[06:40:33] <zumba_addict> awesome!
[06:40:33] <snurfery> or if it takes a moment for angular to bootstrap
[06:41:02] *** kalehv has quit IRC
[06:41:21] <BobbieBarker> does anyone know of any known issues with angular straps bs-popover/tooltip directives? I.E http://laravel.io/bin/dXrRY
[06:41:24] <zumba_addict> I have a code that I really hate. I'll put it on my gist. I want ask for an idea in terms of making it as a nice code
[06:41:59] <snurfery> BobbieBarker: they both annoy the crap outta me
[06:42:06] <snurfery> though I'm super grateful someone made them
[06:42:15] <cujojp> is it even possible for me to do one-way text binding without data attributes?
[06:42:19] *** Jdubs has joined #angularjs
[06:42:27] *** chrislerum has joined #angularjs
[06:42:39] *** danielpquinn has quit IRC
[06:42:41] <BobbieBarker> ya most of the time it's smooth running for me and angular-strap but i just hit a rode block and google is offering no answers
[06:42:54] *** Jdubs has joined #angularjs
[06:42:57] <BobbieBarker> angular-straps multi-selects are the SHIT! if you need that sort of thing
[06:43:02] *** arrty has quit IRC
[06:43:06] <BobbieBarker> i use them a lot
[06:43:27] <cujojp> Guess not. :(
[06:43:37] *** arrty has joined #angularjs
[06:43:43] *** Emperor_Earth__ has joined #angularjs
[06:43:44] *** benschwarz has quit IRC
[06:43:46] * cujojp cries in corner of #angularjs room
[06:44:01] <snurfery> oh I'm a jerk, I was thinking of UI Bootstrap
[06:44:11] <snurfery> I haven't used angular-strap
[06:44:30] <zumba_addict> here it is snurfery. I wrote it only today. On the html, there are 4 small graphs and below each graph shows the average, total and device connected. That's why I have 4 different scope variables. However, I don't like how the code looks. https://gist.githubusercontent.com/c0debreaker/cf221dfd358c515c9cf2/raw/13df62fbdc8493ffa2510d1cd04bb4b21f23495c/some.js
[06:44:43] <Nguyen> hi
[06:44:59] *** Nguyen has quit IRC
[06:45:12] <cujojp> O_o
[06:45:13] *** dbouwman has quit IRC
[06:45:24] <snurfery> ah, I'm probably not gonna look at that sorry, I'm chillaxin' and surfing the web right now
[06:45:29] <zumba_addict> :D
[06:46:06] <BobbieBarker> i think angular strap is a better project than ui.bootstrap but i use the datepicker off of ui
[06:46:36] <zumba_addict> ah, that reminds me that I need to customize datepicker
[06:46:44] <zumba_addict> I hope it's possible to change it
[06:46:49] <snurfery> might need to check that out before my project gets too much bigger
[06:47:15] <BobbieBarker> what i would like to do is figure out if there is a better way to configure a Date picker
[06:47:19] *** Emperor_Earth_ has quit IRC
[06:47:19] <BobbieBarker> than setting all those shitty scopes
[06:47:24] <zumba_addict> can we configure datepicker so that we only select month and not specific dates?
[06:47:28] <BobbieBarker> like the 5 different scopes or what ever ui datepicker wants
[06:47:34] *** Gathri has joined #angularjs
[06:47:36] *** xastey has quit IRC
[06:47:42] <snurfery> ouch
[06:47:54] <BobbieBarker> uh you could configure it so that the ng-model holds the month
[06:47:57] <BobbieBarker> so they can click where ever
[06:48:01] <BobbieBarker> but the data is just the month
[06:48:07] <BobbieBarker> thats easy
[06:48:20] <zumba_addict> ok
[06:48:21] *** arrty has quit IRC
[06:48:24] <BobbieBarker> but if you only want to let the user select a month why not use a drop box or something
[06:48:25] <BobbieBarker> simpler
[06:48:31] <BobbieBarker> and then use moment to get the correct year
[06:48:39] <zumba_addict> k
[06:48:45] <BobbieBarker> if all you want is a month a date picker is kind of over kill
[06:48:59] <zumba_addict> but on the same screen, i should also be able to select a specific date
[06:49:13] <BobbieBarker> ?
[06:49:17] <zumba_addict> i have a dropdown on the left side of datepicker which will allow user to select month or day
[06:49:36] <BobbieBarker> what is the relationship between the data
[06:49:38] <zumba_addict> so if user selects month, datepicker should only show months
[06:49:53] <BobbieBarker> thats extra buttons that don't serve a purpose
[06:50:04] <BobbieBarker> if the user wants to select a month they'll know that ahead of time
[06:50:04] <zumba_addict> however, I can change it using ng-switch
[06:50:29] <zumba_addict> ok
[06:50:30] <BobbieBarker> it's not like they'll see your config button for months and have an epiphany about the way time works
[06:50:39] *** Aliks has joined #angularjs
[06:50:45] <BobbieBarker> unless there is something really particular about the way your app works
[06:50:51] <BobbieBarker> that makes that super necessary
[06:51:09] <zumba_addict> ok, let's assume I get rid of Month/Day dropdown. How will the calendar be used if the user wants to use Month
[06:51:21] <BobbieBarker> what does this "month" do
[06:51:25] <zumba_addict> yes, monthly graph report and daily graph report
[06:51:25] *** dylanNirvana has joined #angularjs
[06:51:26] <BobbieBarker> what is the significance of choosing a month
[06:51:52] <BobbieBarker> why not just let them select an actual date off of a date picker and then generate the daily report for that day and the monthly report and the same time?
[06:52:04] <BobbieBarker> at the same time*
[06:52:10] <zumba_addict> the PO didn't want it that way
[06:52:18] <BobbieBarker> well he's a fucking idiot
[06:52:20] <zumba_addict> so our designer made 2 different layouts
[06:52:37] <BobbieBarker> have a toggle button that turns the monthly report on off? and just have one date picker
[06:52:47] <zumba_addict> yes, that's what I implement
[06:52:52] <zumba_addict> implemented
[06:52:59] <BobbieBarker> problem solved
[06:53:03] <zumba_addict> but I haven't configured datepicker yet
[06:53:06] <cujojp> Hey guys… So in conclusion, before I call it a night.
[06:53:11] <cujojp> You cannot bind a string to scope without using a data attribute? So for example I cannot do ‘<div myDirective>Pizza Party 🍕</div>` and then `scope.title = ‘@‘ // returns a party`
[06:53:37] <cujojp> It will always need to be <div myDirective title="pizza party 🍕"></div> ??
[06:53:42] *** mrogne has quit IRC
[06:53:52] <zumba_addict> i still am using 30 days grid of a month. And user won't be able to tell if he likes monthly or daily report when he sees the 30 day calendar
[06:54:08] *** anjumkaiser has quit IRC
[06:54:09] <BobbieBarker> zumba addict config on date picker is easy
[06:54:10] *** mmitchell has quit IRC
[06:54:13] *** brianturgeon has joined #angularjs
[06:54:16] <zumba_addict> oh ok
[06:54:41] <zumba_addict> so it's possible to configure it so that we can only choose months?
[06:54:48] <BobbieBarker> just set it up and then have a toggle for monthly report and if montly report === true then give the monthly report for that month in conjunction with the daily report selected by the user
[06:54:55] *** stirlingw has quit IRC
[06:55:02] *** rideau has quit IRC
[06:55:18] <BobbieBarker> what you can do zumba is obfuscate the date selection
[06:55:21] <BobbieBarker> so on the format
[06:55:28] *** dylanNirvana has quit IRC
[06:55:48] <zumba_addict> found this, http://stackoverflow.com/questions/14974394/bootstrap-datepicker-months-and-years-only
[06:55:57] <zumba_addict> not sure if that's what I'm looking for. I'll read it again
[06:56:08] <zumba_addict> ah, viewMode: "months",
[06:56:14] <zumba_addict> i'll try it now
[06:56:21] *** nezt_ has left #angularjs
[06:56:32] <BobbieBarker> $scope.format = {'MMMM-yyyy'}
[06:56:42] <zumba_addict> yup
[06:56:47] *** ascarter has quit IRC
[06:56:51] <BobbieBarker> ui date picker is cake
[06:56:54] *** jeremymarc has joined #angularjs
[06:56:57] <BobbieBarker> but like i was saying what i don't like about it
[06:57:05] <BobbieBarker> is that it makes you set up like 5-6 scopes
[06:57:09] <BobbieBarker> to configure the date picker
[06:57:15] <BobbieBarker> it would be nice if you could do that with like 1 or 2 scopes
[06:57:22] <zumba_addict> got it
[06:57:41] *** waylon999 has joined #angularjs
[06:58:24] *** bmac has quit IRC
[06:59:03] <BobbieBarker> anyone have any insight on my tooltip/bs-popover issue?
[06:59:08] *** zz_LoRdToLsToI has quit IRC
[06:59:43] *** ustunozgur has joined #angularjs
[07:00:04] *** TheAceOfHearts has joined #angularjs
[07:00:39] *** kroogs has joined #angularjs
[07:01:28] *** nodweber has joined #angularjs
[07:01:36] *** zz_LoRdToLsToI has joined #angularjs
[07:02:12] *** mikaeldice has quit IRC
[07:02:28] *** ustunozgur has quit IRC
[07:02:52] *** Aliks has quit IRC
[07:02:59] *** ustunozgur has joined #angularjs
[07:03:19] *** Jdubs has quit IRC
[07:03:39] *** Jdubs has joined #angularjs
[07:04:20] <massi_223> snurfery: thanks
[07:04:23] *** chrislerum has quit IRC
[07:04:40] *** KernelCurry has joined #angularjs
[07:05:05] *** blueadept has quit IRC
[07:05:14] *** mikehaas763 has joined #angularjs
[07:05:19] *** blueadept has joined #angularjs
[07:05:46] *** kroogs has quit IRC
[07:06:59] *** Jdubs_ has joined #angularjs
[07:07:12] *** subnl2 has quit IRC
[07:07:56] *** sloria has quit IRC
[07:08:00] *** ustunozgur has quit IRC
[07:09:22] *** Jdubs has quit IRC
[07:09:32] *** KernelCurry has quit IRC
[07:10:47] *** anjumkaiser has joined #angularjs
[07:12:28] *** dc_ has joined #angularjs
[07:12:48] *** jdj_dk_ has joined #angularjs
[07:13:47] *** kapeed2091 has quit IRC
[07:14:36] *** waylon999 has quit IRC
[07:15:09] *** mdedetrich has quit IRC
[07:15:30] *** cctom_ has joined #angularjs
[07:16:15] <BobbieBarker> can some one take a look at this error and tell me if you come up with any ideas on whats going on?
[07:16:16] *** dbouwman has joined #angularjs
[07:16:16] <BobbieBarker> http://laravel.io/bin/dXrRY#4
[07:16:22] <BobbieBarker> i'm kind of stumped
[07:17:23] *** jdj_dk_ has quit IRC
[07:20:15] *** tomzx is now known as tomzx`afk
[07:20:34] *** dbouwman has quit IRC
[07:22:39] *** dhcar is now known as dhcar_AFK
[07:23:01] <wafflejock_> BobbieBarker: cannot read property of undefined means the thing you tried to toLowerCase on wasn't a string it's undefined
[07:23:22] <BobbieBarker> i didn't try to lower case anything though dude
[07:23:31] <BobbieBarker> that is coming up on page load
[07:23:32] *** caitp has quit IRC
[07:23:33] *** mogaj has joined #angularjs
[07:24:05] <mogaj> How to bind data inside jquery-steps plugin using angularjs?
[07:24:07] *** DrMabuse has joined #angularjs
[07:24:07] <wafflejock_> BobbieBarker: hmm k well I see you're using ui-bootstrap and angular-strap that may be causing you problems
[07:24:10] *** InezK is now known as InezK_away
[07:24:26] <BobbieBarker> ya i am kind of leaning that direction, but i use other stuff
[07:24:34] <BobbieBarker> i have been using ui.bootstrap and angular strap side by side
[07:24:43] <wafflejock_> BobbieBarker: yeah if they overlap on directive names you can have a bad time
[07:24:43] <BobbieBarker> i didn't hit any snags until i tried using bs-popover
[07:25:12] <wafflejock_> BobbieBarker: I would look at angular-strap:3147 to see what it's doing on that line
[07:25:29] <BobbieBarker> i will, i'm doing up a plunker at the moment
[07:25:37] <wafflejock_> looks like ui-bootstrap is calling to use something in angular strap though so my guess is that's not good
[07:25:58] <BobbieBarker> i thought so too, i mostly wanted an outside opinion before i did anything drastic/nuts
[07:26:11] *** raibutera has quit IRC
[07:26:30] <wafflejock_> mogaj: not sure but typically if you're looking to integrate some jQuery DOM manipulation bits you're really wanting to look for or create a directive
[07:26:37] <BobbieBarker> This may sound stupid obvious, but as it is right now we use the entire ui.bootstrap module and only use selected angular strap modules. I'm wondering if we quit using all of ui.boostrap if it would resolve the issues
[07:26:40] *** annlewis has joined #angularjs
[07:26:47] *** treeface has joined #angularjs
[07:27:15] <wafflejock_> mogaj: http://henriquat.re/directives/advanced-directives-combining-angular-with-existing-components-and-jquery/angularAndJquery.html
[07:27:29] *** wdx has quit IRC
[07:27:43] *** Reskp has joined #angularjs
[07:28:15] <wafflejock_> BobbieBarker: yeah if you take things piecewise from each my guess is your less likely to run into issues, wrt to the tooltip it's the basis for other things like pop-over but so long as you are using all the tooltip/pop-over stuff from just one of the libraries you'd more likely be okay
[07:28:49] <wafflejock_> BobbieBarker: personally I would stick with just one and pull in the components I need from the other on a piecewise basis and make sure the pieces I bring over play nice or else just re-write them
[07:28:55] *** DrMabuse has quit IRC
[07:29:10] *** cujojp has quit IRC
[07:29:40] <BobbieBarker> I want to avoid rewriting stuff. I think the problem most definately is the tool tip
[07:29:58] *** Guest75790 is now known as Pilate
[07:30:27] <wafflejock_> mogaj: from the looks of it jquery steps isn't really worth bringing over
[07:30:49] <wafflejock_> mogaj: it's all bits you can achieve pretty easily in angular using a router, ng-class and some css
[07:30:59] *** quellhorst has joined #angularjs
[07:31:01] *** joshontheweb has joined #angularjs
[07:31:20] *** scmx has joined #angularjs
[07:31:20] *** annlewis has quit IRC
[07:31:28] *** treeface has quit IRC
[07:32:04] *** Reskp has quit IRC
[07:34:07] <BobbieBarker> wafflejock_ it's always the obvious answer isn't it? So i changed the way i'm injecting ui.bootstrap so i'm only using the modules i need
[07:34:09] <BobbieBarker> bammo no more conflict
[07:34:49] <wafflejock_> right on
[07:35:26] <wafflejock_> yeah I haven't heard of anyone else mixing the two with success but glad to hear it's working for you and a possibility
[07:35:58] *** restless_being has quit IRC
[07:36:03] <wafflejock_> agree though some of the stuff in angular-strap is missing from ui-bootstrap and vice versa
[07:36:05] *** restless_being has joined #angularjs
[07:36:10] <BobbieBarker> well generally speaking i prefer angular strap over ui bootstrap
[07:36:20] <BobbieBarker> but what i think is letting me get away with it is the way our project is configured
[07:36:31] <BobbieBarker> we don't have like any depdencencies in app.js
[07:36:33] <BobbieBarker> it's all modular
[07:36:44] <BobbieBarker> and config is handled at the modular level
[07:37:10] <BobbieBarker> ironically though ui.bootstrap isn't supposed to be a project wide dependency but it is right now
[07:37:23] <BobbieBarker> not sure if that is letting me get away with what i'm doing or not
[07:37:32] *** partikus has joined #angularjs
[07:37:45] <wafflejock_> cool... I think regarding dependencies it all sort of gets rolled into one based on the transitive dependencies from the main app and last definition "wins" but I'm not positive about that
[07:37:54] *** mary5030_ has joined #angularjs
[07:38:05] <BobbieBarker> but i can tell you that i am using date picker and the modal from ui bootstrap, and tooltip, popover, select, and button from angular strap
[07:38:17] <BobbieBarker> and everything seems to be getting along just fine
[07:38:19] <wafflejock_> nice
[07:38:45] *** danielpquinn has joined #angularjs
[07:38:49] <BobbieBarker> cept for this minor problem that i just smoothed over
[07:39:02] *** blueadept has quit IRC
[07:39:03] *** earthquake has quit IRC
[07:39:28] <wafflejock_> yeah just something to look out for when you've got two libraries trying to do the same thing gotta watch out for the overlaps like this
[07:39:36] <BobbieBarker> yeah for sure
[07:39:48] *** DanBangWTFRajib has joined #angularjs
[07:40:04] <BobbieBarker> i wanted to explore any other possibilities before i made any decisions on the project
[07:40:18] *** skakri has joined #angularjs
[07:40:32] *** danielpq_ has joined #angularjs
[07:40:39] *** danielpquinn has quit IRC
[07:41:28] *** boptop has joined #angularjs
[07:41:49] <LuxuryMode> hmm, i thought the youtube javascript API was supposed to take care of all browser compatibility issues, including mobile..
[07:42:00] <LuxuryMode> anyone know what I need to do to get YT videos to play on mobile?
[07:42:15] *** Alina-malina has quit IRC
[07:42:31] <wafflejock_> LuxuryMode: typically it does wrok
[07:42:32] <wafflejock_> work*
[07:42:32] *** nodweber has quit IRC
[07:42:37] <mogaj> wafflejock_, thankyou
[07:42:40] *** Milanito has joined #angularjs
[07:42:44] *** Alina-malina has joined #angularjs
[07:42:47] <wafflejock_> mogaj: np
[07:42:48] *** Alina-malina has quit IRC
[07:42:48] *** Alina-malina has joined #angularjs
[07:42:49] <LuxuryMode> wafflejock_ all i see is blank transparent area where the video should be
[07:42:57] *** Reskp has joined #angularjs
[07:43:05] *** Reskp has joined #angularjs
[07:43:05] <wafflejock_> LuxuryMode: I have one embedded here http://shanklandfinancial.com
[07:43:32] *** Emperor_Earth__ has quit IRC
[07:43:47] *** Emperor_Earth__ has joined #angularjs
[07:44:02] <wafflejock_> LuxuryMode: I'm using a directive so the thing gets embedded properly on page loads... it also deals with vimeo and a few other services
[07:44:20] <wafflejock_> module is called videosharing-embed
[07:44:45] *** shoelessone has joined #angularjs
[07:44:46] *** danielpq_ has quit IRC
[07:44:55] <LuxuryMode> hmm wafflejock_ i have this crazy directive: https://www.refheap.com/378b721dd155d2ba2d27498b5
[07:45:34] <wafflejock_> LuxuryMode: this is the same one I'm using http://ngmodules.org/modules/ng-videosharing-embed
[07:45:48] <wafflejock_> LuxuryMode: perhaps the embed has a problem when the interpolation hasn't yet been processed
[07:45:57] <LuxuryMode> wafflejock_ right. could be
[07:46:41] <LuxuryMode> so i may have the same problems even if i use ng-videosharing-embed then
[07:46:46] <LuxuryMode> bc i dont have static video ids
[07:47:12] <LuxuryMode> but i guess i guess that would allow me to use ng-href?
[07:47:13] *** blueadept has joined #angularjs
[07:47:13] *** blueadept has joined #angularjs
[07:47:23] *** stirlingw has joined #angularjs
[07:47:37] *** dcherman2 has joined #angularjs
[07:47:39] *** sneakertack has joined #angularjs
[07:47:54] <wafflejock_> LuxuryMode: I think I tweaked my local copy to deal with the URL being a variable <a url="selectedVideo" embed-video theme="light" color="white"></a>
[07:47:56] *** Reskp has quit IRC
[07:48:18] <LuxuryMode> what did you have to tweak?
[07:48:21] <wafflejock_> the previous/next buttons just update the selectedVideo from an array
[07:48:44] *** dancek has quit IRC
[07:49:12] <wafflejock_> LuxuryMode: I think this is all I fiddled with http://paste.ubuntu.com/7740398/
[07:49:33] <wafflejock_> was still at the beginning of understanding directives when I dropped it in so I don't think I touched anything else
[07:49:52] <LuxuryMode> hmm
[07:50:03] <LuxuryMode> i dont understand the ng-videosharing-embed examples
[07:50:15] <LuxuryMode> why are they <a> tags?
[07:50:22] *** zwacky has joined #angularjs
[07:50:27] *** dcherman has quit IRC
[07:50:31] <wafflejock_> yeah not really sure why they went with thtat
[07:50:32] <wafflejock_> that*
[07:50:47] <LuxuryMode> is that supposed to embed a video?
[07:50:54] *** mdix has joined #angularjs
[07:50:57] <wafflejock_> LuxuryMode: it does
[07:50:59] *** Alina-malina has quit IRC
[07:51:01] <LuxuryMode> cuz it doesnt for me
[07:51:06] <LuxuryMode> i installed the module
[07:51:15] <wafflejock_> the directive replaces the a with an embed
[07:51:15] <LuxuryMode> and added <a href="http://www.youtube.com/watch?v=LOKyEt36Kjc" embed-video controls=0>play video</a>
[07:51:25] *** Alina-malina has joined #angularjs
[07:51:32] <wafflejock_> install the module add the js add the dependency in your main module then use the directive
[07:51:42] *** dancek has joined #angularjs
[07:51:58] *** caitp has joined #angularjs
[07:51:59] <wafflejock_> if you don't see it being loaded drop a debugger; line inside the directive definition script (one top level one in the link function) then you can see that it is defined and called
[07:52:01] <LuxuryMode> good point, forgot to add the module to my app. doh
[07:52:06] <BobbieBarker> wafflejock_ kind of a fact checking question for me: http://mgcrea.github.io/angular-strap/##popovers where it says you can use a custom template. I can write one of those and have my ng-model and input fields defined in there amirite?
[07:52:25] <BobbieBarker> it's kine of like using a nested view isn't it?
[07:52:40] <wafflejock_> BobbieBarker: sorry not super familiar with angular-strap
[07:52:45] *** PokerAA has joined #angularjs
[07:53:04] <wafflejock_> I've poked at it a bit in the past but they were just out of converting it from jQuery based to pure angular and I haven't really touched it since then
[07:53:05] <BobbieBarker> no worries i was hoping the question wouldn't be framed as being super angular-strap specific
[07:53:28] <LuxuryMode> i never know what the module names are for adding as dependency
[07:53:38] <wafflejock_> BobbieBarker: generally i would say yes what you said sounds right
[07:53:42] <LuxuryMode> is it just the camel cased name of the module?
[07:53:45] <BobbieBarker> groovy
[07:53:49] <wafflejock_> LuxuryMode: I typically just look at the source
[07:54:06] <BobbieBarker> ya i just go look at the web pages no one can memorize all that shit
[07:54:16] <LuxuryMode> good idea, thanks wafflejock_
[07:54:17] <BobbieBarker> and if you can you need to get out more
[07:54:24] <wafflejock_> BobbieBarker: indeed
[07:54:30] <wafflejock_> LuxuryMode: np
[07:54:48] <LuxuryMode> hmm, still dont see anything ugh
[07:55:41] *** forcer has joined #angularjs
[07:56:12] <wafflejock_> LuxuryMode: yeah drop in some debugger points to see if the link function is being called and something is failing or if it's still just not referencing the directive for some reason
[07:56:20] *** caitp has quit IRC
[07:56:28] <LuxuryMode> do i need the unminified version to be able to do that?
[07:56:37] <wafflejock_> LuxuryMode: if you literally add the word debugger; in a line and have chrome debug panel open you'll see it hit
[07:56:44] <wafflejock_> LuxuryMode: yeah always use unminified when buidling
[07:57:01] *** nemothekid has quit IRC
[07:57:16] <wafflejock_> otherwise you won't be able to tell what really blew up when you get errors will say something like a is undefined and has no method x
[07:57:26] <wafflejock_> which isn't really helpful
[07:58:07] *** nemothekid has joined #angularjs
[07:59:17] <LuxuryMode> literally just type debug and that breakpoint should get hit?
[07:59:17] <wafflejock_> LuxuryMode: you can either use grunt or gulp to deal with minifying all the stuff later or just go back at the end and switch them to use the minified versions, but best to develop with full source whenever possible
[07:59:48] *** ustunozgur has joined #angularjs
[07:59:53] <wafflejock_> LuxuryMode: regarding debugger; yes
[08:00:03] <wafflejock_> LuxuryMode: you can add one in your main app file too just to see that it works
[08:00:16] *** kroogs has joined #angularjs
[08:00:22] <wafflejock_> but so long as the panel is open and a debugger; line is hit it will hit it like a breakpoint in chrome and let you step from there
[08:00:23] *** Reskp has joined #angularjs
[08:00:30] <LuxuryMode> thanks wafflejock_
[08:00:33] <LuxuryMode> appreciate all your help
[08:00:35] <wafflejock_> yup
[08:00:36] <wafflejock_> np
[08:00:45] *** kennbrodhagen has joined #angularjs
[08:00:46] <LuxuryMode> btw, why doesnt bower uninstall x remove it from the dependencies listed in bower.json?
[08:00:52] *** TheAceOfHearts has quit IRC
[08:00:55] <LuxuryMode> do i need --save on uninstalls too?
[08:01:01] <wafflejock_> probably not sure on that one
[08:01:06] <quantax-> maybe needs -S ?
[08:01:16] *** jdj_dk has joined #angularjs
[08:01:24] *** Reskp has quit IRC
[08:02:37] <LuxuryMode> debug is not defined?
[08:02:40] *** ppppaul has joined #angularjs
[08:02:43] <LuxuryMode> oh, debugger;
[08:03:26] <LuxuryMode> so i grabbed all the src and put it in my scripts
[08:03:32] <LuxuryMode> seems im now not including it correctly...
[08:03:34] *** subnl2 has joined #angularjs
[08:03:55] <LuxuryMode> do i not need to have it added as dep in my array of modules?
[08:04:00] *** JoshGlzBrk has joined #angularjs
[08:04:22] *** ustunozgur has quit IRC
[08:04:22] <LuxuryMode> im just seeing "uncaught object" which usually means something is screwed up with dependencies
[08:04:32] *** Jae has quit IRC
[08:04:55] *** kennbrodhagen has quit IRC
[08:05:34] *** ngbot has joined #angularjs
[08:05:34] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/UHNrzg
[08:05:34] <ngbot> angular.js/master 3991583 Peter Bacon Darwin: docs($sce): fix code samples and example...
[08:05:34] *** ngbot has left #angularjs
[08:05:35] *** KernelCurry has joined #angularjs
[08:05:46] *** kroogs has quit IRC
[08:06:06] <wafflejock_> LuxuryMode: yup should just be in the list of dependent modules like you said uncaught object is many times due to some dependency problem unfortunately it's not a super helpful error either, in chrome you can enable pause on exceptions in the source debugging area (little stop sign with pause icon in it) that can be helpful sometimes to look at vars when it failed and try to go up in the stack trace to see where it was called
[08:06:07] <wafflejock_> from
[08:06:31] <wafflejock_> module depedencies list I should say not dependent modules
[08:06:46] <LuxuryMode> but then i also need to list those scripts in my index?
[08:06:55] *** brianturgeon has quit IRC
[08:06:59] <wafflejock_> LuxuryMode: yeah if you didn't drop them in you'll need to
[08:07:06] <LuxuryMode> yeah i did, cool
[08:07:07] <LuxuryMode> thank you
[08:07:16] *** mennea has quit IRC
[08:07:20] <LuxuryMode> hmm, still getting uncaught object
[08:07:52] <wafflejock_> var mainApp = angular.module("mainApp", ["ui.bootstrap","vcRecaptcha","videosharing-embed","google-maps","FacebookPluginDirectives","google-analytics"]);
[08:08:09] <wafflejock_> that's what my line looks like for that project... it's a bit dated but should be something like that
[08:08:44] <LuxuryMode> yeah mine too
[08:09:05] <wafflejock_> this project is using 1.1.5 too though and that directive was written for 1.0.x so maybe problems with newer angular or something too... let me see if I can bump versions
[08:09:14] *** arrty has joined #angularjs
[08:09:26] <LuxuryMode> and i added all of these to my index: http://take.ms/87tOh
[08:09:40] <LuxuryMode> hmm yeah im using 1.2.6 i believ
[08:09:46] *** H1FuelCell has joined #angularjs
[08:10:04] <wafflejock_> ah yeah got uncaught object when I bumped versions... hmm
[08:10:05] *** KernelCurry has quit IRC
[08:10:22] *** sigurding has joined #angularjs
[08:10:33] *** carlosmantilla has joined #angularjs
[08:10:34] *** zumba_addict has quit IRC
[08:10:57] *** boptop has quit IRC
[08:11:02] <LuxuryMode> was able to get a pause here: http://take.ms/KQMYA
[08:11:13] *** chrisbirk has quit IRC
[08:11:26] <wafflejock_> LuxuryMode: yeah so mine is missing ngRoute now which makes sense... if you click the link into the angular source and drop a breakpoint in where it throws that error it has more detail
[08:11:55] <LuxuryMode> click the link when it shows uncaught object?
[08:12:50] *** stirlingw has quit IRC
[08:13:00] *** svycka has joined #angularjs
[08:13:08] *** night-owl has quit IRC
[08:13:13] <wafflejock_> yeah the one that links to 3840 or something like that in the angular source that has the throw error line and if you roll over e.stack or whatever it has there you get all the details... looks like this might not be a great candidate anymore though
[08:13:16] <wafflejock_> er at least the version I have
[08:13:36] *** speaking1ode is now known as speakingcode
[08:13:53] *** Click66 has joined #angularjs
[08:13:56] *** arrty has quit IRC
[08:13:59] <wafflejock_> it's not dealing with SCE/ngSanitize stuff in the newer versions, but when I grabbed this it was pre 1.2 so perhaps the source has been updated
[08:14:02] <LuxuryMode> http://take.ms/fY4Wy
[08:14:02] *** mguillech has joined #angularjs
[08:14:32] *** stodan has joined #angularjs
[08:14:47] *** idiomati_ has quit IRC
[08:14:53] *** Cache_Money has quit IRC
[08:15:16] *** tfennelly has joined #angularjs
[08:15:47] <wafflejock_> LuxuryMode: yeah crap.... looks like they maybe didn't update the thing entirely http://www.johnpapa.net/easy-fix-to-a-common-angular-module-error/
[08:16:33] *** idiomatic has joined #angularjs
[08:16:40] *** mary5030_ has quit IRC
[08:16:55] *** pdillinger has quit IRC
[08:17:15] *** mary5030 has joined #angularjs
[08:17:27] *** mogaj has quit IRC
[08:17:32] *** wildling has joined #angularjs
[08:17:33] *** batdorf has joined #angularjs
[08:17:53] <wildling> is there anything like enabling CORS on client side ?
[08:17:57] <wafflejock_> LuxuryMode: here's some bits specific to including locale but from other posts I've seen that might be a red herring https://docs.angularjs.org/guide/i18n
[08:18:12] <LuxuryMode> thanks wildling wildling
[08:18:17] <LuxuryMode> whoops thanks wafflejock_
[08:18:46] <LuxuryMode> dont understand why i need nglocale. the video sharing module doesnt depend on it and neither do i
[08:18:58] *** mguillech has quit IRC
[08:19:39] *** wildling has left #angularjs
[08:19:48] *** Emperor_Earth__ has quit IRC
[08:19:49] <wafflejock_> LuxuryMode: yeah you may not actually need ngLocale just be sure your dependency is spelled 100% right, aside from that hard to say without seeing it in action... might be worth throwing together a plunkr to poke at it
[08:19:53] <LuxuryMode> looks like i included the scripts in the wrong order
[08:20:00] <LuxuryMode> seems to be working now
[08:20:06] <wafflejock_> LuxuryMode: hmm strange
[08:20:10] *** Emperor_Earth has joined #angularjs
[08:20:23] <wafflejock_> that's rarely a problem so long as angular itself is loaded before the modules
[08:20:24] *** nytrm has joined #angularjs
[08:20:27] *** boptop has joined #angularjs
[08:20:28] *** UniBot has joined #angularjs
[08:20:36] <wafflejock_> usually the scripts for the modules can be out of order I thought... maybe not
[08:21:08] *** daryllxd has joined #angularjs
[08:21:09] <LuxuryMode> btw, his examples completely changed: https://github.com/erost/ng-videosharing-embed/blob/master/examples/videoplayer.html
[08:21:11] <LuxuryMode> so that helped
[08:21:31] <wafflejock_> ah yeah that looks more reasonable
[08:21:34] <LuxuryMode> but yeah i included his module definition after his directives/filters and i think that made an issue
[08:21:56] <wafflejock_> ah okay
[08:22:09] <wafflejock_> yeah so if it doesn't hit a module line that has dependencies then it just tries to get it
[08:22:09] *** zanea is now known as zanea|away
[08:22:25] <wafflejock_> so if the module is defined with dependencies in one file but not the others then the order can matter
[08:22:57] *** mary5030 has quit IRC
[08:23:31] *** mary5030 has joined #angularjs
[08:24:05] <wafflejock_> LuxuryMode: ah yeah last commit 6 days ago so apparently someone is at the least trying to keep it up to date
[08:24:15] <LuxuryMode> wafflejock_ right
[08:24:22] <LuxuryMode> thanks again so much for your help and patience
[08:24:23] *** InezK_away is now known as InezK
[08:24:27] <LuxuryMode> gonna try this on mobile in a minute
[08:24:38] <wafflejock_> np godspeed
[08:24:41] *** nytrm has quit IRC
[08:24:46] *** wartdev has joined #angularjs
[08:24:51] *** DrMabuse has joined #angularjs
[08:26:29] *** brodul has quit IRC
[08:26:39] *** annlewis has joined #angularjs
[08:28:58] *** sgnl has joined #angularjs
[08:29:13] *** brodul has joined #angularjs
[08:29:38] *** DrMabuse has quit IRC
[08:30:33] *** xastey has joined #angularjs
[08:30:35] *** Ember_ has left #angularjs
[08:30:38] *** ngoyal has joined #angularjs
[08:30:44] *** annlewis has quit IRC
[08:30:45] <LuxuryMode> it works on mobile!
[08:30:46] <LuxuryMode> voila!
[08:31:01] <wafflejock_> awesome
[08:31:32] *** mtsr has joined #angularjs
[08:31:55] *** mzehrer_ has joined #angularjs
[08:31:56] *** evilaliv3 has joined #angularjs
[08:32:34] *** shoelessone has quit IRC
[08:34:12] *** InezK is now known as InezK_away
[08:35:03] *** ngoyal has quit IRC
[08:35:21] *** Reskp has joined #angularjs
[08:35:40] *** mamarilmanson2 has quit IRC
[08:35:54] *** mamarilmanson has joined #angularjs
[08:36:10] *** hannesvdvreken has joined #angularjs
[08:36:43] *** wilmoore has joined #angularjs
[08:36:50] *** ceephax has quit IRC
[08:37:03] *** mamarilmanson has quit IRC
[08:38:09] *** nodweber has joined #angularjs
[08:38:30] *** Sgeo has quit IRC
[08:39:48] *** mtsr has quit IRC
[08:41:02] *** QuantumN_ has quit IRC
[08:41:21] *** QuantumNinja has joined #angularjs
[08:41:32] *** danielpquinn has joined #angularjs
[08:41:45] *** subnl2 has quit IRC
[08:41:50] *** mamarilmanson has joined #angularjs
[08:43:28] *** sgnl has quit IRC
[08:45:33] *** danielpquinn has quit IRC
[08:45:46] *** sgnl has joined #angularjs
[08:46:37] *** klaut has joined #angularjs
[08:46:37] *** PeteCampbell has quit IRC
[08:46:48] *** Fishy has quit IRC
[08:47:00] <wafflejock_> nibster: u still around?
[08:47:08] *** GeertV_ has joined #angularjs
[08:47:26] *** Fishy has joined #angularjs
[08:48:19] <wafflejock_> nibster: well if you see this http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background and https://docs.angularjs.org/guide/directive might be helpful
[08:48:56] *** jkremser has quit IRC
[08:49:17] <LuxuryMode> there are advantages to never having another framework. i never wrote any javascript before angular and i find angular to not be so difficult
[08:49:31] <LuxuryMode> others have the problem of thinking in another way, but i dont have that issue
[08:49:47] <wafflejock_> LuxuryMode: yeah I moved from AS3/Flex which followed many of the same pardaigms as angular
[08:49:49] <LuxuryMode> built a robust app without too many problems
[08:50:03] <LuxuryMode> ah cool
[08:50:08] *** pdillinger has joined #angularjs
[08:50:38] <s3shs> Instead of trying to rewrite HTML in some other framework, like ember. Angular embraces html so there isn't much additional stuff to learn.
[08:50:49] <s3shs> ember/handlebars
[08:51:35] <wafflejock_> s3shs: yea assuming you're used to MVC style of doing things and working with templates and event buses and bindings then there's not a terrible amount in the syntax to learn
[08:51:59] *** mchammer has joined #angularjs
[08:52:09] *** mikehaas763 has quit IRC
[08:52:19] <s3shs> One thing I like about Angular is it allows me to do my own style of MVC. I hate frameworks that force "their way".
[08:52:41] *** caitp has joined #angularjs
[08:52:42] *** boptop has quit IRC
[08:54:34] *** Sgeo has joined #angularjs
[08:54:55] *** peldan has joined #angularjs
[08:54:59] *** tarnus has quit IRC
[08:55:05] *** jonasrosenlind has joined #angularjs
[08:55:21] *** jacuqesdancona has joined #angularjs
[08:56:13] *** night-owl has joined #angularjs
[08:56:16] *** jamto11 has joined #angularjs
[08:56:23] *** mchapman has quit IRC
[08:57:08] *** caitp has quit IRC
[08:57:53] <wafflejock_> indeed, good to have some intelligent built in assumptions but bad when you feel like the framework is forcing you to write certain code... that said I understand the advantage to having interfaces defined sometimes
[08:58:02] *** daryllxd has quit IRC
[08:58:26] <s3shs> I'd much rather just have good conventions I can create myself.
[08:58:52] *** daryllxd has joined #angularjs
[08:58:55] *** mchammer has quit IRC
[08:59:01] <wafflejock_> s3shs: yeah but I mean I wish I could write interfaces and abstract class defintions in JS, maybe some of that is coming in ECMA6 I haven't spent any time looking into it yet
[08:59:01] *** mchammer has joined #angularjs
[08:59:03] *** Guest47486 has quit IRC
[08:59:11] *** dve has joined #angularjs
[08:59:20] *** Gambit- has quit IRC
[08:59:26] <s3shs> I think it is coming in ES6. I can't wait to port this 40K angular app. :-\
[08:59:36] <wafflejock_> yeah well more work :P
[08:59:37] *** ustunozgur has joined #angularjs
[09:00:00] <s3shs> But, from what I hear, it's basically a macro substitution for what we're doing with functions now.
[09:00:06] <s3shs> With a few keywords.
[09:00:16] *** DrMabuse has joined #angularjs
[09:00:25] *** mamarilmanson has quit IRC
[09:00:32] <wafflejock_> I'd be okay with that, JS performance is pretty dern good anyhow
[09:00:34] *** jamto11 has quit IRC
[09:00:35] *** kroogs has joined #angularjs
[09:01:10] <s3shs> Performance is good. Async is very cool with q/async. I just wish the underbelly was better... all the simple stuff... like reliably comparing strings.
[09:01:20] *** m1hael has joined #angularjs
[09:01:23] *** mogaj has joined #angularjs
[09:02:02] *** lbracher has joined #angularjs
[09:02:25] *** Nizumzen has joined #angularjs
[09:02:45] *** Milanito has quit IRC
[09:02:56] *** krat0sprakhar has joined #angularjs
[09:02:56] *** UniBot has quit IRC
[09:02:57] <chovy> howdy
[09:03:03] <krat0sprakhar> howdy chovy
[09:03:05] <krat0sprakhar> :D
[09:03:13] *** UniBot has joined #angularjs
[09:03:13] <s3shs> Anchovy!
[09:03:19] <chovy> does anyone have a good recommendation for angular/node file uploading?
[09:03:32] <krat0sprakhar> guys, one quick question - having some issue with scope http://jsfiddle.net/prakhar1989/rJuBK/5/
[09:03:33] <wafflejock_> chovy: there's too ng-file-upload directives
[09:03:36] <ppppaul> plupload
[09:03:46] <krat0sprakhar> can you guys please have a look? (i'm missing something obvious)
[09:03:52] <wafflejock_> chovy: think you want the danielfared one if you're gonna go with that
[09:04:21] *** ustunozgur has quit IRC
[09:04:23] *** DrMabuse has quit IRC
[09:04:24] *** UniBot has quit IRC
[09:04:54] *** hychen has joined #angularjs
[09:05:32] *** mattwynn_ has joined #angularjs
[09:05:36] *** rchavik has quit IRC
[09:05:48] *** kroogs has quit IRC
[09:06:17] *** KernelCurry has joined #angularjs
[09:06:22] <chovy> wafflejock_: i saw that one, but he doesn't have a node excample
[09:06:29] *** rchavik has joined #angularjs
[09:06:36] <s3shs> krat0sprakhar, I put the value in to the dom. Does the true/false make sense? http://jsfiddle.net/n4HxL/
[09:06:46] <s3shs> See "That value"
[09:07:18] <wafflejock_> chovy: yeah the file receive side you'd have to find separately in PHP I'm pretty sure it just came through in the $_FILES but not familiar with how to deal with incoming files in node
[09:07:30] <wafflejock_> chovy: should be the same as if you were to use a file upload in a form I think though
[09:07:49] *** AndyFTP has joined #angularjs
[09:07:54] <chovy> s3shs: this is very confusing: ng-disabled="!buttonConfig.enabled"
[09:07:58] *** nytrm has joined #angularjs
[09:08:09] <s3shs> chovy, that's not my code. I'm helping krat0sprakhar
[09:08:14] <chovy> ahah ok
[09:08:30] <s3shs> I just added a binding to give him something to think about.
[09:08:47] *** fbenoit has joined #angularjs
[09:08:59] *** batdorf has quit IRC
[09:09:35] *** fouadm has quit IRC
[09:10:17] *** Christer has joined #angularjs
[09:10:53] *** KernelCurry has quit IRC
[09:11:13] *** mennea has joined #angularjs
[09:11:26] *** Reskp has quit IRC
[09:12:15] *** Christer| has joined #angularjs
[09:12:21] <Christer|> Morning :)
[09:12:28] *** okdamn has joined #angularjs
[09:12:34] <s3shs> Aren't you funny.
[09:12:36] <okdamn> hello everyone
[09:12:47] *** mehlah has joined #angularjs
[09:12:57] <wafflejock_> hiya okdamn
[09:13:14] <okdamn> hey :)
[09:13:22] *** mehlah has quit IRC
[09:13:38] *** Milanito has joined #angularjs
[09:13:40] *** H1FuelCell has quit IRC
[09:13:43] <okdamn> how is going guys? does angular exicites you as well as it does with me ?
[09:13:49] *** carlosmantilla has quit IRC
[09:13:51] *** DevAntoine has joined #angularjs
[09:14:00] *** Bizari has joined #angularjs
[09:14:10] *** HACKING-FACEBOOK has quit IRC
[09:14:28] <s3shs> (hopes okdamn is keeping clothes on)
[09:14:37] <okdamn> s3shs: rofl
[09:14:40] <wafflejock_> haha
[09:14:51] *** senayar has joined #angularjs
[09:14:54] <okdamn> im totally in love with angular
[09:15:26] <okdamn> hey just courious , do you know any angular module for audio based animations?
[09:15:38] <okdamn> module, directive,etc whatever it is i mean
[09:15:46] *** iksik_ has quit IRC
[09:15:52] *** dve has quit IRC
[09:16:00] *** Christer has quit IRC
[09:16:06] *** mdix_ has joined #angularjs
[09:16:51] *** PeteCampbell has joined #angularjs
[09:17:04] *** iksik has joined #angularjs
[09:17:39] *** dbouwman has joined #angularjs
[09:17:55] *** cujojp has joined #angularjs
[09:18:09] *** InezK_away is now known as InezK
[09:18:14] *** HACKING-FACEBOOK has joined #angularjs
[09:18:57] *** marcghorayeb has joined #angularjs
[09:19:33] <wafflejock_> okdamn: like audio visualization?
[09:19:34] *** mdix has quit IRC
[09:19:41] *** senayar_ has joined #angularjs
[09:20:06] <okdamn> wafflejock_: yeah could be so cool
[09:20:43] <okdamn> im trying find out something easy to use
[09:20:54] <wafflejock_> okdamn: would start with the audio vis part outside of angular probably and then wrap it up/use it in a directive http://www.patrick-wied.at/blog/how-to-create-audio-visualizations-with-javascript-html
[09:21:09] *** senayar has quit IRC
[09:21:10] *** sk87 has joined #angularjs
[09:21:13] <okdamn> wafflejock_: cool thanks
[09:21:20] <wafflejock_> okdamn: you might be able to do it with processing.js too http://www.virgentech.com/blog/2013/07/angularjs-and-processingjs-integration.html
[09:21:23] *** PeteCampbell has quit IRC
[09:21:30] *** nemothekid has quit IRC
[09:21:31] <okdamn> ok :) thanks a lot
[09:22:04] *** dbouwman has quit IRC
[09:22:10] <wafflejock_> oh think that page might be down for some reason but yeah look into processingjs and angular http://angular-processing-demo.herokuapp.com/?goback=.gde_4896676_member_242835199
[09:22:31] *** cujojp has quit IRC
[09:22:32] <chovy> okdamn: checkout ngmodules.org
[09:22:45] <chovy> angular excites me just as much as it frustrates me.
[09:22:57] <wafflejock_> I'd say I lean more towards excited
[09:23:06] <wafflejock_> but like to try to see things objectively as I can
[09:23:10] <Christer|> Has anyone of you migrated from 1.0* to a more recent stable lately? Was there alot of changes to be done?
[09:23:16] <okdamn> chovy: lol thanks
[09:23:20] <wafflejock_> Christer|: it depends on how big it is
[09:23:50] <Christer|> wafflejock_, yeah ofc :)
[09:24:16] <wafflejock_> Christer|: the framework has been broken up into different files so you need to include the right modules, you need to update any references to ng-bind-html-unsafe or other HTML injections to work with $sce
[09:24:29] <wafflejock_> Christer|: you need to update any animation parts to work if that's needed
[09:24:32] *** mehlah has joined #angularjs
[09:24:37] *** UniBot has joined #angularjs
[09:24:39] <wafflejock_> see the ChangeLog for full details
[09:24:56] <Christer|> yeah, i believe i did see some sort of migration guide as well.
[09:25:01] <wafflejock_> Christer|: https://github.com/angular/angular.js/blob/master/CHANGELOG.md
[09:25:04] *** Jon30 has quit IRC
[09:25:10] <chovy> you need to just rewrite your app.
[09:25:21] <Christer|> :P
[09:25:51] *** azureknight has joined #angularjs
[09:26:13] <wafflejock_> hmm lots of transclude fixes in 1.2.18 looks like
[09:26:39] *** annlewis has joined #angularjs
[09:26:40] *** narutimateum has quit IRC
[09:26:42] *** sdouglas_ has joined #angularjs
[09:26:52] *** azureknight has quit IRC
[09:27:06] *** joshbrw has joined #angularjs
[09:27:24] <okdamn> what about 1.2.16 -> 1.2.18
[09:27:24] <okdamn> ?
[09:27:42] <wafflejock_> okdamn: just check the CHANGELOG has breaking changes listed and feature improvements
[09:27:51] <okdamn> oh oh right thx
[09:27:53] <wafflejock_> unfortunately looks like 1.3 releases are intermixed
[09:28:08] *** daryllxd has quit IRC
[09:28:41] *** foofoobar has joined #angularjs
[09:28:56] *** Emperor_Earth has quit IRC
[09:29:00] <okdamn> damn but guysss…. 1 new versoin every 15 days???
[09:29:05] *** iksik has quit IRC
[09:29:07] <okdamn> wtfff :D isn't it too fast ?
[09:29:22] *** Emperor_Earth has joined #angularjs
[09:29:27] <wafflejock_> nope better to release early and often
[09:29:32] <wafflejock_> get it in front of everyone
[09:29:46] *** Bizari has quit IRC
[09:30:03] <okdamn> well ok indeed i agree at the end
[09:30:16] <wafflejock_> you don't need to keep up with the releases all the time but generally upgrades haven't been a problem after moving from 1.08 to 1.2.x
[09:30:44] *** annlewis has quit IRC
[09:30:53] *** Bizari has joined #angularjs
[09:31:04] <okdamn> wafflejock_: yeah ok :)
[09:31:07] *** mattwynn_ has quit IRC
[09:31:12] *** daryllxd has joined #angularjs
[09:31:20] <okdamn> actually i have 1.2.16 dunno if to just put on a newer version
[09:31:39] <wafflejock_> yup should be able to just bump the version number
[09:31:44] *** HACKING-FACEBOOK has quit IRC
[09:31:50] <okdamn> k ill do ;)
[09:32:01] *** terrykfwong has joined #angularjs
[09:32:10] <wafflejock_> 1.3 will have more significant breaking changes and when 2.0 ships I'm sure that will require rewrites for real but not sure when that's happening
[09:32:26] *** intellix has joined #angularjs
[09:32:42] *** mdix_ has quit IRC
[09:32:53] *** iksik has joined #angularjs
[09:32:55] <ansu> i have a design question. i'm building some filtering mechanic like you may know from online stores (filter by manfucaturer, vendor, price, etc...). what is the right place for the filtering logic?
[09:32:59] *** Asiajey has joined #angularjs
[09:32:59] *** Asiajey has joined #angularjs
[09:33:22] *** Emperor_Earth has quit IRC
[09:33:39] *** Emperor_Earth has joined #angularjs
[09:33:54] <wafflejock_> ansu: you can do it in a controller or if you think it needs to be re-used in other views potentially then you can use a service and if you'd like you can use filter to create individual filters that deal with the array
[09:34:47] <okdamn> 2.0 wow
[09:35:06] *** InezK is now known as InezK_away
[09:35:26] *** daGrevis has left #angularjs
[09:35:34] <okdamn> just please guys a better doc for angular could be great
[09:35:44] <okdamn> the site looks confusional imh
[09:35:46] <okdamn> imho
[09:35:48] <mogaj> in angular-wizard how to call functions on step changes?
[09:35:58] <Christer|> wafflejock_, yeah, im running 1.08 now. and i actually need some of the services in 1.2. i got a release comming up tomorrow. So i am hoping i got some spare time to upgrade the system next week :)
[09:36:00] *** mdix has joined #angularjs
[09:36:14] *** krat0sprakhar has quit IRC
[09:36:14] *** jonasrosenlind has quit IRC
[09:36:22] <Christer|> What version are you guys running on ?
[09:36:38] <wafflejock_> Christer|: 1.2.16 or so on most projects
[09:36:39] <ansu> wafflejock_, filtering the data happens on the server side so I guess angular filters are not of any use for this or am i wrong?
[09:36:40] <okdamn> Christer|: me im on 1.2.16 but i'll upgrade today or tomorrow to a newer
[09:36:43] *** batdorf has joined #angularjs
[09:36:53] *** lbracher has quit IRC
[09:36:59] *** jonasrosenlind has joined #angularjs
[09:37:06] <wafflejock_> ansu: if you are doing server side filtering yeah you'd just want a service that connects to your API but I'd strongly suggest loading the data up front and client side filtering
[09:37:12] *** scmx has quit IRC
[09:37:16] <wafflejock_> ansu: it's really fast unless you have a billion rows of data
[09:37:24] *** fixl has joined #angularjs
[09:37:36] *** bengillies has joined #angularjs
[09:37:47] *** Reskp has joined #angularjs
[09:37:49] <okdamn> guys i have a performance security question
[09:37:56] *** cctom_ has quit IRC
[09:38:07] <okdamn> i did a simple pagination over an object, using splice()
[09:38:22] <okdamn> now im wondering what if object gets too huge?
[09:38:27] *** Reskp has quit IRC
[09:38:35] *** HACKING-FACEBOOK has joined #angularjs
[09:39:06] <okdamn> for the browser i mean, now i have few object keys what if i get millions object keys (is never gonna happen but i would like to understand if its there a safe limit)
[09:39:06] *** dve has joined #angularjs
[09:39:23] <wafflejock_> okdamn: limits really depend on the device/browser its running in
[09:39:30] <wafflejock_> if you exhaust the memory on the device it's over
[09:39:45] <okdamn> wafflejock_: ok but lts take for example a mobile device browser , what to do ?
[09:39:47] *** moong has joined #angularjs
[09:39:47] *** jeremymarc has quit IRC
[09:39:49] <wafflejock_> but that takes a lot of data when it comes to text/numbers
[09:39:51] <ansu> wafflejock_, actually when to go for server side filtering/paging/sorting and when client side is sufficient is something i still struggle to answer, but i guess the border where performance favors server-side is much lower than "a billion rows of data" ;)?
[09:40:12] <okdamn> wafflejock_: so you suggest dont give a f , its up to user?
[09:40:13] *** btc_panhandler has quit IRC
[09:40:15] *** marr has joined #angularjs
[09:40:16] <okdamn> user+device
[09:40:27] *** bengillies has quit IRC
[09:40:49] <okdamn> cause actually i get like enteire table in db and paginate all over it as object
[09:40:49] *** bweston has joined #angularjs
[09:40:55] <wafflejock_> ansu: well I've had stuff client side that deals with thousands of rows with multiple property filtering and didn't run into any performance bottlenecks even on mobile
[09:41:00] <okdamn> probably ishould put some LIMIT X on the query
[09:41:02] *** QuantumNinja has quit IRC
[09:41:05] *** UniBot has quit IRC
[09:41:22] *** Reskp has joined #angularjs
[09:41:27] *** UniBot has joined #angularjs
[09:41:29] <okdamn> like just for safety LIMIT 150000 ? 150k
[09:41:32] *** batdorf has quit IRC
[09:42:03] *** danielpquinn has joined #angularjs
[09:42:15] *** guilbep has joined #angularjs
[09:42:18] *** nodweber has quit IRC
[09:42:24] <okdamn> so that newests rows comes up everytime but oldest comes up when new are deleted by user
[09:42:24] <okdamn> i dunno at the end
[09:42:32] <okdamn> noticed/deleted
[09:42:49] <wafflejock_> okdamn: you can do the math and add some padding to figure out how much data would be too much data, check out the chrome profiling tools they can give you an idea of what kind of memory usage the app has as is then take some figure of RAM and divide it out to figure out what multiple of data you could have loaded
[09:43:14] <okdamn> wafflejock_: oh cool i'll give it a try thanks
[09:43:28] *** kas84 has joined #angularjs
[09:43:43] <ansu> wafflejock_, good to know. you convinced me to go for client side for the start. thank you for your time :)
[09:44:24] <wafflejock_> ansu: np yeah you're right too a billion is probably a high figure but I've done multiproperty filtering on a dataset of around 10,000 rows with multiple filters
[09:44:49] <chovy> the sample node flow.js app doesn't work
[09:44:54] <wafflejock_> ansu: one thing to note, try to write your code in a way that you iterate over the set as few times as possible and do multiple comparisons in one pass
[09:44:59] <chovy> i get nothing when i goto localhost:3000
[09:45:02] *** Nizumzen has quit IRC
[09:45:13] *** Emperor_Earth_ has joined #angularjs
[09:46:15] *** kas84 has quit IRC
[09:46:53] <wafflejock_> ansu: in the end the thing I wrote works great though, even on mobile filtering is instant which is awesome cause with server roundtrips on mobile it's terrible
[09:46:57] <ansu> wafflejock_, yeah in my case i guess 10'000 rows is something that not many users of this app will reach. this should all be possible with ng-filter right?
[09:46:58] *** danielpquinn has quit IRC
[09:46:59] *** PeteCampbell has joined #angularjs
[09:47:06] *** cswelin- has quit IRC
[09:47:27] *** cswelin has joined #angularjs
[09:47:35] *** Emperor_Earth has quit IRC
[09:47:50] <eighty4> Hey! http://jsbin.com/limujila/4/edit If I want to check for dirty on an input field on blur and after that potentially modifiy a different input field. Is this the way to go or should I use a directive?
[09:47:50] <ansu> wafflejock_, right that's a good argument towards client side filtering I might bring up to convince some other people in my team :)
[09:47:51] *** Reskp has quit IRC
[09:47:54] <wafflejock_> ansu: yeah you can write the parts as separate filters... you will get a performance boost by iterating over the set only one time though so if each filter is looking over the array you won't be getting as good of performance as you can get by writing it all yourself in a service or the like
[09:48:34] *** HACKING-FACEBOOK has quit IRC
[09:48:36] *** juampy has joined #angularjs
[09:48:41] *** Hackwar has quit IRC
[09:48:47] *** Emperor_Earth has joined #angularjs
[09:48:55] *** daryllxd_ has joined #angularjs
[09:49:13] *** daryllxd has quit IRC
[09:49:58] *** VeeWee has joined #angularjs
[09:50:15] *** optikalmouse has quit IRC
[09:50:16] <ansu> wafflejock_, good point. i guess i'm going to start with filters and will do some tests with an amount of data that i think will cover most use cases and then see how it performs :)
[09:50:49] *** m1hael has left #angularjs
[09:51:21] *** evilaliv3 has quit IRC
[09:51:36] *** Emperor_Earth_ has quit IRC
[09:51:48] *** Natsu- has joined #angularjs
[09:53:06] *** optikalmouse has joined #angularjs
[09:53:19] *** Rebirth has joined #angularjs
[09:53:35] *** caitp has joined #angularjs
[09:53:43] *** scmx has joined #angularjs
[09:53:49] *** HACKING-FACEBOOK has joined #angularjs
[09:54:54] <wafflejock_> yeah better not to optimize early you can always just move the functionality around once you have it working if you have any performance problems
[09:54:54] *** UniBot has joined #angularjs
[09:54:58] *** JoshGlzBrk has quit IRC
[09:55:46] <wafflejock_> ansu: I think I just wrote them in a controller and optimized to make it fast on mobile don't recall exactly I might have just gotten on an optimization trip too, sometimes that happens
[09:56:18] *** Aartsie has joined #angularjs
[09:57:02] *** PeteCampbell has quit IRC
[09:57:46] <wafflejock_> okdamn: only time I've run into memory problems really is for a drawing app I made for Android cause on the Nexus saving the full bitmap data for undo states are huge and doing the PNG endcoding takes CPU time and slows down the ability to draw, generally though only really large image data or video will cause you to hit memory limits in modern devices
[09:57:56] *** caitp has quit IRC
[09:58:01] <wafflejock_> Nexus 10*
[09:58:03] *** LuxuryMode has quit IRC
[09:58:17] *** Joulse has joined #angularjs
[09:59:20] *** jae has joined #angularjs
[09:59:53] <wafflejock_> eighty4: seems like it should work
[10:00:17] <eighty4> wafflejock_: what I've done works just fine. But was thinking if it would be better in a directive?
[10:00:32] <wafflejock_> eighty4: well how would it be better?
[10:00:42] *** kroogs has joined #angularjs
[10:00:44] *** dbouwman has joined #angularjs
[10:00:56] <eighty4> wafflejock_: I'd like some DOM manipulation on it. Not sure where that is best suited
[10:01:04] *** fels_zh has joined #angularjs
[10:01:04] <eighty4> i.e. modify an inputs value
[10:01:21] <wafflejock_> eighty4: well modifying an inputs value might be a matter of just updating the model
[10:01:31] <eighty4> wafflejock_: yeah, that's what I'm doing :)
[10:01:42] *** kennbrodhagen has joined #angularjs
[10:01:51] <wafflejock_> eighty4: if you need to manipulate the DOM directly you do want a directive but if you can achieve it with just modifying the model then using existing directives is fine
[10:03:18] *** jae is now known as Jae
[10:03:41] *** illume has joined #angularjs
[10:03:44] *** josh-k has quit IRC
[10:03:58] *** HACKING-FACEBOOK has quit IRC
[10:04:53] *** willmarshall has joined #angularjs
[10:05:02] *** JoshGlzBrk has joined #angularjs
[10:05:06] *** dbouwman has quit IRC
[10:05:17] <mogaj> i am getting html data from server how to show that in view using angularjs ?
[10:05:42] <eighty4> wafflejock_: what I found most "wrong" wat that I couldn't check for $dirty on the model but had to do it via DOM selectors
[10:05:46] *** kroogs has quit IRC
[10:06:00] *** rud has quit IRC
[10:06:17] <wafflejock_> eighty4: if you name the form you can access it by name on the scope I'm pretty sure, haven't done a lot with form validation in that way myself
[10:06:28] <eighty4> wafflejock_: yeah, that's what I'm doing
[10:06:35] *** kennbrodhagen has quit IRC
[10:06:41] <eighty4> but felt like "wrong"
[10:06:43] <wafflejock_> eighty4: why the need for DOM selectors then?
[10:06:45] *** willmarshall has quit IRC
[10:07:04] *** KernelCurry has joined #angularjs
[10:08:08] *** daryllxd has joined #angularjs
[10:08:19] *** daryllxd_ has quit IRC
[10:08:35] <wafflejock_> eighty4: you shouldn't have DOM selectors in the controller so you're right there I'm also not a huge fan of this way of accessing the form directly from the controller since if the form name changes the controller can break but I have typically just "manually" done validation in my controller before submitting things
[10:08:41] *** HACKING-FACEBOOK has joined #angularjs
[10:08:53] *** frankblizzard has joined #angularjs
[10:09:44] *** wartdev has quit IRC
[10:10:10] *** Anticom has joined #angularjs
[10:10:22] *** Emperor_Earth has quit IRC
[10:10:25] *** milka has joined #angularjs
[10:10:42] *** Emperor_Earth has joined #angularjs
[10:10:56] *** nfroidure_ has joined #angularjs
[10:11:01] *** Emperor_Earth_Ce has joined #angularjs
[10:11:24] <eighty4> wafflejock_: yepp, seems like this should be in a directive
[10:11:39] *** KernelCurry has quit IRC
[10:11:47] *** andrastoth has joined #angularjs
[10:12:30] *** mtsr has joined #angularjs
[10:15:27] *** InezK_away is now known as InezK
[10:15:28] *** Ronyrun has joined #angularjs
[10:16:00] *** hannesvdvreken has quit IRC
[10:16:13] *** bengillies has joined #angularjs
[10:16:25] *** mary5030 has quit IRC
[10:16:56] *** Emperor_Earth_Ce has quit IRC
[10:17:11] *** mewm has joined #angularjs
[10:18:09] *** HACKING-FACEBOOK has quit IRC
[10:18:53] *** bengillies has quit IRC
[10:19:37] *** klaut has quit IRC
[10:19:40] *** rchavik has quit IRC
[10:19:45] *** fels_zh has quit IRC
[10:19:51] <Moult> i have a plain old html form that now doesn't submit to anywhere (action="" so it should hit the same page) when i load angularjs. any ideas?
[10:19:56] *** dancek has quit IRC
[10:20:18] *** fels_zh has joined #angularjs
[10:20:58] *** daryllxd has quit IRC
[10:21:12] *** altious has joined #angularjs
[10:21:15] *** daryllxd has joined #angularjs
[10:21:34] <wafflejock_> Moult: remove the action entirely
[10:21:44] <wafflejock_> Moult: that will keep it on the page
[10:21:55] <Moult> wafflejock_: out of curiosity, why did it break?
[10:21:56] *** sdouglas_ has quit IRC
[10:22:51] <wafflejock_> Moult: well if angular form directive sees sees an action it allows the default browser submit to occur if it sees no action then it triggers the ng-submit handler
[10:22:56] *** bejames has joined #angularjs
[10:23:18] *** fels_zh_ has joined #angularjs
[10:23:23] <wafflejock_> Moult: https://docs.angularjs.org/api/ng/directive/ngSubmit
[10:23:58] *** dancek has joined #angularjs
[10:24:10] *** Bizari_ has joined #angularjs
[10:24:33] *** fels_zh has quit IRC
[10:25:04] *** Bizari has quit IRC
[10:25:29] *** HACKING-FACEBOOK has joined #angularjs
[10:25:58] *** Dimlock has joined #angularjs
[10:26:01] *** Xethron has joined #angularjs
[10:26:07] <Moult> wafflejock_: just removed the action="" but still won't submit
[10:26:07] *** Andrew__ has joined #angularjs
[10:26:15] *** payomdousti has quit IRC
[10:26:34] *** annlewis has joined #angularjs
[10:27:07] <wafflejock_> Moult: you mean won't call your ng-submit handler? not sure exactly what you're trying to achieve
[10:27:08] *** cctom_ has joined #angularjs
[10:27:42] <Moult> wafflejock_: oh sorry, misread
[10:27:47] <Moult> wafflejock_: my idiocy :)
[10:27:58] <wafflejock_> Moult: no worries
[10:28:17] <wafflejock_> the wording in the docs isn't always straight-forward
[10:28:30] <wafflejock_> they have gotten 100 fold better though
[10:28:41] *** daryllxd has quit IRC
[10:28:53] *** hannesvdvreken has joined #angularjs
[10:29:07] <Moult> wafflejock_: yes, many parts of angular still feel like voodoo to me, i'll get used to it :)
[10:29:17] *** dharrigan has joined #angularjs
[10:29:28] <wafflejock_> Moult: yeah it takes some time to get used to the waters
[10:29:33] *** Dimlock has quit IRC
[10:29:33] *** aslate has joined #angularjs
[10:29:34] *** sigurding has quit IRC
[10:29:49] <wafflejock_> depends largely on your background
[10:29:50] *** Ir1sh has joined #angularjs
[10:30:16] *** Dimlock has joined #angularjs
[10:30:18] <eighty4> Ok, one more question. How'd I target a single input field via a directive in the best way? ng-model?
[10:30:38] *** UniBot has quit IRC
[10:30:58] *** UniBot has joined #angularjs
[10:31:04] <wafflejock_> eighty4: well you'll be applying it to an element in the HTML so you'll have that input you mean to get some info from another input?
[10:31:12] *** annlewis has quit IRC
[10:31:30] *** ngoyal has joined #angularjs
[10:32:02] <wafflejock_> eighty4: if you are just talking about getting the data from the input your directive is applied to you want ngModelController I think to get the data
[10:32:27] <storkme> is it weird to add request/response interceptors to angular that add an _isLoading parameter to my request?
[10:32:32] *** AciD`` has joined #angularjs
[10:32:39] *** eamonn has quit IRC
[10:32:44] <eighty4> wafflejock_: i.e. I'd like to target the single input directly in the directive. So that it would be my element.
[10:33:00] <eighty4> let me write up an example :)
[10:33:03] *** mattwynne has joined #angularjs
[10:33:04] <wafflejock_> eighty4: yeah that will help
[10:33:11] *** ppppaul has quit IRC
[10:33:38] *** anjumkaiser has quit IRC
[10:33:53] <wafflejock_> storkme: it seems a bit weird I made a LoaderManager.js factory to keep a list of objects by name that represent the loading state of something and made it so I can pass a promise along to toggle the isLoading state for an object with a name
[10:34:13] <wafflejock_> storkme: if it works though I don't think there's a problem with what you're doing
[10:34:25] <storkme> that makes sense
[10:34:26] *** Andrew__ has quit IRC
[10:34:31] *** Ir1sh has quit IRC
[10:34:50] *** avens has joined #angularjs
[10:34:53] *** okdamn has quit IRC
[10:35:17] *** HACKING-FACEBOOK has quit IRC
[10:35:37] *** sk87 has quit IRC
[10:36:22] *** ngoyal has quit IRC
[10:36:28] *** zz_Brocken is now known as Brocken
[10:36:49] *** andreip has joined #angularjs
[10:37:02] *** azizur has joined #angularjs
[10:37:18] *** bejames has quit IRC
[10:38:00] *** UniBot has quit IRC
[10:38:11] <storkme> most of the components I make seem to be like $scope.isLoading=true; $scope.something=Restangular.get(...).then(fn() {$scope.isLoading = false;}, fn() {
[10:38:15] *** InezK is now known as InezK_away
[10:38:23] <storkme> uh i pressed enter instinctively there.
[10:38:38] <storkme> the last function bit would be an error handler where I'd do $scope.error = err; or whatever.
[10:39:02] *** KushS has joined #angularjs
[10:39:04] *** optikalmouse has quit IRC
[10:39:15] *** nodeman has quit IRC
[10:39:18] *** sigurding has joined #angularjs
[10:39:35] *** HACKING-FACEBOOK has joined #angularjs
[10:39:46] *** andreip has quit IRC
[10:40:00] *** azizur has quit IRC
[10:40:10] *** robbht has joined #angularjs
[10:40:30] <robbht> Hi everyone. Can anyone tell me why the post-increment operator doesn't work in an ng-click expression?
[10:40:50] <robbht> <button ng-click="x++">Do Stuff</button> <!-- FAILS -->
[10:41:03] <robbht> <button ng-click="x=x+1">Do Stuff</button> <!-- Succeeds -->
[10:41:06] *** milka has quit IRC
[10:41:34] <eighty4> wafflejock_: here we go :) http://jsbin.com/limujila/6/edit
[10:41:40] <eighty4> would that be the correct way of doing it?
[10:42:03] *** optikalmouse has joined #angularjs
[10:42:54] *** danielpquinn has joined #angularjs
[10:42:56] *** andreip has joined #angularjs
[10:43:23] <wafflejock_> storkme: yeah I just wrapped it up in a factory and made a directive that uses the factory too so that simplified things for loaders throughout an app that were previously relying on events and a similar type of scope setup
[10:43:30] *** andreip has quit IRC
[10:43:40] <eighty4> or could I target it using ng-model="form.email" instead?
[10:43:43] <wafflejock_> robbht: see angular expression
[10:43:52] <storkme> interesting
[10:44:19] <robbht> I know angular expressions are executed in a special manner, but assumed any standard operators would function as intended
[10:44:47] *** milka has joined #angularjs
[10:45:08] <wafflejock_> robbht: well ++ means add 1 to this variable after the execution of this statement and typically expressions only evaluate one statement so might have something to do with that
[10:45:31] *** nodeman has joined #angularjs
[10:45:35] <wafflejock_> robbht: it is strange though will give you that
[10:45:41] <robbht> hmm, ok. I was of the understanding that angular used eval internally to execute the statement
[10:45:50] <robbht> I will just accept it for now... but that caught me off guard!
[10:46:00] *** ngbot has joined #angularjs
[10:46:00] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/YVPX9Q
[10:46:00] <ngbot> angular.js/master 2f34950 Peter Bacon Darwin: docs($logProvider): debugEnabled is a method not a property...
[10:46:00] *** ngbot has left #angularjs
[10:46:50] *** sneakertack has quit IRC
[10:47:27] *** daryllxd has joined #angularjs
[10:47:45] *** danielpquinn has quit IRC
[10:48:01] *** UniBot has joined #angularjs
[10:48:42] *** Demego has quit IRC
[10:48:57] *** Demego has joined #angularjs
[10:49:08] *** mattwynne has quit IRC
[10:49:32] *** mattwynne has joined #angularjs
[10:51:37] *** ngbot has joined #angularjs
[10:51:37] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/rPYxQA
[10:51:37] <ngbot> angular.js/master 543cf18 Mike Haas: docs($compile): fix minor typo...
[10:51:37] *** ngbot has left #angularjs
[10:52:02] *** HelperW has joined #angularjs
[10:53:19] *** Bizari has joined #angularjs
[10:53:24] *** sk87 has joined #angularjs
[10:53:29] *** azizur has joined #angularjs
[10:53:42] *** Bizari_ has quit IRC
[10:54:18] *** caitp has joined #angularjs
[10:55:10] *** PeteCampbell has joined #angularjs
[10:55:15] *** amedia has joined #angularjs
[10:56:06] *** daryllxd has quit IRC
[10:56:20] *** tarnus has joined #angularjs
[10:56:35] <wafflejock_> eighty4: http://jsbin.com/limujila/7/edit
[10:56:37] *** Milanito has quit IRC
[10:57:00] *** jamto11 has joined #angularjs
[10:57:17] *** djam90 has joined #angularjs
[10:57:24] <wafflejock_> eighty4: got it working but kinda ugly... not really sure what a clean way is to do this without a couple of directives and a value or something like that
[10:58:44] <eighty4> wafflejock_: but do I really need the link and scope? it seems to work without it. my jsbin did actually work
[10:59:11] *** klaut has joined #angularjs
[10:59:33] *** PeteCampbell has quit IRC
[10:59:48] *** HelperW_ has joined #angularjs
[11:00:04] <wafflejock_> eighty4: what you did is just a shorthand way of defining it just providing the link function, all I did was to add the isolate scope so I could pass along the data object to modify it within the directive
[11:00:28] *** kroogs has joined #angularjs
[11:00:58] *** tarnus has quit IRC
[11:01:34] *** jamto11 has quit IRC
[11:02:05] <wafflejock_> eighty4: alternatively you can requrie the ngModel and use the ngModelController in the link function but you'll still need the longer form of the directive definition object
[11:02:15] *** dbouwman has joined #angularjs
[11:02:35] *** KushS has quit IRC
[11:02:36] <wafflejock_> and that will only give you access to the model on the current input
[11:03:11] <djam90> Can someone tell me something about AngularJS that I "probably" don't know? :P
[11:03:18] <Chepra> Anyone got an experience to model login-forms with angular? Having one, the model for the password field is not set when using a saved pasword (firefox, + 1.2.18)
[11:03:36] *** HelperW has quit IRC
[11:03:56] *** caitp has quit IRC
[11:03:56] *** bamyyyooo14335 has joined #angularjs
[11:04:02] <eighty4> wafflejock_: ok, I think I understand :)
[11:04:11] <wafflejock_> Chepra: the auto fill has been a problem for a while don't think it's fixed
[11:04:18] <wafflejock_> Chepra: there are directives to work around it
[11:04:25] <Chepra> thanks
[11:04:52] <wafflejock_> basically since there is no change notification that angular can pick up reliably you need to manually iterate over the inputs and trigger the model updates manually, but theres some stuff out there you can find to help
[11:04:56] <wafflejock_> Chepra: ^
[11:05:12] *** kroogs has quit IRC
[11:06:05] <eighty4> wafflejock_: thanks for all your input :D
[11:06:29] *** KushS has joined #angularjs
[11:06:34] *** dbouwman has quit IRC
[11:06:52] *** josh-k has joined #angularjs
[11:07:07] *** JoshGlzBrk has quit IRC
[11:07:10] *** cujojp has joined #angularjs
[11:08:03] <Pierre_N> oh ja that was the one
[11:08:11] <Pierre_N> oh whoops, wrong window.
[11:08:22] *** wiherek has joined #angularjs
[11:08:23] <wiherek> hi
[11:08:38] *** jtimon has joined #angularjs
[11:08:39] *** azizur has quit IRC
[11:08:53] *** thomastuts has joined #angularjs
[11:08:55] *** evilaliv3 has joined #angularjs
[11:09:16] <wiherek> I have a question, related to performance I think :) I am getting HTML from an API, and that html includes elements that I compile to directives
[11:10:16] *** Jdubs_ has quit IRC
[11:10:37] <wiherek> so I created a container directive, I pass the HTML with one-way-binding (&), then the container directive inserts the html like this: element.html(scope.content())
[11:11:04] <wafflejock_> eighty4: yup np
[11:11:05] <wiherek> then I $compile(element.contents()).(scope)
[11:11:17] <thomastuts> hey guys, sorry if this is slightly off-topic, but has anyone used oauth.io's OAuth daemon before? i'm running into an issue where i can't seem to get a refresh token from providers (i'm using the oauth information in an angular app to select accounts, e.g. facebook pages)
[11:11:33] *** cujojp has quit IRC
[11:11:57] <wiherek> is that correct? or should I maybe do that from the controller? because this way, all the directives inside the container directive have the scope isolated to that container.
[11:12:47] <Ronyrun> http://stackoverflow.com/questions/24549429/how-to-load-a-sqlite-schema-in-the-run-block-before-the-call-of-queries-from-t
[11:13:28] <wiherek> and also I am running into $sce related issues with the directives inside the container (when I try to interpolate some resource url with scope variables)
[11:13:49] *** joshontheweb has quit IRC
[11:14:12] <wafflejock_> wiherek: would be good to throw together a plunkr
[11:14:20] *** azizur has joined #angularjs
[11:14:27] *** ngbot has joined #angularjs
[11:14:27] <ngbot> [angular.js] petebacondarwin pushed 2 new commits to master: http://git.io/NdpLBA
[11:14:27] <ngbot> angular.js/master f66d654 Artiom Neganov: docs(guide/di): clarify what "services" can be injected into .config() and .run()...
[11:14:27] <ngbot> angular.js/master 7e77521 Peter Bacon Darwin: docs(guide/di): further clarification of what can be injected
[11:14:27] *** ngbot has left #angularjs
[11:14:33] <wiherek> I wonder if I should maybe trust the html that I pass to the container first... or not? another way is probably inserting the html with ng-bind-html and then just compiling that.
[11:14:36] <wafflejock_> don't think you actually want & probably @ or = https://docs.angularjs.org/api/ng/service/$compile also compile shouldn't have a . in there
[11:14:37] *** tarkus has joined #angularjs
[11:14:47] *** joshontheweb has joined #angularjs
[11:15:15] <wiherek> wafflejock_, yea, that was an IRC typo :)
[11:15:27] <wafflejock_> wiherek: with regard to SCE and ng-bind-html you just need to run $sce.trustAsHTML on the HTML string before it is passed to the ng-bind-html directive
[11:15:39] <Aartsie> Hi all
[11:15:43] *** Pierre_N has quit IRC
[11:15:55] <wiherek> I never pass the html to ng-bind-html, I do element.html()
[11:16:08] *** Ir1sh has joined #angularjs
[11:16:15] <Aartsie> i have a question why isn't it possible using the search filter on a object ?
[11:16:44] <wiherek> wafflejock_, I don't need to modify the content from the directive, that's why i used &
[11:16:44] <wafflejock_> Aartsie: the built in filter code checks for isArray on the input object and exists if it isn't an array
[11:16:54] *** Xethron has quit IRC
[11:16:59] <wiherek> and it's like a lot of html, didn't want to pass it as a string
[11:17:35] <Aartsie> wafflejock_: so i can't search in a object ?
[11:17:38] <wafflejock_> wiherek: & is for passing in an expression typically used for "callback" like functions like ng-click and whatnot, it might be what you want but haven't used it that way myself
[11:17:50] <wafflejock_> Aartsie: you need a custom filter I believe
[11:17:56] *** wilmoore has quit IRC
[11:18:15] <wafflejock_> Aartsie: https://github.com/angular/angular.js/blob/master/src/ng/filter/filter.js#L118
[11:18:35] <Aartsie> wafflejock_: the point is i need a refference as array key but that isn't possible in Javascript :(
[11:18:59] <wiherek> wafflejock_, i don't think it needs to be a function, I execute what I pass in and it returns the string - works as expected
[11:19:06] <wafflejock_> Aartsie: you can iterate over properties in an object the built in filter just doesn't do it
[11:20:15] *** Bizari has quit IRC
[11:21:02] *** Pierre_N has joined #angularjs
[11:21:21] <wafflejock_> wiherek: don't think there is anything you need to do regarding $sce when using $compile but haven't used it a ton
[11:21:32] <wiherek> yea..
[11:22:33] <wiherek> probably the question comes down to: (1) will $compile(element.contents())(scope) work when run on content that is inserted via ng-bind-html
[11:22:54] <wiherek> and what is faster: ng-bing-html or passing the content and inserting it with html()
[11:23:20] <wafflejock_> seems like skipping the extra directive would be better
[11:24:14] <wiherek> right, but how would I then $compile the content? from the controller? seems like I would need to either do a selector query OR $compile the whole controller scope
[11:24:41] <wafflejock_> wiherek: well you don't want to be doing any $compile in a controller it should be in a directive link functino
[11:24:43] *** Milanito has joined #angularjs
[11:25:05] <wafflejock_> wiherek: no DOM manipulation in directives ever
[11:25:10] <wafflejock_> er outside of directives
[11:25:11] <wafflejock_> rather
[11:25:21] <wiherek> one of the two, for sure :)
[11:25:26] <wafflejock_> haah
[11:25:40] <wiherek> yea.
[11:25:41] <wafflejock_> yeah well it's 4:25am here, I'm on a wacky sleep schedule
[11:25:43] *** aton`_ is now known as aton`
[11:25:51] *** aton` has joined #angularjs
[11:26:01] <wafflejock_> but all DOM manipulation should be in a directive, any behavior changes or changes to the DOM
[11:26:04] <wiherek> i definietely need to compile it, so the directive is necesssary
[11:26:27] <wiherek> sure, that's how I roll :D
[11:26:43] *** annlewis has joined #angularjs
[11:27:08] *** jtimon has quit IRC
[11:27:40] *** davedev2_ has quit IRC
[11:28:06] *** storresi has joined #angularjs
[11:28:35] *** Willow has joined #angularjs
[11:29:03] *** motionman has quit IRC
[11:29:35] *** chachan has joined #angularjs
[11:29:57] *** jkremser has joined #angularjs
[11:29:57] *** jkremser has joined #angularjs
[11:30:34] *** joshontheweb has quit IRC
[11:31:08] *** annlewis has quit IRC
[11:31:11] *** bamyyyooo14335 has quit IRC
[11:31:41] <wiherek> running $compile inside a directive that loads content via ng-bind-html doesn't work
[11:31:55] *** Sebastien-L has joined #angularjs
[11:31:58] <wiherek> maybe it's about priorities?
[11:31:59] <wafflejock_> wiherek: you try fiddling with the priority?
[11:32:01] <wafflejock_> yeah
[11:32:35] *** nszceta has joined #angularjs
[11:32:48] *** jeef3 has joined #angularjs
[11:33:30] *** Ir1sh has quit IRC
[11:34:52] *** Ir1sh has joined #angularjs
[11:35:17] *** jeef3 has quit IRC
[11:35:35] <wiherek> hm
[11:35:43] <wafflejock_> no go?
[11:35:44] <wiherek> ng-bing-html has priority 0
[11:35:54] <wiherek> so I tried setting the custom directive to -1
[11:35:54] *** dariocravero has joined #angularjs
[11:35:56] <wiherek> no go.
[11:36:58] *** tfennelly has quit IRC
[11:37:05] *** davedev24_ has joined #angularjs
[11:37:15] *** bamyyyooo14335 has joined #angularjs
[11:37:42] *** dashed has joined #angularjs
[11:38:00] *** balboah has joined #angularjs
[11:38:10] *** dariocravero has quit IRC
[11:38:32] *** InezK_away is now known as InezK
[11:38:51] *** UniBot has quit IRC
[11:39:12] *** UniBot has joined #angularjs
[11:39:15] *** motionman has joined #angularjs
[11:39:17] *** UniBot has quit IRC
[11:43:07] *** HelperW_ has quit IRC
[11:43:28] *** Vinnyceptr has quit IRC
[11:43:31] *** danielpquinn has joined #angularjs
[11:43:42] *** HelperW_ has joined #angularjs
[11:44:52] *** BlinkyBill has quit IRC
[11:44:56] *** Hackwar has joined #angularjs
[11:45:12] *** DrMabuse has joined #angularjs
[11:47:20] <TyrfingMjolnir> What is a good approach to paralyze the current page and but a modal dialog box on top?
[11:47:44] <wiherek> use a directive for the modal
[11:47:49] *** fels_zh_ has quit IRC
[11:48:05] <wafflejock_> TyrfingMjolnir: you using uibootstrap?
[11:48:07] *** danielpquinn has quit IRC
[11:48:08] <wafflejock_> it has a modal
[11:48:15] <TyrfingMjolnir> no
[11:48:18] *** InezK is now known as InezK_away
[11:48:23] *** fels_zh has joined #angularjs
[11:48:25] <TyrfingMjolnir> Is it a good starting point?
[11:48:48] <wafflejock_> TyrfingMjolnir: it's got a lot of stuff in the default build but if you like bootstrap its a good starting point
[11:48:53] <wiherek> yea, and you have angularjs directives for that.
[11:49:17] <TyrfingMjolnir> I would like to do as little as possible outside AngularJS, NodeJS
[11:49:35] <wafflejock_> TyrfingMjolnir: well you're going to want something to help with the layout of the page
[11:49:41] <wiherek> http://angular-ui.github.io/bootstrap/#/modal
[11:49:43] <wafflejock_> TyrfingMjolnir: that's where bootstrap comes in or foundation or ionic
[11:49:58] *** fels_zh_ has joined #angularjs
[11:50:01] <TyrfingMjolnir> Yes, I have a guy doing the css
[11:50:27] <TyrfingMjolnir> 404
[11:50:27] <TyrfingMjolnir> There isn't a GitHub Page here.
[11:50:53] <wafflejock_> TyrfingMjolnir: redirect error http://angular-ui.github.io/bootstrap/
[11:50:56] <wiherek> http://angular-ui.github.io/bootstrap/ and click modal
[11:51:08] <wiherek> within directives
[11:51:34] <wafflejock_> TyrfingMjolnir: if you don't want everything you can do the create a build bit
[11:52:11] <Emperor_Earth> about http basic auth, i really don't like the idea of user/passwords in the URL string for people that want to share links. is there some way to avoid this?
[11:52:38] <wafflejock_> Emperor_Earth: user/pass should never be in the URL
[11:52:53] <wafflejock_> Emperor_Earth: it should always be somewhere in the request body and ideally should be encrypted with SSL
[11:52:56] *** cpciv has quit IRC
[11:52:59] *** UniBot has joined #angularjs
[11:53:08] <wiherek> can somebody please explain, why I cant trust a value like this: $scope.content = $sce.trustAsHtml($scope.content)
[11:53:10] *** fels_zh has quit IRC
[11:53:13] *** ustunozgur has joined #angularjs
[11:53:15] <Emperor_Earth> wafflejock_: yeah, alright. i thoguht so. i was just looking for some online demos of http basic auth, and they had PLAINTEXT user/pass
[11:53:16] <Emperor_Earth> was scared
[11:53:19] <TyrfingMjolnir> ssl? how about 4096 RSA * 2?
[11:53:28] <wiherek> but I can do this: $scope.newContent = $sce.trustAsHtml($scope.content)
[11:53:38] <wiherek> the former doesn't work
[11:53:39] <Emperor_Earth> just trying to make a RESTful golang server + angular frontend, and was researching different RESTful auth schemes
[11:53:55] <Emperor_Earth> and basic auth over ssl seemed my way til i saw that demo
[11:54:05] *** Foxandxss has joined #angularjs
[11:54:21] <wafflejock_> Emperor_Earth: https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/ think this is the most convincing thing I've seen on auth
[11:54:22] *** night-owl has quit IRC
[11:54:45] <Emperor_Earth> wafflejock_, yeah, but that's with cookies/tokens. not RESTful, right?
[11:54:54] <Emperor_Earth> wafflejock_, looking for pure RESTful architecture
[11:55:37] <Emperor_Earth> wafflejock_, looking at the token based approach
[11:55:53] <wafflejock_> Emperor_Earth: tokens are meant to allow you to achieve a RESTful interface you're just passing the token to verify the connection but the token retrieval/storage can be setup as a separate server if need be
[11:55:55] <Foxandxss> have anyone read "Mastering AngularJS Directives" from packt?
[11:55:57] <Emperor_Earth> wafflejock_, not sure how to implement it on golang. most examples are on node.js
[11:56:14] <zbzzn> anyone knows where I can get the docs of socket.io 0.9?
[11:56:26] <wafflejock_> Emperor_Earth: sorry don't know anything about golang, personally use PHP or Java most of the time
[11:56:28] *** rtpg has quit IRC
[11:57:06] <Emperor_Earth> wafflejock_, thanks for the link/your time
[11:57:12] <wafflejock_> Emperor_Earth: sure np
[11:57:30] <Emperor_Earth> TyrfingMjolnir, i would say that it's a bit overkill... but with the relative speed md5 became trivialized....
[11:58:17] *** Ir1sh has quit IRC
[11:58:25] <TyrfingMjolnir> zbzzn: docs? There is no source?
[11:58:25] *** josh-k has quit IRC
[11:58:54] *** Nizumzen has joined #angularjs
[11:59:15] *** nszceta has quit IRC
[11:59:30] <zbzzn> There were docs
[11:59:43] <zbzzn> but they vanished
[12:00:36] *** kroogs has joined #angularjs
[12:00:42] *** DevAntoine has quit IRC
[12:01:19] *** rtpg has joined #angularjs
[12:01:28] *** bejames has joined #angularjs
[12:01:33] *** marr has quit IRC
[12:01:46] *** robbht has quit IRC
[12:01:52] *** fels_zh_ has quit IRC
[12:02:24] *** kennbrodhagen has joined #angularjs
[12:02:28] *** fels_zh has joined #angularjs
[12:02:48] *** dbouwman has joined #angularjs
[12:02:55] <moong> Hi, Using $scope.$watch on array can I get exactly what was the change?
[12:03:10] <Foxandxss> no
[12:03:18] <moong> hm..
[12:03:20] <moong> thanks
[12:05:10] *** kroogs has quit IRC
[12:06:11] *** jtimon has joined #angularjs
[12:06:48] <wafflejock_> Foxandxss: haven't read it sounds good on the tin though
[12:06:55] *** rtpg has quit IRC
[12:07:14] *** dbouwman has quit IRC
[12:07:25] <Foxandxss> wafflejock_: they contacted me, wants to give me a reviewer copy so I can write about it on my blog, amazon, etc
[12:07:33] *** kennbrodhagen has quit IRC
[12:08:07] <wafflejock_> Foxandxss: looks like this is the author https://github.com/joshkurz
[12:08:24] *** default1 has joined #angularjs
[12:08:25] <wafflejock_> that's cool what's the downside?
[12:09:24] *** quellhorst has quit IRC
[12:09:37] <Foxandxss> well, have to read a book, write about it in exchange of... the book itself
[12:09:51] *** mdix has quit IRC
[12:09:54] *** jonasrosenlind has quit IRC
[12:10:02] *** mdix has joined #angularjs
[12:10:13] *** avens_ has joined #angularjs
[12:10:43] *** bejames has quit IRC
[12:10:46] *** Jdubs has joined #angularjs
[12:10:53] *** AlSquire has joined #angularjs
[12:11:15] *** Habib has joined #angularjs
[12:11:27] <wiherek> should I treat the directive link function as the directives controller?
[12:11:28] <Foxandxss> wafflejock_: also... what's if the book is bad? Not sure if they would be happy about a bad review on my blog
[12:11:35] <Foxandxss> wiherek: no
[12:11:40] <Foxandxss> there are link function and controller
[12:11:41] *** Xethron has joined #angularjs
[12:11:53] <wafflejock_> Foxandxss: well would just get clarification from them first about what they expect in terms of honest reviews
[12:11:56] <wiherek> yea, what are the use cases?
[12:12:21] <Foxandxss> wafflejock_: they shouldn't expect much if they don't pay!
[12:12:27] <wafflejock_> Foxandxss: then you skim it to see what parts are worth reading or point out why it was a bad idea to read it
[12:12:55] *** aslate has quit IRC
[12:13:34] *** avens has quit IRC
[12:14:03] <wafflejock_> Foxandxss: if it isn't worth your time to read it even if it's good then don't do it I guess
[12:14:14] *** Ir1sh has joined #angularjs
[12:14:17] <Foxandxss> wafflejock_: on the other funny side, I was going to write all about directives on my blog or even on a new book
[12:14:39] <wafflejock_> well there ya go it's good to have material in that case either way so you know what to do and what not to do
[12:14:54] <Foxandxss> indeed
[12:14:59] *** Ir1sh has quit IRC
[12:15:03] <Foxandxss> It is 200 pages, and seems interesting
[12:15:08] *** Jdubs has quit IRC
[12:15:15] <mogaj> Hi, am getting ng-grid unavailable error i am using requre.js to add js files here is my main.js and app.js files code http://pastebin.com/meKRwF15 please tell me what am i doing wrong?
[12:15:16] <Foxandxss> so I'll probably talk to them
[12:15:45] *** Milanito has quit IRC
[12:15:59] <wafflejock_> Foxandxss: yeah I mean seems pretty legit, not like you're being asked to deposit money or anything :)
[12:16:12] *** closures999 has joined #angularjs
[12:17:14] *** Emperor_Earth_ has joined #angularjs
[12:17:21] *** closures999 has quit IRC
[12:17:25] *** sigurding has quit IRC
[12:18:14] *** InezK_away is now known as InezK
[12:18:20] *** patrickr_ has joined #angularjs
[12:18:27] <Foxandxss> wafflejock_: yup, pretty legit, free reviews are always legit :P
[12:18:32] <Foxandxss> but the book seems interesting tho
[12:18:34] *** nodweber has joined #angularjs
[12:18:47] *** nszceta has joined #angularjs
[12:19:04] <wafflejock_> Foxandxss: well I mean really it sucks if reviewers are paid by the thing they're reviewing cause then you know they're biased
[12:19:08] *** Gathri has quit IRC
[12:19:26] <wafflejock_> and yeah book focused on full coverage of directives and testing them seems good
[12:19:34] *** Emperor_Earth has quit IRC
[12:19:34] *** Xion_ has quit IRC
[12:19:45] <Foxandxss> I review manning books and on some reviews.. I almost kill the authors
[12:19:54] <Foxandxss> they also contacts me about angular
[12:20:06] <Foxandxss> but some of them (like the MEAN one) is crap
[12:20:07] *** nytrm has quit IRC
[12:21:08] *** aslate has joined #angularjs
[12:21:10] *** Xion_ has joined #angularjs
[12:21:22] <wafflejock_> yeah I'm sure, I read one angular book it wasn't really crap but it was outdated by the time I got through it so from there on out I've mostly relied on the net and chat here and plunkr to figure things out
[12:21:54] <Foxandxss> angular books gets deprecated quickly
[12:22:08] <Foxandxss> I thought about that yesterday reading "Android for busy devs"
[12:22:14] <Foxandxss> which gets updated like 5-6 times per year
[12:22:23] *** Ir1sh has joined #angularjs
[12:22:30] <ansu> isn't this the case with most programming books? once you get it it's almost out of date ^^
[12:22:32] <wafflejock_> yeah think you need to at least e-book at this point for tech stuff
[12:22:33] <Foxandxss> always up to date but I am not sure if the work of updating it, worth
[12:22:47] <Foxandxss> ansu: almost
[12:22:54] *** daryllxd has joined #angularjs
[12:22:58] <Foxandxss> this one I say about android is cool because it is always updated
[12:22:58] <wafflejock_> yeah not like C standard bits
[12:23:07] <Foxandxss> but I try to see it from the author perspective
[12:23:18] <wafflejock_> yeah sure that's tough
[12:23:22] <Foxandxss> it gives less and less money
[12:23:29] <Foxandxss> but the work never stop
[12:23:46] <wafflejock_> eh you can cut it off at some point when it's no longer profitable
[12:23:50] *** daryllxd has quit IRC
[12:23:57] <Foxandxss> of course
[12:24:05] *** daryllxd has joined #angularjs
[12:24:05] <Foxandxss> more when it has 2770
[12:24:07] <Foxandxss> pages
[12:25:20] <wafflejock_> yeah think just building a site that has the information monetized in some way is probably a better way to go at this point both for the end user and the producer
[12:25:35] <wafflejock_> stuff like egghead.io or lynda.com or whatever
[12:25:39] <Foxandxss> indeed
[12:26:03] *** motionman has quit IRC
[12:26:04] <Foxandxss> I need to do something to monetize my stuff also, I like to help and write, but I also need to eat
[12:26:17] <wafflejock_> yup I hear ya
[12:26:26] *** miname has joined #angularjs
[12:26:43] *** annlewis has joined #angularjs
[12:27:10] <ansu> Foxandxss, what do you think at first glance about the book? is it worth it? 2 days left on 10$ discount at packt ;)
[12:27:19] <Foxandxss> ansu: I like it
[12:27:39] <Foxandxss> the table of contents is really interesting
[12:27:46] <Foxandxss> it is much like of what I wanted to write
[12:28:07] *** InezK is now known as InezK_away
[12:28:25] *** bamyyyooo14335 has quit IRC
[12:29:26] *** bamyyyooo14335 has joined #angularjs
[12:31:08] *** annlewis has quit IRC
[12:31:11] *** Joulse has quit IRC
[12:31:57] *** peldan has quit IRC
[12:32:09] *** tfennelly has joined #angularjs
[12:32:15] *** rburns has quit IRC
[12:32:58] <Foxandxss> reading the TOC seems that he uses integration tests
[12:33:01] <Foxandxss> I don't like that way
[12:33:07] <ansu> it's already a bit out of date. e.g. it covers the replace property which is deprecated ^^
[12:33:20] <Foxandxss> replace property?
[12:33:42] <ansu> replace in the directive definition object
[12:33:55] <Foxandxss> ah
[12:34:07] <Foxandxss> it was going to be replace on 1.3? I remember something
[12:34:29] <Foxandxss> uh, bit .14 update the other day
[12:34:31] <Foxandxss> missed it
[12:34:38] *** ChanServ sets mode: +o Foxandxss
[12:34:47] *** fbenoit has quit IRC
[12:34:52] *** Foxandxss changes topic to "http://angularjs.org/ | Docs: http://docs.angularjs.org/ | Latest release: 1.2.19 / 1.3.0-beta.14 | Be respectful! Code Of Conduct: http://goo.gl/m7MHxk | Paste your code here: http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs9bB0f | The channel is being logged at: http://goo.gl/8Wwttq | Be polite! ( *❛‿❛)/˚°◦🐙"
[12:35:01] *** daryllxd has quit IRC
[12:35:15] *** daryllxd has joined #angularjs
[12:35:23] *** moritzs has joined #angularjs
[12:35:39] <mogaj> Hi, am getting ng-grid unavailable error i am using requre.js to add js files here is my main.js and app.js files code http://pastebin.com/meKRwF15 please tell me what am i doing wrong?
[12:35:57] *** intellix has quit IRC
[12:36:29] *** fels_zh has quit IRC
[12:36:46] *** ustunozgur has quit IRC
[12:37:03] *** fels_zh has joined #angularjs
[12:37:04] <ansu> the docs say it's going to be removed in the next major version? shouldn't that be 2.0?
[12:38:08] <Foxandxss> ansu: I don't recall, but if so, it is not deprecated yet :P
[12:38:37] *** ustunozgur has joined #angularjs
[12:38:43] *** nszceta has quit IRC
[12:39:27] *** HACKING-FACEBOOK has quit IRC
[12:39:45] *** daryllxd has quit IRC
[12:39:57] *** daryllxd has joined #angularjs
[12:41:20] *** fels_zh has quit IRC
[12:42:07] *** terrykfwong has quit IRC
[12:42:36] *** terrykfwong has joined #angularjs
[12:42:55] *** HACKING-FACEBOOK has joined #angularjs
[12:44:03] *** bamyyyooo14335 has quit IRC
[12:44:22] *** danielpquinn has joined #angularjs
[12:44:39] *** GUEST123 has joined #angularjs
[12:45:30] *** BlinkyBill has joined #angularjs
[12:45:46] *** bamyyyooo14335 has joined #angularjs
[12:45:52] *** terrykfwong is now known as luv2quilt
[12:47:00] <GUEST123> I am trying to figure out the when of creating custom directives, Is there any definitive situation where creating a custom directive if better than just using a html template with a ton of angular directives and data fed from the pages controller?
[12:47:52] *** quantax- has quit IRC
[12:48:11] *** mdavitz has joined #angularjs
[12:48:20] *** cctom_ has quit IRC
[12:48:33] *** patrickr_ has quit IRC
[12:48:34] *** danielpquinn has quit IRC
[12:50:40] *** mdix has quit IRC
[12:50:58] *** fels_zh has joined #angularjs
[12:51:08] *** Adarsh has joined #angularjs
[12:51:24] *** m_davitz has joined #angularjs
[12:51:27] *** mtsr has quit IRC
[12:51:52] *** GUEST123 has quit IRC
[12:52:19] <Adarsh> I have an angular app which is pretty big.. The problem is that every time i change any of the templates and deploy it... The client machines need to delete their browser cache for them to see the changes. Refreshing the page just wont work. Is there any way to avoid this?
[12:52:44] <wafflejock_> Adarsh: hard refresh works or revving the files
[12:53:06] *** kas84 has joined #angularjs
[12:53:09] *** rburns has joined #angularjs
[12:53:34] <wafflejock_> Shift and click refresh that is, otherwise from a developer perspective you can use rev in a grunt or gulp task to make hashes that get used for the filenames so changes cause a new filename to be generated
[12:53:43] *** Ezku has quit IRC
[12:53:47] *** veturi has quit IRC
[12:54:11] *** Sebastien-L has quit IRC
[12:54:22] *** Khruu has quit IRC
[12:54:56] <wafflejock_> Adarsh: the general term for what you want is "cache busting"
[12:55:19] *** HACKING-FACEBOOK has quit IRC
[12:55:21] *** mdavitz has quit IRC
[12:55:23] *** Ezku has joined #angularjs
[12:55:32] <Foxandxss> wafflejock_: I think it is ctrl, not shift
[12:55:46] *** nytrm has joined #angularjs
[12:55:48] *** Dragory has quit IRC
[12:55:49] <wafflejock_> Foxandxss: yeah maybe think it depends on the browser too to some degree there
[12:55:58] *** cujojp has joined #angularjs
[12:55:59] <Adarsh> wafflejock how can i hard refresh the angular htm templates?
[12:56:11] *** UniBot has quit IRC
[12:56:14] *** Khruu has joined #angularjs
[12:56:22] *** DrJae has joined #angularjs
[12:56:33] *** daryllxd has quit IRC
[12:56:48] <Foxandxss> the rails trick is to put a timestamp on the assets
[12:56:48] *** andrastoth_ has joined #angularjs
[12:56:52] *** freeman42 has joined #angularjs
[12:56:58] <wafflejock_> Adarsh: typically just doing a hard refresh on a page causes it to load everything new instead of using the cached copies but really in terms of end user support rev is probably the way to go if you expect to change things after deployment
[12:56:59] <Foxandxss> so when the assets changes, the timestamp changes and the browser will request them again
[12:57:12] *** tarnus has joined #angularjs
[12:57:12] *** andrastoth has quit IRC
[12:57:13] *** andrastoth_ is now known as andrastoth
[12:57:22] <wafflejock_> Foxandxss: yeah rev does the same but it only changes the hash when the contents of the file changes
[12:57:39] *** iksik has quit IRC
[12:57:41] *** nfroidure_ has quit IRC
[12:57:41] *** mennea has quit IRC
[12:57:42] *** obert has quit IRC
[12:57:42] *** Marsup has quit IRC
[12:58:16] <wafflejock_> Foxandxss: so you get the added benefit of anything that was cached can actually still be used becuase it's actually the same file
[12:58:17] *** jamto11 has joined #angularjs
[12:58:18] *** Jae has quit IRC
[12:58:19] *** NigelS_ has quit IRC
[12:58:22] <Adarsh> wafflejock. yeah clearing the cache solves the problem but i cant tell all the clients to do that.
[12:58:31] <Foxandxss> the timestamp also changes when the files changes, not always
[12:58:48] <Adarsh> wafflejock. what is rev?
[12:58:48] *** NigelS has joined #angularjs
[12:58:49] <wafflejock_> Foxandxss: oh you mean using the modified timestamp
[12:58:55] *** Neil has joined #angularjs
[12:58:55] <wafflejock_> Adarsh: you use grunt or gulp?
[12:58:58] <Neil> hello there
[12:58:58] *** mennea has joined #angularjs
[12:59:03] <Foxandxss> rails generates a css file, js file, etc
[12:59:04] <Foxandxss> like
[12:59:05] *** Marsup has joined #angularjs
[12:59:09] *** texinwien has joined #angularjs
[12:59:10] <Foxandxss> application.12098asdaksjhd1982e7qsdas.js
[12:59:13] <Adarsh> wafflejock_ no dont use any of them
[12:59:14] *** obert has joined #angularjs
[12:59:19] <Foxandxss> so when you modify any js
[12:59:22] *** tonini has quit IRC
[12:59:23] <Foxandxss> the timestamp changes
[12:59:25] <Adarsh> wafflejock_ do i have to to solve this?
[12:59:26] *** iksik has joined #angularjs
[12:59:29] <Foxandxss> so the browser will require it again
[12:59:29] *** tonini has joined #angularjs
[12:59:34] <Neil> anybody to teach angular js
[12:59:35] *** m_davitz has quit IRC
[12:59:47] *** Dragory has joined #angularjs
[12:59:50] <wafflejock_> Adarsh: it will make it easier in the long run, they are tools for automating javascript tasks basically
[12:59:54] <chachan> hey guys, any idea how to update an ui-select2 options given an array?
[13:00:00] *** slvrbckt has joined #angularjs
[13:00:07] <Neil> hello adarsh
[13:00:08] *** nfroidure_ has joined #angularjs
[13:00:11] *** kroogs has joined #angularjs
[13:00:14] *** cujojp has quit IRC
[13:00:17] <texinwien> is something like ng-repeat="foo in bar(baz)" possible?
[13:00:19] *** partikus has quit IRC
[13:00:23] *** HACKING-FACEBOOK has joined #angularjs
[13:00:27] *** Milanito has joined #angularjs
[13:00:29] <Adarsh> Neil hi.
[13:00:31] <wafflejock_> Adarsh: http://java.dzone.com/articles/using-grunt-angularjs-front
[13:00:35] *** HACKING-FACEBOOK has quit IRC
[13:00:43] <Foxandxss> Neil: read a book
[13:00:49] *** quantax- has joined #angularjs
[13:00:53] <Neil> okay thankx buddy
[13:00:53] *** caitp has joined #angularjs
[13:00:55] *** partikus has joined #angularjs
[13:00:56] *** mattwynne has quit IRC
[13:00:58] *** partikus has left #angularjs
[13:01:02] <wafflejock_> Neil: https://github.com/jmcunningham/AngularJS-Learning
[13:01:03] *** avens_ has quit IRC
[13:01:06] <Foxandxss> texinwien: have you tried?
[13:01:09] <Adarsh> wafflejock_ thanks. will go through it. does it do cache busting?
[13:01:27] <texinwien> Foxandxss: indeed, I have, else I wouldn't have asked.
[13:01:33] *** tarnus has quit IRC
[13:01:42] <wafflejock_> Adarsh: yeah rev will change your file name based on the file contents so each time the file changes the filename will be changed too, it will update the references to the file from the source during the build
[13:01:42] <Foxandxss> texinwien: won't be the first time that that happens :)
[13:01:49] *** ncbw has joined #angularjs
[13:01:51] <Foxandxss> texinwien: create a plunker with your idea
[13:01:53] *** Habib has quit IRC
[13:02:00] *** Neil has quit IRC
[13:02:01] <texinwien> I'm trying to determine whether it's not working by design, or whether it's not working due to an error.
[13:02:10] <texinwien> okily dokilu
[13:02:13] <texinwien> dokily
[13:02:25] *** RedOrangeZ has joined #angularjs
[13:02:25] *** HACKING-FACEBOOK has joined #angularjs
[13:02:33] <wafflejock_> Adarsh: I have a video here that goes through tons of setup and whatnot with jump points in the description if you need help with the setup of npm or grunt or anything https://www.youtube.com/watch?v=zQNbsCTFrAA
[13:02:33] *** jamto11 has quit IRC
[13:02:34] *** rburns has quit IRC
[13:02:38] *** HACKING-FACEBOOK has quit IRC
[13:02:55] *** fels_zh has quit IRC
[13:03:02] <Adarsh> wafflejock_ oh great. thanks a lot for helping.
[13:03:06] <wafflejock_> np
[13:03:29] *** fels_zh has joined #angularjs
[13:03:31] *** veturi has joined #angularjs
[13:03:41] *** dbouwman has joined #angularjs
[13:04:38] *** HACKING-FACEBOOK has joined #angularjs
[13:05:14] *** patrickr_ has joined #angularjs
[13:05:18] *** marcospgp has joined #angularjs
[13:05:33] *** kroogs has quit IRC
[13:05:54] <texinwien> Foxandxss: It works, as I expected it would. problem must be in my code.
[13:06:11] <Foxandxss> now the downside
[13:06:12] <Foxandxss> don't do it
[13:06:20] <Adarsh> wafflejock_ i'm on windows. can grunt be used on windows?
[13:06:32] *** TyrfingMjolnir has quit IRC
[13:06:34] <texinwien> Foxandxss: was that advice addressed to me?
[13:06:46] <Foxandxss> yes
[13:07:08] *** default1 has quit IRC
[13:07:10] <texinwien> why is that a bad idea?
[13:07:24] <texinwien> Any articles I can read up on?
[13:07:24] *** sigurding has joined #angularjs
[13:07:52] *** daryllxd has joined #angularjs
[13:07:56] *** dbouwman has quit IRC
[13:07:58] *** DrJae is now known as Jae
[13:08:07] *** fels_zh has quit IRC
[13:08:09] *** Jae has quit IRC
[13:08:09] *** Jae has joined #angularjs
[13:08:20] <Foxandxss> because that function is going to be called hundred of times
[13:08:27] <texinwien> I see that now
[13:08:29] <Foxandxss> and that is potentially slow
[13:08:30] <texinwien> interesting
[13:08:33] *** daryllxd has quit IRC
[13:09:21] <texinwien> I want to do something special to every Xth item in my repeat. X is also adjustable in the UI.
[13:09:40] *** nytram has joined #angularjs
[13:09:47] *** disorder20 has joined #angularjs
[13:09:49] <texinwien> That's what I was trying to accomplish by calling the function. Obviously not the best solution:)
[13:09:51] <Foxandxss> there is a $index property inside the repeat
[13:10:20] <texinwien> yes, I'm aware of that
[13:10:22] *** disorder20 has quit IRC
[13:10:42] <texinwien> I can see how to use it when I first render the repeat items. Not as sure how I'd use it if I update X in the UI.
[13:10:53] <Christer|> Is there any way to make a return value wait for a successcallback to be triggered?
[13:11:07] *** daryllxd has joined #angularjs
[13:12:02] *** nytrm has quit IRC
[13:12:06] *** daryllxd_ has joined #angularjs
[13:12:14] *** avens has joined #angularjs
[13:12:19] *** AlSquire has quit IRC
[13:12:34] *** joshontheweb has joined #angularjs
[13:13:08] *** Emperor_Earth has joined #angularjs
[13:13:52] *** ngbot has joined #angularjs
[13:13:52] <ngbot> [angular.js] petebacondarwin pushed 2 new commits to master: http://git.io/0TOh4A
[13:13:52] <ngbot> angular.js/master be41adc cranesandcaff: docs(guide/controller): only show best practice controller creation...
[13:13:53] <ngbot> angular.js/master c0e6527 Peter Bacon Darwin: docs(guide/controller): tweak initial example
[13:13:53] *** ngbot has left #angularjs
[13:13:53] *** Cavallari has joined #angularjs
[13:14:30] <marcospgp> Don't services and factories amount to pretty much the same? See http://blog.manishchhabra.com/2013/09/angularjs-service-vs-factory-with-example/ Calling a service: $scope.fromService = testService.sayHello("World"); Calling a factory: $scope.fromFactory = testFactory.sayHello("World");
[13:15:05] *** BlinkyBill has quit IRC
[13:15:24] *** daryllxd has quit IRC
[13:15:27] <Zerot> marcospgp: didn't you ask that exact same question yesterday?
[13:15:34] <Zerot> and didn't we answer with: yes?
[13:15:38] <marcospgp> Zerot: yep. still in doubt
[13:15:39] *** fels_zh has joined #angularjs
[13:15:46] <marcospgp> Zerot: Hm, no, I didn't get an yes /:
[13:15:58] *** HACKING-FACEBOOK has quit IRC
[13:15:58] *** joshontheweb has quit IRC
[13:15:58] *** Emperor_Earth_ has quit IRC
[13:15:59] <marcospgp> What most people said was not really
[13:16:06] <Zerot> yes you did. They are the same when used. they are only different in definition
[13:16:07] <marcospgp> which confused me aha
[13:16:18] *** mguillech has joined #angularjs
[13:16:24] <marcospgp> okay thanks a lot. Sorry if I'm being too insistent, I don't mean to be annoying
[13:16:54] *** marr has joined #angularjs
[13:17:10] *** marcghorayeb is now known as marcghorayeb|afk
[13:17:55] *** intellix has joined #angularjs
[13:18:09] <Foxandxss> texinwien: technically that won't matter
[13:18:37] *** charith has joined #angularjs
[13:18:40] <Foxandxss> marcospgp: http://angular-tips.com/blog/2013/08/understanding-service-types/
[13:18:58] <Foxandxss> a service IS a factory
[13:19:00] <chachan> where inside the $scope can I find the options created by ui-select2?
[13:19:00] *** InezK_away is now known as InezK
[13:19:15] *** arek_at_work has joined #angularjs
[13:19:29] <charith> hello
[13:19:43] <charith> i want to create a simple virtical tab panel
[13:19:56] <marcospgp> @Foxandxss: Oh yea I read something about that and how it works under the hood. What confused me is that i don't really see a reason for having so many different kinds of specific providers
[13:19:58] *** cctom_ has joined #angularjs
[13:20:05] <charith> does anjular js has built in support?
[13:20:31] <Foxandxss> angular doesn't have any widget built-in
[13:20:32] <arek_at_work> charith: use ui-bootstrap
[13:20:37] *** niki_ has joined #angularjs
[13:21:15] <texinwien> Foxandxss: what won't matter?
[13:21:18] <texinwien> Here's my plunker
[13:21:20] <texinwien> http://plnkr.co/edit/AzNuGBTpgnkDmYC5EAyV?p=preview
[13:22:07] <Foxandxss> can't see it right now, phone
[13:22:14] <texinwien> sorry - mistake in that one. this one's better: http://plnkr.co/edit/AzNuGBTpgnkDmYC5EAyV?p=preview
[13:22:16] *** orion1111 has joined #angularjs
[13:23:02] <Foxandxss> marcospgp: all of them have their usage
[13:23:07] *** joshontheweb has joined #angularjs
[13:23:42] *** daryllxd has joined #angularjs
[13:23:42] *** daryllxd_ has quit IRC
[13:23:45] <texinwien> come on. that is too ridiculously cool
[13:23:48] <texinwien> :D
[13:23:49] <marcospgp> @Foxandxss: Can you please give me a real life example of when you would use, say a service over a factory? So I can get some context, and thanks a lot :)
[13:24:02] <texinwien> it just works - no function call necessary. Very nice.
[13:24:07] *** aslate has quit IRC
[13:24:09] <texinwien> wow
[13:24:09] *** sk87 has quit IRC
[13:24:19] *** charith has quit IRC
[13:24:26] <Foxandxss> marcospgp: service receives a constructor function, so if you have a constructor function,you can wrap it easily on a service
[13:24:31] *** ngbot has joined #angularjs
[13:24:31] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/PiErXw
[13:24:32] <ngbot> angular.js/master b7c3155 Robert Kielty: docs(tutorial/step-7): improve injector information...
[13:24:32] *** ngbot has left #angularjs
[13:24:38] <zelrik> hi
[13:25:05] *** GeertV_ has quit IRC
[13:25:22] *** FunnyLookinHat has joined #angularjs
[13:25:24] *** GeertV has joined #angularjs
[13:25:24] *** amedia has quit IRC
[13:26:05] *** rpeterson has joined #angularjs
[13:26:05] *** amedia has joined #angularjs
[13:26:08] <texinwien> updated, working plunkr: http://plnkr.co/edit/AzNuGBTpgnkDmYC5EAyV?p=preview
[13:26:12] <texinwien> cool
[13:26:19] *** 77CAAO8ZF has joined #angularjs
[13:27:03] *** avens has quit IRC
[13:27:26] *** jaxtrx has joined #angularjs
[13:27:26] *** niki_ has quit IRC
[13:27:39] *** andy__ has quit IRC
[13:28:08] <ansu> are there any pitfalls when using the filter filter with a collection of ngResource objects? if i use the filter in html it doesn't do anything, but applying it in through the $filter service in the success callback works...
[13:28:53] *** InezK is now known as InezK_away
[13:30:30] *** patrickr_ has quit IRC
[13:30:50] *** HACKING-FACEBOOK has joined #angularjs
[13:30:56] *** jaxtrx has quit IRC
[13:31:09] *** patrickr_ has joined #angularjs
[13:31:10] *** HACKING-FACEBOOK has quit IRC
[13:31:16] *** jaxtrx has joined #angularjs
[13:31:43] <arek_at_work> Foxandxss: how do You make controller created by $controller available to module?
[13:31:50] *** Ethix has joined #angularjs
[13:31:50] <texinwien> that is redonk
[13:32:04] <Foxandxss> arek_at_work: why do you do that?
[13:32:15] <arek_at_work> Foxandxss: isolated scope
[13:32:36] *** aslate has joined #angularjs
[13:32:36] <arek_at_work> and watches
[13:32:43] <Foxandxss> let's talk later, I am at phone
[13:33:27] <zelrik> can you give me stars Oo
[13:33:27] *** HACKING-FACEBOOK has joined #angularjs
[13:34:07] *** mtsr has joined #angularjs
[13:34:09] *** jaxtrx has quit IRC
[13:34:31] *** jaxtrx has joined #angularjs
[13:36:03] *** disorder20 has joined #angularjs
[13:36:05] *** jaxtrx has quit IRC
[13:36:13] *** klaut has quit IRC
[13:36:22] *** disorder20 has quit IRC
[13:36:24] *** jaxtrx has joined #angularjs
[13:36:25] *** bayousoft has joined #angularjs
[13:36:51] *** milka has quit IRC
[13:36:53] *** daryllxd has quit IRC
[13:37:03] *** juampy is now known as juampy_gnomgnom
[13:37:12] *** greenleaf has joined #angularjs
[13:37:14] *** daryllxd has joined #angularjs
[13:37:23] *** sk87 has joined #angularjs
[13:37:39] <greenleaf> karma-jasmine sometimes uses jasmine 1.3.1, and sometimes 2.0
[13:37:51] *** dobladez has joined #angularjs
[13:38:12] *** avens has joined #angularjs
[13:38:17] <greenleaf> if i do "npm install" it uses 1.3.1, if I do "npm update" it uses 2.0
[13:38:21] <greenleaf> what the hell? :S
[13:38:47] <Foxandxss> welcome to npm
[13:38:59] <Foxandxss> arek_at_work: can you explain again?
[13:39:02] *** jharbaugh has quit IRC
[13:39:10] *** j_ has joined #angularjs
[13:39:12] <greenleaf> so basicly my unit test pass every second time :S
[13:39:20] <greenleaf> because jasmine's api keeps changing
[13:39:27] <arek_at_work> greenleaf: lol
[13:39:29] <Foxandxss> stick with one
[13:39:29] *** jharbaugh has joined #angularjs
[13:39:42] <greenleaf> there is no way for me to choose
[13:39:44] <arek_at_work> usually latest
[13:40:07] <texinwien> honestly, though, if I'm evaluating a simple expression in an ng-repeat, is there any more overhead in moving the expression into a function?
[13:41:01] <arek_at_work> texinwien: not really
[13:41:16] <arek_at_work> texinwien: there should be improvement even
[13:41:29] <Foxandxss> texinwien: in your case shouldn't matter
[13:41:40] *** avens has quit IRC
[13:41:57] <texinwien> That's what I figured.
[13:42:50] *** HACKING-FACEBOOK has quit IRC
[13:42:54] *** jharbaug_ has joined #angularjs
[13:43:18] *** one_zero has quit IRC
[13:43:21] *** hychen has quit IRC
[13:43:23] <arek_at_work> texinwien: usually put stuff into functions, unless its short one liner
[13:44:24] *** sacho has joined #angularjs
[13:44:51] *** jordandotdev has quit IRC
[13:45:04] *** Xethron has quit IRC
[13:45:15] *** danielpquinn has joined #angularjs
[13:45:50] <texinwien> arek_at_work: indeed, I usually do. Foxandxss told me earlier that I shouldn't call a function in an ng-repeat, however.. so I was slightly befuddled.
[13:45:58] *** jharbaugh has quit IRC
[13:46:04] <Foxandxss> the function is going to be called hundred of times
[13:46:09] <Foxandxss> just keep that in mind and you won't be hurt
[13:46:30] *** bamyyyooo14335 has quit IRC
[13:47:15] <texinwien> well, the expression would also be evaluated just as often, wouldn't it?
[13:47:17] <arek_at_work> Foxandxss: i usually attach functions to events
[13:47:24] *** HACKING-FACEBOOK has joined #angularjs
[13:47:32] *** Xethron has joined #angularjs
[13:47:36] <texinwien> in which case, it's basically a wash
[13:47:41] <texinwien> or?
[13:47:43] *** raibutera has joined #angularjs
[13:47:53] *** jaxtrx has quit IRC
[13:48:13] *** UniBot has joined #angularjs
[13:48:20] *** bamyyyooo14335 has joined #angularjs
[13:48:32] <texinwien> is there any difference between {{$index % x === 0 ? 'noclass' : 'class'}} in an ng-repeat, or simply putting that into a function and calling it from ng-repeat?
[13:49:32] *** danielpquinn has quit IRC
[13:49:44] *** Ronyrun has quit IRC
[13:49:50] *** Nizumzen has quit IRC
[13:50:32] *** disorder20 has joined #angularjs
[13:50:34] *** motionman has joined #angularjs
[13:50:34] *** motionman has joined #angularjs
[13:50:42] *** marcghorayeb|afk is now known as marcghorayeb
[13:50:45] *** disorder20 has quit IRC
[13:50:51] *** IJNX has joined #angularjs
[13:51:27] *** aslate has quit IRC
[13:51:28] *** ngbot has joined #angularjs
[13:51:28] <ngbot> [angular.js] petebacondarwin pushed 2 new commits to master: http://git.io/ShBviw
[13:51:28] <ngbot> angular.js/master ae0de07 Peter Bacon Darwin: docs(tutorial/step-0): remove hyphen and clarify items...
[13:51:28] <ngbot> angular.js/master 1fcbb69 Peter Bacon Darwin: chore(docs/css): add margin between ul and p elements...
[13:51:28] *** ngbot has left #angularjs
[13:51:29] *** benjamingr has joined #angularjs
[13:52:32] *** kas84 has quit IRC
[13:53:15] *** kas84 has joined #angularjs
[13:53:24] *** j_ has quit IRC
[13:54:31] *** jharbaugh has joined #angularjs
[13:56:22] *** CodeFriar has joined #angularjs
[13:56:50] *** jharbaugh has quit IRC
[13:57:11] *** jharbaug_ has quit IRC
[13:57:14] *** CodeFriar has quit IRC
[13:57:14] *** jharbaugh has joined #angularjs
[13:58:24] *** ymammar has joined #angularjs
[13:58:32] *** eperez_ has joined #angularjs
[13:58:42] *** UniBot has quit IRC
[13:59:01] *** UniBot has joined #angularjs
[13:59:05] *** greg5green has quit IRC
[13:59:26] *** wiherek has quit IRC
[13:59:39] *** jkremser has quit IRC
[13:59:49] *** jharbaugh has quit IRC
[14:00:00] *** ingshtrom has joined #angularjs
[14:00:13] *** shinnya has joined #angularjs
[14:00:14] *** jharbaugh has joined #angularjs
[14:00:22] *** nodweber has quit IRC
[14:00:34] *** kroogs has joined #angularjs
[14:00:37] *** IJNX has quit IRC
[14:00:43] *** Sgeo has quit IRC
[14:00:46] *** tarnus has joined #angularjs
[14:00:56] *** nodweber has joined #angularjs
[14:01:36] *** bengillies has joined #angularjs
[14:01:43] *** hannesvdvreken has quit IRC
[14:02:12] *** HACKING-FACEBOOK has quit IRC
[14:02:20] *** Ethix has quit IRC
[14:02:57] *** milka has joined #angularjs
[14:03:01] *** avens has joined #angularjs
[14:03:17] *** kennbrodhagen has joined #angularjs
[14:03:26] *** hannesvdvreken has joined #angularjs
[14:03:40] *** msafi has joined #angularjs
[14:04:32] *** msafi1 has joined #angularjs
[14:04:33] *** dbouwman has joined #angularjs
[14:04:37] <msafi1> Hey guys, anyone know how to configure a Protractor reporter? It's using the dots reporter by default but I wanna change that to something more verbose. Any ideas?
[14:05:08] *** kroogs has quit IRC
[14:05:24] *** nodweber has quit IRC
[14:05:52] *** fbenoit has joined #angularjs
[14:05:54] *** cmoneylulz has joined #angularjs
[14:07:03] *** avens has quit IRC
[14:07:06] *** PeteCampbell has joined #angularjs
[14:07:19] *** quantax- has quit IRC
[14:07:43] *** greenleaf has quit IRC
[14:07:48] *** tpyo has joined #angularjs
[14:07:56] <davesidious_> Hey folks! I'm trying to implement the ng-change functionality on my directive (a wrapper for Angular UI's datepicker), and I'm not having much success. I've got an expression which I want evaluated in the attribute, which is: "schedule.date = 'custom'". How should I go about this?
[14:07:58] *** ishara has joined #angularjs
[14:07:59] *** kas84 has quit IRC
[14:08:00] *** feelfine has joined #angularjs
[14:08:01] *** mihalybak has joined #angularjs
[14:08:19] *** jpiasetz has joined #angularjs
[14:08:31] *** kas84 has joined #angularjs
[14:08:31] *** kennbrodhagen has quit IRC
[14:08:32] *** msafi has quit IRC
[14:08:35] *** Maverickz has joined #angularjs
[14:08:48] *** jharbaug_ has joined #angularjs
[14:09:04] *** dbouwman has quit IRC
[14:09:07] <Maverickz> Hello guys, i would like to know, what it the best way to paginate data i receive from a rest api via $resource, thank you
[14:09:13] *** disorder20 has joined #angularjs
[14:09:23] *** Cavallari has quit IRC
[14:09:27] *** texinwien has quit IRC
[14:10:12] *** patrickr_ has quit IRC
[14:10:31] *** tommmied has quit IRC
[14:10:33] *** patrickreck has joined #angularjs
[14:11:10] *** kas84 has quit IRC
[14:11:37] *** balboah has quit IRC
[14:11:43] <caitp> there is no best way
[14:11:52] *** jharbaugh has quit IRC
[14:12:02] *** bayousoft has quit IRC
[14:12:02] <caitp> there are many different ways with their pros and cons
[14:12:15] *** CodeFriar has joined #angularjs
[14:12:25] *** UniBot has joined #angularjs
[14:12:30] *** klaut has joined #angularjs
[14:12:45] *** CodeFriar has quit IRC
[14:13:10] *** Joulse has joined #angularjs
[14:13:42] <sacho> fa
[14:14:02] *** dariocravero has joined #angularjs
[14:14:02] *** edzez has quit IRC
[14:14:27] *** edzez has joined #angularjs
[14:16:32] *** jk-5|gone has quit IRC
[14:17:11] *** CodeFriar has joined #angularjs
[14:17:17] *** kalehv has joined #angularjs
[14:18:05] *** charith has joined #angularjs
[14:18:17] <bd> typeahead from ui-bootstrap is broken in latest angular beta
[14:18:21] *** eperez_ has quit IRC
[14:18:32] *** joshontheweb has quit IRC
[14:20:58] <charith> hello, i want to set up a page with vertical tabs in the left side and when user clicks one tab, i want to load a html page to left
[14:20:58] *** InezK_away is now known as InezK
[14:20:58] *** vbabiy has joined #angularjs
[14:20:59] <charith> can someone help me on this?
[14:20:59] *** orion1111 has quit IRC
[14:21:00] <charith> sorry, load a html to right
[14:21:01] *** Sebastien-L has joined #angularjs
[14:24:10] *** fels_zh has quit IRC
[14:24:11] *** jk-5|gone has joined #angularjs
[14:24:11] *** fels_zh has joined #angularjs
[14:24:11] *** mils has quit IRC
[14:24:11] *** jacuqesdancona_ has joined #angularjs
[14:24:12] *** LRFalk01 has joined #angularjs
[14:24:12] *** bamyyyooo14335 has quit IRC
[14:24:13] *** karihre has quit IRC
[14:24:13] *** oal has quit IRC
[14:24:13] *** siimon_ has quit IRC
[14:24:13] *** jacuqesdancona has quit IRC
[14:24:13] *** siimon has joined #angularjs
[14:24:21] *** veturi has quit IRC
[14:24:22] *** Khruu has quit IRC
[14:24:29] *** veturi has joined #angularjs
[14:24:34] *** Khruu has joined #angularjs
[14:24:40] <LRFalk01> do you think creating an base scope object and putting your properties in that rather than directly in scope is an acceptable way to work around child scopes not updating properties correctly?
[14:24:50] *** eperez has joined #angularjs
[14:24:57] *** oal has joined #angularjs
[14:25:02] *** ngbot has joined #angularjs
[14:25:02] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/FbaQcg
[14:25:02] <ngbot> angular.js/master 4a8bffe Cory Boyd: docs($httpProvider): add missing documentation...
[14:25:02] *** ngbot has left #angularjs
[14:25:03] *** instence has quit IRC
[14:25:04] <LRFalk01> eg when $scope.prop is a bool and the ui wants to work with it in an ng-if
[14:25:04] *** karihre has joined #angularjs
[14:25:05] *** instence_ has joined #angularjs
[14:25:22] *** walden|afk is now known as walden
[14:25:24] *** balboah has joined #angularjs
[14:25:30] *** jr3 has joined #angularjs
[14:25:30] *** eperez has joined #angularjs
[14:25:37] *** mils has joined #angularjs
[14:25:57] *** ngbot has joined #angularjs
[14:25:57] <ngbot> [angular.js] petebacondarwin force-pushed master from 4a8bffe to 6775972: http://git.io/eb2NaA
[14:25:57] <ngbot> angular.js/master 6775972 Cory Boyd: docs($httpProvider): add missing documentation...
[14:25:57] *** ngbot has left #angularjs
[14:26:13] *** bayousoft has joined #angularjs
[14:26:34] *** fels_zh has quit IRC
[14:26:35] *** bayousoft has quit IRC
[14:26:39] <Foxandxss> LRFalk01: don't use primitives
[14:26:43] <Foxandxss> and you will be safge
[14:26:45] <Foxandxss> safe*
[14:27:32] *** dcherman2 has quit IRC
[14:27:58] *** DevAntoine has joined #angularjs
[14:28:06] <LRFalk01> I'm pretty sure that does not make sense to me. How do you not use primitives ?
[14:28:18] *** bmac has joined #angularjs
[14:28:31] <Foxandxss> use objects
[14:28:35] <Foxandxss> instead of ng-model="foo"
[14:28:40] <Foxandxss> you do ng-model="foo.bar"
[14:28:47] *** RaphaelRocca has joined #angularjs
[14:28:48] *** jk-5|gone has quit IRC
[14:28:50] <LRFalk01> I think that is what I am describing
[14:29:09] *** Milanito has quit IRC
[14:29:16] *** bengillies has quit IRC
[14:29:26] <LRFalk01> in my controller doing something like $scope.fooCont = {};
[14:29:26] <sacho> I wouldn't do it for all properties on the scope.
[14:29:30] *** fels_zh has joined #angularjs
[14:29:39] *** ngbot has joined #angularjs
[14:29:39] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/ZT38bw
[14:29:39] <ngbot> angular.js/master 1a9cb0a Peter Bacon Darwin: docs($httpProvider): revert removal of comments...
[14:29:39] *** ngbot has left #angularjs
[14:29:39] *** InezK is now known as InezK_away
[14:29:41] *** dariocravero has quit IRC
[14:29:50] *** mogaj has quit IRC
[14:29:57] <Foxandxss> sacho: be aware of scope issues then
[14:30:06] *** altmind has joined #angularjs
[14:30:30] *** jonasrosenlind has joined #angularjs
[14:30:31] <storkme> Foxandxss: did i hear you mention you have a blog earlier? is it js/angular related
[14:30:39] <LRFalk01> yeah, It is super frustrating to spend 30 min on these ref/val issues all the time
[14:30:43] <Foxandxss> http://angular-tips.com/
[14:31:06] *** Nizumzen has joined #angularjs
[14:31:15] *** bengillies has joined #angularjs
[14:31:54] <storkme> nice one, thanks
[14:32:03] *** ishara has quit IRC
[14:32:07] *** ustunozg_ has joined #angularjs
[14:32:08] *** fels_zh has quit IRC
[14:32:14] *** cmoneylulz has quit IRC
[14:32:48] *** fels_zh has joined #angularjs
[14:33:10] <sacho> if having an object as the base for all your properties on the scope was always the better idea, angular should have done it in the first place
[14:33:13] *** altious has quit IRC
[14:33:17] *** ngoyal has joined #angularjs
[14:33:20] <marcospgp> I just saw a sample angular app that defined global constructors in separate files and then turned them into factories inside models. That can't be good practice, right?
[14:33:32] <Foxandxss> sacho: that is not an angular issue but javascript
[14:34:04] *** dashed has quit IRC
[14:34:10] *** jk-5 has joined #angularjs
[14:34:10] <sacho> you're missing the point. No need to teach me about javascript.
[14:34:14] <arek_at_work> sacho: write Your owm framework
[14:34:17] <arek_at_work> *own
[14:34:20] *** Milanito has joined #angularjs
[14:34:34] *** milka has quit IRC
[14:34:35] <Foxandxss> sacho: I am not, I am just saying that angualr is not the one who have to fix that
[14:34:36] <sacho> If placing everything in an object is always better, then angular could have done that on its own, the expression "expr" could resolve to scope.scopeObj.expr
[14:34:42] *** milka has joined #angularjs
[14:34:50] <sacho> there's nothing to fix there?
[14:34:59] <Foxandxss> I guess there are use cases where you need a primitive
[14:35:08] <Foxandxss> angular is all about configuration
[14:35:11] <Foxandxss> no conventions
[14:35:12] *** ustunozgur has quit IRC
[14:35:15] <sacho> uhh
[14:35:19] <Foxandxss> and that is a convention (what you say about expr)
[14:35:23] <arek_at_work> Foxandxss: id say opposite:P
[14:35:24] <Foxandxss> freedom for the dev
[14:35:25] <LRFalk01> Foxandxss: so, do you not see issue with this idea?
[14:35:28] <sacho> is that why there's no way to specify whether you want a binding or not
[14:35:31] *** azizur has quit IRC
[14:35:32] *** dancek has quit IRC
[14:35:36] <sacho> or whether you want a two-way binding or a one-way
[14:35:36] <sacho> etc
[14:35:37] <sacho> :)
[14:35:42] <Foxandxss> arek_at_work: about what? :P
[14:35:46] *** SpearThruster has joined #angularjs
[14:35:54] <sacho> angular is exceedingly magical
[14:36:07] *** charith has quit IRC
[14:36:10] <Foxandxss> I don't find it that magical, at least not compared to ember
[14:36:12] <sacho> LRFalk01, you could do it
[14:36:15] *** nodweber has joined #angularjs
[14:36:28] <sacho> I don't know ember - maybe that's true :)
[14:36:34] <Foxandxss> sacho: I agree and I will always agree that scope inheritance is the biggest PITA about angular
[14:36:36] *** OdinIncarnate has quit IRC
[14:36:43] <Foxandxss> but I am not so sure of what angular could do about that
[14:36:47] <Foxandxss> anyway, angular 2 won't have scopes
[14:36:56] <quan___> whats the replacement ??
[14:37:03] <sacho> well "expr" -> scope.scopeObj.expr would be a fairly stable solution
[14:37:09] <LRFalk01> no scopes? what devilry
[14:37:11] *** fels_zh has quit IRC
[14:37:15] *** davedev24_ has quit IRC
[14:37:17] *** daslicht has joined #angularjs
[14:37:23] <Foxandxss> quan___: angular 2 will be much different
[14:37:35] <sacho> ah, they're going the symfony route of making a framework
[14:37:37] *** jr3 has quit IRC
[14:37:48] <Foxandxss> not familiar with symfony
[14:37:48] <quan___> will everything we know turn out to be a lie
[14:37:51] <zelrik> Foxandxss, how so
[14:38:05] *** hswolff has joined #angularjs
[14:38:06] *** davedev24_ has joined #angularjs
[14:38:09] <sacho> Foxandxss, "we learned how to build a framework in the first, so now we'll build it better from the ground up"
[14:38:10] *** ngoyal has quit IRC
[14:38:15] <quan___> heh
[14:38:30] <Foxandxss> bite me, I am not a core dev
[14:38:39] <sacho> I'm not saying it's a bad thing
[14:38:44] <zelrik> no scope sounds backward
[14:39:00] <sacho> not necessarily
[14:39:06] <Foxandxss> zelrik: but seeing how 6/10 questions are about scope issues, I am happy about the idea
[14:39:12] <sacho> scopes and scope inheritance are easy to replace
[14:39:26] <sacho> well, scope inheritance is, in the current system
[14:39:43] <sacho> you just need some more explicit way to pass elements between controllers and directives
[14:39:47] <sacho> other than scope inheritance
[14:39:48] <LRFalk01> I understand why the inheritance breaks primitives. There's not much that can be done about it. I think I am going to suggest this work around to the team this morning.
[14:39:58] *** benhx has quit IRC
[14:40:09] *** patrickreck has quit IRC
[14:40:13] <sacho> perhaps child controllers should be able to request via DI what they want from the parent
[14:40:26] *** benhx has joined #angularjs
[14:40:29] <Foxandxss> scope inheritance and the ref/val stuff is really really troublesome for new uesrs
[14:40:39] *** kennbrodhagen has joined #angularjs
[14:40:52] <Foxandxss> yesterday I had a discussion on stackoverflow about that
[14:40:53] <sacho> LRFalk01, well, as long as everyone's aware why the problem happens
[14:40:56] <LRFalk01> heh, yeah, I've never thought about ref/val before in JS until angular : )
[14:41:04] *** jk-5 has quit IRC
[14:41:06] <sacho> LRFalk01, because otherwise you're going to bump into it on the next level of indirection
[14:41:08] <Aartsie> is it possible to access a angularjs factory by jQuery ?
[14:41:20] <Foxandxss> LRFalk01: send them this: https://github.com/angular/angular.js/wiki/Understanding-Scopes
[14:41:25] <sacho> e.g. when someone does obj.prop = {}; when obj.prop was an object already
[14:41:32] <Foxandxss> make them read it, so you all will be on the same page
[14:41:48] <Foxandxss> Aartsie: I don't like how that sounds
[14:42:06] <zelrik> dont use jquery
[14:42:09] *** jnaour has joined #angularjs
[14:42:17] <Aartsie> Foxandxss: i know but my boss wants to use some old libs
[14:42:20] <zelrik> especially to call angular stuff
[14:42:37] <Foxandxss> sacho: I just hope, from the "doing support" side, that angular 2 removes all those misunderstandings
[14:42:45] *** davedev24_ has quit IRC
[14:42:55] <sacho> *nod*
[14:43:03] <Aartsie> he has a Google maps lib and now he want to activate a controller in a function out side angular
[14:43:16] <zelrik> Aartsie, I have ported jquery stuff into angular
[14:43:18] <Foxandxss> brb
[14:43:19] <sacho> a controller isn't a factory
[14:43:23] <zelrik> it s not that hard
[14:43:48] <sacho> Aartsie, it wouldn't be too hard to engineer a simple solution, if you can modify the factory code
[14:43:52] <zelrik> usually takes less lines also
[14:43:52] *** lbracher has joined #angularjs
[14:43:53] *** bamyyyooo14335 has joined #angularjs
[14:43:59] *** kalehv has quit IRC
[14:44:06] *** Cavallari has joined #angularjs
[14:44:14] <sacho> Aartsie, just assign the factory to some globally accessible identifier before also passing it to .factory()
[14:44:19] *** danizord has joined #angularjs
[14:44:22] <sacho> otherwise, you'd need to setup an injector and whatnot
[14:44:43] *** Milanito has joined #angularjs
[14:44:51] *** cujojp has joined #angularjs
[14:44:52] *** mtsr has quit IRC
[14:44:54] *** kalehv has joined #angularjs
[14:45:28] *** kennbrodhagen has quit IRC
[14:45:35] *** disorder20 has joined #angularjs
[14:45:39] *** rockford_ has joined #angularjs
[14:45:48] *** disorder20 has quit IRC
[14:45:51] *** danielpquinn has joined #angularjs
[14:45:56] *** Milanito has quit IRC
[14:46:07] <zelrik> Aartsie, I have used google maps libs inside angular
[14:46:12] *** rockfordal has quit IRC
[14:46:15] *** comboy has quit IRC
[14:46:16] <sacho> Aartsie, the alternative would be to get the injector for your angular module somehow(e.g. off a dom element - angular.element().injector().get('service'))
[14:46:19] <zelrik> not sure why you want to call angular from your lib
[14:46:35] *** comboy has joined #angularjs
[14:46:49] <sacho> you could probably make the injector globally available as well, from within your angular app, so your jquery libs could use it more readily
[14:46:55] <Aartsie> thank you for the responses
[14:46:59] <sacho> a third solution would be to pass the needed services to your jquery lib
[14:47:00] *** patrickr_ has joined #angularjs
[14:47:16] <zelrik> I split that lib in half, put one part in a service, and the other in a directive
[14:47:30] *** patrickr_ has quit IRC
[14:47:33] *** moritzs has quit IRC
[14:47:43] *** fixl has quit IRC
[14:47:44] <Aartsie> can some one tell me the difference between an factory and a service ?
[14:47:52] *** sigurding has quit IRC
[14:47:55] *** krawchyk has joined #angularjs
[14:47:56] <zelrik> so the jquery stuff was all gone and all I had left was a neat directive
[14:48:11] *** Milanito has joined #angularjs
[14:48:14] *** moritzs has joined #angularjs
[14:48:20] <zelrik> I think services are better to instanciate
[14:48:25] <zelrik> not sure though
[14:48:26] *** lbracher has quit IRC
[14:48:27] *** jk-5 has joined #angularjs
[14:48:27] *** andkan_ has joined #angularjs
[14:48:29] <zelrik> I tend to use factories
[14:48:32] *** mihalybak has left #angularjs
[14:48:57] *** cujojp has quit IRC
[14:48:59] *** wxo has joined #angularjs
[14:49:27] *** kalehv has quit IRC
[14:50:18] *** SkyGuide has joined #angularjs
[14:50:31] *** danielpquinn has quit IRC
[14:50:35] *** annlewis has joined #angularjs
[14:50:41] <sacho> Aartsie, http://stackoverflow.com/questions/15666048/angular-js-service-vs-provider-vs-factory
[14:50:47] *** arizzo has joined #angularjs
[14:50:58] <RaphaelRocca> hi everyone... a simple question (noob lol)
[14:51:13] *** sigurding has joined #angularjs
[14:51:16] <RaphaelRocca> where do i put some function to run only once on control loads?
[14:51:38] *** SkyGuide has quit IRC
[14:51:43] <RaphaelRocca> if i put something inside of control.. it runs on every action or click i do
[14:52:07] *** davedev24_ has joined #angularjs
[14:53:09] <Foxandxss> Aartsie: http://angular-tips.com/blog/2013/08/understanding-service-types/
[14:53:13] <Foxandxss> more technical maybe
[14:53:31] *** disorder20 has joined #angularjs
[14:53:34] *** avens has joined #angularjs
[14:53:50] *** tommmied has joined #angularjs
[14:53:55] *** ascarter has joined #angularjs
[14:54:01] *** dancek has joined #angularjs
[14:54:04] <Aartsie> Foxandxss: thank you !!
[14:54:45] *** pdillinger has quit IRC
[14:54:50] *** gma has joined #angularjs
[14:55:21] *** disorder20 has quit IRC
[14:55:33] <sacho> RaphaelRocca, "control"?
[14:55:42] <marcospgp> Aartsie: If it helps, you should know that they amount to pretty much the same thing. I mean they're not exactly similar, but don't expect them to be as different as a directive/controller
[14:55:56] *** andrewhl has joined #angularjs
[14:55:58] <RaphaelRocca> sacho, sorry: controller
[14:56:05] *** gma has left #angularjs
[14:56:30] *** juampy_gnomgnom is now known as juampy
[14:57:05] *** dbouwman has joined #angularjs
[14:57:22] <sacho> RaphaelRocca, do you have some sample code of your controller
[14:57:27] *** sdouglas has joined #angularjs
[14:57:52] <Foxandxss> just add a function and call it from the controller
[14:57:58] *** fels_zh has joined #angularjs
[14:58:00] <Foxandxss> it will be called when the controller gets initialized
[14:58:17] *** Adarsh has quit IRC
[14:58:51] *** jamto11 has joined #angularjs
[14:58:58] *** ETBlue has quit IRC
[14:59:13] *** Milanito has quit IRC
[14:59:21] <RaphaelRocca> sacho: http://codepen.io/raphagodoi/pen/reGgL
[14:59:43] *** nickbyrne has joined #angularjs
[14:59:53] *** ymammar has quit IRC
[15:00:00] *** imehesz has joined #angularjs
[15:00:06] *** kroogs has joined #angularjs
[15:00:15] <Foxandxss> RaphaelRocca: just call it
[15:00:19] *** bayousoft has joined #angularjs
[15:00:24] <Foxandxss> appService.open().then(....
[15:00:27] <Foxandxss> on the controller level
[15:00:35] <Foxandxss> it will be called when the controller gets instantiated
[15:01:15] <RaphaelRocca> removing the $scope right?
[15:01:21] *** vbabiy has quit IRC
[15:01:29] *** brianturgeon has joined #angularjs
[15:01:56] *** Milanito has joined #angularjs
[15:02:06] *** evilaliv3 has quit IRC
[15:02:23] *** sdouglas has quit IRC
[15:02:28] *** aslate has joined #angularjs
[15:02:31] *** brianturgeon has quit IRC
[15:02:58] *** nickbyrne_ has joined #angularjs
[15:03:10] <RaphaelRocca> No... i updated the codpen... look.. but doesn't work.
[15:03:19] *** jamto11 has quit IRC
[15:03:21] <nickbyrne_> hey, anyone used Angular with Parse much?
[15:03:22] *** tmrudick has joined #angularjs
[15:03:52] *** Milanito1 has joined #angularjs
[15:03:56] *** azizur has joined #angularjs
[15:04:00] *** nickbyrne is now known as d3nial
[15:04:23] *** moritzs has quit IRC
[15:04:45] *** cmoneylulz has joined #angularjs
[15:04:47] *** bamyyyooo14335 has quit IRC
[15:05:13] <marcospgp> How would I go about adding a config object to an angular app? Should it be a module?
[15:05:15] *** kroogs has quit IRC
[15:05:25] *** bamyyyooo14335 has joined #angularjs
[15:06:19] <Foxandxss> RaphaelRocca: weird, that should work
[15:06:20] <Foxandxss> let me try
[15:06:31] *** Milanito has quit IRC
[15:06:34] <Foxandxss> marcospgp: config object?
[15:06:57] <marcospgp> an object with various settings for the app in general
[15:06:58] *** aslate has quit IRC
[15:07:02] *** d3nial has quit IRC
[15:07:21] *** nickbyrne_ has quit IRC
[15:07:44] *** d3nial has joined #angularjs
[15:08:14] <Foxandxss> there is a config function in angular
[15:08:17] *** milka has quit IRC
[15:08:41] *** milka has joined #angularjs
[15:08:43] *** d3nial has quit IRC
[15:08:48] *** massi_223 has quit IRC
[15:09:14] <marcospgp> Wasn't that one used just for the routeprovider and such?
[15:09:14] <Foxandxss> RaphaelRocca: works for me: http://plnkr.co/edit/rsoqfTQHyE288ghy1h9I?p=preview
[15:09:23] *** elrabin has joined #angularjs
[15:10:04] *** UniBot has quit IRC
[15:10:25] *** UniBot has joined #angularjs
[15:10:27] *** cboden has joined #angularjs
[15:10:30] *** UniBot has quit IRC
[15:11:22] *** vbabiy has joined #angularjs
[15:11:27] *** SkywardCKO has joined #angularjs
[15:11:29] *** sigurding has quit IRC
[15:11:41] *** rburns has joined #angularjs
[15:12:14] <RaphaelRocca> Foxandxss: yes.. this works.. but.. if i change a view.. or something... it run's again..
[15:12:30] *** arizzo has quit IRC
[15:12:32] <Foxandxss> sure it does
[15:12:32] <RaphaelRocca> and i want to run only once..
[15:12:41] *** Nizumzen has quit IRC
[15:12:42] <Foxandxss> do it on the service then
[15:12:51] *** texinwien has joined #angularjs
[15:12:53] *** ngoyal has joined #angularjs
[15:12:54] *** Snugug has joined #angularjs
[15:13:13] *** Risto- has joined #angularjs
[15:13:18] *** arizzo has joined #angularjs
[15:13:43] *** patrickarlt has joined #angularjs
[15:13:50] *** \du has joined #angularjs
[15:14:01] *** tomzx`afk is now known as tomzx
[15:14:15] *** kalehv has joined #angularjs
[15:14:42] *** livingstn has joined #angularjs
[15:14:43] *** jsnomer has joined #angularjs
[15:15:12] *** jkremser has joined #angularjs
[15:15:13] *** jkremser has joined #angularjs
[15:15:58] *** kalehv_ has joined #angularjs
[15:16:07] <jsnomer> Hello there!.. would like to know if anyone can point me to amd version of angular ..
[15:16:14] *** sigurding has joined #angularjs
[15:16:16] *** DanBangWTFRajib has quit IRC
[15:16:37] <Foxandxss> angular doesn't support amd by default
[15:16:42] <Foxandxss> so there is nothing like that
[15:16:49] *** juanlas has joined #angularjs
[15:17:44] *** DevAntoine has quit IRC
[15:17:46] *** arizzo has quit IRC
[15:18:14] *** Risto- has left #angularjs
[15:18:55] *** kalehv has quit IRC
[15:18:55] *** matiasow has joined #angularjs
[15:20:23] *** aslate has joined #angularjs
[15:20:32] *** InezK_away is now known as InezK
[15:20:42] *** Milanito1 has quit IRC
[15:20:45] *** darrin has joined #angularjs
[15:20:57] *** bayousoft has quit IRC
[15:21:29] <RaphaelRocca> Foxandxss: maybe with this you could help..
[15:21:31] *** moritzs has joined #angularjs
[15:22:07] <RaphaelRocca> i just put a console.log('controller') on the top of my controller.. and press a F5 ----- This is running twice! why???
[15:22:17] *** kas84 has joined #angularjs
[15:22:46] <Foxandxss> twice how?
[15:22:52] <Foxandxss> if you refresh the page, it loads again
[15:23:00] *** moritzs has quit IRC
[15:23:06] *** FIFOd[a] has joined #angularjs
[15:23:15] *** wizibe has joined #angularjs
[15:23:36] *** moritzs has joined #angularjs
[15:23:42] *** drej has joined #angularjs
[15:23:51] <RaphaelRocca> i will put on codepen again
[15:23:52] <sacho> do you have two ng-controller directives with that controller?
[15:24:02] *** BillCriswell has joined #angularjs
[15:24:43] <Foxandxss> RaphaelRocca: but please, a functional example
[15:24:45] <Foxandxss> not just a paste
[15:24:47] *** rockford_ has quit IRC
[15:24:58] *** jeffszusz has joined #angularjs
[15:25:14] *** andkan_ has quit IRC
[15:25:21] *** jeffszusz has left #angularjs
[15:25:46] *** andkan_ has joined #angularjs
[15:26:25] *** nytram has quit IRC
[15:27:31] *** rockfordal has joined #angularjs
[15:27:41] *** Milanito has joined #angularjs
[15:27:55] *** daivyk has joined #angularjs
[15:28:13] *** UniBot has joined #angularjs
[15:28:47] *** arrty has joined #angularjs
[15:29:10] *** disorder20 has joined #angularjs
[15:29:13] *** Milanito has quit IRC
[15:30:23] *** InezK is now known as InezK_away
[15:30:33] *** sir_pinecone has joined #angularjs
[15:30:48] *** ustunozg_ has quit IRC
[15:31:18] *** sigurding has quit IRC
[15:31:21] *** ascarter has quit IRC
[15:31:31] *** fels_zh has quit IRC
[15:31:33] *** toin0u|away is now known as toin0u
[15:31:41] *** ustunozgur has joined #angularjs
[15:32:03] *** fels_zh has joined #angularjs
[15:32:39] *** Cavallari has quit IRC
[15:32:58] *** L0u1s has joined #angularjs
[15:33:08] *** ustunozgur has quit IRC
[15:33:15] *** krawchyk has quit IRC
[15:33:16] <L0u1s> hi, can i somehow specify the option values with ngSelect?
[15:34:06] *** TorchDragon has joined #angularjs
[15:34:17] *** cbeacock has joined #angularjs
[15:34:39] *** milka has quit IRC
[15:34:41] *** TyrfingMjolnir has joined #angularjs
[15:35:24] *** sir_pinecone has quit IRC
[15:35:37] *** Alina-malina has quit IRC
[15:35:45] *** krawchyk has joined #angularjs
[15:35:46] *** azizur has quit IRC
[15:36:04] *** Aartsie has quit IRC
[15:36:17] *** nytrm has joined #angularjs
[15:36:27] *** sir_pinecone has joined #angularjs
[15:36:38] *** Aartsie has joined #angularjs
[15:36:42] *** wasabi has joined #angularjs
[15:36:52] *** bayousoft has joined #angularjs
[15:37:06] *** wasabi is now known as Guest39774
[15:37:19] *** teslanick has joined #angularjs
[15:37:29] *** dawhite has joined #angularjs
[15:38:51] *** lbali has joined #angularjs
[15:39:00] <lbali> Hello!
[15:39:34] *** Alina-malina has joined #angularjs
[15:39:47] *** dawhite_ has quit IRC
[15:40:01] *** sneakertack has joined #angularjs
[15:40:07] *** jonasrosenlind has quit IRC
[15:40:22] *** krawchyk has quit IRC
[15:40:33] *** Milanito has joined #angularjs
[15:40:49] *** UniBot has quit IRC
[15:41:10] *** UniBot has joined #angularjs
[15:41:11] *** Aartsie has quit IRC
[15:41:35] *** KendrickVT has joined #angularjs
[15:41:57] *** jobney has joined #angularjs
[15:42:00] *** sigurding has joined #angularjs
[15:42:05] *** jsnomer has quit IRC
[15:42:10] *** krawchyk has joined #angularjs
[15:42:17] *** HelperW__ has joined #angularjs
[15:42:25] *** Gandham has joined #angularjs
[15:42:26] *** teslanick has left #angularjs
[15:42:27] *** Shrooms` has joined #angularjs
[15:42:49] <sacho> hello
[15:43:22] <Gandham> Howdy Guys, I need a triggered typeahead like @mention in Facebook. Is something like that available in angular?
[15:43:27] *** Siecje has joined #angularjs
[15:43:38] <Gandham> I searched a lot, but couldn't find it.
[15:43:51] *** arizzo has joined #angularjs
[15:43:56] <davesidious_> Hi - I need to define a filter which is only available in my directive - is this possible?
[15:43:56] *** Shrooms has quit IRC
[15:44:40] <sacho> why?
[15:44:54] <Foxandxss> Gandham: I don't recall of any
[15:44:58] <davesidious_> To whom was that addressed, sacho?
[15:45:07] <sacho> you
[15:45:12] *** HelperW_ has quit IRC
[15:45:21] *** sir_pinecone has quit IRC
[15:45:26] <davesidious_> Well, because I don't believe in littering :)
[15:45:35] <davesidious_> it's an internal filter.
[15:45:58] <davesidious_> It serves no ready purpose outside of this directive
[15:46:04] *** sir_pinecone has joined #angularjs
[15:46:06] <davesidious_> and is used in one ng-repeat within the directive.
[15:46:17] <davesidious_> exposing that globally seems rather wasteful.
[15:46:34] *** danielpquinn has joined #angularjs
[15:46:51] <Gandham> @Foxandxss, Thanks for the response. Then I may have to write one. Any pointers ?
[15:46:58] *** apetro_ has joined #angularjs
[15:47:10] <Foxandxss> Gandham: check other typeahead implementations and make your change
[15:47:36] <Foxandxss> davesidious_: I have a directory for common directives and inside it, a directory for every directive. You could put the filter there if you want
[15:47:45] <Foxandxss> it is still available everywhere
[15:47:48] <Foxandxss> well
[15:47:53] <davesidious_> I don't want it available everywhere
[15:48:03] <davesidious_> I want to use it in one place and one place only, on purpose.
[15:48:06] <Foxandxss> you're out of luck
[15:48:07] *** greg5green has joined #angularjs
[15:48:07] *** greg5green has joined #angularjs
[15:48:27] <Foxandxss> if you create a new module for the filter
[15:48:37] <Foxandxss> and you inject it only on the directive's module, no one will use it
[15:48:38] *** Jae has quit IRC
[15:48:45] <davesidious_> That seems ridiculously messy.
[15:48:49] <davesidious_> horrifically messy, in fact.
[15:48:54] <Foxandxss> no
[15:48:58] <davesidious_> Well, yes, it is.
[15:49:05] <Foxandxss> it is not uncommon to have multiple modules
[15:49:11] <Foxandxss> if you don't like it
[15:49:11] <RaphaelRocca> Foxandxss: i found where the error occurs... it's $stateProvider... on my route is refreshing the page for some reason..
[15:49:14] <davesidious_> using a global namespace to hide something is messy
[15:49:15] <Foxandxss> you're out of luck
[15:49:24] *** anjumkaiser has joined #angularjs
[15:49:25] <davesidious_> by the very definition of "global" and "hide".
[15:49:35] <Gandham> I tried that sometime back with twitter bootstrap typeahead when I first learnt angular. Coudlnt finish it. This time I'm thinking of building my own directive from scratch.
[15:49:53] *** Aartsie has joined #angularjs
[15:49:56] *** sir_pinecone has quit IRC
[15:49:58] *** jdcasey has joined #angularjs
[15:50:08] <Foxandxss> I don't see any global here
[15:50:27] <davesidious_> creating a module is global.
[15:50:33] *** corban has joined #angularjs
[15:50:38] *** sir_pinecone has joined #angularjs
[15:50:44] *** UniBot has quit IRC
[15:50:47] *** danielpquinn has quit IRC
[15:50:48] <Foxandxss> who says that?
[15:50:49] *** jonasrosenlind has joined #angularjs
[15:50:52] <davesidious_> AngularJS
[15:50:58] <Foxandxss> first notice I have
[15:51:00] <davesidious_> it's inherent in the design.
[15:51:19] <Foxandxss> the TL;DR; is: do what you want
[15:51:24] <Foxandxss> you have your own ideas
[15:51:35] <Foxandxss> so nothing we can say would help
[15:51:50] *** FunnyLookinHat has quit IRC
[15:51:52] <davesidious_> No, if someone knew of a way of defining a filter in a scope and exposing it to only that scope, that would suffice
[15:52:03] <davesidious_> just because your solution was not suitable doesn't mean no solutions are.
[15:52:10] <Foxandxss> you can't do that
[15:52:11] *** sir_pinecone has quit IRC
[15:52:14] *** SATZ has joined #angularjs
[15:52:21] <davesidious_> Right - that's the answer.
[15:52:23] *** UniBot has joined #angularjs
[15:52:30] *** greg5green has quit IRC
[15:52:34] <Foxandxss> a filter will be available in the entire module
[15:52:42] <davesidious_> Creating global modules to hide something is *never* the answer
[15:52:51] <Foxandxss> so all the other pieces of that module or other modules who injects it, will use it
[15:52:55] *** sir_pinecone has joined #angularjs
[15:52:59] <davesidious_> I know how modules work, thanks.
[15:53:12] <Foxandxss> ya, I see you're the expert here
[15:53:17] <Foxandxss> not sure why you ask
[15:53:20] *** yoshokatana has joined #angularjs
[15:53:24] <davesidious_> Christ.
[15:53:34] <davesidious_> I'm not an expert, I just know that modules are global.
[15:53:37] <davesidious_> That's AngularJS 101 stuff.
[15:53:41] <Foxandxss> enough
[15:53:42] <guilbep> davesidious_ trollolol
[15:53:51] <guilbep> :)
[15:53:52] *** UniBot has quit IRC
[15:54:05] *** SahanH has joined #angularjs
[15:54:17] <davesidious_> I expect neckbeard rage in #suse but not here.
[15:54:18] *** shinnya has quit IRC
[15:54:28] *** acconrad has joined #angularjs
[15:54:56] <guilbep> davesidious_ I'got your point/. not polluting the global space is a good thing.
[15:55:20] <davesidious_> It's kind of the first thing people should learn when developing...
[15:55:30] <Foxandxss> and we agree
[15:55:31] <Foxandxss> global are bad
[15:55:43] <davesidious_> Then why suggest to use a global instance to hide something?
[15:55:49] *** anjumkaiser1 has joined #angularjs
[15:55:50] <Foxandxss> who suggested that
[15:55:52] <davesidious_> I just didn't get why you leapt to a clearly-bad suggestion
[15:55:54] <davesidious_> you did.
[15:55:56] <Foxandxss> a module is not global
[15:56:08] <davesidious_> Of course a module is global - it's accessible from any module which includes it
[15:56:12] <davesidious_> that's the whole purpose of modules
[15:56:18] <Foxandxss> that doesn't make it global
[15:56:21] <davesidious_> of course it does
[15:56:29] <Foxandxss> it is like saying that a service is global
[15:56:29] *** sk87 has quit IRC
[15:56:46] *** anjumkaiser has quit IRC
[15:56:48] <davesidious_> No, clearly not, as a service exists in a module - no module, no service.
[15:56:49] *** shackleford has joined #angularjs
[15:56:49] <sacho> davesidious_, "global" in what sense?
[15:56:50] *** joshontheweb has joined #angularjs
[15:56:50] *** AlSquire has joined #angularjs
[15:57:04] <davesidious_> global as in it's polluting the list of modules for absolutely no reason
[15:57:15] <davesidious_> to achieve something inherently at odds with the very idea of modules
[15:57:16] <SahanH> what would be the perfect way to render html partials according some data, ie: {type: 'cash', amount:12}, {type:'cheque', amount: 23}
[15:57:16] *** shackleford has quit IRC
[15:57:21] *** Tidwell has quit IRC
[15:57:33] <SahanH> one html template for type cash and another for type cheque
[15:57:40] *** shackleford has joined #angularjs
[15:57:46] <Foxandxss> davesidious_: so ignoring all the "global" thingy. How would you accomplish what you want?
[15:57:46] <davesidious_> Back to work I go.
[15:57:55] *** sigurding has quit IRC
[15:58:03] *** Tidwell has joined #angularjs
[15:58:04] *** jbub has quit IRC
[15:58:04] <davesidious_> Well, I achieved it by simply making a function which is called using an ng-if on the ng-repeat element.
[15:58:07] *** DevAntoine has joined #angularjs
[15:58:12] *** siddart_ has quit IRC
[15:58:18] *** Gandham has quit IRC
[15:58:33] <davesidious_> It's not exactly the angular-way, but it works, and doesn't pollute.
[15:58:52] *** greylurk has left #angularjs
[15:59:31] *** balboah has quit IRC
[15:59:40] <davesidious_> And it works a treat - I just tested it. So, awesome outcome.
[15:59:42] *** sir_pinecone has quit IRC
[15:59:50] *** orion1111 has joined #angularjs
[16:00:02] <Foxandxss> but a module('foo').filter ?
[16:00:15] *** sir_pinecone has joined #angularjs
[16:00:17] <davesidious_> is pointlessly messy...
[16:00:22] <guilbep> davesidious_ where is your function defined?
[16:00:29] *** kroogs has joined #angularjs
[16:00:37] <davesidious_> it's on the scope.
[16:01:01] <Foxandxss> paste it, I am interesting on seeing it
[16:01:04] *** moritzs has quit IRC
[16:01:06] *** jbub has joined #angularjs
[16:01:09] <Foxandxss> maybe I misunderstood your problem
[16:01:22] *** siddart has joined #angularjs
[16:01:30] *** thomasreggi has joined #angularjs
[16:01:32] <davesidious_> it's just a function :)
[16:01:38] *** salah has joined #angularjs
[16:01:50] <jobney> hey all. trying to get into blogging more. criticism welcome: http://www.justinobney.com/keeping-angular-service-list-data-in-sync-among-multiple-controllers/
[16:01:51] *** sigurding has joined #angularjs
[16:02:09] *** stodan has quit IRC
[16:02:26] *** siddart has quit IRC
[16:02:31] <Foxandxss> jobney: you have a typo
[16:02:35] <Foxandxss> on teh $watch
[16:02:38] <Foxandxss> warchSource
[16:02:39] *** siddart has joined #angularjs
[16:02:44] *** Y_Ichiro has quit IRC
[16:02:58] *** ETBlue has joined #angularjs
[16:02:58] *** rockfordal has quit IRC
[16:03:09] <Foxandxss> also, I don't like your approach
[16:03:18] *** walden is now known as walden|brb
[16:03:21] *** freeman42 has quit IRC
[16:03:22] *** rockfordal has joined #angularjs
[16:03:25] <Foxandxss> wait wait
[16:03:29] <Foxandxss> forget that last line
[16:03:34] <jobney> lol
[16:03:45] <jobney> thought it was a bit fast to come to that conclusion
[16:03:51] *** Asiajey has quit IRC
[16:03:56] <Foxandxss> sorry, I just thought you were doing the $watch for real
[16:03:57] *** dcherman has joined #angularjs
[16:04:04] <jaawerth> $watchSauce('neverBoils'
[16:04:05] <Foxandxss> so, so far, taht typo
[16:04:12] *** KendrickVT has quit IRC
[16:04:14] <jobney> fixed
[16:04:16] *** tmrudick has quit IRC
[16:04:27] *** andrewhl has quit IRC
[16:04:54] *** kroogs has quit IRC
[16:05:10] *** cisox has joined #angularjs
[16:05:19] *** amargherio has joined #angularjs
[16:05:37] *** chrisbirk has joined #angularjs
[16:05:43] *** bengillies has quit IRC
[16:05:55] <Foxandxss> jobney: seeing you're into ;, you forgot one at line 7
[16:05:59] <Foxandxss> first snippet
[16:06:10] *** moritzs has joined #angularjs
[16:06:51] *** sir_pinecone has quit IRC
[16:07:17] *** moritzs has joined #angularjs
[16:07:24] *** Jon30 has joined #angularjs
[16:07:32] *** brianturgeon has joined #angularjs
[16:07:37] *** sir_pinecone has joined #angularjs
[16:07:58] *** moritzs has quit IRC
[16:08:32] *** moritzs has joined #angularjs
[16:08:41] *** tomzx is now known as tomzx`afk
[16:08:52] *** cisox_ has joined #angularjs
[16:08:58] *** sigurding_ has joined #angularjs
[16:09:08] *** anjumkaiser1 has quit IRC
[16:09:08] *** KendrickVT has joined #angularjs
[16:10:06] *** mrogne has joined #angularjs
[16:10:09] *** sheerun has joined #angularjs
[16:10:16] *** mrogne has quit IRC
[16:10:16] *** mrogne has joined #angularjs
[16:10:26] *** patrickarlt has quit IRC
[16:10:27] *** rtpg has joined #angularjs
[16:10:34] *** sigurding has quit IRC
[16:10:45] *** chrisbirk has quit IRC
[16:11:03] *** patrickarlt has joined #angularjs
[16:11:07] <jobney> Foxandxss, other comment on content quality or flow?
[16:11:14] <Foxandxss> I am still reading
[16:11:33] *** CodeFriar has quit IRC
[16:11:36] *** baudehlo has joined #angularjs
[16:12:08] *** xavia has joined #angularjs
[16:12:29] *** ojacobson has joined #angularjs
[16:12:39] *** cisox has quit IRC
[16:12:42] *** rockfordal has quit IRC
[16:12:43] <Foxandxss> jobney: the goal of the article is well done
[16:12:44] *** DevAntoine has quit IRC
[16:12:45] *** mennea has quit IRC
[16:12:48] *** bengillies has joined #angularjs
[16:12:49] <Foxandxss> from a bad implementation into a new one
[16:12:58] <Foxandxss> but it needs more explanations
[16:12:59] *** BerndDasBroetche has joined #angularjs
[16:13:08] <BerndDasBroetche> hello
[16:13:08] <Foxandxss> for example, how does example two works and why you don't like it
[16:13:17] <jobney> ok
[16:13:26] <Foxandxss> without reading Todd article
[16:13:31] <Foxandxss> I don't know how it works
[16:13:34] *** paddymahoney has quit IRC
[16:13:38] <Foxandxss> never saw that }.bind(this)
[16:13:50] <jobney> gotcha
[16:14:01] <jobney> I will expand on it shortly
[16:14:12] *** HelperW___ has joined #angularjs
[16:14:15] <Foxandxss> jobney: basically my idea (I have my own writing style) would be:
[16:14:24] <Foxandxss> there is how typically you see it (the $watch)
[16:14:29] *** Click66 has quit IRC
[16:14:32] *** L0u1s is now known as L0u0s
[16:14:33] <Foxandxss> we need a $watch because (reference thing, etc etc)
[16:14:52] <Foxandxss> that is not good, so we have this (the .bind one), this works because bla bla, but I don't like it, it is very wordy (or what you want to say)
[16:14:58] <Foxandxss> so my solution is: This works because bla bla
[16:15:10] <BerndDasBroetche> In My maincontroller i have a list of people with first-lastname and birthdate. I add them by "ng-repeat person in people" to my <li>-Tag. I call the function "showPeopleDetails" at "ng-click" on my <li>-Tag. How can i get the people-Object which was originally stored in that <li>-Tag?
[16:15:15] *** bamyyyooo14335 has quit IRC
[16:15:21] <Foxandxss> you did that already, but the second example is the one lacking imho
[16:15:35] <jobney> thanks for the feedback
[16:15:40] <jobney> i really appreciate it
[16:15:45] <Foxandxss> BerndDasBroetche: pass it as a parameter
[16:15:58] *** patrickarlt has quit IRC
[16:16:00] <Foxandxss> showPeopleDetails(person)
[16:16:04] *** drake01 has joined #angularjs
[16:16:18] *** mattwynne has joined #angularjs
[16:16:21] *** L0u0s is now known as L0u1s
[16:16:26] <Foxandxss> jobney: I didn't know that angular.copy would do that, so I learnt something new, so the job is well done
[16:16:30] *** bamyyyooo14335 has joined #angularjs
[16:16:54] *** Click66 has joined #angularjs
[16:16:55] <BerndDasBroetche> Foxandxss: wow, thanks!
[16:17:09] *** speakingcode has quit IRC
[16:17:11] *** bweston has quit IRC
[16:17:20] *** lw has joined #angularjs
[16:17:21] <Foxandxss> BerndDasBroetche: every "loop" of the ng-repeat is a new scope (like a new object)
[16:17:30] <Foxandxss> it has all what your controller has + the person object
[16:17:32] *** homework1 has joined #angularjs
[16:17:34] *** HelperW__ has quit IRC
[16:17:35] <Foxandxss> so you can use it to pass it as a parameter
[16:17:41] <BerndDasBroetche> Foxandxss: thx, now it works :)
[16:17:49] *** fels_zh has quit IRC
[16:17:59] *** encryptd_fractl has joined #angularjs
[16:18:14] *** jkremser has quit IRC
[16:18:15] *** The_HunterT has quit IRC
[16:18:27] *** fels_zh has joined #angularjs
[16:18:33] *** PokerAA has quit IRC
[16:18:49] *** speakingcode has joined #angularjs
[16:18:49] <jobney> Foxandxss, nice to hear from you
[16:18:54] <drake01> hi, I am trying to wrap abc angularjs module to another module xyz, and I want to use abc features by including xyz. essentially angular.module(x, ['xyz']).config(function($providerFromABCModule){}) should be working. any help?
[16:19:11] <jobney> angular-tips has certainly provided a lot of info for me
[16:19:33] <storkme> Foxandxss: can I ask a question about your blog post on JWTs?
[16:19:40] *** Milanito has quit IRC
[16:20:03] *** The_HunterT has joined #angularjs
[16:20:27] <storkme> oh, nvm I think I have it.
[16:20:36] *** jamto11 has joined #angularjs
[16:21:18] *** InezK_away is now known as InezK
[16:21:32] *** Shrooms` has quit IRC
[16:21:36] *** Click66 has quit IRC
[16:22:07] <oniijin> damn u amazon y wont u give me my damn destiny beta key
[16:22:31] *** eperez has quit IRC
[16:22:43] *** bamyyyooo14335 has quit IRC
[16:22:49] *** lbali has quit IRC
[16:22:53] *** jkremser has joined #angularjs
[16:22:54] *** jkremser has joined #angularjs
[16:22:57] *** mattwynne has quit IRC
[16:23:03] *** chakkimatti has quit IRC
[16:23:09] *** Bade has joined #angularjs
[16:23:15] *** atomical has joined #angularjs
[16:23:18] *** walden|brb is now known as walden
[16:23:25] *** fels_zh has quit IRC
[16:23:38] *** ascarter has joined #angularjs
[16:23:44] *** bamyyyooo14335 has joined #angularjs
[16:24:19] *** adharris has joined #angularjs
[16:24:55] *** hswolff has quit IRC
[16:26:50] *** jamto11 has quit IRC
[16:27:08] <Maverickz> Hello, have someone already used Angular-paginate-anything, i've somme issues with it (https://github.com/begriffs/angular-paginate-anything)
[16:27:15] *** brianturgeon has quit IRC
[16:27:28] *** eperez_ has joined #angularjs
[16:27:55] <senayar_> I search a way to open this datepicker and displaying directly year view inside : http://angular-ui.github.io/bootstrap/#/datepicker
[16:28:18] *** eperez has joined #angularjs
[16:28:19] *** mpaarating has joined #angularjs
[16:28:34] *** tarkus has quit IRC
[16:28:35] <Foxandxss> storkme: sure
[16:28:37] *** jamto11 has joined #angularjs
[16:28:53] <Foxandxss> senayar_: there is a bug with that
[16:29:04] *** sir_pine_ has joined #angularjs
[16:29:11] *** Yancy has quit IRC
[16:29:21] *** Yancy has joined #angularjs
[16:29:28] *** Milanito has joined #angularjs
[16:29:35] *** drake01 has left #angularjs
[16:29:52] *** umib0zu has joined #angularjs
[16:29:58] *** ineedarobot has joined #angularjs
[16:30:07] *** DevAntoine has joined #angularjs
[16:30:26] <senayar_> Foxandxss: you mean with this datepicker directive or with opening a datepicker to year display ?
[16:31:06] <Foxandxss> senayar_: the datepicker has a bug for opening it on month/year mode
[16:31:19] *** wolf2k_huh has quit IRC
[16:31:23] *** andkan__ has joined #angularjs
[16:31:40] *** sir_pinecone has quit IRC
[16:32:36] *** Keika has joined #angularjs
[16:32:40] <Keika> hey there
[16:32:47] <senayar_> maybe i can try this one Foxandxss : http://mgcrea.github.io/angular-strap/##datepickers ?
[16:32:55] *** amedia has quit IRC
[16:32:57] *** InezK is now known as InezK_away
[16:32:57] *** cisox_ is now known as cisox_away
[16:33:20] <Keika> senayar_: that would be, again another dependency....
[16:33:25] *** nicoonee has joined #angularjs
[16:33:33] *** cujojp has joined #angularjs
[16:33:43] <nicoonee> Hello there
[16:34:43] <nicoonee> digging to find a "centralized" way to preselect ng-select when options are from promise
[16:34:52] *** rho has joined #angularjs
[16:35:00] <Keika> senayar_: yesterday when I tried tracking the problem I went all the way to the $parse method, that returns weird values
[16:35:08] <nicoonee> and its new object so cant use trackjed by
[16:35:12] <Foxandxss> Keika: that concrete problem?
[16:35:25] <Keika> with the datepicker
[16:35:27] *** andkan_ has quit IRC
[16:35:28] <Keika> yep
[16:35:39] <Foxandxss> I saw it also
[16:35:46] *** drake01 has joined #angularjs
[16:35:48] <Foxandxss> the datepicker update fucked a lot of things
[16:35:52] <Maverickz> i have some issues with angular-paginate-anything, can someone help ?
[16:36:08] *** BerndDasBroetche has quit IRC
[16:36:23] <Keika> at first I was wondering if it didn't come from the lang we setup, but then put it all in english and other values poped up
[16:36:38] *** disorder20 has quit IRC
[16:36:40] <Keika> I spent 2 days on it
[16:36:48] <senayar_> :D
[16:37:00] <senayar_> sound painful to debu
[16:37:00] <Keika> without understanding what i was doing different from the exemple
[16:37:02] <senayar_> debug
[16:37:12] *** sir_pine_ has quit IRC
[16:37:14] <Keika> quite
[16:37:16] <Keika> :D
[16:37:19] *** seydoggy has joined #angularjs
[16:37:29] *** andrewhl has joined #angularjs
[16:37:40] <nicoonee> anyone?
[16:37:49] *** sir_pinecone has joined #angularjs
[16:38:02] <nicoonee> maybe some directive built above ng-select ?
[16:38:08] <Keika> nicoonee: show some code please
[16:38:10] *** jbourassa has joined #angularjs
[16:38:30] *** bamyyyooo14335_ has joined #angularjs
[16:38:37] *** cujojp has quit IRC
[16:38:43] *** zackiv31 has joined #angularjs
[16:39:17] *** andrewhl has quit IRC
[16:39:31] <Keika> Foxandxss: what, I think, is happening is that at some point the values put in min/maxDate are parsed throu new Date() and there is messes up everything
[16:39:46] <Keika> also tried to pass IOS dates, it gives an error on .split
[16:39:47] *** bamyyyooo14335 has quit IRC
[16:40:02] <Foxandxss> I don't recall if I debugged it or not
[16:40:31] *** elrabin has quit IRC
[16:40:36] *** balboah has joined #angularjs
[16:40:37] <nicoonee> Keika: http://pastebin.com/hz1ddHLy
[16:41:01] *** encryptd_fractl has quit IRC
[16:41:07] <nicoonee> Keika: thats how i preselect ng-select right now
[16:41:23] <Keika> looks small...
[16:41:35] *** kennbrodhagen has joined #angularjs
[16:41:41] <nicoonee> but have much more selectboxes that need to preselect and this seem too much for controller
[16:42:00] *** wxo has quit IRC
[16:42:09] <Keika> Foxandxss: funny thing is yesterday I couldn't create a pluner with ui bootstrap, got uncaught object error even when adding the library and the module dependency....
[16:42:40] *** digia|away is now known as digia
[16:43:06] *** KendrickVT has quit IRC
[16:43:15] *** encryptd_fractl has joined #angularjs
[16:43:29] <Foxandxss> Keika: that uncaught object error is a chrome error
[16:43:33] <Foxandxss> it hides the real error
[16:43:49] *** nihi|ist has joined #angularjs
[16:43:50] *** chrisbirk has joined #angularjs
[16:44:01] <Keika> yeah, that happens a lot lately
[16:44:05] *** chrisshattuck has joined #angularjs
[16:44:13] <Keika> chrome doesn't debug that well, or at least the messages aren't great
[16:44:35] <Foxandxss> no, it is a bug on chrome
[16:44:39] <Foxandxss> already solved on the other "channels"
[16:44:42] *** wxo has joined #angularjs
[16:44:47] <Foxandxss> I am just wondering why they don't update chrome already
[16:45:09] *** jae has joined #angularjs
[16:45:12] <nicoonee> Keika: http://pastebin.com/DbrWHjzr
[16:45:46] *** Destos has joined #angularjs
[16:46:17] *** kennbrodhagen has quit IRC
[16:46:19] <nicoonee> is there any better way of doing this ?
[16:46:33] *** mven_ has quit IRC
[16:46:37] *** jae is now known as Jae
[16:46:44] *** sheerun has quit IRC
[16:46:45] *** disorder20 has joined #angularjs
[16:46:59] *** tomzx`afk is now known as tomzx
[16:47:00] *** fels_zh has joined #angularjs
[16:47:11] *** sk87 has joined #angularjs
[16:47:21] *** danielpquinn has joined #angularjs
[16:47:28] *** the_drow has joined #angularjs
[16:48:16] *** narutimateum has joined #angularjs
[16:48:28] *** azizur has joined #angularjs
[16:48:32] *** ncbw has quit IRC
[16:48:32] *** UniBot has joined #angularjs
[16:48:43] *** baudehlo has left #angularjs
[16:48:55] *** disorder20 has quit IRC
[16:49:15] *** rockfordal has joined #angularjs
[16:50:10] *** nicholaswyoung has joined #angularjs
[16:50:36] <the_drow> Hello, I am using Django REST Framework which provides pagination as links in the response's body. How do I make restangular follow those links when I want to paginate to the next/previous page?
[16:51:00] *** Christer has joined #angularjs
[16:51:16] *** nicholaswyoung has quit IRC
[16:51:24] *** kalehv_ has quit IRC
[16:51:34] *** danielpquinn has quit IRC
[16:51:54] *** L0u1s is now known as L0u0s
[16:53:01] *** cisox_away is now known as cisox_
[16:53:04] *** sir_pinecone has quit IRC
[16:53:07] *** jonasliljestrand has quit IRC
[16:53:18] *** wxo has quit IRC
[16:53:20] *** UniBot has quit IRC
[16:54:32] *** Christer| has quit IRC
[16:55:08] *** tommmied1 has joined #angularjs
[16:56:34] *** moritzs has quit IRC
[16:57:58] *** tommmied has quit IRC
[16:58:04] <Foxandxss> jobney: we have to see on the performance hit of .copy and 1.3 is now copying the prototype also
[16:58:07] *** miname has quit IRC
[16:58:29] <jobney> i see
[16:58:30] *** ascarter has quit IRC
[16:58:36] <jobney> i haven't started using 1.3 yet
[16:58:38] *** azizur has quit IRC
[16:58:43] *** moritzs has joined #angularjs
[16:59:11] *** moritzs has quit IRC
[16:59:18] *** SATZ has quit IRC
[16:59:25] *** sdouglas has joined #angularjs
[16:59:43] *** chrisshattuck has quit IRC
[16:59:52] *** Christer has quit IRC
[16:59:53] <Foxandxss> it is a new update (beta .14)
[16:59:58] *** moritzs has joined #angularjs
[17:00:10] *** thedodd has joined #angularjs
[17:00:14] *** Jdubs has joined #angularjs
[17:00:21] *** Yahkob has quit IRC
[17:00:24] *** kroogs has joined #angularjs
[17:00:29] *** moritzs has quit IRC
[17:00:31] *** drake01 has left #angularjs
[17:00:40] <jobney> yea. I have been bust with work stay in stable territory
[17:00:45] <jobney> busy
[17:00:55] *** arizzo has quit IRC
[17:00:58] *** gnar_matix has joined #angularjs
[17:01:15] *** moritzs has joined #angularjs
[17:01:22] *** arizzo has joined #angularjs
[17:01:34] *** gauravsaini03 has quit IRC
[17:01:36] *** Christer has joined #angularjs
[17:01:42] <storkme> Foxandxss: the fact that the payload in a JWT is encrypted is insignificant isn't it? like since you can't tamper with it anyway (assuming your signature function isn't going to have any weird collisions)
[17:01:45] *** moritzs has quit IRC
[17:01:47] <jobney> I have adapted the git commit guide lines from angular at work... our commit log reads so much cleaner now
[17:02:02] *** patrickarlt has joined #angularjs
[17:02:14] <jobney> next step will be to write the commit log script to build release docs
[17:02:15] <gnar_matix> What would you guys do to deal with invalid params for service methods
[17:02:21] <Foxandxss> storkme: I think that the payload encryption is just to shorten the payload
[17:02:22] *** fedenunez has joined #angularjs
[17:02:35] <gnar_matix> e.g. a parameter can only be a date in the form YYYY-MM-DD
[17:02:40] *** L0u0s is now known as L0u1s
[17:02:44] *** dbouwman_ has joined #angularjs
[17:02:55] *** nemothekid has joined #angularjs
[17:02:55] <Foxandxss> storkme: so a biiiig object on the payload would be a small string
[17:02:57] <gnar_matix> Do you do any sort of validation? Just assume it's used correctly? Throw an exception?
[17:02:59] *** moritzs has joined #angularjs
[17:03:00] *** andkan__ has quit IRC
[17:03:06] *** sir_pinecone has joined #angularjs
[17:03:07] *** fedenunez has quit IRC
[17:03:08] <Foxandxss> and since you're gonna send it all the times, you don't want a big token
[17:03:10] *** patrickc_ has joined #angularjs
[17:03:21] *** boptop has joined #angularjs
[17:03:24] *** arizzo_ has joined #angularjs
[17:03:28] <Foxandxss> gnar_matix: any of those options is good
[17:03:32] *** andkan__ has joined #angularjs
[17:03:33] <Foxandxss> depends on what your app does in those cases
[17:03:38] *** moritzs has quit IRC
[17:03:44] <storkme> Foxandxss: ah, fair enough.
[17:04:03] *** sdouglas has quit IRC
[17:04:19] *** cctom_ has quit IRC
[17:04:23] <gnar_matix> Foxandxss: I'm asking for general opinion though -- do you actually take the time to validate the parameters, or just assume they are used correctly
[17:04:29] *** Milanito has joined #angularjs
[17:04:49] *** mchapman has joined #angularjs
[17:04:53] <storkme> Foxandxss: why does the token consumer need to know what algorithm was used to generate the signature?
[17:04:56] <Foxandxss> depends, on ui-bootstrap we like to throw exceptions
[17:05:08] *** sir_pinecone has left #angularjs
[17:05:10] *** kroogs has quit IRC
[17:05:19] *** chrisshattuck has joined #angularjs
[17:05:23] <Foxandxss> storkme: that is not meant for the token consumer
[17:05:32] <Foxandxss> the token should be auto sufficient
[17:05:32] *** dbouwman has quit IRC
[17:05:37] <storkme> oh :D of course
[17:05:46] *** Christer has quit IRC
[17:05:48] <Foxandxss> that means, the backend knows nothing about the tokens
[17:05:52] *** shr3djs has quit IRC
[17:05:54] *** elrabin has joined #angularjs
[17:05:58] *** arizzo has quit IRC
[17:06:00] <Foxandxss> only the secret phrase
[17:06:07] *** sir_pinecone has joined #angularjs
[17:06:12] <Foxandxss> so when a token comes, it doesn't know what algorithm was used
[17:06:12] *** sir_pinecone has left #angularjs
[17:06:23] <storkme> I imagine it would be trivial enough to add an expiry to the payload.
[17:06:27] <Foxandxss> so the token should have everything about it inside it
[17:06:38] <Foxandxss> storkme: what are you using as a backend?
[17:06:45] *** snurfery has quit IRC
[17:06:46] *** doddstack has joined #angularjs
[17:06:50] *** Aartsie has quit IRC
[17:06:53] *** Tidwell has quit IRC
[17:06:57] <storkme> undefined, as of yet. Either node.js or PHP.
[17:07:00] *** amedia has joined #angularjs
[17:07:02] <Foxandxss> I see
[17:07:13] <Foxandxss> the JWT draft includes expiration
[17:07:13] *** fedenunez has joined #angularjs
[17:07:21] <storkme> okay.
[17:07:22] <Foxandxss> that means that good jwt implementations have it
[17:07:27] <Foxandxss> node one does
[17:07:27] *** ncbw has joined #angularjs
[17:07:34] <Foxandxss> ruby one doesn't
[17:07:50] <Foxandxss> basically it adds an `iat` property on the payload (issued at)
[17:08:00] <Foxandxss> and you can provide a expiration in minutes when you encode it
[17:08:12] <jobney> gnar_matix, you talking about angular services or hitting remote services?
[17:08:22] <Foxandxss> so when the library verify it, it does a if (Date.now() > payload.exp) throw exception
[17:08:23] *** andkan__ has quit IRC
[17:08:29] <gnar_matix> jobney : writing angular services
[17:08:33] *** thedodd has quit IRC
[17:08:47] <jobney> I agree with throwing exceptions
[17:08:56] <Foxandxss> storkme: so basically you can force people from time to time
[17:09:12] <storkme> before I was set on OAUTH 2.0 password-based style authentication - where you're given a bearer token which is managed server side. Now I'm not sure why I would use that over JWT.
[17:09:13] <Foxandxss> storkme: use this one for node: https://github.com/auth0/node-jsonwebtoken/
[17:09:14] <gnar_matix> jobney : previously I've been doing 2 things: 1. throwing an exception 2. logging the error to console before throwing the exception, because i found it hard to trace the exception in unit tests (jasmine)
[17:09:27] <gnar_matix> jobney : do you know how to make the exceptions more traceable?
[17:09:58] *** thomastuts has quit IRC
[17:09:58] <Foxandxss> JWT is really cool, no sessions, the server knows nothing, it is just a key you use to access your stuff
[17:09:59] *** cthrax has joined #angularjs
[17:10:10] <Foxandxss> of course that key should know about you
[17:10:11] <jobney> i don't know off hand
[17:10:17] *** danielpquinn has joined #angularjs
[17:10:17] *** feelfine has quit IRC
[17:10:28] <jobney> maybe try to incorporate stacktrace.js in your tests or something?
[17:10:45] *** feelfine has joined #angularjs
[17:10:49] <ajk27> Foxandxss: Someone mentioned that you had a blog posting about JWT and angular earlier. Do you have a link to that? I'd be interested in reading it.
[17:10:53] *** rev087 has joined #angularjs
[17:10:56] <Foxandxss> storkme: you can do much more, like generating a new passphrase in every login for that user so you can lend a token to your friend to access your profile and when you want, you just force a new login, so that token dies
[17:10:57] <storkme> the issue I'm having with the bearer token style authentication is there's no data associated with it - as a front-end web app Ican't look at a bearer token and know who I am.
[17:11:01] *** jbourassa has quit IRC
[17:11:14] *** ascarter has joined #angularjs
[17:11:16] <Foxandxss> ajk27: http://angular-tips.com/blog/2014/05/json-web-tokens-introduction/
[17:11:21] *** bkuberek has joined #angularjs
[17:11:23] <Foxandxss> ajk27: http://angular-tips.com/blog/2014/05/json-web-tokens-examples/
[17:11:24] *** ascarter has quit IRC
[17:11:31] <ajk27> Foxandxss: Many thanks, you fantastic beast :)
[17:11:45] *** intellix has quit IRC
[17:11:46] *** waylon999 has joined #angularjs
[17:11:51] *** toin0u is now known as toin0u|away
[17:11:54] *** ascarter has joined #angularjs
[17:11:59] <Foxandxss> storkme: I agree, with JWT you can even embed your admin privileges so angular can use that
[17:12:03] *** ascarter has quit IRC
[17:12:11] <Foxandxss> and since you can't temper them, you are safe
[17:12:11] *** nytrm has quit IRC
[17:12:13] *** arizzo_ has quit IRC
[17:12:33] *** ascarter has joined #angularjs
[17:12:37] *** MathiasM has joined #angularjs
[17:12:42] *** arizzo has joined #angularjs
[17:12:55] *** hswolff has joined #angularjs
[17:13:05] <storkme> that's pretty much exactly what I need. I wonder if I can get my team onboard.
[17:13:19] <storkme> (when I say team I mean superiours. I don't have a team :<)
[17:13:27] <Foxandxss> it needs a mind change
[17:13:33] *** corban has quit IRC
[17:13:39] <Foxandxss> but at the end, it is much simple
[17:13:47] <Foxandxss> not having to work with sessions, cookies, CSRF, etc
[17:14:00] *** corban has joined #angularjs
[17:14:24] <storkme> is there a convention for putting them in the headers? "Authorization: JWT <jwt>" ?
[17:14:59] *** foofoobar has quit IRC
[17:15:03] *** dcherman has quit IRC
[17:15:04] *** feelfine has quit IRC
[17:15:16] *** corban has quit IRC
[17:15:24] *** CodeFriar has joined #angularjs
[17:15:34] <xastey> so making my rest api and using http error codes as needed.. is there a way for chrome to omit logging thoses as errors
[17:15:36] *** corban has joined #angularjs
[17:15:39] <xastey> like if I set some header or something
[17:15:47] *** UniBot has joined #angularjs
[17:16:00] <Foxandxss> storkme: I don't think so (at least officially) but people is using:
[17:16:07] *** nytrm has joined #angularjs
[17:16:14] <Foxandxss> Authorization one
[17:16:16] *** dcherman has joined #angularjs
[17:16:34] *** CodeFriar has quit IRC
[17:16:41] <storkme> very interesting. Thanks for the articles.
[17:16:56] <storkme> subscribing to that blog :D
[17:17:10] *** arizzo has quit IRC
[17:17:46] <Foxandxss> Authorization as the header name and then: Bearer tokenstring
[17:18:04] <Foxandxss> Also, as a query string
[17:18:04] *** Alax has joined #angularjs
[17:18:11] <Foxandxss> /foo/bar?token=asd01928eaoisjdasd
[17:18:11] <Foxandxss> :P
[17:18:18] *** conan_the_destro has joined #angularjs
[17:18:38] *** SahanH has quit IRC
[17:18:39] <Alax> Hey guys :p
[17:18:59] *** Y_Ichiro has joined #angularjs
[17:18:59] *** Y_Ichiro has joined #angularjs
[17:19:15] *** dhcar_AFK is now known as dhcar
[17:19:17] <marcospgp> Alax: sup
[17:19:32] *** CodeFriar has joined #angularjs
[17:19:34] *** Milanito has quit IRC
[17:19:34] *** Snugug has quit IRC
[17:19:41] *** Snugug_ has joined #angularjs
[17:19:46] <Alax> Alright so i'm having a bit of trouble with Angular i'm new and my methods of utilizing it aren't good so here it goes.
[17:19:48] *** escalant3 has left #angularjs
[17:20:06] <Alax> Basically i'm storing URLs to MP4's in a .json file for each tv show
[17:20:25] <Alax> i'm trying to pass the .jsons string "url:" to the "html" if that makes sense
[17:20:34] <marcospgp> yea
[17:20:45] <Alax> But i use ng-src"{{thewalkingdead}}" or something similiar and i can't get the tag to pass the url
[17:20:50] <Alax> it just keeps showing up blank.
[17:20:57] *** duckinator has left #angularjs
[17:21:02] <Alax> Ill get code in one sec.
[17:21:07] <marcospgp> Do you pass the json data to the scope via a controller?
[17:22:04] <Alax> You mean like this? https://gist.github.com/anonymous/70620cc8aa32b1fe7878
[17:22:10] <Alax> Sorry very new to programming :p
[17:22:14] *** wilmoore has joined #angularjs
[17:22:25] <marcospgp> First of all I might not be 100% correct because I too am still learning
[17:22:30] <marcospgp> let me check your link
[17:22:48] <Alax> Alright sounds good any help is good.
[17:22:52] *** DrMabuse has quit IRC
[17:22:58] <marcospgp> Is this all the code you're using?
[17:22:58] <Alax> then i echo the data back out like https://gist.github.com/anonymous/b537aad835af2392f3ad but i need to somehow incorporare a video player...
[17:23:11] <marcospgp> oh okay
[17:23:12] <Alax> No its all about 20 files.
[17:23:23] *** vbabiy has quit IRC
[17:23:24] *** sonofdirt has joined #angularjs
[17:23:29] <Alax> I'm probally doing this inefficently but i don't know how to use mongodb or anything.
[17:23:50] *** InezK_away is now known as InezK
[17:24:16] <marcospgp> Where is the ng-src"{{thewalkingdead}}" supposed to be?
[17:24:32] *** ineedarobot has quit IRC
[17:24:42] *** s3ri0us has joined #angularjs
[17:24:43] *** jbourassa has joined #angularjs
[17:24:48] *** fels_zh has quit IRC
[17:24:53] *** KushS has quit IRC
[17:24:54] <sal1191> Alax: theres a really good video tutorial on http://kickass.to
[17:24:55] <Alax> <source src="{{TheWalkingDeadS1.url}}" type="video/mp4">
[17:24:57] <sal1191> on mongodb
[17:24:59] <Alax> Sorry i forgot i removed it.
[17:25:05] <Alax> Alright thanks sal
[17:25:07] <sal1191> search for MongoDB for Node developers
[17:25:13] *** vbabiy has joined #angularjs
[17:25:14] <Alax> Thank you.
[17:25:22] *** fels_zh has joined #angularjs
[17:25:22] <TyrfingMjolnir> Why mongo?
[17:25:23] <Alax> ng-src doesn't work and src doesn't work.
[17:25:27] *** mennea has joined #angularjs
[17:25:34] <sal1191> mongo's just a tool
[17:25:37] <Alax> Eventually it'll be a dig database of URLS, Info and Links to pics.
[17:25:40] <sal1191> he mentioned he had never used it
[17:25:52] <marcospgp> try echoing the {{thewalkingdead}} instead of using it directly as src and check the output
[17:25:52] <Alax> I figured JSON would be cool for a start..
[17:25:59] *** nemothekid has quit IRC
[17:26:11] *** freeman42 has joined #angularjs
[17:26:12] <marcospgp> JSON is a format, you can have a database that stores info in JSON format
[17:26:15] *** amedia has quit IRC
[17:26:16] <TyrfingMjolnir> Alax: http://curran.github.io/screencasts/introToAngular/exampleViewer/#/
[17:26:23] <Alax> TheWalkingDeadS1 is the scope
[17:26:30] <sal1191> thats essentially what mongo does
[17:26:34] <Alax> TheWalkingDeadS1.url - url is the object in the json
[17:26:34] *** amedia has joined #angularjs
[17:26:42] <sal1191> the binary equivalent of json
[17:26:45] <Alax> so if i remove .url it won't echo anything
[17:26:58] <Alax> Thanks so much man
[17:27:09] <Alax> If someone can help me get this working ill pay lol
[17:27:18] *** dcherman has quit IRC
[17:27:18] *** DanBangWTFRajib has joined #angularjs
[17:27:30] *** nodweber has quit IRC
[17:27:51] <Alax> src tag on images work but not on the video html5 tag
[17:27:59] *** richardbaker has joined #angularjs
[17:28:01] <Alax> i saw videogular or whatever but i don't know how to incorporate it.
[17:28:07] *** jonasrosenlin has joined #angularjs
[17:28:22] *** intellix has joined #angularjs
[17:28:25] *** dcherman has joined #angularjs
[17:28:32] *** icfantv has joined #angularjs
[17:28:33] *** AndyFTP has quit IRC
[17:29:10] *** jonasrosenlind has quit IRC
[17:29:11] <marcospgp> first try echoing the url instead of using it as src. See if the output is correct
[17:29:34] *** fels_zh has quit IRC
[17:29:44] *** imduffy15 has joined #angularjs
[17:30:04] *** Nizumzen has joined #angularjs
[17:30:32] <imduffy15> Hi all. I'm using ngAnimate on ng-repeat for animating the addition and removal of items. However on initial load of the repeat it animates the inserting of all the items. Is there a way to not do this?
[17:30:49] *** Jdubs has joined #angularjs
[17:31:45] *** djam90 has quit IRC
[17:31:56] *** wilmoore has quit IRC
[17:32:21] *** Milanito has joined #angularjs
[17:33:04] <marcospgp> imduffy15: You could try adding ngAnimate programatically. That would kind of kill the point of angular though
[17:33:08] *** KendrickVT has joined #angularjs
[17:33:40] <marcospgp> You can try not using ngAnimate and instead animate only on add/remove
[17:33:43] *** InezK is now known as InezK_away
[17:34:00] *** ustunozgur has joined #angularjs
[17:34:02] *** chrisshattuck has quit IRC
[17:34:04] *** HelperW___ has quit IRC
[17:34:33] <Alax> It outputs the url if i don't use it as a src
[17:35:06] *** Jdubs has quit IRC
[17:35:06] *** scmx has quit IRC
[17:35:19] *** partikus has joined #angularjs
[17:35:37] *** eperez has quit IRC
[17:35:49] *** chrisshattuck has joined #angularjs
[17:35:50] *** DerekPerkins has quit IRC
[17:36:05] <marcospgp> Alax: What is the element you are using to display the video?
[17:36:06] *** mattwynne has joined #angularjs
[17:36:16] *** kalehv has joined #angularjs
[17:36:33] *** bengilli_ has joined #angularjs
[17:36:34] <Alax> https://www.irccloud.com/pastebin/QFkaNT7P
[17:36:38] *** greg5green has joined #angularjs
[17:36:38] *** greg5green has joined #angularjs
[17:36:40] <Alax> there ya go.
[17:36:52] *** balboah has quit IRC
[17:36:52] *** bamyyyooo14335_ has quit IRC
[17:37:05] <marcospgp> Tried using ng-src?
[17:37:29] *** eperez has joined #angularjs
[17:37:34] *** ineedarobot has joined #angularjs
[17:37:53] *** Ymesio has joined #angularjs
[17:38:07] <marcospgp> Alax: https://developer.mozilla.org/pt-PT/docs/Web/HTML/Elemento/Video
[17:38:10] *** bengillies has quit IRC
[17:38:18] <Alax> Yes doesn't work aswell :/
[17:38:23] <Alax> ill try again one second.
[17:38:24] <marcospgp> Isn't the src supposed to be in the video tag?
[17:38:44] *** waylon999 has quit IRC
[17:38:44] <marcospgp> oh nevermind, it can be the source element
[17:38:46] <Ymesio> HI all, Is there a way to make angular throw an error if it is trying to compile a tag that does not have a directive?
[17:39:18] <Foxandxss> Ymesio: I don't think so
[17:39:22] *** anjumkaiser has joined #angularjs
[17:39:35] <Ymesio> this should throw: ‘<iDoNotExist>Hello</iDoNotExist>’
[17:39:35] <Alax> ng-src doesn't work either :/
[17:39:46] <senayar_> same issue with datepicker from http://mgcrea.github.io/angular-strap/##datepickers startView option is not working
[17:39:58] <Foxandxss> Ymesio: what if you're creating those using polymer or something like that
[17:40:00] <marcospgp> Alax: If you open the video url on the browser, does the video play?
[17:40:03] <Foxandxss> how angular knows that it doesn't exist?
[17:40:06] <Alax> Yep.
[17:40:14] <cthrax> Ymesio, I don't think it should actually. There is a whole class of non-html elements used by SVG that angular probably knows nothing about
[17:40:28] *** UniBot has quit IRC
[17:40:39] <cthrax> same would be true for many other namespaced markup
[17:40:45] <Ymesio> Foxandxss: cthrax: I think that should be configuralble
[17:40:47] *** UniBot has joined #angularjs
[17:40:55] <TyrfingMjolnir> Which libraries would I use to program something like this: http://www.suenyos.com/wp-content/uploads/2010/10/mysql-workbech-ubuntu.png
[17:41:02] <cthrax> Ymesio, I'm sure you can make a pull request
[17:41:11] <marcospgp> Alax: Are you using chrome? Try inspecting the element and checking if the src is correct, take a print and upload if you can
[17:41:14] *** aaronmitchell has joined #angularjs
[17:41:18] <Ymesio> I do not use anf of the web component stuff, and no SVG in my templates
[17:41:18] <Alax> Sec
[17:41:24] *** greg5green has quit IRC
[17:41:40] <imduffy15> marcospgp: I don't think that will help
[17:41:51] <TyrfingMjolnir> d3 has this kind of view?
[17:41:52] *** Xethron has quit IRC
[17:42:01] *** teslanick has joined #angularjs
[17:42:02] *** eperez has quit IRC
[17:42:06] <marcospgp> imduffy15: relating to what?
[17:42:08] <Alax> http://pastie.org/9350776
[17:42:11] <Ymesio> cthrax: Well, aparently making pull request will take more time than it can save, but maybe I can create an issue to see whan people think
[17:42:16] *** frankblizzard has quit IRC
[17:42:32] <Foxandxss> TyrfingMjolnir: that is hell of a job
[17:42:48] <cthrax> Ymesio, certainly a valid option as well
[17:42:48] *** teslanick has left #angularjs
[17:42:52] <marcospgp> Alax: Where is the src?
[17:43:02] <Alax> It doesn't display it i don't think sec
[17:43:12] *** clamstar has quit IRC
[17:43:12] <TyrfingMjolnir> Foxandxss: ?
[17:43:23] <Ymesio> cthrax: Just surprized nobody did that before
[17:43:27] <Foxandxss> TyrfingMjolnir: that is won't be easy to do
[17:43:42] <Alax> http://pastie.org/9350779
[17:43:46] <Alax> I guess it doesn't pass the src?
[17:43:59] <Alax> https://www.irccloud.com/pastebin/Zna4lBFv
[17:44:07] <cthrax> Ymesio, well I'm only one person, but it sounds like a silly idea to me, there's too many places that could go wrong
[17:44:08] *** corban has quit IRC
[17:44:14] *** corban has joined #angularjs
[17:44:27] <marcospgp> Alax: Oh right that was what you inspected with the dev tools
[17:44:29] *** hannesvdvreken has quit IRC
[17:44:33] <Alax> Yep
[17:44:41] *** L0u1s has quit IRC
[17:44:47] <cthrax> Ymesio, remember directives are can be attributes as well, and comments, and classnames
[17:45:07] *** marr has quit IRC
[17:45:15] *** chrisshattuck has quit IRC
[17:45:17] <cthrax> Ymesio, you start throwing based on all of those and it's not very useful and very much a hinderance
[17:45:23] *** nodweber has joined #angularjs
[17:45:25] <marcospgp> Alax: Try changing the ng-src to some url like google.pt or such and see if it appears in the dev tools
[17:45:34] <Alax> One sec
[17:45:35] *** bullicon has joined #angularjs
[17:45:39] *** chrisshattuck has joined #angularjs
[17:45:45] <bullicon> getting Unknown provider: $$rAFProvider from ngMock from a mocha test
[17:45:45] <bullicon> any idea?
[17:45:56] <Ymesio> cthrax: Guess I should play with it
[17:46:02] *** sir_pine_ has joined #angularjs
[17:46:21] <cthrax> Ymesio, by all means, I've been wrong before
[17:46:28] <Alax> Indeed works; http://pastie.org/9350789
[17:46:39] <Ymesio> cthrax: Thanks
[17:46:42] <cthrax> np
[17:46:50] <bullicon> any idea why I get Unknown provider: $$rAFProvider from ngMock ?
[17:46:51] <marcospgp> Alax: so the problem is in the {{TheWalkingDeadS1.url}}
[17:46:59] <Alax> Yeah:/
[17:47:04] *** UniBot has quit IRC
[17:47:08] <Alax> only place it doesn't work is in the ng-src / src
[17:47:10] *** aaronmitchell has quit IRC
[17:47:11] *** fels_zh has joined #angularjs
[17:47:12] *** arizzo has joined #angularjs
[17:47:15] <Alax> works fine in a h2 or anything else
[17:47:43] <marcospgp> Alax: try changing the ng-repeat="TheWalkingDeadS1 in TheWalkingDeadS1" to ng-repeat="theWalkingDead in TheWalkingDeadS1"
[17:47:44] *** daslicht has quit IRC
[17:47:46] <marcospgp> and then using
[17:48:06] <Alax> One second.
[17:48:11] <marcospgp> ng-src="{{theWalkingDead.url}}"
[17:48:26] *** mrogne has quit IRC
[17:48:46] *** chrisshattuck has quit IRC
[17:48:55] *** sir_pine_ has quit IRC
[17:48:56] *** stirlingw has joined #angularjs
[17:48:57] *** richardbaker has quit IRC
[17:49:14] <gnar_matix> having trouble including momentJS in Karma-Jasmine .. For some reason it's globally defined but undefined in units
[17:49:16] *** nytrm has quit IRC
[17:49:33] *** sir_pine_ has joined #angularjs
[17:49:39] <gnar_matix> Anyone ever had this issue? I'm also loading lodash & angular, they are both defined globally & in units..
[17:49:51] *** sir_pine_ has left #angularjs
[17:49:56] *** Milanito has quit IRC
[17:50:13] <Foxandxss> gnar_matix: it should work if you included momentJS in karma conf
[17:50:22] *** DerekPerkins has joined #angularjs
[17:50:25] <gnar_matix> yep that's how it's being included
[17:50:39] *** ajk27 has quit IRC
[17:50:41] <cthrax> gnar_matix, could be the include order?
[17:50:53] *** balboah has joined #angularjs
[17:50:54] <Foxandxss> shouldn't
[17:51:04] *** chrisshattuck has joined #angularjs
[17:51:08] <Alax> Nope don't think that worled.
[17:51:09] <Alax> http://pastie.org/pastes/9350802/text
[17:51:15] *** annlewis has quit IRC
[17:51:17] *** clamstar has joined #angularjs
[17:51:33] *** rtpg has quit IRC
[17:51:35] <TyrfingMjolnir> Foxandxss: I would have a set of tables like: http://pastie.org/private/r2ogmmemeapa74hm6yxdw
[17:51:41] <gnar_matix> cthrax Foxandxss : it's being loaded. I can access it from outside of the units. It just becomes undefined inside it('test', function () { }) blocks
[17:51:42] *** waylon999 has joined #angularjs
[17:51:47] *** annlewis has joined #angularjs
[17:51:52] <gnar_matix> : \
[17:51:56] *** fbenoit has quit IRC
[17:52:05] *** KendrickVT has quit IRC
[17:52:10] *** disorder20 has joined #angularjs
[17:52:15] <cthrax> gnar_matix, unless something is redefining it to undefined, I don't know how that would be possible
[17:52:29] <marcospgp> Alax: Are you sure theWalkingDead.url leads to the correct url? You tried echoing it and it worked, right? So this is very strange
[17:52:34] <bullicon> ok sorted that one out
[17:52:34] <Foxandxss> cthrax: +1
[17:52:37] <cthrax> gnar_matix, just the way javascript scoping works
[17:52:44] <Alax> Yes ill change it to be sure.
[17:52:46] *** Milanito has joined #angularjs
[17:52:56] <bullicon> when I mock a $scope, I am meant to get the iniitial state?
[17:53:17] <bullicon> how do I test that a module has been mocked properly?
[17:53:17] *** dariocravero has joined #angularjs
[17:53:17] *** aaronmitchell has joined #angularjs
[17:53:18] <gnar_matix> cthrax yeah i know.. dunno what's going on
[17:53:23] <Alax> "url":"http://s3-eu-west-1.amazonaws.com/webuniversite/video/Klasik_Oto_2_3_M.mp4",
[17:53:29] <Alax> Nope isn't wokring.
[17:53:48] <TyrfingMjolnir> Foxandxss: perhaps easier to read: http://pastie.org/private/lnrhgxvt6lfr25uh9yeg
[17:54:34] <Foxandxss> it is
[17:54:38] <Foxandxss> but from that to what you want
[17:54:44] <Foxandxss> is hundred of working hours :)
[17:54:49] <cthrax> gnar_matix, I believe you can go into the temp files created by karma to get the page that runs the tests and debug that way
[17:54:58] <marcospgp> Alax: So the problem isn't with the ng-src but with the url itself
[17:55:06] <TyrfingMjolnir> Foxandxss: for doing what?
[17:55:07] *** UniBot has joined #angularjs
[17:55:08] <Alax> The url loads fine though?
[17:55:11] <TyrfingMjolnir> The relationships?
[17:55:30] <gnar_matix> cthrax i just figured it out.. i was loading it from a files array. explicitly declared it and it was fixed
[17:55:44] <marcospgp> Alax: I mean the theWalkingDead.url -> that path doesn't lead to anything
[17:55:56] *** polarkreis has joined #angularjs
[17:55:58] <Foxandxss> TyrfingMjolnir: I thought you wanted to create that application in angular
[17:56:01] <Alax> thewalkingdeads1.url does
[17:56:09] <polarkreis> Hello everyone
[17:56:19] <TyrfingMjolnir> The diagram part, yes
[17:56:24] <Alax> $scope.TheWalkingDeadS1 = data;
[17:56:35] <TyrfingMjolnir> The graphing and the relationships
[17:56:42] *** UniBot has quit IRC
[17:56:45] *** blueadept has quit IRC
[17:56:48] <marcospgp> Alax: Can you provide me code for the object that contains the urls as well as the controller that passes the object to the scope?
[17:56:52] <cthrax> gnar_matix, there you go
[17:56:52] <TyrfingMjolnir> The rest is quicker to do in CLI
[17:57:18] *** tommmied has joined #angularjs
[17:57:18] <gnar_matix> cthrax the weird part is that it was loaded though..
[17:57:23] *** armdale has joined #angularjs
[17:57:29] *** tommmied1 has quit IRC
[17:57:31] *** KendrickVT has joined #angularjs
[17:57:33] *** sacho_ has joined #angularjs
[17:57:50] <polarkreis> i have an question, I am building form, and uder form there is expression that shows label of select input (and it works), but after I hit Reset form button the expression stays unchanged to default. Any idea how to fix it?
[17:57:51] <Alax> http://pastie.org/9350828
[17:57:53] <Alax> is the json
[17:58:01] *** mewm has quit IRC
[17:58:07] <Alax> what do you exactly mean by "controller" sorry new at this..
[17:58:10] *** AlSquire has quit IRC
[17:58:16] *** Yahkob has joined #angularjs
[17:58:22] <bullicon> no one likes testing errors?
[17:58:39] *** InezK_away is now known as InezK
[17:58:51] <marcospgp> Alax: The controller is the code where you assign things to the scope -> $scope.object = theWalkingDeadObject;
[17:59:38] *** Milanito has quit IRC
[17:59:58] *** TorpedoSkyline has joined #angularjs
[18:00:13] <Alax> My function?
[18:00:13] <guilbep> Hm/./ Do you guys know how I should remove $httpProvider.default.header for a specific $http request ?
[18:00:15] <guilbep> :D
[18:00:24] <marcospgp> Alax: I believe so
[18:00:27] *** kroogs has joined #angularjs
[18:00:30] <Alax> http://pastie.org/9350834
[18:00:38] *** sacho has quit IRC
[18:01:12] *** chachan has quit IRC
[18:01:20] <guilbep> I could do something like: delete $http.defaults.headers.common['X-Requested-With'] or maybe I should use a different module to configure my $http adequatly..
[18:01:28] *** discipolo has quit IRC
[18:01:38] <guilbep> I just Wanted to do it quickly without changing to much things.
[18:01:41] *** orion1111 has quit IRC
[18:01:44] <guilbep> *too many things
[18:01:54] *** VeeWee has quit IRC
[18:02:00] *** dariocravero has quit IRC
[18:02:01] <Fishy> anyone know a good angularjs blog to follow.. or a site for weekly tips or anything?
[18:02:12] *** cobakobodob has quit IRC
[18:02:17] *** rockfordal has quit IRC
[18:02:24] <marcospgp> Alax: Okay the thing is you can't just have function TheWalkingDeadS1(); you need something like angular.module('angNewsApp') .controller('AboutCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
[18:02:26] <senayar_> https://github.com/mgcrea/angular-strap/issues/876 :O
[18:02:42] <marcospgp> let me paste that for you
[18:02:44] <Alax> Ahhh
[18:02:48] <Alax> so what do i do from here?
[18:02:54] <marcospgp> http://pastie.org/9350841
[18:04:02] <Alax> Hmm not sure i understand.
[18:04:08] <Alax> add that to the page
[18:04:10] <Alax> or my app.js?
[18:04:28] <guilbep> Or I could probably copy $http locally and delete the lements inside..
[18:04:40] *** GeertV has quit IRC
[18:04:46] *** kroogs has quit IRC
[18:04:56] <marcospgp> Alax: Check this code http://curran.github.io/screencasts/introToAngular/exampleViewer/#/11
[18:05:09] <marcospgp> the ng-app and ng-controller part is what you should be focusing on
[18:05:25] <marcospgp> and then the nameApp.controller
[18:05:48] <Alax> Ahh fuck... so confused ;p
[18:06:08] <marcospgp> Alax: Relax, it gets better aha
[18:06:15] <Alax> i know ;p
[18:06:21] <Alax> so basically whats my next step
[18:06:23] <Alax> in stupid terms?
[18:06:34] <marcospgp> setting up your app correctly
[18:06:47] <marcospgp> your code is good but you have to setup the controller and etc correctly
[18:06:58] *** Sebastien-L has quit IRC
[18:07:14] <Alax> so basically
[18:07:19] <Alax> what needs fixed?
[18:07:23] <Alax> the video player or what
[18:07:26] *** cigarshark has joined #angularjs
[18:07:28] <Alax> sorry so confused very so confused lol
[18:07:29] *** narutimateum has quit IRC
[18:07:37] <marcospgp> from that example I sent you, you can see already what you need to do in order to send the object with the urls to the scope
[18:07:38] *** Dimlock has quit IRC
[18:07:39] *** dve has quit IRC
[18:08:05] *** mchammer has quit IRC
[18:08:09] *** dve has joined #angularjs
[18:08:11] *** cisox_ is now known as cisox_away
[18:08:37] *** Lucas_ has joined #angularjs
[18:08:55] <Alax> So this should be my controller ? http://pastie.org/9350870
[18:08:58] *** fer_ has joined #angularjs
[18:08:59] <Alax> add that to my app.js
[18:09:02] *** andrastoth has quit IRC
[18:09:07] <fer_> hello everybody!
[18:09:14] *** imduffy15 has quit IRC
[18:09:23] <gnar_matix> cthrax : lol . moment was undefined because I was doing "var moment = moment()"
[18:09:38] <Alax> $scope.url = '{{TheWalkingDeadS1.url}}'; ??
[18:09:41] <cthrax> gnar_matix, lol
[18:09:59] <fer_> I'm binding a value {{ps.msg}}
[18:10:26] *** rburns has quit IRC
[18:10:29] <marcospgp> Alax: no, to the url you sent the TheWalkingDeadS01 object
[18:10:33] <marcospgp> to the scope* aha
[18:10:38] *** amedia_ has joined #angularjs
[18:10:38] <marcospgp> send*
[18:10:39] <fer_> the data that I'm binding cames from a poll (android app) that checks por a printer status and sends me a status report every 5s
[18:10:42] <marcospgp> damn i need some coffee
[18:10:51] *** fels_zh has quit IRC
[18:10:52] <fer_> *comes
[18:10:54] *** ineedarobot has quit IRC
[18:11:24] *** fels_zh has joined #angularjs
[18:11:34] <Alax> $scope.url should be the host then?
[18:11:36] <Alax> FUck angular lol
[18:11:43] *** amedia has quit IRC
[18:11:44] *** amedia_ is now known as amedia
[18:11:46] *** tylerjohnst has joined #angularjs
[18:11:47] *** ustunozgur has quit IRC
[18:12:03] <Alax> $1 Btc for you to write it for me lol
[18:12:06] <fer_> data comes, every 5 secs as I can do a window.alert and see its content every time
[18:12:40] <fer_> but when i update the data binder $scope.ps.msg with the new data, nothing happens
[18:12:50] <fer_> until I tap the screen
[18:13:11] *** alinou has joined #angularjs
[18:13:17] <fer_> is there something that I'm doing so wrong that I can't manage to angular to update that data binded?
[18:13:19] *** mattwynne has quit IRC
[18:13:20] <Alax> $scope.firstName = 'John'; then whats the point of me storing the URL in the json?
[18:13:38] *** Lucas_ has quit IRC
[18:13:43] <marcospgp> you have to do $scope.object = yourJsonObject
[18:13:47] <marcospgp> and then in the html you do
[18:13:55] *** Asiajey has joined #angularjs
[18:13:58] <marcospgp> ng-repeat="twd in yourJsonObject"
[18:14:02] *** viscera is now known as Guest78990
[18:14:08] <Alax> $scope.url = TheWalkingDeadS1.url ?
[18:14:10] *** polarkreis has quit IRC
[18:14:11] *** discipolo has joined #angularjs
[18:14:14] <marcospgp> ng-repeat="twd in object" *
[18:14:15] <Alax> sorry im going to ask a fuckton of questions lol
[18:15:04] *** DevAntoine has quit IRC
[18:15:09] <marcospgp> Maybe you should start from the beginning, I don't think you understand angular completely yet
[18:15:42] <fer_> any help with my problem?
[18:16:16] <marcospgp> https://egghead.io/articles/new-to-angularjs-start-learning-here
[18:16:18] *** anth0ny has joined #angularjs
[18:16:18] *** anth0ny has joined #angularjs
[18:16:22] <marcospgp> Alax: Check that link
[18:16:48] *** Anticom has quit IRC
[18:16:58] *** z00py has joined #angularjs
[18:17:38] <fer_> does angular supports realtime updates?
[18:18:31] <fer_> without doing something like var poll = function () {$timeout(function () { poll();}, 1000)}?
[18:18:41] *** jonasrosenlin has quit IRC
[18:18:54] *** ustunozgur has joined #angularjs
[18:19:11] <gnar_matix> Best method for checking if a var is an integer? ` parseInt(num) === num ` doesn't catch ` num = 2.0 `
[18:19:33] *** jtimon has quit IRC
[18:20:24] <gnar_matix> ^^ i guess that's not really an angular question :P
[18:20:27] *** rockfordal has joined #angularjs
[18:20:58] *** UniBot has joined #angularjs
[18:21:03] <Alax> Thanks Macros
[18:21:06] <Alax> Ill check it out
[18:21:11] <antihero> I can't get filtering on a subproperty working
[18:21:12] <antihero> ng-repeat="row in (day.rows | filter: {'data.arrival_or_departure': arriveDepart.consignmentType.value}) track by row.data.id"
[18:21:15] <antihero> doesnt work
[18:21:22] <antihero> do I have to use a function?
[18:21:30] *** pdillinger has joined #angularjs
[18:21:49] *** Yahkob has quit IRC
[18:22:00] *** mdallastella has quit IRC
[18:22:19] *** UniBot has quit IRC
[18:22:19] *** cujojp has joined #angularjs
[18:22:21] *** fels_zh has quit IRC
[18:22:41] <guilbep> ok found a way.. thank you transformRequest :)
[18:22:49] *** InezK is now known as InezK_away
[18:22:55] *** fels_zh has joined #angularjs
[18:23:46] *** ustunozgur has quit IRC
[18:24:01] *** Yahkob has joined #angularjs
[18:24:09] *** yani has joined #angularjs
[18:24:13] *** Guest39774 has quit IRC
[18:24:34] *** DrMabuse has joined #angularjs
[18:25:08] *** rabaznaz has joined #angularjs
[18:25:30] *** storresi has quit IRC
[18:25:31] *** ppppaul has joined #angularjs
[18:26:16] *** subnl has joined #angularjs
[18:26:34] <fer_> no clue? bad question?
[18:27:11] *** Xethron has joined #angularjs
[18:27:22] *** cujojp has quit IRC
[18:27:35] *** joshontheweb has quit IRC
[18:27:56] *** seydoggy has quit IRC
[18:28:07] *** jh3 has joined #angularjs
[18:28:12] *** Yahkob has quit IRC
[18:28:27] *** seydoggy has joined #angularjs
[18:28:42] *** jsoverson has joined #angularjs
[18:29:02] <shackleford> is there are a way to include data into a payload, using transformResponse
[18:29:14] *** cobakobodob has joined #angularjs
[18:29:16] *** arabot has joined #angularjs
[18:29:19] <shackleford> I want to add an object at the top of th epayload
[18:29:30] *** Yahkob has joined #angularjs
[18:29:35] *** arabot has left #angularjs
[18:30:06] *** bullicon has quit IRC
[18:30:14] *** svycka has quit IRC
[18:30:28] *** mguillech has quit IRC
[18:30:43] *** jbourassa has quit IRC
[18:30:56] *** mguillech has joined #angularjs
[18:31:07] *** jdj_dk has quit IRC
[18:31:11] *** brianturgeon has joined #angularjs
[18:31:22] *** denny009 has joined #angularjs
[18:31:34] *** fedenunez has quit IRC
[18:31:59] *** ascarter has quit IRC
[18:32:00] *** rockfordal has quit IRC
[18:32:04] *** fedenunez has joined #angularjs
[18:32:11] *** Joulse has quit IRC
[18:32:15] *** rockfordal has joined #angularjs
[18:32:25] *** Gambit- has joined #angularjs
[18:32:31] *** tmrudick has joined #angularjs
[18:32:32] *** intellix has quit IRC
[18:32:34] *** seydoggy_ has joined #angularjs
[18:32:35] *** brianturgeon has quit IRC
[18:32:55] *** seydoggy has quit IRC
[18:33:00] *** UniBot has joined #angularjs
[18:33:12] *** cctom has joined #angularjs
[18:33:24] <denny009> hello all i've a strange behavior...i've 2 directive that alone works but if i put itogether it doesn't works: <sg-state state="wheelStatus"/> ---> OK , <sg-user-info/>----> OK , <sg-state state="wheelStatus"/><sg-user-info/> ----> FAILS
[18:33:25] *** amedia has quit IRC
[18:33:43] <denny009> I see only the first view and not the second
[18:33:53] *** amedia has joined #angularjs
[18:33:55] *** eperez has joined #angularjs
[18:34:03] *** Xethron has quit IRC
[18:34:04] *** moong has quit IRC
[18:35:11] *** mguillech has quit IRC
[18:35:13] *** blueadept` has joined #angularjs
[18:35:55] *** sneakertack has left #angularjs
[18:36:00] *** mguillech has joined #angularjs
[18:36:23] *** zackiv31 has quit IRC
[18:37:17] *** tmrudick has quit IRC
[18:37:21] <sal1191> if I make an $http.get request in my controller, but I never use the ng-controller directive in my page, does the request still get made?
[18:37:24] *** vf1 has joined #angularjs
[18:37:35] *** walden is now known as walden|afk
[18:37:42] *** rho has quit IRC
[18:37:57] * danizord is back (gone 00:42:48)
[18:38:13] <denny009> hello all i've a strange behavior...i've 2 directive that alone works but if i put itogether it doesn't works: <sg-state state="wheelStatus"/> ---> OK , <sg-user-info/>----> OK , <sg-state state="wheelStatus"/><sg-user-info/> ----> FAILS
[18:38:35] *** tfennelly has quit IRC
[18:38:37] *** storresi has joined #angularjs
[18:38:48] *** motionman has quit IRC
[18:39:08] *** cisox_away has quit IRC
[18:39:11] *** mguillech has quit IRC
[18:39:30] *** KernelCurry has joined #angularjs
[18:40:42] *** eperez has quit IRC
[18:41:35] *** Aliks has joined #angularjs
[18:42:20] *** cujojp has joined #angularjs
[18:42:25] *** kennbrodhagen has joined #angularjs
[18:42:41] *** ncbw has quit IRC
[18:42:54] *** Yahkob has quit IRC
[18:43:04] *** rburns has joined #angularjs
[18:43:14] *** tmrudick has joined #angularjs
[18:43:45] *** eperez has joined #angularjs
[18:45:02] *** cthrax has quit IRC
[18:45:07] *** \du has quit IRC
[18:45:25] <monokrome> Good morning, Angular! :D
[18:46:04] *** Aliks has quit IRC
[18:46:56] *** fedenunez1 has joined #angularjs
[18:46:56] *** fedenunez has quit IRC
[18:47:49] *** kennbrodhagen has quit IRC
[18:48:03] <sal1191> good morning to you sir
[18:48:05] *** Jdubs has joined #angularjs
[18:48:23] *** encrypt__ has joined #angularjs
[18:49:10] *** mdallastella has joined #angularjs
[18:49:13] <OddDuck> Coming from an OO background, my natural tendency with angular apps is to try to break them down into classes. Right now I end up with a bunch of small services, where each service corresponds to a class or an instantiated class... I feel like I'm going against the whole "spirit" of js/angular doing things this way though.. is there a cleaner approach?
[18:49:23] *** snurfery has joined #angularjs
[18:49:56] *** richardbaker has joined #angularjs
[18:50:10] <Alax> Alright sweet... I figured it out lol.
[18:50:14] <Alax> Thanks man..
[18:50:41] *** fels_zh has quit IRC
[18:50:41] <sal1191> I have been wondering myself if Angular can be split up into components to be loaded using requireJS
[18:50:46] *** encryptd_fractl has quit IRC
[18:51:05] <sal1191> rather, if an app written inangular can be broken up into requirejs modules
[18:51:20] *** fels_zh has joined #angularjs
[18:51:40] *** cthrax has joined #angularjs
[18:51:52] *** shackleford has quit IRC
[18:52:06] *** chrisbirk has quit IRC
[18:52:15] *** Yahkob has joined #angularjs
[18:52:18] *** tmrudick has quit IRC
[18:52:20] *** z00py has quit IRC
[18:52:23] <sal1191> this can be smartly done in Backbone
[18:52:23] *** teolicy has quit IRC
[18:52:52] <sal1191> and my instinct as well is to achieve the same set up in angular
[18:53:13] *** sk87 has quit IRC
[18:53:25] <sal1191> although since controllers are created using angular.controller, and similarly directives and filters
[18:53:44] *** Milanito has joined #angularjs
[18:53:44] <Foxandxss> angular doesn't suppor that by default
[18:53:46] *** Snugug_ has quit IRC
[18:53:50] *** TyrfingMjolnir has quit IRC
[18:53:50] <Foxandxss> and since angular 2 will use ES modules
[18:53:52] <Foxandxss> it wont
[18:53:53] <sal1191> you would necessarily have to change the way youre thinking about instantiating objects
[18:54:14] *** RogerWS has joined #angularjs
[18:54:16] *** rho has joined #angularjs
[18:54:27] <sal1191> ah i see, so requirejs makes no sense to use in an angular app?
[18:54:28] *** RogerWS_ has quit IRC
[18:54:30] *** TyrfingMjolnir has joined #angularjs
[18:54:44] <Foxandxss> for some people, it does
[18:54:47] *** richardbaker has quit IRC
[18:54:49] <monokrome> sal1191: I used RequireJS for angular for a couple weeks, but we got rid of it because the overhead is ridiculous
[18:54:58] *** amedia has quit IRC
[18:54:58] <G1eb> when is angular 2 scheduuled?
[18:55:13] *** SahanH has joined #angularjs
[18:55:21] *** mehlah has quit IRC
[18:55:25] <Foxandxss> end of year minimum
[18:55:31] <sal1191> monokrome: thanks for the tip. do you split up your code into files all the same?
[18:55:34] *** fels_zh has quit IRC
[18:55:43] <sal1191> like, individual controllers
[18:55:53] <monokrome> As long as you follow best practices, Angular already gives you separation of your components without a ton of global variables and it already solves the problem of referencing other components using injection
[18:55:59] *** markisonfire has joined #angularjs
[18:56:01] *** richardbaker has joined #angularjs
[18:56:04] <monokrome> sal1191: Yes, every component is a separate file
[18:56:20] <monokrome> sal1191: The really big problem with RequireJS was that it made unit tests a lot more difficult to implement
[18:56:42] <marcospgp> How would I use jquery ui's draggable plugin in conjuction with angular?
[18:56:44] <monokrome> It's also a lot more boilerplate with little value since the Angular ecosystem doesn't really use UMD or anything similar
[18:56:54] *** klaut has quit IRC
[18:57:00] <sal1191> I see
[18:57:10] *** mehlah has joined #angularjs
[18:57:11] *** eperez has joined #angularjs
[18:57:19] *** yoshokatana has quit IRC
[18:57:29] <monokrome> marcospgp: There are libraries like UI BOotstrap and AngularStreap that implement the Bootstrap components in Angular instead of using Bootstrap's JS, but if you wanted to do it manually then it's probably best approached using a compile function in a directive
[18:57:52] <marcospgp> compile function in a directive?
[18:57:59] <monokrome> yeah
[18:58:15] <sal1191> I saw a angular plugin that lets you insert bootstrap layout components entirely in directives
[18:58:29] <sal1191> is that what you're speaking of?
[18:58:30] *** whunt has joined #angularjs
[18:58:34] <monokrome> yeah
[18:58:36] *** eperez has quit IRC
[18:58:43] *** mehlah has quit IRC
[18:58:59] <monokrome> There are two that I know of. They are called ui-bootstrap and AngularStrap. I've used both and had more success with AngularStrap personally.
[18:59:04] *** kas84 has quit IRC
[18:59:06] *** eperez has joined #angularjs
[18:59:14] *** feelfine has joined #angularjs
[18:59:35] <monokrome> But they're nice in that they reimplement the bootstrap javascript lirbaries in pure Angular form, so they don't require you to use the regular bootstrap.js at all
[18:59:41] *** RaphaelRocca has quit IRC
[18:59:54] <sal1191> now that is cool.
[19:00:11] *** kroogs has joined #angularjs
[19:00:52] *** meenuh has joined #angularjs
[19:01:34] *** nfroidure_ has quit IRC
[19:01:53] <Foxandxss> cool but a hell of work
[19:01:59] <monokrome> marcospgp: https://docs.angularjs.org/guide/compiler#!
[19:02:05] *** jaxtrx has joined #angularjs
[19:02:51] *** disorder20 has quit IRC
[19:02:51] *** mgolawal_ has joined #angularjs
[19:02:52] <monokrome> This might be helpful if you want to implement it yourself instead of using a lib.
[19:03:03] *** nicoonee has quit IRC
[19:03:14] <marcospgp> monokrome: Don't you mean creating a directive?
[19:03:15] *** dve has quit IRC
[19:03:34] <monokrome> marcospgp: Well, I was just talking about the specific function in a directive that you create
[19:03:40] *** feelfine has quit IRC
[19:03:47] *** joshbrw has quit IRC
[19:03:48] <monokrome> So, yes, creating a directive is the first step
[19:03:55] *** vmarovic has joined #angularjs
[19:04:04] *** dashed has joined #angularjs
[19:04:20] <sal1191> Foxandxss: a lot of work, to convert bootstrap.js to angular you mean?
[19:04:27] *** tpyo has quit IRC
[19:04:29] <Foxandxss> yes
[19:04:39] <arizzo> quick question, so i have this common callback that gets called upon a success ( or error ) ajax call, how can i pass all the info (data, status, headers, config) to this callback along with another variable,, currently i have this .success(commonCallBack(data, status, headers, config, anothervar)... but it complains headers is not defined.. any clue what im doing wrong
[19:04:39] <sal1191> were you involved in that?
[19:04:44] <Foxandxss> yes
[19:04:49] *** elux has joined #angularjs
[19:04:49] <drej> no wonder its horrible!
[19:04:50] * drej ducks
[19:04:52] <drej> i kid
[19:04:54] <ojacobson> woh woh
[19:04:56] *** DanBangWTFRajib has quit IRC
[19:04:59] <ojacobson> I do have a bug report for ui-bootstrap, though
[19:05:03] <sal1191> haha cool man thanks for the plugin ill try it out
[19:05:10] <ojacobson> dropdowns with form fields inside them close when the form field gains focus
[19:05:24] *** kroogs has quit IRC
[19:05:25] <Foxandxss> Not meant to be harsh, but I don't care
[19:05:26] *** mgolawala has quit IRC
[19:05:33] <ojacobson> *nod*
[19:05:36] <Foxandxss> I am not doing any ui-bootstrap anymore
[19:05:47] <ojacobson> Then I apologize for the hassle :)
[19:05:51] <drej> Foxandxss good man
[19:05:52] <Foxandxss> you report
[19:05:54] *** vonnegut has joined #angularjs
[19:05:55] <Foxandxss> report is free
[19:05:55] <drej> .. or woman
[19:06:01] <sal1191> what does the bootstrap.js file do? it does dropdowns right?
[19:06:04] *** jdj_dk has joined #angularjs
[19:06:07] <drej> sal1191 more than that
[19:06:09] *** gnar_matix has quit IRC
[19:06:12] <Foxandxss> sal1191: dropdowns, modal, carousel, etc etc
[19:06:20] *** nodweber_ has joined #angularjs
[19:06:24] <sal1191> ohh yeah thats right
[19:06:26] <drej> bloat.js
[19:06:35] <ojacobson> sal1191: bootstrap.js does all the non-css features of bootstrap, including navbar resize handling, dropdown menues, custom button types like radio buttons and checkbox buttons
[19:06:37] <ojacobson> etc etc multiple etc
[19:06:40] <sal1191> ha
[19:06:40] *** gnar_matix has joined #angularjs
[19:06:49] <monokrome> Foxandxss: There are a lot of issues like that in ui-bootstrap. Also, I ran into documentation for features that didn't exist and even some features that weren't documented.
[19:06:50] *** mrogne has joined #angularjs
[19:07:13] <Foxandxss> monokrome: normally there is a difference between the doc and master branch
[19:07:15] <sal1191> oh i didnt realize that the responsive navbar wasnt all css
[19:07:19] <Foxandxss> the problem is that master branch goes slooow
[19:07:22] <drej> sal1191 it should be, but its not
[19:07:28] <Foxandxss> sal1191: except two bits
[19:07:30] <monokrome> Foxandxss: I was using the bower component
[19:07:31] <Foxandxss> collapse
[19:07:40] <ojacobson> sal1191: most of it is, but the button-based collapse can't be done with css alone
[19:07:45] *** jobney has quit IRC
[19:07:47] <sal1191> is it because of browser inconsistencies or does current css support it in latest
[19:07:55] <drej> ojacobson it _could_ but not with backwards compatibility
[19:07:58] <sal1191> ah i see
[19:08:12] *** marcghorayeb has quit IRC
[19:08:19] *** jh3 has quit IRC
[19:08:25] <Foxandxss> ui-bootstrap needs heavy heavy work, a face clean
[19:08:31] *** dve has joined #angularjs
[19:08:41] <drej> ojacobson :target is pretty well supported on mobile though, and it should be all you need to get it working
[19:08:47] <ojacobson> drej: mm
[19:08:54] *** gnar_mat_ has joined #angularjs
[19:09:00] <sal1191> Foxandxss: were you part of angularstrap as well as ui-bootstrap?
[19:09:01] <drej> but i guess collapsable menus arent mobile-specific, its also for people on tiny monitors
[19:09:02] <ojacobson> I'm not ambitious to try to fix that - but if it does work, I might be able to rebuild dropdowns that way, too
[19:09:11] <Foxandxss> sal1191: that would be killing
[19:09:22] <Foxandxss> angularstrap is made by one guy only
[19:09:22] *** MathiasM has quit IRC
[19:09:24] *** gnar_matix has quit IRC
[19:09:44] *** bengilli_ has quit IRC
[19:09:49] <monokrome> Foxandxss: AngularStrap solves a lot of problems that ui-bootstrap has thoug
[19:09:50] <monokrome> though*
[19:09:58] <monokrome> especially the datepicker
[19:10:00] *** nodweber has quit IRC
[19:10:00] <sal1191> ah kk
[19:10:01] *** gnar_mat_ has quit IRC
[19:10:07] <Foxandxss> monokrome: that occurs both ways
[19:10:12] <ojacobson> Foxandxss: anyways, even if you're not working on it now, ui-bootstrap is still pretty damn cool and I'm grateful that you worked on it in the first place :)
[19:10:15] <Foxandxss> ui-bootstrap has stuff that angularstrp doesnt and viceversa
[19:10:20] *** bengillies has joined #angularjs
[19:10:22] <monokrome> Well, maybe so. Not in my experience, however.
[19:10:24] *** charuru has joined #angularjs
[19:10:32] *** chrisbirk has joined #angularjs
[19:10:32] <Foxandxss> angularstrap doesn't support custom templates
[19:10:36] *** gnar_matix has joined #angularjs
[19:10:40] <Foxandxss> you could easily use foundation with ui-bootstrap
[19:10:45] *** partikus has quit IRC
[19:10:46] <Foxandxss> with little to not tweaks
[19:10:51] <monokrome> Foxandxss: Yeah, but that's not it's job really. I solved that with $templateCache
[19:11:09] <monokrome> $templateCache.put('/somewhere.html', 'mytemplate')
[19:11:10] *** jdj_dk has quit IRC
[19:11:17] <Foxandxss> that is true though
[19:11:34] <Foxandxss> ui-bootstrap directives are well done and they are cool
[19:11:45] <Foxandxss> and has much much greater community
[19:11:51] <Foxandxss> but it needs people working on it almost everyday
[19:11:51] <monokrome> $modal transcludes which causes scope to be all messed up
[19:11:53] *** AlSquire has joined #angularjs
[19:11:59] *** jareddlc has joined #angularjs
[19:12:06] <Foxandxss> that was fixed I think monokrome
[19:12:09] <Foxandxss> on master at least
[19:12:13] *** amedia has joined #angularjs
[19:12:18] <Foxandxss> scoping is a PITA
[19:12:18] <monokrome> hmm
[19:12:48] <monokrome> There was a big pull request I created about it where everyone basically said "LEARN ANGULAR"
[19:13:13] *** Snugug has joined #angularjs
[19:13:36] <Foxandxss> I don't recall
[19:13:37] <monokrome> Foxandxss: You're right! It was fixed. https://github.com/angular-ui/bootstrap/issues/2110
[19:13:47] *** nodweber_ has quit IRC
[19:13:48] *** teslanick has joined #angularjs
[19:14:14] *** eperez has quit IRC
[19:14:19] <sal1191> is bootstrap part of angular-ui as well?
[19:14:29] <Foxandxss> yes
[19:14:44] *** bengillies has quit IRC
[19:14:45] <monokrome> It replaces bootstrap.js
[19:14:47] *** pdillinger has quit IRC
[19:14:48] *** jbourassa has joined #angularjs
[19:14:50] *** teslanick has left #angularjs
[19:14:51] <sal1191> does angular-ui have additional components?
[19:14:58] <Foxandxss> check its page
[19:15:04] <sal1191> i will when I get home
[19:15:06] <Foxandxss> ut most of them are jquery wrappers
[19:15:14] <monokrome> It's just angular-ui.github.io
[19:15:18] <sal1191> I sit in this channel in Android Terminal Emulator :)
[19:15:22] *** gnar_matix has quit IRC
[19:15:23] <monokrome> :)
[19:15:27] *** roymiloh has joined #angularjs
[19:15:40] *** jb076 has joined #angularjs
[19:15:49] *** mguillech has joined #angularjs
[19:15:51] <Foxandxss> yay
[19:15:56] *** Maverickz has quit IRC
[19:16:05] *** guilbep has quit IRC
[19:16:27] *** rho has quit IRC
[19:16:27] *** fels_zh has joined #angularjs
[19:16:34] *** sloria has joined #angularjs
[19:16:41] *** jscheel has joined #angularjs
[19:16:43] <Foxandxss> monokrome: the moral is that OS is hard, you need to give it much time
[19:16:44] *** tfennelly has joined #angularjs
[19:16:50] <jb076> Hey all, does anyone know whether a timing issue can cause an yet unset two-way bound scope variable in a directive to be set as null, not undefined?
[19:16:51] *** nerdfiles has joined #angularjs
[19:16:52] <monokrome> OS?
[19:16:57] <Foxandxss> open source
[19:17:01] <monokrome> oooh
[19:17:01] <Foxandxss> OSS maybe?
[19:17:04] *** herenow- has quit IRC
[19:17:10] <monokrome> Yeah, but sometimes people don't have time
[19:17:21] <monokrome> :(
[19:17:23] *** fels_zh has quit IRC
[19:17:26] <Foxandxss> that is what's happening to ui-bootstrap
[19:17:36] <jscheel> hi folks, I’m pretty new to angular, so please correct me if my question doesn’t make sense. I have two custom directives on the same element. I need both of those directives to address the same scope. How would I do this?
[19:17:50] *** fels_zh has joined #angularjs
[19:17:54] *** chrisbirk has quit IRC
[19:18:05] *** avens has quit IRC
[19:18:06] *** nicoonee has joined #angularjs
[19:18:11] *** UniBot has quit IRC
[19:18:17] *** eperez has joined #angularjs
[19:18:25] *** cisox has joined #angularjs
[19:18:26] *** herenow has joined #angularjs
[19:18:27] <Foxandxss> by default that is not possible anymore
[19:18:32] *** UniBot has joined #angularjs
[19:18:44] <Foxandxss> for new / isolated scopes
[19:19:05] *** melmoussaoui has joined #angularjs
[19:19:09] *** Willow has quit IRC
[19:19:35] *** Willow has joined #angularjs
[19:19:50] *** spencercarnage has joined #angularjs
[19:19:57] *** gnar_matix has joined #angularjs
[19:20:06] <monokrome> jscheel: The scope that they both need to address would have to be inherited from a parent in the DOM for this case :(
[19:20:18] <jscheel> Foxandxss: interesting, so, I have a modal directive, and another directive that does special manipulation to modals. To get them to work together, I have the modal directive calling scope.$emit(‘modal:shown’), so that the other directive can do it’s work when that happens. Am I doing it wrong?
[19:20:24] *** mguillech has quit IRC
[19:20:29] *** cisox is now known as cisox_away
[19:20:32] <monokrome> It might also make sense to use a service to share that data if it's not UI-specific data
[19:20:45] <jscheel> monokrome: it’s just ui
[19:20:50] <monokrome> hmm
[19:20:55] <Foxandxss> to listen to events you don't need them to share the scope
[19:20:56] *** shoeless_ has joined #angularjs
[19:21:13] <jscheel> Foxandxss: what would I trigger the event on?
[19:21:16] <Foxandxss> but if both directives are related, you could make one depend on the other
[19:21:21] <jscheel> Foxandxss: just the element?
[19:21:25] <monokrome> Foxandxss: I think scope in that example is a sibling scope
[19:21:40] <Foxandxss> $emit goes up in the scope hierarchy and $broadcast goes down
[19:21:43] <Foxandxss> have that in mind
[19:21:47] *** tsalb has joined #angularjs
[19:21:57] *** UniBot has quit IRC
[19:22:01] *** mmitchel_ has joined #angularjs
[19:22:01] <Foxandxss> monokrome: I don't think so
[19:22:13] <Foxandxss> <div a b></div>
[19:22:21] *** rpeterson has quit IRC
[19:22:25] *** rockfordal has quit IRC
[19:22:26] *** jareddlc has quit IRC
[19:22:29] <Foxandxss> if a has a new scope, b's scope is the parent
[19:22:30] <monokrome> Foxandxss: a and b both create scope, right?
[19:22:33] <Foxandxss> no
[19:22:35] *** chrisbirk has joined #angularjs
[19:22:37] <jscheel> Foxandxss: so, if a broadasts, b can listen for it?
[19:22:38] *** juampy has quit IRC
[19:22:48] *** rockfordal has joined #angularjs
[19:22:49] * monokrome is confused
[19:22:51] <sal1191> if I define a controller which makes an $http request but i never actually assign the ng-controller="myController" directive, does it ever make the http request?
[19:22:52] <Foxandxss> if a has a new scope, emit will end on b
[19:23:04] <jscheel> monokrome: Foxandxss: ah, I see what it is
[19:23:05] *** FunnyLookinHat has joined #angularjs
[19:23:17] <Foxandxss> monokrome: by default a directive doesn't create a new scope
[19:23:17] <jscheel> yes, b will be a child of a
[19:23:17] <monokrome> sal1191: no
[19:23:20] *** DuelShark has joined #angularjs
[19:23:23] <sal1191> is the code evaluated when it encounters the directive?
[19:23:24] <Foxandxss> so by default both `a` and `b` has the same scope
[19:23:25] <sal1191> only
[19:23:29] <Foxandxss> AKA controllers' scope
[19:23:34] <monokrome> b doesn't have it's own scope?
[19:23:46] <monokrome> even if both have 'scope: yes' ?
[19:23:46] <Alax> If an MP4 Is returning 'undefined' in the console log i take it im fucking something up?
[19:23:49] <Foxandxss> by default no
[19:23:52] <Foxandxss> monokrome: that will blow up
[19:23:58] <monokrome> oh
[19:24:01] <wafflejock_> monokrome: you will get an error if two directives try to create isolate scope on the same element
[19:24:08] <monokrome> yes isn't isolate
[19:24:08] *** Willow has quit IRC
[19:24:10] <Foxandxss> an element can only have one new scope
[19:24:16] <Foxandxss> so if A creates one, fine
[19:24:17] <storkme> if I have an array of Foo in an ng-repeat and each foo has an array of bar that I am displaying with a filter (ng-repeat="bar in foo.bars | filter:something"), is there any way to hide the 'foo' if there are no entries in foo.bars after filtering? could I use ng-init for that?
[19:24:21] <Foxandxss> but if B also tries to do that, exception
[19:24:22] *** davi has joined #angularjs
[19:24:25] *** jbourassa has quit IRC
[19:24:37] <jscheel> right, you can’t have two isolated scopes on the same thing
[19:24:49] <Foxandxss> two isolated OR two new scopes
[19:24:50] <monokrome> wafflejock_, jscheel: If you do `scope: yes`, you are created a non-isolate scope
[19:25:00] <Foxandxss> monokrome: neither won't work
[19:25:13] <Foxandxss> both scope: true and scope: {} are creating new scopes
[19:25:21] <Foxandxss> the fact that one is isolated doesn't matter
[19:25:24] <monokrome> Foxandxss: I understand. Makes sense, because $element.scope() wont resolve to multiple.
[19:25:29] <monokrome> Thanks :)
[19:25:34] *** daryllxd has quit IRC
[19:25:47] <Foxandxss> so using events, you can hit what you need
[19:25:58] <Foxandxss> but if both directives are related, I would just require one
[19:26:00] <monokrome> Foxandxss: Yeah, I was just trying to make note that it didn't matter that they were isolate by noting that `scope: yes` isn't isolate
[19:26:02] *** enapupe has joined #angularjs
[19:26:03] <Foxandxss> and use a controller
[19:26:31] <jscheel> ok, so I think I have it now. Thanks Foxandxss and monokrome!
[19:26:43] <Foxandxss> good
[19:26:44] <monokrome> So, B doesn't inherit A's scope - B's scope **is** A''s scope, right?
[19:26:47] <monokrome> assuming A creates scope
[19:26:55] <Foxandxss> no
[19:26:59] *** Snugug has quit IRC
[19:27:01] <monokrome> hmm
[19:27:03] <Foxandxss> B's scope is controller's scope
[19:27:12] *** Jae has quit IRC
[19:27:14] <monokrome> Oh, okay. That's what I originally had thought then.
[19:27:20] <Foxandxss> one directive scope doesn't leak to other directives
[19:27:26] *** intellix has joined #angularjs
[19:27:27] <Foxandxss> that changed a couple of version ago
[19:27:27] *** seydoggy_ has quit IRC
[19:27:35] <monokrome> That's good. That would be very confusing :)
[19:27:39] <Foxandxss> like 1.2.10 or something like that
[19:27:43] *** rburns has quit IRC
[19:27:48] *** nemothekid has joined #angularjs
[19:27:58] *** jobney has joined #angularjs
[19:28:13] *** cmoneylulz has quit IRC
[19:28:15] *** partikus has joined #angularjs
[19:28:27] <jobney> Foxandxss, updated the blog entry.
[19:28:29] <jobney> thanks again
[19:28:29] *** cisox_away is now known as cisox
[19:28:33] *** Snugug has joined #angularjs
[19:28:34] <Foxandxss> cool :)
[19:28:50] *** melmoussaoui has quit IRC
[19:28:52] <monokrome> Thanks, Foxandxss
[19:29:07] *** jareddlc has joined #angularjs
[19:29:40] <wafflejock_> monokrome: according to docs it will only create one new scope for the element if multiple directives have a truty value but not an isolate scope object
[19:29:40] *** vmarovic has quit IRC
[19:29:44] *** luuse has joined #angularjs
[19:30:00] *** vmarovic has joined #angularjs
[19:30:06] *** disorder20 has joined #angularjs
[19:30:11] *** Ronyrun has joined #angularjs
[19:30:30] *** heidi has joined #angularjs
[19:30:47] <wafflejock_> http://plnkr.co/edit/LrCeP0IPwQ78P4aTDmfm?p=preview
[19:31:01] <wafflejock_> c d causes a problem a b is fine
[19:31:27] *** sloria has quit IRC
[19:31:42] *** Aliks has joined #angularjs
[19:31:54] *** vmarovic has quit IRC
[19:31:56] *** sloria- has joined #angularjs
[19:32:08] *** denny009 has quit IRC
[19:32:10] <Foxandxss> that is interesting
[19:32:10] *** sk87 has joined #angularjs
[19:32:12] *** rystraum has joined #angularjs
[19:32:13] <Foxandxss> shoulnd't happen
[19:32:18] *** dve has quit IRC
[19:32:27] <Foxandxss> maybe changed again=?
[19:32:36] *** sloria- is now known as sloria
[19:32:43] <wafflejock_> a b have a scope with the same id so that part is right
[19:32:52] *** sdouglas has joined #angularjs
[19:32:53] *** dve has joined #angularjs
[19:32:55] <wafflejock_> er at least from what I read in the docs
[19:33:17] *** IJNX has joined #angularjs
[19:33:27] *** fedenunez1 has quit IRC
[19:33:53] *** sk87 has quit IRC
[19:34:00] <wafflejock_> here's an updated one loggin out the ids of the scopes in various places http://plnkr.co/edit/LrCeP0IPwQ78P4aTDmfm?p=preview
[19:34:13] *** foofoobar has joined #angularjs
[19:34:35] <wafflejock_> ng-inspector and Batrang are always helpful for me when trying to understand the scope hierarchy created in various scenarios
[19:34:53] *** flowerpot has joined #angularjs
[19:34:55] *** fels_zh has quit IRC
[19:35:03] *** Ir1sh has quit IRC
[19:35:04] *** seydoggy has joined #angularjs
[19:35:09] <wafflejock_> well Batrang alway was, now that rev087 made ng-inspector I've also been using that
[19:35:11] *** storresi has quit IRC
[19:35:30] *** fels_zh has joined #angularjs
[19:35:47] <tonymke> Hey guys, having some trouble referencing some variables in a service in $http callbacks. any suggestions? https://gist.github.com/tonymke/e5a746f13db77ca7c489
[19:35:58] *** Ir1sh has joined #angularjs
[19:36:25] *** Xethron has joined #angularjs
[19:36:25] <tonymke> Hoping to have a service that retrieves and maintains data independant of individual partial controllers, so each partial doesn't need to load data themselves.
[19:36:26] *** CodeFriar has quit IRC
[19:36:49] *** KendrickVT has quit IRC
[19:37:03] <nodeman> tonymke: var that = this.
[19:37:04] <wafflejock_> tonymke: my suggestion would be to not use "this" even when I define a service I basically follow closer to the factory syntax, create a named object (usually I call it var service) then return that object after adding any functions and updating any data on it I want
[19:37:10] <nodeman> replace this with that in the async call
[19:37:17] *** balboah has quit IRC
[19:37:20] *** dve has quit IRC
[19:37:34] <wafflejock_> nodeman's solution should work fine too, the reference to this depends on how the function is called
[19:37:36] *** Nizumzen has quit IRC
[19:38:06] *** UniBot has joined #angularjs
[19:38:23] *** danizord has quit IRC
[19:38:38] *** sdouglas has quit IRC
[19:38:38] *** Milanito has quit IRC
[19:38:46] *** mewm has joined #angularjs
[19:38:58] <flowerpot> hi, I would like to mock http responses for ALL my tests using $httpBackend however, I don't see how I can do that on a higher level than a beforeEach for every single describe… any suggestion?
[19:39:02] <nodeman> wafflejock_: This trips a lot of beginners. One may end up spending hours on it. ;)
[19:39:22] *** blakef has joined #angularjs
[19:39:26] *** Milanito has joined #angularjs
[19:39:27] <wafflejock_> nodeman: no doubt, well in other languages this is always the object instance you're working with so it's very confusing
[19:40:00] <nodeman> Correct. Better to use something other than 'this'
[19:40:09] <wafflejock_> having to think about the execution context or if a function was called with apply and a different argument supplied to use as this things get confusing
[19:40:12] *** fels_zh has quit IRC
[19:40:14] <monokrome> wafflejock_: Now I'm just confused!
[19:40:21] *** danizord has joined #angularjs
[19:40:32] *** amedia has quit IRC
[19:40:53] *** fels_zh has joined #angularjs
[19:40:59] <nodeman> Yep. apply, call... It is better to stick to the basic ones unless you really know that you need it.
[19:41:02] <wafflejock_> monokrome: yeah regarding scopes I think we all are a little, I can't give you a clear answer on that I just know it blows up with two isolated scopes which makes sense to me, when you say true it just creates a new scope for the first directive that says true and the other one gets the same scope
[19:41:21] *** fedenunez has joined #angularjs
[19:41:28] <wafflejock_> if you say nothing I think they are both just using the controller scope
[19:41:43] <wafflejock_> I think that's how it breaks down but not 100% on all that, from the plunkr it all seems to ring true though
[19:41:55] <Cixis> so riddle me this. i have a service i'm injecting into a directive. all works perfectly in my local environment. in the remote environment, the constructed service is missing a method. the prototype has that method
[19:42:00] <Cixis> UrlService
[19:42:00] <Cixis> Constructor {Url: function}
[19:42:00] <Cixis> ExtranetApp.UrlService.prototype
[19:42:01] <Cixis> UrlService {Url: function, UrlWithData: function}
[19:42:11] <Cixis> what the hell could possibly be causing that
[19:42:28] *** Yahkob has quit IRC
[19:43:07] *** IJNX has quit IRC
[19:43:25] *** kirfu|work has quit IRC
[19:43:28] *** ustunozgur has joined #angularjs
[19:43:28] *** milka has joined #angularjs
[19:43:35] *** Ronyrun has quit IRC
[19:43:48] *** roymiloh has quit IRC
[19:43:56] *** Reskp has joined #angularjs
[19:43:56] *** cmoneylulz has joined #angularjs
[19:44:20] *** ustunozg_ has joined #angularjs
[19:44:26] <wafflejock_> Cixis: no idea you verify the source has been updated and matches from the remote side
[19:44:28] *** nanoyak has joined #angularjs
[19:44:52] *** ioudas has joined #angularjs
[19:45:02] *** armdale has quit IRC
[19:45:13] *** pluma has joined #angularjs
[19:45:20] *** jscheel has quit IRC
[19:45:29] *** milka has quit IRC
[19:45:38] <Cixis> i should have. i've only verified parts of it
[19:45:51] *** Willow has joined #angularjs
[19:46:26] <enapupe> Is it possible to have a directive which shows a user info which comes from a service which grabs the user info from $http?
[19:46:28] *** jscheel has joined #angularjs
[19:46:28] *** Raging_Hog has joined #angularjs
[19:46:29] *** pdillinger has joined #angularjs
[19:46:41] *** jscheel has quit IRC
[19:46:50] <Cixis> yea. same md5
[19:46:53] <enapupe> I mean.. yes, I've done this, but now I don't know how to make it auto-update when user info changes
[19:47:06] <Cixis> so fucking strange
[19:47:07] <wafflejock_> Cixis: you utf8_encode it :P
[19:47:13] <wafflejock_> yeah dunno
[19:47:16] <Cixis> why would i do that?
[19:47:18] *** Reskp has quit IRC
[19:47:29] <wafflejock_> just joking about the weird problem you helped me solve with json_encode
[19:47:32] *** Reskp has joined #angularjs
[19:47:33] <Cixis> oh lolol
[19:47:48] *** dve has joined #angularjs
[19:48:06] *** ustunozgur has quit IRC
[19:48:07] *** darrin has quit IRC
[19:48:18] *** shoeless_ has quit IRC
[19:48:28] *** ustunozg_ has quit IRC
[19:48:29] <wafflejock_> enapupe: if you watch the thing that gets passed into the scope you can see when it changes, something like scope.$watch("userInfo", function(newVal, oldVal){})
[19:48:29] *** darrin has joined #angularjs
[19:48:57] <enapupe> wafflejock_: hmm..
[19:49:00] *** daryllxd has joined #angularjs
[19:49:02] *** Keika has quit IRC
[19:49:02] <enapupe> on the controller, right?
[19:49:05] *** Natsu- has quit IRC
[19:49:09] <enapupe> directive controller..
[19:50:04] *** FunnyLookinHat has quit IRC
[19:50:13] *** walden|afk is now known as walden
[19:50:14] <wafflejock_> enapupe: in the link function typically
[19:50:22] <enapupe> well..
[19:50:24] <wafflejock_> enapupe: directive controller is used to expose an API for other directives typically
[19:50:33] *** daryllxd_ has joined #angularjs
[19:50:34] <enapupe> okay
[19:50:41] *** pdillinger has quit IRC
[19:51:04] *** mdix has joined #angularjs
[19:51:10] *** balboah has joined #angularjs
[19:51:11] *** jhulten has joined #angularjs
[19:51:39] *** Milanito has quit IRC
[19:51:47] *** cthrax has quit IRC
[19:52:33] *** mguillech has joined #angularjs
[19:52:48] *** mguillech has joined #angularjs
[19:52:59] *** Reskp has quit IRC
[19:53:12] *** illume has quit IRC
[19:53:27] *** daryllxd has quit IRC
[19:53:30] <marcospgp> Can someone give me practical use case examples of factory vs service?
[19:53:33] *** shackleford has joined #angularjs
[19:53:41] *** gnar_matix has quit IRC
[19:53:51] *** dhcar is now known as dhcar_AFK
[19:54:05] <jobney> marcospgp, i really don't think one is better. If you are comfortable with the "this" keyword go service
[19:54:13] *** TorpedoSkyline has quit IRC
[19:54:17] *** gnar_matix has joined #angularjs
[19:54:19] *** fouadm has joined #angularjs
[19:54:20] *** arizzo has quit IRC
[19:54:21] <jobney> otherwise if you don't want to think about context, go factory
[19:54:43] <marcospgp> hum so both can be used for most cases?
[19:54:43] *** MuffinMan` has joined #angularjs
[19:54:46] *** jbourassa has joined #angularjs
[19:54:47] <jobney> yep
[19:54:52] <marcospgp> ok thanks
[19:54:54] *** arizzo has joined #angularjs
[19:55:03] *** nicoonee has quit IRC
[19:55:03] *** mikehaas763 has joined #angularjs
[19:55:12] <jobney> one gets instantiated via the New keyword (serivce)
[19:55:14] *** jbourassa has quit IRC
[19:55:16] *** daryllxd_ has quit IRC
[19:55:31] *** gnar_mat_ has joined #angularjs
[19:55:32] *** jbourassa has joined #angularjs
[19:56:05] *** arizzo has quit IRC
[19:56:10] <marcospgp> that I know, but I was wondering when you would prefer using one over the other
[19:56:21] *** arizzo has joined #angularjs
[19:56:21] *** senayar_ has quit IRC
[19:56:23] <marcospgp> since to me they seem to have pretty much the same functionality
[19:56:27] <jobney> yea
[19:56:34] <jobney> personal preference imho
[19:56:55] *** senayar has joined #angularjs
[19:57:01] <enapupe> wafflejock_: how do you watch a service function which returns a promisse?
[19:57:07] *** nicoonee has joined #angularjs
[19:57:14] <jobney> if you were going to produce a lot of one and wanted to have methods on prototype then service
[19:57:25] <enapupe> I think I must refactor that part of the service in a way which the get() function returns an object, not the promisse
[19:57:38] <jobney> but the singleton concept in the service kind of nullifies that
[19:57:45] *** blakef has quit IRC
[19:57:46] <monokrome> marcospgp: I think that the pedantic answer to your question is that you should use a factory in most cases, but services if you want to use 'this' and/or prototypal inheritance
[19:57:46] <ngoyal> enapupe: why not just .then on the promise?
[19:57:53] <monokrome> In practice, people just use service most of the time
[19:57:59] *** KushS has joined #angularjs
[19:58:01] <enapupe> monokrome: I tried scope.$watch(UserService.get().then(), function(oldval, newval){
[19:58:15] <monokrome> Some people use factory to return functions that act as factories as well, it's a matter of preference at that point
[19:58:16] *** tonymke has left #angularjs
[19:58:26] *** InezK_away is now known as InezK
[19:58:38] <marcospgp> okay thanks a lot!
[19:58:40] <enapupe> ops.. it is ngoyal: I tried scope.$watch(UserService.get().then(), function(oldval, newval){
[19:58:47] *** gnar_matix has quit IRC
[19:59:06] *** hecatonicosachor has joined #angularjs
[19:59:10] <shackleford> Can someone help me understand transformResponse a bit better. My understanding that you use can use the service to include data into a JSON payload that is being returned by a service.
[19:59:14] <shackleford> is this correct?
[19:59:19] *** Bade has quit IRC
[19:59:19] *** jobney has quit IRC
[19:59:22] *** Kamshak has joined #angularjs
[19:59:23] <enapupe> ngoyal: no good ..
[19:59:24] *** enigmarm has joined #angularjs
[19:59:40] <ngoyal> enapupe: why cant you just do UserService.get().then(function(user) { });
[19:59:42] <wafflejock_> enapupe: I don't understand
[19:59:43] <wafflejock_> right
[19:59:47] <wafflejock_> ngoyal++
[19:59:47] <UniBot> ngoyal Karma: 1
[19:59:56] <ngoyal> are you expecting the UserService.get() to return a different promise based on something else?
[19:59:58] <wafflejock_> why hello UniBot
[20:00:15] <enapupe> Nope.. I just want to have the get() updated everywhere
[20:00:16] *** UniBot has quit IRC
[20:00:26] <enapupe> any directive which listens to UserService
[20:00:33] *** UniBot has joined #angularjs
[20:00:37] *** feelfine has joined #angularjs
[20:00:41] <ngoyal> when you say listen, perhaps you should $broadcast from $rootScope
[20:00:43] <enapupe> should have, lets say, the user name updated when he updates his username
[20:00:44] <wafflejock_> enapupe: http://stackoverflow.com/questions/17667455/angular-http-vs-service-vs-ngresource <-- this may help you
[20:00:56] *** UniBot has quit IRC
[20:01:12] <wafflejock_> you can re-use the same data object throughout your code, if you need to you can assign that object to a property of a scope then watch it from that perspective
[20:01:18] <enapupe> When I say listen i should say watch.. but Idk if it is really watch
[20:01:34] *** senayar has quit IRC
[20:01:39] <enapupe> I'm going to paste my code so you guys understand
[20:01:40] <enapupe> 1sec
[20:01:51] <wafflejock_> enapupe: see the code in that answer, don't concentrate on the question too much
[20:02:03] *** sacho_ has quit IRC
[20:02:15] <enapupe> wafflejock_: that's right..
[20:02:37] <enapupe> wafflejock_: I want to have a simple directive which shows the username.. the username comes from XHR
[20:02:52] <ioudas> Hi all, I have a setup with ionic framework. Im new to angular/ionic. Initally, the .controller for a signin worked, until I changed it to try to post using a ng-click. now regardless of the post coming back a state change does not occour. What am I missing
[20:02:56] *** rpeterson has joined #angularjs
[20:02:56] <enapupe> and I want it to auto-update if the username changes his name.
[20:03:06] <enapupe> wafflejock_: how would you do that?
[20:03:26] <enapupe> s/username/user
[20:03:32] <ngoyal> wafflejock_: how often does $scope.$watch run? every digest?
[20:03:36] <wafflejock_> enapupe: just like I have in that code in the answer linked
[20:03:39] <wafflejock_> ngoyal: yes
[20:04:03] *** Xethron has quit IRC
[20:04:05] <wafflejock_> ngoyal: many times I don't need to watch from the controller explicitly though I just assign it to a scope property and bind it in the view (implictily watching it)
[20:04:07] *** raghunayyar has joined #angularjs
[20:04:17] <ngoyal> wafflejock_: same
[20:04:29] <wafflejock_> enapupe: I just create one object instance in the service and share it throughout the code
[20:04:44] <wafflejock_> when I update it I only change properties or if it's an array push and pop elements but don't replace the root object
[20:05:02] <wafflejock_> if you need to replace all the properties or contents of an array you can use angular.copy to effectively assign a new object
[20:05:14] <enapupe> right.. and how do you feed the user object?
[20:05:15] <wafflejock_> but all of the references from various controllers are actually pointing to just 1 object
[20:05:18] *** SkywardCKO has quit IRC
[20:05:31] <enapupe> that's what I tried but the promise thing got on the way
[20:05:46] <enapupe> instead of dealing with a service that point to an object, I started dealing with a service that returns a promise
[20:05:58] <wafflejock_> enapupe: if you can show what you've got I can help point it in the right direction
[20:06:05] <enapupe> sure, 1sec
[20:06:17] <wafflejock_> returning a promise from the service methods is still usually a good idea too IMO but not always needed for everything
[20:06:58] *** partikus has joined #angularjs
[20:07:01] *** Ir1sh has quit IRC
[20:07:10] *** adharris has quit IRC
[20:07:29] <wafflejock_> Singleton "there can be only one" :P
[20:07:38] <enapupe> I think i'd be better dealing with that user object instead of promise
[20:08:04] <enapupe> http://plnkr.co/edit/EacluUKZxIpWaytkr316?p=catalogue
[20:08:05] <wafflejock_> enapupe: typically I just return the promise too to expose the async nature of the function it doesn't hurt to have it there even if you don't necessarily use it
[20:08:07] *** shackleford has quit IRC
[20:08:16] <enapupe> so, there is the directive and the object.
[20:08:21] <enapupe> and the service*
[20:08:44] <enapupe> wafflejock_: right.. I couldn't do it without a promise
[20:09:02] <enapupe> because the directive initializes before the userservice has its data
[20:09:19] *** gnar_mat_ has quit IRC
[20:09:36] *** roymiloh has joined #angularjs
[20:09:45] *** gnar_matix has joined #angularjs
[20:09:53] *** in_deep_thought has joined #angularjs
[20:09:57] *** Bade has joined #angularjs
[20:10:08] *** KushS has quit IRC
[20:11:02] *** enigmarm has quit IRC
[20:11:49] *** mattwynne has joined #angularjs
[20:12:16] *** shackleford has joined #angularjs
[20:12:41] <bealtine> best CSS theme ever : https://kristopolous.github.io/BOOTSTRA.386/
[20:12:54] *** KushS has joined #angularjs
[20:13:16] *** gnar_mat_ has joined #angularjs
[20:13:27] *** snapwich has joined #angularjs
[20:13:28] <enapupe> bealtine: wow!
[20:13:28] <wafflejock_> enapupe: k you've got a few options
[20:13:34] <enapupe> hitme
[20:13:38] *** jkremser has quit IRC
[20:13:47] *** joshbrw has joined #angularjs
[20:13:48] *** mrogne is now known as mrogne_busy
[20:13:50] <oniijin> ionno http://code.divshot.com/geo-bootstrap/
[20:14:02] <wafflejock_> enapupe: okay so you can move the user into the object that is returned from the service
[20:14:04] <in_deep_thought> what order should I put my script tags in if I want to use nf-infinite-scroll. I know I need angular, jquery, my app.js (with my controllers, services, etc0, and the infinite scroll js itself. Which order should these put in?
[20:14:16] <enapupe> oniijin: you'd win if I haven't seen geobs before :P
[20:14:19] *** gnar_matix has quit IRC
[20:14:25] <wafflejock_> enapupe: then in the directive you can point a property from the directive scope at the user object returned in the serivce
[20:14:30] <oniijin> both sites are making my retinas bleed
[20:14:33] <Cixis> wafflejock_: derp. i was looking at the wrong file. remote and local ARE different. my remote build is building it incorrectly
[20:14:36] *** senayar has joined #angularjs
[20:14:41] <wafflejock_> Cixis: ah glad you found it
[20:14:53] <enapupe> wafflejock_: so the directive would be dealing with plain objects
[20:15:23] <wafflejock_> enapupe: then you can watch that scope property within the directive... I think that part is going to come into play with any solution
[20:15:29] *** joshbrw has quit IRC
[20:15:36] *** TheAceOfHearts has joined #angularjs
[20:15:41] *** shoeless_ has joined #angularjs
[20:15:54] <wafflejock_> enapupe: alternatively you can move the service bit out to a controller that assigns a property of it's scope which then gets passed into the directive using two way binding scope:{data:"="}
[20:15:55] <Cixis> well i haven't found it
[20:15:59] <Cixis> just noticed they are different :|
[20:16:05] <Cixis> but not ddifferent in the way i hoped
[20:16:14] <wafflejock_> Cixis: ah crappy and the hunt continutes
[20:16:18] <wafflejock_> continues*
[20:16:22] <enapupe> wafflejock_: I prefer not to mix things
[20:16:37] <Cixis> in fact the differences aren't even code
[20:16:40] * Cixis shoots himself
[20:16:40] <enapupe> wafflejock_: IMHO it is wrong to use a controller to do that
[20:17:13] <wafflejock_> enapupe: well you are either coupling the directive and service or having the controller provide the data by using a service.... but your call doesn't matter to me and I do it in either way depending on the scenario
[20:17:33] *** daryllxd has joined #angularjs
[20:17:43] <enapupe> Ok.. I want to not use a controller.. because it is less html you have to change
[20:17:49] *** darkelda has joined #angularjs
[20:17:50] *** darkelda has joined #angularjs
[20:17:53] <TorchDragon> Two part question, part 1: You can inject a Controller into another Controller, right?
[20:18:00] <wafflejock_> enapupe: if the directive will always require this service to get that kind of data then I just inject the service/factory direclty and use it
[20:18:07] <rystraum> TorchDragon: I think you could, but you shouldn't.
[20:18:10] <enapupe> the way I see, I can only move <user property="email"></user> To anywhere in my app
[20:18:16] <wafflejock_> if the directive can be used with other services as data sources then I prefer going through the controller route
[20:18:31] <wafflejock_> but yeah just depends on the scenario
[20:18:41] *** shoeless_ has quit IRC
[20:18:55] <TorchDragon> rystraum: So if I want to perform some logic that depends on other objects in the angular app, then what do I need to use?
[20:19:09] *** UniBot has joined #angularjs
[20:19:09] *** shoeless_ has joined #angularjs
[20:19:20] <TorchDragon> rystraum: It doesn't need to modify the dom at all, it needs to access some services, do some work, and update a service property.
[20:19:23] <enapupe> wafflejock_: so.. The code where it breaks is:link: function(scope){ var user = UserService.get() scope.property_value = user[scope.property];
[20:19:23] <enapupe> }
[20:19:42] *** doddstack has quit IRC
[20:19:49] <enapupe> becase at this point, get() returns null.. because $http wasn't ready yet
[20:20:04] *** partikus has quit IRC
[20:20:17] <wafflejock_> enapupe: well in your service just declare return {user:{}, // other stuff here still}
[20:20:26] <enapupe> right.
[20:20:31] <wafflejock_> enapupe: then assign scope.serviceUser = UserService.user;
[20:20:47] <rystraum> TorchDragon: then you're probably looking at another factory/service.
[20:20:48] *** ankur has joined #angularjs
[20:20:50] <wafflejock_> so just referencing the object now wrapped in the service object from the scope
[20:20:59] <rystraum> Factory/Services can require other Factory/Service.
[20:21:16] <wafflejock_> rystraum: yeah so long as you don't run into circular dependencies
[20:21:19] <TorchDragon> rystraum: Should Services be executing logic code like that?
[20:21:20] *** TheAceOfHearts has quit IRC
[20:21:38] <TorchDragon> I thought they were primarily just data storage.
[20:22:02] <TorchDragon> Or is it that Controllers should specifically be executing logic that will in some way modify a DOM.
[20:22:03] <wafflejock_> TorchDragon: services/factories are both singletons and can be used to encapsulate various functionality
[20:22:03] *** zwacky has quit IRC
[20:22:05] <Ymesio> I have a directive with scope: {value: ‘’=}
[20:22:13] *** homework1 has quit IRC
[20:22:16] <Ymesio> {value: ‘=‘}
[20:22:21] <wafflejock_> TorchDragon: you should only manipulate the DOM in directives is the rule
[20:22:40] <TorchDragon> wafflejock_: Er, sorry, directive... which as a controller/link.
[20:22:44] <wafflejock_> TorchDragon: controllers should be updating the model used to drive the view and provide the functions for the view to cause changes to the model or calls to services
[20:22:48] <rystraum> I guess it depends on the logic. I come from Rails where we cram as much stuff in the models/service classes to maximize code reusability.
[20:22:48] <Ymesio> But it whatever value I feed to directive as a literal
[20:22:54] *** MuffinMan` has quit IRC
[20:22:56] <Ymesio> treats
[20:23:07] <wafflejock_> rystraum: that's still true here I think
[20:23:13] <Ymesio> If I rename value to val it works fine
[20:23:13] <ankur> hey! can anyone help me with ngSelect?
[20:23:16] <rystraum> And I see Factories/Service as the models.
[20:23:25] <wafflejock_> rystraum: controllers are generally slim factories/services do the work store the "real" model
[20:23:36] *** jh3 has joined #angularjs
[20:23:43] <Ymesio> Is ‘value’ property name special in any manner in angular?
[20:23:43] *** Zamerick has joined #angularjs
[20:23:58] <rystraum> The way I see it is that a controller, as much as possible, should stand by itself.
[20:23:58] *** DanBangWTFRajib has joined #angularjs
[20:24:10] <rystraum> It makes it easier to handle hotlinking.
[20:24:23] <rystraum> or direct linking or whatever it's called.
[20:24:27] <wafflejock_> rystraum: yeah I call it deep linking but think we meant he same thing
[20:24:34] <wafflejock_> mean the*
[20:24:54] <rystraum> Basically, if a user shares the exact same URL to someone else, they should see exactly the same thing if the receiver has the proper permissions.
[20:25:10] <wafflejock_> should be able to execute on it's own without reference to previous state and for me the factories and services act as middle layer to store things for the front end to re-use throughout the app
[20:25:14] <wafflejock_> yup
[20:25:18] *** shoeless_ has quit IRC
[20:25:32] <wafflejock_> rystraum++
[20:25:33] <UniBot> rystraum Karma: 1
[20:25:41] *** blueadept has joined #angularjs
[20:25:51] <wafflejock_> tellin it like it is :P
[20:26:06] *** mven has joined #angularjs
[20:26:12] <texinwien> is there a way to force an input ng-model value to be a certain type?
[20:26:18] *** jsanchesleao1 has joined #angularjs
[20:26:20] <texinwien> for instance, a range input with steps of 0.5
[20:26:24] * Cixis pulls his hair out
[20:26:49] <wafflejock_> Cixis: I was in the same boat a few days ago when you helped me out wish I had something to offer but I have really no idea what's going wrong there
[20:26:49] <texinwien> whole numbers are seen as integers, decimals are treated as strings.
[20:26:51] <rystraum> Oh cool, karma.
[20:27:17] <wafflejock_> texinwien: you can make a filter that modifies the input
[20:27:36] <Cixis> funny that it's a similar issue. works locally, not remotely
[20:27:36] <rystraum> What's the problem Cixis?
[20:27:52] <rystraum> Ohh. Deployment issues.
[20:27:58] *** blueadept` has quit IRC
[20:28:00] *** jh3 has quit IRC
[20:28:03] *** ankur has quit IRC
[20:28:03] <Cixis> i have a service with two methods. one of those methods is not available in the constructed service remotely
[20:28:25] <icfantv> i think we have a race condition whereby our angular.module(…).run(…) is being called AFTER a controller executes and thus our scoped variables aren't set. is there any way to make sure the .run(…) runs first?
[20:28:27] <ioudas> Hi all, I have a setup with ionic framework. Im new to angular/ionic. Initally, the .controller for a signin worked, until I changed it to try to post using a ng-click. now regardless of the post coming back a state change does not occour. What am I missing
[20:28:56] <enapupe> wafflejock_: that is what I got now: http://plnkr.co/edit/EacluUKZxIpWaytkr316?p=catalogue
[20:29:09] <enapupe> wafflejock_: no errors, but user is an empty {}
[20:29:13] *** GeertV has joined #angularjs
[20:29:27] <enapupe> which never seems to reflect the $http success
[20:29:29] *** squeakytoy has joined #angularjs
[20:29:32] *** jsanchesleao1 has quit IRC
[20:30:29] *** jsanchesleao has joined #angularjs
[20:30:45] *** HoloPed is now known as DGNP
[20:31:15] *** bullicon has joined #angularjs
[20:32:17] <Cixis> rystraum: basically the injected service looks like this locally
[20:32:19] <Cixis> Constructor {WebRequest: Constructor, Url: function, UrlWithData: function}
[20:32:21] <Cixis> and like this remotely
[20:32:29] *** ryanseddon has quit IRC
[20:32:34] *** SahanH has quit IRC
[20:32:35] <Cixis> Constructor{Url: function}
[20:32:37] *** in_deep_thought has quit IRC
[20:32:40] *** mdix has quit IRC
[20:33:08] <rystraum> By remotely, you mean in production? And by locally, you mean in dev?
[20:33:17] *** jamto11 has quit IRC
[20:33:25] *** sloria has left #angularjs
[20:33:32] *** SahanH has joined #angularjs
[20:33:40] *** SahanH has quit IRC
[20:33:47] <Cixis> yes
[20:33:52] <Cixis> sort of.
[20:33:54] <rystraum> Maybe it's a caching issue.
[20:34:01] *** ceephax has joined #angularjs
[20:34:04] <Cixis> there are three remote environments. locally meaning localhost
[20:34:09] <Cixis> i thought so, but it's not
[20:34:13] *** scriptThis has joined #angularjs
[20:34:14] <marcospgp> mfw I'm doing a tutorial and half way through it turns out to be a blatant advertisement to firebase
[20:34:19] <marcospgp> >:c fffffuuuuuu
[20:34:50] <marcospgp> thinkster.io im looking at you
[20:35:00] *** DanBangWTFRajib has quit IRC
[20:35:21] <Cixis> i'm thinking the issue is black magic
[20:35:32] *** jk-5 is now known as jk-5|gone
[20:35:46] <Cixis> i looked at my build definition too, but it's building the exact same code
[20:35:53] *** jk-5|gone is now known as jk-5
[20:35:53] *** Nelio has joined #angularjs
[20:36:36] *** fer_ has quit IRC
[20:36:41] *** KendrickVT has joined #angularjs
[20:36:43] *** davidcramer has joined #angularjs
[20:36:44] *** styles has quit IRC
[20:36:55] <davidcramer> what are peoples recommendations for dealing with the digest cycle while data is populating
[20:37:03] <davidcramer> i cant reasonable use a resolver here
[20:37:06] *** CodeFriar has joined #angularjs
[20:37:10] <davidcramer> and i dont want anything to happen til the promises are ready
[20:37:12] *** s3shs has quit IRC
[20:37:13] <wafflejock_> enapupe: one minute fiddling with yourplunkr
[20:37:29] <enapupe> wafflejock_: ty!
[20:37:42] <davidcramer> i really wish this pattern of "resolvers as constructors" didnt exist
[20:37:45] <davidcramer> its infuriating
[20:37:47] *** DGNP is now known as Supercalifragili
[20:38:17] *** Supercalifragili is now known as HoloPed
[20:38:27] *** marthinal has joined #angularjs
[20:38:28] *** thomasreggi has quit IRC
[20:38:56] <Cixis> davidcramer: i fire an event that i've bound a handler too in run()
[20:39:01] <Cixis> to*
[20:39:43] <rystraum> Cixis: Black magic is actually the cause of all bugs.
[20:39:56] *** UniBot has quit IRC
[20:39:58] *** senayar has quit IRC
[20:39:58] <rystraum> Or rather, programming is the cause of all bugs.
[20:40:08] *** vf1 has quit IRC
[20:40:29] *** UniBot has joined #angularjs
[20:40:33] *** senayar has joined #angularjs
[20:40:51] *** vf1 has joined #angularjs
[20:40:59] *** UniBot has quit IRC
[20:41:13] *** watsonkp has joined #angularjs
[20:41:19] *** mattwynne has joined #angularjs
[20:41:32] <enapupe> rystraum: oh yeah
[20:41:50] *** CodeFriar has quit IRC
[20:41:50] *** illume has joined #angularjs
[20:41:51] *** jh3 has joined #angularjs
[20:42:23] <enapupe> rystraum: truer changelog ever: - and lots of new bugs.
[20:42:33] <rystraum> lol
[20:42:54] <enapupe> i've seen that in some serious projects.. always funny
[20:43:33] *** mattwynn_ has joined #angularjs
[20:43:34] *** kennbrodhagen has joined #angularjs
[20:43:53] <rystraum> Our team favorite (and most dreaded) commit message is: "stuffs"
[20:44:06] *** richardbaker has quit IRC
[20:44:24] *** jrdnull is now known as list
[20:44:32] *** list is now known as jrdnull
[20:45:11] <enapupe> rystraum: that with 'lots/added/removed' prepended
[20:45:22] *** senayar has quit IRC
[20:45:26] *** TyrfingMjolnir has quit IRC
[20:45:27] <enapupe> :P
[20:45:32] <wafflejock_> enapupe: this is closer butnot entirely right yet http://plnkr.co/edit/LyjstJsQpE7X68YlyAhQ?p=preview
[20:46:01] *** Somatt_wrk has joined #angularjs
[20:46:04] *** vf1 has quit IRC
[20:46:16] *** vf1 has joined #angularjs
[20:46:39] *** LRFalk01 has left #angularjs
[20:47:00] *** jh3 has quit IRC
[20:47:00] *** mattwynne has quit IRC
[20:47:02] <davidcramer> theres not a pattern for pausing the digest is there?
[20:47:08] <davidcramer> actually that could be problematic
[20:47:15] *** Ir1sh has joined #angularjs
[20:47:22] <enapupe> wafflejock_: that's almost what I got here, but without the ''copy''
[20:47:35] <wafflejock_> enapupe: yea a few changes but copy is one of the key ones
[20:47:46] *** dhcar_AFK is now known as dhcar
[20:47:47] <enapupe> i'm going to try
[20:47:53] *** mattwynn_ has quit IRC
[20:48:02] *** bullicon has quit IRC
[20:48:13] *** seventy3 is now known as seventy3_away
[20:48:17] *** kennbrodhagen has quit IRC
[20:48:29] *** mattwynne has joined #angularjs
[20:49:34] *** luuse has quit IRC
[20:50:21] *** BillCriswell has quit IRC
[20:50:30] *** DanBangWTFRajib has joined #angularjs
[20:50:38] *** chrisbirk has quit IRC
[20:51:10] *** nagappan has quit IRC
[20:51:38] *** rpeterson has quit IRC
[20:51:42] *** nagappan has joined #angularjs
[20:52:01] *** Adamb_ has joined #angularjs
[20:52:25] <Adamb_> Ok I have an agular-ui-bootstrap question
[20:52:56] <enapupe> wafflejock_: all console.log(scope.user) come empty
[20:53:20] <Adamb_> I am trying to implement the typeahead and have even copied the code directly from working examples though for some reason i am still getting and error
[20:53:21] *** nicoonee has quit IRC
[20:53:36] <Adamb_> Error: Syntax Error: Token 'track' is an unexpected token at column 9 of the expression [matches track by $index] starting at [track by $index]
[20:53:43] <Adamb_> any ideas?
[20:53:47] <enapupe> wafflejock_: inside the watch.. it runs updateValue() 4 times but never has data
[20:53:58] *** wasabi has joined #angularjs
[20:54:23] *** wasabi is now known as Guest62258
[20:54:37] *** jdj_dk has joined #angularjs
[20:54:45] *** Flavio has joined #angularjs
[20:54:46] <wafflejock_> enapupe: ah okay I had missed one thing http://plnkr.co/edit/LyjstJsQpE7X68YlyAhQ?p=preview
[20:54:57] *** blakef has joined #angularjs
[20:54:59] <wafflejock_> enapupe: you need true for watching the user objects properties not just the user object itself for changes
[20:55:07] <wafflejock_> since the user object itself doesn't actually ever get removed
[20:55:08] <Flavio> Someone have a link to example for authentication like Gmail?
[20:55:09] *** Flavio is now known as Guest40888
[20:55:15] *** whunt has quit IRC
[20:55:19] <Guest40888> Someone have a link to example for authentication like Gmail?
[20:55:39] <wafflejock_> Guest40888: I liked your other name better
[20:55:39] *** dbouwman_ has quit IRC
[20:55:50] *** FIFOd[a] has quit IRC
[20:55:53] <wafflejock_> Guest40888: you mean doing your own auth or using G+ for auth?
[20:56:03] <Guest40888> my own auth
[20:56:18] <enapupe> wafflejock_: cool! it works :)0
[20:56:22] <Guest40888> because i dont want show the main page whe the client access my site
[20:56:34] <wafflejock_> enapupe: awesome good to know I'm not entirely insanse :P
[20:56:38] *** Zamerick has quit IRC
[20:56:44] <enapupe> where is this true thing?
[20:56:46] <wafflejock_> Guest40888: https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/ <-- this will probably help
[20:56:53] <wafflejock_> enapupe: the third argument for $watch
[20:57:03] *** seydoggy has quit IRC
[20:57:04] *** GeertV_ has joined #angularjs
[20:57:04] <Adamb_> still hoping for an answer
[20:57:08] <wafflejock_> enapupe: something to watch then a callback then optionally true to indicate watch all properties of the object
[20:57:12] *** mchapman has quit IRC
[20:57:12] <Guest40888> wafflejock_: thanks thanks
[20:57:13] <Adamb_> I have browsed all over and nothing
[20:57:36] *** seydoggy has joined #angularjs
[20:57:57] *** chrisbirk has joined #angularjs
[20:58:08] <Adamb_> Here is the Twig: <div class="col-md-2"> {{ form_widget(form.state, { 'attr': { 'class': 'form-control', 'ng-model': 'selected', 'required': 'required', 'typeahead': 'state for state in states | filter:$viewValue'
[20:58:08] *** rho has joined #angularjs
[20:58:10] *** FIFOd[a] has joined #angularjs
[20:58:12] <enapupe> wafflejock_: right!! beautiful
[20:58:20] *** mzehrer_ has quit IRC
[20:58:38] <enapupe> wafflejock_: now.. how does that code looks to you? XGH or just fine?
[20:58:39] <Adamb_> and part of the js
[20:58:40] <Adamb_> var app = angular.module('dqt', ['ui.bootstrap']); app.config(function($interpolateProvider) { $interpolateProvider.startSymbol('[['); $interpolateProvider.endSymbol(']]'); }); app.controller('AuthenticationController', function($scope) { }); app.controller('NewRequestController', function($scope, $http) { $scope.selected = undefined; $scope.states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'Califor
[20:58:46] <oniijin> dood dont post code into chat
[20:58:53] *** jdj_dk has quit IRC
[20:59:04] <enapupe> wafflejock_: I'm asking because I'm trying to find some standards in angularjs, i'm really new to it
[20:59:12] <Adamb_> a response
[20:59:17] *** blakef has quit IRC
[20:59:37] <Guest40888> bye
[20:59:39] *** tester has joined #angularjs
[20:59:40] *** Guest40888 has quit IRC
[20:59:44] <tester> hello
[20:59:51] <wafflejock_> enapupe: yeah this is okay you need to be a bit cautious with watches but usually the trouble is only if you repeat something with an ng-repeat that also sets up a bunch of watchers, cause on every $digest all those are run to check for changes
[21:00:04] *** nodweber has joined #angularjs
[21:00:12] <Adamb_> look i am using symfony2 with twig, Angularjs 1.0.7 , angular-ui-bootstrap and bootrap of course
[21:00:20] <tester> what's the matter with json
[21:00:21] <enapupe> yeah.. I get that this thing can be way too recursive
[21:00:31] <tester> it's not fetching data
[21:00:36] <enapupe> but is this case I think that is the way to go...
[21:00:37] *** hannesvdvreken has joined #angularjs
[21:00:39] *** GeertV has quit IRC
[21:00:51] <tester> app.controller('CompaniesController',['$http',function($http){ var comp=this; comp.companies=[]; $http.get('/companies.json').success(function(data){ comp.companies=data; }); }]);
[21:00:52] *** arek_at_work has quit IRC
[21:00:55] *** jsoverson has quit IRC
[21:01:03] *** vbabiy has quit IRC
[21:01:08] <tester> Can any one help out on this ?
[21:01:14] <wafflejock_> enapupe: yeah fine for this case also check out these resources http://blog.angularjs.org/2014/02/an-angularjs-style-guide-and-best.html https://www.youtube.com/watch?v=ZhfUv0spHCY
[21:01:22] <Adamb_> and loading jquery before the angular so that it uses jquery instead of jqlite
[21:01:32] *** jsoverson has joined #angularjs
[21:01:33] *** zwacky has joined #angularjs
[21:01:34] *** jdj_dk has joined #angularjs
[21:01:37] *** Click66 has joined #angularjs
[21:01:45] *** Xethron has joined #angularjs
[21:01:50] <tester> why it is not fatching data
[21:01:52] <tester> app.controller('CompaniesController',['$http',function($http){ var comp=this; comp.companies=[]; $http.get('/companies.json').success(function(data){ comp.companies=data; }); }]);
[21:01:57] <wafflejock_> Adamb_: and tester best to isolate your stuff and throw it in a plunkr
[21:02:01] *** andkan__ has joined #angularjs
[21:02:02] <wafflejock_> pasting code in here doesn't help
[21:02:03] *** henn1nk has joined #angularjs
[21:02:03] *** teslanick has joined #angularjs
[21:02:03] *** dve has quit IRC
[21:02:06] *** seydoggy has quit IRC
[21:02:11] <enapupe> wafflejock_: thanks man! it would be waaay too harder to learn without that attention you just gave. ty!
[21:02:15] <wafflejock_> see the IRC topic for a link to plunkr
[21:02:15] *** GeertV__ has joined #angularjs
[21:02:19] <tester> hello
[21:02:21] <wafflejock_> enapupe: np sir
[21:02:26] *** teslanick has quit IRC
[21:02:30] <tester> is there any admin ?
[21:02:30] <Adamb_> it works in plunkr
[21:02:40] <wafflejock_> Adamb_: if it works in plunkr angular isn't the problem probably
[21:02:55] *** jsoverson has quit IRC
[21:02:58] *** stirlingw has quit IRC
[21:03:06] <Adamb_> like i said i pulled the original from here on the static http://angular-ui.github.io/bootstrap/#/typeahead
[21:03:07] <wafflejock_> Adamb_: then you know to look for help with your twig and here probably isn't the best place... maybe you'll get an answer but maybe better to look for a specific channel
[21:03:26] *** FunnyLookinHat has joined #angularjs
[21:03:29] *** snapwich has quit IRC
[21:03:35] *** jsoverson has joined #angularjs
[21:03:39] *** teslanick has joined #angularjs
[21:03:48] <oniijin> wafflejock_ that makes too much sense
[21:03:49] <oniijin> stop it
[21:03:55] <Adamb_> no everything is rendering in the brower fine
[21:04:10] *** spencercarnage has quit IRC
[21:04:13] <Adamb_> so it is not twig since that gets compiled on the server side
[21:04:20] *** jsoverson has quit IRC
[21:04:33] <Adamb_> and it it is an angular error and it only seems to be with angular-ui
[21:04:34] *** davi has quit IRC
[21:04:59] *** jsoverson has joined #angularjs
[21:05:00] *** Reskp has joined #angularjs
[21:05:02] <Adamb_> and a couple other directives though most seem to work fine and so does the factories
[21:05:13] *** luuse has joined #angularjs
[21:05:26] *** GeertV_ has quit IRC
[21:05:35] <Adamb_> data binding works fine with the [[ ]] instead of the {{}} as a work around for twig
[21:05:45] *** illume has quit IRC
[21:05:53] *** snapwich has joined #angularjs
[21:05:58] *** jdj_dk has quit IRC
[21:06:03] *** chrisbirk has quit IRC
[21:06:08] <Adamb_> the angular-ui github said this channel
[21:06:15] <wafflejock_> Adamb_: if you can show the output fromt he twig and throw it in a plunkr we can help
[21:06:16] *** jsoverson has quit IRC
[21:06:25] *** davi has joined #angularjs
[21:06:31] <wafflejock_> if we can't see it in action it's hard to debug
[21:06:33] *** stirlingw has joined #angularjs
[21:06:41] *** vf1 has quit IRC
[21:06:58] *** jsoverson has joined #angularjs
[21:07:07] *** chrisbirk has joined #angularjs
[21:07:17] *** vf1 has joined #angularjs
[21:07:25] *** Milanito has joined #angularjs
[21:08:21] *** kennbrodhagen has joined #angularjs
[21:08:41] *** jsoverson has quit IRC
[21:08:54] *** doddstack has joined #angularjs
[21:09:21] *** jsoverson has joined #angularjs
[21:09:22] *** Xethron has quit IRC
[21:09:34] <wafflejock_> time for hip hop and work ttyal
[21:10:13] *** dc_ has quit IRC
[21:10:28] *** nodweber has quit IRC
[21:10:36] *** Yancy has quit IRC
[21:10:46] *** Yancy has joined #angularjs
[21:11:27] *** jsoverson has quit IRC
[21:11:42] *** stirlingw has quit IRC
[21:12:08] *** jsoverson has joined #angularjs
[21:12:26] *** amargherio has quit IRC
[21:12:46] *** nihi|ist has quit IRC
[21:13:02] *** Pierre_N has left #angularjs
[21:13:16] *** stirlingw has joined #angularjs
[21:13:27] *** Bade has quit IRC
[21:13:35] *** greg5green has joined #angularjs
[21:13:53] *** jsoverson has quit IRC
[21:14:06] *** Pierre_N has joined #angularjs
[21:14:18] *** eperez has quit IRC
[21:14:31] *** jsoverson has joined #angularjs
[21:15:18] *** jsoverson has quit IRC
[21:15:23] *** nanoyak has quit IRC
[21:15:23] *** FunnyLookinHat has quit IRC
[21:15:51] *** s3ri0us is now known as s3ri0us|away
[21:15:59] *** jsoverson has joined #angularjs
[21:16:29] *** josh-k has joined #angularjs
[21:16:32] <tester> hello
[21:17:03] <tester> is there anyone who can help out to understande ?
[21:17:14] *** jsoverson has quit IRC
[21:17:15] <tester> why it's not fatching date
[21:17:22] *** KushS has quit IRC
[21:17:26] *** davi has quit IRC
[21:17:32] *** greg5green has quit IRC
[21:17:55] *** jsoverson has joined #angularjs
[21:18:10] *** UniBot has joined #angularjs
[21:19:02] *** jsoverson has quit IRC
[21:19:06] *** Milanito has quit IRC
[21:19:35] *** cthrax has joined #angularjs
[21:19:45] *** jsoverson has joined #angularjs
[21:19:52] *** illume has joined #angularjs
[21:19:58] *** aaronmitchell has quit IRC
[21:20:14] *** Milanito has joined #angularjs
[21:20:17] <Adamb_> ok http://plnkr.co/edit/z0pEAMR9lJ9TwurJSdEq?p=preview
[21:20:19] <Adamb_> works fine
[21:20:52] <Adamb_> i stripped it down of a few things for simplicity though but all in all it is the problem area
[21:21:05] <snapwich> does protractor work with Linux?
[21:21:07] *** bpayne has joined #angularjs
[21:21:09] *** illume has quit IRC
[21:21:52] *** earthquake has joined #angularjs
[21:22:21] *** altmind has quit IRC
[21:22:25] *** shoelessone has joined #angularjs
[21:23:35] *** shoelessone has quit IRC
[21:23:42] *** FIFOd[a] has quit IRC
[21:23:44] *** ajk27 has joined #angularjs
[21:23:46] *** Milanito has quit IRC
[21:24:07] *** shoelessone has joined #angularjs
[21:24:11] *** stevvooe has joined #angularjs
[21:24:43] *** KushS has joined #angularjs
[21:24:48] *** teslanick has left #angularjs
[21:24:49] *** Cavallari has joined #angularjs
[21:25:04] *** yani has quit IRC
[21:25:13] *** GeertV___ has joined #angularjs
[21:26:55] *** elux has quit IRC
[21:27:07] *** aaronmitchell has joined #angularjs
[21:27:19] *** GeertV__ has quit IRC
[21:27:19] <Adamb_> anybody?
[21:27:24] *** Nivag has quit IRC
[21:27:32] *** subnl has quit IRC
[21:27:58] *** vf1 has quit IRC
[21:28:10] *** vf1 has joined #angularjs
[21:28:45] *** thomasreggi has joined #angularjs
[21:28:46] *** Click66 has quit IRC
[21:28:51] *** shoelessone has quit IRC
[21:29:16] *** SomeKittens has joined #angularjs
[21:29:24] *** FIFOd[a] has joined #angularjs
[21:29:37] *** Rahul_Roy has joined #angularjs
[21:30:27] *** UniBot has quit IRC
[21:30:32] *** MacWinner has joined #angularjs
[21:30:45] *** UniBot has joined #angularjs
[21:30:51] <caitp> Adamb_, what's up?
[21:31:04] *** UniBot has quit IRC
[21:31:09] <Adamb_> Yep waiting for someone
[21:31:09] *** jdj_dk has joined #angularjs
[21:31:34] *** GeertV___ has quit IRC
[21:31:36] <caitp> "anybody?" seems to indicate that you aren't waiting for anyone in particular
[21:31:43] <caitp> did you need help with something?
[21:31:44] *** spencercarnage has joined #angularjs
[21:31:51] <Adamb_> i wonder since i used all of the newer vendor files if that is the issue
[21:32:04] <Adamb_> though if i update things might break
[21:32:06] *** jdj_dk has quit IRC
[21:32:32] <caitp> did you read dave methvins tweet today? lol
[21:32:46] <Adamb_> no
[21:32:51] <Adamb_> y
[21:33:08] <caitp> https://twitter.com/jquery/status/484708715224784896 it applies to angular too :p
[21:34:06] *** mgolawal_ has quit IRC
[21:34:10] *** Cavallari has quit IRC
[21:34:21] *** GeertV___ has joined #angularjs
[21:34:23] *** bweston has joined #angularjs
[21:34:50] *** FIFOd[a] has quit IRC
[21:35:19] *** jb076 has quit IRC
[21:35:38] *** thebigredgeek has joined #angularjs
[21:35:52] <thebigredgeek> does anyone know of any directives which can be used for simple date input?
[21:35:54] <thebigredgeek> not date picker
[21:36:07] <thebigredgeek> but basically typing in date and making sure its formatted properly, inserting slashes, etc
[21:36:09] <caitp> <input> ?
[21:36:19] *** jb076 has joined #angularjs
[21:36:34] *** gnar_mat_ has quit IRC
[21:36:36] <thebigredgeek> doesn't work on older webkits
[21:36:41] <thebigredgeek> we seem to be having a problem with it
[21:36:48] <thebigredgeek> type="date"
[21:36:53] <caitp> <input type="date" ng-model="whatever" /> --- will use native date pickers if available, otherwise it's a text input which requires you to enter an iso8601 date
[21:37:00] <caitp> (is that the right iso8601 number?)
[21:37:00] *** gnar_matix has joined #angularjs
[21:37:04] <Adamb_> i don't think we are really using the CDNs I just used them for plunker
[21:37:04] <thebigredgeek> I believ so
[21:37:11] <caitp> ah it is
[21:37:13] <thebigredgeek> But does it insert slashes, etc?
[21:37:30] <caitp> it won't insert slashes for you, you have to do that
[21:37:38] <caitp> although ui-mask could insert slashes for you
[21:37:42] *** djam90 has joined #angularjs
[21:38:10] <caitp> ui-mask could probably be hacked to work a bit better with native date widgets though
[21:38:30] *** shinnya has joined #angularjs
[21:38:42] <djam90> didn't realise how important ng-src is!
[21:38:46] *** vmarovic has joined #angularjs
[21:38:52] *** tester has quit IRC
[21:39:57] <thebigredgeek> ugh :(
[21:39:57] *** vmarovic has quit IRC
[21:40:11] *** mpaarating has quit IRC
[21:40:15] *** thebigredgeek has quit IRC
[21:40:17] <Adamb_> ok, im getting no where
[21:40:22] *** Adamb_ has quit IRC
[21:40:39] *** vmarovic has joined #angularjs
[21:40:48] *** DanBangWTFRajib has left #angularjs
[21:41:04] *** gnar_matix has quit IRC
[21:41:04] *** Nivag has joined #angularjs
[21:41:13] *** arrty has quit IRC
[21:41:59] *** dbouwman has joined #angularjs
[21:41:59] *** vmarovic has quit IRC
[21:42:10] *** gnar_matix has joined #angularjs
[21:42:19] *** vmarovic has joined #angularjs
[21:42:19] *** darrin_ has joined #angularjs
[21:42:37] *** stirlingw has quit IRC
[21:42:44] *** rbs has quit IRC
[21:42:44] *** darrin has quit IRC
[21:43:26] *** stirlingw has joined #angularjs
[21:43:27] *** vmarovic has quit IRC
[21:43:49] *** vmarovic has joined #angularjs
[21:44:09] *** markisonfire has quit IRC
[21:44:31] *** mattwynne has joined #angularjs
[21:44:32] *** subnl2 has joined #angularjs
[21:44:57] *** richardbaker has joined #angularjs
[21:46:02] *** vmarovic has quit IRC
[21:46:33] *** vmarovic has joined #angularjs
[21:46:34] *** faviouz has joined #angularjs
[21:46:46] *** Jdubs has quit IRC
[21:46:55] *** s3ri0us|away is now known as s3ri0us
[21:46:55] *** whunt has joined #angularjs
[21:47:10] *** whunt has quit IRC
[21:47:13] *** pdillinger has joined #angularjs
[21:47:30] *** vmarovic has quit IRC
[21:47:31] *** blueadept` has joined #angularjs
[21:48:01] *** dc_ has joined #angularjs
[21:48:12] *** senayar has joined #angularjs
[21:48:28] *** UniBot has joined #angularjs
[21:48:35] *** vf1 has quit IRC
[21:48:48] *** dvq has joined #angularjs
[21:49:00] *** UniBot has quit IRC
[21:49:12] *** mattwynne has quit IRC
[21:49:12] *** blueadept has quit IRC
[21:49:13] *** kennbrodhagen has quit IRC
[21:49:41] *** davidcramer has left #angularjs
[21:49:42] *** richardbaker has quit IRC
[21:49:44] *** faviouz has quit IRC
[21:50:48] *** Willow has quit IRC
[21:51:02] *** shr3djs has joined #angularjs
[21:51:28] <shr3djs> Has anyone used angular-file-upload this is crap how come its so hard to upload an array of file with this crappy plugin
[21:51:34] *** pdillinger has quit IRC
[21:51:35] *** stirlingw has quit IRC
[21:51:38] *** euskadi313 has joined #angularjs
[21:52:21] *** vf1 has joined #angularjs
[21:52:23] <Pierre_N> I'm sensing some anger towards this plugin.
[21:52:55] *** morenoh149 has joined #angularjs
[21:53:16] <shr3djs> yah the hate is flowing trough me
[21:53:26] *** rbs has joined #angularjs
[21:53:43] *** mattwynne has joined #angularjs
[21:53:46] *** Milanito has joined #angularjs
[21:53:54] *** cisox is now known as cisox_away
[21:54:05] *** balboah has quit IRC
[21:54:16] *** DuelShark has quit IRC
[21:54:20] *** euskadi31_ has quit IRC
[21:55:09] *** Cavallari has joined #angularjs
[21:55:14] *** Cavallari has quit IRC
[21:55:21] *** richardbaker has joined #angularjs
[21:55:23] <shr3djs> Ive been working with this plugin for a month now and it keeps impressing me
[21:56:14] *** kennbrodhagen has joined #angularjs
[21:56:24] <shr3djs> It give you the ability of modifying the way the rest of the data is appended you can create arrays you can put them in different attributes. But for the file list.. NOfucking thing bs
[21:57:13] *** eperez has joined #angularjs
[21:57:33] *** iksik_ has joined #angularjs
[21:58:27] *** mattwynne has quit IRC
[21:58:32] *** pluma has quit IRC
[21:58:50] *** Milanito has quit IRC
[21:58:59] *** IJNX has joined #angularjs
[22:00:02] *** cisox_away is now known as cisox
[22:00:29] *** cisox has quit IRC
[22:00:39] *** kroogs has joined #angularjs
[22:00:51] *** Jdubs has joined #angularjs
[22:00:54] *** DrMabuse has quit IRC
[22:01:01] *** cthrax_ has joined #angularjs
[22:01:04] *** dc_ has quit IRC
[22:01:20] *** iksik has quit IRC
[22:01:25] *** msafi has joined #angularjs
[22:01:26] *** stirlingw has joined #angularjs
[22:01:32] *** msafi1 has quit IRC
[22:01:39] <caitp> josh-k: we're having some issues with CI today, and it's not clear that we're the source of it! can you confirm suspicion of that?
[22:01:53] *** Milanito has joined #angularjs
[22:01:54] *** iksik__ has joined #angularjs
[22:01:59] *** kennbrodhagen has quit IRC
[22:02:12] <josh-k> hi caitp
[22:02:16] <josh-k> what seems to be the issues?
[22:02:26] <caitp> lots of this: https://travis-ci.org/angular/angular.js/jobs/29051899#L2967
[22:02:48] <caitp> it doesn't look like our SL configuration has changed, so either SL or Travis seem to have broken/changed something
[22:03:04] *** ayman_ has joined #angularjs
[22:03:17] <josh-k> that is not a travis issue
[22:03:17] *** iksik___ has joined #angularjs
[22:03:26] *** dc_ has joined #angularjs
[22:03:27] <josh-k> this is not SL or Travis
[22:03:28] *** nanoyak has joined #angularjs
[22:03:32] <josh-k> this is GitHub, or git to be exact
[22:03:47] <josh-k> that ref is no longer reachable
[22:04:04] <josh-k> have you tried running this locally? with a fresh git clone?
[22:04:10] <caitp> that build that I linked isn't a ref unavailable issue
[22:04:17] *** mikaeldice has joined #angularjs
[22:04:19] <caitp> that's SL rejecting travis job numbers as tunnel identifiers
[22:04:31] *** IJNX has quit IRC
[22:04:31] <caitp> it has already checked out the ref
[22:04:36] *** cthrax has quit IRC
[22:04:54] *** pdillinger has joined #angularjs
[22:05:03] *** InezK is now known as InezK_away
[22:05:06] <caitp> now, there may have been some API changes, maybe we can fix this by upgrading the sauce launcher, it's not clear yet
[22:05:25] *** MistahKurtz has joined #angularjs
[22:05:39] <senayar> How I can make startView="2" work into http://plnkr.co/edit/DSMUPAsGoU9XoLKYuT0P?p=preview ? I try to open the datepicker with year view
[22:05:46] *** kroogs has quit IRC
[22:06:00] *** Raging_Hog has quit IRC
[22:06:03] *** iksik_ has quit IRC
[22:06:05] <ioudas> Hi all, I have a setup with ionic framework. Im new to angular/ionic. Initally, the .controller for a signin worked, until I changed it to try to post using a ng-click. now regardless of the post coming back a state change does not occour. What am I missing
[22:06:30] <caitp> it does look like the SL karma plugin might be outdated, maybe fixing that would do it
[22:06:44] *** snapwich has quit IRC
[22:07:05] *** iksik__ has quit IRC
[22:07:24] *** jsoverson has quit IRC
[22:07:45] *** kennbrodhagen has joined #angularjs
[22:07:57] *** jsoverson has joined #angularjs
[22:08:04] *** SpearThruster has quit IRC
[22:08:34] *** InezK_away is now known as InezK
[22:09:11] *** KushS has quit IRC
[22:09:14] *** blakef has joined #angularjs
[22:09:38] *** snapwich has joined #angularjs
[22:09:51] *** pdillinger has quit IRC
[22:09:54] *** oniijin has quit IRC
[22:09:55] <BobbieBarker> I just got this error out of the blue any clues on what is going on would be appreciated.
[22:10:00] <BobbieBarker> emplate for directive 'datepickerPopupWrap' must have exactly one root element. template/datepicker/popup.html
[22:10:08] *** wolfman2000 has joined #angularjs
[22:11:24] *** MacWinner has joined #angularjs
[22:11:28] *** whunt has joined #angularjs
[22:12:13] *** kennbrodhagen has quit IRC
[22:12:25] *** KushS has joined #angularjs
[22:12:27] *** GeertV___ has quit IRC
[22:13:13] *** clamstar has quit IRC
[22:13:34] *** blakef has quit IRC
[22:13:45] *** msafi1 has joined #angularjs
[22:14:02] *** Ronyrun has joined #angularjs
[22:14:46] *** msafi has quit IRC
[22:14:47] *** m0t0r has joined #angularjs
[22:15:46] *** UniBot has joined #angularjs
[22:15:54] *** obert has quit IRC
[22:16:02] *** kennbrodhagen has joined #angularjs
[22:16:02] *** daleharvey__ is now known as daleharvey
[22:16:04] *** InezK is now known as InezK_away
[22:17:06] *** chrisshattuck has quit IRC
[22:17:08] *** vbabiy has joined #angularjs
[22:17:27] *** vbabiy has quit IRC
[22:17:44] *** forcer has quit IRC
[22:17:48] *** aslate has quit IRC
[22:17:56] *** chrisbirk has quit IRC
[22:18:12] *** forcer- has joined #angularjs
[22:18:12] *** forcer- is now known as forcer
[22:18:48] *** mattt_ has quit IRC
[22:18:52] *** vbabiy has joined #angularjs
[22:19:11] *** dc_ has quit IRC
[22:19:39] *** chrisshattuck has joined #angularjs
[22:20:04] *** Bade has joined #angularjs
[22:20:10] *** UniBot has quit IRC
[22:20:36] *** obert has joined #angularjs
[22:20:52] *** scmx has joined #angularjs
[22:21:04] *** MTGap has joined #angularjs
[22:21:06] *** Alina-malina has quit IRC
[22:21:43] *** ayman_ has quit IRC
[22:21:49] *** eperez has quit IRC
[22:21:49] *** Milanito has quit IRC
[22:22:04] *** Alina-malina has joined #angularjs
[22:22:13] *** Willow has joined #angularjs
[22:22:34] *** ingshtrom has quit IRC
[22:23:01] *** mrogne_afk has joined #angularjs
[22:23:01] *** mrogne_afk has joined #angularjs
[22:23:08] *** mrogne_busy has quit IRC
[22:23:09] *** InezK_away is now known as InezK
[22:23:21] *** enigmarm has joined #angularjs
[22:24:55] *** shoelessone has joined #angularjs
[22:25:18] *** markisonfire has joined #angularjs
[22:25:19] *** jdj_dk_ has joined #angularjs
[22:25:19] *** vbabiy has quit IRC
[22:25:58] *** senayar_ has joined #angularjs
[22:26:02] *** boptop has quit IRC
[22:26:18] *** Cache_Money has joined #angularjs
[22:26:30] *** Bade has quit IRC
[22:26:44] *** thanpolas has quit IRC
[22:26:45] *** clamstar has joined #angularjs
[22:27:34] *** senayar has quit IRC
[22:27:51] *** subnl2 has quit IRC
[22:27:54] *** UniBot has joined #angularjs
[22:28:05] *** beckyconning__ has joined #angularjs
[22:28:08] *** roymiloh has quit IRC
[22:28:13] <josh-k> caitp: just saw your messages
[22:28:13] <josh-k> caitp: the job you linked me to was a ref not available issue
[22:28:30] *** cbeacock has quit IRC
[22:28:38] <josh-k> caitp: can you relink me to a job which has the problem you are describing
[22:28:47] *** raibutera has quit IRC
[22:28:55] *** KushS has quit IRC
[22:29:05] <caitp> mmm no, it wasn't =) the build was restarted by someone
[22:29:07] <caitp> I hope that wasn't me
[22:29:21] <caitp> there should be another copy of it in one of the different builds, hang on
[22:29:42] *** jdj_dk_ has quit IRC
[22:29:46] *** shoelessone has quit IRC
[22:30:10] <josh-k> caitp: when i checked the log i saw a ref error, thats all i'm saying :)
[22:30:32] *** livingstn has quit IRC
[22:30:32] *** InezK is now known as InezK_away
[22:30:46] <caitp> you know what, it looks like that's the only one that did have the tunnel identifier issue, the rest are different flakes
[22:30:50] <caitp> definitely more than usual though
[22:31:16] <wafflejock_> BobbieBarker: means you have something like <div></div><span></span> in the template definition
[22:31:30] <wafflejock_> BobbieBarker: you need to have just 1 root element like <div><span></span></div>
[22:31:51] <BobbieBarker> actually turns out i was missing this 'ui.bootstrap.tpls',
[22:31:58] <wafflejock_> BobbieBarker: it expects to be able to create and append that element to the DOM so it borks if there's more than 1 root element
[22:31:58] *** fels_zh has quit IRC
[22:32:01] <BobbieBarker> there is no mention of it in the docs
[22:32:05] <OnkelTem> Hi
[22:32:19] <BobbieBarker> but if you're only using select modules off of ui bootstrap you have to include 'ui.bootstrap.tpls', as a dependency
[22:32:29] *** fels_zh has joined #angularjs
[22:32:49] <BobbieBarker> i put that in there and everything is back to being good
[22:32:52] *** scmx has quit IRC
[22:32:57] <wafflejock_> BobbieBarker: ah okay I've only ever used the tpls file that includes templates, otherwise you are expected to supply fillers for the templates
[22:33:08] *** scmx has joined #angularjs
[22:33:11] <wafflejock_> BobbieBarker: wouldn't have expected that error but good to know I suppose
[22:33:16] <BobbieBarker> yeah i agree 100% it totally mystifiied me
[22:33:16] <OnkelTem> My template files are organized according to states hierarchy so the names of the files could be easily calculate and thus I don't want to define tempalteUrl for every state
[22:33:18] *** squeakytoy has quit IRC
[22:33:31] <BobbieBarker> the only way i caught it was a little single sentence comment on stack
[22:33:36] <OnkelTem> Is there a kind of tempalteProvider which would help in automatic names resolution?
[22:33:44] <BobbieBarker> like name spacing?
[22:33:52] <BobbieBarker> no
[22:33:52] *** cujojp has quit IRC
[22:34:09] <beckyconning__> i'm making a service that provides realtime document access from a database, is there any advantage to using a $rootscope provided scope in the service rather than a normal object?
[22:34:15] <wafflejock_> BobbieBarker: yeah SO is a lifesaver all the time
[22:34:23] <beckyconning__> *$rootScope
[22:34:27] *** jamto11 has joined #angularjs
[22:34:43] <BobbieBarker> i tend to use IRC more than stack, but in this case it really saved me
[22:34:45] *** wxo has joined #angularjs
[22:35:09] *** feelfine has quit IRC
[22:35:14] <wafflejock_> beckyconning__: don't think so, pretty sure the scope itself is just a "normal object" but just has the $watch method and some other things like $id and whatnot that angular uses internally
[22:35:34] *** MuffinMan` has joined #angularjs
[22:35:37] *** feelfine has joined #angularjs
[22:35:37] *** UniBot has quit IRC
[22:35:51] *** subnl has joined #angularjs
[22:36:08] <Cixis> everything in javascript is objects
[22:36:15] <beckyconning__> duh
[22:36:24] <beckyconning__> well actually they aren't quite
[22:36:28] <beckyconning__> thanks wafflejock_
[22:36:28] *** 77CAAO8ZF has quit IRC
[22:36:41] *** ninkotech_ has joined #angularjs
[22:37:01] <Cixis> except for other base types
[22:37:14] <beckyconning__> thanks for the 101 Cixis.
[22:37:23] *** InezK_away is now known as InezK
[22:37:27] <wafflejock_> beckyconning__: I guess if you want to be able to watch from the service that could be useful but I've rarely had cases where that would have been useful (perhaps for services to watch a login services info or something like that)
[22:37:43] <Cixis> beckyconning__: you're welcome
[22:37:44] *** fels_zh has quit IRC
[22:37:45] *** kennbrodhagen has quit IRC
[22:37:59] *** boptop has joined #angularjs
[22:38:12] <beckyconning__> wafflejock_: yeah i don't think it matters so much here. i'm using bluebird promises to get updates on most things. thanks! : ) i was really unsure.
[22:38:46] *** jamto11 has quit IRC
[22:38:47] *** daryllxd has quit IRC
[22:38:50] *** blueadept has joined #angularjs
[22:38:50] *** blueadept has joined #angularjs
[22:38:53] *** daryllxd_ has joined #angularjs
[22:40:04] *** feelfine has quit IRC
[22:40:07] *** blakef has joined #angularjs
[22:41:06] *** ngoyal has quit IRC
[22:41:06] *** optikalmouse has quit IRC
[22:41:17] *** cujojp has joined #angularjs
[22:41:31] *** optikalmouse has joined #angularjs
[22:41:34] *** drej has quit IRC
[22:41:46] *** d3wayne has quit IRC
[22:41:58] *** dve has joined #angularjs
[22:42:23] *** SpearThruster has joined #angularjs
[22:42:50] <joroci> how can i add a back button to my site?
[22:42:59] <joroci> not the browser back
[22:43:42] *** stirlingw has quit IRC
[22:43:44] *** da_wunde1 is now known as da_wunder
[22:44:11] *** kennbrodhagen has joined #angularjs
[22:44:23] *** RandomStranger has joined #angularjs
[22:44:35] *** Snugug has quit IRC
[22:44:42] *** callumacrae has quit IRC
[22:44:56] *** dcherman2 has joined #angularjs
[22:45:19] *** tommmied has quit IRC
[22:45:42] *** RandomStranger- has quit IRC
[22:45:49] *** sloria has joined #angularjs
[22:45:55] *** thanpolas has joined #angularjs
[22:47:06] *** bullicon has joined #angularjs
[22:47:11] *** drej has joined #angularjs
[22:47:16] *** mikehaas763 has quit IRC
[22:47:23] *** dcherman has quit IRC
[22:48:12] *** shabadoo_ has joined #angularjs
[22:48:43] <wafflejock_> joroci: would be interested to know why you want that?
[22:48:49] *** callumacrae has joined #angularjs
[22:49:16] *** nodeman has quit IRC
[22:49:17] *** umib0zu has quit IRC
[22:49:19] *** Brocken is now known as zz_Brocken
[22:49:19] <wafflejock_> joroci: one option might be https://developer.mozilla.org/en-US/docs/Web/API/Window.history http://caniuse.com/#search=history
[22:50:10] *** dcherman2 has quit IRC
[22:50:43] *** darrin_ has quit IRC
[22:50:48] *** shabadoo has quit IRC
[22:51:26] *** Emperor_Earth_ has joined #angularjs
[22:51:56] *** jb076 has quit IRC
[22:52:20] *** luuse has quit IRC
[22:53:10] *** d3wayne has joined #angularjs
[22:54:11] *** bayousoft has quit IRC
[22:54:27] *** icfantv has quit IRC
[22:54:38] *** Emperor_Earth has quit IRC
[22:55:03] *** mennea has quit IRC
[22:55:24] *** bayousoft has joined #angularjs
[22:56:50] *** ipalaus has joined #angularjs
[22:56:58] *** kennbrodhagen has quit IRC
[22:56:59] *** mennea has joined #angularjs
[22:59:01] *** ipalaus has quit IRC
[22:59:02] *** ipalaus has joined #angularjs
[22:59:04] *** ipalaus is now known as Guest8616
[22:59:08] *** ngoyal has joined #angularjs
[22:59:33] *** foofoobar has quit IRC
[22:59:57] *** jh3 has joined #angularjs
[23:01:17] *** pdillinger has joined #angularjs
[23:01:21] *** blakef has quit IRC
[23:01:27] *** kennbrodhagen has joined #angularjs
[23:01:38] *** blakef has joined #angularjs
[23:01:43] *** DrMabuse has joined #angularjs
[23:02:03] *** greg5green has joined #angularjs
[23:03:15] <djam90> robdubya will be happy to know I converted my code from jQuery ajax to $http :) :) :) :) :) :)
[23:03:32] *** snapwich has quit IRC
[23:03:55] *** YancyFry has joined #angularjs
[23:04:08] *** bejames has joined #angularjs
[23:04:28] *** danizord has quit IRC
[23:04:30] *** Yancy has quit IRC
[23:04:31] *** newUser1234 has joined #angularjs
[23:04:35] *** kennbrodhagen has quit IRC
[23:05:01] <joroci> wafflejock_ the design of the webpage got a back button
[23:05:26] <joroci> using history.back() works for one level but what do i do if i need more than one level?
[23:05:39] *** Ethix has joined #angularjs
[23:05:48] *** verbgarden has joined #angularjs
[23:05:59] <wafflejock_> joroci: just sayin no reason to repeat something the browser already does for you unless you're trying to make a mobile app looking thing in which case I'd suggest something like ionic
[23:05:59] *** jh3 has quit IRC
[23:06:00] *** shinnya has quit IRC
[23:06:18] *** Guest8616 has quit IRC
[23:06:20] *** greg5green has quit IRC
[23:06:22] <wafflejock_> joroci: think history.back(param) the param tells it how many steps to take back
[23:06:26] *** jonnybro has joined #angularjs
[23:06:32] <joroci> yea i agree it's stupid but nothing to do about it
[23:06:40] *** DrMabuse has quit IRC
[23:07:00] *** jb076 has joined #angularjs
[23:07:02] <joroci> so basically i need to increase the param every routechangesuccess?
[23:07:17] *** UniBot has joined #angularjs
[23:07:20] *** jkremser has joined #angularjs
[23:07:21] *** jkremser has joined #angularjs
[23:07:27] <wafflejock_> joroci: if you need to jump back through multiple URL changes yea I would think so
[23:07:45] *** seydoggy has joined #angularjs
[23:08:03] *** ngbot has joined #angularjs
[23:08:03] <ngbot> [angular.js] petebacondarwin pushed 2 new commits to master: http://git.io/FRqJkg
[23:08:03] <ngbot> angular.js/master f3cb274 Shahar Talmi: fix(ngModel): test & update correct model when running $validate...
[23:08:03] <ngbot> angular.js/master 920c369 Peter Bacon Darwin: test(input): simplified $apply syntax
[23:08:03] *** ngbot has left #angularjs
[23:08:05] *** Xethron has joined #angularjs
[23:08:12] *** richardbaker has quit IRC
[23:08:19] *** matiasow has quit IRC
[23:08:37] *** lw has quit IRC
[23:08:38] *** Ir1sh_ has joined #angularjs
[23:08:38] *** tomas has quit IRC
[23:08:55] *** isern has joined #angularjs
[23:09:06] *** greatdex has quit IRC
[23:09:18] <djam90> man I love Angular services
[23:09:21] <djam90> how it splits up the code
[23:09:33] *** tomas has joined #angularjs
[23:09:36] <djam90> so beautiful and elegant, fetch from the database, ok, use the DataService to fetch it! YES
[23:10:40] *** zanea|away is now known as zanea
[23:10:55] *** drej has quit IRC
[23:11:46] *** Ir1sh has quit IRC
[23:11:50] <ojacobson> djam90: welcome to 1980
[23:11:54] *** UniBot has quit IRC
[23:12:04] *** dcherman has joined #angularjs
[23:12:09] <djam90> 1980?
[23:12:11] <djam90> lol
[23:12:12] *** cmoneylulz has quit IRC
[23:12:13] <ojacobson> that dependency injection and deeper structural abstractions for code are only making it into webapps now does not speak highly of software development
[23:12:18] <ojacobson> because these are not new practices :)
[23:12:53] *** cellofel1 has joined #angularjs
[23:13:20] *** kennbrod_ has joined #angularjs
[23:13:20] *** cmoneylulz has joined #angularjs
[23:13:24] <djam90> to be honest I am quite new to webapps, previously using jQuery to wing it through creating forms and other "special" content
[23:13:35] *** cellofellow has quit IRC
[23:13:36] *** wa5ted_ has joined #angularjs
[23:13:39] *** shinnya has joined #angularjs
[23:13:43] <ojacobson> yeah
[23:14:04] *** GeertV___ has joined #angularjs
[23:14:07] <ojacobson> my complaint is not that you didn't know (everyone's born ignorant, after all ;), it's that we've managed to build a culture that devalues passing this kind of knowledge along to newer developers
[23:14:30] <ojacobson> and devalues sharing it across what we perceive as cultural lines (server vs desktop vs web vs game vs mobile developer - you name it)
[23:14:56] *** qpok has quit IRC
[23:15:17] <ojacobson> I actually think angular's implementation of dependency injection is overcomplicated and kind of crap, BUT I'm really glad it's there at all, because it's helping drive further uptake of the underlying ideas in web development
[23:15:20] <djam90> I used to think it was pointless extra code but now I think about how all the code has to work together in unity, I can really see that of course you need to define a module it depends on, and define the service to the controller, why wouldn't you
[23:15:28] <optikalmouse> when I'm writing a rest api service using $resource, does it make sense to define a constant value for the REST API url?
[23:15:38] *** qpok has joined #angularjs
[23:15:45] *** wa5ted has quit IRC
[23:16:00] *** wa5ted_ is now known as wa5ted
[23:16:12] *** Drako_ has joined #angularjs
[23:16:28] *** Mouzi has quit IRC
[23:16:44] *** marthinal has quit IRC
[23:17:06] *** mchapman has joined #angularjs
[23:17:22] *** kennbrod_ has quit IRC
[23:17:34] *** cmoneylulz has quit IRC
[23:17:38] *** armdale has joined #angularjs
[23:17:49] <bendersalt> If you have a common root somethign like /api/nameofendpoint
[23:18:04] <bendersalt> then having a var set to /api/ is something you could do
[23:18:05] <djam90> ahh such a good feeling when I switch it from jQuery ajax to $http, such a good feeling when it works and you know it is in that promise loop and angular is working its magic!!!
[23:18:08] *** mikehaas763 has joined #angularjs
[23:19:15] *** DrMabuse has joined #angularjs
[23:19:18] *** dve has quit IRC
[23:19:31] *** kennbrodhagen has joined #angularjs
[23:20:14] *** Siecje has quit IRC
[23:20:30] *** dve_ has joined #angularjs
[23:20:56] *** CocoStorm has joined #angularjs
[23:22:02] *** Pookz_ has joined #angularjs
[23:22:03] *** cctom has quit IRC
[23:22:33] *** ojacobson has quit IRC
[23:22:37] <optikalmouse> bendersalt: the api is being run in a separate nodejs process, different port, it's at /api/ but nginx is the one redirecting it
[23:22:42] *** derrzzaa has quit IRC
[23:23:10] *** mikehaas763 has quit IRC
[23:23:19] <optikalmouse> bendersalt: so i'm not sure if I should have the full url for the rest api like http://my-random-server.com:23981/api/
[23:23:26] *** jdj_dk has joined #angularjs
[23:23:32] *** aaronmitchell has quit IRC
[23:23:33] *** DrMabuse has quit IRC
[23:24:18] *** dobladez has quit IRC
[23:24:28] *** derrzzaa has joined #angularjs
[23:24:34] *** kalehv has quit IRC
[23:24:45] *** dve_ has quit IRC
[23:24:45] *** MJD has quit IRC
[23:24:49] *** jsoverson has quit IRC
[23:24:56] *** Stephen has joined #angularjs
[23:25:10] *** Pookz has quit IRC
[23:25:14] *** boptop has quit IRC
[23:25:15] *** Pookz_ has quit IRC
[23:25:21] *** MJD has joined #angularjs
[23:25:27] *** jsoverson has joined #angularjs
[23:25:29] *** Pookz_ has joined #angularjs
[23:25:41] *** shoelessone has joined #angularjs
[23:25:44] *** bmac has quit IRC
[23:26:11] *** aaronmitchell has joined #angularjs
[23:26:59] *** jsoverson has quit IRC
[23:27:00] *** shinnya has quit IRC
[23:27:10] *** jayrobot has quit IRC
[23:27:16] *** drej has joined #angularjs
[23:27:28] <Foxandxss> Imagine the worst example ever of angular and that company asking for junior angular devs, that is gonna be fun
[23:27:41] *** jsoverson has joined #angularjs
[23:28:08] *** jdj_dk has quit IRC
[23:28:25] *** jsoverson has quit IRC
[23:28:41] *** aslate has joined #angularjs
[23:28:46] *** cpciv has joined #angularjs
[23:29:28] *** jsoverson has joined #angularjs
[23:29:41] *** shinnya has joined #angularjs
[23:29:52] *** Willow has quit IRC
[23:30:17] *** ppppaul has quit IRC
[23:30:21] *** jsoverson has quit IRC
[23:30:22] *** shackleford has quit IRC
[23:30:25] *** Willow has joined #angularjs
[23:30:26] *** feelfine has joined #angularjs
[23:30:32] *** iksik___ has quit IRC
[23:30:44] *** Cache_Money has quit IRC
[23:30:47] *** encrypt__ has quit IRC
[23:30:55] *** shoelessone has quit IRC
[23:30:57] *** cthrax_ has quit IRC
[23:31:01] *** jsoverson has joined #angularjs
[23:31:06] *** iksik___ has joined #angularjs
[23:31:39] *** mennea has quit IRC
[23:31:42] *** encryptd_fractl has joined #angularjs
[23:31:51] *** daryllxd_ has quit IRC
[23:32:13] *** kennbrodhagen has quit IRC
[23:32:20] <G1eb> Does anyone have experience with angular-ui modal ?
[23:32:46] *** jsoverson has quit IRC
[23:32:53] *** ngbot has joined #angularjs
[23:32:53] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/qDYDaw
[23:32:54] <ngbot> angular.js/master 0958489 Chris Kuehl: docs(error/$rootScope/inprog): fix $timeout typo...
[23:32:54] *** ngbot has left #angularjs
[23:33:05] *** apetro_ has quit IRC
[23:33:14] <G1eb> Basically Im using stateprovider and want to set up a state to open a modal with the 'onEnter' setting
[23:33:19] *** quan___ has quit IRC
[23:33:22] *** wa5ted_ has joined #angularjs
[23:33:28] *** aslate has quit IRC
[23:33:28] *** jsoverson has joined #angularjs
[23:33:45] *** wa5ted has quit IRC
[23:33:53] *** wa5ted_ is now known as wa5ted
[23:33:58] <G1eb> hmm, it works but actually changes states to go there leaving the current page which is bad
[23:34:06] *** quan__ has joined #angularjs
[23:34:24] *** anjumkaiser has quit IRC
[23:34:50] *** TorchDragon has quit IRC
[23:34:55] *** nerdfiles has quit IRC
[23:34:56] <optikalmouse> Foxandxss: welcome to every company hiring for angularjs
[23:34:56] *** Stephen has quit IRC
[23:35:08] <optikalmouse> I'm taking over a project that was worked on by a PHP dev.
[23:35:17] <optikalmouse> they don't understand how variable scoping works :|
[23:35:20] <Foxandxss> not that bad!
[23:35:22] *** jsoverson has quit IRC
[23:35:31] <Foxandxss> but do they have an angular project?
[23:35:32] *** nanoyak has quit IRC
[23:36:02] *** jsoverson has joined #angularjs
[23:36:27] <Cixis> what's variables, precious
[23:36:55] *** bayousoft has quit IRC
[23:37:39] *** Vinnyceptr has joined #angularjs
[23:37:43] *** jsoverson has quit IRC
[23:37:49] <CocoStorm> Hey guys, I'm trying to have a drop down menu filter a list by the 'tag' selected. However the tags listed is a nested array like so http://pastebin.com/Jzm7q5Df . How do I use ng-options with this sort of structure?
[23:38:15] *** MuffinMan` has quit IRC
[23:38:23] <CocoStorm> Sorry for such a terrible explanation
[23:38:24] *** jsoverson has joined #angularjs
[23:38:24] *** GeertV___ has quit IRC
[23:39:08] *** jsoverson has quit IRC
[23:39:26] *** arizzo_ has joined #angularjs
[23:39:30] *** mehlah has joined #angularjs
[23:39:52] *** jsoverson has joined #angularjs
[23:40:54] *** nanoyak has joined #angularjs
[23:41:04] *** jsoverson has quit IRC
[23:41:38] <djam90> Ahhh I have a problem !!! Is it possible to call a service that runs a $http, and then in the controller's .then() function call another scope function which does another service call to make another $http call? Because I am getting an error that digest is already in progress
[23:41:43] *** jsoverson has joined #angularjs
[23:41:43] *** isthisreallife has joined #angularjs
[23:41:49] *** isthisreallife has left #angularjs
[23:41:50] <CocoStorm> anyone?
[23:41:51] *** arizzo has quit IRC
[23:42:20] *** bealtine^ has joined #angularjs
[23:43:16] *** mattwynne has joined #angularjs
[23:43:29] *** jsoverson has quit IRC
[23:44:06] *** bealtine has quit IRC
[23:44:12] *** jsoverson has joined #angularjs
[23:44:16] *** rabaznaz has quit IRC
[23:44:16] <G1eb> CocoStorm you can filter with your own function
[23:44:16] *** IJNX has joined #angularjs
[23:44:22] *** boptop has joined #angularjs
[23:44:28] *** cboden has quit IRC
[23:44:29] *** doddstack has quit IRC
[23:44:33] <CocoStorm> Gleb, what do you mean sorry
[23:45:02] *** walden is now known as walden|afk
[23:45:05] *** krawchyk has quit IRC
[23:45:06] *** UniBot has joined #angularjs
[23:45:16] *** blakef has left #angularjs
[23:45:26] *** imehesz has quit IRC
[23:45:44] *** nemothekid has quit IRC
[23:45:56] <CocoStorm> ?
[23:46:14] <G1eb> CocoStorm you can add a filter function to your controller, which will take each element and check whether to include it or not
[23:46:20] <G1eb> http://jsfiddle.net/sheppe/EeL9y/
[23:46:23] *** jsoverson has quit IRC
[23:46:30] *** Guest62258 has quit IRC
[23:46:45] <G1eb> that example actually makes a filter for that
[23:47:20] <djam90> does .then() wait for the current code to complete before running another .then() ? Is that how you chain them?
[23:47:21] *** jonnybro has quit IRC
[23:47:39] *** jsoverson has joined #angularjs
[23:47:43] *** nytrm has joined #angularjs
[23:47:46] *** hannesvdvreken has quit IRC
[23:47:49] *** Aliks has quit IRC
[23:48:02] *** mattwynne has quit IRC
[23:48:02] *** bweston has quit IRC
[23:48:04] *** jsoverson has quit IRC
[23:48:12] *** dcherman has quit IRC
[23:48:23] <Pierre_N> should I be using legacy, or latest?
[23:48:29] *** jsoverson has joined #angularjs
[23:48:40] *** arizzo_ has quit IRC
[23:49:03] *** Ir1sh_ has quit IRC
[23:49:04] *** DrMabuse has joined #angularjs
[23:49:04] *** UniBot has quit IRC
[23:49:31] *** arizzo has joined #angularjs
[23:49:32] *** cthrax_ has joined #angularjs
[23:49:44] *** jsoverson has quit IRC
[23:50:53] *** marr has joined #angularjs
[23:50:57] *** aaronmitchell has quit IRC
[23:51:03] *** stevvooe has quit IRC
[23:51:12] *** armdale has quit IRC
[23:51:26] *** jsoverson has joined #angularjs
[23:51:36] <nibster> anyone used bootstrap carousel with angular?
[23:52:08] *** Stephen has joined #angularjs
[23:52:19] <wafflejock_> djam90: believe when you define a then it is adding it to an array of functions to execute in the order they're registered in
[23:52:22] *** nytrm has quit IRC
[23:52:24] <wafflejock_> nibster: yup
[23:52:28] <wafflejock_> nibster: ui-bootstrap
[23:52:29] <wafflejock_> ?
[23:52:36] *** kennbrodhagen has joined #angularjs
[23:52:48] <nibster> i have errors when copying the code
[23:52:53] *** BlinkyBill has joined #angularjs
[23:53:10] <Stephen> How is everyone?
[23:53:23] <nibster> wafflejock_: is there anything specific to add ?
[23:53:24] <djam90> wafflejock, I need to do an ajax call in service, then add the returned data to a scope property and run some function on the data, then AFTER that, call another scope function which in turn makes a second http call in the service
[23:53:27] *** nemothekid has joined #angularjs
[23:53:29] <Stephen> Guess what? I recently took a job with the guy who invented the 960 grid
[23:53:29] <wafflejock_> nibster: I know it has some problem with ngAnimate or at least it did in some of the versions you may need to disable animation on the carousel element, but it shouldn't cause errors can you show in a plunkr or paste your error
[23:53:34] <Stephen> Ok, done with my job crap
[23:53:41] <Stephen> How's tricks?
[23:54:00] <wafflejock_> djam90: you can just do all those things inline one after another in a single callback from the promise
[23:54:24] <nibster> wafflejock_: well i directly copied the code from the site
[23:54:32] <nibster> and add this $(function(){
[23:54:32] <nibster> $('#carousel-example-generic').carousel();
[23:54:32] <nibster> });
[23:54:40] <wafflejock_> nibster: oh yeah don't do that
[23:54:41] <nibster> as script above all html
[23:54:50] <wafflejock_> nibster: look at ui-bootstrap
[23:55:00] <wafflejock_> nibster: http://angular-ui.github.io/bootstrap/
[23:55:11] <wafflejock_> nibster: http://angular-ui.github.io/bootstrap/#/carousel
[23:55:14] <djam90> wafflejock does it definitely parse the JS line by line just like that? because it does not seem to be working
[23:55:16] <bullicon> any idea on how to load external json files
[23:55:18] *** stevvooe has joined #angularjs
[23:55:20] <bullicon> in my test?
[23:55:30] <nibster> wafflejock_: cheers mate ;)
[23:55:36] <wafflejock_> djam90: indeed all code in JS by default is just running line by line
[23:55:41] <wafflejock_> nibster: np
[23:55:43] <wafflejock_> nibster: cheers
[23:55:55] <bullicon> using karma
[23:55:56] <wafflejock_> awe sad I don't have a beer :|
[23:56:01] <bullicon> any ideas on how to load eternal json files?
[23:56:07] *** kennbrodhagen has joined #angularjs
[23:56:20] *** wasabi has joined #angularjs
[23:56:35] <monokrome> eternal JSON files should be relatively easy to load since they're guaranteed to be there! :)
[23:56:45] *** wasabi is now known as Guest77421
[23:56:54] *** quantax- has joined #angularjs
[23:56:56] <nibster> wafflejock_: what's wrong with the one of bootstrap ?
[23:56:58] <zelrik> hi
[23:56:58] <monokrome> As for external ones, are they static or does the content change?
[23:57:01] <bullicon> monokrome i meant external
[23:57:03] <monokrome> bullicon: ^
[23:57:03] <bullicon> static
[23:57:13] <bullicon> its for mock
[23:57:22] <monokrome> You could either bake it into a file in your build process, or use $http / $resource to load them
[23:57:36] <monokrome> for mock I just use $httpBackend
[23:57:37] <wafflejock_> djam90: procedural execution is the name of the game when it comes to JS it's just like C, with C++ you get classes and classical inheritence which I think we're getting in ECMA6 to some degree at least
[23:57:38] <bullicon> i have it ina file
[23:57:43] <monokrome> but it's honestly a painful process
[23:57:53] <bullicon> yeah so on $httpBackend.when(....).response(....)
[23:57:56] *** Zesty has joined #angularjs
[23:57:56] *** Ethix has quit IRC
[23:57:59] <monokrome> Oh, actually I remember that I changed how fixtures work
[23:58:00] *** luv2quilt has quit IRC
[23:58:02] <CocoStorm> G1eb, <select ng-model="clip" ng-options="item.scripArticle.tags for item in clipList"></select> gets the list of tags in each item in the drop down which is not what I want
[23:58:15] <bullicon> i have ben on testing for three days now
[23:58:19] <djam90> wafflejock_, so if I have Server.getInitialFilters(dataToGetInitialFilters).then(fillFiltersInitial); on one line, and then run a function on the next line, it will NOT run until the fillFiltersInitial is complete?
[23:58:20] *** dancek has quit IRC
[23:58:25] <wafflejock_> monokrome: hehe yeah the God JSON, bullicon not sure though really
[23:58:26] *** Guest77421 has quit IRC
[23:58:26] *** ngoyal_ has joined #angularjs
[23:58:29] <bullicon> just to get testing infrastructure up and running
[23:58:32] *** bpayne has quit IRC
[23:58:35] *** arizzo has quit IRC
[23:58:37] <monokrome> I just do: angular.module('fixtures').factory('fixtures.api.someResource', function () { return { 'some': 'data' } });
[23:58:44] *** Sgeo has joined #angularjs
[23:58:50] <bullicon> monokrome i dont want to do that
[23:58:54] <monokrome> because $httpBackend was not very useful, and difficult
[23:58:59] <bullicon> I have to load a list of 40 objects
[23:59:02] <monokrome> and then I wrote a wrapper that wrapped those into $httpBackend instead
[23:59:12] <bullicon> hmm
[23:59:18] <monokrome> bullicon: Well then I guess $httpBackend is your answer
[23:59:23] <bullicon> i wish I had the time to write something
[23:59:28] <zelrik> another productive day today Oo
[23:59:28] <bullicon> I am using $httpBackend
[23:59:42] <bullicon> but I want to put the respons json in an external file
[23:59:47] <monokrome> I just injected a bunch of fixture data into $httpBackend using beforeEach beacuse there isn't really a "good" solution for this
[23:59:47] <bullicon> and load it in my test file
[23:59:57] <bullicon> require(...) doesnt work
top

   July 3, 2014  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | >