[00:00:01] <jaawerth> that's part of why I like what react is doing with its ShadowDOM, though
[00:00:05] <roqo> Some global are not ready when my directive get's compiled though
[00:00:06] *** busticated has joined #angularjs
[00:00:30] <jaawerth> roqo: one sec, I've got a link that should help with this..
[00:00:30] *** eBureau has quit IRC
[00:00:43] <roqo> that would be awesome
[00:01:00] *** lrvick has left #angularjs
[00:01:10] <areologist> right, it does seem like unit testing and e2e testing are equally required by devs working on these kind of apps
[00:01:26] *** cthrax has joined #angularjs
[00:01:35] *** andrewdub has joined #angularjs
[00:01:35] *** alexw has joined #angularjs
[00:01:44] *** alexw has left #angularjs
[00:01:58] <areologist> but I guess testing ui has always been a pain point
[00:02:14] <dmack> React is very interesting. looking forward to the talk about react inside angular directives
[00:02:30] *** minimoo1 has joined #angularjs
[00:02:34] *** nycdevgirl has quit IRC
[00:02:39] <areologist> Based on the talk I linked above I think Zakas would cringe at that. haha
[00:02:44] <dmack> yeah.
[00:02:56] *** jeffbalboni has quit IRC
[00:02:59] <dmack> I heard a podcast with the dude.
[00:03:07] <dmack> he seems smart. but I can tell he's not in at the ground floor anymore.
[00:03:23] <snurfery> bout to demo my product to my client for the first time, wish me luck
[00:03:30] <areologist> I read a couple of his books on vanilla JS a while back. Definitely knows his stuff.
[00:03:33] <dmack> good luck dude
[00:03:44] <dmack> for sure, I don't question his knowledge
[00:03:45] <snurfery> =)
[00:04:04] <areologist> good luck, snurfery!
[00:04:07] <burzum2> is there a way to access the specific directive no matter how far up it is in the nested scopes? Right now I'm accessing it via $scope.$parentScope.$parentScope, but when I'm using it from another level it fails because the nested level is another one.
[00:04:11] *** DrMabuse has quit IRC
[00:04:11] *** nilsma has quit IRC
[00:04:32] *** Oxynum has joined #angularjs
[00:04:35] *** cotko has quit IRC
[00:04:53] <dmack> burzum2: code smell, whenever you use $parent.
[00:04:53] *** dcherman has joined #angularjs
[00:04:54] *** cotko has joined #angularjs
[00:05:07] *** brennon_ has quit IRC
[00:05:08] *** soee has quit IRC
[00:05:12] <burzum2> dmack, i thought so, thats why im asking
[00:05:27] *** arek_deepinit has joined #angularjs
[00:05:37] <dmack> there's a good section in there on inter-directive communication.
[00:05:38] <burzum2> i see two ways to solve this, having a service that shares the data or somehow identify and access the parent directive
[00:05:42] *** favetelinguis has joined #angularjs
[00:05:52] <burzum2> im using 1.3 not 2.0
[00:05:54] *** joroc has quit IRC
[00:05:55] <dmack> 2.4 Prefer scope inheritance with namespaces
[00:05:56] *** yts has quit IRC
[00:05:57] <dmack> it's a bad title.
[00:05:58] <jaawerth> roqo: wait, I may have misread your issue - do you need to load this stuff externally or do you just need to make sure your globals are ready by the time your directives need them?
[00:06:01] <dmack> it's not really related to 2.0
[00:06:02] *** faddah has quit IRC
[00:06:11] <Grokling> burzum2: service.
[00:06:17] *** bayousoft has quit IRC
[00:06:23] *** eamonn has quit IRC
[00:06:37] <roqo> the later
[00:06:39] *** phuh has quit IRC
[00:06:41] *** babykosh has quit IRC
[00:06:47] <roqo> jaawerth
[00:06:54] *** babykosh has joined #angularjs
[00:06:55] <areologist> yeah, i would prolly do service.. and/or mediator pattern
[00:07:02] <burzum2> Grokling, so I would create another service that returns a singleton in which I can share my data between the directives?
[00:07:02] *** michaeltresseras has quit IRC
[00:07:04] *** phuh has joined #angularjs
[00:07:09] <jaawerth> roqo: okay. and what are these globals? are they just a few values? does it require some code processing to set 'em up? Are they full on objects with member functions and such?
[00:07:20] *** nfroidure has quit IRC
[00:07:31] <roqo> Full on objects
[00:07:49] <jaawerth> ah. okay, in that case you just gotta write a service
[00:07:50] *** mdedetrich has joined #angularjs
[00:08:23] <areologist> g2g, peace
[00:08:26] *** areologist has quit IRC
[00:08:26] <jaawerth> roqo: Just so I can tailor my response to your knowledge, how new to Angular are you? How familiar with factories and services?
[00:08:40] <jaawerth> like, writing them?
[00:08:43] <roqo> Yeah I have created a service for my directive
[00:08:52] <roqo> I am bout 3-4 weeks new
[00:09:16] <jaawerth> hmm... okay. if you've written a service, it should have initialized well before your directives are running, unless it's doing something asynchronously. is it?
[00:09:37] *** arek_deepinit has quit IRC
[00:09:40] *** brogrammer has joined #angularjs
[00:09:57] *** favetelinguis has quit IRC
[00:10:02] *** FunnyLookinHat has quit IRC
[00:10:07] *** mdedetrich has quit IRC
[00:10:08] <roqo> A service for my directive not the global js object
[00:10:17] <jaawerth> I see
[00:10:18] <brogrammer> trying to mkae the directive work
[00:10:21] *** Linell has quit IRC
[00:10:23] <roqo> So I should create a service for that global huh
[00:10:23] *** chromatome has quit IRC
[00:10:31] *** Johnny13371337 has quit IRC
[00:10:35] *** soee has joined #angularjs
[00:10:39] <roqo> I'll add that to the to-do list then. It eventually needs to be done.
[00:11:13] <jaawerth> roqo: yeah, I would wrap the global in a service. That's kind of what services are for - they're singletons in your app, but they aren't polluting your global scope because they're injectibles. Also, any constructors/initializers will be ready by the time you need them because of the Dependency Injection magic ;-)
[00:11:24] <roqo> This application is fairly large and needs to be high performing so I'm going to spend some time working on that
[00:11:32] <roqo> Thanks for explaining that to me
[00:11:39] *** mven has quit IRC
[00:11:41] <roqo> Makes sense
[00:11:44] *** TheAceOfHearts has joined #angularjs
[00:11:58] *** larsgk has quit IRC
[00:11:59] <roqo> I have like 30 people on my team and it's always a guess as to who to ask lol
[00:12:08] *** faddah has joined #angularjs
[00:12:10] *** snurfery has quit IRC
[00:12:32] *** oste has quit IRC
[00:12:33] *** wa5ted has quit IRC
[00:12:33] *** jmckind has quit IRC
[00:12:34] *** digisky has joined #angularjs
[00:12:35] *** jimobrien has joined #angularjs
[00:13:04] *** Oddman has joined #angularjs
[00:13:39] *** sirkitree|afk is now known as sirkitree|afk|af
[00:13:40] *** digisky1 has quit IRC
[00:14:13] *** CoolDuke has quit IRC
[00:14:24] *** grindmodeon has quit IRC
[00:14:51] *** larsgk has joined #angularjs
[00:15:34] *** MistahKurtz has quit IRC
[00:15:54] *** tommyjam has joined #angularjs
[00:15:54] *** MistahKurtz has joined #angularjs
[00:16:00] *** whunt_ has joined #angularjs
[00:16:11] *** monir has joined #angularjs
[00:16:25] *** dman777_alter has quit IRC
[00:17:15] *** annlewis has joined #angularjs
[00:17:23] *** baweaver has joined #angularjs
[00:17:36] <reavengr1y> data-ng-murder-everyone-on-this-planet
[00:17:53] *** Benstr has quit IRC
[00:18:02] *** digisky1 has joined #angularjs
[00:18:27] <Grokling> data-ng-anger-management
[00:19:02] *** evotuned has joined #angularjs
[00:19:02] *** digisky has quit IRC
[00:19:10] *** Oxynum has quit IRC
[00:19:10] *** whunt has quit IRC
[00:19:37] *** after_r has quit IRC
[00:20:07] *** imehesz has quit IRC
[00:20:28] *** bkuberek_ has joined #angularjs
[00:21:23] *** fairuz1 has quit IRC
[00:21:25] *** tech2_ has quit IRC
[00:21:41] *** michaeltresseras has joined #angularjs
[00:22:04] *** quantax- has joined #angularjs
[00:22:15] *** whitebook has joined #angularjs
[00:22:23] *** jonathanpglick has quit IRC
[00:22:31] *** saucey has joined #angularjs
[00:22:46] *** wa5ted has joined #angularjs
[00:23:31] *** soee has quit IRC
[00:23:59] *** rileylark has joined #angularjs
[00:23:59] *** bkuberek has quit IRC
[00:24:02] *** GTgolfer has quit IRC
[00:24:37] *** GTgolfer has joined #angularjs
[00:24:37] *** bkuberek_ has quit IRC
[00:24:39] *** uru is now known as uru|away
[00:24:58] *** jonathanpglick has joined #angularjs
[00:25:18] *** larsgk has quit IRC
[00:25:54] *** JayFK has quit IRC
[00:26:22] *** soee has joined #angularjs
[00:26:31] *** windsurf_ has quit IRC
[00:26:51] *** coffey has quit IRC
[00:27:11] *** larsgk has joined #angularjs
[00:27:21] *** sonofdirt has quit IRC
[00:27:22] *** faddah has quit IRC
[00:27:43] <hicker> I'm really liking this Angular stuff
[00:28:01] *** sonofdirt has joined #angularjs
[00:28:11] *** qdk has joined #angularjs
[00:28:14] *** jasonp has quit IRC
[00:28:14] *** jiskiras has quit IRC
[00:28:15] *** babykosh has quit IRC
[00:28:45] *** DoubleAW has quit IRC
[00:28:49] <reavengr1y> me too
[00:29:03] *** mdedetrich has joined #angularjs
[00:29:08] *** GTgolfer has quit IRC
[00:29:16] <hicker> Makes me feel like a super genius
[00:29:41] *** faddah has joined #angularjs
[00:29:44] <brogrammer> just wait
[00:29:51] <Grokling> Ah.. the honeymoon period. I remember that fondly!
[00:29:51] *** babykosh has joined #angularjs
[00:30:49] <Grokling> oniijin: Have you got a good method for comparing objects with nested properties?
[00:30:58] <ctanga> haha
[00:30:59] <ctanga> you guys
[00:31:26] <oniijin> grokling usually u just write your own comparator
[00:32:11] <Grokling> I was going down that path, and then remembered that I'm not actually a pioneer! Figured there'd be something from someone smarter than me already thought out..
[00:32:23] *** sonofdirt has quit IRC
[00:32:52] *** H1FuelCell has joined #angularjs
[00:32:58] <ctanga> angular.equals
[00:33:24] *** faddah has quit IRC
[00:33:37] <oniijin> doesnt that just compare if it's the SAME object
[00:33:42] <ctanga> nope
[00:33:47] <ctanga> it does a deep compare
[00:33:52] <oniijin> whaa
[00:33:58] *** prettybigmonster has quit IRC
[00:34:19] <Grokling> angular.equals({a:{b:1}} === {a:{b:1}}) == false..
[00:34:23] *** soee has quit IRC
[00:34:29] *** balr0g has joined #angularjs
[00:34:33] <Grokling> doh. Lemme try that again!
[00:34:35] <ctanga> hah
[00:34:37] *** TuRnaD0 has joined #angularjs
[00:34:54] <oniijin> pretty sure it's comma sep not ===
[00:35:00] <Grokling> true when you use a comma instead of === ;-)
[00:35:17] <oniijin> that's bossy
[00:35:31] <oniijin> tho my answer was assuming he wanted to compare slightly different objects
[00:35:37] <Grokling> Thanks ctanga - that'll do nicely.
[00:35:53] *** danecando has joined #angularjs
[00:36:23] <Grokling> Generally, yes, they'll be different. But in order to prove that we're not just testing that they're the 'same' object, I test with two identical, but not the same objects.
[00:36:42] *** grindmodeon has joined #angularjs
[00:36:43] <balr0g> thanks in advance
[00:37:35] <zomg> balr0g: return will work just fine. Most likely the code never reaches the return if that's not happening
[00:37:41] *** tommyjam has quit IRC
[00:37:51] *** Silne30_ has joined #angularjs
[00:37:51] *** saucey has quit IRC
[00:38:03] *** ron1 has quit IRC
[00:38:05] *** Silne30 has quit IRC
[00:38:07] *** juampy_brb is now known as juampy
[00:38:17] <balr0g> zomg: so, maybe the commented line 5 would do it?
[00:38:52] *** Nijikoku_ has joined #angularjs
[00:39:04] *** vbabiy has quit IRC
[00:39:05] <zomg> Do what?
[00:39:31] *** Nijikoku_ has joined #angularjs
[00:39:41] *** Nijikokun has quit IRC
[00:39:47] <balr0g> zomg: i want to return in line 7, but it seems advancing to line 10 and furthermore... why the line 7 return doesnt stop it?
[00:40:13] <zomg> The only reason for that would be that the condition for the if clause does not evaluate to true
[00:40:15] *** Nijikokun has joined #angularjs
[00:40:20] <zomg> and therefore the whole block is skipped
[00:40:37] <balr0g> zomg: im checking it, and it evaluates true... im checking the response object
[00:40:42] *** digisky1 has quit IRC
[00:40:48] <zomg> so put a breakpoint on line 6 or line 7
[00:40:52] *** josh3336 has quit IRC
[00:41:00] <zomg> it should break there if the if-clause evaluates to true
[00:41:14] <ctanga> jaawerth: it’s for functional programming
[00:41:28] *** zz_night-owl is now known as night-owl
[00:41:44] <jaawerth> yeah I see that... I'd be curious to see how many scenarios they need to pass that in somewhere but whatever ;-)
[00:41:53] <ctanga> I’ll show you
[00:41:53] <balr0g> zomg: checking man...
[00:42:01] *** tarnus_ has joined #angularjs
[00:42:23] *** tarnus has quit IRC
[00:42:23] *** adpirz has joined #angularjs
[00:42:24] <jaawerth> but I see your point
[00:42:42] <jaawerth> I'm just curious where they're using it for functional programming
[00:42:53] *** jlmitch5dev has joined #angularjs
[00:43:55] *** Nijikoku_ has quit IRC
[00:44:09] *** dannyc has joined #angularjs
[00:44:38] <jlmitch5dev> I have a best-practice question. When it comes to filters, is it better to do it inline in an expression (in the html) or using $filter in a controller?
[00:44:43] *** digisky has joined #angularjs
[00:44:47] <ctanga> any’s “is” definition could point to angular.isDefined
[00:44:57] <ctanga> but you get the idea
[00:45:29] *** jjasonclark has quit IRC
[00:45:34] *** codeninja-don has joined #angularjs
[00:45:36] <jaawerth> ah. yeah that's much more elegant
[00:46:06] <wafflej0ck_> jlmitch5dev: readability wise it's better in the HTML (IMO) but you can have tighter control over when the $filter is executed if you're using it in a controller (or elsewhere)
[00:46:14] <jaawerth> I'll have to keep that in mind for the future
[00:46:27] *** shackleford has quit IRC
[00:46:27] *** Fuzzy has joined #angularjs
[00:46:30] <zomg> jlmitch5dev: if you only need it for presentation-related matters, no need for it in controller
[00:46:32] *** martinhill has quit IRC
[00:46:44] *** Nijikokun has quit IRC
[00:46:50] *** adpirz has quit IRC
[00:46:51] <zomg> but yeah in some instances you may want to do some more tricky things with it as wafflej0ck_ said, then it's good =)
[00:46:53] *** Fuzzier has quit IRC
[00:46:53] <jaawerth> ctanga: thanks! Always nice to have some fundamentals pointed out that I may have been ignoring ;-)
[00:47:06] *** digisky1 has joined #angularjs
[00:47:20] <wafflej0ck_> zomg: yeah that's a good way to put it
[00:47:20] *** walden is now known as walden|afk
[00:47:21] <ctanga> I’m new to functional programming, it’s sometimes weird to have your knowledge flipped on its head
[00:47:35] <ctanga> “think about it this way”….
[00:47:37] *** grindmodeon has quit IRC
[00:47:37] <jlmitch5dev> thanks wafflej0ck_ and zomg
[00:47:38] <ctanga> then, woah
[00:47:44] <lebster> wafflej0ck_: in your itholygrail where did you put the templates for idbug?
[00:47:54] *** despai has quit IRC
[00:48:05] <jaawerth> I've done a bunch in LISP but I'm only sort of halfway in the habit in JS
[00:48:17] *** dannyc has quit IRC
[00:48:18] <wafflej0ck_> lebster: in the build process for the itDebugPanel it uses html2js that turns the templates into JS using the $templateCache to make them available
[00:48:25] *** slopjong_ has quit IRC
[00:48:26] *** slopjong has quit IRC
[00:48:32] <wafflej0ck_> lebster: so they're in the itDebugPanel.js file
[00:48:34] <zomg> haskell > all
[00:48:35] <zomg> ;)
[00:48:49] <jaawerth> wafflej0ck_: oh yeah, how's that coming?
[00:49:03] <balr0g> zomg: solved, with the breakpoint i realize about a variable beign 'true' instead of true ... thanks man...
[00:49:34] *** digisky has quit IRC
[00:49:37] <zomg> balr0g: np, the debugger breakpoints are pretty handy for solving these sorts of things :)
[00:49:52] <balr0g> zomg: (y)
[00:50:00] *** joshontheweb has quit IRC
[00:50:00] *** evilaliv3 has joined #angularjs
[00:50:07] <wafflej0ck_> jaawerth: eh it's good I haven't done anything to it in a couple of days really, been tinkering around with gitlab... got that setup now but I have to clean up the groups/projects setup and point my local repos at the new locations (as well as Jenkins config) so got a little backlog of stuff to fix now... going to try to enable OAuth on the gitlab instance too so it's easier for others to join on if I don't want to make things
[00:50:07] <wafflej0ck_> public immediately
[00:50:46] *** vbabiy has joined #angularjs
[00:50:51] <lebster> wafflej0ck_: oh, so its not even in the same project i was in Itholygrail loling to see where itdebug was lol
[00:51:00] <lebster> looking not loling
[00:51:32] <wafflej0ck_> lebster: heh yeah it's just included as a dependency in the itHolyGrail project, the itDebugPanel source is from this other module
[00:52:35] <jaawerth> wafflej0ck_: cool, I cloned it. I'll play around with it if I have time!
[00:52:50] *** TN_AA has quit IRC
[00:52:53] *** monir has quit IRC
[00:53:05] <wafflej0ck_> jaawerth: awesome yeah feedback or pull requests or whatever welcome... it could still use quite a bit of help on the styling side if nothing else
[00:53:22] *** Alina-malina has quit IRC
[00:53:35] *** vassagus has quit IRC
[00:53:39] <jaawerth> the panel or the grail?
[00:53:41] *** bmac has quit IRC
[00:53:46] *** Alina-malina has joined #angularjs
[00:53:47] <jaawerth> I got both ;-)
[00:54:01] <wafflej0ck_> the panel, the grail I just have some things to add in for controlling the inside borders more directly
[00:54:04] *** codeninja-don has quit IRC
[00:54:13] <jaawerth> yeah, plus you probably don't really want to style that much anyway
[00:54:18] <wafflej0ck_> and mobile issues with the overflow:hidden not actualy being hidden for the footer and east parts
[00:54:28] <wafflej0ck_> those are the only problems I'm aware of atm
[00:54:29] <jaawerth> mobile ruins everything
[00:54:35] <wafflej0ck_> yeah it's fine
[00:54:43] <wafflej0ck_> it's for desktop layouts mostly anyhow
[00:54:47] <wafflej0ck_> but would be nice to fix that
[00:55:02] *** AtomicCookie has quit IRC
[00:55:47] *** vbabiy has quit IRC
[00:56:26] *** baweaver has quit IRC
[00:56:44] *** dweave has left #angularjs
[00:56:49] *** samuel02 has joined #angularjs
[00:57:53] *** fedenunez1 has quit IRC
[00:57:55] *** grindmodeon has joined #angularjs
[00:58:10] *** digisky has joined #angularjs
[00:58:12] *** evilaliv3 has quit IRC
[00:59:19] *** knownasilya has quit IRC
[00:59:23] *** digisky1 has quit IRC
[01:00:30] *** Alina-malina has quit IRC
[01:00:43] *** Nijikokun has joined #angularjs
[01:01:34] *** samuel02 has quit IRC
[01:01:47] *** Chubbs has joined #angularjs
[01:02:19] *** fakingfantastic has quit IRC
[01:02:24] *** dcherman has quit IRC
[01:02:31] *** joroc has joined #angularjs
[01:03:18] *** codeninja-don has joined #angularjs
[01:03:30] *** k-dawg has joined #angularjs
[01:04:57] *** enigmarm has quit IRC
[01:05:17] *** minimoo1 has quit IRC
[01:05:28] *** digisky has quit IRC
[01:05:46] *** favetelinguis has joined #angularjs
[01:06:27] *** chrisshattuck has quit IRC
[01:06:31] *** _lexjm has quit IRC
[01:06:40] *** phuh has quit IRC
[01:06:52] *** Fuzzy has quit IRC
[01:06:57] *** _lexjm has joined #angularjs
[01:06:58] <lebster> wafflej0ck_: just curious, do you do back end dev too? what lang?
[01:07:06] *** phuh has joined #angularjs
[01:07:45] *** vectra has quit IRC
[01:07:55] <wafflej0ck_> yeah currently use PHP, have done some Java Spring development too but that's about it for backend stuff, probably thinking Node is the next thing I'll be diving into on the backend, lots of Ruby jobs and devs who praise it but I dunno :)
[01:08:01] *** eBureau has joined #angularjs
[01:08:06] *** baweaver has joined #angularjs
[01:08:12] *** bengillies has joined #angularjs
[01:08:25] *** fakingfantastic has joined #angularjs
[01:08:38] *** digisky has joined #angularjs
[01:09:04] <wafflej0ck_> I've scratched the surface on some Ruby things and it does seem better than PHP for lots of syntax things but I'm also getting by fine with Eloquent ORM (part of laravel now) and Slim PHP framework for routing as is
[01:09:40] <lebster> i see, im .net c#, so ive been making angular sites inside .net projects lol
[01:09:49] *** joshontheweb has joined #angularjs
[01:09:55] *** hicker has quit IRC
[01:09:58] <zomg> Rails is quite streamlined
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:03] <zomg> That's the main thing it has going for it I think
[01:10:07] <zomg> Node's alright
[01:10:28] *** favetelinguis has quit IRC
[01:10:28] <wafflej0ck_> ah yeah I like to try to keep a clean line of separation as much as possible between the back and front but otherwise don't care too much what's on the back side so long as it's RESTful and uses JSON I'm in good shape with angular
[01:10:33] *** chrisbirk has quit IRC
[01:11:05] *** chrisbirk has joined #angularjs
[01:11:15] *** jonr22 has joined #angularjs
[01:11:22] *** windsurf_ has joined #angularjs
[01:11:34] <lebster> wafflej0ck_: yeah, maybe i should start doing that lol
[01:11:44] *** Una has joined #angularjs
[01:11:52] *** tkimmel has quit IRC
[01:12:00] <wafflej0ck_> lebster: yeah makes changing out the front or the back easier if you do
[01:12:01] *** tomzx is now known as tomzx`afk
[01:12:11] <wafflej0ck_> lebster: and debugging in general
[01:12:17] *** snapwich1 has quit IRC
[01:12:21] *** fakingfantastic has quit IRC
[01:12:28] <jaawerth> hell, with angular you can use as many backends as you want
[01:12:32] *** mary5030_ has quit IRC
[01:12:57] *** bengillies has quit IRC
[01:13:01] <jaawerth> I'm trying to throw together an intranet portal right now that, among other things, ties into our Enterprise Content Management system
[01:13:07] *** mary5030 has joined #angularjs
[01:13:08] *** macabre has quit IRC
[01:13:12] *** codeninja-don has quit IRC
[01:13:16] <jaawerth> it's basically a centralized app that calls out to a few different backends
[01:13:24] *** dmack has quit IRC
[01:13:29] *** marcjs has quit IRC
[01:13:56] *** cakirke has joined #angularjs
[01:14:00] *** mjs2600 has quit IRC
[01:14:32] <wafflej0ck_> jaawerth: yeah I worked on the front end for a similar system and the "middle layer" that went to our "data warehouse" that someone wrote ETL scripts to load in data from other systems, same kinda thing but the part for joining in the data wasn't my job (thankfully)
[01:14:39] *** dnakov has quit IRC
[01:14:48] *** digisky1 has joined #angularjs
[01:14:56] *** a3gis has quit IRC
[01:15:05] *** jonr22 has quit IRC
[01:15:10] <cactauz> i have ng-model set to a datetime
[01:15:23] *** digisky has quit IRC
[01:15:31] <cactauz> and my $formatter does not run when it gets updated unless i add
[01:15:31] *** trend has quit IRC
[01:15:42] *** trend has joined #angularjs
[01:15:58] <cactauz> is there some better way to do this
[01:16:17] *** cohitre has quit IRC
[01:16:59] *** eamonn has joined #angularjs
[01:17:32] *** mary5030 has quit IRC
[01:18:00] <Chubbs> Quick question, I have a directive which populates its scope via @, in my linker function I can console.log(scope) and see all my scope properties, but if i try to console.log on scope.src its empty
[01:18:13] <Chubbs> Can anyone help me understand why?
[01:18:16] *** brogrammer has quit IRC
[01:18:19] <zomg> Chubbs: logged objects are "live"
[01:18:28] <zomg> you're seeing the object in a later state
[01:18:28] *** juanpablo_ has quit IRC
[01:18:32] *** prettybigmonster has joined #angularjs
[01:18:40] <Chubbs> so my scope isnt really in scope in the link function
[01:18:58] *** juanpablo_ has joined #angularjs
[01:19:13] <zomg> the scope is there but it doesn't contain the src value at that point
[01:19:23] *** digisky1 has quit IRC
[01:19:37] *** nairys has quit IRC
[01:19:48] <Chubbs> so how do I know when I can be accessing that value? Directives make my head spin sometimes
[01:20:10] <zomg> just use scope.$watch('src' ....
[01:20:24] *** Angusoid has quit IRC
[01:20:29] *** thumpba has joined #angularjs
[01:20:46] *** codeman has joined #angularjs
[01:21:22] *** phzon has joined #angularjs
[01:21:40] *** eamonn has quit IRC
[01:21:44] <Chubbs> I had considered that, but it didn't seem like that was the right method, thanks for your help, ill give it a shot now
[01:21:45] *** k-dawg has quit IRC
[01:21:46] *** vbabiy has joined #angularjs
[01:22:02] *** nairys has joined #angularjs
[01:22:35] *** tfennelly has quit IRC
[01:23:54] *** juanpablo_ has quit IRC
[01:24:34] *** mjs2600 has joined #angularjs
[01:25:03] <stormbytes> i've spent 4 days now on this fucking pos
[01:25:35] *** cthrax has quit IRC
[01:25:50] <stormbytes> one simple fucking thing. ONE thing.
[01:25:57] *** phzon has quit IRC
[01:26:05] <stormbytes> if this were ruby i could have done it a DOZEN times
[01:26:59] *** vbabiy has quit IRC
[01:27:43] <zomg> stormbytes: the books variable is not an array until the data gets loaded, therefore the getBookList function is causing an error because you're attempting to read the `length` property of null, which is not possible
[01:27:45] *** Alina-malina has joined #angularjs
[01:27:46] *** Alina-malina has joined #angularjs
[01:28:04] <zomg> at least that's the immediate issue I'm seeing
[01:28:12] *** oncenull has quit IRC
[01:28:14] <Chubbs> zomg: worked like a charm, tyvm!
[01:28:24] <BahamutWC|Work> heh someone doesn’t like Ruby here :P
[01:28:29] <zomg> Chubbs: np
[01:28:59] <stormbytes> what isn't an array?
[01:29:05] *** disorder20 has quit IRC
[01:29:11] <zomg> stormbytes: the variable `books` in the services.js
[01:29:43] <stormbytes> books is initialized to an empty array
[01:29:54] <Grokling> stormbytes: controller line 7 is async. You're making the assignment on 10 before the async event has returned.
[01:30:03] <zomg> stormbytes: where?
[01:30:05] *** oncenull has joined #angularjs
[01:30:22] *** dacuca has quit IRC
[01:30:36] *** baweaver has quit IRC
[01:30:37] <stormbytes> i thought that was the whole point of .then()
[01:30:50] <stormbytes> doSomething().then(doSomethingElse)
[01:30:55] <Grokling> I don't see any then() in your controller thought?
[01:30:56] *** Silne30_ has quit IRC
[01:30:57] <Grokling> though?
[01:31:08] <stormbytes> are we looking at the same file?
[01:31:16] <zomg> `then` is still async
[01:31:25] <zomg> so it's not going to pause the other code to wait for anything
[01:31:38] <Grokling> Yup. same code.
[01:31:47] <stormbytes> function1().then(function2())
[01:31:57] *** codeninja-don has joined #angularjs
[01:31:58] <stormbytes> my understand is that this is precisely how this is done
[01:32:00] *** asheinfeld has quit IRC
[01:32:02] <stormbytes> personally, i'd rather just use a blocking method
[01:32:07] <stormbytes> ughh why did i take this fucking client
[01:32:13] <zomg> sadly that's not how it works in JS :)
[01:32:20] <stormbytes> i hate prostitution
[01:32:22] <zomg> can't block or the browser UI is going to freeze
[01:32:26] <Grokling> the init function is async. yuo need to do init.then(function(stuff){$scope.things=stuff;})
[01:32:28] *** Guest60253 has joined #angularjs
[01:32:34] *** minimoo1 has joined #angularjs
[01:32:49] <stormbytes> hmm
[01:33:03] <Grokling> Promises are the nuts. You just have to make peace with them..
[01:33:07] <stormbytes> the 'return' value of the init() is what holds back exectution... ah
[01:33:16] <stormbytes> i hate needing money
[01:33:17] <stormbytes> :P
[01:33:20] *** cthrax has joined #angularjs
[01:33:38] <stormbytes> ok, gone refactoring....
[01:33:39] *** quadmasta_ has quit IRC
[01:33:46] * stormbytes tips his hat at the room for enduring his rant
[01:33:56] <Grokling> You need to return your $http call from the init(), then you can 'then' it in your controller.
[01:34:22] *** startupality has quit IRC
[01:34:23] <stormbytes> i'm going to look at the Gadgets plunk again
[01:34:28] <stormbytes> devils' in the details
[01:34:30] *** nemothekid has quit IRC
[01:34:32] <Grokling> :-D
[01:34:34] *** joshuafcole has quit IRC
[01:34:37] *** joroc has quit IRC
[01:34:51] <stormbytes> :) thx. bbl
[01:35:47] *** favetelinguis has joined #angularjs
[01:36:38] *** stirlingw has quit IRC
[01:37:07] *** stormbytes has quit IRC
[01:38:46] *** joshuafcole has joined #angularjs
[01:38:49] <zomg> I like selenium's way of dealing with async
[01:39:01] <zomg> it uses a promise manager or whatever it's called behind the scenes to control the flow
[01:39:15] <zomg> you can actually write code in an almost sync fashion with it
[01:39:18] *** Foxandxss has quit IRC
[01:39:33] *** jjasonclark has joined #angularjs
[01:39:42] *** whitebook has quit IRC
[01:40:22] *** favetelinguis has quit IRC
[01:40:29] <windsurf_> trying to remember from the book i read recently – Is there a model class one should create or just use Object objects and set them on scope and bind to that?
[01:40:33] *** herpless has quit IRC
[01:40:52] *** Una has quit IRC
[01:41:13] <Grokling> windsurf_: Object objects work just fine.
[01:41:19] <windsurf_> thx
[01:41:32] <zomg> What's an Object object? :D
[01:41:35] <Grokling> But don't let that stop you making your own classes of objects if it's useful.
[01:41:47] <Grokling> zomg are you objecting?
[01:41:48] *** richiebkr has quit IRC
[01:42:02] *** spectator has quit IRC
[01:42:27] <Grokling> Apparently objectifying code is demeaning.
[01:42:54] <zomg> that's why you should use functional programming
[01:42:55] *** whunt_ is now known as whunt
[01:42:56] <zomg> =)
[01:42:56] *** joshuafcole has quit IRC
[01:43:01] *** Guest60253 has quit IRC
[01:43:05] *** howitdo has quit IRC
[01:43:10] *** nicholes has quit IRC
[01:43:12] *** {DV8} has joined #angularjs
[01:43:27] *** daslicht has quit IRC
[01:43:42] *** jimobrien has quit IRC
[01:43:51] *** eslaron has joined #angularjs
[01:44:06] *** nemothekid has joined #angularjs
[01:44:40] *** larsgk has quit IRC
[01:44:53] <nairys> anyone know how to dynamically change your column names in ngGrid?
[01:44:56] *** dannyc has joined #angularjs
[01:45:41] <eslaron> Hey ^^
[01:46:15]
<burzum2> when im using this service in two directives they seem to not get a reference? however, the data gets not updated :( http://pastebin.com/JZpbnNWJ any idea why?
[01:46:32] <cthrax> nairys, ngGrid or the new uiGrid?
[01:46:36] <nairys> ngGrid
[01:46:52] <cthrax> ok, can't help then, sorry
[01:46:53] *** GregL has joined #angularjs
[01:47:58] *** Guest79796 has quit IRC
[01:47:59] <nairys> is it easy to do in uigrid?
[01:48:07] <GregL> An assertion was made that one should use extreme caution when using $digest() explicitly in a production app, and that $apply() should be used to trigger the digest instead. What are people's thoughts on this? To me, it seems inefficient: if you know that you only want to digest a particular scope, then why call $apply() which will digest the entire scope tree, which can be very, very large in big apps. The original comment on Stac
[01:48:15] <Grokling> cthrax: you're going to inherit all methods - prototype and otherwise with that?
[01:48:18] <nairys> i will drop this shit like it's so hot if i can do it easily in uigrid
[01:48:55] *** whitebook has joined #angularjs
[01:48:59] *** Nijikoku_ has joined #angularjs
[01:49:23] *** dannyc has quit IRC
[01:49:44] *** thumpba has quit IRC
[01:50:06] *** codeninja-don has quit IRC
[01:50:43] <eslaron> Is it better to have a single rest PUT controller or have multiple with different paths?
[01:50:55] <cthrax> nairys, I think it is pretty easy, I haven't tried it myself, but you ought to be able to just change the display name of the column object
[01:51:00] <cthrax> Grokling, that is the intent
[01:51:35] *** baweaver has joined #angularjs
[01:51:44] <Grokling> cthrax: particularly: Foo.prototype = Object.create(BaseModel.prototype);
[01:51:48] *** Silne30 has joined #angularjs
[01:51:49]
<jlmitch5dev> zomg you inspired me to dig through my fb archives and find the most beautiful thing on the internet again http://fauux.neocities.org/
[01:51:50] *** monir has joined #angularjs
[01:52:02] *** mdedetrich has quit IRC
[01:52:16] *** Nijikokun has quit IRC
[01:52:25] <cthrax> Grokling, so that was my first approach, but you lose all the functionality of the constructor function of the parent
[01:52:36] *** mmealling has joined #angularjs
[01:52:49] *** mdedetrich has joined #angularjs
[01:52:51] *** rho has quit IRC
[01:53:08] *** jMyles has quit IRC
[01:53:26] <Grokling> That is true. BUT, if you overload it, don't all your objects come out with the same class?
[01:53:27] <cthrax> Grokling, unless I'm missing something
[01:53:47] <cthrax> Grokling, that was not what my testing showed, you get a copy of the object inherited from the prototype of the parent
[01:53:51] *** jimobrien has joined #angularjs
[01:53:53] <cthrax> by using Object.create
[01:53:59] *** vassagus has joined #angularjs
[01:54:14] <cthrax> so I can muck around with Child's prototype all I want, without effecting parent
[01:54:34] *** tomzx`afk is now known as tomzx
[01:54:38] <cthrax> at least that's what my testing in console showed
[01:55:02] *** mdedetrich has quit IRC
[01:55:11] <Grokling> Interesting. I'd never thought of using an instance in the Object.create().
[01:55:54] *** mdedetri_ has joined #angularjs
[01:56:25] <cthrax> What would be a little weird is trying to chain those two constructors
[01:56:50] *** howitdo has joined #angularjs
[01:56:58] <cthrax> you're pretty much stuck with default behavior if you create a new instance, which is fine in my case
[01:57:25] <cthrax> Like I say, it came out relatively clean, so I'm quite skeptical
[01:57:42] *** tfennelly has joined #angularjs
[01:58:11] *** richiebkr has joined #angularjs
[01:59:18] *** vassagus has quit IRC
[01:59:27] *** woah has quit IRC
[01:59:59] *** mclenithan has quit IRC
[02:00:38] *** annlewis has quit IRC
[02:00:57] *** mdedetrich has joined #angularjs
[02:01:04] *** mdedetri_ has quit IRC
[02:02:38] *** joroc has joined #angularjs
[02:03:13] <cthrax> nairys, looks like I was wrong about renaming, but you can add and remove columns fairly easily, that might get to where you want
[02:03:20] *** Silne30 has quit IRC
[02:03:22] *** thumpba has joined #angularjs
[02:06:14] *** minimoo1 has quit IRC
[02:06:42] *** phuh has quit IRC
[02:06:57] *** junmin_ has quit IRC
[02:07:11] *** phuh has joined #angularjs
[02:07:21] *** mclenithan has joined #angularjs
[02:07:29] *** jMyles has joined #angularjs
[02:08:08] *** merobertsjr has quit IRC
[02:08:18] *** {DV8} has quit IRC
[02:08:40] *** bayousoft has joined #angularjs
[02:08:50] *** ScioMin has joined #angularjs
[02:09:13] *** JR___ has joined #angularjs
[02:09:22] *** jjasonclark has quit IRC
[02:09:36] *** {DV8} has joined #angularjs
[02:09:40] *** josh3336 has joined #angularjs
[02:09:47] *** AimerPaddle has quit IRC
[02:10:06] *** MistahKurtz has quit IRC
[02:10:45] *** Silne30 has joined #angularjs
[02:10:51] *** michaeltresseras has quit IRC
[02:11:15] *** threesixes has quit IRC
[02:11:16] *** JR___ has quit IRC
[02:11:31] *** JR___ has joined #angularjs
[02:11:57] *** MacWinner has quit IRC
[02:11:58] *** Geertje123_ has quit IRC
[02:12:35] *** mven has joined #angularjs
[02:13:58] *** evotuned has quit IRC
[02:14:47] *** recidive has joined #angularjs
[02:14:50] *** iateadonut has joined #angularjs
[02:15:35] *** hekep has quit IRC
[02:16:14] *** Carlangueitor has joined #angularjs
[02:16:54] *** cakirke has quit IRC
[02:17:22] *** MistahKurtz has joined #angularjs
[02:17:54] *** thumpba has quit IRC
[02:17:58] *** mdedetrich has quit IRC
[02:18:09] *** mdedetrich has joined #angularjs
[02:18:48] *** Guest60253 has joined #angularjs
[02:18:56] *** mmealling has quit IRC
[02:19:13] *** juanpablo_ has joined #angularjs
[02:19:35] <cthrax> click the "add" button
[02:19:44] *** exempla has quit IRC
[02:19:50] <cthrax> <--- super lazy, took one of their examples, so disregard the rest of the code really
[02:20:57] *** motionman has joined #angularjs
[02:21:33] *** Greed has joined #angularjs
[02:21:50] *** jimobrien has quit IRC
[02:22:24] *** bmac has joined #angularjs
[02:22:47] *** jonathanpglick has quit IRC
[02:22:53] *** Fuzzy has joined #angularjs
[02:23:03] <nairys> cthrax yeah i'm around - lemme take a look
[02:23:14] <JR___> 09:10 (JR___) I am trying to port over my project into angularjs. and after porting halfway, I've realised that angular doesn't support jquery.
[02:23:15] <JR___> 09:10 (JR___) is there a way to bypass this?
[02:23:46] *** VinceZa has joined #angularjs
[02:23:46] *** mary5030 has joined #angularjs
[02:23:50] *** juanpablo_ has quit IRC
[02:24:12] *** wa5ted is now known as wa5ted_dinner
[02:24:16] *** monir has quit IRC
[02:24:24] *** after_r has joined #angularjs
[02:24:24] *** marcjs has joined #angularjs
[02:24:27] *** Guest60253 has quit IRC
[02:24:37] *** junmin has joined #angularjs
[02:25:34] <Grokling> JR___: Angular doesn't 'not support' jquery. Just that virtually any time you need jQuery, you're not doing it the angular way.
[02:26:04] *** chaohuanghong has quit IRC
[02:26:23] *** mdedetrich has quit IRC
[02:26:30] *** cthrax has quit IRC
[02:26:36] *** mdedetrich has joined #angularjs
[02:26:50] *** chaohuanghong has joined #angularjs
[02:27:19] *** bmac has quit IRC
[02:27:23] *** chongwish has joined #angularjs
[02:27:49] *** richiebkr has quit IRC
[02:28:03] *** mary5030 has quit IRC
[02:28:50] *** marcjs has quit IRC
[02:28:55] <nairys> cthrax ugh i tried it out but it doesn't work
[02:29:02] <nairys> i guess ngGrid doesn't want to play that way
[02:29:17] <nairys> might have to just switch to uiGrid
[02:29:31] *** richiebkr has joined #angularjs
[02:29:53] *** juampy has quit IRC
[02:30:33] *** VinceZa has quit IRC
[02:31:06] *** edrocks_ has joined #angularjs
[02:31:18] *** adpirz has joined #angularjs
[02:31:31] *** jimobrie_ has joined #angularjs
[02:31:40] *** deanclkclk has joined #angularjs
[02:32:33] *** jimobrie_ has quit IRC
[02:32:37] *** marr has quit IRC
[02:32:54] *** snurfery has joined #angularjs
[02:32:56] *** VinceZa has joined #angularjs
[02:33:10] *** jimobrien has joined #angularjs
[02:33:48] *** richiebkr has quit IRC
[02:33:49] *** fairuz has joined #angularjs
[02:34:02] *** AciD`` has quit IRC
[02:34:30] *** chongwish has quit IRC
[02:34:47] *** rburns has joined #angularjs
[02:35:37] *** adpirz has quit IRC
[02:35:50] *** RobinBAwesome has quit IRC
[02:36:00] *** Chubbs has quit IRC
[02:37:13] *** mmealling has joined #angularjs
[02:37:57] *** TuRnaD0 has quit IRC
[02:38:11] *** Iravan has joined #angularjs
[02:38:18] *** Ansikt has joined #angularjs
[02:41:03] *** junmin has quit IRC
[02:41:49] *** JR___ has quit IRC
[02:42:04] *** ctanga has quit IRC
[02:42:25] *** junmin has joined #angularjs
[02:42:33] *** junmin has joined #angularjs
[02:42:39] *** JR____ has joined #angularjs
[02:44:04] *** morenoh149 has quit IRC
[02:44:10] *** babykosh has quit IRC
[02:45:55] *** Guest60253 has joined #angularjs
[02:46:09] *** helen_ has joined #angularjs
[02:46:31] *** samuel02 has joined #angularjs
[02:47:49] *** jimobrien has quit IRC
[02:49:29] *** Sky[x] has joined #angularjs
[02:49:44] *** kirfu has joined #angularjs
[02:50:17] *** andrewdub has quit IRC
[02:50:28] *** jMyles has quit IRC
[02:50:49] <wafflej0ck_> JR____: yeah it's not for lack of support you can include jQuery before angular and angular will be using that instead of it's internal implmentation of jQLite but the way of using the view as the model and the "source of truth" is not the way to do things with Angular, when using jQuery it's pretty much limited to directives since the model isn't extracted from or derived from the view instead the view is bound to the model
[02:51:25] *** NoNMaDDeN has quit IRC
[02:51:34] *** Guest60253 has quit IRC
[02:51:35] *** doug64k has quit IRC
[02:52:02] *** mven has quit IRC
[02:52:06] *** codeman has quit IRC
[02:52:09] *** samuel02 has quit IRC
[02:52:12] <wafflej0ck_> basically the way people would typically use jQuery they make the assumption that the view contains the data needed to drive any other logic which is basically backwards from how angular does things
[02:52:30] *** snurfery has quit IRC
[02:52:39] *** Joe_knock has left #angularjs
[02:52:45] *** windsurf_ has quit IRC
[02:52:50] *** snurfery has joined #angularjs
[02:52:51] *** Josh has joined #angularjs
[02:53:15] *** Josh is now known as Guest18399
[02:54:02] *** Zeioth has joined #angularjs
[02:55:13] *** shredjs has quit IRC
[02:55:26] *** stormbytes has joined #angularjs
[02:56:45] <wafflej0ck_> and once you start writing directives you ultimately usually find that jQuery is superflous and you can do most of what you need with plain JS (assuming you aren't supporting IE 5.0)
[02:58:07] *** jimobrien has joined #angularjs
[02:58:10] *** JR____ has quit IRC
[02:58:37] *** recidive has quit IRC
[02:59:02] *** Guest18399 has quit IRC
[02:59:35] *** Sky[x] has quit IRC
[03:00:19] *** mayday_jay has joined #angularjs
[03:00:27] *** tkimmel has joined #angularjs
[03:01:00] <davek> People using express backends, how are you currently handling eager loading of nested resources or are you? Do you make three requests for example,if the user wants a "conversation" resource that has "messages" and "participants" or do you make one request to the conversation resource and tell it to "include" the nested resources?
[03:01:06] *** nesquerra has joined #angularjs
[03:01:18] *** nocturne777 has joined #angularjs
[03:02:13] *** nocturne777 has joined #angularjs
[03:02:30] *** minimoo1 has joined #angularjs
[03:02:35] *** jimobrien has quit IRC
[03:03:10] *** eslaron has quit IRC
[03:03:16] *** josh3336 has quit IRC
[03:04:16] *** balr0g has quit IRC
[03:04:37] *** tkimmel has quit IRC
[03:05:06] *** conan_the_destro has quit IRC
[03:05:15] *** merobertsjr has joined #angularjs
[03:05:17] *** joroc has quit IRC
[03:05:24] *** akrikos has joined #angularjs
[03:06:38] *** ScioMin has quit IRC
[03:06:42] *** japhar81 has joined #angularjs
[03:06:42] *** phuh has quit IRC
[03:06:54] *** merobertsjr has quit IRC
[03:07:09] *** phuh has joined #angularjs
[03:07:09] *** VinceZa has quit IRC
[03:07:18] *** mmitchell has quit IRC
[03:08:24] *** Silne30_ has joined #angularjs
[03:09:25] *** baweaver has quit IRC
[03:09:32] *** Silne30 has quit IRC
[03:10:20] *** Alina-malina has quit IRC
[03:11:50] *** mary5030 has joined #angularjs
[03:12:46] *** mjs2600 has quit IRC
[03:13:34] *** dsdeiz has quit IRC
[03:13:34] *** dsdeiz has joined #angularjs
[03:13:42] *** dcherman has joined #angularjs
[03:14:09] *** jeffbalboni has joined #angularjs
[03:14:21] *** mary5030_ has joined #angularjs
[03:14:37] *** RedOrangeZ has quit IRC
[03:14:38] *** Oddman has quit IRC
[03:14:50] *** narutimateum has quit IRC
[03:15:04] *** ctanga has joined #angularjs
[03:15:19] *** mary5030 has quit IRC
[03:15:40] *** kevinxu has joined #angularjs
[03:16:03] *** kevinxu is now known as Guest58384
[03:16:11] *** scriptThis has joined #angularjs
[03:16:56] <snurfery> have you guys seen that video of the grandmas smoking weed for the first time and playing cards against humanity?
[03:17:02] <snurfery> bam
[03:17:31] <snurfery> they're pretty hilarious and old-lady-cute at the same time
[03:17:38] *** shinnya has quit IRC
[03:17:50] <snurfery> ... I'm sure it relates to angular somehow
[03:18:04] *** edzez has quit IRC
[03:18:39] *** busticated has quit IRC
[03:18:40] *** mguillech has quit IRC
[03:18:54] *** mmitchell has joined #angularjs
[03:19:42] *** rhp has quit IRC
[03:20:04] *** juanpablo_ has joined #angularjs
[03:20:16] *** boneskull has joined #angularjs
[03:20:17] *** dimas has quit IRC
[03:21:53] *** ionpulse has joined #angularjs
[03:22:03] *** monir has joined #angularjs
[03:22:17] *** caitp has quit IRC
[03:24:26] *** MrBaboon has quit IRC
[03:24:30] *** junmin has quit IRC
[03:24:42] *** Alina-malina has joined #angularjs
[03:25:08] <stylemistake> angular == weed
[03:25:30] *** juanpablo_ has quit IRC
[03:25:55] *** Silne30_ has quit IRC
[03:26:18] *** hmsimha_ has joined #angularjs
[03:29:20] *** evotuned has joined #angularjs
[03:29:20] *** rburns has quit IRC
[03:29:48] *** rburns has joined #angularjs
[03:30:07] *** busticated has joined #angularjs
[03:30:09] *** jeremymarc has quit IRC
[03:30:10] *** balr0g has joined #angularjs
[03:30:11] *** frem_ has joined #angularjs
[03:30:13] *** dnull has joined #angularjs
[03:30:38] *** wallerdev has quit IRC
[03:31:08] *** sinclair has joined #angularjs
[03:33:11] *** jimmyy has joined #angularjs
[03:33:14] *** Una has joined #angularjs
[03:33:20] *** baweaver has joined #angularjs
[03:33:25] *** jimmyy has quit IRC
[03:33:27] *** mclenithan has quit IRC
[03:33:36] *** wallerdev has joined #angularjs
[03:33:40] *** dannyc has joined #angularjs
[03:33:46] *** jimmyy has joined #angularjs
[03:34:00] *** memento_ has quit IRC
[03:34:11] *** kohgpat has joined #angularjs
[03:34:13] *** ngeksyo has quit IRC
[03:34:19] *** josh-k has quit IRC
[03:34:32] *** jimmyy has joined #angularjs
[03:35:14] *** frem has quit IRC
[03:35:14] *** frem_ is now known as frem
[03:35:39] *** frem_ has joined #angularjs
[03:35:58] *** conner_ has quit IRC
[03:37:01] <dnull> isAfter()
[03:37:17] *** caitp has joined #angularjs
[03:38:12] *** dannyc has quit IRC
[03:38:37] *** Aerospark has joined #angularjs
[03:38:38] *** Josh has joined #angularjs
[03:38:54] *** nairys has quit IRC
[03:39:01] *** Josh is now known as Guest47570
[03:39:03] *** ciwolsey has quit IRC
[03:40:01] *** junmin has joined #angularjs
[03:40:08] *** opiates has quit IRC
[03:40:29] *** wa5ted_dinner is now known as wa5ted
[03:40:30] *** talnti has quit IRC
[03:41:04] *** themime has joined #angularjs
[03:41:07] *** Oddman has joined #angularjs
[03:41:13] *** frem_ has quit IRC
[03:42:35] *** gunn has quit IRC
[03:43:04] <themime> god just spend forever debugging "ui-router" module not found
[03:43:13] <themime> ...its a dot not a dash
[03:43:27] <snurfery> oooo that hurts
[03:43:31] *** codeninja-don has joined #angularjs
[03:43:52] <fairuz> heh
[03:44:40] *** TyrfingMjolnir has joined #angularjs
[03:44:49] *** gunn has joined #angularjs
[03:45:30] *** jtimon has quit IRC
[03:46:07] *** kirfu has quit IRC
[03:46:10] *** patrick99e99 has quit IRC
[03:46:12] *** Oddman has quit IRC
[03:46:33] <edrocks_> yea module issues suck
[03:46:35] <themime> and then i spent a long time yesterday debugging module "app" not found because i was using enclosures in my files like jerkbagpapa and i was closing them }); instead of })();
[03:47:27] <themime> but now i know. and i can help people at work write good code!
[03:47:55] *** Fuzzier has joined #angularjs
[03:47:58] *** edrocks_ has quit IRC
[03:48:18] *** thumpba has joined #angularjs
[03:48:28] *** Sawbones has quit IRC
[03:49:07] *** helen_ has quit IRC
[03:49:44] *** mmitchell has quit IRC
[03:50:42] *** Fuzzy has quit IRC
[03:50:48] *** recidive has joined #angularjs
[03:51:55] *** NoNMaDDeN has joined #angularjs
[03:53:05] *** VinceZa has joined #angularjs
[03:53:54] *** nemothekid has quit IRC
[03:54:10] *** baweaver has quit IRC
[03:54:32] <themime> i really like gulp now. people made it waaay scarier than it is
[03:55:45] *** whunt has quit IRC
[03:55:53] *** JR____ has joined #angularjs
[03:56:00] *** JR___ has joined #angularjs
[03:56:06] *** roadrunneratwast has joined #angularjs
[03:56:10] *** JR___ has quit IRC
[03:56:28] *** Guest47570 has quit IRC
[03:56:45] *** Nijikokun has joined #angularjs
[03:56:59] *** NoNMaDDeN has quit IRC
[03:57:12] *** chrisbirk has quit IRC
[03:57:45] *** monir has quit IRC
[03:57:51] *** VinceZa has quit IRC
[03:57:53] *** threesixes has joined #angularjs
[03:57:59] *** oncenull has quit IRC
[03:58:01] <JR____> does angular allow me to add these?
[03:58:09] *** chrisbirk has joined #angularjs
[03:58:21] <themime> hm does order matter for modules? i just concat'd my JS and now my config is module('app') and then the next block is module('app,[]) - this seems kinda silly and like it would happen a lot for concating...
[03:58:41] *** Nijikoku_ has quit IRC
[03:59:12] *** recidive has quit IRC
[03:59:18] <snurfery> I always load my main app first, the one that does module('app', [])
[03:59:19] *** teo_ has joined #angularjs
[03:59:29] *** mary5030_ has quit IRC
[03:59:34] *** TyrfingMjolnir has quit IRC
[03:59:45] *** teo_ has left #angularjs
[03:59:50] *** jimobrien has joined #angularjs
[03:59:53] <snurfery> at least first amongst my own scripts... all the vendor stuff comes before
[03:59:54] <themime> i do too, i have my module script before my config scrip, but my concatter in gulp is putting the config file first and i think its messingit up. it just seems like a common issue...
[04:00:04] *** mary5030 has joined #angularjs
[04:00:05] *** rburns has quit IRC
[04:00:22] *** TyrfingMjolnir has joined #angularjs
[04:00:24] <themime> JR____: you can create directives and services that wrap external behavior - so angularjs's suitablity aaannnd im ganna stop cause wafflej0ck_ 's got it
[04:00:27] <snurfery> weird, I'd think it would just go in the order it finds them
[04:00:38] <snurfery> heh
[04:00:41] <themime> i think it is - alphabetical :(
[04:00:43] *** rburns has joined #angularjs
[04:00:46] *** ctanga has quit IRC
[04:00:55] <snurfery> that's pretty wild
[04:00:59] *** rchavik has joined #angularjs
[04:01:03] <themime> seems odd that no one else has this issue
[04:01:08] <jlmitch5dev> that's the strangest thing
[04:01:14] <wafflej0ck_> JR____: yeah if you can't find some previous work then typically it means you'll be writing a directive, in some cases you can just wrap the existing library and expose certain pieces of functionality, in other cases people just rewrite the functionality as custom directives
[04:01:14] <themime> which makes me wonder if the problem is actually elsewhere
[04:01:50] *** trend has quit IRC
[04:02:43] *** TyrfingMjolnir has quit IRC
[04:03:12] <snurfery> looks like you're right, but there are a couple of workarounds
[04:03:16] <wafflej0ck_> JR____: wrt metric graphics I haven't seen previous work with angular with this but you could use highcharts or google charts or d3js, just google any of these + angular and you'll find previous work
[04:03:31] *** roadrunneratwast has quit IRC
[04:03:35] <snurfery> maybe you manually include the app.js first by full path, then include all the rest with *.js
[04:04:39] *** mary5030 has quit IRC
[04:04:50] <themime> snurfery: awesome, my googlefu has been weakened by physical labor today. i appreciate the link
[04:05:05] <snurfery> no prob, I feel ya
[04:05:09] *** hmsimha_ has quit IRC
[04:05:11] *** nycdevgirl has joined #angularjs
[04:05:35] *** jimobrien has quit IRC
[04:06:17] *** dra has quit IRC
[04:06:19] <themime> hm is this a gulp thing then
[04:06:23] <themime> seems like it would like anyone concatting
[04:06:30] <themime> do people not minify as much as i thought?
[04:06:36] <themime> minify/concat
[04:06:47] *** Fuzzy has joined #angularjs
[04:07:00] *** patrick__ has quit IRC
[04:07:05] <JR____> are directives easy to implement into angular js? I'm still pretty new to angular.
[04:07:10] *** Fuzzy has quit IRC
[04:07:16] *** wsmoak has quit IRC
[04:07:17] <caitp> they're as easy or as hard as you want
[04:07:20] *** dcherman has quit IRC
[04:07:24] <caitp> some things are sort of awkward
[04:07:29] <snurfery> I think gulp has a slightly different strategy than I'm used to seeing, coming from the bower/usemin POV
[04:07:29] <caitp> but most use cases are pretty simple
[04:07:48] *** Fuzzier has quit IRC
[04:07:51] <caitp> JR____, I'll show you my first angular directive ever, sec
[04:08:24] <themime> JR____: i would put stuff off and always regret it because everything was much easier than i thought. the community here is awesome too. make a plunker and theres a good chance youll have a response within a minute or two
[04:08:48] <themime> snurfery: first reponse on that stackov link was actually using grunt haha
[04:09:02] <snurfery> yeah
[04:09:04] <caitp> and arguably it was awful
[04:09:09] <caitp> but it worked and did its job :d
[04:10:07] <snurfery> I think the strategy of just manually specifying full path to your app.js (where the module('app', []) is) before the "include *.js" should work
[04:10:17] <snurfery> forgive me for munging the real syntax
[04:10:27] * snurfery munges
[04:10:50] <themime> hahah munging the real syntax. where are you from?
[04:10:57] <themime> sounds like a british word
[04:10:57] <snurfery> LA
[04:11:00] <snurfery> heh
[04:11:07] <themime> maybe its because they use "minge" and thats what i thought it was at first
[04:11:09] <caitp> he's saying munge, not minge
[04:11:12] <themime> hahaha
[04:11:13] *** Sontakey has joined #angularjs
[04:11:14] <snurfery> stupid Dr. Who affecting my vocab
[04:11:15] <snurfery> ah
[04:11:26] <JR____> caitp: oh. it looks simple enough. but your directive looks like a template. what if i wanted to include a javascript instead of just html?
[04:11:48] <caitp> JR____, so basically your template link function and controller are where you'd put JS associated with it
[04:11:52] <caitp> er
[04:11:56] <caitp> directive link function(s)*
[04:12:01] <themime> JR____: the javascript would be no the scope
[04:12:04] *** Hackwar1 has joined #angularjs
[04:12:04] <themime> on*
[04:12:28] <themime> JR____: erm i didn't click the link actually but you can have JS and html with a directive, including shared data between it and other states/pages of your application
[04:12:35] *** TyrfingMjolnir has joined #angularjs
[04:12:39] <themime> shared data/functionality
[04:12:44] <snurfery> wow I just had to look up the definition for minge. was not expecting that.
[04:12:52] <themime> haha
[04:13:00] *** wallerdev has quit IRC
[04:13:13] <caitp> hows the minge doing snurfery?
[04:13:26] <themime> oh oops didn't realize caitp already answered my question
[04:13:28] *** Hackwar has quit IRC
[04:13:31] <caitp> (kidding kidding, i've been unprofessional enough lately :p)
[04:13:34] <snurfery> freshly clipped oi
[04:13:35] <themime> er answered JR____ 's question whew been a long day
[04:13:37] <snurfery> heh
[04:13:48] *** mdedetrich has quit IRC
[04:13:57] *** busticated has quit IRC
[04:14:21] <themime> snurfery: i can actually handle it in the gulp file itself it looks like
[04:14:26] <themime> by using globs in a clever way
[04:14:58] *** mdedetrich has joined #angularjs
[04:15:07] <snurfery> right, wouldn't it be the other way around though?
[04:15:08] *** morenoh149 has joined #angularjs
[04:15:13] <snurfery> to make sure you include your app.js first?
[04:15:21] <themime> yea haha, just copy/pasted from their example
[04:15:26] <snurfery> (that's what I was suggesting earlier)
[04:15:30] <snurfery> ah cool
[04:15:45] <themime> oooh okay, i thought you were saying on my index page, like, have my module but then have the concat'd files after that
[04:15:48] <themime> oh man i just realized though
[04:15:58] <themime> oh wait i can do like
[04:16:08] <snurfery> yes you can!
[04:16:11] * snurfery holds up a sign
[04:16:17] <themime> '/src/js/*.module.js
[04:16:27] <themime> and load all my modules first
[04:16:34] <snurfery> saucy
[04:16:44] <themime> because i realized id get the same issue for all the other ones
[04:16:59] <themime> and i don't want to manually name each one in the gulp file, i might as well not concat anything then haha
[04:17:00] *** mary5030 has joined #angularjs
[04:17:03] <snurfery> ah interesting. good thing you have a sane naming standard
[04:17:45] *** tsalb has quit IRC
[04:17:48] <themime> yea ive spent a lot of time adapting john papa's guide. it matched up with everything i had been learning from experienced and had recently read so im creating a workflow with that as a base
[04:17:57] <themime> from experience*
[04:18:15] <snurfery> I've seen that mentioned a ton over the past 2 days
[04:18:26] <snurfery> dunno if it was you talking about it a lot, or a bunch of other ppl
[04:18:28] <snurfery> is it new-ish?
[04:18:38] <themime> someone linked it here like 3ish weeks ago
[04:18:44] *** MistahKurtz has quit IRC
[04:18:52] <themime> and it was just...the RIGHT time for me to discover it
[04:19:03] *** mguillech has joined #angularjs
[04:19:14] <themime> with what i was doing at work and home projects. just great timing. so im exploring it. and i link it to people with questions related to style
[04:19:26] *** codeninja-don has quit IRC
[04:19:38] <snurfery> interesting, I'll have to give it a read. I've got my own little style, but I'm sure it could be improved
[04:20:14] *** adpirz has joined #angularjs
[04:20:52] *** jimobrien has joined #angularjs
[04:21:09] <themime> im not sure who initially linked it but i paste it pretty freely because he clearly spent a lot of time on something very few people spend time on, and he goes into great on the why's and they mostly match up with my needs and observations. id highly recommend giving it a read while thinking about WHY you do what you do
[04:21:23] *** Ephemeral has quit IRC
[04:22:00] <themime> i always ask myself, "do i do it this way because its familiar, im avoiding conflict with a coworker, or is it because it creates the most efficient work environment" ?
[04:22:18] *** say2joe has quit IRC
[04:23:07] *** Ephemeral has joined #angularjs
[04:23:35] *** mguillech has quit IRC
[04:24:23] <themime> sometimes coworker conflicts...well work is work and sometimes you can't do everything the way youd like haha
[04:24:27] *** adpirz has quit IRC
[04:25:05] *** nemothekid has joined #angularjs
[04:25:29] *** akrikos has quit IRC
[04:26:17] *** eBureau has quit IRC
[04:26:24] *** iateadonut has left #angularjs
[04:28:28] <jlmitch5dev> can you link me to this?
[04:29:15] *** phuh has quit IRC
[04:29:32] *** jimobrien has quit IRC
[04:29:41] *** phuh has joined #angularjs
[04:29:56] <dnull> isAfter()
[04:31:58] <themime> snurfery: hm so i realized ill have to have two files and two gulp tasks right? end up with module.js and everythinelse.js ?
[04:32:03] <themime> does that sounds right
[04:32:06] <jlmitch5dev> thanks themime!
[04:32:06] *** Josh has joined #angularjs
[04:32:16] <themime> jlmitch5dev: np
[04:32:30] *** Josh is now known as Guest25327
[04:33:30] <JR____> alright thanks. (: i'll try to make directives which work with my javascript plugins thanks.
[04:33:53] <JR____> can i think of directives like hooks for wordpress?
[04:33:57] *** cotko has quit IRC
[04:33:59] *** codeninja-don has joined #angularjs
[04:34:20] *** conner_ has joined #angularjs
[04:34:40] *** mven has joined #angularjs
[04:34:59] *** stirlingw has joined #angularjs
[04:35:39] *** favetelinguis has joined #angularjs
[04:36:30] *** VinceZa has joined #angularjs
[04:37:03] *** samuel02 has joined #angularjs
[04:37:09] *** lewdev has quit IRC
[04:38:07] *** hmsimha_ has joined #angularjs
[04:38:08] *** josh3336 has joined #angularjs
[04:38:53] *** kp666 has joined #angularjs
[04:38:53] *** conner_ has quit IRC
[04:39:27] *** gunn has quit IRC
[04:39:30] *** stirlingw has quit IRC
[04:39:35] <themime> i always picture them as giant metal plates you weld onto your app's chassis
[04:40:14] <snurfery> heh
[04:40:23] <themime> and it can leech data from the chassis
[04:40:45] <themime> watch/observe
[04:40:47] *** vassagus has joined #angularjs
[04:40:47] *** favetelinguis has quit IRC
[04:40:56] <themime> or whatever specific piece its welded to
[04:41:16] <themime> i can't believe i get paid to write code
[04:41:20] *** epantzar has joined #angularjs
[04:41:23] *** gunn has joined #angularjs
[04:42:00] *** samuel02 has quit IRC
[04:42:13] *** TheAceOfHearts has quit IRC
[04:42:35] <themime> we build things so abstract you can't have a physical representation of it, yet so exact they can do complicated real world tasks. SO COOL
[04:44:58] <epantzar> :D
[04:45:34] *** vassagus has quit IRC
[04:45:42] *** bengillies has joined #angularjs
[04:47:59] *** apertoire has joined #angularjs
[04:49:33] *** NoNMaDDeN has joined #angularjs
[04:50:23] *** bengillies has quit IRC
[04:50:59] *** VinceZa has quit IRC
[04:51:52] *** jimobrien has joined #angularjs
[04:52:16] *** mdedetrich has quit IRC
[04:52:23] *** apertoire has quit IRC
[04:52:57] *** mdedetrich has joined #angularjs
[04:53:24] *** Cwl97045 has quit IRC
[04:54:20] <JR____> lol
[04:54:28] *** whitebook has quit IRC
[04:54:29] *** cads has quit IRC
[04:54:33] <JR____> can you have another anology? >< I can't wrap that around my head lol
[04:55:57] <JR____> themime: I'm using sailsjs for my backend. and i'm using angular for my front end. so sailsjs are the organs to the monkey. angularjs is the skin. And what's directive?
[04:56:17] *** monir has joined #angularjs
[04:56:27] <JR____> themime: can i say tatoos? ><
[04:56:45] <themime> yes!
[04:56:53] <themime> hair
[04:56:58] <themime> etc
[04:56:58] <themime> haha
[04:57:00] <snurfery> joints?
[04:57:34] <JR____> i hope directives can hook up to my angular well.
[04:58:21] <JR____> well. back to study.
[04:58:32] <JR____> it's my exam week. and i haven't been studying.
[04:58:44] <JR____> i'm loving web development so much. it's just too addictive.
[04:58:45] <JR____> :X
[04:59:00] <JR____> and btw, who still uses irc. i thought it's 2014.
[04:59:02] <JR____> it
[04:59:14] <JR____> it's interesting to see so many people still uses it! we sure are geeks :X
[04:59:34] *** zanea is now known as zanea|away
[04:59:40] <jlmitch5dev> JR____ good luck on your exams
[04:59:45] <snurfery> I know right. who uses tcp anymore either? jeez
[04:59:48] <snurfery> =P
[05:00:14] *** jMyles has joined #angularjs
[05:00:19] <themime> what else are we going to use? fuck facebook
[05:00:22] *** josh-k has joined #angularjs
[05:00:24] <themime> jabber?
[05:01:02] <JR____> jlmitch5dev: ty. (:
[05:01:15] *** codeninja-don has quit IRC
[05:01:56] <themime> irc is a classic
[05:01:58] *** FunnyLookinHat has joined #angularjs
[05:01:59] *** advy has joined #angularjs
[05:02:00] *** codeninja-don has joined #angularjs
[05:02:05] *** jeffbalboni has quit IRC
[05:02:11] *** trend has joined #angularjs
[05:02:11] <themime> hell there are still active MUDs
[05:02:32] <snurfery> omg I used to love MUDs
[05:02:38] <snurfery> that was my first video game addiction
[05:02:53] <snurfery> Gemstone III, DragonRealms, all that play.net stuff
[05:03:02] <snurfery> (and the freebies)
[05:03:06] <themime> i had a friend who was huge into dragonRealms, i remember that one!
[05:03:17] *** agrajag42 has joined #angularjs
[05:03:24] <themime> and i def saw gemstone III
[05:04:13] *** chrisshattuck has joined #angularjs
[05:04:17] <snurfery> it was so good
[05:05:00] *** VinceZa has joined #angularjs
[05:05:00] <jlmitch5dev> we should set up an angular second life room (or whatever they call them on second life)
[05:05:09] *** VinceZa has quit IRC
[05:05:29] <davek> Despair Zones.
[05:05:31] <themime> that would literally be the only reason i would download second life
[05:05:39] <davek> Loneliness Localities.
[05:05:48] <themime> haha
[05:06:08] *** Left_Turn has quit IRC
[05:06:50] *** albivian has quit IRC
[05:07:00] *** Milkweed has quit IRC
[05:07:31] *** trend has quit IRC
[05:07:55] *** kirfu has joined #angularjs
[05:08:51] <davek> Fun minimal case for networked client-server interaction in games.
[05:09:06] *** juanpablo_ has joined #angularjs
[05:09:27] *** sneakertack has joined #angularjs
[05:09:35] *** nesquerra has quit IRC
[05:10:10] <themime> oh nice
[05:11:15] *** MrBaboon has joined #angularjs
[05:11:16] <themime> oh in C++, man that was like horrifying after all the js files lol and doing node/express
[05:11:38] <themime> davek: need to warn people before posting that kind of stuff! :P
[05:13:16] *** benschwarz has joined #angularjs
[05:14:18] *** juanpablo_ has quit IRC
[05:17:55] *** jimobrien has quit IRC
[05:18:54] <davek> jknotsorry
[05:18:58] <themime> haha god my eyes
[05:19:22] <JR____> i hate cpp. i hate pointers. i hate low level programming. ><
[05:19:29] <themime> ^ is that ever worth the efficiency now :(
[05:19:37] <themime> what does it mean?!
[05:20:07] <themime> you know i guess part of that is naming conventions
[05:22:24] *** patrickarlt has joined #angularjs
[05:22:24] *** dannyc has joined #angularjs
[05:23:18] *** kirfu has quit IRC
[05:23:27] *** whitebook has joined #angularjs
[05:23:39] <themime> snurfery: it worked!
[05:23:50] <snurfery> huzzah!
[05:24:22] *** rileylark has quit IRC
[05:24:22] *** rburns has quit IRC
[05:24:31] <themime> snurfery: thanks again for the link, drastically improved my day
[05:24:37] *** rileylark has joined #angularjs
[05:24:38] *** prbc has joined #angularjs
[05:24:39] <snurfery> shweet
[05:24:50] *** rburns has joined #angularjs
[05:24:54] <snurfery> I was wrastlin' with Grunt for the first time over the past couple days
[05:25:07] *** rileylark has quit IRC
[05:25:08] <snurfery> up till this point it's just been "whatever Yeoman said was best for me"
[05:25:11] <themime> any specific reason you chose it over gulp?
[05:25:13] *** woah has joined #angularjs
[05:25:21] <snurfery> ignorance, yeominability
[05:25:55] <themime> im still kinda confused at what yeoman is. i explored yo a little bit but can't even remember what it does.i just remember mongoose maybe replacing it?
[05:26:14] <themime> oh and deciding to write my own over generating CRUD stuff
[05:26:17] <snurfery> I'm more of a backend guy, so the past 6 months have been my first serious dive into full time js framework stuff
[05:26:17] <prbc> Im a liittle bit confuse about tests. There are so many tools. Im using mocha and karma to test backend and frontend. Do I need protractor to E2E test? How I can run all these kind of tests with one line command?
[05:27:02] *** dannyc has quit IRC
[05:27:17] <snurfery> yeoman is a scaffolding tool... it sets up a base skeleton for your site using "recipes", so you can just run a command like "yo angular" and it'll setup grunt, compass, angular, bower, npm, a default app/controller/etc
[05:27:26] <themime> prbc: gulp/grunt i think are used to run karma ->jasmine. my understanding is that mocha and karma do the same thing. however im pretty new to gulp and ive not had a successful unit test haha
[05:27:36] *** jimobrie_ has joined #angularjs
[05:27:57] <snurfery> that was perfect for my non-frontend-ass, it got me dev'ing like a pro with zero effort
[05:28:05] *** burzum has joined #angularjs
[05:28:05] <JR____> i guess you can use gulp the same way yeoman generates your skeleton
[05:28:17] <JR____> you can write a script that creates your skeleton
[05:28:17] <themime> prbc: but ive read a lot on it and it seems like people use automation tools like gulp/grunt to run configs for their test runners. and yes protractor can do e2e, not sure if karma/mocha have that support for plugins or not
[05:28:34] <themime> oooh okay thats cool
[05:28:53] *** bkuberek has joined #angularjs
[05:28:54] <prbc> themime: thank you!
[05:29:04] <JR____> i hope meanjs will use gulpjs instead.
[05:29:10] *** phishy has quit IRC
[05:29:14] <JR____> i think 1.3 you can choose to use gulpjs
[05:29:16] *** phuh has quit IRC
[05:29:27] <themime> oh right i kept seeing grunt and already knew i wanted gulp so i think i avoided yo and decided to write custom mongoose routes
[05:29:38] <JR____> but 1.3 is code breaking ): you have to change the way your put your files in mean directories.
[05:29:41] *** phuh has joined #angularjs
[05:29:44] *** Aliks has quit IRC
[05:29:54] <themime> snurfery: that sounds faster than my initial start, i refused to use npm/bower and had a java backend
[05:30:20] *** Aliks has joined #angularjs
[05:30:26] *** burzum2 has quit IRC
[05:30:31] <themime> snurfery: i was trying x10 new ideas at the same time though so i had to ease into some of them
[05:31:02] <snurfery> yeah I was watching some angular best practices video and the guy was like "seriously, just use yeoman" and explained why. I was sold
[05:31:16] <snurfery> "... so you're saying I don't have to learn all that crap myself? SOLD"
[05:32:07] <JR____> but yeoman is still no magic
[05:32:12] *** jimobrie_ has quit IRC
[05:32:13] *** peterp has joined #angularjs
[05:32:19] *** lemur has joined #angularjs
[05:32:30] <JR____> you still have to adhere to the best practices.
[05:32:48] <snurfery> sure, it's not going to code for me
[05:33:23] <peterp> Hi guys, I'm currently filtering a bunch of different items through numerous dropdowns. I'm looking to query parameters to have one of those items show up on the same page. Is that possible?
[05:33:27] *** vbabiy has joined #angularjs
[05:33:46] <snurfery> but wiring up compass + livereload + grunt + usemin + ngmin + uglify + deploy commands + angular + bootstrap in one command is the closest thing to magic I know
[05:33:59] *** vbabiy has quit IRC
[05:34:35] <peterp> snurfery then you have not heard of Brunch
[05:34:37] *** Aliks has quit IRC
[05:34:37] *** tomengland_mbp has joined #angularjs
[05:34:49] *** junmin has quit IRC
[05:34:54]
<peterp> http://brunch.io/ came out before gulp + grunt, but its slowly making its way up
[05:34:55] <snurfery> is that why everyone has hangovers on Monday morning?
[05:35:00] <peterp> Plugin-based architecture
[05:35:17] *** nesquerra has joined #angularjs
[05:35:18] <peterp> Unlike Grunt where if one thing breaks, you're out of luck.
[05:35:26] <peterp> It has been amazingly magical
[05:35:39] *** favetelinguis has joined #angularjs
[05:36:17] <snurfery> I have slightly different priorities
[05:36:38] <snurfery> "whatever's most popular with the most tutorials/documention" <-- my winner
[05:36:43] <snurfery> =)
[05:36:51] <oniijin> isnt brunch what u promise beezies so they stay over
[05:37:14] *** whunt has joined #angularjs
[05:37:19] <snurfery> "omg bottomless mimosas"
[05:37:53] <oniijin> they fall for it every time
[05:38:01] <peterp> Bash all you want, but you will fail with grunt
[05:38:12] *** zivester has joined #angularjs
[05:38:56] <wafflej0ck_> peterp: eh I've managed to wrangle grunt but I don't suggest that people try :) will be hopefully switching over to gulp pretty soon here, haven't seen brunch.io though
[05:38:59] *** ChadStrat has joined #angularjs
[05:39:00] *** prbc has quit IRC
[05:39:39] *** nesquerra has quit IRC
[05:39:49] <peterp> wafflej0ck_ we've had our experience with Grunt + Gulp. with an SOA and 15 different apps under it, it gets frustrating to update grunt files for everything. Especially when something breaks. You *can* add logic to a gruntfile, but that's when you know you're going off the deep end
[05:40:13] <peterp> So we gave brunch a shot, and haven't looked back since
[05:40:15] <themime> whats with the .io trend
[05:40:18] <wafflej0ck_> peterp: heh yeah I hear ya
[05:40:21] *** favetelinguis has quit IRC
[05:40:31] <wafflej0ck_> themime: think it's relatively new to domains
[05:40:33] <snurfery> saying I have different priorities ain't a bash
[05:40:36] <wafflej0ck_> themime: so all the .com's are gone
[05:40:36] <snurfery> lol
[05:41:02] <themime> wafflej0ck_: seems specific to web dev sites
[05:41:04] <wafflej0ck_> themime: er lots of good ones are taken so .io is apparently some other top level domain or whatever it's considered that has more names available
[05:41:15] <wafflej0ck_> themime: eh well input outpu
[05:41:18] <wafflej0ck_> output*
[05:41:28] <wafflej0ck_> devs like that kind of geeky thing too
[05:41:29] <snurfery> it might be time for an outpu
[05:41:32] <snurfery> dinner was heavy
[05:41:37] <wafflej0ck_> haha
[05:41:40] <ChadStrat> lol
[05:41:42] <wafflej0ck_> better than an inpu
[05:41:46] <snurfery> lol
[05:41:47] <ChadStrat> yikes
[05:42:02] <snurfery> dammit I was drinking water and almost choked haha
[05:42:07] *** jmichaelward has joined #angularjs
[05:42:18] * ChadStrat 's drinking Apple Pie Moonshine
[05:42:23] *** patrick99e99 has joined #angularjs
[05:42:37] <wafflej0ck_> sounds pretty good
[05:42:39] * snurfery 's googling Apple Pie Moonshine
[05:43:00] <ChadStrat> it's week...but so tasty on a winter night....errr....late fall....errr.....whatever
[05:43:15] <wafflej0ck_> ya it's cold
[05:43:24] * themime cant drink, has flowers to smoke instead
[05:43:31] <themime> just as fine on a cold night :)
[05:43:40] <themime> we can definitely agree its cold
[05:43:42] <themime> haha
[05:43:44] <ChadStrat> lol
[05:44:00] <ChadStrat> I made a pisscycle
[05:44:37] *** mayday_jay has quit IRC
[05:45:23] <snurfery> anyone in the tri-state area is superfacked right now
[05:45:32] <snurfery> 6 feet of snow in one day in buffalo?
[05:45:39] <ChadStrat> I used to live in Ohio. Glad I don't now.
[05:45:50] <snurfery> I'll be here in LA next to an open window with a t-shirt on, thank you.
[05:45:55] <themime> haha
[05:46:33] *** oncenull has joined #angularjs
[05:46:42] *** patrick99e99 has quit IRC
[05:46:46] <JR____> how do you do that
[05:46:47] *** Una has quit IRC
[05:46:48] <JR____> omg.
[05:46:51] *** mmealling has quit IRC
[05:47:03] <JR____> can't drink. has flowers to smoke instead
[05:47:09] <ChadStrat> So - I'm new here. Been programming for years, fairly new to Angular.js, although I feel like I have a pretty decent handle on how things roll.
[05:47:35] <ChadStrat> So please don't yell at me if I ask seemingly obvious questions ;-P
[05:47:40] *** plato1 has quit IRC
[05:47:43] *** frem has quit IRC
[05:47:54] <themime> ChadStrat: we may have answered your question already if you had just asked :)
[05:48:11] *** tomzx is now known as tomzx`afk
[05:48:15] *** Fuzzy has joined #angularjs
[05:48:22] *** patrickarlt has quit IRC
[05:48:36] <themime> and i only yell if someone asks several questions in a row i find in top 3 of google searches /every/ time
[05:48:48] <themime> well its not yelling
[05:48:55] <themime> more like. a stern correcting
[05:49:36] *** andrewdub has joined #angularjs
[05:49:52] <ChadStrat> lol
[05:49:55]
<jlmitch5dev> so I'm reading ng-book right now, and I'm not sure I understand how the naming convention for directive's is getting created...like here: http://jsbin.com/zodugahuji/2/edit
[05:49:56] <ChadStrat> I google always
[05:50:12] * ChadStrat 's a google pro
[05:50:40] <jlmitch5dev> I add the ng-focus directive, but I never set that to be the directives name, is there some magic turning the camel case into the name with a dash?
[05:51:11] *** aaa_ has joined #angularjs
[05:51:17] <themime> jlmitch5dev: yes angular, ill have a link for you in a sec
[05:51:24] *** lemur has quit IRC
[05:51:35] *** aaa_ is now known as Guest55754
[05:51:43] *** oncenull has quit IRC
[05:51:59] <snurfery> yep, there is some camelcase naming magic buried in there
[05:52:00] *** lemur has joined #angularjs
[05:52:44] *** _lexjm has quit IRC
[05:52:45] <themime> wait is ngDirective okay?
[05:52:48] * themime looks
[05:52:58] <wafflej0ck_> themime: not in the markup that's what it should be in the js
[05:53:05] <wafflej0ck_> it uses $normalize I think something like that
[05:53:17] <themime> ah what i meant was this
[05:53:32] <wafflej0ck_> data- gets stripped off and everything else goes hyphen case to camel case because html isn't case sensitive
[05:53:39] <themime> jlmitch5dev: thats from the link - theyre all the same
[05:53:53] *** tfennelly has quit IRC
[05:53:59] <themime> wafflej0ck_: check out that pastebin, theres like 5 ways that work lol
[05:54:12] <themime> im guessing to easily mix with other frameworks?
[05:54:19] *** nesquerra has joined #angularjs
[05:54:35] *** Zeioth has quit IRC
[05:54:37] *** kohgpat has quit IRC
[05:54:37] *** codeninja-don has quit IRC
[05:54:39] <wafflej0ck_> yeah I literally only use the 1, some of them are for HTML5 code compliance
[05:54:50] <wafflej0ck_> like data- makes it pass HTML validation
[05:54:52] <jlmitch5dev> okay cool yeah, just read through the name normalization section in the docs, thanks for that
[05:55:04] <themime> yep. i feel like i /should/ use data- but i just use dir-ective-name
[05:55:06] *** Fuzzy has quit IRC
[05:55:16] <wafflej0ck_> themime: same I don't care about validation
[05:55:21] <wafflej0ck_> themime: if a browers runs it I'm happy
[05:55:35] <themime> yep. if browser run it and the designer doesn't complain im happy
[05:55:52] *** JoshGlzBrk has joined #angularjs
[05:55:53] *** Fuzzy has joined #angularjs
[05:56:42] *** tfennelly has joined #angularjs
[05:57:02] <peterp> So I built something simple using ng-filter and some dropdowns. Is it possible to inject some query parameters that control the dropdowns?
[05:57:27] <peterp> something like: /all -> all items. /filtered -> filtered items
[05:57:50] <themime> peterp: check out ui-router
[05:57:54] *** jeremymarc has joined #angularjs
[05:58:24] <themime> you can probably do it with ngroute too but all the cool kids use ui-router
[05:58:32] <peterp> lol. I was just about to ask that
[05:58:35] <wafflej0ck_> true
[05:58:50] <peterp> If I can avoid ui-router, that would be ideal.
[05:59:00] <wafflej0ck_> it's probably not really
[05:59:09] <wafflej0ck_> but you can use $location.search() most likely as well
[05:59:27] <wafflej0ck_> but things are probably gonna be cleaner and work better overall if you use ui-router and stateParams
[05:59:29] <themime> if you avoid it, i wouldnt want to look at your code in a few months. but if your project is small it might not be a bi deal
[05:59:32] <wafflej0ck_> switching out the routers isn't too bad
[05:59:44] <wafflej0ck_> ui-router pretty much does everything ngRoute does
[05:59:51] <themime> except more and better
[05:59:56] <wafflej0ck_> and the state config is almost the same as ngRoute config
[06:00:00] *** charuru has quit IRC
[06:00:04] *** Fuzzier has joined #angularjs
[06:00:17] *** Fuzzy has quit IRC
[06:00:35] <JR____> wafflej0ck_: are you working for angular? i'm just wondering.
[06:00:37] *** oncenull has joined #angularjs
[06:00:40] *** bkuberek_ has joined #angularjs
[06:00:46] <wafflej0ck_> JR____: no just enjoy the project a lot
[06:00:49] <JR____> are there anyone who works for angular in this channel?
[06:00:54] <wafflej0ck_> JR____: there are some
[06:01:10] <JR____> i see. (: alright.
[06:01:18] *** charuru has joined #angularjs
[06:01:37] <JR____> I can't wait to be free and start porting over to angular. :D
[06:01:47] *** tkimmel has joined #angularjs
[06:02:01] *** jimobrien has joined #angularjs
[06:02:21] <wafflej0ck_> yeah it really works out great, I come from a Flex/AS3 MVC background so switching to JS having a similar MVC system to work with in Angular has been great
[06:02:27] <peterp> jlmitchdev5 - that is a great idea!
[06:02:34] *** onc3null has joined #angularjs
[06:02:47] <peterp> Thank you
[06:02:52] *** oncenull has quit IRC
[06:02:57] *** bkuberek has quit IRC
[06:03:03] *** tfennelly has quit IRC
[06:03:23] *** frem has joined #angularjs
[06:03:25] <peterp> jlmitch5dev - That is a great idea! I'm going to give it a shot. Thanks
[06:03:48] <jlmitch5dev> ha no problem peterp glad i could be of use :)
[06:03:56] *** defaultdict has quit IRC
[06:04:32] *** oncenull has joined #angularjs
[06:04:40] *** onc3null has quit IRC
[06:04:49] *** williamtdr has quit IRC
[06:05:53] *** oncenull has quit IRC
[06:06:10] *** tkimmel has quit IRC
[06:06:28] *** oncenull has joined #angularjs
[06:07:03] *** xxtjaxx has joined #angularjs
[06:07:13] *** dualmoon has left #angularjs
[06:08:01] <wafflej0ck_> jlmitch5dev: you end up cloning the debug panel repo I posted? just wondering cause I realized I didn't include any instructions at all, but you may have figured it out too
[06:08:24] <themime> debug panel? that sounds interesting
[06:08:24] *** onc3null has joined #angularjs
[06:08:33] *** mguillech has joined #angularjs
[06:08:38] *** oncenull has quit IRC
[06:08:39] *** mary5030 has quit IRC
[06:08:46] <jlmitch5dev> I haven't played around with it yet. let me do that now coz this book is really boring me, ha
[06:09:13] *** mary5030 has joined #angularjs
[06:09:14] *** adpirz has joined #angularjs
[06:09:17] <wafflej0ck_> if you want to change the source or whatever and clone it just do, npm install && bower install
[06:09:23] *** plato has joined #angularjs
[06:09:26] <wafflej0ck_> then you should be able to do, grunt serve
[06:09:26] *** plato has quit IRC
[06:09:26] *** plato has joined #angularjs
[06:09:32] <themime> wafflej0ck_: i...i have a huge nerdrection right now
[06:09:33] <wafflej0ck_> and have the livereloading version of it running
[06:09:35] <themime> this looks awesome
[06:09:37] *** Ansikt has quit IRC
[06:09:40] <wafflej0ck_> haha
[06:10:06] *** jocuca has quit IRC
[06:10:06] <wafflej0ck_> yeah I think it's a good general purpose thing to have, just like ng-inspector or batarang but lets you target parts and then modify the model too
[06:10:08] <themime> hm grunt is a little more common than i thought
[06:10:18] <snurfery> uh, yeah
[06:10:20] *** oncenull has joined #angularjs
[06:10:21] <snurfery> =)
[06:10:24] <themime> :(
[06:10:28] *** onc3null has quit IRC
[06:10:29] * themime looks up ng-insp abd batarang
[06:10:33] <wafflej0ck_> yeah grunt is kinda a bummer
[06:10:51] *** NoNMaDDeN has quit IRC
[06:10:53] <themime> switch to gulp!
[06:10:58] <wafflej0ck_> I will eventually
[06:11:02] <themime> yay!
[06:11:03] <wafflej0ck_> just not today
[06:11:10] <snurfery> what is this it-debug sorcery
[06:11:32] <wafflej0ck_> I still gotta fix my Jenkins stuff to point at my new gitlab setup and redirect all my local repos
[06:11:38] <wafflej0ck_> so gulp has to wait
[06:12:14] *** onc3null has joined #angularjs
[06:12:25] *** Beatzebub has joined #angularjs
[06:12:28] *** oncenull has quit IRC
[06:12:31] *** codeninja-don has joined #angularjs
[06:12:51] <themime> i checked jenkins out and codebase but i decided i can just git commit/clone for now and focus learning other fundamentals
[06:12:56] *** mguillech has quit IRC
[06:13:06] <themime> it just seems like way more than i need right now
[06:13:21] <wafflej0ck_> yeah it's good stuff to have when you get sick of pushing stuff manually but not necessary initially
[06:13:37] <wafflej0ck_> good for dealing with updates down the road though, don't need to remember much just push code and wait
[06:13:42] *** mjs2600 has joined #angularjs
[06:13:42] *** adpirz has quit IRC
[06:13:47] <themime> yea thats cool
[06:13:50] *** mary5030 has quit IRC
[06:13:58] <themime> and if you have multiple people
[06:14:13] *** oncenull has joined #angularjs
[06:14:27] *** onc3null has quit IRC
[06:14:46] *** jeremymarc has quit IRC
[06:15:06] *** glosoli has joined #angularjs
[06:15:13] *** joshmu has joined #angularjs
[06:15:14] <wafflej0ck_> yeah or just lots of independent parts too and tests, it can help take some of the load off of things you need to be doing all the time locally and will still catch errors early on assuming you push code pretty regularly
[06:15:22] <jlmitch5dev> npm is either stalled or just really slow rn
[06:15:23] <themime> on a project. id love to use a build system like that for my work. oh it didn't pass tests? i won't accidentally pull it! man that would save so much time
[06:15:48] *** oncenull has quit IRC
[06:16:07] *** oncenull has joined #angularjs
[06:16:08] <wafflej0ck_> yeah with jenkins it won't rollback the commit automatically (I don't think) but it will email me if any tests fail and will stop from deploying the dist folder
[06:16:13] <JR____> i need to work offline.
[06:16:40] <themime> oh yea i guess the stuff im talking about is local stuff we don't even have haha
[06:16:51] *** FunnyLookinHat has quit IRC
[06:17:17] *** reavengr1y has quit IRC
[06:17:33] *** oncenull has quit IRC
[06:17:51] *** junmin has joined #angularjs
[06:17:52] *** chrisshattuck has quit IRC
[06:17:54] *** mjs2600 has quit IRC
[06:18:03] *** oncenull has joined #angularjs
[06:18:03] *** chaohuanghong has quit IRC
[06:18:17] *** woah has quit IRC
[06:18:20] *** sinequanon has joined #angularjs
[06:19:06] <jlmitch5dev> for personal projects, wercker is the best thing ever for CI, check it out
[06:19:13] *** Guest25327 has quit IRC
[06:19:23] *** frem_ has joined #angularjs
[06:19:52] *** oncenull has quit IRC
[06:20:02] *** chaohuanghong has joined #angularjs
[06:20:04] *** oncenull has joined #angularjs
[06:20:38] *** frem_ has quit IRC
[06:20:54] *** Josh has joined #angularjs
[06:21:07] <snurfery> I'm re-reading the feature set on sailsjs
[06:21:10] <snurfery> jesus man
[06:21:13] *** snapwich has joined #angularjs
[06:21:14] *** kohgpat has joined #angularjs
[06:21:18] *** Josh is now known as Guest42011
[06:21:21] <JR____> whats the difference between wercker and travis btw
[06:21:22] <snurfery> I wanna mess with this soooo much
[06:21:31] <JR____> yes sails is so fun
[06:21:32] <JR____> :D
[06:21:43] <JR____> its easy to use too. fast to pick up
[06:21:44] <themime> wafflej0ck_: this demo is sweet im definitely going to try it out. im going to avoid grunt as much as possible though :P
[06:21:46] *** oncenull has quit IRC
[06:21:47] <JR____> and you can do so much shit with this
[06:21:51] <themime> whats sails do?
[06:21:55] *** oncenull has joined #angularjs
[06:22:04] *** prettybigmonster has quit IRC
[06:22:06] <JR____> its suppose to settle your backend
[06:22:13] <JR____> but it can do front+back too
[06:22:26] <JR____> it can do restful json
[06:22:30] <JR____> as well as sockets
[06:22:32] *** xxtjaxx has quit IRC
[06:22:37] *** conner_ has joined #angularjs
[06:22:44] <JR____> just code up your model.
[06:22:52] *** exp10r3r has joined #angularjs
[06:22:53] <JR____> and you have a working resful json api
[06:22:57] *** ChadStrat has quit IRC
[06:23:08] *** plato has quit IRC
[06:23:12] <JR____> there's no configurations to be done. i'm serious. its just that dead simple.
[06:23:32] *** oncenull has quit IRC
[06:23:40] *** anjumkaiser has joined #angularjs
[06:23:51] *** plato has joined #angularjs
[06:23:54] *** oncenull has joined #angularjs
[06:23:56] <jlmitch5dev> JR____ there isn't a huge difference, they're both CI platforms...both in the cloud as opposed to on your own managed server like jenkins. I really like the way wercker includes both build steps and deploy steps though
[06:23:57] <themime> i was looking for something like that, ended up on express/mongoose
[06:24:03] *** cacts has joined #angularjs
[06:24:14] <themime> does it rest on node or something?
[06:25:11] <jlmitch5dev> you can set it to run tests and then after they succeed, run some commands to deploy to something like heroku or openshift. and you can set it all up to work each time you commit
[06:25:13] *** Aliks has joined #angularjs
[06:25:29] *** frem__ has joined #angularjs
[06:25:29] *** oncenull has quit IRC
[06:25:37] *** rileylark has joined #angularjs
[06:25:48] *** oncenull has joined #angularjs
[06:25:54] *** samuel02 has joined #angularjs
[06:26:27] <themime> i was talking about sails
[06:26:45] <snurfery> sails uses node, yeah
[06:26:53] *** doug64k has joined #angularjs
[06:27:29] *** oncenull has quit IRC
[06:27:29] *** conner_ has quit IRC
[06:27:48] *** oncenull has joined #angularjs
[06:29:05] <JR____> i see thanks.
[06:29:07] *** NoNMaDDeN has joined #angularjs
[06:29:10] *** kohgpat has quit IRC
[06:29:17] *** phuh has quit IRC
[06:29:30] *** JohnBat26 has joined #angularjs
[06:29:37] *** oncenull has quit IRC
[06:29:43] *** phuh has joined #angularjs
[06:29:44] *** oncenull has joined #angularjs
[06:29:46] *** rileylark has quit IRC
[06:30:06] *** btc_panhandler has joined #angularjs
[06:30:09] <JR____> btw, if angular isnt using node, why is it in npm
[06:30:30] *** samuel02 has quit IRC
[06:30:30] *** joshontheweb has quit IRC
[06:30:30] *** whitebook has quit IRC
[06:30:34] <wafflej0ck_> JR____: npm is just used for the tooling like grunt or gulp or whatever to help with the build steps
[06:30:42] <wafflej0ck_> JR____: you don't need it for angular itself
[06:31:01] <wafflej0ck_> I mean npm is node package manager
[06:31:08] *** oncenull has quit IRC
[06:31:11] *** NoNMaDDe_ has joined #angularjs
[06:31:13] <wafflej0ck_> and grunt and bower and gulp are node modules
[06:31:25] *** codeninja-don has quit IRC
[06:31:35] *** snapwich has quit IRC
[06:31:38] *** oncenull has joined #angularjs
[06:31:42] *** mogaj has joined #angularjs
[06:31:51] <wafflej0ck_> Angular is just the JS library itself but all the tooling makes automating tests and minification/concatenation/html2js/etc easier
[06:31:53] *** snapwich has joined #angularjs
[06:31:54] *** NoNMaDDeN has quit IRC
[06:31:57] *** michaeltresseras has joined #angularjs
[06:32:13] *** chrisshattuck has joined #angularjs
[06:32:39] *** michaeltresseras has quit IRC
[06:32:41] *** joroc has joined #angularjs
[06:32:59] *** tomengland_mbp has quit IRC
[06:33:06] *** oncenull has quit IRC
[06:33:08] <JR____> why are gulp and grunt node modules
[06:33:15] <JR____> when it doesn't rest on nodejs
[06:33:15] *** blake_r-austin has joined #angularjs
[06:33:17] *** H1FuelCell has quit IRC
[06:33:18] <JR____> it's weird. >.>
[06:33:20] <themime> my angular isn't npm, its technically bower
[06:33:22] <wafflej0ck_> JR____: because the people who wrote them decided to use ndoejs
[06:33:34] *** oncenull has joined #angularjs
[06:33:35] <wafflej0ck_> bower is just a package manager for front end dependencies
[06:33:37] *** Cache_Money has joined #angularjs
[06:33:46] *** ChadStrat has joined #angularjs
[06:33:57] *** michaeltresseras has joined #angularjs
[06:34:03] *** jordandotdev has quit IRC
[06:34:11] <themime> JR____: i avoided nodejs just because of all the weirdness. it took me a while to get over it. i think having used linux and yum install helped though, but i hadn't even used nodejs, javascript backend/tools was weeeirrdd
[06:34:20] <JR____> i guess npm are like package managers?
[06:34:25] *** minimoo1 has quit IRC
[06:34:28] *** zivester has quit IRC
[06:34:30] *** blake_r-austin has quit IRC
[06:34:31] <wafflej0ck_> yeah npm node package manager
[06:34:32] <BahamutWC> themime: what's weird about it?
[06:34:44] *** pnode has joined #angularjs
[06:34:58] *** bengillies has joined #angularjs
[06:35:06] <JR____> brb for lunch
[06:35:06] *** blake_r has joined #angularjs
[06:35:12] *** JR____ has quit IRC
[06:35:29] *** oncenull has quit IRC
[06:35:30] *** onc3null has joined #angularjs
[06:35:37] *** favetelinguis has joined #angularjs
[06:36:06] *** michaeltresseras has quit IRC
[10:46:18] *** echelog-2 has joined #angularjs
[10:48:02] *** corehook has quit IRC
[10:48:03] *** naeem has joined #angularjs
[10:48:06] *** gunn has quit IRC
[10:48:07] *** nemothekid has quit IRC
[10:48:31] *** naeem has left #angularjs
[10:48:46] *** phzon has quit IRC
[10:48:46] *** gunn has joined #angularjs
[10:48:48] *** phzon has joined #angularjs
[10:48:48] *** tarnus has quit IRC
[10:48:48] *** Jet4Fire has quit IRC
[10:48:49] *** voltagex has quit IRC
[10:48:49] *** voltagex has joined #angularjs
[10:50:17] *** evotuned has quit IRC
[10:50:58] *** fairuz has quit IRC
[10:54:09] *** marcjs has joined #angularjs
[10:55:09] *** night-owl is now known as zz_night-owl
[10:55:19] *** frem_ has joined #angularjs
[10:58:50] *** rburns has quit IRC
[10:59:33] *** Aswebb has quit IRC
[11:00:44] *** frem_ has quit IRC
[11:01:13] *** jmverges has quit IRC
[11:02:09] *** jacuqesdancona_ has quit IRC
[11:02:10] *** tomzx`afk is now known as tomzx
[11:02:19] *** Wizard has joined #angularjs
[11:02:21] <Wizard> Hi.
[11:02:53] *** tech2_ has quit IRC
[11:03:36] *** Guest34224 has joined #angularjs
[11:03:44] *** azizur has joined #angularjs
[11:04:28] *** jacuqesdancona has joined #angularjs
[11:04:30] <jacuqesdancona> morning
[11:04:42] *** jstroem has joined #angularjs
[11:04:45] *** Oxynum has joined #angularjs
[11:06:26] *** gunn has quit IRC
[11:07:00] <Wizard> I'm preparing mocks for few services and what I want to achieve is conditional injection. I'd like to have a configuration option and basing on that option angular would inject either mocked or "real" service.
[11:07:11] <Wizard> However, I have no idea how to achieve this.
[11:07:28] *** ishan1604 has joined #angularjs
[11:09:30] *** Evil_Peach has quit IRC
[11:12:08] *** Seich has quit IRC
[11:12:46] *** AngularUI has joined #angularjs
[11:12:46]
<AngularUI> [ng-grid] jpuri opened pull request #2164: #2154 (master...master) http://git.io/0aZn8g
[11:12:46] *** AngularUI has left #angularjs
[11:14:07] *** DrJae is now known as Jae
[11:14:13] *** Jae has quit IRC
[11:14:13] *** Jae has joined #angularjs
[11:14:31] *** monir has joined #angularjs
[11:14:58] *** qdk has quit IRC
[11:15:52] *** cactauz has quit IRC
[11:17:10] *** davidreis has joined #angularjs
[11:17:14] *** despai has quit IRC
[11:19:00] *** gkap has joined #angularjs
[11:19:10] *** dan2k3k4 has quit IRC
[11:19:31] *** cheef has joined #angularjs
[11:19:44] *** joker666 has quit IRC
[11:19:51] *** dan2k3k4 has joined #angularjs
[11:19:52] <cheef> morning guys, im looking for a way to create a factory that creates router states dynamically from some config data
[11:20:13] *** jimobrien has joined #angularjs
[11:20:18] *** Aerospark has quit IRC
[11:20:32] <cheef> ultimately it needs to return a template, $scope, and $controller to inject into the state factory
[11:20:40] *** Seich has joined #angularjs
[11:21:03] <cheef> if my controller injects $scope, how do I control which $scope gets injected
[11:21:05] *** corehook has joined #angularjs
[11:22:38] <sacho> the $scope injected to a controller is always the directive's scope(which is the element's scope or the element's isolate scope)
[11:23:04] <cheef> basically i want to define a baseScope and a base controller, is preconfigured
[11:23:42] *** gunn has joined #angularjs
[11:23:45] *** glassir has joined #angularjs
[11:24:12] *** bbankes has quit IRC
[11:24:27] *** Wizard has left #angularjs
[11:24:31] *** gkap has quit IRC
[11:24:47] *** jimobrien has quit IRC
[11:25:05] *** spaceonline has joined #angularjs
[11:25:12] *** kp666 has quit IRC
[11:25:17] *** tech2_ has joined #angularjs
[11:25:28] *** Raydiation has joined #angularjs
[11:25:50] *** gkap has joined #angularjs
[11:27:20] *** laurensclaessen has joined #angularjs
[11:27:46] *** CM has joined #angularjs
[11:27:47] *** sneakertack has quit IRC
[11:27:47] *** gkap has quit IRC
[11:28:18] *** CM has quit IRC
[11:28:31] *** tkimmel has joined #angularjs
[11:29:07] <cheef> ah its ok, ui router allows me to pass a registered controller
[11:29:21] *** despai has joined #angularjs
[11:29:28] *** enaqx has quit IRC
[11:29:38] *** Oxynum has quit IRC
[11:30:07] *** Oxynum has joined #angularjs
[11:30:08] *** beckyconning_ has joined #angularjs
[11:31:17] *** Guest34224 has quit IRC
[11:31:36] *** threesixes has quit IRC
[11:32:37] *** techsethi has quit IRC
[11:32:58] *** saucey has joined #angularjs
[11:33:11] *** tkimmel has quit IRC
[11:34:12] *** despai has quit IRC
[11:34:27] *** Oxynum has quit IRC
[11:34:37] *** tschundeee has joined #angularjs
[11:34:51] *** techsethi has joined #angularjs
[11:35:58] *** adpirz has joined #angularjs
[11:36:08] *** sk87 has quit IRC
[11:36:53] *** H1FuelCell has quit IRC
[11:37:22] *** ishan1604 has quit IRC
[11:37:30] *** pen has quit IRC
[11:37:31] *** enaqx has joined #angularjs
[11:37:43] *** spaceonline has quit IRC
[11:39:10] *** DrMabuse_ has joined #angularjs
[11:39:32] *** corehook has quit IRC
[11:39:35] *** jgladwill has quit IRC
[11:40:26] *** adpirz has quit IRC
[11:41:16] <jlebrech> is is possible to use an or in angularjs templates like {{sometext | "it's empty"}} obviously this will try to use a filter.
[11:41:24] *** Iravan has joined #angularjs
[11:41:24] *** corehook has joined #angularjs
[11:41:45] *** s_kilk has joined #angularjs
[11:42:08] *** sk87 has joined #angularjs
[11:42:21] *** pen has joined #angularjs
[11:42:32] *** DrMabuse has quit IRC
[11:42:34] <cheef> actually, not sure thats quite what I want. Given a baseController fn($scope, ...) {}, is there a way to define a baseScope {...} and ensure its injected into baseController??
[11:43:06] <jlebrech> how can I find the list of built in filters in angularjs?
[11:43:11] <cheef> check the docs
[11:43:17] <cheef> $filter
[11:43:22] *** peterp has joined #angularjs
[11:43:24] *** youngroger has joined #angularjs
[11:43:53] <jlebrech> docs are not helping
[11:44:08] <cheef> what are you trying to acheieve?
[11:44:54] *** H1FuelCell has joined #angularjs
[11:45:01] *** patrick99e99 has joined #angularjs
[11:45:08] <jlebrech> an if-null-value filter
[11:45:23] <cheef> you want to display an empty string, or a custom string?
[11:45:41] <jlebrech> yeah custom if a value is null
[11:45:51] <jlebrech> using a built in filter if one exists
[11:45:53] <cheef> theres an empty filter
[11:45:53] *** evotuned has joined #angularjs
[11:46:06] <cheef> {{someVar | empty}}
[11:46:52] *** Guest58384 has quit IRC
[11:46:56] <jlebrech> you mean {{someVar | empty("it's empty")}}?
[11:46:57] *** monir has quit IRC
[11:47:13] <cheef> not sure if it supports an an optional string to return, by default it returns an empty string
[11:47:17] *** mjs2600 has joined #angularjs
[11:47:23] *** D-Boy has quit IRC
[11:47:25] <jlebrech> not emptyFilter
[11:47:26] *** conner_ has joined #angularjs
[11:47:29] *** D-Boy has joined #angularjs
[11:47:30] <cheef> but passing params would be in the form empty:param
[11:47:31] <jlebrech> there's no emptyFilter
[11:47:32] *** favetelinguis has quit IRC
[11:47:50] *** peterp has quit IRC
[11:47:55] *** sk87 has quit IRC
[11:48:03] *** favetelinguis has joined #angularjs
[11:48:03] <cheef> easiest to do is create a simple filter
[11:48:08] <jlebrech> ;)
[11:48:18] *** Raydiation has left #angularjs
[11:48:19] *** spaceonline has joined #angularjs
[11:48:54] *** tech2_ is now known as tech2
[11:49:05] <cheef> .filter('emptyFilter', function(value) {return !value ? "my custom string" : value
[11:49:08] <jlebrech> i understand that they want to keep the maintenance of lots of filter away from the project
[11:49:09] <cheef> something like that
[11:49:28] *** patrick99e99 has quit IRC
[11:49:32] *** jstroem has quit IRC
[11:49:32] *** Versality has joined #angularjs
[11:49:47] <jlebrech> yeah i can make custom filters, wanted to use anything already to hand
[11:49:59] *** jstroem has joined #angularjs
[11:50:12] <jlebrech> those missing filters are nice :D
[11:50:17] *** evotuned has quit IRC
[11:51:18] *** mattwynne has joined #angularjs
[11:52:11] *** conner_ has quit IRC
[11:52:17] *** favetelinguis has quit IRC
[11:52:31] *** fedenunez has joined #angularjs
[11:53:22] *** julian`` has joined #angularjs
[11:53:49] <julian``> i love u angular xxx
[11:54:12] *** iCool has joined #angularjs
[11:54:34] <dannyc_> can i select a select option if EITHER the value OR the label are matched? this "option.value as option.label for option in form.options" will select an option only if the value matches the model. it's almost like i'd like to do something such as "option.value or options.label as option.label for option in form.options"
[11:55:01] *** qdk has joined #angularjs
[11:55:31] *** vassagus has joined #angularjs
[11:58:17] *** dan2k3k4 has quit IRC
[11:58:53] *** ahtik has joined #angularjs
[11:59:11] *** joshontheweb has quit IRC
[12:00:05] <sacho> huh?
[12:00:10] <sacho> the user selects an option
[12:00:14] <sacho> I'm not sure what you mean
[12:00:16] *** vassagus has quit IRC
[12:00:25] <sacho> do you mean that you want to display either option.value or option.label as the label?
[12:00:35] *** marcjs_ has joined #angularjs
[12:00:38] *** mattattaque has joined #angularjs
[12:01:23] *** corehook has quit IRC
[12:01:42] *** marcjs has quit IRC
[12:04:48] *** favetelinguis has joined #angularjs
[12:04:57] *** nerder has joined #angularjs
[12:05:06] *** jaznow has joined #angularjs
[12:05:16] <nerder> hello
[12:05:25] *** theahindle has joined #angularjs
[12:05:32] <nerder> how can i access the index of an element with angular?
[12:05:39] <theahindle> I want on hover, and on click so it works on web and mobil
[12:05:39] <theahindle> e
[12:06:00] *** sk87 has joined #angularjs
[12:06:21] *** JR____ has joined #angularjs
[12:09:08] *** oncenull has joined #angularjs
[12:09:10] <lucianenache> hello all
[12:09:24] <lucianenache> I have a plunkr with two views and a modal
[12:09:32] <lucianenache> i open the modal from the view 1
[12:09:48] <lucianenache> and inside the modal have an anchor that should change the location.path to the view2
[12:09:52] <lucianenache> for some reason that is not working
[12:09:55] <lucianenache> any thoughts ?
[12:10:04] *** mmealling has joined #angularjs
[12:10:46] *** Iravan has quit IRC
[12:10:48] *** JR____ has quit IRC
[12:10:57] <Aliks> Have you guys ever rendered anything inside a service? Is it necessarily a terrible idea? (It would seem so at first...)
[12:11:22] <Aliks> I was thinking about having a service with a render(element) method that does a lot of work and then renders into an element
[12:11:26] *** Iravan has joined #angularjs
[12:11:33] <sacho> sure, why not
[12:12:01] <Aliks> generally I would think DOM manipulation should be in directives, and in particular in the link / compile functions
[12:12:15] <Aliks> but in this case the manipulation is highly non-trivial...
[12:12:15] *** jtimon has joined #angularjs
[12:12:34] <Aliks> and shared by a lot of directives
[12:12:45] *** corehook has joined #angularjs
[12:13:02] *** sybarite has joined #angularjs
[12:13:47] *** oncenull has quit IRC
[12:16:11] *** Iravan has quit IRC
[12:16:28] *** NoNMaDDeN has quit IRC
[12:17:37] <cheef> is it possible to call $controller.register inside a factory?
[12:17:41] <cheef> or will i need a provider
[12:17:45] *** trend has joined #angularjs
[12:17:46] *** theahindle has left #angularjs
[12:17:48] *** gkap has joined #angularjs
[12:17:55] <sacho> $controller.register being?
[12:18:12] <sacho> oh, the service
[12:18:17] <cheef> want to dynamically regiester a controller
[12:18:34] *** Versality has quit IRC
[12:18:39] <cheef> basically, in the config phase im making a http call to get a schema, once this is resolved im using that schema to dynamically generate states with ui-router/extras
[12:19:13] <cheef> i'd like the controllers for the states to inherit frlom a basecontroller, but obviously not be anonymous
[12:19:25] <cheef> State1Ctrl State2Ctrl rather than StateCtrl
[12:19:29] *** Versality has joined #angularjs
[12:20:08] *** Luser has joined #angularjs
[12:20:17] *** siddart has quit IRC
[12:20:21] *** NoNMaDDe_ has joined #angularjs
[12:20:35] <Luser> hiho
[12:20:36] *** H1FuelCell has quit IRC
[12:20:47] <cheef> i think ill have to change my factory (to create the states) to a provider, so it can happen in the config phase
[12:20:50] *** oncenull has joined #angularjs
[12:21:25] *** Siyfion has joined #angularjs
[12:22:13] *** trend has quit IRC
[12:22:22] *** NoNMaDDe_ has quit IRC
[12:22:56] <cheef> $controller service just gets me a handle to a ctronller, i need to register
[12:22:59] *** NoNMaDDeN has joined #angularjs
[12:23:44] *** jimmyy has quit IRC
[12:24:16] *** jillesme has joined #angularjs
[12:24:17] *** jillesme has joined #angularjs
[12:24:24] *** juanpablo_ has joined #angularjs
[12:24:51] *** xdissent has joined #angularjs
[12:25:14] *** ogdabou has quit IRC
[12:25:28] *** uru is now known as uru|away
[12:25:40] <cheef> problem im having is that my factory function that returns the controller fn, sets up
[12:25:53] <cheef> a base scope, and i want to bind that to the actual scope that gets injecte
[12:25:54] <cheef> d
[12:26:25] *** joshmu has joined #angularjs
[12:27:06] *** NanoArro1 has quit IRC
[12:28:49] <Helzibah> if anyone else is new to webdev and struggling with IE and Angular...
[12:28:59] *** laurensclaessen has quit IRC
[12:29:23] *** juanpablo_ has quit IRC
[12:29:24] *** techsethi has quit IRC
[12:30:28] *** zemanel has joined #angularjs
[12:30:42] *** slopjong has quit IRC
[12:31:04] *** sigurding has quit IRC
[12:31:11] *** slopjong_ has quit IRC
[12:32:01] *** rahulprasad has joined #angularjs
[12:32:46] *** tarnus has joined #angularjs
[12:32:52] *** greengriminal has joined #angularjs
[12:33:20] *** evilaliv3 has quit IRC
[12:34:08] <Siyfion> Okay, so I have a select input, which seemingly wont display it's label... Here's the line of code:
[12:34:11] <Siyfion> <select class="form-control" name="partId_{{$index + 1}}" ng-model="stamp.partIndex" ng-options="index as part.labelImage.filename for (index, part) in vm.label.parts" required>
[12:34:29] *** siddart has joined #angularjs
[12:34:35] <Siyfion> Everything works fine if I use "index" as the label too
[12:35:01] <Siyfion> part has a labelImage property and that has a filename property.
[12:35:36] <SergioFilhow__> I use this way: ng-options="st.value as st.name for st in status"
[12:35:53] *** fedenunez has quit IRC
[12:35:55] *** vonnegut has quit IRC
[12:36:00] *** mmealling has quit IRC
[12:36:16] *** mmealling has joined #angularjs
[12:36:28] <Siyfion> SergioFilhow__: But vm.label.parts is an array and I need to store the selected index, not the value.
[12:36:33] *** tschundeee has quit IRC
[12:36:34] *** gunn has quit IRC
[12:36:46] <SergioFilhow__> oh, I see
[12:36:50] <Siyfion> SergioFilhow__: Hence "(index, part) in vm.label.parts"
[12:37:04] *** xxtjaxx has joined #angularjs
[12:37:09] *** tschundeee has joined #angularjs
[12:37:10] *** jillesme has quit IRC
[12:37:14] <Siyfion> It *should* work. I can't see why it doesn't, and I'm all out of ideas
[12:37:25] *** eamonn has joined #angularjs
[12:37:30] *** tarnus has quit IRC
[12:37:38] *** Lingos_ has quit IRC
[12:37:39] *** AlfredHugecock has joined #angularjs
[12:37:45] *** gunn has joined #angularjs
[12:38:08] <AlfredHugecock> hey guys
[12:38:11] <AlfredHugecock> I got one question
[12:38:22] *** Xethron has joined #angularjs
[12:38:22] *** Xethron has joined #angularjs
[12:39:31] *** bkuberek has joined #angularjs
[12:39:34] <AlfredHugecock> what's the best way to create a animations on a location change, the location changes but I don't really want the whole ng-view element be changed, I want just partials get moved or enlarged, hidden and whatnot ( think material design animations )
[12:39:39] *** jillesme_ has joined #angularjs
[12:39:58] <Luser> Directives wouldn't work?
[12:40:12] <AlfredHugecock> so do I like make all these animations, and then when they're done, I change the browser location, where the template is the same like when the animations finish?
[12:40:26] <AlfredHugecock> or is that just way too complicated and absolutely unnecessary
[12:40:52] *** corehook has quit IRC
[12:41:23] *** tschundeee has quit IRC
[12:41:34] *** JesuZ has joined #angularjs
[12:41:35] <AlfredHugecock> any ideas?
[12:44:23] *** bkuberek has quit IRC
[12:44:51] *** frem_ has joined #angularjs
[12:45:08] *** AlfredHugecock is now known as AlfredH_
[12:45:47] *** Oddman has joined #angularjs
[12:46:19] *** monir has joined #angularjs
[12:46:38] *** evotuned has joined #angularjs
[12:46:49] *** ogdabou has joined #angularjs
[12:46:53] *** NanoArro1 has joined #angularjs
[12:47:36] *** Sjimi has quit IRC
[12:48:00] *** Sjimi has joined #angularjs
[12:48:13] *** ElysiumNet has joined #angularjs
[12:48:25] *** evilaliv3 has joined #angularjs
[12:48:25] *** DrMabuse_ has quit IRC
[12:48:53] *** corehook has joined #angularjs
[12:49:14] *** elayg has joined #angularjs
[12:49:36] *** frem_ has quit IRC
[12:50:36] <SergioFilhow__> AlfredHugecock: have u tried css animations? My app has a lot of animations on state change and they are all bound to screens' elements
[12:50:56] <elayg> hello, I just started using Angular with Yeoman generator angular-fullstack. I would like to build a website in Right To Left language, what is the best practice to change the css files to support RTL?
[12:50:57] *** evotuned has quit IRC
[12:51:20] *** jaydubya has joined #angularjs
[12:53:01] *** jaydubya has quit IRC
[12:53:07] *** rileylark has joined #angularjs
[12:54:55] *** RangerRick has quit IRC
[12:55:00] *** tfennelly has quit IRC
[12:55:01] *** samuel02 has joined #angularjs
[12:55:15] *** RangerRick has joined #angularjs
[12:56:04] *** shingara has left #angularjs
[12:57:25] *** rileylark has quit IRC
[12:57:42] *** tangorri has quit IRC
[12:58:04] *** samuel02 has quit IRC
[12:59:01] *** Artagan has quit IRC
[12:59:23] *** sigurding has joined #angularjs
[12:59:35] *** tschundeee has joined #angularjs
[12:59:47] *** slopjong has joined #angularjs
[12:59:48] *** slopjong_ has joined #angularjs
[13:00:07] *** Luser has quit IRC
[13:00:12] *** j_wright has joined #angularjs
[13:01:01] *** corehook has quit IRC
[13:01:34] *** wsmoak has joined #angularjs
[13:02:36] *** RedOrangeZ has joined #angularjs
[13:04:15] *** cotko has joined #angularjs
[13:04:48] *** ahtik has quit IRC
[13:05:59] *** cebor has quit IRC
[13:06:07] *** marcjs_ has quit IRC
[13:06:49] *** jillesme_ has quit IRC
[13:06:49] *** cebor has joined #angularjs
[13:06:50] <AlfredH_> SergioFilhow__ hello
[13:07:08] <AlfredH_> SergioFilhow__ hellp
[13:07:16] <AlfredH_> jsut trying to figure out how to notify you
[13:07:45] <AlfredH_> SergioFilhow__ anyway, it's not about the animations, it's more about when is the right time, to change the application state/location
[13:08:11] <AlfredH_> before/after the animations
[13:08:39] *** opiates has quit IRC
[13:08:56] *** jimobrien has joined #angularjs
[13:09:52] *** Left_Turn has joined #angularjs
[13:10:04] *** jillesme has joined #angularjs
[13:10:06] <AlfredH_> because like, the template is changing after the location change, right? So I don't know is there like data provider that is access by various controllers in?
[13:10:09] *** Aliks has quit IRC
[13:10:09] <AlfredH_> : (
[13:10:43] *** Aliks has joined #angularjs
[13:11:18] *** xxtjaxx` has joined #angularjs
[13:11:36] *** storresi has joined #angularjs
[13:12:34] <SergioFilhow__> AlfredH_: i'm not following you :/
[13:12:41] *** Oddman has quit IRC
[13:12:46] <AlfredH_> sorry
[13:13:10] *** xxtjaxx has quit IRC
[13:13:16] *** vinilios has quit IRC
[13:13:17] *** jimobrien has quit IRC
[13:14:16] *** vinilios has joined #angularjs
[13:14:30] *** jillesme has quit IRC
[13:14:45] *** vinilios has quit IRC
[13:14:50] *** Aliks has quit IRC
[13:15:15] <MalfaitRobin> does somebody know a way to check if you are online or offline? in other words, how can I check that i'm connected to the internet without DDoSing my server?
[13:15:33] *** vinilios has joined #angularjs
[13:16:37] *** mkusher has quit IRC
[13:17:06] *** vinilios has joined #angularjs
[13:17:25] *** tkimmel has joined #angularjs
[13:17:49] *** fedenunez has joined #angularjs
[13:18:03] *** PrinceAMD has joined #angularjs
[13:18:03] *** japhar81 has quit IRC
[13:19:07] *** mattwynne has quit IRC
[13:19:34] *** MaekSo has left #angularjs
[13:19:39] *** alexmarch has joined #angularjs
[13:19:42] *** mattwynne has joined #angularjs
[13:19:48] *** Artagan has joined #angularjs
[13:20:09] *** gkap has quit IRC
[13:20:46] *** dan2k3k4 has joined #angularjs
[13:20:51] *** mguillech has joined #angularjs
[13:20:56] *** tangorri has joined #angularjs
[13:21:29] *** laurensclaessen has joined #angularjs
[13:21:53] *** FunnyLookinHat has joined #angularjs
[13:22:04] *** tkimmel has quit IRC
[13:22:42] *** monir has quit IRC
[13:23:08] *** IvailoStoianov has joined #angularjs
[13:23:53] *** iCool has quit IRC
[13:24:18] *** quantax- has quit IRC
[13:24:21] *** mattwynne has quit IRC
[13:24:49] *** DrMabuse has joined #angularjs
[13:24:52] *** adpirz has joined #angularjs
[13:25:12] *** jlebrech has quit IRC
[13:26:49] *** cheef has quit IRC
[13:29:03] *** vinilios has quit IRC
[13:29:05] *** simplyshipley has joined #angularjs
[13:29:06] *** mmealling has quit IRC
[13:29:13] *** vinilios has joined #angularjs
[13:29:30] *** adpirz has quit IRC
[13:29:44] *** fairuz has joined #angularjs
[13:29:44] *** fairuz has joined #angularjs
[13:29:48] *** vinilios has quit IRC
[13:30:05] *** vinilios has joined #angularjs
[13:30:19] *** corehook has joined #angularjs
[13:30:23] *** fedenunez has quit IRC
[13:30:50] *** mdedetrich has joined #angularjs
[13:31:17] <AlfredH_> SergioFilhow__ I think what I want to do is, that there is element which is small, containing only a summary of some data, onClick, I'd like it to be enlarged ( to whole screen ). Now when its enlarged, it's a new location, it's own window.location, and now there is the rest of the data loaded ( not sure how ).. So, I'm not sure how or where is the transition from small to big. That is two things, one, smooth animation and two, who pro
[13:31:33] *** favetelinguis has quit IRC
[13:31:55] *** gkap has joined #angularjs
[13:31:59] *** favetelinguis has joined #angularjs
[13:32:05] *** Oxynum has joined #angularjs
[13:32:21] *** peterp_ has joined #angularjs
[13:32:23] *** Circlefusion has quit IRC
[13:32:55] *** sigurding has quit IRC
[13:33:01] <burzum> any interested in earning some money by helping me in a screensharing session to get my problem solved?
[13:33:13] *** otisZart has joined #angularjs
[13:33:23] *** elayg has quit IRC
[13:33:27] <SergioFilhow__> AlfredH_: does modal (bootstrap) resolve your problem?
[13:34:23] <AlfredH_> lemme see
[13:34:24] <AlfredH_> thanks
[13:34:41] <SergioFilhow__> burzum: is it a major change or something like that? If not, I might help you, no need to get paid
[13:35:30] *** davidreis has quit IRC
[13:35:49] *** conner_ has joined #angularjs
[13:35:49] *** gjaldon has joined #angularjs
[13:36:13] *** davidreis has joined #angularjs
[13:36:34] *** favetelinguis has quit IRC
[13:36:37] *** peterp_ has quit IRC
[13:36:39] *** Oxynum has quit IRC
[13:36:56] *** dan2k3k4 has quit IRC
[13:37:17] *** leex has joined #angularjs
[13:37:43] *** frem has quit IRC
[13:38:29] *** Lingos_ has joined #angularjs
[13:38:56] <leex> Hi I am working on my first angular project and just started, I already built my json api in rails and now I would like to use restangular and to get the data, but I am not sure where to place the restangular code: controller or service?
[13:39:09] <burzum> service
[13:39:11] *** mattwynne has joined #angularjs
[13:39:26] <leex> burzum: because it is a singleton and I can reuse it from all my other controllers?
[13:39:43] <burzum> yes
[13:39:44] *** gjaldon has quit IRC
[13:39:52] <leex> cool, thanks :)
[13:40:02] *** edy has quit IRC
[13:40:09] *** conner_ has quit IRC
[13:40:10] *** edy has joined #angularjs
[13:40:58] *** reavengr1y has joined #angularjs
[13:41:52] *** tfennelly has joined #angularjs
[13:42:20] *** ped has quit IRC
[13:42:35] *** danecando has quit IRC
[13:42:44] *** Lingos_ has quit IRC
[13:43:31] *** bullicon has joined #angularjs
[13:45:42] *** patrick99e99 has joined #angularjs
[13:45:47] *** favetelinguis has joined #angularjs
[13:46:10] *** mguillech has quit IRC
[13:46:42] *** mguillech has joined #angularjs
[13:47:41] *** jlebrech has joined #angularjs
[13:47:49] *** danecando has joined #angularjs
[13:48:03] *** arkin has quit IRC
[13:48:26] *** youngroger has quit IRC
[13:48:28] *** cheef has joined #angularjs
[13:48:30] *** thomastuts has joined #angularjs
[13:49:10] <thomastuts> hey everyone, i think i'm losing my mind here - if i have an element inside of my directive that's called .foo for example, how can i access that DOM element in my directive's controller?
[13:49:19] *** a3gis has joined #angularjs
[13:49:24] <thomastuts> i thought it'd be $element.find('.foo') but apparently that doesn't work (i use jquery, not jqlite)
[13:49:45] <thomastuts> by being called .foo i obviously mean that it's a dom element with class="foo"
[13:49:50] <sacho> obviously
[13:49:57] *** mdedetrich has quit IRC
[13:50:04] <thomastuts> haha sorry that might have been so obvious after all :D
[13:50:09] *** balr0g has joined #angularjs
[13:50:48] *** ahtik has joined #angularjs
[13:51:00] *** patrick99e99 has quit IRC
[13:52:10] *** Squarepy has joined #angularjs
[13:52:18] <AlfredH_> thanks for the tips guys
[13:52:22] *** Naaab has joined #angularjs
[13:52:25] *** youngroger has joined #angularjs
[13:52:53] *** phzon has quit IRC
[13:53:12] *** herzi has quit IRC
[13:53:18] <Naaab> Hi guys so i want to create a send to top button , but i dont know how to send it to the top with angular. Any ideas ?
[13:54:44] *** quantax- has joined #angularjs
[13:55:30] *** frankbli_ has joined #angularjs
[13:56:26] *** nilsma has joined #angularjs
[13:57:00] *** dsdeiz has quit IRC
[13:57:00] *** spectator has joined #angularjs
[13:57:13] *** azizur has quit IRC
[13:58:40] *** frankblizzar has quit IRC
[13:59:42] *** recidive has joined #angularjs
[14:00:07] *** sk87 has quit IRC
[14:00:24] *** tarnus has joined #angularjs
[14:02:43] *** corehook has quit IRC
[14:02:50] *** JR____ has joined #angularjs
[14:03:07] *** Schtive has joined #angularjs
[14:04:26] *** ludkiller has quit IRC
[14:05:13] *** Oddman has joined #angularjs
[14:05:55] *** corehook has joined #angularjs
[14:06:02] *** akrikos has joined #angularjs
[14:06:29] *** annlewis has joined #angularjs
[14:06:44] *** ludkiller has joined #angularjs
[14:07:11] *** trend has joined #angularjs
[14:07:18] *** NoNMaDDeN has quit IRC
[14:08:26] *** corehook has quit IRC
[14:08:35] *** boxmein has joined #angularjs
[14:08:36] *** ctanga has joined #angularjs
[14:08:37] *** esk4nd4r has quit IRC
[14:09:07] *** corehook has joined #angularjs
[14:09:19] <diegoaguilar> Hello can someone help me in setinterval or timeout functions?
[14:09:59] *** bayousoft has joined #angularjs
[14:10:03] *** saucey has quit IRC
[14:11:12] *** corehook has quit IRC
[14:11:26] *** anapitupulu has joined #angularjs
[14:11:39] *** sigurding has joined #angularjs
[14:12:18] *** jaznow has quit IRC
[14:12:36] *** marcjs_ has joined #angularjs
[14:12:49] *** uru|away is now known as uru
[14:13:02] *** frankbli_ has quit IRC
[14:13:06] *** trend has quit IRC
[14:13:09] *** juanpablo_ has joined #angularjs
[14:13:25] *** Milkweed has joined #angularjs
[14:13:25] *** whitebook has joined #angularjs
[14:13:35] *** corehook has joined #angularjs
[14:13:41] *** eBureau has joined #angularjs
[14:15:13] *** slopjong has quit IRC
[14:15:13] *** slopjong_ has quit IRC
[14:15:29] *** mmitchell has joined #angularjs
[14:16:35] *** defaultdict has joined #angularjs
[14:17:01] *** thomas__ has joined #angularjs
[14:17:16] *** Poppa has joined #angularjs
[14:17:38] *** plato has joined #angularjs
[14:17:52] *** danecando has quit IRC
[14:18:00] *** juanpablo_ has quit IRC
[14:18:02] *** mkusher has joined #angularjs
[14:18:44] *** jillesme has joined #angularjs
[14:19:31] *** Poppabear has quit IRC
[14:19:37] *** tfennelly has quit IRC
[14:19:45] *** tinaj1234_ has joined #angularjs
[14:19:46] *** chrismatheson has joined #angularjs
[14:20:04] <zwischenzug> diegoaguilar, you need to inject $timeout, i believe
[14:20:38] *** monir has joined #angularjs
[14:20:43] *** edzez has joined #angularjs
[14:21:13] *** jaznow has joined #angularjs
[14:21:36] *** JR____ has quit IRC
[14:21:43] *** dman777_alter has joined #angularjs
[14:21:57] *** Geertje123_ has quit IRC
[14:22:09] *** mnngfltg has joined #angularjs
[14:22:28] *** phzon has joined #angularjs
[14:22:33] *** deanclkclk has joined #angularjs
[14:22:41] *** GreenJello has joined #angularjs
[14:22:56] *** eamonn has quit IRC
[14:23:04] <tinaj1234_> Can anyone tell me how to set different background image for each partial?
[14:23:30] *** mogaj has quit IRC
[14:23:31] *** mkusher has joined #angularjs
[14:23:33] *** hswolff has quit IRC
[14:23:42] *** mkusher has quit IRC
[14:23:48] *** favetelinguis has quit IRC
[14:23:48] *** Caroga has left #angularjs
[14:24:09] *** favetelinguis has joined #angularjs
[14:24:23] <reavengr1y> myPartial.htm: <section style="background-image: url(...);"> ... </section>
[14:25:08] *** mkusher has joined #angularjs
[14:25:14] *** hswolff has joined #angularjs
[14:25:18] *** mkusher has quit IRC
[14:26:01] *** mkusher has joined #angularjs
[14:26:17] *** Oddman has quit IRC
[14:26:24] *** Aswebb has joined #angularjs
[14:26:28] *** Nuuab has joined #angularjs
[14:26:41] *** zlalanne has joined #angularjs
[14:27:12] *** gkap has quit IRC
[14:27:18] *** rileylark has joined #angularjs
[14:28:14] *** arkin has joined #angularjs
[14:28:26] *** bkuberek has joined #angularjs
[14:29:14] *** Naaab has quit IRC
[14:29:37] *** alexmarch has quit IRC
[14:29:42] *** bb6xt has joined #angularjs
[14:30:04] *** mkusher has joined #angularjs
[14:30:33] *** mccarrontr1ck has joined #angularjs
[14:30:34] *** mkusher has quit IRC
[14:30:57] *** zlalanne_ has joined #angularjs
[14:31:07] *** NoNMaDDeN has joined #angularjs
[14:31:19] *** kirfu has joined #angularjs
[14:31:23] *** rileylark has quit IRC
[14:31:26] *** mkusher has joined #angularjs
[14:32:11] *** azizur has joined #angularjs
[14:32:22] *** mkusher has joined #angularjs
[14:32:51] *** peterp_ has joined #angularjs
[14:33:15] *** Lingos_ has joined #angularjs
[14:33:18] *** bkuberek has quit IRC
[14:33:24] *** arpu has quit IRC
[14:33:32] *** frem has joined #angularjs
[14:33:39] *** arpu has joined #angularjs
[14:34:07] *** bullicon has quit IRC
[14:34:12] *** zlalanne has quit IRC
[14:34:51] *** sk87 has joined #angularjs
[14:35:00] *** gkap has joined #angularjs
[14:35:29] *** mkusher has joined #angularjs
[14:36:23] *** catonabike has joined #angularjs
[14:36:23] *** s_kilk has quit IRC
[14:36:54] <catonabike> I'm trying to test some promises, but calling $rootScope.$apply or $rootScope.$digest anywhere in my test results in Error: Unexpected request: GET some-resource
[14:37:00] *** bayousoft has quit IRC
[14:37:23] *** Browserr has quit IRC
[14:37:24] *** peterp_ has quit IRC
[14:37:37] *** Browserr has joined #angularjs
[14:37:47] *** bayousoft has joined #angularjs
[14:37:51] *** s_kilk has joined #angularjs
[14:37:57] *** frem has quit IRC
[14:37:59] <cheef> you got a plunkr mate?
[14:37:59] <catonabike> I can solve this by removing the inject() call in the autogenerated test file that initializes a controller
[14:38:01] *** GTgolfer has joined #angularjs
[14:38:07] *** davesidious has joined #angularjs
[14:38:10] *** jillesme has quit IRC
[14:38:19] <davesidious> Hey folks - is there a good way to serialise a scope, for debugging purposes?
[14:38:19] <cheef> promises are a pain to test, but there are some common patterns to help!
[14:38:24] <catonabike> what i'm wondering is how to inject the controller without $httpBackend/jasmine complaining about unexpected requests.
[14:38:35] *** walden|afk is now known as walden
[14:38:39] *** sigurding has quit IRC
[14:38:59] <catonabike> it makes no sense that I'd need to .expect{Method} for every http request initiated by a controller when I want to test something unrelated in the controller
[14:39:18] <catonabike> in general I don't understand why this is considered exceptional at all, and if there is some config option to override this bad behavior
[14:39:30] *** gkap has quit IRC
[14:39:35] <cheef> show me some code (however contrived)
[14:39:43] <dman777_alter> can ng-disabled use a or statement?
[14:39:43] <cheef> be easier to see what you're trying to do and advise
[14:39:51] <tinaj1234_> reavengr1y:
[14:39:52] *** plato has quit IRC
[14:39:58] <cheef> yes it can dman
[14:40:06] *** jillesme has joined #angularjs
[14:40:11] *** tfennelly has joined #angularjs
[14:40:12] <tinaj1234_> That didn't work
[14:40:13] <cheef> better to use something like ng-disabled="isDisabled()"
[14:40:25] <dman777_alter> cheef: thanks
[14:40:30] <catonabike> cheef: beforeEach(inject($controller) { scope = {}; ctrl = $controller('MyCtrl', { $scope: scope }))
[14:40:36] <cheef> and put the logic in the controller - keeps the separation of concerns
[14:40:39] <catonabike> cheef: if I remove that, there is no "unexpected GET" error
[14:40:43] *** mkusher has joined #angularjs
[14:40:57] *** prbc has joined #angularjs
[14:41:09] <cheef> it sounds like your logic is making a http call, but you've not said what the expectations are of it
[14:41:22] *** fedenunez has joined #angularjs
[14:41:31] *** mel| has joined #angularjs
[14:41:36] <mel|> hi
[14:41:40] <cheef> generally i dont expose my controllers to $http
[14:41:44] <catonabike> cheef: well, yea, i just said that
[14:41:44] *** mkusher has joined #angularjs
[14:41:54] *** tkimmel has joined #angularjs
[14:41:55] <cheef> i wrap them around a service and return a promise
[14:41:56] *** mkusher has quit IRC
[14:42:02] *** danecando has joined #angularjs
[14:42:06] <cheef> in my tests that enables me to mock that $promise out
[14:42:18] <cheef> so it instantly resolves (no need for $httpBackend then)
[14:42:25] *** mkusher has joined #angularjs
[14:42:35] *** mkusher has quit IRC
[14:42:41] <mel|> when unit-testing with $httpBackend in jasmine, is it possible to expect a GET request following a POST? the second call always throws an "unexpected Request" error
[14:42:53] <catonabike> cheef: you're not discussing the real issue though
[14:43:00] *** mkusher has joined #angularjs
[14:43:08] <cheef> probably because im not quite understanding what you're trying to achieve!
[14:43:08] *** mkusher has quit IRC
[14:43:11] <catonabike> cheef: I shouldn't have to mock every damn thing that uses $httpBackend, or expect{Method} for every request
[14:43:27] <cheef> no, you shouldn't. it should only be required in the method under test
[14:43:28] <catonabike> cheef: surely there is something I can do to make a test not care about this stuff, because it's irrelevant to what i'm doing
[14:43:40] *** mkusher has joined #angularjs
[14:43:47] <cheef> can you show me the controller?
[14:43:50] <catonabike> cheef: however i encounter this behavior like i said only w/ the before(inject( call i showed you
[14:44:02] <catonabike> cheef: so, nothing local to my tests
[14:44:13] *** gkap has joined #angularjs
[14:44:18] <catonabike> cheef: it would be a waste of time to show you the controller, because this is a testing question
[14:44:53] <catonabike> cheef: you can safely assume that it uses $httpBackend at least indirectly.
[14:44:57] *** kirfu has quit IRC
[14:45:11] *** dsdeiz has joined #angularjs
[14:45:14] <catonabike> cheef: the unexpected request that raises the error does not come from controller code, but from a service consumed by the controller
[14:45:30] <cheef> you need to mock the service out then
[14:45:32] *** corehook has quit IRC
[14:45:41] <mel|> haha, unexpected requests, topic of the day? :D
[14:45:42] *** mkusher has joined #angularjs
[14:45:59] <cheef> make sure you do this before function(inject)
[14:46:09] *** corehook has joined #angularjs
[14:46:12] *** fedenunez has quit IRC
[14:46:17] <catonabike> cheef: what i want is a test framework for python that complains when i unexpectedly call functions. i should have to expectCalled(fn) for every function, or else mock them
[14:46:18] *** corehook has quit IRC
[14:46:26] <reavengr1y> tinaj1234_:
[14:46:33] <catonabike> cheef: i'd like every minnute action to have a corresponding required assertion
[14:46:36] <catonabike> *minute
[14:46:46] <cheef> thats a fair enough goal :)
[14:46:54] <catonabike> waste of time ...
[14:47:00] <catonabike> thanks anyway cheef
[14:47:06] <cheef> it could be your service code thats actually the problem
[14:47:10] <tinaj1234_> reavengr1y: That didn't really work
[14:47:12] <cheef> but you're not testing the service
[14:47:15] <cheef> are you?
[14:47:20] <mel|> catonabike: whats the issue?
[14:47:29] <catonabike> cheef: i've described this issue as thoroughly as i can.
[14:47:42] <catonabike> mel|: injecting a controller in a test causes unexpected GET errors
[14:47:46] <cheef> like i said, sometimes its much easier to see code
[14:47:50] <cheef> only trying to help!
[14:48:03] <catonabike> mel|: i don't think i should have to expect every request that loading a controller creates
[14:48:09] *** evotuned has joined #angularjs
[14:48:10] <mel|> then i guess you should "mock the called functions away"?
[14:48:28] <mel|> (sry for the noob slang=
[14:48:28] *** spatialbrew has joined #angularjs
[14:48:50] *** wsmoak has quit IRC
[14:49:06] <tinaj1234_> Pardon my ignorance, can I include <body> tag in partials?
[14:49:08] *** dsdeiz has quit IRC
[14:49:09] <mel|> like "previousfunction = emptyDummyFunction"
[14:49:21] *** greengriminal has quit IRC
[14:49:23] <catonabike> tinaj1234_: a well-formed document has a <body> tag, so you shouldn't do that.
[14:49:24] <mel|> so no more calls happen
[14:49:42] *** mkusher has joined #angularjs
[14:49:46] *** dsdeiz has joined #angularjs
[14:49:49] *** wsmoak has joined #angularjs
[14:49:49] *** wsmoak has joined #angularjs
[14:49:52] <catonabike> tinaj1234_: replacing <body> is a poor idea
[14:49:52] *** mkusher has quit IRC
[14:50:00] *** thomas__ has quit IRC
[14:50:03] <mel|> the service should be tested separately anyway, i guess
[14:50:31] <cheef> this is what i said, sounds like the controller has a dependency on a service, and its firing http requests somewhere
[14:50:38] <tinaj1234_> catonabike: alright, right now I've a div in my partial. So do I have to create a css class to include background image for that?
[14:50:43] *** mkusher has joined #angularjs
[14:50:49] *** mkusher has quit IRC
[14:50:50] <cheef> so what you want to do is before your beforeeach(function(inject
[14:50:50] *** Oddman has joined #angularjs
[14:51:16] *** elayg has joined #angularjs
[14:51:16] *** AngularUI has joined #angularjs
[14:51:17]
<AngularUI> [ui-router] jerico-dev opened pull request #1572: fix($urlMatcherFactory): early binding of array handler bypasses type resolution (master...custom-type-fixes) http://git.io/E1SUDw
[14:51:17] *** AngularUI has left #angularjs
[14:51:21] <cheef> have a beforeEach(module(function($provide){$provide.value('myMockedService', {})})
[14:51:24] <catonabike> tinaj1234_: presumably you'd want to use CSS to style your HTML, yes
[14:51:42] <cheef> then that gets injected into your controller, and you can mock it how you like then
[14:51:54] <catonabike> cheef: indeed, that is how to mock things.
[14:51:56] *** mib32 has joined #angularjs
[14:52:10] <catonabike> cheef: it's quite a thing, but has nothing to do w/ my issue
[14:52:15] *** rahulprasad has quit IRC
[14:52:17] *** Milkweed has quit IRC
[14:52:17] *** Chubbs has joined #angularjs
[14:52:20] <mel|> catonabike: why not?
[14:52:29] *** evotuned has quit IRC
[14:52:30] *** cboden has joined #angularjs
[14:52:31] *** Linell has joined #angularjs
[14:52:37] <cheef> ok, ill take your word as it sounds very much like you're unit testing controller, but you're not mocking out its dependencies
[14:52:41] <cheef> and its causes you issues
[14:52:48] *** jeffbalboni has joined #angularjs
[14:52:59] *** Oddman has quit IRC
[14:53:02] *** frankblizzar has joined #angularjs
[14:53:07] *** sigurding has joined #angularjs
[14:53:08] <cheef> (trying to find an old article that helped me long tine ago)
[14:53:24] <mel|> cheef: is it possible to expect multiple calls in one test?
[14:53:37] <mib32> hello! i'm very sorry for such annoying question. i want to execute some jQuery plugin that handles dom, after all the {{curly braces}} are gone. how can i do that? if the answer is use directives, please point at some more info bout those.
[14:53:39] <cheef> depends with the code under test is doing i guess?
[14:53:42] *** lexek_ has joined #angularjs
[14:53:43] <mel|> or am i missing sth else?
[14:53:47] <mib32> gone i mean compiled
[14:53:53] *** mmealling has joined #angularjs
[14:54:03] *** annlewis has quit IRC
[14:54:03] *** VeeWee has quit IRC
[14:54:18] *** mkusher has joined #angularjs
[14:54:24] *** monir has quit IRC
[14:54:36] *** mkusher has quit IRC
[14:55:04] <mel|> whats going on is "POST to fetch auth token, fire "loginConfirmedEvent", onConfirm: GET info for current user"
[14:55:21] <mel|> i don't really know how to handle the second request
[14:55:30] *** mkusher has joined #angularjs
[14:55:31] *** samuel02 has joined #angularjs
[14:55:34] *** nerder_ has joined #angularjs
[14:55:36] *** mkusher has quit IRC
[14:55:37] *** NoNMaDDeN has quit IRC
[14:56:18] *** mkusher has joined #angularjs
[14:56:35] *** ngeksyo has joined #angularjs
[14:56:38] *** marcjs__ has joined #angularjs
[14:57:39] *** mkusher has joined #angularjs
[14:57:43] *** jimobrien has joined #angularjs
[14:57:58] *** rileylark has joined #angularjs
[14:58:25] *** marcjs_ has quit IRC
[14:59:06] <mel|> i always get an "unexpected request" error
[14:59:18] *** rileylark has quit IRC
[14:59:34] <mel|> expecting a second request does not seem to work
[14:59:35] *** bmac has joined #angularjs
[14:59:43] *** nerder_ has quit IRC
[15:00:04] *** marcjs has joined #angularjs
[15:00:07] *** rahulprasad has joined #angularjs
[15:00:16] <cheef> did you flush the requests?
[15:01:07] *** mkusher has joined #angularjs
[15:01:19] *** NoNMaDDeN has joined #angularjs
[15:02:12] *** jimobrien has quit IRC
[15:02:36] *** marcjs__ has quit IRC
[15:03:03] *** Xtrivity has joined #angularjs
[15:03:12] *** joshmu has quit IRC
[15:03:48] *** s_kilk has quit IRC
[15:04:05] <catonabike> after doing some research I can confirm that angular-mocks' $httpBackend is horribly designed from a testing point of view
[15:04:20] *** mkusher has joined #angularjs
[15:04:25] *** darrin has joined #angularjs
[15:04:30] *** rileylark has joined #angularjs
[15:04:36] <mel|> cheef: i did
[15:04:40] *** s_kilk has joined #angularjs
[15:04:54] <cheef> are the two requests chained?
[15:04:54] <mel|> but im not sure about the order, played around a bit
[15:04:58] *** dan2k3k4 has joined #angularjs
[15:05:02] <catonabike> it forces all requests to be expected in a way that is not configurable in the test
[15:05:24] <mel|> cheef: the second one is called upon event
[15:05:28] <cheef> catonabike: as a workaround, wrap your $http in a service, and make your service return promises
[15:05:38] <cheef> much easier to test
[15:05:49] <cheef> it just acts as a proxy
[15:05:51]
<Xtrivity> Can anyone please explain what I'm doing wrong. The word header keeps showing up even though it's set to false. http://jsfiddle.net/rw0280f2/ <- i can' tfigure out what i'm missing.
[15:05:56] *** laurensclaessen has quit IRC
[15:06:06] <dan2k3k4> hmm sometimes my template is not compiled, I've tried to make a plnkr but it always works for the plnky
[15:06:14] <catonabike> cheef: thanks, i'll give that a try
[15:07:16] <Xtrivity> cheef, anychance you can tell me why my work isn't working at all?
[15:07:22] <cheef> if you need a hand with that give me a shout
[15:07:41] *** mak`` has joined #angularjs
[15:07:48] <catonabike> cheef: no worries, now i know what i'm getting into :)
[15:08:03] <catonabike> cheef: i guess i'm always hoping for "no, wait, you missed this obvious thing!"
[15:08:25] <catonabike> cheef: alas :)
[15:08:31] <cheef> i struggled with httpbackend myself:)
[15:08:41] <cheef> but it has its uses!
[15:08:48] *** annlewis has joined #angularjs
[15:08:59] *** bradgignac has joined #angularjs
[15:09:14] <Aswebb> Is there a difference between a service and a factory in angular?
[15:09:19] <catonabike> i use it in other places. the truth is that this testing pain is largely caused by the controller being oversized, being written by an unsipervised dev
[15:09:22] <Aswebb> does factory = service?
[15:09:23] *** Oddman has joined #angularjs
[15:09:37] <cheef> aswebb no
[15:09:40] <sveajobb> What's the difference between doing ['$http', function($http) {} ], and doing implicit function($http) {} in, say a controller. I mean, why would you prefer the other way of doing it over the other
[15:09:40] *** prosper_ has joined #angularjs
[15:09:43] <catonabike> so i probably cannot avoid mocking a host of things for now, until there's time to refactor
[15:09:49] <Aswebb> cheef: isnt the same?
[15:09:50] *** asheinfeld has joined #angularjs
[15:09:58] *** juanpablo_ has joined #angularjs
[15:10:02] <catonabike> sveajobb: the latter, and use ng-annotate in your build
[15:10:08] <cheef> sveajobb: its because off the problem of minification
[15:10:11] *** juanpablo_ has joined #angularjs
[15:10:42] *** Keika has joined #angularjs
[15:10:45] <sveajobb> oh ok
[15:10:51] *** elayg has quit IRC
[15:11:04] <Keika> hello there
[15:11:06] *** timestep has joined #angularjs
[15:11:09] <cheef> ng-annotate basically puts that in for you, so you dont have to remember to put in the 'string' injections
[15:11:28] <cheef> Aswebb: they are instantiated differently
[15:12:03] <Aswebb> cheef: thanks
[15:12:04] <cheef> if you're not sure use a service :)
[15:12:30] *** SuRfDeMoN has quit IRC
[15:13:08] <cheef> Xtrivity: what are you trying to achieve with that example?
[15:13:11] *** FunnyLookinHat has quit IRC
[15:13:28] *** catonabike has quit IRC
[15:13:41] *** dmack has joined #angularjs
[15:13:43] *** timestep has quit IRC
[15:13:49] *** timestep has joined #angularjs
[15:13:50] *** adpirz has joined #angularjs
[15:13:57] *** catonabike has joined #angularjs
[15:13:59] <Xtrivity> cheef, i'm trying to have the controller inside the directive with the ng-show (being set to false as not visable), right now, nothing in the controller function is being executed.
[15:14:06] *** FIFOd[a] has joined #angularjs
[15:14:25] *** zivester has joined #angularjs
[15:14:36] <cheef> any special reason you're using a custom directive for that?
[15:14:59] <cheef> and not just have <header> [as in the html5 header] with ng-show on it
[15:16:01] *** ClarusCogitatio has joined #angularjs
[15:16:02] *** e0ipso is now known as e0ipso|away
[15:16:22] *** dnakov has joined #angularjs
[15:16:27] *** Siecje has joined #angularjs
[15:16:27] <Xtrivity> cheef, i'm learning so I just picked a random one, but i figured out the problem
[15:16:36] *** Bovine has joined #angularjs
[15:16:38] <cheef> ok cool ;p
[15:16:56] *** AtomicCookie has joined #angularjs
[15:17:38] *** tristanp has joined #angularjs
[15:17:38] *** Snugug has joined #angularjs
[15:17:48] *** BillCriswell has joined #angularjs
[15:18:38] *** adpirz has quit IRC
[15:18:52] *** SuRfDeMoN has joined #angularjs
[15:19:17] *** Geertje123_ has joined #angularjs
[15:20:01] *** mel| has quit IRC
[15:20:10] *** corehook has joined #angularjs
[15:20:37] *** cboden has quit IRC
[15:20:48] *** Oxynum has joined #angularjs
[15:21:14] *** ClarusCogitatio has quit IRC
[15:21:50] *** bkuberek has joined #angularjs
[15:22:17] *** Silne30 has joined #angularjs
[15:22:52] *** Guest34224 has joined #angularjs
[15:23:01] *** tplaner has joined #angularjs
[15:24:09] *** senayar has joined #angularjs
[15:24:20] *** JesuZ has quit IRC
[15:24:23] *** dsdeiz has quit IRC
[15:24:28] *** kas84 has quit IRC
[15:24:50] *** foofoobar has joined #angularjs
[15:25:04] *** ClarusCogitatio has joined #angularjs
[15:25:06] *** jillesme has quit IRC
[15:25:54] *** laurensclaessen has joined #angularjs
[15:26:01] *** elrabin has joined #angularjs
[15:26:06] *** Oxynum has quit IRC
[15:26:08] *** jmckind has joined #angularjs
[15:26:17] *** jmckind has quit IRC
[15:26:33] *** Luser_ has joined #angularjs
[15:26:34] <foofoobar> Hi. I’m loading data via XHR into a list with ng-repeat. I also added ng-animate to this list so elements added later are highlighted. However because the restangular loads all elements on page load and put it into the list, all elements are highlighted when the page is loaded
[15:26:45] <foofoobar> Is there some workaround so ng-animate is activated after the initial loading?
[15:26:56] *** jmckind has joined #angularjs
[15:27:38] *** sinclair has quit IRC
[15:27:46] *** e0ipso|away is now known as e0ipso
[15:28:42] *** Xethron has quit IRC
[15:29:29] *** dnakov has quit IRC
[15:29:35] *** favetelinguis has quit IRC
[15:30:00] *** jstroem has quit IRC
[15:30:01] *** favetelinguis has joined #angularjs
[15:30:11] *** chrisbirk has joined #angularjs
[15:30:27] *** opiates has joined #angularjs
[15:30:34] *** glassir has quit IRC
[15:30:58] *** favetelinguis has quit IRC
[15:31:12] *** tfennelly has quit IRC
[15:31:14] *** favetelinguis has joined #angularjs
[15:31:14] *** ClarusCogitatio has quit IRC
[15:31:17] *** SuRfDeMoN has quit IRC
[15:31:26] *** dnakov has joined #angularjs
[15:32:21] *** jillesme has joined #angularjs
[15:32:24] *** corehook has quit IRC
[15:32:28] *** shinnya has joined #angularjs
[15:32:47] *** mkusher has quit IRC
[15:33:02] *** plato has joined #angularjs
[15:33:08] *** SkireM has joined #angularjs
[15:33:41] *** mkusher has joined #angularjs
[15:33:54] *** Una has joined #angularjs
[15:34:01] *** Squarepy has quit IRC
[15:34:13] *** basiclaser_ has joined #angularjs
[15:34:17] *** frem has joined #angularjs
[15:34:27] *** glontu has quit IRC
[15:34:46] *** herzi has joined #angularjs
[15:35:03] *** sirkitree|afk has joined #angularjs
[15:35:12] *** sirkitree|afk is now known as sirkitree
[15:35:54] *** Lingos_ has quit IRC
[15:36:31] *** siovene has quit IRC
[15:37:00] *** knownasilya has joined #angularjs
[15:37:14] *** rburns has joined #angularjs
[15:37:20] *** corehook has joined #angularjs
[15:37:34] *** Silne30 has quit IRC
[15:37:38] *** jstroem has joined #angularjs
[15:37:55] *** metasansana has joined #angularjs
[15:38:31] *** metasansana has quit IRC
[15:38:37] *** frem has quit IRC
[15:39:05] *** zlalanne_ has quit IRC
[15:39:34] *** mven has quit IRC
[15:40:11] *** chrisbirk has quit IRC
[15:40:32] *** jocuca has joined #angularjs
[15:41:09] *** Yos has joined #angularjs
[15:41:30] *** gkap has quit IRC
[15:41:33] *** Lingos_ has joined #angularjs
[15:41:51] *** FunnyLookinHat has joined #angularjs
[15:41:55] *** mkusher has quit IRC
[15:41:57] *** iateadonut has joined #angularjs
[15:42:02] *** mary5030 has joined #angularjs
[15:42:43] *** corehook has quit IRC
[15:42:47] *** williamtdr has joined #angularjs
[15:42:57] *** esk4nd4r has joined #angularjs
[15:43:00] *** mkusher has joined #angularjs
[15:43:24] <nerder> i need to create a function to use in ng-click?
[15:44:17] *** plato has quit IRC
[15:45:52] *** SpotSec has joined #angularjs
[15:46:22] *** Lingos_ has quit IRC
[15:46:53] *** Yos has quit IRC
[15:46:53] *** patrick99e99 has joined #angularjs
[15:47:11] *** arkin has quit IRC
[15:47:11] *** asdofindia has joined #angularjs
[15:47:32] *** macabre has joined #angularjs
[15:47:42] *** GreenJello has quit IRC
[15:48:07] *** bkuberek has quit IRC
[15:48:07] *** arkin has joined #angularjs
[15:48:12] *** jpstone has joined #angularjs
[15:48:56] *** evotuned has joined #angularjs
[15:48:58] *** junmin has quit IRC
[15:49:40] *** mccarrontr1ck has quit IRC
[15:49:59] *** mccarrontr1ck has joined #angularjs
[15:50:13] <asdofindia> I found out how to call functions inside the angular app from legacy code. But I'm unable to listen to broadcasts inside angular app from legacy code
[15:50:28] *** bb6xt has quit IRC
[15:50:40] <asdofindia> In short, my question is, is there any way to extend an angular app via a userscript?
[15:50:51] <nerder> i find out that i can should use $scope.go() ;)
[15:50:52] *** jstroem has quit IRC
[15:51:30] *** patrick99e99 has quit IRC
[15:51:49] *** monir has joined #angularjs
[15:52:01] *** evilaliv3 has quit IRC
[15:52:18] *** JR___ has joined #angularjs
[15:52:54] *** favetelinguis has quit IRC
[15:53:12] *** evotuned has quit IRC
[15:53:21] *** favetelinguis has joined #angularjs
[15:53:32] *** Aswebb has quit IRC
[15:54:01] *** nycdevgirl has joined #angularjs
[15:54:09] *** roadrunneratwast has joined #angularjs
[15:54:37] *** Sky[x] has quit IRC
[15:55:02] *** vassagus has joined #angularjs
[15:55:24] *** Sky[x] has joined #angularjs
[15:55:26] *** zlalanne has joined #angularjs
[15:55:27] *** cboden has joined #angularjs
[15:55:28] *** lexek_ has quit IRC
[15:55:40] *** m8 has quit IRC
[15:56:24] *** mven has joined #angularjs
[15:56:27] *** lexek_ has joined #angularjs
[15:56:34] *** cacts has joined #angularjs
[15:56:46] *** plato has joined #angularjs
[15:57:06] *** tfennelly has joined #angularjs
[15:57:26] *** whitebook has quit IRC
[15:57:44] *** jmckind has quit IRC
[15:58:06] *** favetelinguis has quit IRC
[15:58:25] *** azizur has quit IRC
[15:58:29] *** bmac has quit IRC
[15:59:12] *** reavengr2y has joined #angularjs
[15:59:59] *** bmac has joined #angularjs
[16:01:06] *** reavengr1y has quit IRC
[16:01:46] *** titanomachy has quit IRC
[16:01:54] *** jdcasey has joined #angularjs
[16:01:59] *** sybarite has quit IRC
[16:02:00] *** discuz has joined #angularjs
[16:02:01] *** dimas has joined #angularjs
[16:02:05] *** poofmooter has joined #angularjs
[16:02:06] *** josh3336 has joined #angularjs
[16:02:12] *** shackleford has joined #angularjs
[16:02:13] <discuz> Hello
[16:02:29] <catonabike> asdofindia: can't you use the injector to grab what you want?
[16:02:32] *** Chubbs has quit IRC
[16:02:37] *** SpotSec has quit IRC
[16:02:48] *** azizur has joined #angularjs
[16:03:02] <catonabike> asdofindia: is it that you can't call $on? Because anything that registers in the watch cycle should work as expected, whether it registered from within or without an angular module
[16:03:10] *** esk4nd4r has quit IRC
[16:03:19] *** timestep has quit IRC
[16:03:43] <oniijin> roadrunneratwast in the plnkr, yes path issues
[16:03:47] *** lexek_ has quit IRC
[16:03:52] *** Versality has quit IRC
[16:03:54] *** timestep has joined #angularjs
[16:04:05] <roadrunneratwast> well. the plunkr is not the directory structure i have
[16:04:08] <roadrunneratwast> on my computer
[16:04:21] <oniijin> then y post a plnkr
[16:04:22] <roadrunneratwast> it is a laravel-angular project
[16:04:41] *** dannyc_ has quit IRC
[16:04:41] *** mary5030 has quit IRC
[16:04:43] <roadrunneratwast> i didn't know how to replicate the directory structure
[16:04:45] <roadrunneratwast> on plunkr
[16:04:49] *** titanomachy has joined #angularjs
[16:04:58] *** vdrizzle-work has quit IRC
[16:05:14] *** mary5030 has joined #angularjs
[16:05:17] *** bkuberek has joined #angularjs
[16:05:50] *** enigmarm has joined #angularjs
[16:05:52] <roadrunneratwast> it would be nice if angular would issue a "404 not found error" when the templateURL was not found
[16:06:08] *** glassir has joined #angularjs
[16:06:20] *** foofoobar has quit IRC
[16:06:25] *** shackleford has quit IRC
[16:06:40] *** Versality has joined #angularjs
[16:06:46] *** esk4nd4r has joined #angularjs
[16:06:50] *** stirlingw has joined #angularjs
[16:07:03] <roadrunneratwast> what does angular consider to be the base dir for templateUrl?
[16:07:15] <oniijin> usually project root
[16:07:21] <roadrunneratwast> ok
[16:07:42] <merpnderp> roadrunneratwast: you can use a browser network console to view the templateURL request to see where it is trying to get the template from.
[16:07:47] *** svycka has quit IRC
[16:07:52] <roadrunneratwast> oooooo
[16:07:55] <roadrunneratwast> thanks
[16:07:56] *** bade has joined #angularjs
[16:07:58] *** Click66 has quit IRC
[16:08:47] *** glassir has quit IRC
[16:09:17] *** bkuberek has quit IRC
[16:09:23] *** zivester has quit IRC
[16:09:41] *** mmitchell has quit IRC
[16:09:55] *** shackleford has joined #angularjs
[16:10:14] *** youngroger has quit IRC
[16:10:26] *** mary5030 has quit IRC
[16:10:45] *** prosper_ has quit IRC
[16:11:00] *** Natissa has joined #angularjs
[16:11:02] *** m8 has joined #angularjs
[16:11:17] *** enigmarm has quit IRC
[16:11:55] *** bayousoft has quit IRC
[16:11:58] *** Natissa has quit IRC
[16:12:01] *** peterp_ has joined #angularjs
[16:12:11] *** shackleford has quit IRC
[16:12:12] <roadrunneratwast> you guys are the best. thanks for the help
[16:12:14] *** aks has joined #angularjs
[16:12:19] *** Luser_ has quit IRC
[16:12:21] *** jasonp has joined #angularjs
[16:12:23] *** roadrunneratwast has quit IRC
[16:12:39] *** aks is now known as Natissa
[16:12:41] *** peterp_ has joined #angularjs
[16:12:47] *** shackleford has joined #angularjs
[16:12:47] *** peterp_ has quit IRC
[16:12:52] *** Luser has joined #angularjs
[16:12:52] *** jillesme has quit IRC
[16:12:53] *** Natissa is now known as aks
[16:13:22] *** peterp_ has joined #angularjs
[16:13:45] *** AndreasLutro has quit IRC
[16:13:52] *** peterp_ has quit IRC
[16:14:11] *** NorthBlast has joined #angularjs
[16:14:17] *** magellanicloud has joined #angularjs
[16:14:26] *** peterp_ has joined #angularjs
[16:14:55] *** Silne30 has joined #angularjs
[16:14:55] *** nerder has quit IRC
[16:14:59] *** jillesme has joined #angularjs
[16:14:59] *** jillesme has joined #angularjs
[16:15:03] *** dcherman has joined #angularjs
[16:15:03] *** peterp_ has joined #angularjs
[16:15:17] *** peterp_ has quit IRC
[16:15:23] *** mattwynne has quit IRC
[16:15:38] *** Versality has quit IRC
[16:15:41] *** corehook has joined #angularjs
[16:15:53] *** peterp_ has joined #angularjs
[16:15:57] *** mattwynne has joined #angularjs
[16:15:58] *** peterp_ has quit IRC
[16:16:33] *** peterp_ has joined #angularjs
[16:16:36] *** tristanp has quit IRC
[16:16:54] *** herpless has joined #angularjs
[16:16:56] *** peterp_ has quit IRC
[16:17:12] *** Luser has quit IRC
[16:17:27] *** peterp_ has joined #angularjs
[16:17:31] *** peterp_ has quit IRC
[16:17:47] *** livingstn has joined #angularjs
[16:17:49] *** jlmitch5dev has joined #angularjs
[16:17:53] *** bullicon has joined #angularjs
[16:18:01] <NorthBlast> so, if I a menu module as a separate view in my web app and I'm trying to know where the user is at the moment to highlight the current link in the menu
[16:18:05] *** peterp_ has joined #angularjs
[16:18:15] <NorthBlast> is it anyway possible I can comunicate between diff controllers?
[16:18:33] *** prosper_ has joined #angularjs
[16:18:43] *** peterp_ has joined #angularjs
[16:18:44] *** Versality has joined #angularjs
[16:19:03] *** peterp_ has quit IRC
[16:19:35] *** peterp_ has joined #angularjs
[16:19:36] <oniijin> u can with uirouter. never used ngroute for that so unsure
[16:19:40] *** peterp_ has quit IRC
[16:20:15] *** peterp_ has joined #angularjs
[16:20:23] *** mattwynne has quit IRC
[16:20:40] *** AlfredH_ has quit IRC
[16:20:47] <jlmitch5dev> NorthBlast check out $emit in the controller docs
[16:20:47] *** peterp_ has quit IRC
[16:21:21] *** peterp_ has joined #angularjs
[16:21:28] *** discuz has quit IRC
[16:21:43] <jlmitch5dev> since everything in angular is a child of $rootScope, you can emit something from one child and then broadcast to another child. I have no idea if this is best practice though
[16:21:59] *** peterp_ has joined #angularjs
[16:21:59] <jlmitch5dev> broadcast from rootScope to the other child*
[16:22:09] *** peterp_ has quit IRC
[16:22:26] *** thumpba has joined #angularjs
[16:22:28] *** JR___ has joined #angularjs
[16:22:31] <oniijin> eh that's messy
[16:22:41] *** peterp_ has joined #angularjs
[16:22:54] *** jtymes has quit IRC
[16:23:18] *** peterp_ has joined #angularjs
[16:23:23] *** peterp_ has quit IRC
[16:23:34] *** okdamn has joined #angularjs
[16:23:34] *** nilsma has quit IRC
[16:23:41] <okdamn> hey guys
[16:23:44] <oniijin> yes for custom events
[16:23:47] *** _thumpba has joined #angularjs
[16:23:51] *** Luser has joined #angularjs
[16:23:55] *** peterp_ has joined #angularjs
[16:23:56] *** Lingos_ has joined #angularjs
[16:23:57] *** peterp_ has quit IRC
[16:23:57] <okdamn> does anybody knows if catch() is supported on android browser?
[16:24:12] <okdamn> when i do http().catch(); returns me an error Unexpected token catch
[16:24:13] <okdamn> :(
[16:24:18] *** zB0hs has joined #angularjs
[16:24:23] *** conner_ has joined #angularjs
[16:24:28] *** peterp_ has joined #angularjs
[16:24:29] *** Pluff has quit IRC
[16:24:29] *** magellanicloud has quit IRC
[16:24:32] *** peterp_ has quit IRC
[16:25:05] *** peterp_ has joined #angularjs
[16:25:26] <merpnderp> I have a employeeService which contains the selectedEmployee object. In my controller I'm setting $scope.selectedEmployee = employeeService.selectedEmployee; My problem is that initially this is an empty object. The service must hit the server to fill that model.
[16:25:34] <merpnderp> But my controller's scope is never updated.
[16:25:38] *** dannyc_ has joined #angularjs
[16:25:42] *** peterp_ has joined #angularjs
[16:25:50] *** krawek has joined #angularjs
[16:25:50] *** krawek has joined #angularjs
[16:25:51] *** peterp_ has quit IRC
[16:26:03] *** jiskiras has joined #angularjs
[16:26:07] <oniijin> are u setting that in a .then
[16:26:12] *** cthrax has joined #angularjs
[16:26:24] *** bbankes has joined #angularjs
[16:26:27] <oniijin> if not, you're setting your scope object before your async call returns
[16:26:31] *** rburns has quit IRC
[16:26:33] <oniijin> which is why it's always empty
[16:26:35] <merpnderp> oniijin: not a then. But I set it in the controller, then the service fills the model async, sometime later.
[16:26:42] *** jiskiras has joined #angularjs
[16:26:49] <merpnderp> oniijin: right, but I want it to work like a C pointer.
[16:26:58] <stirlingw> http().then(function(){ /// fill model here })
[16:27:02] *** jillesme has quit IRC
[16:27:06] <merpnderp> oniijin: is there a way to initalize the service object so that it returns a reference.
[16:27:20] <okdamn> whats wrong with http().then().catch(); on android old browser?
[16:27:21] <merpnderp> I did {}, but that's all the controller scope ever sees.
[16:27:22] *** mkusher has quit IRC
[16:27:48] *** startupality_ has joined #angularjs
[16:27:54] <oniijin> how are u doing your async call?
[16:27:58] <merpnderp> oniijin: in my controller's constructor:
[16:28:02] *** peterp_ has joined #angularjs
[16:28:02] *** darrin has quit IRC
[16:28:10] *** thumpba has quit IRC
[16:28:15] *** jillesme has joined #angularjs
[16:28:46] <merpnderp> oniijin: whups, that contains the version that works. Pretend that only contains the $scope.selectedEmployee = employeeService.selectedEmployee; and this.init();
[16:29:11] <merpnderp> I don't want to have to do a specific call to employeeService.GetUser. That's being handled up controller chain.
[16:29:17] *** startupality has quit IRC
[16:29:17] *** startupality_ is now known as startupality
[16:29:18] *** whitebook has joined #angularjs
[16:29:35] <oniijin> dunno dont remember having issues with autoupdating stuff from service
[16:29:46] <oniijin> unless your service's async is outside of ng world
[16:29:54] *** mary5030 has joined #angularjs
[16:30:06] *** mary5030 has quit IRC
[16:30:06] <jaawerth> also: MOAR DOTS
[16:30:12] *** xxtjaxx` has quit IRC
[16:30:19] <merpnderp> oniijin: so the service model has an initial value of {}. That's when the controller sets a scope reference to it. Then sometime later the service updates the model to an actual object. The controller scope reference does not update :(
[16:30:22] *** ElysiumNet has quit IRC
[16:30:28] *** ctanga has quit IRC
[16:30:42] <oniijin> yes but HOW does it update its model
[16:30:45] *** Iravan has joined #angularjs
[16:30:49] *** mary5030 has joined #angularjs
[16:31:00] <merpnderp> oniijin: j/s it's a crap ton of code, I'll see if I can simplify an example
[16:31:15] <jaawerth> merpnderp: specifically, the assignment of the new data itself
[16:31:20] <oniijin> if it's done outside of a digest then you'll never see it
[16:31:23] *** corehook has quit IRC
[16:31:36] <merpnderp> it's just this: self.selectedEmployee = self.employees[EmployeeID]; inside a q.all
[16:31:37] *** stirlingw has quit IRC
[16:31:44] <jaawerth> aha, thought so
[16:31:45] <merpnderp> takes like 4 API requests to build that object.
[16:31:50] <jaawerth> you're overwriting the reference with another one
[16:31:55] <merpnderp> doh
[16:32:06] <oniijin> lol
[16:32:19] <oniijin> so, MOARDOTS
[16:32:25] <jaawerth> called it!
[16:32:25] *** laurensclaessen has quit IRC
[16:32:29] <oniijin> dottydotdotdottydots
[16:32:40] <merpnderp> I don't know how to fix it though
[16:32:44] <oniijin> add more dots
[16:32:51] <jaawerth> you have two options
[16:33:00] *** Guest34224 has quit IRC
[16:33:01] *** samuel02 has quit IRC
[16:33:05] <oniijin> 1) dots 2) moardots
[16:33:06] <jaawerth> one: stick the service itself on your controller object so you can reference the data through the service object
[16:33:34] <merpnderp> jaawerth: my controller has a reference to the service.
[16:33:45] <merpnderp> jaawerth: but I want the model added to the scope.
[16:34:17] <jaawerth> two: don't overwrite the selectedEmployee data, iterate through it to clear out its properties in some way (or better, make that a full JS object with a constructor and stuff, and give it some sort of "clear" and "update" function on its prototype that will go through and assign the new properties)
[16:34:19] *** junmin has joined #angularjs
[16:34:29] *** tristanp has joined #angularjs
[16:34:35] <oniijin> what about doing a copy
[16:34:42] <merpnderp> jaawerth: yikes, there are probably 50 properties on that object
[16:34:42] <jaawerth> merpnderp: well, I suggest you use controller as syntax. But if you don't want to, then put the service itself on scope
[16:34:52] <merpnderp> jaawerth: I don't kwow what that means.
[16:35:06] *** maraneta has joined #angularjs
[16:35:14] <oniijin> $scope.tittyballs = myservice
[16:35:22] <jaawerth> lol
[16:35:26] <merpnderp> I get the second part.
[16:35:32] <oniijin> $scope.tittyballs.selectedEmployee
[16:35:33] <merpnderp> Just not the "controller as syntax"
[16:35:45] *** NorthBlast has quit IRC
[16:35:51] *** juampy has joined #angularjs
[16:36:03] *** chrismatheson has quit IRC
[16:36:16] *** richiebkr has joined #angularjs
[16:36:17] <oniijin> jaawerth how does controller as play into it in this sitch?
[16:36:18] <jaawerth> one sec, I've got a custom plnkr template that stubs out controllerAs so I don't have to change the default one every time (and that also starts me off with 1.3.1, since plnkr doesn't have that included yet it in its dfeault templates)
[16:36:21] <oniijin> not seein it
[16:36:38] <maraneta> does anyone here use restangular? i'm trying to use restangular to query my api and get an object list in a directive. however, i'm pretty sure i keep getting errors because the template loads before the results are processed
[16:36:41] <jaawerth> oniijin: Oh, not at all. I just don't like the idea of sticking services on $scope, too much scope pollution for my liking
[16:36:47] <oniijin> lol
[16:36:52] <jaawerth> I feel much better with it stuck on the controller object which, itself, is on scope
[16:37:08] <oniijin> hmm interested to see your example then
[16:37:16] <jaawerth> it's the same idea though
[16:37:32] <jaawerth> stick employeeService on $scope if you don't want to use controllerAs, and access selectedEmployee through that
[16:37:40] *** peterp_ has quit IRC
[16:37:41] *** mattattaque has quit IRC
[16:37:50] <jaawerth> that way you can overwrite the reference and it won't matter, since you're still accessing it via the property of employeeService
[16:37:51] *** magellanicloud has joined #angularjs
[16:38:12] *** ggrzybek has quit IRC
[16:38:21] <jlmitch5dev> yo jaewerth post your example coz im gonna have to leave this coffee shop to go to class and I don't want to miss it :)
[16:38:23] <oniijin> that i get
[16:38:39] <oniijin> but still not understanding how to accomplish that thru controller as
[16:38:45] *** mmitchell has joined #angularjs
[16:38:50] <merpnderp> jaawerth: okay I added the service to the scope, but now the digest isn't kicking off.
[16:39:06] <jaawerth> I don't have a pre-coded example of the service update, that I have to type up real quick, I meant an example of controllerAs ;-)
[16:39:08] *** jmckind has joined #angularjs
[16:39:15] <merpnderp> Controller as the scope. In the constructor you do $scope = this?
[16:39:23] *** Lingos_ has quit IRC
[16:39:28] <jaawerth> no no
[16:39:35] *** mel| has joined #angularjs
[16:39:36] <oniijin> jaawerth you're confusing everyone ==p
[16:39:43] <jaawerth> I didn't mean to!
[16:39:48] <mel|> hi there, sry, got disconnected
[16:39:53] <oniijin> MOARCLARITY
[16:40:19] *** busticated has joined #angularjs
[16:40:24] <mel|> can someone tell me how to handle a second http request when unit testing with $httpBackend?
[16:40:27] <jaawerth> you just do ng-controller="SomeCtrl as foo" which is th equivalent of doing $scope.foo = this; in your controller
[16:40:42] *** larsgk has quit IRC
[16:40:42] <jlmitch5dev> sweet, I will browse while I'm pretending to learn about computer networks, ha. thank you
[16:40:50] <jaawerth> and that way you don't have to worry about setting primitives directly on scope and breaking inheritance. it also cleans up your scopes because now you access inherited stuff through the inherited controller object
[16:41:04] *** richiebkr has quit IRC
[16:41:06] *** mak`` has quit IRC
[16:41:08] <oniijin> o ok that i already knew
[16:41:18] <jaawerth> yeah
[16:41:20] <oniijin> i thought u were doing some wacky thing with controller as + services
[16:41:24] <mel|> im testing a function that does a POST to fetch an auth token and fires an "loginConfirmed" event. Said event then triggers a GET request
[16:41:33] *** DigitallyBorn has joined #angularjs
[16:41:34] *** DigitallyBorn has joined #angularjs
[16:41:43] <jlmitch5dev> yeah oniijin that clarifies what you were talking about, thanks. see y'all later
[16:41:44] *** dnakov has quit IRC
[16:41:44] *** jlmitch5dev has quit IRC
[16:41:46] <jaawerth> oniijin: no, I'm just saying once you've injected the service into the controller, you can then do this.eSvc = employeeService;
[16:41:55] *** cthrax has quit IRC
[16:42:03] <mel|> can i use expectPOST and expectGET for this?
[16:42:28] *** jackdpeterson has joined #angularjs
[16:42:36] <mel|> i tried different constellations, but i keep receiving an "unexpected request (the GET request)" error
[16:42:44] *** strive has joined #angularjs
[16:43:02] *** otisZart has quit IRC
[16:43:07] <oniijin> jaawerth ok so just the usual
[16:43:25] *** jimobrien has joined #angularjs
[16:43:44] <jaawerth> yeah
[16:43:45] <jaawerth> nothing magical
[16:43:50] <jaawerth> sorry, it's early!
[16:44:02] *** Ch4rAss has quit IRC
[16:44:09] <merpnderp> jaawerth: I've never see the as before. And that example isn't working for me :/
[16:44:34] <oniijin> it's just alternative to more dots
[16:44:43] *** stirlingw has joined #angularjs
[16:44:53] *** jheady has joined #angularjs
[16:45:01] *** oliver13 has joined #angularjs
[16:45:35] *** jheady has left #angularjs
[16:45:51] <merpnderp> oniijin: I'll have to try the as in my new controller.
[16:46:10] <merpnderp> except I'm setting the controller in a ui-router state. Can I use 'as' there?
[16:47:10] <oniijin> yup
[16:47:12] <oniijin> same thing
[16:47:18] *** Mael_ has joined #angularjs
[16:47:22] *** ogdabou has quit IRC
[16:47:38] <oniijin> uh really
[16:47:41] <oniijin> ive used it
[16:47:42] *** jimobrien has quit IRC
[16:47:46] <mel|> is it even possible to expect two http calls in one test?
[16:47:48] *** bjtitus has joined #angularjs
[16:47:52] <merpnderp> oniijin: I didn't read the whole issue. It works :P
[16:48:21] *** evotuned has joined #angularjs
[16:48:34] <merpnderp> oniijin: which method do you prefer? The 'as'?
[16:48:38] *** edzez has quit IRC
[16:48:45] <merpnderp> jaawerth obviously prefers the 'as'
[16:48:50] <oniijin> as makes it easier
[16:48:54] <oniijin> bc u can use 'this'
[16:48:54] *** hiddentoken has joined #angularjs
[16:49:01] <merpnderp> what do you name your as object?
[16:49:04] <merpnderp> this?
[16:49:05] <oniijin> instead of comping up with random object ames to hold stuff
[16:49:22] <oniijin> huh
[16:49:37] <oniijin> u just name it whatever
[16:49:53] *** MSY has joined #angularjs
[16:50:04] <jaawerth> think of the "as" object as an alias for the controller in question
[16:50:08] <jaawerth> I always name it something short
[16:50:11] *** opiates has quit IRC
[16:50:16] <jaawerth> 'cause I'm lazy
[16:50:17] *** MSY is now known as Guest14861
[16:50:29] *** NorthBlast has joined #angularjs
[16:50:30] *** eamonn has joined #angularjs
[16:50:42] <oniijin> i name everything tits
[16:50:42] *** rileylark has quit IRC
[16:50:53] <merpnderp> why not 'this'?
[16:51:00] *** rileylark has joined #angularjs
[16:51:01] *** sigurding has quit IRC
[16:51:08] *** afuggini has joined #angularjs
[16:51:10] *** Luser has quit IRC
[16:51:13] <oniijin> reserved?
[16:51:14] <merpnderp> oh, a alias for the controller name would be best I guess.
[16:51:17] *** Versality has quit IRC
[16:51:21] <oniijin> also 'this' is confusing as hell
[16:51:27] *** shackleford has quit IRC
[16:51:31] *** exp10r3r has quit IRC
[16:51:35] *** jmckind has quit IRC
[16:51:40] <jaawerth> yeah, you want it to be something you can identify
[16:51:43] *** dman777_alter has quit IRC
[16:51:45] *** Luser has joined #angularjs
[16:51:50] *** azizur has quit IRC
[16:51:52] *** exp10r3r has joined #angularjs
[16:51:52] <oniijin> tigolbitties
[16:51:58] <merpnderp> jaawerth: that plnkr rawks. Thanks for the explaniation
[16:52:05] <jaawerth> sure thing
[16:52:12] <oniijin> aside from initial total confusion
[16:52:15] <merpnderp> hah
[16:52:15] <jaawerth> haha
[16:52:16] <oniijin> WTFS
[16:52:24] <merpnderp> only because I'd never heard of 'as' before :)
[16:52:36] *** Milkweed has joined #angularjs
[16:52:45] <oniijin> nah he was confusing me cuz he made it sound like he was doing some different shit with as and services
[16:52:59] <oniijin> which i was like, huh??? wtf does as have to do with services
[16:53:01] *** Chubbs has joined #angularjs
[16:53:13] <jaawerth> granted you just gotta be careful if you do it this way and make sure you're never copying the reference out of the service unless you don't want it to stay bound upon update
[16:53:44] *** t1mmen has joined #angularjs
[16:53:45] *** tfennelly has quit IRC
[16:53:59] *** jmckind has joined #angularjs
[16:54:26] <merpnderp> jaawerth: good poitn. thanks.
[16:54:32] *** tfennelly has joined #angularjs
[16:54:37] <jaawerth> in some cases, for that reason, iterating to update can still be better
[16:55:05] *** whitebook has quit IRC
[16:55:16] *** bkuberek has joined #angularjs
[16:55:20] *** okdamn has quit IRC
[16:55:41] *** Versality has joined #angularjs
[16:55:49] <jaawerth> OR just burying your data deeper. employeeService.selectedEmployee.data, something like that. there are a bunch of approaches you can take
[16:56:02] <oniijin> ASDOTS
[16:56:12] *** Luser has quit IRC
[16:56:19] *** sk87 has quit IRC
[16:56:25] <jaawerth> DOTAS
[16:56:35] <jaawerth> DOOTS
[16:56:41] *** Xtrivity has quit IRC
[16:56:52] *** shackleford has joined #angularjs
[16:56:55] *** Mael_ is now known as arcanin
[16:57:09] *** thomastuts has quit IRC
[16:57:13] *** ctanga has joined #angularjs
[16:57:29] <arcanin> i would have thought that since it was two way, the property change would bubble into the parent scope
[16:57:37] <jaawerth> MOAR DOTS
[16:57:37] *** larsgk has joined #angularjs
[16:57:38] <jaawerth> again
[16:57:42] <jaawerth> ;-)
[16:57:58] <jaawerth> data binding works via object reference
[16:58:39] *** favetelinguis has joined #angularjs
[16:58:43] *** rchavik has quit IRC
[16:58:46] <jaawerth> you're passing a primitive in via isolate scope. a primitive, or something that isn't dereferenced via a dot/bracket object accessor, is only going to overwrite it locally and break the binding
[16:58:51] <oniijin> it's the day of moardots huh
[16:58:56] <jaawerth> every day
[16:59:02] <ctanga> ohai
[16:59:05] <jaawerth> one of this days I'm going to write a manifesto
[16:59:07] <jaawerth> I swear
[16:59:10] <jaawerth> these*
[16:59:11] <arcanin> hm, but why does ng-model work without dots ?
[16:59:12] <oniijin> no last two days were days of react trolls
[16:59:13] *** niko is now known as NIKO
[16:59:26] <TommyO> what order does angular.extend() preserve object values? is this correct if I wanted to have defaults that can be overridden: var merged = angular.extend({}, defaults, params);
[16:59:47] <jaawerth> ng-model doesn't create an isolate scope, it uses your local scope
[17:00:01] *** mak`` has joined #angularjs
[17:00:03] *** _thumpba has quit IRC
[17:00:04] <jaawerth> but even with ng-model, the minute you start using scope inheritance with a primitive value the binding will break again
[17:00:10] *** timestep has quit IRC
[17:00:15] <oniijin> dont bind primitives bro
[17:00:41] *** Josh has joined #angularjs
[17:00:42] *** timestep has joined #angularjs
[17:00:47] *** whitebook has joined #angularjs
[17:00:55] *** cacts|wtf has joined #angularjs
[17:00:58] *** Versality has quit IRC
[17:01:05] *** Josh is now known as Guest19460
[17:01:06] *** magellanicloud has quit IRC
[17:01:07] *** anapitupulu_ has joined #angularjs
[17:01:29] *** darrin has joined #angularjs
[17:01:37] *** simplyshipley has quit IRC
[17:01:59] *** wmbutler has joined #angularjs
[17:02:17] <jacuqesdancona> Foxandxss here?
[17:02:30] *** tripu has quit IRC
[17:02:47] *** adpirz has joined #angularjs
[17:03:38] *** catonabike has quit IRC
[17:04:01] *** cacts has quit IRC
[17:04:02] *** slopjong has joined #angularjs
[17:04:03] *** slopjong_ has joined #angularjs
[17:04:16] *** chaohuanghong has quit IRC
[17:04:21] *** anapitupulu has quit IRC
[17:04:40] *** mel| has quit IRC
[17:04:45] *** Joe_knock has joined #angularjs
[17:04:55] <jaawerth> arcanin: you have a typo in your isolate scope declaration ;-)
[17:04:57] *** chaohuanghong has joined #angularjs
[17:04:58] <jaawerth> (just saw that)
[17:05:09] <oniijin> scropeeee
[17:05:10] *** eamonn has quit IRC
[17:05:10] *** Guest19460 has quit IRC
[17:05:10] <arcanin> oh
[17:05:19] <jaawerth> in point of fact, the isolate scope MAY even work with the primitive once you fix that. still not a good idea, though.
[17:06:56] *** tfennell_ has joined #angularjs
[17:07:02] *** larsgk has quit IRC
[17:07:20] *** doug64k has quit IRC
[17:07:23] *** adpirz has quit IRC
[17:07:23] *** prbc has quit IRC
[17:07:30] <TommyO> plnkr and 2 minutes of coding answered my question. Thanks plnkr!
[17:07:32] *** sacho_ has joined #angularjs
[17:07:38] *** JR___ has quit IRC
[17:08:02] *** Guest14861 has quit IRC
[17:08:29] *** jlmitch5dev has joined #angularjs
[17:09:15] *** mattwynne has joined #angularjs
[17:09:18] *** siddart has quit IRC
[17:09:35] *** siddart has joined #angularjs
[17:09:57] *** tfennelly has quit IRC
[17:09:57] *** sacho has quit IRC
[17:10:03] *** shackleford has quit IRC
[17:10:12] *** naneau has joined #angularjs
[17:10:42] *** snurfery has quit IRC
[17:10:50] <arcanin> jaawerth, yep, it works, thanks :)
[17:10:55] *** thedodd has joined #angularjs
[17:11:20] *** siddart has quit IRC
[17:11:35] *** siddart has joined #angularjs
[17:11:50] *** mmealling has quit IRC
[17:12:11] *** jlmitch5dev has quit IRC
[17:12:26] <juanpablo_> What happens if I do "transclude: true" and don't put any "ng-include" in the template?
[17:12:35] *** ki0 has joined #angularjs
[17:12:38] <juanpablo_> It's as if I didn't enable transclusion?
[17:13:12] *** ankushnarula has joined #angularjs
[17:13:27] *** ElysiumNet has joined #angularjs
[17:13:40] *** olivvv has joined #angularjs
[17:14:08] *** Aswebb has joined #angularjs
[17:14:19] *** siddart has quit IRC
[17:14:26] *** mmealling has joined #angularjs
[17:14:35] *** siddart has joined #angularjs
[17:14:37] *** cacts|works has joined #angularjs
[17:14:54] <olivvv> hello. In a directive, is there a way to look at the ngModel.$modelValue of a child element ? (an input)
[17:15:12] *** a3gis has quit IRC
[17:15:15] *** youngroger has joined #angularjs
[17:15:19] *** siddart has quit IRC
[17:15:37] *** siddart has joined #angularjs
[17:15:41] *** chrisshattuck has joined #angularjs
[17:15:47] *** Cache_Money has joined #angularjs
[17:16:05] *** rightnow has joined #angularjs
[17:16:38] *** StryKaizer has quit IRC
[17:16:51] *** msheiny has joined #angularjs
[17:16:57] *** phuh has joined #angularjs
[17:16:58] *** jaydubya has joined #angularjs
[17:17:01] *** dweave has joined #angularjs
[17:17:05] *** favetelinguis has quit IRC
[17:17:05] *** Paul_B_Hartzog has joined #angularjs
[17:17:19] *** JesuZ has joined #angularjs
[17:17:38] *** a3gis has joined #angularjs
[17:17:42] *** favetelinguis has joined #angularjs
[17:17:52] *** bbankes has quit IRC
[17:18:00] *** emmesswhy has joined #angularjs
[17:18:00] *** siddart has quit IRC
[17:18:05] <dweave> anyone else’s boss making them ditch angular for fear of “Osbourning” with angular 2.0. What should I say to them? I guess the fear is a little justifable.
[17:18:17] *** siddart has joined #angularjs
[17:18:20] *** __TheDodd__ has joined #angularjs
[17:18:20] *** emmesswhy has quit IRC
[17:18:40] *** IvailoStoianov has quit IRC
[17:19:19] *** thedodd has quit IRC
[17:19:21] <Linell> dweave: you've got like...three years or something like that before angular 1.3 is no longer supported, if I remember right
[17:19:30] *** dnakov has joined #angularjs
[17:19:38] *** shackleford has joined #angularjs
[17:19:47] <Linell> dweave: And even then, it's not going to just vanish.
[17:20:24] *** opiates has joined #angularjs
[17:20:41] *** Luser has joined #angularjs
[17:20:44] *** jimobrien has joined #angularjs
[17:20:56] *** a3gis has quit IRC
[17:21:02] *** rahulprasad has quit IRC
[17:21:07] *** ogdabou has joined #angularjs
[17:21:10] *** Luser has quit IRC
[17:21:35] *** Luser has joined #angularjs
[17:22:01] *** bbankes has joined #angularjs
[17:22:12] *** favetelinguis has quit IRC
[17:22:12] *** ahtik has quit IRC
[17:22:32] *** NIKO is now known as niko
[17:22:35] *** siddart has quit IRC
[17:22:51] *** siddart has joined #angularjs
[17:23:03] *** frem has joined #angularjs
[17:23:04] *** Luser has quit IRC
[17:23:13] *** AlfredH_ has joined #angularjs
[17:23:22] *** Luser has joined #angularjs
[17:23:24] *** azizur has joined #angularjs
[17:23:44] *** jjasonclark has joined #angularjs
[17:23:47] *** siddart has quit IRC
[17:23:48] *** Luser has quit IRC
[17:23:53] *** snurfery has joined #angularjs
[17:24:01]
<rightnow> Can anyone point me in the right direction. I have this kind of json array of car models http://pastebin.com/KS33PhAP I want 3 select boxes. First one Brand, it filters the next select with the series in that brand. And the second select with series filters out each of the models.
[17:24:04] *** siddart has joined #angularjs
[17:24:20] *** Luser has joined #angularjs
[17:24:55] *** tangorri has quit IRC
[17:24:56] *** cheef has quit IRC
[17:25:02] *** Luser has quit IRC
[17:25:05] *** DigitallyBorn is now known as Twitterizer
[17:25:15] <rightnow> Should i reformat the data first?
[17:25:31] *** Luser has joined #angularjs
[17:25:33] *** IvailoStoianov has joined #angularjs
[17:25:47] <Paul_B_Hartzog> dweave angularjs will likely spawn an OSS version
[17:26:06] *** serengeor has quit IRC
[17:26:13] <Paul_B_Hartzog> @dweave angularjs will likely spawn an OSS version
[17:26:17] <Paul_B_Hartzog> typo :-)
[17:26:22] *** siddart has quit IRC
[17:26:28] *** mak`` has quit IRC
[17:26:32] *** Twitterizer is now known as DigitallyBorn
[17:26:38] *** siddart has joined #angularjs
[17:26:39] <dweave> what’s that mean
[17:26:53] *** narutimateum has joined #angularjs
[17:26:57] <dweave> Paul_B_Hartzog ^
[17:27:02] *** DigitallyBorn is now known as Guest24251
[17:27:06] *** doug64k has joined #angularjs
[17:27:16] *** arabot has joined #angularjs
[17:27:19] *** arabot has quit IRC
[17:27:23] *** frem has quit IRC
[17:27:24] <Paul_B_Hartzog> it means that the open source community will take over angular
[17:27:27] <Paul_B_Hartzog> it'll fork
[17:27:40] <dweave> yeah man this just seems like such a terrible marketing move
[17:27:42] *** catonabike has joined #angularjs
[17:27:43] <Paul_B_Hartzog> Google will have Angular 2 and everyone else will have Angular 1
[17:27:45] <Paul_B_Hartzog> :-)
[17:27:47] *** eamonn has joined #angularjs
[17:28:16] *** snapwich has joined #angularjs
[17:28:24] *** Guest24251 is now known as DigitallyBorn
[17:28:42] *** tkimmel has quit IRC
[17:28:48] <dweave> I can’t convince my boss to take on a very large long term project using a framework that’s on the cusp of such great change. Likely a lot of people are in this boat.
[17:28:50] *** m8 has quit IRC
[17:28:56] <dweave> sucks
[17:29:26] <dweave> ember it is i guess blahhh
[17:29:33] *** phuh has quit IRC
[17:29:58] *** phuh has joined #angularjs
[17:30:35] *** gkap has joined #angularjs
[17:30:46] *** siddart has quit IRC
[17:31:01] *** siddart has joined #angularjs
[17:31:07] *** ciwolsey has joined #angularjs
[17:31:45] *** rahulprasad has joined #angularjs
[17:31:46] *** prbc has joined #angularjs
[17:32:02] *** icfantv has joined #angularjs
[17:32:22] *** advy has quit IRC
[17:32:56] *** d3wayne has quit IRC
[17:32:57] *** oncenull has quit IRC
[17:33:00] *** azizur has quit IRC
[17:33:32] *** samuel02 has joined #angularjs
[17:33:53] <Paul_B_Hartzog> @dweave I'm starting a new project with Ang1
[17:33:56] <Paul_B_Hartzog> no worries
[17:34:10] <Paul_B_Hartzog> The current media hype is just BS
[17:34:12] *** moritzs has joined #angularjs
[17:34:17] <dweave> yeah i understand that
[17:34:20] <dweave> mangement will not
[17:34:24] <Paul_B_Hartzog> yeah, i hear that
[17:34:33] *** youngroger has quit IRC
[17:34:37] <dannyc_> hello. can you chain/stack orderBy expressions in an ngRepeat? so "order by age then name" for example?
[17:34:37] *** siddart has quit IRC
[17:34:46] *** __TheDodd__ has quit IRC
[17:34:49] *** siddart has joined #angularjs
[17:34:53] *** ahtik has joined #angularjs
[17:35:15] *** rho has joined #angularjs
[17:35:16] *** rho has joined #angularjs
[17:35:27] *** sk87 has joined #angularjs
[17:36:11] *** siddart has quit IRC
[17:36:28] *** siddart has joined #angularjs
[17:36:45] <maraneta> i'm having trouble using restangular within a custom validator (directive)... when i hardcode the data, the validator works. but when i use a restangular promise to get the data after the query has resolved, the validator does not work. why does this happen?
[17:36:54] *** youngroger has joined #angularjs
[17:36:57] <jaawerth> dannyc_: you can't just chain them, since one will just override the other. But you can use orderBy with an array of predicates instead of a single one, and it will use each successive item for sorting when two items are equivalent for the previous one
[17:37:05] *** esk4nd4r has quit IRC
[17:37:09] *** sk87 has quit IRC
[17:37:09] <jaawerth> dannyc_: ..what wafflej0ck_ said
[17:37:22] <wafflej0ck_> yeah same
[17:37:48] <dannyc_> wafflej0ck_: thanks again, and...
[17:37:55] <dannyc_> jaawerth: ... thanks too
[17:38:17] <AlfredH_> AlfredH_: hey
[17:38:35] *** dan2k3k4 has quit IRC
[17:38:41] <wafflej0ck_> maraneta: my guess would be the validator is being used before the data fetched with restangular has resolved
[17:38:55] *** siddart has quit IRC
[17:38:59] *** sk87 has joined #angularjs
[17:39:04]
<rightnow> Can anyone point me in the right direction. I have this kind of json array of car models http://pastebin.com/KS33PhAP I want 3 select boxes. First one Brand, it filters the next select with the series in that brand. And the second select with series filters out each of the models.
[17:39:07] <AlfredH_> is that how you notifiy people? NICKNAME plus colon?
[17:39:11] *** siddart has joined #angularjs
[17:39:20] <wafflej0ck_> AlfredH_: just start typing a name and hit tab typically
[17:39:27] *** mchammer has quit IRC
[17:39:45] <AlfredH_> wafflej0ck_: sweet, thanks a lot!
[17:40:03] <Linell> wafflej0ck_: Holy cow, I didn't know about tab completion there. Sigh.
[17:40:18] *** Lingos_ has joined #angularjs
[17:40:25] <wafflej0ck_> heh, I hit tab all day, it's mostly what I do
[17:40:28] *** youngroger has quit IRC
[17:40:28] *** moritzs has quit IRC
[17:40:28] *** bjtitus has quit IRC
[17:40:37] *** jpstone has quit IRC
[17:40:45] <jaawerth> maraneta: yeah, validators rely on a return value, so I don't think they'd play nice with promises, since you'd then be stuck in promiseland. You'd want to set the value upon promise resolution so the new value is passed into the validator
[17:40:47] <Linell> I guess I just never thought to try it in irssi for some reason. I'm not very clever sometimes
[17:41:38] <Paul_B_Hartzog> hi wafflej0ck_ , you have helped me before :-)
[17:41:54] *** basiclaser_ has quit IRC
[17:42:05] <wafflej0ck_> Paul_B_Hartzog: past performance is no guarantee of future results :)
[17:42:11] <Paul_B_Hartzog> lol
[17:42:25] *** greengriminal has joined #angularjs
[17:42:27] *** sonofdirt has joined #angularjs
[17:42:40] *** Iravan has quit IRC
[17:42:41] *** anapitupulu__ has joined #angularjs
[17:42:55] *** siddart has quit IRC
[17:43:11] *** siddart has joined #angularjs
[17:43:17] *** Iravan has joined #angularjs
[17:43:23] *** anapitupulu_ has quit IRC
[17:43:35] *** tfennell_ has quit IRC
[17:43:36] *** mdentinho has joined #angularjs
[17:43:44] <AlfredH_> actually if you hit a tab, it will fill in the last mentions' name
[17:44:05] <AlfredH_> I think I like htat
[17:44:16] <jaawerth> rightnow: just use ng-options with the "filter" filter for the second and third
[17:44:23] *** Lingos_ has quit IRC
[17:44:29] *** youngroger has joined #angularjs
[17:44:39] *** jgladwill has joined #angularjs
[17:44:43] *** jgladwill has quit IRC
[17:44:43] *** jgladwill has joined #angularjs
[17:44:50] *** Marble68 has joined #angularjs
[17:44:51] *** netameta has joined #angularjs
[17:45:12] *** Fuzzier has quit IRC
[17:45:23] *** azizur has joined #angularjs
[17:45:23] *** m8 has joined #angularjs
[17:45:34] *** trend has joined #angularjs
[17:45:41] *** siddart has quit IRC
[17:45:58] *** siddart has joined #angularjs
[17:46:38] *** siddart has quit IRC
[17:46:43] *** strive has quit IRC
[17:46:50] *** tristanp has quit IRC
[17:46:55] *** siddart has joined #angularjs
[17:47:07] <netameta> Is there a way to use ng-if='user.isAdmin' in a way that it will watch user.isAdmin for changes ? the way it is now, it checks user.isAdmin ones when the value changes it doesnt do anything - ng-show however does what i need except that it hides/show instead of completely removing the content
[17:47:33] *** yelvert has joined #angularjs
[17:48:00] *** Iravan has quit IRC
[17:48:07] *** MistahKurtz has joined #angularjs
[17:48:42] *** MistahKurtz has quit IRC
[17:48:45] *** tristanp has joined #angularjs
[17:49:00] *** dweave has left #angularjs
[17:49:13] *** eamonn has quit IRC
[17:49:17] *** siddart has quit IRC
[17:49:17] *** MistahKurtz has joined #angularjs
[17:49:24] *** weems|mac has joined #angularjs
[17:49:33] *** siddart has joined #angularjs
[17:49:44] *** weems|mac has quit IRC
[17:49:44] *** weems|mac has joined #angularjs
[17:49:45] <jaawerth> netameta: ng-if will do that natively - there must be another reason it isn't changing for you
[17:49:58] *** MistahKurtz has quit IRC
[17:50:24] *** trend has quit IRC
[17:50:27] <netameta> well on the same page i have both ng-if/ng-show
[17:50:35] <netameta> both with user.isAdmin
[17:50:45] <netameta> ng-show - function correctly
[17:50:45] *** MistahKurtz has joined #angularjs
[17:50:51] *** siddart has quit IRC
[17:50:51] <netameta> ng-if - does not
[17:51:07] *** siddart has joined #angularjs
[17:51:15] *** ethlor has joined #angularjs
[17:51:28] <catonabike> ngOptions question ... if my template bindings output "a" and ["a", "b", "c"], why would the <select> not reflect the model value? Code: {{ o.p }} <pre>{{ options | json }}</pre> <select ng-model="o.p" ng-options="opt for opt in options"></select>
[17:51:55] <jaawerth> ng-if works - there must be something unique to your code causing the issue
[17:51:59] <nickeddy> netameta: ng-if creates a new scope whereas ng-show doesn't
[17:52:05] <jaawerth> ^^
[17:52:06] *** youngroger has quit IRC
[17:52:16] <catonabike> i output these in my template, so no question that the values are correct, but I don't understand why the <select> element only sometimes has the right value set, reflecting the model value. about 30% of the time, the <select> is set to no value
[17:52:29] *** greengriminal has quit IRC
[17:52:42] *** kakashiAL has joined #angularjs
[17:52:55] *** jimobrien has quit IRC
[17:53:24] *** tinaj1234_ has quit IRC
[17:53:31] *** favetelinguis has joined #angularjs
[17:53:31] <kakashiAL> I found on the angularjs website an example that shows how I can create dynamicaly textfields by hitting a button and how I can delete them with a button as well
[17:53:31] *** chexxor has quit IRC
[17:53:41] <kakashiAL> now I cant find this example anymore
[17:53:43] <catonabike> as expected, i have the same issue when using <select ... ng-options="opt as opt for opt in options"> (select as form)
[17:53:49] <kakashiAL> can anyone help please!
[17:53:58] *** mattwynne has quit IRC
[17:54:07] *** michaeltresseras has joined #angularjs
[17:54:22] *** siddart has quit IRC
[17:54:27] <nickeddy> catonabike: if options is an array of objects you need to do ng-options="opt.someProp as opt for opt in options"
[17:54:32] *** slopjong has quit IRC
[17:54:33] <nickeddy> err well you don't have to
[17:54:36] *** slopjong_ has quit IRC
[17:54:39] *** siddart has joined #angularjs
[17:54:40] *** chexxor has joined #angularjs
[17:54:49] *** Versality has joined #angularjs
[17:54:54] *** Shadda has quit IRC
[17:55:03] *** fedenunez has joined #angularjs
[17:55:12] <catonabike> nickeddy: it's an array of strings
[17:55:36] *** umib0zu has joined #angularjs
[17:56:05] <nickeddy> catonabike: try ng-options="opt for opt in options"
[17:56:30] *** Raging_Hog has quit IRC
[17:56:37] *** Shadda has joined #angularjs
[17:56:37] <snurfery> sup yall
[17:56:45] <catonabike> nickeddy: right, same behavior w/ opt as opt for opt, and opt for opt
[17:56:52] <jaawerth> nickeddy: I think that's what they're already doing?
[17:57:01] <jaawerth> catonabike: can you make a plnkr that demonstrates where it isn't working?
[17:57:01] <catonabike> trying to reproduce in a plunkr ... guess jsfiddle doesn't work w/ angular anymore
[17:57:03] <snurfery> is there something wonky with ui-bootstrap these days? I'm trying to get the dropdown buttons to work and they just won't
[17:57:11] <jaawerth> jsfiddle is terrible anyway
[17:57:13] <nickeddy> yeah make a plnkr
[17:57:17] <snurfery> I even copied it straight from their example
[17:57:20] *** soj has joined #angularjs
[17:57:20] <oniijin> f fiddle
[17:57:28] <catonabike> jaawerth: sonny, back in my day all we had was jsfiddle! and we used it, dammit!
[17:57:39] <catonabike> :)
[17:57:44] <nickeddy> snurfery: you need jquery brah
[17:57:49] <oniijin> snurfery you're trying to use bootstrap js
[17:57:52] *** siddart has quit IRC
[17:57:58] <jaawerth> and we cured disease with bloodletting, and we liked it!
[17:58:03] <oniijin> not ui bootstrap
[17:58:04] <catonabike> lance that wound!
[17:58:07] <catonabike> or something
[17:58:09] *** siddart has joined #angularjs
[17:58:19] <bberry> Can Angular handle sparse arrays for ng-repeat?
[17:58:20] <oniijin> yeah but the bootstrapjs you're using has jq dep
[17:58:24] <nickeddy> snurfery: yeah but you have bootstrap.js
[17:58:27] <nickeddy> snurfery: = nono
[17:58:30] *** vonnegut has joined #angularjs
[17:58:38] <oniijin> am i drinking crazy juice here
[17:58:47] <snurfery> hmm that's an artifact of plnkr then, I don't have that in my real site
[17:59:03] <bd-> bberry: it should be able to if you use the "(key, value) in array" syntax
[17:59:08] *** s_kilk has quit IRC
[17:59:15] *** yelvert has quit IRC
[17:59:17] <Paul_B_Hartzog> jsfiddle plunkr? I use codepen :-)
[17:59:27] *** Sjimi has quit IRC
[17:59:52] <nickeddy> snurfery: it works
[18:00:00] *** samuel02 has quit IRC
[18:00:03] *** quantax- has quit IRC
[18:00:15] <kakashiAL> could anybody help?:(
[18:00:26] *** robk has left #angularjs
[18:00:31] <catonabike> i have no effing clue what's going on in plnkr but i don't like it ..
[18:00:34] <jaawerth> kakashiAL: what, google search stuff for you?
[18:00:36] *** mkusher has joined #angularjs
[18:00:39] <nickeddy> ^
[18:00:44] <Paul_B_Hartzog> snurfery no workie, but nickeddy version does
[18:00:47] <oniijin> x1000
[18:00:52] <snurfery> oh goddammit I didn't add ng-app in my example
[18:00:53] <Paul_B_Hartzog> what's the diff?
[18:00:57] <snurfery> heh
[18:00:58] <nickeddy> snurfery: :) lol
[18:01:01] <oniijin> punch yourself in the balls
[18:01:05] <nickeddy> hahahaha
[18:01:05] <Paul_B_Hartzog> ah i see
[18:01:12] *** NormySan has joined #angularjs
[18:01:13] <Paul_B_Hartzog> we won't tell :-D
[18:01:16] *** siddart has quit IRC
[18:01:16] <nickeddy> needed an ng-app with ui.bootstrap dependency
[18:01:16] *** jgladwill has quit IRC
[18:01:29] <snurfery> doesn't get me much closer to figuring out why the one on my actual site isn't working
[18:01:32] *** siddart has joined #angularjs
[18:01:38] <kakashiAL> jaawerth: I am googling, but I find only stackoverflow stuff, not the example on the angularJS site
[18:01:39] <nickeddy> snurfery: any console errors?
[18:01:43] <bberry> bd-, well, actually i think its probably better if i use an object insteadof a sparse array. and i can use ng-repeat on an object, correct?
[18:01:44] <snurfery> though it's nice to know I can't blame it on ui-bootstrap itself
[18:01:50] *** tfennelly has joined #angularjs
[18:02:18] *** DigitallyBorn has quit IRC
[18:02:24] <jaawerth> kakashiAL: so... add "-stackoverflow.com" so it omits SO results?
[18:02:27] *** mdentinho has quit IRC
[18:02:28] *** oncenull has joined #angularjs
[18:02:37] <nickeddy> bberry: ng-repeat="label for (key, value) in object"
[18:02:46] *** jillesme has quit IRC
[18:02:49] *** frobs has quit IRC
[18:02:50] <jaawerth> sparse arrays are generally not a good practice
[18:02:52] <jaawerth> with some exceptions
[18:02:56] <bberry> nickeddy, perfect, thanks m8 :D
[18:03:08] <bberry> jaawerth, yeah going to use an object instead
[18:03:08] *** stirlingw has quit IRC
[18:03:18] *** siddart has quit IRC
[18:03:34] *** siddart has joined #angularjs
[18:03:56] <kakashiAL> jaawerth: you cant find the example in the agnuarlJS site?
[18:04:00] *** Rahul_Roy_ has joined #angularjs
[18:04:04] <nickeddy> kakashiAL: for fucks sake man
[18:04:09] *** H1FuelCell has joined #angularjs
[18:04:11] <jaawerth> kakashiAL: I'm telling you how to search it, I'm not going to do it for you :p
[18:04:15] <nickeddy> kakashiAL: we don't know what example you're talking about
[18:04:21] <jaawerth> yeah, I've never seen it
[18:04:30]
<maraneta> Can any restangular users help me out? I'm trying to get a custom validator working but I'm having difficulty with the asynchronous response to my query. I don't know how to access the result of a function that occurs after the query is resolved, outside of the restangular block. Here's my code: http://dpaste.com/3ZA48XJ
[18:04:35] *** favetelinguis has quit IRC
[18:04:41] <nickeddy> i live on the angularjs docs site and i've never seen it
[18:04:51] *** Alvin_ has joined #angularjs
[18:04:54] *** jstroem has joined #angularjs
[18:04:54] *** ahmetkapikiran has joined #angularjs
[18:05:12] *** favetelinguis has joined #angularjs
[18:05:13] <snurfery> nah no errors. hmm I'll wrastle with it for a bit
[18:05:38] *** oliver13 has left #angularjs
[18:05:39] <nickeddy> maraneta: sec
[18:06:04] *** bradgignac has quit IRC
[18:06:11] *** MaxV has quit IRC
[18:06:12] *** siddart has quit IRC
[18:06:22] <maraneta> nickeddy: np
[18:06:28] *** siddart has joined #angularjs
[18:06:31] *** richiebkr has joined #angularjs
[18:06:33] *** greengriminal has joined #angularjs
[18:06:35] *** JesuZ has quit IRC
[18:06:36] *** afuggini has quit IRC
[18:06:49] <kakashiAL> nickeddy: very simple: you have a textfield and button, if you hit that button you get another textfield and beside all texfields you have a delete button to remove the textfield that you created
[18:06:51] <nickeddy> maraneta: what is it you're trying to do?
[18:06:53] <jaawerth> maraneta: you're thinking about it backwards. You wouldn't handle the promise at all in the validator, just the value. You'd unwrap the promise and set the value on the outside so the value is what gets passed in
[18:06:59] *** edy has quit IRC
[18:06:59] <kakashiAL> it was on the angular site nickeddy
[18:07:05] *** MaxV has joined #angularjs
[18:07:18] <nickeddy> okay, so go look up how to make a directive
[18:07:20] *** Oxynum has joined #angularjs
[18:07:35] *** sanane has joined #angularjs
[18:07:43] *** fbenoit has quit IRC
[18:07:56] <nickeddy> maraneta: you also may want to look at $asyncValidators
[18:08:04] <jaawerth> ...or that
[18:08:04] <jaawerth> haha
[18:08:12] <maraneta> oh okay, i'll look into that
[18:08:29] *** faveteli_ has joined #angularjs
[18:08:31] <nickeddy> well i don't know if that's the way to go about it
[18:08:43] <nickeddy> a response interceptor would probably be better
[18:08:50] <jaawerth> $asyncValidators requires that you're using >= 1.3.x though
[18:08:58] <maraneta> the reason i'm unwrapping the promise within the validator is because when i unwrap it elsewhere (asynchronously), and try to access the value in the validator, the value is still undefined because the asynchronous function hasn't finished yet
[18:09:17] *** favetelinguis has quit IRC
[18:09:23] <jaawerth> but the validators should only be running upon view update anyway
[18:09:28] <nickeddy> maraneta: yeah i'd say use a response interceptor
[18:09:30] *** siddart has quit IRC
[18:09:33] <nickeddy> validators are for form stuff
[18:09:38] <nickeddy> like jaawerth said
[18:09:38] *** speaking1ode is now known as speakingcode
[18:09:47] *** siddart has joined #angularjs
[18:09:55] <nickeddy> wafflej0ck_: lol if that's what he was asking for...
[18:10:13] <maraneta> okay thanks
[18:10:13] <jaawerth> so if it's async, generally speaking (unless you want to use $asyncValidators), you just use the promise to not update the model until the query promise is resolved
[18:10:20] <wafflej0ck_> nickeddy: I dunno sounds like it
[18:10:40] <nickeddy> kakashiAL: was that it?
[18:10:44] *** PGTips has joined #angularjs
[18:10:54] <kakashiAL> wafflej0ck_: thanks bro, its close and I will study it but it is not what I am looking
[18:10:59] <kakashiAL> nickeddy: nope
[18:11:01] <nickeddy> lol
[18:11:28] *** albivian has joined #angularjs
[18:11:30] <wafflej0ck_> kakashiAL: check out angular-x-editable, may do what you want too
[18:11:34] *** tschundeee has quit IRC
[18:11:55] *** Oxynum has quit IRC
[18:11:56] *** fedenunez1 has joined #angularjs
[18:11:56] *** cacts|wtf has quit IRC
[18:12:22] *** faveteli_ has quit IRC
[18:12:39] *** Sna4x8 has quit IRC
[18:12:59] *** favetelinguis has joined #angularjs
[18:13:27] *** samuel02 has joined #angularjs
[18:13:28] <snurfery> ahhh these mf'ers changed the damn dropdown syntax in ui-bootstrap 0.12.0 and I was using 0.11.2
[18:13:39] * snurfery shakes fist at progress
[18:13:44] *** laurensclaessen has joined #angularjs
[18:13:45] <snurfery> damn you progress!
[18:13:46] *** mattwynne has joined #angularjs
[18:13:46] *** Sna4x8 has joined #angularjs
[18:13:46] *** fedenunez has quit IRC
[18:14:05] *** siddart has quit IRC
[18:14:20] *** siddart has joined #angularjs
[18:15:23] *** prosper_ has quit IRC
[18:15:40] *** niklasmodess has quit IRC
[18:16:31] <maraneta> jaawerth: luckily i'm > 1.3, asyncvalidators were the way to go. thanks!
[18:16:37] *** Foxandxss has joined #angularjs
[18:17:00] *** qdk has quit IRC
[18:17:06] *** Linell has quit IRC
[18:17:13] *** wsmoak has quit IRC
[18:17:24] *** favetelinguis has quit IRC
[18:17:54] *** bayousoft has joined #angularjs
[18:18:13] *** nfroidure has quit IRC
[18:18:21] *** cthrax has joined #angularjs
[18:18:21] <albivian> hi
[18:18:23] *** caitp has joined #angularjs
[18:18:23] *** siddart has quit IRC
[18:18:39] *** siddart has joined #angularjs
[18:18:40] *** AimerPaddle has joined #angularjs
[18:19:02] *** milka has quit IRC
[18:19:37] *** jacuqesdancona has quit IRC
[18:19:37] *** bayousoft has quit IRC
[18:19:45] *** prosper_ has joined #angularjs
[18:19:52] *** AlfredH_ has quit IRC
[18:19:59] *** lemur has joined #angularjs
[18:20:01] *** btc_panhandler has joined #angularjs
[18:20:10] *** jacuqesdancona has joined #angularjs
[18:20:17] *** bayousoft has joined #angularjs
[18:21:17] *** michaeltresseras has quit IRC
[18:21:19] <albivian> test
[18:21:55] *** a3gis has joined #angularjs
[18:22:02] *** Fuzzy has joined #angularjs
[18:22:12] *** oncenull has quit IRC
[18:23:06] <jaawerth> that isn't from the angular site, just typed that up quickly
[18:23:39] *** oncenull has joined #angularjs
[18:24:04] *** Linell has joined #angularjs
[18:24:12] *** laurensclaessen has quit IRC
[18:24:25] *** nickbytes has joined #angularjs
[18:24:33] *** Fuzzier has joined #angularjs
[18:24:37] *** twelverobots has quit IRC
[18:25:06] *** jacuqesdancona has quit IRC
[18:25:27] *** dshekhtman has joined #angularjs
[18:25:45] *** jonathanpglick has joined #angularjs
[18:25:56] <dshekhtman> hey guys, i’m really struggling with handling the back button in my angular app
[18:26:07] *** Ajans has quit IRC
[18:26:08] <dshekhtman> i’ve read tons of documentation but none of it solves my problem perfectly
[18:26:12] *** ashah has joined #angularjs
[18:26:16] *** cohitre has joined #angularjs
[18:26:17] *** Fuzzy has quit IRC
[18:26:24] <nickeddy> do you have html5mode enabled?
[18:26:27] <dshekhtman> i do
[18:26:31] <dshekhtman> so the URL changes
[18:26:35] <dshekhtman> when i hit back
[18:26:36] <nickeddy> can't recommend that
[18:26:39] <dshekhtman> but my ajax call doesn’t rerun
[18:26:43] <dshekhtman> yeah....
[18:26:46] *** btc_panhandler has quit IRC
[18:26:51] <dshekhtman> i’m sorta in a situation where i have to have it on
[18:27:00] *** spiderMonkey77 has joined #angularjs
[18:27:01] <dshekhtman> my angular app is inside an otherwise normal HTML page inside of a CMS
[18:27:19] <spiderMonkey77> anyone used showColumnMenu with ng-grid?
[18:27:24]
<ashah> Hey! I'm trying to get message-center (https://github.com/mateu-aguilo-bosch/message-center) setup in my angularjs app. I used bower install message-center, but am running into problems. I'm somewhat of a newbie at bower/angularjs, so I'd love some help!
[18:27:24] *** lemur has quit IRC
[18:27:24] *** yelvert has joined #angularjs
[18:27:27] <nickeddy> sounds like you're trying to cram angular where it doesn't belong frankly
[18:27:34] *** wmbutler has quit IRC
[18:27:40] <Linell> ashah: what problems are you running into?
[18:27:42] *** albivian has quit IRC
[18:27:43] <dshekhtman> perhaps…, i’m mostly doing it as a learning experience
[18:27:49] *** snurfery has quit IRC
[18:27:55] <dshekhtman> nickeddy: it’s a search app for searching documentation
[18:27:59] *** lemur has joined #angularjs
[18:28:02] <jaawerth> so... are you hitting the back button from another part of the angular bit, or from a part of your app outside of angular context?
[18:28:07] *** adamsilver_ has joined #angularjs
[18:28:08] <adamsilver_> guys on a single page application with a restful backend. is it a good idea to create two repos or one with two dirs?
[18:28:10] <dshekhtman> i’m hitting back in the browser
[18:28:18] <dshekhtman> and the URL changes
[18:28:20] *** sk87 has quit IRC
[18:28:22] <ashah> @Linell: I get "Failed to instantiate module" and Failed to instantiate messageCenterService"
[18:28:24] <jaawerth> ...yes, I understand that
[18:28:24] <dshekhtman> but it doesn’t retrigger my http request
[18:28:28] *** Siyfion has quit IRC
[18:28:34] *** senayar has quit IRC
[18:28:36] <jaawerth> again: what is the context from which you're hitting back?
[18:28:48] *** abram is now known as abram_shamed
[18:28:55] <dshekhtman> i’m not sure i understand what you mean
[18:29:01] <Linell> ashah: And you've ensured that you are loading all of the correct files and that you've got it imported into your app correctly?
[18:29:04] <jaawerth> are you switching between two angular client-side routes, or are you completely outside of the angular part of your app when you're hitting back?
[18:29:10] <dshekhtman> oh i see
[18:29:24] <ashah> Linell: I added the script src into my index.html, and added 'messageServiceCenter' into my app.js modules section. I then added it into the controller I want, which is where I'm getting the problem
[18:29:32] *** patrick99e99 has joined #angularjs
[18:29:34] *** phuh has quit IRC
[18:29:36] <dshekhtman> i’m not using “routes” the angular way, i’m using $location to parse out query params and do a search to another API with them
[18:29:38] <ashah> Linell: its very possible that I missed a step
[18:29:51] *** Milkweed has quit IRC
[18:29:54] *** DrMabuse has quit IRC
[18:29:55] *** abram_shamed is now known as abram
[18:29:58] <dshekhtman> it’s not my API tho
[18:29:59] *** phuh has joined #angularjs
[18:30:10] <dshekhtman> kinda like google custom search basically but not google
[18:30:18] <dshekhtman> so when i have
[18:30:21] *** m8 has quit IRC
[18:30:31] *** say2joe has joined #angularjs
[18:30:34] <dshekhtman> website.com/search?q=searchTerm
[18:30:35] *** dannyc_ has quit IRC
[18:30:40] *** ogdabou has quit IRC
[18:30:42] *** magellanicloud has joined #angularjs
[18:31:04] <dshekhtman> and use $location.search().q to pull out the search term and search it on this external API
[18:31:06] *** mkusher has quit IRC
[18:31:20] <dshekhtman> btu i have something running on page load that does that if you just refresh the page
[18:32:21] *** Aliks has joined #angularjs
[18:32:31] *** lemur has quit IRC
[18:32:33] <jaawerth> the one-line bit of code in the first answer is a quick fix, the second answer explains why the first answer works
[18:32:44] <Linell> ashah: Nah, I think that sounds about right. You should try to create a super small application on plunker that uses it to make sure you've got all of the steps straight
[18:32:49] <Linell> ashah: remove all of the noise, you know?
[18:32:50] <dshekhtman> do i do this inside angular or just on the page in general?
[18:33:06] *** afuggini has joined #angularjs
[18:33:15] <jaawerth> doesn't matter
[18:33:23] <jaawerth> in fact
[18:33:25] *** mattattaque has joined #angularjs
[18:33:27] *** dannyc has quit IRC
[18:33:35] <ashah> @Linell: How would I include the message-center service on plunker without bower-installing it there too?
[18:33:38] <dshekhtman> figures, lemme try
[18:33:39] *** Beatzebub has joined #angularjs
[18:33:43] *** diosney has joined #angularjs
[18:33:48] *** RobinBAwesome has joined #angularjs
[18:33:57] <Linell> ashah: You could just copy those files in directly
[18:33:57] <jaawerth> you'd only really NEED to do it anywhere from which you need to "back in" to angular or "back in" to a page where you want your scripts to run again
[18:33:59] *** zzing has joined #angularjs
[18:34:10] <jaawerth> and I wouldn't overuse it, for the reasons mentioned in the second SO answer
[18:34:16] *** dnakov has quit IRC
[18:34:21] *** recidive has quit IRC
[18:34:23] <ashah> Linell: Actually, am I supposed to create my own directive/service, or can I use the one found in the bower folder?
[18:34:40] <dshekhtman> jaawerth: didn’t work :|
[18:34:47] *** krawek has quit IRC
[18:35:00] <Linell> ashah: I've never used that package personally. I figured it's just an import error
[18:35:03] <jaawerth> or rather, sorry, you'd just need to set this on your page itself
[18:35:04] <dshekhtman> i thought about using $locationChangeSuccess but that gets me into all sorts of issues
[18:35:06] <catonabike> jaawerth, nickeddy: I'm just baffled that the `layers` and `alert.layer` output can show `alert.layer` to be a member of `layers`, but the <select> is not set to the right value. and only maybe 30% of the time!!
[18:35:13] <catonabike> the other times it is set as expecte
[18:35:13] <nickeddy> catonabike: and layers is what ?
[18:35:15] <jaawerth> on the angular page - the page where youw ant to be able to back in and have your scripts run
[18:35:18] <catonabike> nickeddy: an array of strings
[18:35:23] <nickeddy> catonabike: yeah let me see it
[18:35:31] <dshekhtman> jaawerth: that’s what i just tried
[18:35:31] <kakashiAL> jaawerth: I love you!
[18:35:34] *** whunt has joined #angularjs
[18:35:37] <ashah> Linell: ok, thanks :)
[18:36:35] <jaawerth> dshekhtman: it might be firefox specific, I've never actually had to do this. what browser are you using?
[18:36:38] <catonabike> nickeddy: specifically, alert.layer is "pylibmc" and layers is [ "nginx", "wsgi", "pylibmc", "sqlalchemy", "httplib", "SummaryService:client", "SummaryService:server", "ShardQuery", "dynamodb", "MySQLdb" ]
[18:36:42] *** frankblizzar has quit IRC
[18:36:43] *** sikor_sxe has quit IRC
[18:36:47] <dshekhtman> jaawerth: chrome
[18:36:59] *** mel| has joined #angularjs
[18:37:00] <dshekhtman> but obv i want it to worth everywhere
[18:37:04] *** tsalb has joined #angularjs
[18:37:09] *** xxMatiasFCxx has joined #angularjs
[18:37:30] *** trend has joined #angularjs
[18:37:36] <dshekhtman> in an ideal world i’d just bind the model variables directly to the URL, which i’ve read is possible
[18:37:42] *** Aliks has quit IRC
[18:37:43] <dshekhtman> but the problem is my search term
[18:37:46] *** MaxV has quit IRC
[18:37:50] <dshekhtman> it gets updated after each character is typed
[18:37:59] *** a3gis has quit IRC
[18:37:59] <mel|> hi, is it possible to expect two different calls in one test with httpBackend?
[18:38:01] <mel|> $
[18:38:03] <dshekhtman> so back would work but you’d have to back through every letter of the term you just typed
[18:38:16] *** Aliks has joined #angularjs
[18:38:17] *** aks has quit IRC
[18:38:31] <catonabike> funky, right?
[18:38:31] <jaawerth> either way, your scripts aren't going to rerun upon back button unless you disable that caching somehow
[18:38:32] <mel|> i always get "unexpected request" for the second call
[18:38:41] *** ctanga has quit IRC
[18:39:10] *** naneau has quit IRC
[18:40:04] <kakashiAL> jaawerth: lets say I have a list of informations in my database as json, and I want that this list with 5 items creates automaticaly 5 textfields that I can delete if I want, know what I mean?
[18:40:06] *** zzing_ has joined #angularjs
[18:40:16] *** Lynx119 has joined #angularjs
[18:40:17] <dshekhtman> thanks jaawerth, reading
[18:40:23] <jaawerth> catonabike: hard to help without seeing it reproduced. what I CAN tell you is that select chooses which option is selected by doing strict comparison (===) with ng-model. What I've seen as a result is that if you're using objects with ng-options, you can't just set an identical object since strict equality compares object references
[18:40:25] <dshekhtman> thing is, i don’t really need caching. it’s okay to refetch the data
[18:40:27] *** Snugug has quit IRC
[18:40:29] <jaawerth> catonabike: if they're primitives, though...
[18:40:40] <catonabike> jaawerth: yes, strings
[18:40:47] <jaawerth> then I'd need to see an example
[18:40:51] <catonabike> jaawerth: alert.layer is a string, and the array is strings ...
[18:40:56] *** xxMatiasFxx has quit IRC
[18:40:57] *** diosney has quit IRC
[18:41:02] <catonabike> heh i'd set up a tunnel to my host if that were kosher :)
[18:41:03] <jaydubya> Foxandxss: are you in?
[18:41:12] <jaawerth> if it isn't reproducible then there must be something else going on in your code causing it
[18:41:16] <Paul_B_Hartzog> fwiw we tell our clients that they can't use Back buttons
[18:41:20] <jaawerth> I suggest isolating the select behavior so you can eliminate other possibilities
[18:41:25] *** Lynx119 has left #angularjs
[18:41:26] <Foxandxss> jaawerth: kinda
[18:41:42] <jaawerth> Foxandxss: I did some handwaving, I admit
[18:41:45] <jaawerth> ;-)
[18:42:04] *** rahulprasad has quit IRC
[18:42:05] <Foxandxss> jaawerth: oh, sorry
[18:42:05] *** aks has joined #angularjs
[18:42:06] <Foxandxss> jaydubya: kinda
[18:42:09] <jaawerth> ohh
[18:42:09] <jaawerth> haha
[18:42:24] *** foofoobar has joined #angularjs
[18:42:25] <Foxandxss> felt lazy to put a third character for tabing
[18:42:25] <dshekhtman> Paul_B_Hartzog: that is unfortunately not possible here, this will be a coimpletely public resource
[18:42:32] *** rahulprasad has joined #angularjs
[18:42:35] *** aks has quit IRC
[18:42:38] *** Aliks has quit IRC
[18:42:44] <Paul_B_Hartzog> yep, that's why i said "fwiw" ;-)
[18:42:49] <ashah> Linell: ok, I think I fixed part of the problem - i accidently removed 'messageService' from my bower.json which is why I was getitng the other error. I've know got a serviceProvider error: "Unknown provider: messageCenterServiceProvider <- messageCenterService" if you have any clues on what that might be?
[18:42:51] <Paul_B_Hartzog> mileage may vary :-D
[18:42:52] *** DigitallyBorn has joined #angularjs
[18:42:55] <mel|> can someone help me with $httpBackend?
[18:42:58] <olivvv> if (angular.isDefined(input.attr('ng-model-options'))) will tell me if the attribute is there
[18:43:01] <catonabike> jaawerth: well, i can see that the select options come out as <option value="0">Item</option> seems suspect
[18:43:09] *** bullicon has quit IRC
[18:43:19] <olivvv> Now how can test if it has the param updateOn: 'blur' ????
[18:43:23] *** zzing has quit IRC
[18:43:28] *** tinaj1234_ has joined #angularjs
[18:43:42] <Linell> ashah: Not past the fact that it sounds like you havent registered messageCenterServiceProvider in your app
[18:43:43] <catonabike> looks like that's expected behavior
[18:43:44] <jaydubya> Foxandxss: Anytime I run toastr.success in a controller, I get a "can't call success on undefined" error ... I verified the css and js files are loading, in app.js, I am injecting 'toastr' and in the controller where I am calling it, I injected 'toastr' ... is there something else I am missing that you would recognize without a lot of thought???
[18:43:47] <jaawerth> catonabike: if the options themselves aren't rendering right then.. yeah, you likely have to tweak your ng-options statement
[18:44:13] <Foxandxss> jaydubya: I need to see the line where you're getting that
[18:44:53] <jaydubya> Foxandxss: toastr.success('Hello world!', 'Toastr fun!');
[18:45:01] *** aks has joined #angularjs
[18:45:37] <Paul_B_Hartzog> I rolled my own because none of the ones "out there" fit my needs
[18:45:39] <Paul_B_Hartzog> :-)
[18:45:45] <Foxandxss> jaydubya: show the entire controller on a bin
[18:45:46] *** Jae has quit IRC
[18:45:52] *** mnngfltg has quit IRC
[18:45:56] <jaydubya> TypeError: Cannot read property 'success' of undefined
[18:46:04] <nickeddy> spam
[18:46:05] *** jae has joined #angularjs
[18:46:11] <nickeddy> don't ever do that again
[18:46:14] <jaydubya> OOPS
[18:46:19] *** jimobrie_ has joined #angularjs
[18:46:22] <jaydubya> I was trying to paste it online
[18:46:25] <jaydubya> sorry
[18:46:29] <catonabike> jaydubya: use irssi, it makes you confirm that.
[18:46:31] <ashah> Linell: how/where would I do that?
[18:46:37] <nickeddy> catonabike++
[18:46:39] <UniBot> catonabike Karma: 1
[18:46:59] <jaydubya> is irssi a client?
[18:47:07] <catonabike> ya
[18:47:16] <jaydubya> OK, I use LimeChat
[18:47:17] <Paul_B_Hartzog> I rolled my own because none of the ones "out there" fit my needs
[18:47:26] <nickeddy> it's a linux client for terminals
[18:47:41] <nickeddy> well i guess it works on macs too
[18:47:54] *** phzon has quit IRC
[18:48:07] *** jocuca has quit IRC
[18:48:15] *** SuRfDeMoN has joined #angularjs
[18:48:22] <Foxandxss> jaydubya: 10 lines
[18:48:23] <Paul_B_Hartzog> @jaydubya are you the Lego guy?
[18:48:24] *** NorthBlast has quit IRC
[18:48:26] *** jocuca has joined #angularjs
[18:48:35] <Foxandxss> jaydubya: is no that hard to debug
[18:48:38] <Foxandxss> but well, line 8
[18:48:55] <jaawerth> haha yeah
[18:48:57] <jaydubya> ohhh, I have to inject there too ... sorry
[18:49:07] <jaawerth> if you'er going explicitly inject, you gotta inject all the things
[18:49:44] *** tfennelly has quit IRC
[18:49:45] *** prbc has quit IRC
[18:50:00] *** jaznow has quit IRC
[18:50:02] *** josh-k has joined #angularjs
[18:50:09] <jaydubya> but that didn't fix my toaster
[18:50:12] <jaydubya> hmmmm
[18:50:29] *** aks has quit IRC
[18:50:32] *** patrickarlt has joined #angularjs
[18:50:44] *** prbc has joined #angularjs
[18:50:55] <jaydubya> Paul_B_Hartzog: don't know ... what does that mean?
[18:51:26] <jaydubya> now it says I can
[18:51:28] <Paul_B_Hartzog> jaydubya: there is a guy in Lego IRC with the nick jaydubya
[18:51:41] <jaydubya> Paul_B_Hartzog: not me
[18:51:42] *** adpirz has joined #angularjs
[18:51:44] <Foxandxss> jaydubya: it has to throw a new error then
[18:51:55] <Paul_B_Hartzog> jaydubya: heh, ok :-)
[18:52:00] *** delight has joined #angularjs
[18:52:05] *** trend has quit IRC
[18:52:10] <jaydubya> now it says that I can't call then() on undefined? But I am not calling then()
[18:52:35] <catonabike> heh it looks like i found a bug in <select>/ngOptions
[18:52:59] <catonabike> if ngOptions is bound to a value which is set after the ngModel value on the same select is set, the <select> value is not updated
[18:53:00] *** despai has joined #angularjs
[18:53:05] *** sirkitree is now known as sirkitree|afk
[18:53:08] *** trend has joined #angularjs
[18:53:21] <Ownix> Hey guys, I have been trying to read tutorials and create my own little route auth system. And I have come up with a really basic base system. I have a factory that can check if the user has the required permission and if they do it returns a success promise to the route resolver object, if they dont it returns a reject which fires the routeChangeError I
[18:53:36] <Ownix> Does this look like a decent ay to do this? Or am I violating any major best practices?
[18:53:44] <Foxandxss> jaydubya: what version of angular? you have to use 1.3.x
[18:53:45] *** frem has joined #angularjs
[18:53:47] <nickeddy> Ownix: are you using ngRoute?
[18:53:58] <catonabike> so when the collection I use in ngOptions loads before the record that is bound to the select's ngModel, the <select> has the right selected option
[18:53:59] <Foxandxss> Paul_B_Hartzog: I love lego btw
[18:54:12] <catonabike> but if the collection loads after the record bound to ngModel, the <select> is not updated
[18:54:13] <jaydubya> 1.2.16
[18:54:17] <Paul_B_Hartzog> Foxandxss: Lego rules
[18:54:19] *** dra has joined #angularjs
[18:54:20] *** doug64k has quit IRC
[18:54:21] <jaydubya> Foxandxss: ^
[18:54:30] <Foxandxss> Paul_B_Hartzog: I have a couple of them on my room :)
[18:54:31] <catonabike> jaawerth: findings ^
[18:54:37] <Paul_B_Hartzog> lol
[18:54:40] <Foxandxss> jaydubya: you need 1.3.x or toastr 0.4.x
[18:54:49] *** williamtdr has quit IRC
[18:54:53] <jaawerth> catonabike: so you're saying... if you set the ng-model value before the ng-options value, it's breaking?
[18:54:53] *** mkusher has joined #angularjs
[18:54:57] <nickeddy> catonabike: make your list of layers inside an object
[18:54:59] <catonabike> yepper
[18:55:12] *** prbc has quit IRC
[18:55:15] <nickeddy> catonabike: so ng-options="l for l in obj.layers"
[18:55:20] <nickeddy> instead of just layers
[18:55:20] *** Josh has joined #angularjs
[18:55:23] <nickeddy> MOAR DOTS
[18:55:24] <Ownix> nickeddy: yes I am.
[18:55:26] <jaydubya> Foxandxss: OK, thanks! I'm scared to change Angular at this point so I will look for 0.4.X
[18:55:35] <catonabike> nickeddy: that doesn't seem to be the issue, because the <select> does get the right options.
[18:55:41] *** bayousoft has quit IRC
[18:55:41] *** Silne30 has quit IRC
[18:55:45] *** Josh is now known as Guest66440
[18:55:47] *** Luser has quit IRC
[18:55:47] <nickeddy> Ownix: i highly recommend moving to ui-router and using onEnter/onExit callbacks to do auth stuff
[18:55:59] <jaawerth> catonabike: ^ see plunk
[18:56:04] *** Simone\_ has joined #angularjs
[18:56:04] <Ownix> Okay nickeddy
[18:56:05] <catonabike> nickeddy: if it were a case of the <select> binding to undefined i could see that, but the expression is evaluating to the array, and the model should thus resolve, no?
[18:56:05] *** bayousoft has joined #angularjs
[18:56:05] *** laurensclaessen has joined #angularjs
[18:56:06] <jaawerth> is that not doing what you're describing?
[18:56:09] *** jlebrech has quit IRC
[18:56:11] <Ownix> I will do that
[18:56:12] *** doug64k has joined #angularjs
[18:56:17] *** Schtive has quit IRC
[18:56:18] *** adpirz has quit IRC
[18:56:20] *** Luser has joined #angularjs
[18:56:21] <nickeddy> Ownix: very similar - you use a factory/service to check their permissions, if they don't have permissions do a $state.go('home') or wherever
[18:56:25] <dshekhtman> really interesting development. if i use $location.search().q = “test” to change my query parameter, hitting back does nothing, but if i simply change it in my URL and reload the page, back does work. weird
[18:56:27] <nickeddy> Ownix: msg me if you have any questions
[18:56:52] <Ownix> Okay give me a sec to install ui-router and get it running
[18:57:10] <jaawerth> catonabike: or are you somehow running a digest between setting the model and setting the list?
[18:57:14] *** dshekhtman is now known as dannyid
[18:57:16] <jaawerth> is the list ocming in async?
[18:57:17] *** aks has joined #angularjs
[18:57:56] <Paul_B_Hartzog> Ownix: ui-router seconded. very good utility. :-)
[18:58:03] <jaawerth> hmm, nope, still works if I do it async
[18:58:25] *** frem has quit IRC
[18:58:27] *** chrisbirk has joined #angularjs
[18:58:50] *** ahtik has quit IRC
[18:59:05] <jaydubya> I now have Toasts ... need butter and jam
[18:59:08] <jaawerth> catonabike: plunk updated with $timeout, so a full digest runs with no ng-options and it still works
[18:59:14] *** ChadStrat has joined #angularjs
[18:59:17] <catonabike> jaawerth: haha just did the same thing here :)
[18:59:23] *** Simone\ has quit IRC
[18:59:27] *** mkusher has quit IRC
[18:59:28] <catonabike> jaawerth: i did w/ ngRepeat and a timeout to try and mimick what is happening here, but cannot
[18:59:36] <catonabike> jaawerth: not doing any explicit $digest
[18:59:39] <catonabike> or $apply
[18:59:46] *** eamonn has joined #angularjs
[19:00:24] *** Silne30 has joined #angularjs
[19:00:29] *** tech2 has quit IRC
[19:00:37] *** Luser has quit IRC
[19:00:46] *** DrMabuse has joined #angularjs
[19:00:54] <jaawerth> so... doesn't that still provide a counterexample to the bug you thought you'd found?
[19:01:14] <catonabike> jaawerth: well mine also involves ngInclude
[19:01:21] *** MrBaboon has joined #angularjs
[19:01:22] *** wallerdev has joined #angularjs
[19:01:30] <jaawerth> there's gotta be something in your code causing it to go awry
[19:01:30] *** favetelinguis has joined #angularjs
[19:01:54] <catonabike> it looks like ngInclude and plnkr don't play nice w/ separate include file
[19:01:55] *** snurfery has joined #angularjs
[19:02:06] <catonabike> ah my fault
[19:02:13] *** anapitupulu_ has joined #angularjs
[19:02:15] *** qdk has joined #angularjs
[19:02:18] *** rahulprasad has quit IRC
[19:02:24] *** qrob has joined #angularjs
[19:02:34] <jaawerth> forgot the extra quotes?
[19:02:39] *** jaawerth has left #angularjs
[19:02:39] *** Una has quit IRC
[19:02:44] *** jaawerth has joined #angularjs
[19:02:47] <catonabike> forgot several things, but still working w/ include
[19:02:50] <catonabike> hm ...
[19:03:00] <catonabike> that said i've absolutely confirmed this locally
[19:03:01] *** Una has joined #angularjs
[19:03:13] <catonabike> (the correspondence between log msg order and good/bad behavior)
[19:03:52] *** seme has joined #angularjs
[19:03:53] <jaawerth> if you can't reproduce it outside of your local code, then it's unlikely an angular bug
[19:03:56] <jaawerth> not impossible, but unlikely
[19:04:05] *** eamonn has quit IRC
[19:04:12] <catonabike> jaawerth: somebod new to angular and really software eng. wrote this controller which has become ... out of control (sunglasses)
[19:04:23] <nickeddy> lol
[19:04:25] <jaawerth> oh god
[19:04:27] <nickeddy> can you link the controller?
[19:04:28] <jaawerth> save me from long controllers
[19:04:31] <catonabike> jaawerth: so it does funky stuff w/ replacing scopes, shared tempaltes, etc.
[19:04:32] *** zz_night-owl is now known as night-owl
[19:04:37] <nickeddy> wat
[19:04:45] <nickeddy> that's probably more your issue than anything
[19:04:47] <catonabike> jaawerth: solid 1k lines
[19:04:50] <jaawerth> replacing... scopes?
[19:04:59] * jaawerth throws up
[19:05:02] <nickeddy> yeah this has nothing to do with any angular bug lol
[19:05:04] <catonabike> jaawerth: well, included templates sharing scope data
[19:05:05] <kakashiAL> jaawerth: how can I tell this "dynamic add textfiel" script to generate textfield if I give it an array of 5 items for example?
[19:05:09] <oniijin> lol
[19:05:12] *** jacquesdanc|mob has joined #angularjs
[19:05:13] <catonabike> jaawerth: rather than using directives bound to templates
[19:05:19] <seme> hey guys I'm trying to use restangular and for some reason it can query for a set of data but then if I try to query for a relationship from that initial set of data it calls a weird url... like /api/v1/libraries/books instead of /api/v1/libraries/1/books
[19:05:24] *** Alvin_ has quit IRC
[19:05:24] <seme> any idea whats going on there?
[19:05:27] *** glosoli has joined #angularjs
[19:05:31] *** anapitupulu__ has quit IRC
[19:05:37] <jaawerth> kakashiAL: huh?
[19:05:44] <nickeddy> seme: can you show me the query?
[19:05:54] <nickeddy> seme: sometimes Restangular.one differs from Restangular.all
[19:05:57] *** rahulprasad has joined #angularjs
[19:06:11] <nickeddy> well all of the time
[19:06:27] <kakashiAL> jaawerth: you gave me a link with the script, remember?
[19:06:37] *** ctanga has joined #angularjs
[19:06:37] <jaawerth> kakashiAL: yeah. I don't understand hte issue though
[19:06:49] *** tschundeee has joined #angularjs
[19:06:52] <jaawerth> just give it an array of 5 strings and it will give you 5 text fields with those strings filled in
[19:06:54] <kakashiAL> okay, I manualy can add textfields and remove them
[19:07:03] <kakashiAL> jaawerth: ahh so easy?
[19:07:05] <kakashiAL> okay
[19:07:08] <jaawerth> yeah, it's angular databinding
[19:07:09] <jaawerth> nothing magical
[19:07:20] <kakashiAL> if thats the case :)
[19:07:33] <jaawerth> try to work your way through how it works rather than just using it, it will make you happier in the long run ;-)
[19:07:34] *** jpstone has joined #angularjs
[19:07:42] *** prosper_ has quit IRC
[19:07:42] <jaawerth> anyway, back in 20
[19:07:44] <nickeddy> seme: should look something like Restangular.one('libraries', id).getList('books')
[19:07:45] <kakashiAL> I tought that I have to use a loop
[19:07:47] *** magellanicloud has quit IRC
[19:07:56] <kakashiAL> jaawerth: will study it to the extrem, thanks again
[19:08:00] *** simplyshipley has joined #angularjs
[19:08:01] *** t1mmen_ has joined #angularjs
[19:08:02] <seme> I'm using a restangular service for my library
[19:08:04] <catonabike> thans for the help jaawerth , nickeddy , i'm gonna go crush soda cans or something
[19:08:12] *** kakashiAL has quit IRC
[19:08:15] *** soren_engel has joined #angularjs
[19:08:18] <qrob> I need to use $route.reload() to refresh a svg application when a ng-switch-when='mysvgapp' is triggered, but it causes an infinite loop. Is there anyone willing to help me out?
[19:08:39] <jaawerth> well I mean if you want to APPEND five items, you can either use .concat or a loop
[19:08:40] *** AngularUI has joined #angularjs
[19:08:40]
<AngularUI> [ng-grid] jiggak opened pull request #2169: use horz scroll bar option to calculate initial grid height (master...calc-init-height) http://git.io/5fmFmQ
[19:08:40] *** AngularUI has left #angularjs
[19:08:42] *** t1mmen has quit IRC
[19:08:53] <jaawerth> catonabike: lol
[19:08:57] <nickeddy> seme: errrr that's kind of strange functionality. i'd probably throw that stuff in to a response interceptor
[19:09:02] <jaawerth> catonabike: have fun in refactor land
[19:09:22] *** cornerma1 has joined #angularjs
[19:09:42] <nickeddy> seme: also i would make that for loop angular.forEach(libraries, function(library) { // do stuff with library })
[19:09:52] <seme> nickeddy: can you point me to some kind of example? I'm not sure how to intercept the response
[19:10:01] <nickeddy> seme: sure give me a sec
[19:10:05] <seme> nickeddy: on the foreach yeah that would make it cleaner
[19:10:10] *** Oddman has quit IRC
[19:10:19] *** gkap has quit IRC
[19:10:31] *** zemanel has quit IRC
[19:10:58] *** Lingos_ has joined #angularjs
[19:11:00] *** nickbytes has quit IRC
[19:11:02] <nickeddy> seme: yeah just for readability sake
[19:11:10] *** Versality has quit IRC
[19:11:13] <nickeddy> trying to find my responseInterceptor i use...
[19:11:15] <catonabike> the thing is, changing the <select> updates the value
[19:11:19] <nickeddy> somewhere here
[19:11:27] *** soren_engel has quit IRC
[19:11:33] <catonabike> and there are no encodings etc. to screw w/ string equality
[19:11:36] <seme> ok I just updated it to use the angular.foreach
[19:11:43] *** Versality has joined #angularjs
[19:11:44] <seme> about half the code :)
[19:11:46] <catonabike> ah well i'll report back
[19:11:51] *** tschundeee has quit IRC
[19:12:08] *** mkusher has joined #angularjs
[19:12:29] *** siddart has quit IRC
[19:12:34] *** Una has quit IRC
[19:12:46] *** siddart has joined #angularjs
[19:12:50] *** cornerman has quit IRC
[19:12:52] *** cornerma1 is now known as cornerman
[19:13:06] <seme> the weird part is that calling getList on library calls a url without the id of the library
[19:13:09] <seme> that doesn't make sense to me
[19:13:33] <seme> if I just look at each of the libraries that are returned I can see the result is good and they have the proper id's
[19:13:51] *** yelvert has quit IRC
[19:13:56] <nickeddy> seme: what does Library.getList() do ?
[19:13:57] <seme> if I call the correct URL it returns what I would expect... I just need to figure out why it is calling the wrong url
[19:14:00] *** glosoli has left #angularjs
[19:14:10] <nickeddy> i'm guessing it's an issue with your initial call
[19:14:13] *** siddart has quit IRC
[19:14:15] <seme> it calls /api/v1/libraries/books instead of /api/v1/libraries/1/books
[19:14:17] *** yelvert has joined #angularjs
[19:14:26] <nickeddy> no i get that
[19:14:29] *** siddart has joined #angularjs
[19:14:31] <nickeddy> i mean what's the code in your service
[19:14:44] *** nairys has joined #angularjs
[19:14:46] <seme> one sec I'll update the gist
[19:14:50] *** slopjong_ has joined #angularjs
[19:14:51] *** slopjong has joined #angularjs
[19:15:13] *** bayousoft has quit IRC
[19:15:30] *** Lingos_ has quit IRC
[19:16:50] *** siddart has quit IRC
[19:16:57] *** t1mmen_ is now known as t1mmen
[19:17:01] <seme> ok refresh
[19:17:06] *** siddart has joined #angularjs
[19:17:15] *** zzing_ has quit IRC
[19:17:39] *** bengillies has quit IRC
[19:18:01] *** H1FuelCell has quit IRC
[19:18:03] <nickeddy> hmmm
[19:18:10] *** mguillech has quit IRC
[19:18:14] <nickeddy> oh
[19:18:17] <nickeddy> wait no... hmmm
[19:18:22] <nickeddy> that is really weird
[19:18:34] *** conner_ has quit IRC
[19:18:39] *** yelvert has quit IRC
[19:18:43] *** mel| has quit IRC
[19:18:56] *** siddart has quit IRC
[19:19:02] *** d4rklit3 has joined #angularjs
[19:19:04] *** olivvv has quit IRC
[19:19:13] *** siddart has joined #angularjs
[19:19:43] *** H1FuelCell has joined #angularjs
[19:19:49] <seme> wait I think I see something
[19:20:00] <nickeddy> seme: that second part for nested restful resources
[19:20:02] <seme> it was me
[19:20:11] <nickeddy> oh :P working now?
[19:20:11] <seme> sorry I wasn't serializing the id in the libraries
[19:20:16] <nickeddy> ahhhh
[19:20:19] <nickeddy> yeah that will do it :)
[19:20:24] <seme> now it is calling the right url :)
[19:20:27] <nickeddy> sweet
[19:20:31] <seme> thanks :)
[19:20:40] <nickeddy> np
[19:21:00] <qrob> I'm using $timeout(loadscript, 0) in 'myapp' directive to append the source of an external script when the DOM has finished rendering. If I switch to 'myapp', from another directive, it loads the script correctly, but if I navigate again to the other directive and then return to 'myapp' the external source isn't loaded anymore.
[19:21:08] *** junmin has quit IRC
[19:21:09] <qrob> Has anyone ever faced a similar issue?
[19:21:23] <catonabike> jaawerth, nickeddy: so I was able to "fix" this by replacing: <select ng-model="o.p" ng-options="l for l in layers"></select> with: <select ng-model="o.p"><option ng-repeat="l in layers" ng-value="l">{{ l }}</option></select>
[19:21:52] *** spiderMonkey77 has quit IRC
[19:21:58] <nickeddy> catonabike: yeah some times with simple lists like that ng-options is overkill and ng-repeat can work fine
[19:22:00] <catonabike> jaawerth, nickeddy: so while it may not be an easily reproduceable bug, i'm pretty sure it's a bug. unless that solution reveals something obvious
[19:22:05] *** GreenJello has joined #angularjs
[19:22:10] <nickeddy> not really
[19:22:12] <catonabike> nickeddy: well, s/overkill/broken/
[19:22:19] <nickeddy> given we reproduced it in plnkr
[19:22:27] <nickeddy> i am guessing it's your 1k line controller
[19:22:28] <nickeddy> :P
[19:23:06] *** prettybigmonster has joined #angularjs
[19:23:18] *** storresi has quit IRC
[19:23:30] *** siddart has quit IRC
[19:23:35] *** vassagus has quit IRC
[19:23:44] <catonabike> first, i didn't write this controller :) second, given that the solution is the simple replacement i showed, something else is going on besides sloppy code ... as the ngOptions usage is *supposed* to be equal to the working, verbose replacement. either i'm confused about ngOptions or under certain circumstances it is buggy
[19:23:47] *** siddart has joined #angularjs
[19:23:54] *** merobertsjr has joined #angularjs
[19:24:33] *** marcjs_ has joined #angularjs
[19:24:38] <nickeddy> like i said, we were able to get it working in a plnkr so i have a feeling it's something going on in that controller or elsewhere that's screwing things up
[19:24:52] <sacho_> what were you fixing
[19:24:55] <nickeddy> then again, could be wrong
[19:25:01] *** siddart has quit IRC
[19:25:04] *** aawc has quit IRC
[19:25:19] *** siddart has joined #angularjs
[19:25:37] <catonabike> sacho_: select w/ ngOptions not using ngModel value, but sets ngModel onchange. only happens when ngOptions array is loaded after the ngModel value is set
[19:25:37] <nickeddy> catonabike: in any case, if you can get your controller working in a plnkr we can take a better look
[19:25:44] *** bradgignac has joined #angularjs
[19:25:45] <nickeddy> hard to tell what's going on without the complete picture
[19:25:49] <ezakimak> is there an easy way to prevent ng-tags-input from allowing duplicate inputs?
[19:25:50] *** bradgignac has quit IRC
[19:26:00] *** marcjs has quit IRC
[19:26:11] *** nycdevgirl has quit IRC
[19:26:11] *** bradgignac has joined #angularjs
[19:26:19] *** Sawbones has joined #angularjs
[19:26:38] *** marcjs__ has joined #angularjs
[19:26:39] <catonabike> sacho_: if the ngOptions array is available, the select's selected option corresponds w/ the ngModel value. using this verbose ngRepeat <option> version w/ ngModel on the <select> as before, things work as expected. so seemed like an ngOptions bug as ngOptions is supposed to be replacement for this verbose version
[19:26:44] *** esparkman-mbp has joined #angularjs
[19:26:47] <esparkman-mbp> mornin
[19:27:12] *** dweave has joined #angularjs
[19:27:34] <esparkman-mbp> I am new to Angular and I'm digging through the the old ui-router and the new ngRoute, I'm trying to ascertain how I can use the old $stateProvider under ngRoute
[19:27:52] <dweave> has anyone here ever had the need to create your own directive which manages a list in the dom (instead of using ng-repeat). Am i doing something wrong if I”m thinking about doing so?
[19:28:15] <catonabike> dweave: i've done that, but i tied the directive to a template using ng-repeat
[19:28:18] *** H1FuelCell has quit IRC
[19:28:26] *** ngbot has joined #angularjs
[19:28:26] <ngbot> angular.js/master 5c611e8 Jeff Cross: docs(CHANGELOG): update changelog with 1.2.27
[19:28:26] *** ngbot has left #angularjs
[19:28:29] <catonabike> dweave: no reason to manage the list myself
[19:28:55] *** siddart has quit IRC
[19:28:56] <catonabike> dweave: maybe if you didn't want 1:1 model:view then you'd want to do this on your own
[19:28:59] <nickeddy> dweave: that would be using the dom as the model which is weird
[19:29:00] <dweave> catonabike: i need to make a caoursel that has very specific needs and i’m feeling constrained by ng-repeat
[19:29:04] <nickeddy> and very jqueryish
[19:29:06] *** marcjs_ has quit IRC
[19:29:11] *** siddart has joined #angularjs
[19:29:13] <catonabike> dweave: is your structure cyclic?
[19:29:24] *** dnakov has joined #angularjs
[19:29:24] *** jimobrie_ has quit IRC
[19:29:31] <catonabike> dweave: e.g. slide1 -> slide2 -> slide3 -> slide1
[19:29:34] <dweave> what exacly do u mean? like goes back to the beginning on the last slide?
[19:29:35] *** phuh has quit IRC
[19:29:35] <dweave> no
[19:29:45] <catonabike> dweave: so how is ngRepeat limiting?
[19:29:49] *** frem has joined #angularjs
[19:29:53] *** mkusher has quit IRC
[19:29:54] *** ki0 has quit IRC
[19:29:56] *** jimobrien has joined #angularjs
[19:30:00] *** phuh has joined #angularjs
[19:30:04] <dweave> for instance: if a slide in the middle is removed
[19:30:04] *** edy has joined #angularjs
[19:30:11] <esparkman-mbp> Or do I have the use case of ui-router and ngRoute flipped?
[19:30:14] *** whunt has quit IRC
[19:30:20] <dweave> do I just destroy the element when the scope gets destroyed?
[19:30:23] *** pnode has quit IRC
[19:30:30] *** greengriminal has quit IRC
[19:30:31] *** spaceonline has quit IRC
[19:30:33] <dweave> just trying to think of implications of common crud operations
[19:30:44] <ctanga> new ngRoute? old ui-router?
[19:30:45] <ctanga> what
[19:30:49] *** epantzar has joined #angularjs
[19:30:50] *** jacuqesdancona has joined #angularjs
[19:31:13] <ctanga> new ngRoute implies the angular 2.0 router. ui-router is a third party addition
[19:31:15] *** NormySan has quit IRC
[19:31:24] *** laurensclaessen has quit IRC
[19:31:28] <esparkman-mbp> ctanga: I may completely be out of scope on the references, I am new to Angular. Sorry for any confusion.
[19:31:40] <nickeddy> esparkman-mbp: ui-router is the good one
[19:31:44] <nickeddy> ngRoute sucks
[19:31:49] <esparkman-mbp> lol ok
[19:31:51] *** junmin has joined #angularjs
[19:32:03] <catonabike> dweave: ngRepeat removes the node for you when its corresponding array element is deleted
[19:32:07] <esparkman-mbp> I'm spiking a wizard style form that retains state of each step
[19:32:11] <catonabike> dweave: you don't want that?
[19:32:27] <dweave> idk what i want :(
[19:32:29] *** cuebix-wk has joined #angularjs
[19:32:31] *** AtomicCookie has quit IRC
[19:32:36] <cuebix-wk> whaddup my ninjas
[19:32:37] <catonabike> BACK TO THE CATTING BOARD!
[19:32:37] *** ngbot has joined #angularjs
[19:32:37] <ngbot> angular.js/v1.2.x 84bf883 Jeff Cross: docs(CHANGELOG): update changelog with 1.2.27
[19:32:37] *** ngbot has left #angularjs
[19:32:44] *** frem_ has joined #angularjs
[19:33:04] <dweave> catonabike: right now im struggling with controling the size of my slides
[19:33:05] *** siddart has quit IRC
[19:33:08] *** Guest66440 has quit IRC
[19:33:08] <dweave> before they are put in the dom
[19:33:18] <dweave> it needs to be sized dynamically
[19:33:20] *** siddart has joined #angularjs
[19:33:24] <cuebix-wk> in a template, if i have a form control and i want to refer to the modelcontroller in an expression in an attribute on that control, is that possible?
[19:33:36] <nickeddy> anyone have a link for angular module name constraints?
[19:33:50] <cuebix-wk> basically i'm trying to bind something to $error to show a tooltip when one of those flags are set
[19:33:53] <dweave> when the window changes size
[19:33:56] *** gkap has joined #angularjs
[19:33:58] *** yelvert has joined #angularjs
[19:34:01] *** dannyc has joined #angularjs
[19:34:08] <dweave> i don’t want to change width of node when it’s already in the dom after it’s added
[19:34:14] <dweave> on mobile it is noticeable
[19:34:21] *** ioudas has quit IRC
[19:34:30] <nickeddy> dweave: that's a css issue
[19:34:33] <asdofindia> catonabike, I tried binding to the on method. But alert('hi') doesn't seem to work when the bound broadcast was transmitted.
[19:34:34] <nickeddy> nothing to do with angular
[19:34:39] <jaawerth> Paul_B_Hartzog: durandel is an alternative to angular, why would you ever try to use the two together?
[19:34:58] <jaawerth> well s/alternative/comparable framework/
[19:35:02] <Paul_B_Hartzog> that's what I thought, but I was them referenced as being used together
[19:35:06] *** jacuqesdancona has quit IRC
[19:35:09] *** siddart has quit IRC
[19:35:11] <Paul_B_Hartzog> just making sure I was right :-)
[19:35:12] <nickeddy> dude from the angular 2.0 team works on durandal
[19:35:14] <jaawerth> well, they're sort of being merged for angular 2.0
[19:35:18] <nickeddy> i think
[19:35:18] <dweave> nickeddy i don’t know ahead of time what the size of the container will be and it’s a complicated use case in that it’s more of a slider than a carousel
[19:35:24] *** siddart has joined #angularjs
[19:35:26] <dweave> think continuous track of images
[19:35:38] <dweave> not the neat and tidy bootstrap carousel
[19:35:43] <nickeddy> that's still css though
[19:35:46] <nickeddy> media queries bro
[19:36:00] *** Joe_knock has left #angularjs
[19:36:18] <dweave> not it needs to be pixel perfect at every size
[19:36:19] *** morenoh149 has joined #angularjs
[19:36:38] <dweave> need to be able to see edges of previous and next node
[19:36:44] <nickeddy> that's still CSS man lol
[19:37:01] <catonabike> asdofindia: weird, these functions just take callbacks, they don't really care where the functions were defined
[19:37:03] <nickeddy> angular shouldn't be concerned with view pixel width and crap like that
[19:37:07] <catonabike> asdofindia: so maybe something else is happening
[19:37:10] <dweave> i know what css is. media query will not work though
[19:37:11] *** Snugug has joined #angularjs
[19:37:25] <nickeddy> .....
[19:37:27] *** frem has quit IRC
[19:37:28] *** frem_ is now known as frem
[19:37:28] *** qrob has left #angularjs
[19:37:29] <asdofindia> catonabike, thanks. lemme try to test it in some other way other than alert
[19:37:32] *** qrob has joined #angularjs
[19:37:46] *** qrob has quit IRC
[19:37:47] <dweave> nickeddy i think there are definitely times when js is necessary for layout
[19:37:50] <dweave> no?
[19:38:08] *** zproj has joined #angularjs
[19:38:09] *** alho has joined #angularjs
[19:38:12] *** whunt has joined #angularjs
[19:38:12] *** dannyc has quit IRC
[19:38:20] <wafflej0ck_> dweave: definitely... the cases are pretty limited though and when possible it's best to do things with CSS as much as you can
[19:38:23] *** yelvert has quit IRC
[19:38:26] <nickeddy> ^
[19:38:48] <dweave> right i guess my problem is i’m working with a shitty design with designers who aren’t flexible
[19:38:52] *** a3gis has joined #angularjs
[19:38:55] <nickeddy> ah
[19:38:58] <nickeddy> yeah that will do it :(
[19:39:18] <nickeddy> dweave: you can definitely do what you want in a directive
[19:39:23] <wafflej0ck_> it's okay to want and get things pixel perfect too but to make things flexible for various devices you can't control every single size
[19:39:24] <zproj> Hi, can someone help me loading a svg based application in a directive when ng-switch is triggered? I'm facing some troubles...
[19:39:40] <dweave> ok. while using ng-repeat?
[19:39:45] <nickeddy> dweave: probably have to use jquery though as jqlite is pretty limited in functionality in that regard
[19:39:53] <dweave> yeah
[19:40:00] <wafflej0ck_> dweave: don't think so
[19:40:03] <wafflej0ck_> eh
[19:40:07] <wafflej0ck_> I dunno I'm not a jQuery guy
[19:40:28] <nickeddy> i'm not a design guy either so take everything i'm saying with lots and lots of salt :P
[19:40:34] <dweave> yeah me either
[19:40:53] *** AWAW has joined #angularjs
[19:41:24] <dweave> wow
[19:41:26] *** zwischenzug has quit IRC
[19:41:26] <wafflej0ck_> it's "pixel perfect" but all based on constraints (and has some issues on mobile)
[19:41:34] *** RobinBAwesome_ has joined #angularjs
[19:41:41] *** siddart has quit IRC
[19:41:58] *** siddart has joined #angularjs
[19:42:05] *** Aliks has joined #angularjs
[19:42:35] *** zackiv31 has joined #angularjs
[19:42:40] *** RobinBAwesome has quit IRC
[19:42:41] *** RobinBAwesome_ is now known as RobinBAwesome
[19:42:50] *** twelverobots has joined #angularjs
[19:42:50] <wafflej0ck_> along with the position of all the other panels
[19:43:01] <nickeddy> wafflej0ck_: that's awesome.
[19:43:03] <wafflej0ck_> to be fair it got pretty complicated :)
[19:43:05] <wafflej0ck_> nickeddy: thx
[19:43:10] <nickeddy> wafflej0ck_: works on 2560x1440
[19:43:12] *** Schtive has joined #angularjs
[19:43:12] *** a3gis has quit IRC
[19:43:28] <nickeddy> do you have source for this?
[19:43:31] <nickeddy> i may want to steal it
[19:43:36] *** siddart has quit IRC
[19:43:38] <wafflej0ck_> Fifty5Plus: nagged me to do it :), still gotta fix some things but I installed gitlab on my server to make managing stuff easier and had to fix Jenkins, all good now though so back to coding today
[19:43:41] *** freeman42 has joined #angularjs
[19:43:44] *** tfennelly has joined #angularjs
[19:43:53] *** siddart has joined #angularjs
[19:43:57] *** nairys has quit IRC
[19:44:00] <nickeddy> thanks
[19:44:02] <wafflej0ck_> npm install && bower install, grunt serve
[19:44:03] <wafflej0ck_> np
[19:44:15] *** DoubleAW has quit IRC
[19:44:18] <wafflej0ck_> sorry if the package.json has junk in it
[19:44:19] *** frem_ has joined #angularjs
[19:44:29] <wafflej0ck_> I just used the yo angular project and haven't cleaned that part up
[19:44:40] *** Fuzzy has joined #angularjs
[19:44:58] *** morenoh149 has quit IRC
[19:45:05] *** nairys has joined #angularjs
[19:45:14] *** dshoreman has quit IRC
[19:45:17] *** t1mmen has quit IRC
[19:45:31] *** siddart has quit IRC
[19:45:37] *** Fuzzier has quit IRC
[19:45:38] *** roadrunneratwast has joined #angularjs
[19:45:38] *** merobertsjr has quit IRC
[19:45:45] *** pulpfree has joined #angularjs
[19:45:48] *** siddart has joined #angularjs
[19:46:21] <wafflej0ck_> the debug panel stuff is a separate project, same locations but itDebugPanel instead
[19:46:34] *** Poppa is now known as Poppabear
[19:46:36] *** Paul_B_Hartzog has quit IRC
[19:46:39] *** yelvert has joined #angularjs
[19:46:54] *** Fuzzier has joined #angularjs
[19:47:09] *** rahulprasad has quit IRC
[19:47:23] *** DrMabuse has quit IRC
[19:47:54] *** sacho_ has quit IRC
[19:48:01] <esparkman-mbp> I'm getting an error when trying to load the ui-router module, i'm not using bower or yeoman
[19:48:22] <esparkman-mbp> I'm instantiating the app with this line angular.module('formApp', ['ngAnimate', 'ui-router'])
[19:48:31] <ctanga> ui.router
[19:48:40] <esparkman-mbp> bleh :)
[19:49:03] <wafflej0ck_> dweave: basically I just have a transition set on the panels here and I set the left, right, top, bottom of the panels appropriately and width/height and everything is absolutely positioned
[19:49:06] *** jjasonclark has quit IRC
[19:49:17] <esparkman-mbp> woohoo no more errors, I'm now not getting my views \0/
[19:49:28] <nickeddy> esparkman-mbp: probably missing ui-views
[19:49:31] *** rahulprasad has joined #angularjs
[19:49:34] *** siddart has quit IRC
[19:49:34] *** Fuzzy has quit IRC
[19:49:40] <nickeddy> esparkman-mbp: anywhere ther was an ng-view use ui-view
[19:49:44] *** Luser has joined #angularjs
[19:49:51] *** t1mmen has joined #angularjs
[19:49:51] *** siddart has joined #angularjs
[19:49:57] *** eamonn has joined #angularjs
[19:50:00] <esparkman-mbp> excellent!
[19:50:07] *** Oddman has joined #angularjs
[19:50:07] <esparkman-mbp> I'm loving Angular so far
[19:50:08] *** dnakov has quit IRC
[19:50:10] *** mguillech has joined #angularjs
[19:50:12] *** Luser has quit IRC
[19:50:25] <icfantv> esparkman-mbp: good!
[19:50:34] *** Luser has joined #angularjs
[19:50:40] <icfantv> more victims, er, volunteers for the collective
[19:50:55] *** despai has quit IRC
[19:51:07] <esparkman-mbp> I'm a Ruby dev looking to move more in to the frontend, so I feel like Angular is the way to go
[19:51:08] <icfantv> dmack: you see my note from yesterday about hotel reservations?
[19:51:17] <dmack> icfantv: yeah, we got some. :)
[19:51:22] <icfantv> esparkman-mbp: as do we…of course, we're biased
[19:51:23] <esparkman-mbp> so far the community has been very helpful and friendly
[19:51:36] *** Evanion has joined #angularjs
[19:51:38] <esparkman-mbp> which is hugely important to me
[19:51:44] <icfantv> dmack: ok good. i had some trouble, but finally got them. orbitz said they weren't available for the date range i wanted.
[19:51:44] *** siddart has quit IRC
[19:52:00] *** siddart has joined #angularjs
[19:52:01] <dmack> esparkman-mbp: have you checked out Ember?
[19:52:02] *** Luser has quit IRC
[19:52:10] *** diosney has joined #angularjs
[19:52:15] *** davidreis has quit IRC
[19:52:20] <dmack> I think it's pretty friendly for folks from ruby
[19:52:22] *** elxa has joined #angularjs
[19:52:25] *** Luser has joined #angularjs
[19:52:33] <esparkman-mbp> dmack: i have, that was my first natural course, given my ruby/rails background
[19:52:51] *** yelvert has quit IRC
[19:52:51] *** Luser has quit IRC
[19:53:03] *** josh-k has quit IRC
[19:53:08] *** conner_ has joined #angularjs
[19:53:15] <ctanga> i love cilantro.
[19:53:19] *** Oxynum has joined #angularjs
[19:53:28] *** mattwynne has quit IRC
[19:53:30] <ctanga> I think cilantro belongs on everything.
[19:53:37] *** josh-k has joined #angularjs
[19:53:46] <dmack> but especially guacamole.
[19:53:48] <esparkman-mbp> my problem with ember is how young it is still, it's constantly changing with some pieces that are backwards compatible and some that aren't. Angular is relatively mature and has been stable for awhile. The 2.0 milestone has me very excited.
[19:53:53] <nickeddy> ctanga: you weren't cursed with cilantro-tastes-like-soap gene
[19:53:57] <ctanga> nope
[19:54:01] <nickeddy> and thank baby jesus i wasn't either
[19:54:02] *** danielmahon has joined #angularjs
[19:54:05] <nickeddy> because cilantro is tasty as fuck
[19:54:12] <dmack> so tasty
[19:54:14] *** jjasonclark has joined #angularjs
[19:54:17] *** rhp has joined #angularjs
[19:54:26] *** dannyid has quit IRC
[19:54:30] *** corehook has joined #angularjs
[19:54:37] <nickeddy> roadrunneratwast: angular DI
[19:54:44] <Sna4x8> I remember Cilantro - she was a sweet lady.
[19:54:54] *** alho has quit IRC
[19:54:54] <roadrunneratwast> yeah. the dependency injection is confusing
[19:55:03] *** Luser_ has joined #angularjs
[19:55:06] *** hmsimha_ has quit IRC
[19:55:06] <roadrunneratwast> but why isn't $scope being recognized?
[19:55:11] *** baweaver has joined #angularjs
[19:55:14] <roadrunneratwast> why am i getting the uncaught reference error
[19:55:17] <nickeddy> roadrunneratwast: because you're asking for the object $scope
[19:55:19] *** bayousoft has joined #angularjs
[19:55:29] *** ctanga has left #angularjs
[19:55:29] <roadrunneratwast> as opposed to angular.$scope?
[19:55:30] *** Luser_ has quit IRC
[19:55:33] *** ctanga has joined #angularjs
[19:55:47] <nickeddy> roadrunneratwast: DI syntax is this: app.controller('controllerName', ['dependency1', 'dependency2', function(dependency1, dependency2) { });
[19:55:55] *** Luser has joined #angularjs
[19:56:07] <nickeddy> roadrunneratwast: the reason it's in a string is because during minification strings are immutable
[19:56:11] *** marr has quit IRC
[19:56:13] <roadrunneratwast> app.controller('HomeCtrl', [$scope, function ($scope) {
[19:56:14] <nickeddy> roadrunneratwast: but the variable names aren't
[19:56:15] <roadrunneratwast> oh
[19:56:17] *** alho has joined #angularjs
[19:56:27] <roadrunneratwast> so it's supposed to be in quotes
[19:56:28] <dweave> anyone feel like angrily ranting about designers?
[19:56:29] <nickeddy> roadrunneratwast: so it's just a way of mapping what you want to inject to the variable
[19:56:32] <nickeddy> roadrunneratwast: correct
[19:56:34] *** Sky[x] has quit IRC
[19:56:36] <roadrunneratwast> thanks
[19:56:41] <nickeddy> np
[19:56:46] *** dannyid has joined #angularjs
[19:57:10] *** thorn0 has joined #angularjs
[19:57:34] *** jeremymarc has joined #angularjs
[19:57:43] *** Luser_ has joined #angularjs
[19:57:47] *** Oxynum has quit IRC
[19:57:50] *** josh-k has quit IRC
[19:58:37] *** Luser__ has joined #angularjs
[19:58:38] *** Luser_ has quit IRC
[19:59:55] *** Una has joined #angularjs
[19:59:55] *** Luser__ has quit IRC
[19:59:58] *** nemothekid has joined #angularjs
[20:00:01] *** siddart has quit IRC
[20:00:10] *** fedenunez1 has quit IRC
[20:00:16] *** FIFOd[a] has quit IRC
[20:00:18] *** Luser has quit IRC
[20:00:18] *** siddart has joined #angularjs
[20:00:22] *** Luser_ has joined #angularjs
[20:00:24] *** fedenunez has joined #angularjs
[20:00:54] *** thorn0 has quit IRC
[20:00:54] *** Luser_ has quit IRC
[20:00:55] *** Aswebb has quit IRC
[20:01:17] *** mclenithan has joined #angularjs
[20:01:18] *** Luser has joined #angularjs
[20:01:54] *** nycdevgirl has joined #angularjs
[20:02:44] *** cthrax has quit IRC
[20:02:54] *** FIFOd[a] has joined #angularjs
[20:02:57] *** Luser has quit IRC
[20:03:06] *** Luser has joined #angularjs
[20:03:27] <wafflej0ck_> dweave: better to figure out how to take their solution and make it generic and then show them what you propose to do and how it will affect the design and see if they think it's a problem or a logical compromise
[20:03:29] *** Luser has quit IRC
[20:03:58] *** Luser has joined #angularjs
[20:04:08] *** phishy has joined #angularjs
[20:04:12] <dweave> nothing about designers is logical!
[20:04:28] *** foofoobar has quit IRC
[20:04:29] <Linell> That's like saying 'nothing about programmers is creative'
[20:04:34] <wafflej0ck_> dweave: haha typically they may not approach things that way but usually you can reason with them
[20:04:44] *** siddart has quit IRC
[20:05:00] *** Nwaauab___ has joined #angularjs
[20:05:01] *** josh-k has joined #angularjs
[20:05:01] *** siddart has joined #angularjs
[20:05:02] *** cthrax has joined #angularjs
[20:05:15] <dannyid> roadrunneratwast: you need to wrap your “$scope” in quotes in your HomeCtrl definition
[20:05:24] <dannyid> the the first instance of it
[20:05:35] *** Lingos_ has joined #angularjs
[20:05:36] <dannyid> app.controller('HomeCtrl', [“$scope”, function ($scope) {
[20:05:37] <dannyid> }]);
[20:05:42] *** diosney has quit IRC
[20:05:43] *** Luser_ has joined #angularjs
[20:05:46] <nickeddy> dannyid: little late on that
[20:05:48] *** Lingos_ has quit IRC
[20:06:00] <dannyid> haha i just noticed i hadn’t scrolled down lol
[20:06:08] *** Luser_ has quit IRC
[20:06:14] *** Luser has quit IRC
[20:06:24] *** Lingos_ has joined #angularjs
[20:06:40] *** Luser has joined #angularjs
[20:06:42] *** Shayanjm has joined #angularjs
[20:07:12] *** siddart has quit IRC
[20:07:13] *** Rahul_Roy_ has quit IRC
[20:07:14] *** markocar has joined #angularjs
[20:07:16] *** ciwolsey has quit IRC
[20:07:24] *** foofoobar has joined #angularjs
[20:07:27] *** siddart has joined #angularjs
[20:07:32] <markocar> evening
[20:08:02] *** DoubleAW has joined #angularjs
[20:08:03] *** larsgk has joined #angularjs
[20:08:03] *** vassagus has joined #angularjs
[20:08:10] *** Nuuab has quit IRC
[20:08:25] *** Luser_ has joined #angularjs
[20:08:27] *** Luser has quit IRC
[20:08:38] *** tschundeee has joined #angularjs
[20:08:40] *** siddart has quit IRC
[20:08:55] *** siddart has joined #angularjs
[20:08:56] *** Luser_ has quit IRC
[20:09:04] *** ashah has quit IRC
[20:09:09] *** markocar has quit IRC
[20:09:27] *** Luser has joined #angularjs
[20:09:39] *** JohnBat26 has quit IRC
[20:10:16] *** AWAW has quit IRC
[20:10:32] *** dshoreman has joined #angularjs
[20:10:34] *** jimobrie_ has joined #angularjs
[20:10:47] *** Luser has quit IRC
[20:11:07] *** Luser has joined #angularjs
[20:11:50] *** alho has quit IRC
[20:11:50] *** Luser has quit IRC
[20:11:57] *** Luser has joined #angularjs
[20:12:13] *** dannyid has quit IRC
[20:12:24] *** ChadStrat has quit IRC
[20:12:42] *** H1FuelCell has joined #angularjs
[20:12:57] *** jstroem has quit IRC
[20:12:59] *** dannyid has joined #angularjs
[20:13:01] *** chrisshattuck has quit IRC
[20:13:01] *** siddart has quit IRC
[20:13:03]
<jaydubya> I am building a custom directive to allow for a glyphicon to serve as an indicator (color), a notice (tooltip), a simple action (single click) and an ability for customized action in a modal (double click). Here is a plunker of my progress...http://plnkr.co/edit/HrlhlbcCdCzZHwD8JivQ?p=preview
[20:13:16] <jaydubya> On first load the colors are correct -- gray if value = 0, green for value of 1 and red for value of 2. The click also is correct -- a 0 clicked becomes 1, a 1 clicked becomes 2 and a 2 clicked becomes 1.
[20:13:18] *** tschundeee has quit IRC
[20:13:19] *** siddart has joined #angularjs
[20:13:26] <jaydubya> However, the colors are not responding correctly to the clicks. The first click seems to be ignored because the color stays the same and the second click does trigger a color change but now 1 = red and 2 = green (backwards).
[20:13:43] <jaydubya> What did I do wrong?
[20:13:48] *** Luser_ has joined #angularjs
[20:13:51] *** TheAceOfHearts has joined #angularjs
[20:14:01] *** Luser has quit IRC
[20:14:02] *** chrisshattuck has joined #angularjs
[20:14:16] *** Luser_ has quit IRC
[20:14:22] *** jimobrien has quit IRC
[20:14:35] *** fedenunez1 has joined #angularjs
[20:14:36] *** lewdev has joined #angularjs
[20:14:40] *** Luser has joined #angularjs
[20:14:43] *** fedenunez has quit IRC
[20:15:08] *** siddart has quit IRC
[20:15:17] *** chrisshattuck has joined #angularjs
[20:15:21] *** marc_v92 has joined #angularjs
[20:15:24] *** siddart has joined #angularjs
[20:15:52] *** DrMabuse has joined #angularjs
[20:15:55] *** dcherman has quit IRC
[20:15:59] *** Luser has quit IRC
[20:16:02] *** DrMabuse has quit IRC
[20:16:12] *** lewdev has quit IRC
[20:16:12] <rileylark> jaydubya: sounds like an error in your value cycling logic. Maybe you are starting on zero, one click gets you up to 1 (still red), and then finally two clicks gets you to 2 (green)?
[20:16:16] *** DrMabuse has joined #angularjs
[20:16:25] *** Luser has joined #angularjs
[20:16:33] <marc_v92> Hey all, I'm attempting to use Angular as the front-end for a Python/Django website, and I'm having some trouble getting it working. What is the absolute minimum that I need to use Angular?
[20:16:36] *** siddart has quit IRC
[20:16:44] *** prosper_ has joined #angularjs
[20:16:52] *** siddart has joined #angularjs
[20:16:56] *** Luser has quit IRC
[20:17:04] *** sinequanon has joined #angularjs
[20:17:24] *** Luser has joined #angularjs
[20:17:25] <jaydubya> rileylark: so you're thinking it is ignoring the passed in value?
[20:17:26] <dweave> Linell: ya except programmers are expected to be both logical and creative. For some reason designers are forgiven when they are not the former. especially by management
[20:17:36] *** arcanin has quit IRC
[20:17:42] *** favetelinguis has quit IRC
[20:17:47] *** macobo has quit IRC
[20:17:56] <dweave> it’s a tough skill tho
[20:17:58] <rileylark> jaydubya: just stabbing in the dark. Maybe you can post a plunkr w/ your code?
[20:18:07] *** fedenunez1 has quit IRC
[20:18:11] *** lewdev has joined #angularjs
[20:18:11] *** dcherman has joined #angularjs
[20:18:17] <dweave> visualizing things that don’t exist
[20:18:19] *** favetelinguis has joined #angularjs
[20:18:21] <rileylark> hah, sorry ;p
[20:18:21] *** threesixes has joined #angularjs
[20:18:23] *** fedenunez has joined #angularjs
[20:18:27] <jaydubya> no worries
[20:18:29] *** jstroem has joined #angularjs
[20:18:41] <marc_v92> I know about the angular-seed github repo, but even that requires npm and bower and whatnot. Could anyone point me in the right direction? My searches have turned up very little.
[20:19:04] <nickeddy> marc_v92: how are you trying to use it with django?
[20:19:09] *** Luser_ has joined #angularjs
[20:19:18] *** siddart has quit IRC
[20:19:18] *** Luser has quit IRC
[20:19:24] *** junmin_ has joined #angularjs
[20:19:25] <nickeddy> marc_v92: for my django/angular project, we have a single page render on the django side and the rest is angular
[20:19:34] *** siddart has joined #angularjs
[20:19:35] *** Luser_ has quit IRC
[20:20:01] *** Luser has joined #angularjs
[20:20:04] *** Sontakey has joined #angularjs
[20:20:08] *** Sontakey has left #angularjs
[20:20:10] <marc_v92> nickeddy: I'm hoping to take advantage of Angular's niceties, such as ng-repeat and the two-way data binding and whatnot.
[20:20:20] *** zzing has joined #angularjs
[20:20:51] <rileylark> jaydubya: looks to me like since you're handling clicks from jQuery, angular isn't noticing that anything changed for a while
[20:20:54] *** larsgk has quit IRC
[20:20:55] *** elxa has quit IRC
[20:20:58] <marc_v92> nickeddy: The app uses a card-based layout with a great deal of interactivity.
[20:21:04] *** diegoaguilar has quit IRC
[20:21:05] <nickeddy> marc_v92: well yeah. don't try to do django templating with angular
[20:21:13] *** a3gis has joined #angularjs
[20:21:18] *** elxa has joined #angularjs
[20:21:32] *** Luser has quit IRC
[20:21:48] *** NullSoldier_ is now known as NullSoldier
[20:21:50] *** Luser has joined #angularjs
[20:21:58] <marc_v92> nickeddy: So if I'm understanding you correctly, Django would simply render the "home" view, and Angular would take over the views and routing from there?
[20:22:22] *** junmin has quit IRC
[20:22:22] *** Luser has quit IRC
[20:22:32] *** favetelinguis has quit IRC
[20:22:36] <nickeddy> correct
[20:22:41] *** Luser has joined #angularjs
[20:22:51] <nickeddy> django essentially just becomes a REST api
[20:22:57] <nickeddy> using django-rest-framework
[20:23:13] <nickeddy> which makes me wonder why we are using django... *tears*
[20:23:14] *** alho has joined #angularjs
[20:24:01] <marc_v92> nickeddy: Alright, so (just trying to wrap my head around it more fully), would I still start with the angular-seed project?
[20:24:07] *** Luser has quit IRC
[20:24:20] <marc_v92> nickeddy: I guess I'm somewhat confused by the steps I would take to begin the process.
[20:24:22] *** merobertsjr has joined #angularjs
[20:24:24] *** joroci has joined #angularjs
[20:24:27] *** Luser has joined #angularjs
[20:24:30] *** chrisbirk has joined #angularjs
[20:24:50] *** bedugger has joined #angularjs
[20:24:53] *** Luser has quit IRC
[20:25:00] *** siddart has quit IRC
[20:25:02] <nickeddy> i never used any of those seed projects
[20:25:17] *** siddart has joined #angularjs
[20:25:22] <nickeddy> really all you need is an index.html served by a django view, and that index.html has angular in it.
[20:25:28] *** Luser has joined #angularjs
[20:25:39] *** jae is now known as Jae
[20:25:53] <marc_v92> By "has angular in it", you mean just the angular.js file, correct?
[20:26:10] <marc_v92> (My Angular knowledge, at this point, is fairly limited. As you can probably tell.)
[20:26:13] <roadrunneratwast> mark_v92: I am now doing angular/laravel. just create an index.html in angular and then put the angular code in your js directory
[20:26:17] *** asteriskATmarmuD has joined #angularjs
[20:26:17] <nickeddy> marc_v92: yeah :)
[20:26:18] <roadrunneratwast> sorry
[20:26:26] <roadrunneratwast> create index.html in django
[20:26:36] <roadrunneratwast> then in the resources js/ directory dump your angular code
[20:26:37] *** DrMabuse has quit IRC
[20:26:39] <nickeddy> marc_v92: just need to include angular.js and have ng-app on <body> or <html>
[20:26:46] <nickeddy> pretty much what roadrunneratwast said
[20:26:52] *** soup has joined #angularjs
[20:26:55] <roadrunneratwast> i will add it to my plunkr
[20:26:56] *** chrisbirk has quit IRC
[20:27:07] *** Luser_ has joined #angularjs
[20:27:16] *** Luser has quit IRC
[20:27:28] <marc_v92> nickeddy, roadrunneratwast: Is there a required folder structure for Angular?
[20:27:37] *** Luser_ has quit IRC
[20:27:44] <nickeddy> nope
[20:27:55] <roadrunneratwast> look at the plunkr
[20:28:02] *** Luser has joined #angularjs
[20:28:04] <nickeddy> i generally do an angular folder, and subfolders for services/directives/controllers/etc
[20:28:16] *** melter_ has joined #angularjs
[20:28:16] <nickeddy> and organize as best i can by module
[20:28:20] <roadrunneratwast> it's django that has the required folder structure
[20:28:23] *** RhinoBoss has joined #angularjs
[20:28:27] <nickeddy> eh, not really
[20:28:32] <roadrunneratwast> figure out where your document root is
[20:28:35] <roadrunneratwast> in django
[20:28:36] <nickeddy> django doesn't have any required folder structure either
[20:28:42] <nickeddy> it's really whatever the hell you want
[20:28:56] <roadrunneratwast> well, in laravel, there is a public/ directory and an app/ directory
[20:29:01] <marc_v92> Alright, sweet. Thanks for all the help nickeddy & roadrunneratwast
[20:29:02] *** GreenJello has quit IRC
[20:29:08] <RhinoBoss> is it possible to run "| filter:{}" in an ng-repeat over an object of objects?
[20:29:17] <asteriskATmarmuD> I got [{"id":"1","filename":"app.svg","user":"admin","timestamp":"1415358201","location":"\/","type":null,"mime":null},{"id":"2","filename":"recover_logo_white.svg","user":"admin","timestamp":"1415995671","location":"\/","type":null,"mime":null}] in a var and can't use it in ng-repeat: <tr ng-repeat="item in recentCtrl.items"> .. trying to figure out why since one hour :(
[20:29:18] *** bedugger has quit IRC
[20:29:35] *** phuh has quit IRC
[20:29:40] *** Luser has quit IRC
[20:29:45] *** epantzar has quit IRC
[20:29:53] *** Luser has joined #angularjs
[20:29:53] <roadrunneratwast> RhinoBoss: maybe you could use underscore to pluck the relevant attribute?
[20:30:00] *** phuh has joined #angularjs
[20:30:08] <RhinoBoss> roadrunneratwast: How do you mean?
[20:30:18] *** Luser has quit IRC
[20:30:27] *** Ninjadeer has quit IRC
[20:30:30] *** fedenunez has quit IRC
[20:30:30] *** MistahKurtz has quit IRC
[20:30:40] *** gregc2 has joined #angularjs
[20:30:40] *** gregc2 is now known as ioudas
[20:30:42] *** Luser has joined #angularjs
[20:30:43] <roadrunneratwast> if you want to filter by attributes of objects?
[20:30:45] <nickeddy> roadrunneratwast: lodash > underscore
[20:30:57] <roadrunneratwast> you could pluck out the attributes and filter those
[20:31:05] <roadrunneratwast> i'm not 100% sure what you are asking though
[20:31:20] *** siddart has quit IRC
[20:31:23] <roadrunneratwast> _.pluck(collection, "attribute") | filter('blah')
[20:31:36] <jaydubya> rileylark: Is there a way to handle clicks differently?
[20:31:41] *** soup has quit IRC
[20:31:43] *** siddart has joined #angularjs
[20:31:47] *** edy_ has joined #angularjs
[20:31:55] <rileylark> yes, you should use the ng-click directive
[20:32:12] <jaydubya> rileylark: I can't use ng-click
[20:32:16] *** Luser has quit IRC
[20:32:16] *** chrisbirk has joined #angularjs
[20:32:30] *** Luser has joined #angularjs
[20:32:32] <jaydubya> rileylark: if an element has ng-dblclick, it ignores ng-click
[20:32:36] *** ishan1604 has joined #angularjs
[20:32:48] *** Fuzzy has joined #angularjs
[20:32:48] *** japhar81 has joined #angularjs
[20:32:54] <rileylark> if you have to use native events or jQuery handlers you can wrap your scope changes in $scope.$apply calls to let angular know that something has happened
[20:32:54] *** Luser has quit IRC
[20:33:04] *** manekinekko has joined #angularjs
[20:33:07] *** areologist has joined #angularjs
[20:33:20] <rileylark> sorry, this isn't really a fix to the color cycling problem, just another issue with the code ;o
[20:33:21] <areologist> G'day, fellows.
[20:33:30] *** Luser has joined #angularjs
[20:33:36] *** boxmein is now known as [boxmein]
[20:33:37] *** edy has quit IRC
[20:33:42] *** wallerdev has quit IRC
[20:33:52] *** marc_v92 has quit IRC
[20:34:03] <nickeddy> roadrunneratwast: go look at console
[20:34:08] <nickeddy> roadrunneratwast: million and a half 404s
[20:34:09] *** despai has joined #angularjs
[20:34:12] <areologist> weird idea, not sure if feasible yet.. pertains to app that needs to work offline, etc.
[20:34:12] *** marc_v92 has joined #angularjs
[20:34:35] *** rosieres has joined #angularjs
[20:34:47] *** Luser has quit IRC
[20:34:48] *** Fuzzier has quit IRC
[20:34:49] <roadrunneratwast> nickeddy: that's cos the directory structure isn't replicated
[20:34:51] <roadrunneratwast> i think
[20:34:52] <RhinoBoss> roadrunneratwast: ohh I see, you are talking about actually using an extension to the framework
[20:34:54] *** pnade has joined #angularjs
[20:35:02] <areologist> background: cheap software shop built an app for a company I work with and it bombed in production, including app store deploy, after a recent update because...
[20:35:13] *** Luser has joined #angularjs
[20:35:14] <areologist> of the state of some user's appcache
[20:35:15] <roadrunneratwast> RhinoBoss: I am not clear what you want to do exactly
[20:35:16] *** rosieres has left #angularjs
[20:35:19] *** Nwaauab___ has quit IRC
[20:35:33] <roadrunneratwast> RhinoBoss: But you might want to use the lodash library
[20:35:33] <areologist> hilarious ineptitude--you get what you pay for--but highlights a serious issue. namely, lack of control of appcache
[20:35:36] *** Luser has quit IRC
[20:35:41] *** srph has joined #angularjs
[20:35:56] *** Fuzzier has joined #angularjs
[20:36:08] *** Luser has joined #angularjs
[20:36:16] *** melter has quit IRC
[20:36:22] *** melter_ is now known as melter
[20:36:26] <RhinoBoss> roadrunneratwast: When using ng-repeat on an array of objects, I can easily filter out certain indexes by running the filter pipe after the ng repeat. When I do the same for an object of objects, it doesnt seem to work
[20:36:30] *** phzon has joined #angularjs
[20:36:39] <srph> is it possible to validate forms w/ angular without <form> ??????
[20:36:57] *** Fuzzy has quit IRC
[20:37:13] <RhinoBoss> roadrunneratwast: something like "ng-repeat="subgroup in subgroups | filter:{parentgroup:false}""
[20:37:18] <srph> is it possible to validate forms w/ angular without <form> ??????
[20:37:33] *** melter_ has joined #angularjs
[20:37:34] *** Luser has quit IRC
[20:37:44] <roadrunneratwast> dunno. no way you can recast the object to an array?
[20:37:53] *** Luser has joined #angularjs
[20:37:56] <areologist> weird idea: only extremely minimalist js infrastructure added to cache manifest.. basically a mini framework that can pull and load commonjs, amd, and/or angular modules on the fly and cache them via something like localForage
[20:38:23] <areologist> oh, also load and manage associated css
[20:38:23] *** Luser has quit IRC
[20:38:28] *** disorder20 has joined #angularjs
[20:38:48] *** Luser has joined #angularjs
[20:38:49] <RhinoBoss> roadrunneratwast:dont think so, I need it to be an object for my particular uses
[20:39:01] *** rho has quit IRC
[20:39:03] *** esk4nd4r has joined #angularjs
[20:39:23] <areologist> essentially, for the app I want to build the login screen and this generic js infrastructure would be loaded up-front and cached via appcache
[20:40:14] *** Sebastien-L has quit IRC
[20:40:14] <nickeddy> roadrunneratwast: well that's still going to bread your app lol
[20:40:15] <areologist> after authentication, and without page reload, the rest of the angular app would be loaded, and this could be done selectively based on user's profile (i.e., exclude app areas based on permissions and/or settings)
[20:40:25] *** Luser has quit IRC
[20:40:33] *** Luser has joined #angularjs
[20:40:34] *** aks has quit IRC
[20:40:36] *** t1mmen has joined #angularjs
[20:40:38] *** adpirz has joined #angularjs
[20:40:40] <roadrunneratwast> Maybe there is a way to take the iterator from the array prototype?
[20:40:47] <nickeddy> ctanga: when is the permissions/auth thing coming to ui-router?
[20:40:53] *** phzon has quit IRC
[20:40:57] *** Luser has quit IRC
[20:40:59] <roadrunneratwast> nickeddy: well, it's the plunkr that as the bad directory structure, not my app
[20:41:00] *** [boxmein] has quit IRC
[20:41:11] <areologist> the pieces of the app would be versioned and outdated stuff automatically purged
[20:41:19] <lebster> i have a page that looks the same for all three things, Propose, Approve, Create. Im thinking i should use the same view/controller for all three of these, should i make seperate routes for each and point to same view and controller? or use a route parameter ?
[20:41:21] <ctanga> nickeddy: the new TransitionProvider stuff you mean? we’re not implementing permissions/auth explicitly only allowing you to
[20:41:23] *** Luser has joined #angularjs
[20:41:30] *** a3gis has quit IRC
[20:41:30] <ctanga> and we’re behind schedule
[20:41:34] *** wafflej0ck_ has quit IRC
[20:41:40] *** ahtik has joined #angularjs
[20:41:46] <ctanga> nateabele has been traveling and I’m waiting on him to continue develpment
[20:41:46] *** corehook has quit IRC
[20:41:49] *** oncenull has quit IRC
[20:42:11] *** oncenull has joined #angularjs
[20:42:38] *** ngbot has joined #angularjs
[20:42:38]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from c9899c5 to e3764e3: http://git.io/f9pPSQ
[20:42:38] *** ngbot has left #angularjs
[20:42:38] *** baweaver has quit IRC
[20:42:39] <areologist> if the thing I've described is feasible I think it likely to exist already. anyone know?
[20:42:47] <hotnikks_> can someone recommend a best practice for security a server-side login service so that only requests from angular are permitted? e.g., during app initialization some value is generated that has to be sent to server as part of the /login API call. if server doesnt see, doesn't allow auth attempt (i.e., brute force prevention from script)
[20:42:57] <hotnikks_> brute force/dos prevention
[20:43:05] *** Luser has quit IRC
[20:43:10] *** Luser_ has joined #angularjs
[20:43:17] *** shampine has joined #angularjs
[20:43:18] *** shampine has joined #angularjs
[20:43:26] *** DLSteve has joined #angularjs
[20:43:32] <nickeddy> ctanga: yeah that's what i meant. poo. seems like more and more people need it every day haha
[20:43:37] *** Luser_ has quit IRC
[20:43:38] <ctanga> yep
[20:43:40] <ctanga> it’s gonna be really nice
[20:43:42] *** ngbot has joined #angularjs
[20:43:42]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from e3764e3 to 4f4ff5f: http://git.io/Vmh1GA
[20:43:42] *** ngbot has left #angularjs
[20:43:49] *** shepheb has quit IRC
[20:44:00] *** IvailoStoianov has quit IRC
[20:44:03] *** Luser has joined #angularjs
[20:44:04] <ctanga> wanna fork ui-router and backport it? :)
[20:44:50] *** ngbot has joined #angularjs
[20:44:50]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from 4f4ff5f to d5968c7: http://git.io/jrVs2Q
[20:44:50] *** ngbot has left #angularjs
[20:44:51] <jaydubya> rileylark: do you think a feasible solution would be to limit the directive to color, hover and click and put the dbclick on the parent?
[20:45:38] *** shepheb has joined #angularjs
[20:45:38] *** adpirz has quit IRC
[20:45:41] *** SergioFilhow__ has quit IRC
[20:45:43] *** Luser has quit IRC
[20:45:48] *** Luser_ has joined #angularjs
[20:45:49] *** chrisshattuck has quit IRC
[20:45:52] *** srph has quit IRC
[20:45:56] *** ngbot has joined #angularjs
[20:45:56]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from d5968c7 to 5f55289: http://git.io/9M7b6Q
[20:45:56] *** ngbot has left #angularjs
[20:46:19] *** Oddman has quit IRC
[20:46:20] *** Luser_ has quit IRC
[20:46:22] *** btc_panhandler has joined #angularjs
[20:46:42] *** mary5030 has quit IRC
[20:46:42] *** dcherman2 has joined #angularjs
[20:46:45] *** Luser has joined #angularjs
[20:46:55] *** deanclkclk has quit IRC
[20:47:01] *** h-darklowz has joined #angularjs
[20:47:06] *** ngbot has joined #angularjs
[20:47:06]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from 5f55289 to f7fde93: http://git.io/pN8lyw
[20:47:06] *** ngbot has left #angularjs
[20:47:09] *** jonnybro has joined #angularjs
[20:47:15] *** mary5030 has joined #angularjs
[20:47:16] *** stormbytes has joined #angularjs
[20:47:18] *** azizur has quit IRC
[20:48:05] *** ngbot has joined #angularjs
[20:48:06]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from f7fde93 to 637c020: http://git.io/x7L__g
[20:48:06] *** ngbot has left #angularjs
[20:48:32] <lebster> is it bad to have two routes use the same controller and view?
[20:48:32] *** Luser_ has joined #angularjs
[20:48:34] *** dnakov has joined #angularjs
[20:48:36] *** Luser has quit IRC
[20:49:12] *** ngbot has joined #angularjs
[20:49:12]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from 637c020 to 2b41a58: http://git.io/5bzUFQ
[20:49:12] *** ngbot has left #angularjs
[20:49:13] *** Luser_ has quit IRC
[20:49:20] *** Luser has joined #angularjs
[20:49:29] <nickeddy> ctanga: lol not really no :P
[20:49:54] *** siddart has quit IRC
[20:50:08] *** dcherman has quit IRC
[20:50:12] *** siddart has joined #angularjs
[20:50:12] *** ngbot has joined #angularjs
[20:50:12]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from 2b41a58 to bb16759: http://git.io/uNoNZw
[20:50:13] *** ngbot has left #angularjs
[20:50:33] *** h-darklow_ has joined #angularjs
[20:50:41] *** IvailoStoianov has joined #angularjs
[20:50:53] *** Luser has quit IRC
[20:51:12] *** ngbot has joined #angularjs
[20:51:13]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from bb16759 to e8941c0: http://git.io/7-fzdQ
[20:51:13] *** ngbot has left #angularjs
[20:51:15] *** Luser has joined #angularjs
[20:51:18] *** recidive has joined #angularjs
[20:51:32] *** Pluff has joined #angularjs
[20:51:34] *** Luser has quit IRC
[20:51:53] *** mary5030 has quit IRC
[20:51:56] <roadrunneratwast> is there any way to look at the app in the console?
[20:52:02] <roadrunneratwast> the ng-app
[20:52:05] *** H1FuelCell has quit IRC
[20:52:06] *** Luser has joined #angularjs
[20:52:08] <roadrunneratwast> angular returns an object
[20:52:10] *** asdofindia has quit IRC
[20:52:12] *** ngbot has joined #angularjs
[20:52:13]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from e8941c0 to dc9775d: http://git.io/Ma2r-Q
[20:52:13] *** ngbot has left #angularjs
[20:52:21] <roadrunneratwast> but what if i want to look at $scope or $rootScope
[20:52:33] <roadrunneratwast> or the current app -- where are those?
[20:52:48] *** joroci has quit IRC
[20:53:22] *** h-darklowz has quit IRC
[20:53:28] *** tinaj1234_ has quit IRC
[20:53:36] *** jimobrien has joined #angularjs
[20:53:45] *** jimobrie_ has quit IRC
[20:53:50] *** MistahKurtz has joined #angularjs
[20:53:54] *** Luser_ has joined #angularjs
[20:54:11] *** rho has joined #angularjs
[20:54:11] *** rho has joined #angularjs
[20:54:19] *** Luser_ has quit IRC
[20:54:29] *** chrisshattuck has joined #angularjs
[20:54:31] <roadrunneratwast> ok. got it. but it'w an empty array :(
[20:54:36] <dannyid> roadrunneratwast: if you’re in chrome dev tools you can set breakpoints and then simply type $scope into your console
[20:54:54] *** Luser_ has joined #angularjs
[20:54:55] *** jiskiras has quit IRC
[20:54:57] *** ngbot has joined #angularjs
[20:54:57] *** ngbot has left #angularjs
[20:54:59] <dannyid> wherever your code is paused, you can run code against the current context
[20:55:08] <roadrunneratwast> for whatever reason, it's not hitting the expected breakpoint
[20:55:14] <roadrunneratwast> and this is bumming me out
[20:55:18] *** MistahKurtz has quit IRC
[20:55:22] *** jiskiras has joined #angularjs
[20:55:30] <dannyid> are you setting it at the function definition or INSIDE the function?
[20:55:37] <jaydubya> data-ng-repeat="l in filtered.active = (loans | filter:{status_id: 2}) | filter: loanFilter | orderBy:[myOrder, 'applicant']"> only shows status_id of 2 but I want to NOT show status_id of 2, so if the : means equals, what is does not equal?
[20:55:52] <roadrunneratwast> app.controller('HomeCtrl', ['$scope', function ($scope) {
[20:55:54] <roadrunneratwast> console.log("in the home controller");
[20:55:54] <roadrunneratwast> $scope.foo = "mew";
[20:55:55] <roadrunneratwast> }]);
[20:56:01] *** RhinoBoss has quit IRC
[20:56:15] *** joshontheweb has joined #angularjs
[20:56:15] <roadrunneratwast> the controller isn't being loaded which is making me very unhappy
[20:56:16] *** SergioFilhow__ has joined #angularjs
[20:56:17] <jaydubya> oh oh, he comes the paste police
[20:56:19] *** rud has quit IRC
[20:56:23] <jaydubya> here^
[20:56:23] *** cthrax has quit IRC
[20:56:28] <snurfery> damn
[20:56:32] *** Luser__ has joined #angularjs
[20:56:35] *** Luser_ has quit IRC
[20:56:42] <nickeddy> and i thought ngbot was spammy
[20:56:45] *** Luser has quit IRC
[20:56:54] *** kirfu has joined #angularjs
[20:56:55] *** Luser__ has quit IRC
[20:57:03] *** jiskiras has quit IRC
[20:57:12] *** jiskiras has joined #angularjs
[20:57:25] *** Luser has joined #angularjs
[20:57:31] *** someyounguy has joined #angularjs
[20:57:40] <someyounguy> hi
[20:57:53] <nickeddy> roadrunneratwast: are you doing ng-controller anywhere or actually referencing HomeCtrl in a ui-router state?
[20:58:24] <dannyid> also, roadrunneratwast: your app file is called app.css but it’s JS, might that have something to do with it?
[20:58:35] <someyounguy> I was wandering how do I get a parameter with the $location service
[20:58:38] *** Johnny13371337 has joined #angularjs
[20:58:42] <someyounguy> ?
[20:58:45] <roadrunneratwast> .when('/', { templateUrl: 'js/partials/home.html', controller: 'HomeCtrl'
[20:58:54] *** jiskiras has quit IRC
[20:58:59] <roadrunneratwast> that's just cos i am a dope using plunkr
[20:58:59] <nickeddy> ngRoute sucks
[20:59:00] *** srph has joined #angularjs
[20:59:07] *** jiskiras has joined #angularjs
[20:59:10] *** Luser_ has joined #angularjs
[20:59:14] *** NoNMaDDeN has quit IRC
[20:59:15] *** Luser has quit IRC
[20:59:16] *** Oddman has joined #angularjs
[20:59:36] <dannyid> someyounguy: should be something like $location.search().theParameter
[20:59:36] *** Luser_ has quit IRC
[20:59:40] <amergin> sure does. use ui-router?
[21:00:03] *** Luser has joined #angularjs
[21:00:06] <nickeddy> ^
[21:00:16] <nickeddy> ctanga: kool-aid
[21:00:17] <srph> Is it possible to use ngModel validation without using <forms> ??
[21:00:22] <someyounguy> so it would be $location.search().id
[21:00:26] *** DigitallyBorn has quit IRC
[21:00:46] *** NoNMaDDeN has joined #angularjs
[21:00:53] *** tech2 has joined #angularjs
[21:01:11] *** nemothekid has quit IRC
[21:01:22] *** Una has quit IRC
[21:01:43] *** Luser has quit IRC
[21:01:47] *** Luser_ has joined #angularjs
[21:01:48] *** joshontheweb has quit IRC
[21:02:19] <dannyid> someyounguy: it’d be $location.search().id
[21:02:20] *** Luser_ has quit IRC
[21:02:28] <dannyid> but you need to inject the $locationProvider
[21:02:31] *** DigitallyBorn has joined #angularjs
[21:02:31] *** DigitallyBorn has joined #angularjs
[21:02:32] *** siddart has quit IRC
[21:02:36] <nickeddy> wat
[21:02:41] <jaydubya> this ugly solution actually works: data-ng-repeat="l in filtered.active = (loans | filter:{status_id: '!'+ 2}) | filter: loanFilter | orderBy:[myOrder, 'applicant']">
[21:02:42] *** Luser has joined #angularjs
[21:02:44] <someyounguy> I see
[21:02:46] <nickeddy> $locationProvider is only used in config block
[21:02:48] *** siddart has joined #angularjs
[21:02:53] <nickeddy> no?
[21:02:54] *** Aliks has quit IRC
[21:02:55] <dannyid> oh really? so you don’t need it?
[21:02:59] <dannyid> to use $location?
[21:03:08] <nickeddy> well you need $location to use $location, not its provider
[21:03:12] <someyounguy> that service would then need to be injected in my controller
[21:03:21] <dannyid> i see
[21:03:24] *** tbo_ has joined #angularjs
[21:03:29] *** esk4nd4r has quit IRC
[21:03:38] <nickeddy> someyounguy: app.controller('SomeCtrl', ['$scope', '$location', function($scope, $location) {}]);
[21:03:47] <dannyid> in that case i think you only need to inject $location into your controller
[21:03:49] <dannyid> ^^
[21:03:56] *** kirfu has quit IRC
[21:04:06] *** cthrax has joined #angularjs
[21:04:17] *** jiskiras has quit IRC
[21:04:25] <areologist> ui-router is 30 kb minified
[21:04:27] *** Luser has quit IRC
[21:04:30] *** Luser_ has joined #angularjs
[21:04:42] <areologist> ngRoute is under 4 kb
[21:04:49] *** Una has joined #angularjs
[21:04:49] *** thomastuts has joined #angularjs
[21:04:55] <jaydubya> ui-router is liquid gold in the slum of AngularJS
[21:04:57] <someyounguy> got it thanks
[21:04:59] *** Luser_ has quit IRC
[21:05:12] <nickeddy> ngRoute doesn't even come close to the feature set of ui-router
[21:05:25] <areologist> if you need nested routing and better flow handing and not all the bells and whistled of ui-router it's a waste
[21:05:25] *** Luser has joined #angularjs
[21:05:26] <nickeddy> why do people care so god damn much about a few kb
[21:05:26] <someyounguy> what about multiple parameters
[21:05:27] <ctanga> if ngRoute does what you need, feel free to use it
[21:05:27] *** boxmein has joined #angularjs
[21:05:44] *** grindmodeon has joined #angularjs
[21:05:46] *** Jae has left #angularjs
[21:05:50] <someyounguy> $location.search().id
[21:05:53] <areologist> an intermediate option is angular-route-segment, which is just a few kb on top of ngRoute and gives you nested routing and more control
[21:05:55] <jaydubya> but if ngRoute does what you need, you aren't doing enough
[21:05:58] <roadrunneratwast> should i use ui-router?
[21:05:58] <ctanga> ui-router allows you to manufacture kitchen sinks
[21:06:04] <roadrunneratwast> will this ease the pain
[21:06:13] <nickeddy> yes it will roadrunneratwast
[21:06:14] <roadrunneratwast> make it easier to debug?
[21:06:23] <roadrunneratwast> bro: you are my bro
[21:06:27] <roadrunneratwast> i will try it
[21:06:33] *** catonabike has quit IRC
[21:06:54] *** zackiv31 has quit IRC
[21:07:03] *** Luser has quit IRC
[21:07:13] *** Luser has joined #angularjs
[21:07:18] *** one0one has joined #angularjs
[21:07:23] *** prosper_ has quit IRC
[21:07:29] *** Lingos_ has joined #angularjs
[21:07:34] *** joshontheweb has joined #angularjs
[21:07:45] *** Luser has quit IRC
[21:07:46] *** JBreit has quit IRC
[21:07:55] *** japhar81 has quit IRC
[21:08:07] *** jiskiras has joined #angularjs
[21:08:09] *** Luser has joined #angularjs
[21:08:11] *** japhar81 has joined #angularjs
[21:08:19] <jaydubya> ctanga, is there a way to :organize" routes in ui-router?
[21:08:20] <areologist> nickeddy, if you're in the habit of not caring about a few tens of kb here and there you can have performance issues down the line
[21:08:20] *** marcjs__ has quit IRC
[21:08:36] <ctanga> jaydubya: what do you mean
[21:08:40] <areologist> especially ifyou're writing a SPA for smartphone users
[21:09:23] <areologist> and lately I'm hearing the voice of Nick Zakas on my shoulder
[21:09:32] <nickeddy> lol
[21:09:37] <nickeddy> seriously?
[21:09:45] *** jiskiras has quit IRC
[21:09:46] <nickeddy> look at ionic
[21:09:46] <areologist> yeah
[21:09:47] *** IvailoStoianov has quit IRC
[21:09:51] *** jiskiras_ has joined #angularjs
[21:09:53] *** Luser_ has joined #angularjs
[21:09:55] <nickeddy> you load all assets ONCE
[21:09:55] *** jiskiras_ has quit IRC
[21:09:56] <areologist> I've looked at ionic--good stuff
[21:10:05] *** Luser has quit IRC
[21:10:15] <nickeddy> ionic loads locally
[21:10:15] *** Luser_ has quit IRC
[21:10:19] <nickeddy> so filesize really doesn't mean shit
[21:10:24] <jaydubya> ctanga: just wondering if there is a way to put some control in there
[21:10:28] *** jjasonclark has quit IRC
[21:10:29] <areologist> lazy loading/deferred execution are good
[21:10:38] <areologist> filesize means something, but sure, it isn't the whole story
[21:10:44] *** xdissent has quit IRC
[21:10:52] *** siddart has quit IRC
[21:10:53] *** Luser has joined #angularjs
[21:11:09] *** siddart has joined #angularjs
[21:11:12] <areologist> if it's just tens of kb sitting on a cache, fine, but if it's adding ms to app load it's just a waste
[21:11:13] <ctanga> jaydubya: you need modules
[21:11:26] *** joshontheweb has quit IRC
[21:11:38] <nickeddy> premature optimization is the root of all evil
[21:11:40] <areologist> if there's a leaner option for what needs to be done, as in the case of angular-route-segment, it's a legitimate consideration
[21:11:43] *** Sontakey1 has joined #angularjs
[21:11:53] *** Lingos_ has quit IRC
[21:11:56] <jaydubya> ctanga: I learned that too far into this project but how would that help ... wouldn't all the routes still be declared in the .config()
[21:12:00] <nickeddy> and a few kb here or there, given increasing data bandwidth/speeds
[21:12:05] <nickeddy> i don't care
[21:12:11] <areologist> it's not premature optimization though, you aren't tinkering with your algorithms or refacoring anything, you're just making a better library decision
[21:12:14] *** marc_v92 has quit IRC
[21:12:29] <ctanga> jaydubya: yeah, but so what?
[21:12:30] *** Luser_ has joined #angularjs
[21:12:37] <ctanga> jaydubya: they’ll be organized, yeah?
[21:12:41] *** Luser has quit IRC
[21:12:59] <ctanga> each module can have its own .config block with states relateding to some business need
[21:12:59] *** Luser_ has quit IRC
[21:13:02] <nickeddy> lol
[21:13:08] <nickeddy> "better library decision"
[21:13:13] *** grindmodeon has quit IRC
[21:13:15] <nickeddy> there's a reason ui-router is the most used router for angular
[21:13:18] <nickeddy> because it's the best
[21:13:22] *** jiskiras has joined #angularjs
[21:13:26] <areologist> that's an assumption
[21:13:27] <jaydubya> ctanga: OOHHHH, I didn't know there can be more that one .config()
[21:13:27] *** jiskiras has quit IRC
[21:13:28] <areologist> "best" is relative
[21:13:32] *** Luser has joined #angularjs
[21:13:34] <nickeddy> no, that's not an assumption
[21:13:55] <areologist> it's a logical fallacy. popular != best.
[21:14:12] *** jiskiras has joined #angularjs
[21:14:16] <ctanga> jaydubya: organize your code into modules, have one master module depend on sub-modules. each sub-module registers its states with stateprovider
[21:14:17] <jaydubya> put it this way, I would have quit Angular a while ago if I hadn't found ui-router ... the framework has no teeth with ngRoute
[21:14:18] *** whunt has quit IRC
[21:14:20] <reavengr2y> non-conformist weirdo
[21:14:23] *** nodedfree has quit IRC
[21:14:27] <areologist> best is a bit vague too since it depends on the requirements
[21:14:30] *** mib32 has quit IRC
[21:14:54] <nickeddy> welcome to /ignore
[21:15:01] *** marc_v92 has joined #angularjs
[21:15:11] <jaydubya> ctanga: that makes so much sense ... BUT, should I do that for this project which is pretty far along or for new projects going forward?
[21:15:14] *** Luser_ has joined #angularjs
[21:15:15] <areologist> not sure what I've said that's so upsetting
[21:15:19] *** Luser has quit IRC
[21:15:37] *** joshontheweb has joined #angularjs
[21:15:37] *** Luser_ has quit IRC
[21:15:42] *** bbankes has quit IRC
[21:15:42] *** sirkitree|afk is now known as sirkitree
[21:16:00] <ctanga> areologist: I’m not offended that you like like angular-route-segment
[21:16:05] <areologist> if you only need nested routing/views and not necessarily all the ui-router features, angular-route-segment is a good alternative. one benefit is saving 20 kb or so. Big fuckin deal? haha get a life
[21:16:07] *** Luser has joined #angularjs
[21:16:12] *** plushy has quit IRC
[21:16:21] *** RobinBAwesome has quit IRC
[21:16:28] <areologist> it'
[21:16:36] *** nodedfree has joined #angularjs
[21:16:52] <areologist> it's not as popular as ui-router but it's still widely used. just sharing info.
[21:16:58] *** jjasonclark has joined #angularjs
[21:17:20] *** elrabin has quit IRC
[21:17:22] *** juampy is now known as juampy_backlater
[21:17:24] *** Luser has quit IRC
[21:17:27] *** gkap has quit IRC
[21:17:32] *** ishan1604 has quit IRC
[21:17:37] *** JBreit has joined #angularjs
[21:17:51] *** plushy has joined #angularjs
[21:17:52] *** Luser has joined #angularjs
[21:17:56] <ctanga> ui-router is ok
[21:18:03] *** wtiger has joined #angularjs
[21:18:10] <wtiger> Hi everyone!
[21:18:16] *** Luser has quit IRC
[21:18:21] <jaydubya> and ui-router is sponsored by Kool-Aid
[21:18:32] *** c00ljs has quit IRC
[21:18:44] *** Luser has joined #angularjs
[21:18:52] *** krawek has joined #angularjs
[21:18:52] *** krawek has joined #angularjs
[21:18:53]
<lebster> i want to use the same controller and view but have different routes, only change a parameter and hide fields depending on the route. is this the best way to handle it https://www.irccloud.com/pastebin/Ff5UdKwK
[21:18:56] <wtiger> Is this a good time to learn angular?
[21:19:12] <ctanga> it’s 2:19 on a thursday. it’s a GREAT time to learn angular
[21:19:19] <jaydubya> lol
[21:19:19] *** siddart has quit IRC
[21:19:33] *** siddart has joined #angularjs
[21:19:43] *** marr has joined #angularjs
[21:19:47] *** plushy has quit IRC
[21:19:49] <wtiger> ctanga I meant should I wait for 2.0?
[21:19:53] *** richiebkr has quit IRC
[21:19:56] <ctanga> wtiger: how long can you wait?
[21:20:00] *** plushy has joined #angularjs
[21:20:02] <ctanga> 2 years?
[21:20:05] <wtiger> nope
[21:20:09] <ctanga> then learn 1.3
[21:20:14] <wtiger> great
[21:20:15] <nickeddy> lol 2.0 isn't coming out for a long time wtiger
[21:20:19] *** Luser has quit IRC
[21:20:22] <wtiger> 1.3 it is
[21:20:32] *** Luser has joined #angularjs
[21:20:33] *** ludkiller has quit IRC
[21:20:38] *** bbankes has joined #angularjs
[21:20:44] *** krawek is now known as dacuca
[21:21:01] <wtiger> thanks for the advice
[21:21:01] *** Luser has quit IRC
[21:21:47] <ctanga> ui-router is the best. learn that too.
[21:21:54] <jaydubya> ctanga: most tuts and courses on Angular gloss over Modules and, to be honest, factories and services become more valuable when there are multiple modules involved but the courses want to teach the cool factories and beginners like me #1 don't see the importance of factories and services and #2 build huge apps in one damn module
[21:22:13] *** GTgolfer has quit IRC
[21:22:32] <ctanga> jaydubya: yeah because most tutorials don’t get big enough to necessitate modules
[21:22:44] *** ludkiller has joined #angularjs
[21:22:47] <ctanga> jaydubya: agreed though, code organization is sometimes glossed over
[21:22:52] <ctanga> So… here’s a though
[21:22:59] <ctanga> ui-router + react
[21:22:59] *** kuadrosx has joined #angularjs
[21:23:01] <ctanga> discuss
[21:23:08] *** GTgolfer has joined #angularjs
[21:23:10] <jaydubya> ctanga: agreed, but they are supposed to be teaching for the real world
[21:23:10] *** Luser_ has joined #angularjs
[21:23:23] *** ludkiller has quit IRC
[21:23:28] *** dannyc has joined #angularjs
[21:23:34] *** Luser_ has quit IRC
[21:23:40] *** moafoca has joined #angularjs
[21:23:48] *** siddart has quit IRC
[21:24:04] *** siddart has joined #angularjs
[21:24:07] *** otisZart has joined #angularjs
[21:24:13] *** danielmahon has quit IRC
[21:24:17] *** Luser has joined #angularjs
[21:24:24] <marc_v92> I'm currently in the process of recreating a web app that used to use jQuery to run as an Angular app, but I'm not sure what to do for this piece:
[21:24:46] *** plushy has quit IRC
[21:25:04] <ctanga> here comes the paste
[21:25:12] *** plushy has joined #angularjs
[21:25:23] <marc_v92> ctanga: No, but thanks for making a negative assumption about me.
[21:25:36] *** Juanchito has quit IRC
[21:25:42] *** Luser has quit IRC
[21:25:44] *** ludkiller has joined #angularjs
[21:25:47] *** Luser_ has joined #angularjs
[21:25:47] *** elrabin has joined #angularjs
[21:25:50] *** jocuca has quit IRC
[21:25:54] <marc_v92> The app has an info panel (#info-panel), with a button underneath. When clicked, jQuery would addClass("hidden") to #info-panel.
[21:25:56] *** sinequanon has quit IRC
[21:26:05] <nickeddy> lol
[21:26:10] *** bbankes has quit IRC
[21:26:16] *** Luser_ has quit IRC
[21:26:17] <marc_v92> CSS would then change the height of the panel to hide its contents.
[21:26:24] *** wtiger has quit IRC
[21:26:25] <marc_v92> I understand that with Angular, the idea is to avoid DOM manipulation, so I'm not sure how to approach the same task in Angular.
[21:26:48] <reavengr2y> The objective is not to avoid DOM manipulation
[21:26:52] *** Luser has joined #angularjs
[21:27:09] <reavengr2y> It's to keep all DOM manipulation outside of directives
[21:27:11] *** DrMabuse has joined #angularjs
[21:27:16] <reavengr2y> *inside of
[21:27:17] *** cthrax has quit IRC
[21:27:35] <marc_v92> reavengr2y: Ahh, alright, thanks for the clarification. :)
[21:27:42] *** MrBaboon has quit IRC
[21:28:04] *** MrBaboon has joined #angularjs
[21:28:05] *** simplyshipley has quit IRC
[21:28:09] *** kotyy has joined #angularjs
[21:28:10] *** Luser has quit IRC
[21:28:10] *** dannyc has quit IRC
[21:28:12] <ctanga> marc_v92: you want to think data-driven. you have a ui state variable like “{ infopanel: true }”
[21:28:15] *** doug64k has quit IRC
[21:28:16] *** kewark has joined #angularjs
[21:28:22] *** dacuca has quit IRC
[21:28:22] *** kewark is now known as dacuca
[21:28:28] *** Luser has joined #angularjs
[21:28:42] *** nodedfree has quit IRC
[21:28:43] <ctanga> then you would apply a directive to your info panel: <info-panel ng-show=“uistate.infopanel”>
[21:28:53] *** Luser has quit IRC
[21:28:57] <ctanga> when you click the button it toggles the state variable
[21:29:07] *** bbankes has joined #angularjs
[21:29:16] *** GTgolfer has quit IRC
[21:29:17] <marc_v92> ctanga: Ahh, then an ng-click on the button, with a directive that toggles uistate.infopanel?
[21:29:23] *** Luser has joined #angularjs
[21:29:36] *** phuh has quit IRC
[21:29:38] <marc_v92> ctanga: That's beautiful. I'm already liking Angular so much more than jQ, lol.
[21:29:44] <ctanga> marc_v92: yup. <button ng-click=“uistate.infopanel = !uistate.infopanel”>
[21:30:01] *** phuh has joined #angularjs
[21:30:05] *** TommyO has quit IRC
[21:30:15] <monokrome> Does the ngSelect directive have isolate scope?
[21:30:19] <ctanga> or better yet, keep the JS out of the HTML: <button ng-click=“togglePanel()”>
[21:30:43] *** a3gis has joined #angularjs
[21:30:46] <ctanga> then in your controller, add $scope.togglePanel = function() { $scope.uistate.infopanel = !$scope.uistate.infopanel; }
[21:30:50] *** Luser has quit IRC
[21:30:51] *** foofoobar has quit IRC
[21:30:53] <ctanga> now your JS is in your JS
[21:30:55] *** edrocks_ has joined #angularjs
[21:31:01] <ctanga> and you just bound it to your HTML
[21:31:03] <reavengr2y> ...and not just in your JS
[21:31:05] *** quantax- has joined #angularjs
[21:31:07] *** Luser has joined #angularjs
[21:31:09] <areologist> sorry, was afk
[21:31:11] <reavengr2y> It's in application-agnostic, portable directives
[21:31:37] <areologist> to clarify, I wasn't trying to make a library decision for anyone, just sharing a lesser known alternative that may be appropriate in some cases.
[21:31:37] *** Luser has quit IRC
[21:31:38] *** nodedfree has joined #angularjs
[21:31:48] *** despai has quit IRC
[21:31:56] *** TommyO has joined #angularjs
[21:31:57] <reavengr2y> areologist: most of the people who supposedly opposed you were joking
[21:31:58] *** Luser has joined #angularjs
[21:32:09] *** DrMabuse has quit IRC
[21:32:11] <marc_v92> ctanga: That makes sense, I like how clean that is. Thanks for the help! :)
[21:33:07] <TweedleDee> anyone help me spot the bug in this?
[21:33:16] *** Luser has quit IRC
[21:33:20] *** chrisshattuck has quit IRC
[21:33:29] *** Nijikokun has joined #angularjs
[21:33:30] *** Rockroxx has joined #angularjs
[21:33:39] <TweedleDee> if you put in for example "a" it won't show the red phone glyficon
[21:33:45] *** siddart has quit IRC
[21:33:46] *** Luser has joined #angularjs
[21:33:48] *** zanea|away is now known as zanea
[21:33:59] *** bayousoft has quit IRC
[21:34:01] *** siddart has joined #angularjs
[21:34:05] <marc_v92> ctanga: So, the intended functionality is that when you click the button, it adds a class to info-panel ("collapsed"), and then CSS animates it from a height of 300px to 25px (thereby hiding the contents). How would I approach this in Angular?
[21:34:14] *** Luser has quit IRC
[21:34:23] <marc_v92> Would I still take the class approach, or is there a better way?
[21:34:40] *** bayousoft has joined #angularjs
[21:34:40] *** Luser has joined #angularjs
[21:35:34] *** ededagic_ has joined #angularjs
[21:35:40] <ctanga> marc_v92: <info-panel ng-class=“{ collapsed: !uistate.infopanel }”>
[21:35:42] *** plato has quit IRC
[21:35:59] *** AngularUI has joined #angularjs
[21:35:59]
<AngularUI> [ng-grid] danielzabotti opened pull request #2175: Refactored GridColumn.getAggregationValue. (master...improve-aggregation-performance) http://git.io/dQlEfQ
[21:36:00] *** AngularUI has left #angularjs
[21:36:00] <Rockroxx> Say a user named A connects to my angularjs website on server B, the angular app performs a post to API server C. Does the post first come through server B before going to server C?
[21:36:10] *** Luser has quit IRC
[21:36:10] *** danecando has quit IRC
[21:36:18] <ctanga> marc_v92: angular loves CSS animations
[21:36:21] *** tkimmel has joined #angularjs
[21:36:25] *** Luser has joined #angularjs
[21:36:25] <ctanga> becuase they’re declarative
[21:36:25] <marc_v92> ctanga: Perfect. I guess it might be useful to have a list on Angular directives open as I go through this, lol.
[21:36:33] <marc_v92> list of*
[21:36:34] *** jimvideo has joined #angularjs
[21:37:00] <ctanga> marc_v92: FYI ng-show/ng-hide applies the “ng-hide” CSS class
[21:37:00] *** Luser has quit IRC
[21:37:01] *** dreambox has joined #angularjs
[21:37:08] <dreambox> hey friends
[21:37:17] *** whunt has joined #angularjs
[21:37:26] *** Luser has joined #angularjs
[21:37:28] *** doug64k has joined #angularjs
[21:37:33] <ctanga> ng-hide=“uistate.infopanel” is basically shorthand to ng-class=“{ ng-hide: uistate.infopanel }”
[21:37:45] <dreambox> I wrote a couple of controllers and a service, things work, but I'm having serious doubts about my architecture and whether it makes sense or not...
[21:37:54] <ctanga> where ng-hide is an actual CSS class with display: none
[21:38:00] *** alxd has left #angularjs
[21:38:01] <ctanga> but its also the name of a directive
[21:38:30] *** jlmitch5dev has joined #angularjs
[21:38:31] *** siddart has quit IRC
[21:38:39] *** Luser has quit IRC
[21:38:47] *** c00ljs has joined #angularjs
[21:38:47] *** siddart has joined #angularjs
[21:38:50] <edrocks_> anyone know why gulp-sass would take 20+ seconds to compile?
[21:38:56] <marc_v92> ctanga: Thanks for the clarification. I'm not using the default Angular CSS file, so I probably would have been scratching my head otherwise, lol.
[21:39:04] *** sinequanon has joined #angularjs
[21:39:05] <ctanga> there is no angular css file
[21:39:08] *** Luser has joined #angularjs
[21:39:10] <ctanga> it just adds it using JS
[21:39:11] *** MistahKurtz has joined #angularjs
[21:39:59] *** Luser_ has joined #angularjs
[21:39:59] *** Luser has quit IRC
[21:40:01] *** bayousoft has quit IRC
[21:40:36] *** epantzar has joined #angularjs
[21:40:40] *** bayousoft has joined #angularjs
[21:40:53] *** kuadrosx has quit IRC
[21:41:02] *** Ix-Xitan has joined #angularjs
[21:41:03] *** Ix-Xitan is now known as PointBlank
[21:41:14] *** PointBlank is now known as Ix-xitan
[21:41:28] *** Luser_ has quit IRC
[21:41:37] *** kotyy has quit IRC
[21:41:45] *** Luser has joined #angularjs
[21:41:52] *** eBureau has quit IRC
[21:41:57] *** Soop has joined #angularjs
[21:41:59] *** jpstone has quit IRC
[21:42:25] *** kuadrosx has joined #angularjs
[21:42:25] *** Luser has quit IRC
[21:42:30] *** siddart has quit IRC
[21:42:30] *** JmZ_ is now known as JmZ
[21:42:36] *** Luser has joined #angularjs
[21:42:45] <Soop> Could anyone help me out with ui grid and display data from an api
[21:42:46] *** siddart has joined #angularjs
[21:42:58] <themime> Soop: generally just best to ask your question, preferrably with a plunker
[21:43:03] *** spatialbrew has quit IRC
[21:43:40] *** lenswipe has joined #angularjs
[21:43:51] *** thomasreggi has joined #angularjs
[21:44:09] <Soop> Sure, Ill do that real quick
[21:44:15] *** Luser has quit IRC
[21:44:23] *** Luser has joined #angularjs
[21:44:37] *** rahulprasad has quit IRC
[21:44:50] *** dannyc has joined #angularjs
[21:44:50] *** Luser has quit IRC
[21:45:04] *** plato has joined #angularjs
[21:45:05] *** kirfu has joined #angularjs
[21:45:09] *** trend has quit IRC
[21:45:09] *** phuh has quit IRC
[21:45:16] *** Luser has joined #angularjs
[21:45:16] *** epantzar has quit IRC
[21:45:17] *** jimmyy has joined #angularjs
[21:45:24] *** zackiv31 has joined #angularjs
[21:45:27] *** Aliks has joined #angularjs
[21:45:31] *** grindmodeon has joined #angularjs
[21:45:33] *** zackiv31 has quit IRC
[21:46:28] *** siddart has quit IRC
[21:46:45] *** siddart has joined #angularjs
[21:47:04] *** Luser_ has joined #angularjs
[21:47:41] *** Luser has quit IRC
[21:47:42] *** Luser_ has quit IRC
[21:47:45] *** NorthBlast has joined #angularjs
[21:47:55] <deweydb> hello
[21:48:01] *** Luser has joined #angularjs
[21:48:14] *** siddart has quit IRC
[21:48:30] <deweydb> how do you return from an $http from within the transformResponse function ?
[21:48:31] *** siddart has joined #angularjs
[21:48:35] *** threesixes has quit IRC
[21:48:57] <roadrunneratwast> is there a way to view the controllers attached to the app in the console?
[21:49:04] *** Versality has quit IRC
[21:49:12] *** mkaz has joined #angularjs
[21:49:26] *** cheef has joined #angularjs
[21:49:32] *** oncenull has quit IRC
[21:49:40] <dreambox> Question : I was using a Service in order to cache a value and then I was emiting an event which I was listing from a parent controller and then getting this cached data from the service...
[21:49:42] *** dannyc has quit IRC
[21:49:46] *** Luser has quit IRC
[21:49:47] *** Luser_ has joined #angularjs
[21:49:55] <dreambox> This took me a week or two to figure out and I just realized I was a major fool
[21:50:24] <dreambox> Because when you emit an event you can also pass data as arguments.. which you can access when you "catch" the event ($on) ..
[21:50:25] *** Luser_ has quit IRC
[21:50:25] *** Aliks has quit IRC
[21:50:28] *** Aliks_ has joined #angularjs
[21:50:29] <TweedleDee> what does $controllers tell you?
[21:50:40] *** Luser has joined #angularjs
[21:51:10] *** trend has joined #angularjs
[21:51:23] *** siddart has quit IRC
[21:51:33] *** Versality has joined #angularjs
[21:51:39] *** siddart has joined #angularjs
[21:51:59] *** Luser has quit IRC
[21:52:20] *** mjs2600 has quit IRC
[21:52:25] *** Luser has joined #angularjs
[21:52:36] *** mjs2600 has joined #angularjs
[21:52:57] *** moogey_ has joined #angularjs
[21:52:57] *** Luser has quit IRC
[21:53:01] <deweydb> dreambox: or you should probably just use a promise
[21:53:05] *** mjs2600 has quit IRC
[21:53:16] *** moogey_ has quit IRC
[21:53:22] *** Luser has joined #angularjs
[21:53:26] *** moogey has joined #angularjs
[21:53:48] <Grokling> dreambox: Why emit rather than making an assignment to $scope at a higher level?
[21:54:22] *** Templarian__ is now known as Templarian
[21:54:26] <deweydb> Grokling: he said it was a service though? can services even access $scope?
[21:54:40] *** nemothekid has joined #angularjs
[21:55:02] *** Luser has quit IRC
[21:55:09] *** Luser has joined #angularjs
[21:55:13] <dreambox> Grokling: I don't know if I am answering your question but I emit because the child controller has information that the parent controller doesn't and I don't want to use $rootScope .
[21:55:16] *** siddart has quit IRC
[21:55:26] <srph> Is it possible to use ngModel validation without using <forms> ??
[21:55:29] <Grokling> deweydb: They shouldn't. But something, somewhere is firing that service 'populate cache' process, and it's likely that whatever that is can access $scope.
[21:55:31] *** Luser has quit IRC
[21:55:33] *** siddart has joined #angularjs
[21:55:34] *** mguillec_ has joined #angularjs
[21:55:35] *** zzing has quit IRC
[21:55:41] <roadrunneratwast> or do i have to inject my controller into my app before i use it?
[21:55:45] *** ededagic_ has quit IRC
[21:55:55] *** mguillech has quit IRC
[21:55:59] *** Luser has joined #angularjs
[21:56:14] <deweydb> Grokling: ah i see what you are saying
[21:56:29] <deweydb> Still think a promise would be best, instead of using events+emit
[21:56:31] <Grokling> dreambox: if you initialise a $scope variable in your parent controller, your child will inherit it (unless you tell it otherwise), so any changes your child makes to that variable are visible to the parent controller too.
[21:56:52] <deweydb> unless its a sigleton
[21:57:02] <deweydb> which really screwed me up for a long time
[21:57:07] *** c00ljs has quit IRC
[21:57:09] *** prettybigmonster has quit IRC
[21:57:16] <Grokling> deweydb: I'm not following?
[21:57:18] <areologist> service should be leveraged in ways that promote loose coupling
[21:57:19] <dreambox> it's a singleton.
[21:57:33] *** jlmitch5dev has quit IRC
[21:57:34] <Grokling> all services are singletons..
[21:57:37] *** Luser has quit IRC
[21:57:39] *** cliluw has quit IRC
[21:57:39] <Grokling> Factorys too.
[21:57:45] *** Luser has joined #angularjs
[21:57:53] *** icfantv1 has joined #angularjs
[21:58:05] *** cliluw has joined #angularjs
[21:58:08] *** icfantv has quit IRC
[21:58:13] *** Luser has quit IRC
[21:58:29] <dreambox> Grokling: I don't know but I'm pretty sure I am doing something in a different way and I cannot share $scope
[21:58:42] *** Luser has joined #angularjs
[21:58:42] *** nairys has quit IRC
[21:58:52] *** t1mmen has quit IRC
[21:59:06] *** siddart has quit IRC
[21:59:08] *** larsgk has joined #angularjs
[21:59:13] <Grokling> dreambox: when you say 'child' controller, are you talking about a nested state?
[21:59:17] *** siddart has joined #angularjs
[21:59:31] *** grindmodeon has quit IRC
[21:59:43] <dreambox> Grokling: ah ye I know why : the parent controller uses a closure... $scope.create = function () { var message = new Messages ({ location : this.location }) };
[21:59:47] *** e0ipso is now known as e0ipso|away
[22:00:02] *** dhcar_AFK has quit IRC
[22:00:04] <dreambox> so you can't access location or message from the child controller (yes a nested controller)
[22:00:12] *** whunt has quit IRC
[22:00:22] *** Luser has quit IRC
[22:00:26] *** Luser_ has joined #angularjs
[22:00:35] *** icfantv1 is now known as icfantv
[22:00:57] *** dhcar_AFK has joined #angularjs
[22:00:58] *** Luser_ has quit IRC
[22:01:05] <Grokling> Right. So, instead, get your service to make your new Message, and return a reference to it.
[22:01:08] *** ededagic_ has joined #angularjs
[22:01:19] *** Luser has joined #angularjs
[22:01:24] *** chrisbirk has quit IRC
[22:01:28] *** oncenull has joined #angularjs
[22:01:48] *** gunn has quit IRC
[22:01:48] <dreambox> or I can just $emit an event with the data I need and get them from the parent controller with an $on .. 3 lines of code :)
[22:01:54] *** baweaver has joined #angularjs
[22:01:58] *** srph has quit IRC
[22:02:04] <Grokling> You could just do it in the controller and not worry about the service. Just lose the closure..
[22:02:12] *** AngularUI has joined #angularjs
[22:02:12] <AngularUI> ng-grid/master 15146ce Jyoti Puri: #2154
[22:02:12] <AngularUI> ng-grid/master d24b8e0 Jyoti Puri: #2156
[22:02:12] <AngularUI> ng-grid/master 3c0434b Paul: Merge pull request #2164 from jpuri/master...
[22:02:12] *** AngularUI has left #angularjs
[22:02:15] *** Evanion has quit IRC
[22:02:54] *** Luser has quit IRC
[22:03:05] *** Luser has joined #angularjs
[22:03:07] *** siddart has quit IRC
[22:03:20] *** gunn has joined #angularjs
[22:03:23] *** siddart has joined #angularjs
[22:03:26] *** gunn has quit IRC
[22:03:33] *** Luser has quit IRC
[22:03:35] <dreambox> I am using the closure thingie as it was provided by MEAN.js ... I believe their pattern has a purpose even though I don't get it yet :)
[22:03:44] *** night-owl is now known as zz_night-owl
[22:04:02] *** Luser has joined #angularjs
[22:04:03] *** gunn has joined #angularjs
[22:04:06] *** kirfu has quit IRC
[22:04:53] *** esparkman-mbp has quit IRC
[22:05:29] *** grindmodeon has joined #angularjs
[22:05:29] *** Luser has quit IRC
[22:05:32] *** kirfu has joined #angularjs
[22:05:34] *** dnakov has quit IRC
[22:05:44] *** sinequanon has quit IRC
[22:05:44] *** sinequan_ has joined #angularjs
[22:05:46] *** Luser has joined #angularjs
[22:05:46] *** cthrax has joined #angularjs
[22:06:02] *** nairys has joined #angularjs
[22:06:06] *** stormbytes has quit IRC
[22:06:07] *** dnakov has joined #angularjs
[22:06:11] *** Luser has quit IRC
[22:06:21] *** sigurding has joined #angularjs
[22:06:29] *** t1mmen has joined #angularjs
[22:06:37] *** NorthBlast has quit IRC
[22:06:37] <Grokling> Okay, so you're really talking about assigning your messages to scope - the $scope.create thing is a distraction at this point I think.. How about $scope.messages = Messages.query(); (which you have, but it's inside a closure)
[22:06:43] *** Luser has joined #angularjs
[22:06:46] *** mkaz has quit IRC
[22:06:47] *** say2joe has quit IRC
[22:07:03] <Grokling> Actually, calling $scope.find() should do it for you.
[22:07:12] *** Versality has quit IRC
[22:07:27] *** siddart has quit IRC
[22:07:30] <Grokling> Then just interact with $scope.messages in your parent or child controllers.
[22:07:36] *** kwladyka has joined #angularjs
[22:07:40] *** josh3336_ has joined #angularjs
[22:07:43] *** siddart has joined #angularjs
[22:08:12] *** josh3336 has quit IRC
[22:08:12] *** josh3336_ is now known as josh3336
[22:08:23] *** instence_ has joined #angularjs
[22:08:29] *** Luser_ has joined #angularjs
[22:08:29] *** Luser has quit IRC
[22:08:59] *** mjs2600 has joined #angularjs
[22:08:59] *** Luser_ has quit IRC
[22:09:09] *** siddart has quit IRC
[22:09:15] *** aphadke has joined #angularjs
[22:09:19] *** Luser has joined #angularjs
[22:09:26] *** siddart has joined #angularjs
[22:09:27] *** RobinBAwesome has joined #angularjs
[22:09:52] *** kirfu has quit IRC
[22:09:54] *** Oddman has quit IRC
[22:10:28] *** kirfu has joined #angularjs
[22:10:31] *** say2joe has joined #angularjs
[22:10:36] *** instence has quit IRC
[22:10:57] *** marc_v92 has quit IRC
[22:11:03] <aphadke> hello - i just posted to mailing list, but figured i can ask out here too.. we are using angularjs 1.2.26, and want to load the homepage fast. is it possible to load "index.html" as static, rest of it dynamic?
[22:11:04] *** Luser has quit IRC
[22:11:09] *** Luser_ has joined #angularjs
[22:11:25] *** siddart has quit IRC
[22:11:33] *** Luser_ has quit IRC
[22:11:42] *** siddart has joined #angularjs
[22:11:59] *** Luser has joined #angularjs
[22:12:08] *** MrBaboon has quit IRC
[22:12:13] *** chrisbirk has joined #angularjs
[22:12:55]
<kwladyka> http://pastebin.com/2Zh9U6Fs - in line 61 i am setting search_visible and in line 77 i want use ng-show to show block of code when it is true. But it is not the same ui-view. How to solve that? What is best practice?
[22:13:18] *** charuru has quit IRC
[22:13:28] *** Luser has quit IRC
[22:13:36] *** siddart has quit IRC
[22:13:40] *** kirfu has quit IRC
[22:13:45] *** kirfu1 has joined #angularjs
[22:13:48] *** Luser has joined #angularjs
[22:13:52] <kwladyka> aphadke yes
[22:13:53] *** siddart has joined #angularjs
[22:13:55] *** shackleford has quit IRC
[22:14:00] *** squeakytoy has joined #angularjs
[22:14:18] *** shackleford has joined #angularjs
[22:14:19] *** Luser has quit IRC
[22:14:37] *** Luser has joined #angularjs
[22:14:38] <aphadke> kwladyka: any references/sample code?
[22:16:29] *** Luser_ has joined #angularjs
[22:16:30] *** PrinceAMD has quit IRC
[22:16:30] *** Luser has quit IRC
[22:16:37] <deweydb> what is the advantage of restricting a directive to a certain A,E,C etc? is it just for code clarity, or is there some performance advantage?
[22:16:51] *** sigurding has quit IRC
[22:16:51] *** Luser_ has quit IRC
[22:16:59]
<kwladyka> aphadke: https://github.com/angular-ui/ui-router - i am using this but its also possible with other module. Just load as static what is in ui-view and in angularjs code in javascript in router or somewhere else reload this block
[22:17:12] *** atomi has quit IRC
[22:17:22] *** Luser has joined #angularjs
[22:17:24] <ezakimak> is there a way to use ng-class to both add a class from a variable and conditionally add a class based on a predicate?
[22:17:42] *** siddart has quit IRC
[22:17:46] <ezakimak> eg ng-class="col.name" and ng-class="{class-name: predicate}" ?
[22:17:53] *** siddart has joined #angularjs
[22:17:59] <aphadke> thx kwladyka. lemme look in that
[22:18:02] *** beckyconning_ has quit IRC
[22:18:06] *** Evanion has joined #angularjs
[22:18:26] *** charuru has joined #angularjs
[22:18:46] <ctanga> does anyone use reloadOnSearch with ui-router?
[22:18:56] <ctanga> and if so, how are you using it
[22:19:06] *** Left_Turn has quit IRC
[22:19:09] *** Luser_ has joined #angularjs
[22:19:12] *** Luser has quit IRC
[22:19:34] *** Luser_ has quit IRC
[22:19:35] <areologist> deweydb, supporting all the restrict types can mean more code, and the comment and class types are for weird use cases anyway
[22:20:03] *** Luser has joined #angularjs
[22:20:04] <deweydb> honestly i can't even begin to think why anyone would want to put a directive on a comment
[22:20:10] <deweydb> that seems so super fragile
[22:20:16] <areologist> totally
[22:20:23] *** kirfu1 has quit IRC
[22:20:28] <areologist> I'd feel dirty afterward
[22:20:29] *** jonathanpglick has quit IRC
[22:20:38] *** jacuqesdancona has joined #angularjs
[22:20:46] <deweydb> i would really love to read the original logic behind that decision
[22:20:49] *** ngbot has joined #angularjs
[22:20:50] <ngbot> angular.js/master 8ac369e Martin Staffa: docs(ngModelController): update wordings, add more general info...
[22:20:50] *** ngbot has left #angularjs
[22:20:57] <deweydb> i assume it came about from some pull request from some user with an obscure use case
[22:21:05] <deweydb> im surprised its part of angular core though
[22:21:15] *** whunt has joined #angularjs
[22:21:24] <dreambox> Grokling: so the $scope.create = function () {} thingie is just complicating things for me for no reason you say
[22:21:28] *** slopjong_ has quit IRC
[22:21:28] *** slopjong has quit IRC
[22:21:32] *** Luser has quit IRC
[22:21:34] <roadrunneratwast> oh my dog
[22:21:40] <roadrunneratwast> it was a cut and paste error
[22:21:40] *** siddart has quit IRC
[22:21:44] *** slopjong has joined #angularjs
[22:21:44] *** Luser has joined #angularjs
[22:21:45] *** slopjong_ has joined #angularjs
[22:21:56] *** siddart has joined #angularjs
[22:21:59] *** DigitallyBorn has quit IRC
[22:21:59] *** atomi has joined #angularjs
[22:22:06] *** moogey has quit IRC
[22:22:11] *** Luser has quit IRC
[22:22:12] *** richiebkr has joined #angularjs
[22:22:21] *** bayousoft has quit IRC
[22:22:26] <ezakimak> great, but that link doesn't say how you can use two of those methods at the same time
[22:22:26] <areologist> the only time I've heard of comment directives was when integrating with closed source app generated html
[22:23:18] <kwladyka> i need to set variable search_visible in ui-view to true on ng-click action and read that variable outside ui-view. What is the best practice for that? in which way should i do that?
[22:23:38] <kwladyka> *this variable in standard is not visible outside ui-view
[22:24:01] *** despai has joined #angularjs
[22:24:05] <kwladyka> setting that like: <a ng-click="search_visible = !search_visible" ng-init="search_visible = false" class="btn btn-link">zaawansowana</a>
[22:24:26] *** Luser_ has joined #angularjs
[22:24:28] *** rho has quit IRC
[22:24:35] <areologist> in the crazy interwebs I can imagine cases where some legacy part of a system is bugged out by angular attribute or element directives so you have to use css class name. I guess.
[22:24:40] *** jimmyy has quit IRC
[22:24:53] *** jacuqesdancona has quit IRC
[22:24:53] *** Luser_ has quit IRC
[22:25:05] *** nairys has quit IRC
[22:25:18] *** Pluff has quit IRC
[22:25:21] *** Luser_ has joined #angularjs
[22:25:36] *** rho has joined #angularjs
[22:25:54] <TweedleDee> ok I sovled my issue but then found another one... if I use the html inline ng-pattern="/^(\+?[01])?[-.\s]?\(?[1-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/" or my from the controller syntax of ng-pattern="ctrl.phoneRegEx" where ctrl.phoneRegEx="/^(\\+?[01])?[-.\\s]?\\(?[1-9]\\d{2}\\)?[-.\\s]?\\d{3}[-.\\s]?\\d{4}/"; even though the both look the exact same in the HTML: ng-pattern="/^(\+?[01])?[-.
[22:25:54] <TweedleDee> \s]?\(?[1-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/" after compilation, one works and one doesn't.. the one from the controller doesn't the inline does
[22:26:23] *** ngbot has joined #angularjs
[22:26:24] <ngbot> angular.js/master 637d3b4 Peter Bacon Darwin: docs($httpProvider): add info about `defaults.cache`...
[22:26:24] *** ngbot has left #angularjs
[22:26:41] *** Luser_ has quit IRC
[22:26:59] *** Pluff has joined #angularjs
[22:27:00] *** dhcar_AFK is now known as dhcar
[22:27:07] *** Luser has joined #angularjs
[22:27:19] *** cohitre has quit IRC
[22:27:32] <roadrunneratwast> TweedleDee: I always test out my regexes from the command line
[22:27:32] *** Luser has quit IRC
[22:27:50] <roadrunneratwast> TweedleDee: or the evaluation evuator
[22:27:57] *** Luser has joined #angularjs
[22:28:37] *** despai has quit IRC
[22:28:56] <roadrunneratwast> TweedleDee: Thus, in the IDE parser or the command line or whatever, try out re.match(n="/^(\+?[01]), 555-555-555) until it breaks or works or wahtever
[22:29:36] *** adpirz has joined #angularjs
[22:29:38] *** Luser has quit IRC
[22:29:54] *** Luser has joined #angularjs
[22:29:58] *** siddart has quit IRC
[22:30:07] *** cakirke has joined #angularjs
[22:30:09] *** Luser has quit IRC
[22:30:15] *** siddart has joined #angularjs
[22:30:16] *** angularUser800 has joined #angularjs
[22:30:32] *** Nijikoku_ has joined #angularjs
[22:30:41] *** Luser has joined #angularjs
[22:30:57] *** angularUser800 has quit IRC
[22:31:34] <TweedleDee> it works
[22:31:44] <roadrunneratwast> cool story, bro
[22:31:48] <TweedleDee> what i'm saying is when I get the expression from the controller it dones't work
[22:31:54] <TweedleDee> when I put it inline it does
[22:31:55] <jaydubya> Is it preferable to have one factory assigned to all API work and other factories to manipulate the data or should the api and manipulation for each field be relegated to a factory?
[22:31:55] <roadrunneratwast> oh
[22:31:57] *** prettiestPony11 has joined #angularjs
[22:32:11] *** icarus75 has joined #angularjs
[22:32:12] <adamsilver_> so i generated a new app using yeoman and pushed it to github. How can I replicate the environment on another machine after pulling the code?
[22:32:17] <TweedleDee> not sure why, the compiled HTML in chrome debugger reads the exact same..
[22:32:20] <jaydubya> ^ !field, table
[22:32:26] *** cohitre has joined #angularjs
[22:32:26] *** Luser has quit IRC
[22:32:28] *** Luser_ has joined #angularjs
[22:33:20] <TweedleDee> ok I figured it out if anyone is interested from your controller you dont want the leading / or trailing / in a regex
[22:33:20] *** Luser_ has quit IRC
[22:33:21] *** wallerdev has joined #angularjs
[22:33:23] *** Nijikokun has quit IRC
[22:33:30] *** Luser has joined #angularjs
[22:33:32] <roadrunneratwast> uck-fay. i am an angular noob. i know regexes from PERL. is it possible that the nothing is being escaped?
[22:33:34] <roadrunneratwast> oh
[22:33:36] <roadrunneratwast> okay
[22:33:37] <roadrunneratwast> cool
[22:33:53] *** tech2 has quit IRC
[22:33:54] <TweedleDee> so if you are using it from HTML it would read ng-pattern="/^(\+?[01])?[-.\s]?\(?[1-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/" if you pass it to HTML from controller it needs to read var phoneReg = "^(\\+?[01])?[-.\\s]?\\(?[1-9]\\d{2}\\)?[-.\\s]?\\d{3}[-.\\s]?\\d{4}"
[22:34:03] *** Fuzzy has joined #angularjs
[22:34:07] *** busticated has quit IRC
[22:34:12] *** adpirz has quit IRC
[22:34:19] <TweedleDee> just a tip incase anyone needs that I wasted an hour on it
[22:34:19] *** siddart has quit IRC
[22:34:23] *** patrick99e99 has quit IRC
[22:34:35] *** siddart has joined #angularjs
[22:34:36] *** Una has quit IRC
[22:34:41] *** mtsr has quit IRC
[22:34:57] <deweydb> don't you always need a / and / in a regex pattern?
[22:35:01] *** Luser has quit IRC
[22:35:05] *** Luser_ has joined #angularjs
[22:35:08] *** cohitre has quit IRC
[22:35:08] <nickeddy> ^
[22:35:13] *** Fuzzier has quit IRC
[22:35:14] <roadrunneratwast> so yeah. it is escaping -- you need to double backslash
[22:35:19] <roadrunneratwast> right?
[22:35:27] <nickeddy> TweedleDee: put / in front and at the end of the regex
[22:35:32] *** Luser_ has quit IRC
[22:35:41] *** lenswipe has quit IRC
[22:35:50] *** freeman42 has quit IRC
[22:35:51] *** Siecje has quit IRC
[22:36:00] <roadrunneratwast> nickeddy: it was a cut and paste error. i overwrote HomeCtrl. Thanks for the help
[22:36:03] *** Luser has joined #angularjs
[22:36:12] *** Una has joined #angularjs
[22:36:16] <nickeddy> roadrunneratwast: oh good, things working now then?
[22:36:25] <roadrunneratwast> yeah
[22:36:27] <roadrunneratwast> for now
[22:36:36] *** gunn has quit IRC
[22:36:43] <nickeddy> i can't tell you how many times i've had stupid issues like that because of some typo or copy/paste error
[22:36:57] *** Rockroxx has quit IRC
[22:36:59] *** monir has quit IRC
[22:37:20] <moafoca> Anyone are an expert with gulp? ^^
[22:37:35] <TweedleDee> nickeddy you dont do that when passsing it from the controller to your HTML, only when its inline in the HTML
[22:37:36] <nickeddy> i use gulp a lot, but i wouldn't say i'm an expert
[22:37:37] *** monir has joined #angularjs
[22:37:42] <moafoca> ok nickeddy
[22:37:43] <TweedleDee> trust me I just delt with the issue for an hour
[22:37:49] <TweedleDee> and now have the code working
[22:37:50] *** Luser has quit IRC
[22:38:21] *** siddart has quit IRC
[22:38:31] <moafoca> I try to prepocess less files and minify them, the imports fails me :(
[22:38:39] *** siddart has joined #angularjs
[22:38:42] *** Sky[x] has joined #angularjs
[22:38:43] <TweedleDee> ng-pattern="ctrl.phoneRegEx" needs to return: var phoneReg = "^(\\+?[01])?[-.\\s]?\\(?[1-9]\\d{2}\\)?[-.\\s]?\\d{3}[-.\\s]?\\d{4}"; while from HTML it needs to read: ng-pattern="/^(\+?[01])?[-.\s]?\(?[1-9]\d{2}\)?[-.\s]?\d{3}[-.\s]?\d{4}/"
[22:38:54] *** Luser has joined #angularjs
[22:38:58] *** Siecje has joined #angularjs
[22:39:47] *** matisoffn has joined #angularjs
[22:40:06] *** roadrunneratwast has quit IRC
[22:40:12] <jaydubya> is there ANY alternative to listing the 12,831 js files in index.html?
[22:40:28] <themime> jaydubya: i just starting using gulp with concat
[22:40:38] <themime> jaydubya: i only have 6 files but it would do the same
[22:40:39] <kwladyka> $emit doesn't work with ui-router or i am doing something wrong?
[22:40:55] *** kirfu has joined #angularjs
[22:40:56] <themime> kwladyka: do you have a plunker?
[22:40:57] <ctanga> ur doing it wrong
[22:41:08] *** ahtik has quit IRC
[22:41:40] <jaydubya> themime: isn't Gulp for minimizing in prep for production? I want something like an "autoloader" so every freaking file in certain directories would get sucked into the app
[22:42:08] <nickeddy> moafoca: can i see your gulpfile?
[22:42:39] <themime> jaydubya: it does a looooot of things. im not minimizing for production, im concating so i can quickly add files to my new project with a watch my files for when i save to reconcat, etc and place in my server public from my client dev folder
[22:42:55] <nickeddy> jaydubya: i have my gulp auto watch my angular files so they automatically get imported
[22:42:58] <jaydubya> themime: so many experts suggest using bunches of small files instead of stuffing everything into a few files, but having to "log" each one in index.html (and forgetting to do that( is a PITA
[22:42:59] <themime> that was jumbled, did that make sense?
[22:43:04] <nickeddy> yeah, so what themime said pretty much
[22:43:14] <nickeddy> makes dev much faster, don't have to fuck around with including <script> tags
[22:43:18] <themime> exactly
[22:43:23] <themime> jaydubya: i use it to avoid that PITA
[22:43:28] *** Luser has quit IRC
[22:43:37] *** edrocks_ has quit IRC
[22:43:47] <jaydubya> themime: nickeddyI'm loving what I am hearing, PLEASE point me to a resource so I can figure out how to do that
[22:43:56] *** umib0zu has quit IRC
[22:43:59] <themime> jaydubya: so i can freely add project files and my gulp picks them up and adds them to the 2 files my index page is checking (modules and not modules to fix a minor loading order issue)
[22:44:02] <nickeddy> you could probably play around with mine
[22:44:17] <nickeddy> it's kind of outdated and i need to rewrite some things but
[22:44:18] <jaydubya> THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[22:44:22] <nickeddy> it works
[22:44:23] <areologist> themime: I use Gulp and Grunt--been using Grunt longer
[22:44:26] *** shackleford has quit IRC
[22:44:29] *** siddart has quit IRC
[22:44:38] <nickeddy> you'll have to change paths for how your directory structure is
[22:44:42] <areologist> they're comparable though. Gulp might be better overall.
[22:44:45] *** siddart has joined #angularjs
[22:44:53] <jaydubya> I'll use Grunt with ngRouter and Gulp with ui-router ... LOL
[22:45:08] <nickeddy> and then put in the <!-- inject:css:css --><!-- endinject --> and other inject tags in your index.html
[22:45:22] <jaydubya> sounds GREAT
[22:45:33] <themime> jay heres mine, might be a little simpler than nickeddy, which can be good/bay
[22:45:36] <themime> bad*
[22:45:54] <themime> haha now you have 3 examples
[22:45:59] <themime> and i have two others to check out!
[22:46:03] <nickeddy> :D
[22:46:07] <jaydubya> I come from Laravel (well, I'm stilll there for backend, and one of the things I love about Laravel is the autoloader
[22:46:19] <areologist> themime: if you have a node background you'd prolly prefer Gulp
[22:46:27] <jaydubya> I am all for have too many resources rather than too many script tags
[22:46:28] *** Ix-xitan has quit IRC
[22:46:31] <nickeddy> yeah, our examples are pretty much autoloader for front end angular
[22:46:50] <themime> areologist: im confused, im giving someone else advise, ive already decided on gulp
[22:47:02] <themime> areologist: are you trying to reply to jaydubya who originally asked?
[22:47:16] <areologist> misread something; multitasking here; sorry themime
[22:47:22] <themime> np
[22:47:49] *** cthrax has quit IRC
[22:47:56] <themime> autoloader wasn't reliant enough but it would be easy to add support to mine i think
[22:48:08] <themime> i kinda like knowing when the reset actually happens
[22:48:24] <themime> when i click. but i have watches to copy stuff back over when i save my files and add new ones to the project
[22:48:28] <jaydubya> themime: one other thing, you said you only have 6 files ... do you not subscribe to the one function per file mandate?
[22:48:36] *** darrin has quit IRC
[22:48:55] *** shackleford has joined #angularjs
[22:49:15] <themime> jaydubya: i just started this project, all my time has been spent getting gulp to work and fixing minor issues from adjusting to a style guide that uses controllerAs syntax and function enclosures. so yes, i am, and very very tightly too :)
[22:49:30] <themime> its actually 8 files representing my app and a home feature
[22:49:47] <Soop> @themime I find setting up a gulp setup to be extremely fun ha
[22:49:49] <themime> app.module.js, app.config.js, app.route.js, app.controller.js (if needed)
[22:49:54] <moafoca> Mi ng-gulp with LESS LiveReload and Bower with Bootstrap and more...
[22:49:56] <jaydubya> themime: multiple modules too?
[22:50:00] <moafoca> Just for sharing!
[22:50:06] <nickeddy> Soop: you need a <div ui-grid="thing.thats.nested"></div>
[22:50:16] *** cohitre has joined #angularjs
[22:50:26] *** esparkman-mbp has joined #angularjs
[22:50:36] <nickeddy> err no
[22:50:37] <nickeddy> sorry
[22:50:38] <themime> jaydubya: how do you mean? i have app.module.js and for my home feature i have home.module.js
[22:50:57] <nickeddy> ui-grid="config" and the config is: config: { data: 'thing.thats.nested' }
[22:50:57] <jaydubya> themime: so you use multiple modules
[22:51:03] *** wafflej0ck_ has joined #angularjs
[22:51:06] <esparkman-mbp> super awesome question, what's the best practice of maintaining states with ui.router if a user refreshes the browser?
[22:51:16] <themime> ah yes, i don't have just app, i have app.home, app.service.serviceName, etc
[22:51:19] *** yelvert has joined #angularjs
[22:51:38] <nickeddy> esparkman-mbp: what do you mean maintaining states?
[22:51:40] <themime> my gulp file is updated to reflect modules needing to be loaded first - it concats all modules then concats all not-modules
[22:51:46] *** DigitallyBorn has joined #angularjs
[22:51:46] *** DigitallyBorn has joined #angularjs
[22:51:47] <nickeddy> esparkman-mbp: like where they were last?
[22:51:53] <areologist> esparkman: what's your server stack?
[22:51:55] <themime> jaydubya: and my index.html just has two js includes, module.js and notmodule.js
[22:52:09] <esparkman-mbp> nickeddy: say a user fills out......exactly....or if they have filled out a form.
[22:52:18] <jaydubya> themime: my initial exposure to Angular was Dan Wahlin's course on Udemy and he just talked about modules as the thing to connect angular to the html file so I have been shoving EVERYING into my one module and seeing that experts don't do that
[22:52:19] *** kirfu has quit IRC
[22:52:29] <esparkman-mbp> areologist: right now I'm just spiking with pure Angular, ultimately it's a Rails stack
[22:52:42] *** cohitre has quit IRC
[22:52:44] *** Siecje has left #angularjs
[22:52:45] *** jjasonclark has quit IRC
[22:52:54] <areologist> I don't know if this is the best practice, but with html5mode routing I've had to configure routing on the server as well
[22:52:59] *** bradgignac has quit IRC
[22:53:09] *** japhar81 has quit IRC
[22:53:12] <areologist> so that /something/56/ doesn't 404
[22:53:14] *** Fuzzier has joined #angularjs
[22:53:35] *** yelvert has quit IRC
[22:53:41] *** yelvert has joined #angularjs
[22:53:44] *** nairys has joined #angularjs
[22:53:50] *** Joshee has quit IRC
[22:53:53] <areologist> so you have routing config--through rails, asp.net mvc, or whatever--that goes to your SPA page regardless
[22:54:02] <areologist> then the client-side routing will work
[22:54:02] <nairys> has anyone gotten grouping to work with uiGrid?
[22:54:37] <nickeddy> nairys: yep
[22:54:43] <nickeddy> nairys: oh no sorry, ng-grid
[22:54:43] *** Fuzzy has quit IRC
[22:54:44] *** mjs2600 has quit IRC
[22:54:47] <nairys> asldkfasf
[22:54:50] <nickeddy> :(
[22:54:56] <nairys> i was so excited for a second
[22:54:57] *** japhar81 has joined #angularjs
[22:54:57] <esparkman-mbp> areologist: good point...let me check out this nsStorage for this spike
[22:55:04] *** cheef has quit IRC
[22:55:20] <nairys> i went ahead and upgraded to uiGrid today like a fool without checking to see if all the features of ngGrid carried over
[22:55:22] *** siddart has quit IRC
[22:55:23] *** Circlefusion has joined #angularjs
[22:55:31] *** monir has quit IRC
[22:55:38] <nickeddy> esparkman-mbp: good spot for user settings to persist
[22:55:41] *** siddart has joined #angularjs
[22:55:45] <areologist> unless you're doing offline mode I don't know that storage is what you want. I understood your issue to be about supporting URLs when your routing is all client-side
[22:56:00] <areologist> particularly if you don't want the # routing scheme
[22:56:01] *** RobinBAwesome has quit IRC
[22:56:04] *** yts has joined #angularjs
[22:56:08] *** monir has joined #angularjs
[22:56:08] *** Lingos_ has joined #angularjs
[22:56:12] *** monir has quit IRC
[22:56:44] *** thomastuts has quit IRC
[22:56:45] <esparkman-mbp> areologist: well it's actually more of if a user is filling out a form and they do a browser reload(F5, CMD+R) when the page reloads their input isn't lost
[22:56:52] *** jlebrech has joined #angularjs
[22:57:09]
<kwladyka> themime sorry it takes me so long but its my first plunk.... http://plnkr.co/edit/rgHFMP7f9CbfvGdDVa8m?p=preview generally as you can see i want use ng-show="search_visible" in line 65 and set this in line 47. I am not sure what is the best practice for that.
[22:57:10] *** monir has joined #angularjs
[22:57:29] <moafoca> nickeddy, nothing? T_T
[22:57:33] *** RobinBAwesome has joined #angularjs
[22:57:43] *** merobertsjr_ has joined #angularjs
[22:57:50] *** oncenull has quit IRC
[22:57:51] <themime> jaydubya: yea would highly recommend splitting modules
[22:57:59] <reavengr2y> split modules
[22:58:13] *** dsilva has joined #angularjs
[22:58:25] *** oncenull has joined #angularjs
[22:58:40] *** prbc has joined #angularjs
[22:58:46] <kwladyka> themime i can mayby use scope event propagation or dependency injection, use controller or not if is not necessary, i am not sure which way is the best for this purpose
[22:58:48] <themime> jaydubya: in fact seems odd that the guide you followed implied otherwise
[22:58:52] *** rileylar_ has joined #angularjs
[22:58:53] *** jonathanpglick has joined #angularjs
[22:58:57] <areologist> esparkman-mbp: sessionStorage would be my first choice. local persists across sessions and tabs
[22:59:09] *** Luser has joined #angularjs
[22:59:14] <areologist> thus I concur with ngStorage, a nice wrapper for both local and session
[22:59:19] *** edy_ has quit IRC
[22:59:24] <esparkman-mbp> areologist: thanks let me dig into that
[22:59:37] *** kuadrosx has quit IRC
[22:59:37] <esparkman-mbp> nickeddy, areologist: thanks for the help/suggestions
[22:59:38] <areologist> if your requirements go beyond simple graphs like form state I'd recommend looking into localForage
[22:59:56] *** aphadke has quit IRC
[23:00:08] *** aphadke has joined #angularjs
[23:00:15] <themime> kwladyka: hm lots going on in that index file
[23:00:17] *** mguillec_ has quit IRC
[23:00:17] *** japhar81 has quit IRC
[23:00:28] *** merobertsjr has quit IRC
[23:00:29] *** Snugug has quit IRC
[23:00:38] *** Lingos_ has quit IRC
[23:00:43] <nickeddy> moafoca: i asked for your gulpfile and you didnt reply
[23:00:52] <jaydubya> nairys: the lack of grouping in uiGrid in my opinion is a huge mistake ... that was what made ngGrid great
[23:00:54] *** mguillech has joined #angularjs
[23:00:57] *** vonnegut has quit IRC
[23:00:58] <themime> kwladyka: what are you trying to do with the $emit?
[23:01:03] <moafoca> Sorry, I write in query
[23:01:19] *** mary5030 has joined #angularjs
[23:01:26] *** japhar81 has joined #angularjs
[23:01:27] <reavengr2y> ^
[23:01:34] *** mary5030 has quit IRC
[23:01:41] <reavengr2y> JS is so old fashioned
[23:01:48] *** monir has quit IRC
[23:01:58] *** edrocks_ has joined #angularjs
[23:02:06] *** jlebrech has quit IRC
[23:02:06] *** mary5030 has joined #angularjs
[23:02:17] *** FIFOd[a] has quit IRC
[23:02:23] *** rileylark has quit IRC
[23:02:23] <kwladyka> themime line 48
[23:02:39] *** ngbot has joined #angularjs
[23:02:40] <ngbot> angular.js/master eab2718 AlexChan: fix(input): call $setTouched in blur asynchronously if necessary...
[23:02:40] *** ngbot has left #angularjs
[23:02:43] *** timestep has quit IRC
[23:02:43] *** AimerPaddle has quit IRC
[23:02:54] *** oncenull has quit IRC
[23:02:59] <jaydubya> themime: this HUGE project is about 70% complete. Are you suggesting that I use modules for THIS project or mark it to "Lesson Learned" and start new projects with multiple-modules. If you are suggesting that, what dangers am I facing in the refactor?
[23:03:00] <themime> kwladyka: i saw where it was, but why is it there. can you explain your intent?
[23:03:08] *** tfennell_ has joined #angularjs
[23:03:18] *** rileylar_ has quit IRC
[23:03:20] <kwladyka> oh i am trying set search_visible = true to read that in line 65 in ng-show
[23:03:32] <themime> why are you not using $scope?
[23:03:35] *** cohitre has joined #angularjs
[23:03:36] <kwladyka> to show the block of code
[23:03:37] *** siddart has quit IRC
[23:03:42] <themime> what tutorials have you read for angular?
[23:03:44] *** busticated has joined #angularjs
[23:03:53] *** siddart has joined #angularjs
[23:03:53] *** digisky1 has joined #angularjs
[23:04:00] <areologist> how many of you ppl practice TDD with angular?
[23:04:04] <TheAceOfHearts> just read the source~
[23:04:04] <areologist> just curious
[23:04:04] *** storresi has joined #angularjs
[23:04:12] <reavengr2y> I don't, because TDD is dumb imo
[23:04:13] <kwladyka> ng-click"$scope.search_visible=true" and ng-snow="$scope.search_visible" ?
[23:04:14] <TheAceOfHearts> areologist: TDD is weird
[23:04:20] <kwladyka> it doesn't work
[23:04:27] <reavengr2y> well
[23:04:28] *** Una has quit IRC
[23:04:28] <Soop> Ugh still getting my ass handed to me by ui grid
[23:04:32] <TheAceOfHearts> I write tests while I write code, TDD tends to mean writing tests before writing code; I don't agree with that
[23:04:34] <reavengr2y> I don't think there is any ng-snow
[23:04:34] <kwladyka> i am learning <- mayby i am doing something wrong
[23:04:36] <reavengr2y> directive
[23:04:39] <jaydubya> themime: was that question about tutorials for me?
[23:04:51] <themime> jaydubya: no it was to kwladyka
[23:05:01] *** Una has joined #angularjs
[23:05:10] <themime> jaydubya: probably just mark it lesson learned at this point
[23:05:14] *** DigitallyBorn has quit IRC
[23:05:16] <jaydubya> k
[23:05:17] *** dsdeiz has joined #angularjs
[23:05:17] <reavengr2y> kwladyka: you have ng-snow
[23:05:21] <reavengr2y> there is no snow
[23:05:23] <themime> jaydubya: depends on the project and who/how its being sustained
[23:05:28] <esparkman-mbp> why the push for using services like bower or yeoman for angular apps
[23:05:36] <TheAceOfHearts> services?
[23:05:41] <TheAceOfHearts> yeoman is just a generator
[23:05:49] <TheAceOfHearts> bower is just a dumb downloader
[23:05:53] <jaydubya> themime: LOL, this is a rewrite (totally) of the operations system for the company
[23:05:53] <areologist> I think TDD, and specifically the red-green-refactor workflow, to be natural when working an the server: i.e., C#-based Web API, but I have to admit I've yet to find a flow with Angular
[23:05:55] <nickeddy> i personally hate bower
[23:05:58] <reavengr2y> well I only looked at what she just pasted in the channel
[23:06:01] <reavengr2y> so, np
[23:06:08] <esparkman-mbp> i would rather just pull things in to manually
[23:06:10] <kwladyka> reavengr2y? i have div ng-show="search_visible" class="row"> <- where do you see snow?
[23:06:21] <themime> kwladyka: you had a typo in irc, don't worry about it
[23:06:22] <TheAceOfHearts> areologist: I write tests while I code. I think writing tests first and code later is too difficult
[23:06:23] *** dcherman has joined #angularjs
[23:06:24] *** cakirke has quit IRC
[23:06:25] *** mary5030 has quit IRC
[23:06:26] *** tristanp has quit IRC
[23:06:27] <reavengr2y> 17:04 < kwladyka> ng-click"$scope.search_visible=true" and ng-snow="$scope.search_visible" ?
[23:06:30] *** tfennelly has quit IRC
[23:06:33] <TheAceOfHearts> writing tests after code is usually bad, though
[23:06:44] *** baweaver has quit IRC
[23:06:50] <themime> kwladyka: i think youre way overcomplicating angular, ill see if i can tweak it a little to give you an idea if someone cant get to it sooner
[23:06:52] <moafoca> nickeddy I dont watch any differences... Only that the fact that you do a concat of all css
[23:07:13] *** tristanp has joined #angularjs
[23:07:29] <nickeddy> .....
[23:07:29] <kwladyka> themime i watched official course about angularjs and read/watch some other in the internet. But the problem is most of this artciles or videos are about older version and not about using ui-router and all people telling something else, i have totally midf**ck what use when
[23:07:42] <nickeddy> except for mine works, and you use some wierd path thing instead of gulp.src
[23:07:43] <reavengr2y> find someone to blame
[23:07:48] <nickeddy> weird*
[23:07:51] <areologist> I think it would be nice if more angular tutorials and things were TDD based
[23:07:51] *** siddart has quit IRC
[23:07:57] <reavengr2y> you need a scapegoat, somebody to blame
[23:08:03] <themime> kwladyka: actually you don't even have a controller, you really just need to read the basic tutorial i think
[23:08:06] <reavengr2y> for failing to do well in STEM
[23:08:07] *** siddart has joined #angularjs
[23:08:13] *** pulpfree has quit IRC
[23:08:13] <jaydubya> areologist: I agree wholehearedly
[23:08:15] <areologist> recently read Adam Freeman's AngularJS book and unit testing gets a thin chapter at the very end.
[23:08:19] <ctanga> 1) learn basic angularjs 2) learn ui-router
[23:08:23] <themime> kwladyka: just read what you had right above my last comment
[23:08:32] <kwladyka> themime my purpose is juest show some code of block when somebody click "show".... but "show" is in ui-view="some-view" and "ng-show" is not in this ui-view, in any of ui-view
[23:08:32] <nickeddy> ctanga: best tutorial ever
[23:08:35] <themime> kwladyka: yea what ctanga said. don't do any routing for your first project
[23:08:58] *** dcherman2 has quit IRC
[23:09:06] <kwladyka> ctanga i am doing this
[23:09:10] <jaydubya> jayne: I won't write a single line of code in Laravel that isn't TDD but yet I don't test at all in Angular because nothing I've used to learn it uses tests but EVERYONE talks about testing in Angular
[23:09:13] <areologist> jaydubya: *fistbump*
[23:09:26] <moafoca> You give a array in src...
[23:09:27] <reavengr2y> protractor
[23:09:56] <reavengr2y> there are tutorials on youtube
[23:09:59] <reavengr2y> that will get you going
[23:10:01] <themime> kwladyka: focus on controllers, $scope, and twoway data binding
[23:10:27] <areologist> Exactly how I feel about it, jaydubya. I think it's a big part of why I struggle to stick with TDD in angular
[23:10:51] *** nairys has quit IRC
[23:10:53] <ctanga> we test the crap out of ui-router
[23:11:07] <ctanga> it’s different though when you’re testing framework code with a tightly defined api
[23:11:09] *** nairys has joined #angularjs
[23:11:09] *** tschundeee has joined #angularjs
[23:11:10] *** AtomicCookie has joined #angularjs
[23:11:21] <kwladyka> i read all that things and watched video and read articles but after all that things it mess my mind how to write code... to many things about angular are out of date and too many options for one thing
[23:11:29] <ctanga> I should say “we test the crap out of ui-router and it still breaks” hehe
[23:11:33] <jaydubya> ctanga: then why don't YOU write a tutorial for Angular ... it would be AWESOME because it would also include ui-router
[23:11:42] <areologist> I've done non-angular JS projects with TDD/BDD, and other languages, so it's an angular specific issue for me.
[23:11:49] <ctanga> jaydubya: I’m too busy asking people to put their bug reports in plunkrs
[23:11:56] <jaydubya> lol
[23:11:58] <kwladyka> so i am totally confuse now
[23:11:59] *** DigitallyBorn has joined #angularjs
[23:12:17] *** dannyc has joined #angularjs
[23:12:18] <areologist> lol @ ctanga
[23:12:21] <jaydubya> ctanga: you have that many bug reports?
[23:12:25] <kwladyka> even clojure is easier for me then learning angularjs from all this docs :)
[23:12:35] <ctanga> jaydubya: yes
[23:12:50] <reavengr2y> kill everyone
[23:12:59] <ctanga> most people are asking vague questions, or “how can I do this” questions
[23:13:01] <reavengr2y> crush them beneath the heel of your boot
[23:13:04] *** Left_Turn has joined #angularjs
[23:13:07] *** PGTips has quit IRC
[23:13:14] *** tristanp has quit IRC
[23:13:14] *** arcanin has joined #angularjs
[23:13:18] <jaydubya> ctanga: I am surprised ... only issues I have ever had with ui-router were self-inflicted
[23:13:30] <ctanga> jaydubya: oh there’s plenty of problems with ui-router
[23:13:36] <ctanga> real and perceived both
[23:13:52] *** dacuca has quit IRC
[23:13:54] *** Sky[x] has quit IRC
[23:13:57] <ctanga> i hope 0.2.13 is a solid release
[23:14:00] *** asteriskATmarmuD has quit IRC
[23:14:08] <jaydubya> ctanga: must be at a level higher than I am capable ... I see ui-router as a mac -- it just works
[23:14:14] *** Silne30_ has joined #angularjs
[23:14:15] *** cohitre has quit IRC
[23:14:26] <reavengr2y> mac is garbage
[23:14:43] <ctanga> oh great, now you did it
[23:14:46] <jaydubya> ctanga: you saw my routes earlier ... I have more routes than Southwest airlines
[23:14:47] *** Una has quit IRC
[23:14:52] *** Silne30__ has joined #angularjs
[23:14:58] <areologist> okay, complex directives where you have thinks like compile functions or link functions that do DOM-related stuff.. Class with behavior = unit test; but DOM crap is confounding; etc.
[23:14:59] <ctanga> jaydubya: yes. and very flat state tree
[23:15:09] <themime> kwladyka: one sec im tweaking your demo
[23:15:10] <ctanga> my state trees tend to be deeply nested
[23:15:16] <areologist> My attitude has been pragmatic: do unit testing without going crazy with it; then rely on the e2e.
[23:15:26] *** Una has joined #angularjs
[23:15:37] <jaydubya> ctanga: what exactly do you mean by a state tree?
[23:15:45] <ctanga> jaydubya: I will show you
[23:15:48] *** tschundeee has quit IRC
[23:15:53] <areologist> But I was at an Angular thing at Google a while back and asked about it and two guys said "no, you should learn how to unit test complex directives..."
[23:15:56] *** ctanga has left #angularjs
[23:15:59] <jaydubya> ctanga: LOL, should I be frightened?
[23:16:00] *** ctanga has joined #angularjs
[23:16:02] *** nairys has quit IRC
[23:16:04] *** Silne30 has quit IRC
[23:16:12] *** Alina-malina has quit IRC
[23:16:19] *** nairys has joined #angularjs
[23:16:26] <areologist> then showed me some code for what they were doing and it was hairy and f*ck
[23:16:38] *** DrMabuse has joined #angularjs
[23:16:39] <areologist> type correction: hairy as f**k
[23:17:02] <ctanga> jaydubya: nested states make a state tree
[23:17:06] *** dreambox has quit IRC
[23:17:14] <ctanga> jaydubya: your states are flat, like pancake
[23:17:23] *** dannyc has quit IRC
[23:17:36] <burzum> <input ng-show="!loggedIn"...> any idea why this would not show the input when loggedIn is false?
[23:17:40] <jaydubya> ctanga: is that just being naive or am I stupid?
[23:17:50] <ctanga> jaydubya: it is related to your business requirements
[23:17:53] *** arcanin has quit IRC
[23:18:01] <ctanga> jaydubya: the stuff I build tends to be “drill-down” style
[23:18:08] *** JmZ is now known as JmZ_
[23:18:09] <areologist> makes me wonder if directives will be a lot different in 2.0 because now seems messy--but it could be that I just don't grok things enough
[23:18:09] <jaydubya> ctanga: Oh, good ... somethig I can blame it on
[23:18:11] <ctanga> which is easy to build using nested states
[23:18:23] *** tfennell_ has quit IRC
[23:18:26] <jaydubya> ctanga: yeah, I'm just really building a front end for a database
[23:18:34] <ctanga> crud?
[23:18:45] *** dhcar is now known as dhcar_AFK
[23:18:46] <TheAceOfHearts> just use Rails~
[23:18:56] *** BillCriswell has quit IRC
[23:18:57] *** Silne30_ has quit IRC
[23:18:57] <jaydubya> ctanga: well, I usually call it shit but crud works too
[23:18:57] <ctanga> jaydubya: we’re all just building front-ends for databases
[23:19:03] *** tfennelly has joined #angularjs
[23:19:27] <ctanga> that’s what they pay programmers to do
[23:19:52] <ctanga> there’s a cat on my back.
[23:20:10] *** Oddman has joined #angularjs
[23:20:24] <jaydubya> ctanga: I guess what I meant to type is I am just shoving stuff into a database and pulling stuff out of a database so the structure is flat
[23:20:41] *** Oddman has quit IRC
[23:20:43] *** Geertje123_ has quit IRC
[23:20:44] <areologist> skinning databases. #thuglyfe
[23:20:52] *** baweaver has joined #angularjs
[23:21:00] *** DrMabuse has quit IRC
[23:21:02] <jaydubya> most of my business logic ends up in the queries because I have major problems parsing JSON when it is nested
[23:21:04] *** Oddman has joined #angularjs
[23:21:12] *** dcherman has quit IRC
[23:21:25] *** Geertje123_ has joined #angularjs
[23:21:33] <nickeddy> jaydubya: restangular + response transformers yay
[23:21:38] <ctanga> we’re just reinventing MS Access over and over again ;)
[23:21:50] <themime> lolol
[23:21:52] <nickeddy> err responseExtractors *
[23:21:52] <areologist> exactly what I was thinking, ctanga.
[23:22:08] <jaydubya> nickeddy: I tried Restangular ... I wasted three weeks on that before I went back to $http
[23:22:15] <nickeddy> lol wat
[23:22:17] <themime> except i think we're at a point we can do it faster and more efficienctly with waaaaaaaaaaay more flexiblity
[23:22:22] <themime> efficienctly*
[23:22:22] <nickeddy> restangular is my jam
[23:22:24] <themime> ug
[23:22:26] *** kirkbushell has joined #angularjs
[23:22:28] <areologist> have a relative who was in IT decades ago who basically thinks what I do is the same as his former MS Access exploits.
[23:22:39] *** kirfu has joined #angularjs
[23:22:43] <areologist> but with web pages!
[23:22:43] <jaydubya> nickeddy: it was SOOOOOOOOOOOO over my head
[23:22:44] <ctanga> yep. basically is, for lots of us.
[23:22:59] <kwladyka> themime hmm so should i use factory() in my case? Is it the best practice for my purpose?
[23:23:09] <kwladyka> this is way i undrestand from course... ?
[23:23:10] *** dmack has quit IRC
[23:23:13] <ctanga> we get paid to put MS Access on a cell phone screen
[23:23:23] <themime> kwladyka: to do what
[23:23:45] <burzum> <input ng-if="!loggedIn"...> any idea why this would not show the input when loggedIn is false? no matter what i try with or without {{}} its not working. If i do a {{loggedIn | json}} It outputs "true" or "false" but the damn ng-if doesnt like it.
[23:23:46] <jaydubya> and nickeddyI don't even know what a response transformer is although I am trying to Google it
[23:24:00] *** tfennelly has quit IRC
[23:24:18] <themime> burzum: could be scope related because of primitive type being on the scope
[23:24:42] <ctanga> restangular is great
[23:24:45] <themime> doesn't seem super likely though. but still, don't put prim types on scope
[23:24:47] <ctanga> if you have a rest api to hit
[23:24:55] *** Fuzzy has joined #angularjs
[23:24:57] <burzum> how can i debug that themime? I'm passing the value into my directive and use it inside the template.
[23:25:04] <kwladyka> themime: <div ui-view="some-view><button ng-click="search_visible=true" ng-init="search_visible=false">SHOW</button></div> <div ng-show="search_visible">show me if somebody click SHOW</div>
[23:25:17] *** Fuzzier has quit IRC
[23:25:19] *** JERE has joined #angularjs
[23:25:26] *** kirkbushell is now known as Oddman
[23:25:26] <themime> kwladyka: did you look at my plunker i changed for you
[23:25:26] <ctanga> BTW, I’m really digging lorenzofox3’s smart-table
[23:25:28] <kwladyka> my problem is the ng-show is outside the ui-view
[23:25:43] <kwladyka> themime oh i didn't see your message
[23:25:45] <ctanga> so much cleaner than ngTable and table-based unlike ng-grid
[23:25:57] <areologist> restangular.. never used it. page says:"Instead of doing the "magic" filling of objects like $resource, it uses promises"
[23:26:00] <themime> kwladyka: i fixed it a little
[23:26:07] *** evotuned has quit IRC
[23:26:10] <themime> lol slutz
[23:26:21] <areologist> so the promise gives you just the raw data, or what?
[23:26:30] *** Chubbs1 has joined #angularjs
[23:26:53] <areologist> I kind of like magic filling of objects
[23:27:04] <ctanga> no wonder you hate ui-router
[23:27:08] *** Chubbs has quit IRC
[23:27:18] <areologist> I don't hate ui-router
[23:27:25] <nickeddy> ui-router is love. ui-router is life
[23:27:30] *** prbc has quit IRC
[23:27:33] *** kirfu has quit IRC
[23:27:38] <jaydubya> nickeddy: thanks for the link but I didn't understand very much of that
[23:27:49] *** bmac has quit IRC
[23:27:55] <nickeddy> jaydubya: essentially you can transform the response json in to whatever you want automatically
[23:28:03] <kwladyka> themime oh so it is necessary and recommended to use controller in that case? thank you for show me the way
[23:28:09] *** Oddman has quit IRC
[23:28:23] *** caitp has quit IRC
[23:28:42] *** jlmitch5dev has joined #angularjs
[23:28:46] *** conner_ has quit IRC
[23:29:12] *** prbc has joined #angularjs
[23:29:14] <nickeddy> jaydubya: what were you struggling with with restangular?
[23:29:33] *** grindmodeon has quit IRC
[23:29:42] <areologist> hmm. restangular looks dope. etag out of the box is compelling
[23:29:46] *** kirkbushell has joined #angularjs
[23:30:06] <areologist> just thinking about how using it would impact my current architecture. lots of refactoring.
[23:30:11] *** kirkbushell is now known as Oddman
[23:30:30] *** shinnya has quit IRC
[23:30:57] <jaydubya> nickeddy: since I can't figure out laDash, I have A LOT of "utility" routes in my api like /crops/corn/total_acres which returns the total acres of corn in the loan ... I couldn't figure out how to use "unnatural" routes in Restangular
[23:31:00] *** jimmyy has joined #angularjs
[23:31:31] <nickeddy> well that's an issue with your RESTful api not restangular
[23:31:41] <nickeddy> that's the REST in restangular :)
[23:31:50] *** cakirke has joined #angularjs
[23:31:52] <nickeddy> though doing stuff like that shouldn't be too bad
[23:31:55] *** dcherman has joined #angularjs
[23:31:59] *** jimmyy has joined #angularjs
[23:32:00] *** grindmodeon has joined #angularjs
[23:32:06] *** someyounguy has quit IRC
[23:32:12] *** jimmyy has quit IRC
[23:32:22] <nickeddy> Restangular.all('crops').get('corn').get('total_acres') should form the url > /crops/corn/total_acres
[23:32:35] <jaydubya> nickeddy: You misunderstood my earlier comment ... I didn't say I didn't like Restangular, I said I wasn't able to get it to work for me ... I watched a few videos on it and was VERY impressed
[23:32:47] <nickeddy> ah yeah
[23:32:52] *** jagga has quit IRC
[23:32:57] *** jimmyy has joined #angularjs
[23:33:09] <jaydubya> nickeddy: yeah, but $http.get('crops/corn/total_acres) does too
[23:33:11] <nickeddy> i imagine if your API wasn't formed towards it it would be difficult to integrate
[23:33:12] <davek> Restangular is pretty baller, I must say.
[23:33:14] *** recidive has quit IRC
[23:33:20] <themime> kwladyka: required. also noticed i removed all the ui-views, you aren't using them at all and overcomplicating things too early on
[23:33:27] *** jimmyy has quit IRC
[23:33:40] *** dannyc has joined #angularjs
[23:33:40] *** ngbot has joined #angularjs
[23:33:40] <ngbot> angular.js/master 158241e Brian Ford: chore(scripts): publish 1.2.x releases to npm with correct tag
[23:33:40] *** ngbot has left #angularjs
[23:33:44] <davek> If you can't get Restangular to integrate with your API without difficulty it probably means you have not implemented RESTful principles effectively.
[23:33:51] <nickeddy> ^
[23:34:05] <davek> That was my problem for a while (and still is to a lesser degree).
[23:34:06] <jaydubya> i KNOW that if I could process JSON inside Angular, I would definitely use Restangular
[23:34:14] *** jimmyy has joined #angularjs
[23:34:17] <davek> You can.
[23:34:18] *** MrBaboon has joined #angularjs
[23:34:22] <kwladyka> themime i am using, just cuted code which wasn't necessary for this problem
[23:34:26] *** quantax- has quit IRC
[23:34:42] <areologist> from docs: "There're some times where you want to use Restangular but you don't want to expose Restangular object anywhere." Ya think?
[23:34:45] <davek> Angular by default has interceptors and also Restangular provides a way to implement resource-specific or API-wide interceptors.
[23:34:50] <jaydubya> davek: I will be the first to admit my API is not "pure REST" because I am relying on SQL to do most of my business logic
[23:34:51] *** ngbot has joined #angularjs
[23:34:51] <ngbot> angular.js/v1.2.x 17d8a52 Brian Ford: chore(scripts): publish 1.2.x releases to npm with correct tag
[23:34:51] *** ngbot has left #angularjs
[23:34:56] <themime> kwladyka: most of the time you never need emit or ng-init
[23:35:08] <moafoca> Error: Cannot find module 'clone-stats' in gulp :((
[23:35:12] <kwladyka> themime ok will remember it
[23:35:15] *** shinnya has joined #angularjs
[23:35:22] *** ngbot has joined #angularjs
[23:35:22] <ngbot> angular.js/master 1c68d00 Lucas Galfaso: docs(ngAnimate): Fix typo...
[23:35:23] *** ngbot has left #angularjs
[23:35:32] <davek> areologist, wha? That is in the minority of cases.
[23:35:46] <davek> Usually you'll bind a "user" object lets say, and at some point want access to that user's posts.
[23:35:50] *** eBureau has joined #angularjs
[23:35:58] <davek> So you do user.getList('posts') etc.
[23:35:58] <themime> kwladyka: i have to go now though good luck! when in doubt go look at the basic tutorials and look at their code. they have LIVE demos you should be playing with, its better than me half assing a plunker for you
[23:36:26] *** merobertsjr__ has joined #angularjs
[23:36:31] <areologist> I'm getting scared of this library
[23:36:42] *** youngroger has joined #angularjs
[23:36:43] *** Pluff has quit IRC
[23:37:16] *** MistahKurtz has quit IRC
[23:37:28] *** akrikos has quit IRC
[23:37:30] <nickeddy> jaydubya: yeah $http seems like it's better for your use case
[23:38:01] <jaydubya> davek: yes, but when the dataset is nested and not named and I need subtotals and totals, those objects break down
[23:38:07] *** walden is now known as walden|afk
[23:38:18] *** dannyc has quit IRC
[23:38:26] *** greengriminal has joined #angularjs
[23:39:11] *** zz_night-owl is now known as night-owl
[23:39:26] *** benschwarz has joined #angularjs
[23:39:32] <davek> jaydubya, wut? How is it nested and not named?
[23:39:39] <davek> Subtotals and totals are an attribute not a resource.
[23:39:53] *** merobertsjr_ has quit IRC
[23:40:01] <davek> Though like nickeddy says if you're not RESTful don't use Restangular.
[23:40:22] *** Fishy has quit IRC
[23:40:39] *** Limix has joined #angularjs
[23:40:59] *** baweaver has quit IRC
[23:41:22] *** Limix has quit IRC
[23:41:24] <kwladyka> themime hmm your fix still have one issue, you didt all body tag as AppController. In my case i don't want affect all <body> tag. Just the place where i set the value and show the block
[23:41:47] <kwladyka> and i am backing to the main problem again :)
[23:42:14] <kwladyka> themime bye bye and thx again
[23:42:26] *** boxmein has quit IRC
[23:42:28] <Marble68> Q: when a template exists - does it fire an event I can hook? I’m using angular-local-storage and I need to call unbind
[23:42:41] *** tplaner has quit IRC
[23:42:59] *** MistahKurtz has joined #angularjs
[23:43:01] *** ciwolsey has joined #angularjs
[23:43:34] *** dnakov has quit IRC
[23:43:54] *** jiskiras has quit IRC
[23:43:57] *** msheiny has quit IRC
[23:44:11] *** btc_panhandler has quit IRC
[23:44:14] *** fairuz has quit IRC
[23:44:23] *** josh-k has quit IRC
[23:44:33] *** dhcar_AFK is now known as dhcar
[23:44:44] *** MistahKurtz has quit IRC
[23:44:50] *** fairuz has joined #angularjs
[23:44:53] *** dannyid has quit IRC
[23:45:54] *** joshmu has joined #angularjs
[23:45:58] <jaydubya> davek: you can see things like fuel_arm_acre is in each object but the objects don't have names, so I can do obj[0].fuel_arm_acre + obj[1].fuel_arm_acre etc to get the subtotal
[23:45:58] *** cuebix-wk has quit IRC
[23:46:01] *** MistahKurtz has joined #angularjs
[23:46:11] <jaydubya> can't^
[23:46:17] *** prbc has quit IRC
[23:46:26] *** mven has quit IRC
[23:46:36] *** phuh has joined #angularjs
[23:47:07] *** jMyles has joined #angularjs
[23:47:08] *** mccarrontr1ck has quit IRC
[23:47:22] *** dweave has left #angularjs
[23:47:31] *** alinou has joined #angularjs
[23:47:52] *** quantax- has joined #angularjs
[23:47:55] *** jeffisabelle has quit IRC
[23:47:56] *** jaydubya has quit IRC
[23:48:03] <davek> jaydubya. I don't understand why you can't?
[23:48:10] <davek> reduce on the object array.
[23:48:14] *** ededagic_ has quit IRC
[23:48:16] *** rho has quit IRC
[23:48:20] <davek> That's not related to your API as far as I can tell.
[23:48:23] *** jaydubya has joined #angularjs
[23:49:05] *** dacuca has joined #angularjs
[23:49:13] *** josh-k has joined #angularjs
[23:49:19] *** ozooner has joined #angularjs
[23:50:11] *** oncenull has joined #angularjs
[23:50:18] *** livingstn has quit IRC
[23:50:18] *** seme has quit IRC
[23:51:39] *** DigitallyBorn has quit IRC
[23:52:12] *** ngbot has joined #angularjs
[23:52:12] *** ngbot has left #angularjs
[23:52:19] *** Soop has quit IRC
[23:52:38] *** jaydubya has quit IRC
[23:52:38] *** juampy_backlater is now known as juampy
[23:52:50] *** chrisbirk has quit IRC
[23:53:00] *** danecando has joined #angularjs
[23:54:04] *** toad-br has joined #angularjs
[23:54:12] *** baweaver has joined #angularjs
[23:54:44] *** baweaver has quit IRC
[23:55:08] *** jaydubya has joined #angularjs
[23:55:11] *** jlmitch5dev has quit IRC
[23:55:19] *** baweaver has joined #angularjs
[23:55:32] *** jstroem has quit IRC
[23:55:34] *** CoolDuke has joined #angularjs
[23:55:55] *** t1mmen has quit IRC
[23:55:55] *** jstroem has joined #angularjs
[23:56:01] <areologist> restangular looks cool
[23:56:06] *** anapitupulu_ has quit IRC
[23:56:20] <jaydubya> how stupid is it that they turn off the wifi after 4:30 unless you request overtime
[23:56:21] *** samuel02 has quit IRC
[23:56:46] <areologist> now to get /ignored by more people: but restangular is 20 kb and requires lodash or underscore, lodash being ~46 kb.
[23:56:47] *** jmckind has quit IRC
[23:57:09] *** grindmodeon has quit IRC
[23:57:25] <jaydubya> areologist: I bet you like the Biggest Loser show on TV
[23:57:27] <jaydubya> LOL
[23:57:27] *** yelvert has quit IRC
[23:57:30] *** josh-k has quit IRC
[23:57:36] <areologist> just one consideration among many. one that I happen to care about.
[23:57:39] *** kuadrosx has joined #angularjs
[23:57:42] <moafoca> makes some sense?
[23:57:46] <areologist> I'm not familiar with that show.
[23:57:55] *** yelvert has joined #angularjs
[23:58:09] <jaydubya> areologist: fat people gtting skinny for prizes and profit
[23:58:39] *** mmealling has quit IRC
[23:58:48] <nickeddy> lol
[23:58:51] <areologist> haha, nice. yeah, there should be a show about devs competing for the smallest code base that implements a given set of requirements.
[23:59:02] *** Geertje123_ has quit IRC
[23:59:05] <areologist> I'd watch it
[23:59:10] <nickeddy> jaydubya: is he being a derp?
[23:59:14] *** patrick99e99 has joined #angularjs
[23:59:18] *** moritzs has joined #angularjs
[23:59:26] <nickeddy> SIZE IS THE ONLY QUANTIFYABLE CODE QUALITY METRIC
[23:59:28] <nickeddy> kill yourself.
[23:59:43] <areologist> straw man
[23:59:50] *** marc_v92 has joined #angularjs
[23:59:54] *** jaydubya_ has joined #angularjs
[23:59:55] *** jaydubya has quit IRC