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

Toggle Join/Part | bottom
[00:00:03] <themime> ha rejigging
[00:00:08] <roymiloh> robdubya: well, I understand, but why not using only es6?
[00:00:25] *** dsdeiz has joined #angularjs
[00:00:37] <roymiloh> I don't undertstand the idea of using systemjs while using es6...
[00:00:55] *** doginal has joined #angularjs
[00:00:57] *** ganeshmax has left #angularjs
[00:01:03] *** jdivock_ has quit IRC
[00:01:18] *** jonasliljestrand has quit IRC
[00:01:24] <bradmaxs> I have an $interval grabbing data from an API every few seconds. This needs to run continuously. I set the data on the scope each time the data runs. Is this going to cause memory leaks? http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info
[00:02:09] *** kcccccc has joined #angularjs
[00:02:28] *** ProLoser has joined #angularjs
[00:02:36] <roymiloh> just `import moduleName from ..` then include it on the main module.
[00:02:37] *** sabrehagen1 has joined #angularjs
[00:03:09] *** Superhard__ has quit IRC
[00:03:09] <robdubya> roymiloh http://plnkr.co/edit/D4LJMrVVjj1Y40APjqof?p=preview slightly less retarded
[00:03:34] *** dcherman2 has quit IRC
[00:03:50] <jaawerth> bradmaxs: it's going to cause a LOT of digests to trigger. question - does the view need to update every time the data is retrieved, or is it mostly logic data?
[00:04:11] *** dc has quit IRC
[00:04:17] *** lele has quit IRC
[00:04:27] <jaawerth> robdubya: Hey, question. You often comment about how you aren't big on CSS and crap. Out of curiosity, what's your most common UI library of choice?
[00:04:37] <kcccccc> Hi, this is my Controller: http://pastebin.com/YABDKMC7. When a corresponding view runs 'create()', two HTTP requests are sent to the server side: POST /articles 200, and GET /articles/548a22b9d75158123fddf1b5 200. But I couldn't find where the path '/articles' is specified for the first POST request. Any idea?
[00:04:39] <jaawerth> for production stuff, I mea
[00:04:40] <jaawerth> n
[00:04:55] *** sirkitree is now known as sirkitree|afk
[00:05:24] <roymiloh> robdubya: cool, thank you! so are you using systemjs just to include it in the html?
[00:05:28] *** atomi has joined #angularjs
[00:05:30] *** easywriter has joined #angularjs
[00:05:49] <erikruthven> hi whats the best way to add focus on load to a element in a directive?.. I have it working wrapped in setTimeout() , just wondering if there is a better way
[00:06:13] *** juanpablo_ has quit IRC
[00:06:17] <robdubya> SystemJS allows you to (either) load uncompiled es6 (like the plunk) and will include traceur etc. for production you'd use it's build tool to build it into a single scipt and load it the same way
[00:06:32] *** RobinBAwesome_ has quit IRC
[00:06:41] *** easywriter has quit IRC
[00:06:51] <kcccccc> It's the example from the mean.js generator http://meanjs.org/generator.html#crud-module
[00:07:21] *** g33k5z_ has joined #angularjs
[00:07:27] *** mven has quit IRC
[00:08:17] *** evilaliv3 has joined #angularjs
[00:08:23] *** vaerros has joined #angularjs
[00:08:30] <roymiloh> robdubya: I wondered how it worked as uncompiled es6 ;-)
[00:09:02] *** Solid1 is now known as Solid1_afk
[00:09:25] <robdubya> when its uncompiled it loads the whole traceur lib (which is 500kb+ iirc) - once its compiled you only need the traceur-runtime which is basically a polyfill, 35kb
[00:09:33] *** FunnyLookinHat has quit IRC
[00:09:59] <roymiloh> so do you use it explicitly only in the html where you include all that stuff?
[00:10:13] <kcccccc> Ok, seems the POST request is done by '$save()' within the $scope.create() function... But how the path '/articles' can be changed or specified?
[00:10:27] *** twelverobots has joined #angularjs
[00:10:34] <robdubya> you could throw the same thing in a load file roymiloh - its the file that "boots" your app (akin to main() in other languages)
[00:10:36] *** vaerros has left #angularjs
[00:11:15] <robdubya> roymiloh key point being you need to use SystemJS to load the "entry point" (in the plunk, that's main.js)
[00:11:28] *** platonic has quit IRC
[00:11:36] *** annlewis has quit IRC
[00:11:41] <robdubya> eventually SystemJS would be unnecessary nd you could just do <module src="main">
[00:11:47] *** sebhoss has joined #angularjs
[00:12:03] *** mdedetrich has joined #angularjs
[00:12:14] *** juanlas has quit IRC
[00:12:29] *** cboden has quit IRC
[00:12:35] *** cads has joined #angularjs
[00:12:45] *** Foxandxss has joined #angularjs
[00:12:50] *** Nurbs has quit IRC
[00:13:08] *** Rutix has quit IRC
[00:13:10] *** icfantv has quit IRC
[00:13:12] *** Linell has quit IRC
[00:13:52] *** Rutix has joined #angularjs
[00:13:52] *** Rutix has joined #angularjs
[00:14:19] <roymiloh> robdubya: well, very nice. I'll try it out. but I'm really afraid of using *now* ES6
[00:14:54] <roymiloh> how long do you use es6 for client?
[00:15:04] *** Nijikokun has joined #angularjs
[00:15:04] *** KushS has quit IRC
[00:16:19] *** jimvideo has joined #angularjs
[00:16:22] <roymiloh> i'm using it for nodejs (harmony flag) and it works fine. not sure about client and specifically angular
[00:16:40] *** sebhoss has quit IRC
[00:17:12] *** Txandy has quit IRC
[00:17:13] *** mylord has quit IRC
[00:17:26] *** RobinBAwesome has joined #angularjs
[00:17:34] *** lele has joined #angularjs
[00:17:42] *** soee has quit IRC
[00:17:54] *** mennea has quit IRC
[00:18:28] *** platonic has joined #angularjs
[00:18:30] *** mennea has joined #angularjs
[00:18:39] *** phuh has quit IRC
[00:18:55] <jaawerth> erikruthven: the directive's link function - by the time the link runs, a directive's element will be ready in the DOM, so you can do it then
[00:19:03] *** tfennelly has quit IRC
[00:19:03] *** phuh has joined #angularjs
[00:19:12] *** _ritchie_ has joined #angularjs
[00:19:24] *** dc has joined #angularjs
[00:19:26] <robdubya> roymiloh experimentally, for a while now
[00:19:41] *** twelverobots has quit IRC
[00:19:42] *** tfennelly has joined #angularjs
[00:19:55] <robdubya> i'm just ramping up rewriting our whole platform layer on es6 for angular/angular2/polymer/node
[00:19:55] <erikruthven> jaawerth: ya im in there now, doesnt do anything, even tried in post link
[00:20:03] *** evilaliv3 has quit IRC
[00:20:10] <robdubya> much to BahamutWC|Laptop's disgust / envy
[00:20:21] <BahamutWC> haha
[00:20:31] *** pknordic has joined #angularjs
[00:20:34] <BahamutWC> I wanna play with ES6 too :(
[00:20:53] <roymiloh> ah. so it's not for production right now ><
[00:21:24] <robdubya> IMO - a little bit of fiddling today is a good tradeoff for long term reusability
[00:21:35] <BahamutWC> robdubya: I'd be excited to use Dart instead of Node - perfect chance for us since our node server is stupid atm
[00:21:48] <robdubya> it just compiles back to es5, so you can tell your boss that :D
[00:21:54] *** lsiv568 has quit IRC
[00:22:09] *** disorder20 has quit IRC
[00:22:23] <robdubya> BahamutWC i'm down. that go/android thing is interesting but it looks like its still talking to a webview
[00:22:30] <BahamutWC> yep
[00:22:42] *** oste has quit IRC
[00:22:45] <BahamutWC> I just linked it since I thought it was an interesting development/relevant
[00:22:45] <jaawerth> erikruthven: yeah, I mean postLInk, and it should definitely work. element.find('input')[0].focus() (or just element.find('someSelector').focus() if you're using full jquery)
[00:23:09] <jaawerth> erikruthven: or replace 'input' with whatever kind of element it is
[00:23:30] <roymiloh> robdubya: I'm the boss ;-)
[00:23:49] *** jasonp has quit IRC
[00:23:56] *** mdedetri_ has joined #angularjs
[00:24:06] <robdubya> should see how well Dart2JS'ed code runs. last i looked it was pretty damn inefficient.
[00:24:17] <erikruthven> jaawerth: ya its a input, ill keep playing with it, the input is a couple children deep from element, so i doing $element[0].children[0].children[0].children[0].focus(); for now .... wondering if that has somethign to do with it
[00:24:17] <robdubya> server side, no big deal since we can run the dartVM
[00:24:30] *** da_wunder has quit IRC
[00:24:36] <robdubya> roymiloh then as long as you're not a tard, and can read directions, i'd be doing es6 :D
[00:24:42] <roymiloh> I knows it copile to es5, but maybe it's inefficient
[00:24:49] *** merobertsjr has quit IRC
[00:24:49] *** pknordic has quit IRC
[00:24:54] *** garbanzio has joined #angularjs
[00:25:20] *** mdedetri_ has quit IRC
[00:25:27] *** mglvl has joined #angularjs
[00:25:35] <Grokling> daptordarattler: Sorry - I had to step out for a bit. Epic fail really (got 1kg of hot sausage rolls to eat by myself now..)
[00:25:44] <robdubya> in our super-scientific testing (eg, we made a plunker) its slightly faster :D
[00:25:44] *** startupality has quit IRC
[00:25:57] <robdubya> mmm sauage rolls
[00:26:01] <robdubya> i miss sausage rolls
[00:26:01] *** mdedetri_ has joined #angularjs
[00:26:04] <robdubya> and mince pies
[00:26:06] *** mdedetrich has quit IRC
[00:26:16] <Grokling> daptordarattler: UniBot doesn't know much - it's just a lazy way of spitting out chunks of knowledge that are often asked for.
[00:26:39] *** bkuberek has joined #angularjs
[00:26:49] <bradmaxs> jaawerth: Thanks for responding. I was on Skype with the boss and couldn't get back until now. For the most part the view will only need to be updated if the info has changed.
[00:26:59] <Grokling> robdubya: You should come and visit. Sausage rolls and pies are staple food over here. And fish and chips.
[00:27:20] <roymiloh> robdubya: ah. you convinced me -.-
[00:27:36] *** shinnya has joined #angularjs
[00:28:21] *** mennea has quit IRC
[00:28:27] *** jpstone has quit IRC
[00:28:50] *** ChadStrat has quit IRC
[00:28:57] <jaawerth> bradmaxs: in that case, rather than using $interval which will call a digest cycle every single time, I would just use vanilla setInterval and have it check for changes - if there's a change, THEN call a $scope.$apply (or $rootScope.$apply if in a service)
[00:29:16] <jaawerth> bradmaxs: $rootScope.$apply(function() { commit the changes here});
[00:29:38] <bradmaxs> jaawerth: Ok. Thank you. I will have to wrap my head around that and then give it a go.
[00:29:46] <jaawerth> sure thing!
[00:29:57] *** doug64k has quit IRC
[00:30:07] *** macabre has quit IRC
[00:30:12] <jaawerth> erikruthven: http://plnkr.co/edit/EQlG4XRJMrLKELbV2pDg
[00:30:23] *** rho has quit IRC
[00:30:31] *** Una has quit IRC
[00:30:59] *** sonofdirt has quit IRC
[00:31:08] <jaawerth> erikruthven: that might have something to do with it, yeah - I'd either use .find or console.log the object you're retrieving to make sure you're getting the right
[00:31:09] <jaawerth> one*
[00:31:47] <erikruthven> jaawerth: ya was using console.log , maybe im off on dom, ill try with find() thanks
[00:31:48] *** goodenough has joined #angularjs
[00:32:11] <bradmaxs> jaawerth: How would I check for changes? $watch?
[00:32:21] *** stephen has quit IRC
[00:32:26] *** treeface has joined #angularjs
[00:32:50] <Grokling> Somebody take these sausage rolls away.. really, I've eaten enough now..
[00:33:21] *** Oddman_ has joined #angularjs
[00:33:22] *** ron1 has quit IRC
[00:33:25] *** ChadStrat has joined #angularjs
[00:33:35] <ProLoser> anyone here a node pro?
[00:33:43] <jaawerth> bradmaxs: well, $watch only fires when a digest runs, so that defeats the point of doing this to avoid unnecessary digests every interval. I would hold off on storing the new data wherever it's going so you can grab it from the request and do a comparison, either manually or (if you know you need to do a deep comparison) with angular.equals
[00:33:47] <jaawerth> brb in 10
[00:34:22] <bradmaxs> jaawerth: ty
[00:34:25] *** startupality has joined #angularjs
[00:34:41] *** sinclair has joined #angularjs
[00:34:43] *** apertoire has joined #angularjs
[00:34:54] <robdubya> ProLoser i aint passed the bar but i know a lil bit
[00:35:16] *** Oddman has quit IRC
[00:35:17] <themime> "is he a lawyer too?! *scrolls up*"
[00:35:24] *** thomasreggi has joined #angularjs
[00:35:27] *** Una has joined #angularjs
[00:35:28] *** opiates has joined #angularjs
[00:35:35] <themime> nope just thinks hes clever!
[00:35:41] *** plato has joined #angularjs
[00:35:46] *** ctanga has quit IRC
[00:35:55] *** Una has quit IRC
[00:35:59] *** plato1 has quit IRC
[00:36:49] *** MistahKurtz has joined #angularjs
[00:36:50] *** roadrunneratwast has quit IRC
[00:37:07] *** renlo has quit IRC
[00:37:57] *** garbanzio has quit IRC
[00:38:18] <kcccccc> Any idea about this?? My Controller: http://pastebin.com/YABDKMC7. When a corresponding view runs 'create()', two HTTP requests are sent to the server side: POST /articles 200, and GET /articles/548a22b9d75158123fddf1b5 200. But I couldn't find where the path '/articles' is specified for the first POST request. Any idea? (Seems that article.$save() generates the POST request??)
[00:39:05] *** TheDreamIsReal has quit IRC
[00:39:34] <ProLoser> robdubya: is there some way to have all console logs also spit out line #?
[00:40:07] *** woebtz has joined #angularjs
[00:40:13] *** renlo has joined #angularjs
[00:40:35] *** twelverobots has joined #angularjs
[00:40:39] *** bulkan has joined #angularjs
[00:40:42] <robdubya> dunno
[00:41:10] *** shackleford has quit IRC
[00:41:28] *** rho has joined #angularjs
[00:43:07] *** josh-k has joined #angularjs
[00:43:11] *** orangerobot has quit IRC
[00:43:18] <robdubya> console.trace should, but that might be chrome only
[00:43:25] *** nomi has joined #angularjs
[00:44:16] *** cannap has quit IRC
[00:44:54] *** bbankes has quit IRC
[00:45:07] *** MaxV has quit IRC
[00:45:11] *** nomi has left #angularjs
[00:45:15] *** danecando has quit IRC
[00:45:33] *** MaxV has joined #angularjs
[00:45:58] *** yaru22 has quit IRC
[00:46:22] *** mdcox has quit IRC
[00:46:51] *** mdcox has joined #angularjs
[00:46:55] *** g33k5z_ has quit IRC
[00:47:28] *** g33k5z has joined #angularjs
[00:47:35] *** _mtr has joined #angularjs
[00:47:46] <kcccccc> robdubya: So the POST request to '/articles' is also specified here: http://pastebin.com/kSSTJ9aH ??
[00:48:11] <kcccccc> ( My Controller: http://pastebin.com/YABDKMC7. When a corresponding view runs 'create()', two HTTP requests are sent to the server side: POST /articles 200, and GET /articles/548a22b9d75158123fddf1b5 200. But I couldn't find where the path '/articles' is specified for the first POST request. Any idea? (Seems that article.$save() generates the POST request??) )
[00:49:12] *** goodenough has quit IRC
[00:49:30] *** josh-k has quit IRC
[00:49:39] *** josh-k has joined #angularjs
[00:49:47] *** goodenough has joined #angularjs
[00:49:52] <subone> kcccccc: 'articles/:articleId' passed to $resource here? http://pastebin.com/kSSTJ9aH
[00:49:52] <jaawerth> ProLoser: you could overload console.log globally
[00:50:08] *** MaxV has quit IRC
[00:50:14] <jaawerth> kind of a janky practice but presumably you're only doing it for dev
[00:50:21] *** johnkevinmbasco has joined #angularjs
[00:50:23] *** josh-k__ has joined #angularjs
[00:50:28] *** jdivock_ has joined #angularjs
[00:50:32] *** phrozensilver has quit IRC
[00:51:22] <kcccccc> subone: I don't know.. This is just the view that runs 'create()' on form submit: http://pastebin.com/bcx183Lc
[00:51:34] *** mdcox has quit IRC
[00:51:53] *** jdummy has quit IRC
[00:52:00] <jaawerth> ProLoser: what I'd do is actually write a custom logging module - that way you could have various types of logging functions and change their behavior based on different modes (dev, debug, etc)
[00:52:01] *** g33k5z has quit IRC
[00:52:01] <kcccccc> But I don't get why a POST request on path '/articles' is received... This is never specified...
[00:52:05] <stormbytes> i keep coming across this 'data-' prefix to ng directives -- what is that?
[00:52:22] <robdubya> kcccccc yes, $resource does it
[00:52:23] <subone> kcccccc: Sorry, ignore my question mark. I'm saying you are setting the URI there, and in your create function you call article.$save, and since you don't have an _id specified it doesn't pass the :articleId part
[00:52:24] *** mdcox has joined #angularjs
[00:52:29] *** _mtr has quit IRC
[00:52:42] *** josh-k___ has joined #angularjs
[00:52:45] <kcccccc> Ahhh
[00:52:57] *** Sawbones_ has quit IRC
[00:53:12] <subone> stormbytes: the data- prefix may be used to make sure your html is valid against a validator
[00:53:26] <stormbytes> oh i see
[00:53:29] <stormbytes> thanks
[00:53:35] <stormbytes> so... data-ng-controller
[00:53:36] <stormbytes> that sort of thing
[00:53:40] <stormbytes> data-ng-include\
[00:53:51] <kcccccc> subone: Thank you very much!
[00:53:56] *** JeffBuhrt has quit IRC
[00:53:59] *** dcherman has joined #angularjs
[00:54:03] <subone> yeah angular just strips it when it is normalized
[00:54:08] <subone> kcccccc: np
[00:54:10] <jaawerth> stormbytes: some browsers freak out when they see custom attributes, but the data- prefix will make them ok with it. the data prefix is stripped by angular when the application actually runs
[00:54:12] <kcccccc> thanks!
[00:54:15] *** goodenough has quit IRC
[00:54:30] *** josh-k has quit IRC
[00:54:33] <stormbytes> ahh cleared up! thanks jaawerth
[00:54:36] *** JeffBuhrt has joined #angularjs
[00:55:06] *** platonic has quit IRC
[00:55:32] <subone> stormbytes: if you are shooting for browsers with that issue though, you may also need to make sure all of your directives are on attributes or classes, rather than element name
[00:55:51] *** josh-k__ has quit IRC
[00:55:54] *** startupality has quit IRC
[00:56:11] <subone> As the same browsers may barf on custom element names as well
[00:56:13] <johnkevinmbasco> goodmorning. can you guys share how you structure multiple apps in angularjs that share services, filters and directives?
[00:56:17] *** startupality has joined #angularjs
[00:56:25] <erikruthven> jaawerth: none of that worked, really no idea why pretty weird... guess ill just go with the setTimeout()
[00:56:29] <stormbytes> subone im not that far along (still prototyping) but thanks.. its a tip worth baring in mind
[00:56:37] *** prbc has quit IRC
[00:56:39] *** startupality has quit IRC
[00:56:40] <jaawerth> erikruthven: did the plunk I sent you work?
[00:56:47] <johnkevinmbasco> I'm currently planning to structure it like this - https://gist.github.com/basco-johnkevin/9725c0702762e41ad68b Would love to hear your feedback or how you guys do it.
[00:56:57] *** prbc has joined #angularjs
[00:57:04] *** kcccccc has left #angularjs
[00:57:14] <erikruthven> jaawerth: no same result, just did nothing
[00:57:16] *** blicero has quit IRC
[00:57:18] *** danecando has joined #angularjs
[00:57:19] *** lexek__ has quit IRC
[00:57:25] <erikruthven> jaawerth: pretty stumped
[00:57:35] *** davek has quit IRC
[00:57:42] <jaawerth> stormbytes, subone well, there's also using the "replace" property in the directives as an option, so it replaces the custom element with the directive's template. It's a deprecated feature but IIRC it's only being removed in 2.0
[00:57:51] <jaawerth> erikruthven: wait, so when you pull up my plunk, it doesn't focus the input?
[00:58:09] <erikruthven> jaawerth: can totally console.log it right befroe and it shows the right element, its just like the focus doesnt get called, no error nothing
[00:58:17] <subone> johnkevinmbasco: looks reasonable to me. We are doing something similar in our project
[00:58:32] *** mokush has quit IRC
[00:58:47] <johnkevinmbasco> subone: thanks for the feedback. glad to know that someone is doing the same.
[00:58:50] *** mundodojava has joined #angularjs
[00:58:54] <erikruthven> jaawerth: oh sorry, ya your plunk works great, just not in app
[00:59:13] <jaawerth> ahh, okay, so something in your app could be interfering. maybe something else stealing the focus, for example
[00:59:39] <erikruthven> jaawerth: ya i suppose so...
[01:00:03] <subone> johnkevinmbasco: Well ours is not quite the same, we have all our views in a specific directory, but I'd prefer it if it were more like what you've got where everything is contained together
[01:00:31] *** tschundeee has quit IRC
[01:00:40] <andrew9183> if $http returns a promise, how can I return a promise inside a .then() ?
[01:00:54] *** g33k5z_ has joined #angularjs
[01:01:04] <Grokling> andrew9183: 'return somethingPromisey()'
[01:01:05] <subone> andrew9183: use $q.defer() to create a new promise
[01:01:13] *** thomasreggi has quit IRC
[01:01:16] <andrew9183> thanks subone
[01:01:33] *** platonic has joined #angularjs
[01:01:43] <johnkevinmbasco> subone: thats also a good approach I think. since there are times where different modules also share views. But I think cross-referencing templates on other modules is not that bad I think. hmm
[01:01:50] <jaawerth> andrew9183: just return the value you want, and it will be wrapped in a promise for you. all promises return promises.
[01:01:58] <Grokling> andrew9183: $q.when is more betterer if you're making a promise out of something that isn't inherently promisey.
[01:02:03] <jaawerth> andrew9183: oh, subone beat me to it
[01:02:04] <jaawerth> lol
[01:02:06] <andrew9183> i tried returning the value, and it was undefined when it returned
[01:02:21] <zwischenzug> hello. i have a common use case for loading indicators attached to input buttons. this is the functionality i'm after: http://plnkr.co/edit/9WfscjEASorEQ8qGDRT1?p=preview was wondering if there is any approach which achieves similiar functionality without having to create a separate scoped variable for each button
[01:02:44] <Grokling> andrew9183: If the thing you're returning is already a promise, check that your promise chain isn't broken somewhere along the way.
[01:02:51] *** thomasreggi has joined #angularjs
[01:02:59] <subone> johnkevinmbasco: well it started out more of an issue with having phtml in the right directories for ZF2 and Apigility, but I am slowly trying to phase out php from these views
[01:03:05] <zwischenzug> i suppose i should use a directive, but i'd need to manage the events myself, and i'm worried about memory leaks
[01:03:08] <jaawerth> andrew9183: wait, what? so you had somethingWithPromise.then(function(val) { return val; }).then(function(val) { // val is undefined here }) ?
[01:03:17] <jaawerth> and it was undefined in that second .then?
[01:03:35] *** Superhard__ has joined #angularjs
[01:03:44] *** ianpirro has quit IRC
[01:03:59] *** knownasilya has quit IRC
[01:04:06] *** dcherman has quit IRC
[01:04:18] *** ChadStrat has quit IRC
[01:04:35] *** bbankes has joined #angularjs
[01:04:59] *** panzon has quit IRC
[01:05:00] <andrew9183> ah you guys are right, nevermind - i was doing data.info, but needed data.data.info so i renamed data to response and got it returned
[01:05:04] <andrew9183> thanks for the help
[01:05:24] <subone> heard you liked data...
[01:05:29] <jaawerth> zwischenzug: you could either have a parent directive that wraps all the other ones, and give it a controller to centrally handle the values - then use "require" in the child directives to get the controller and act accordingly - OR you could write a service and inject it in the directives in question, and keep the data in your service
[01:05:59] <daptordarattler> Grokling, regardless how can I search through Unibot's archive for stuff?
[01:06:00] *** sharkcat has joined #angularjs
[01:06:11] *** torartc has joined #angularjs
[01:06:12] <Grokling> daptordarattler: !help
[01:06:13] <UniBot1> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[01:06:13] <UniBot> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[01:06:21] *** CanyonMan has joined #angularjs
[01:06:53] *** Sadin has joined #angularjs
[01:07:05] <daptordarattler> !help
[01:07:05] <UniBot1> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[01:07:05] <UniBot> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[01:07:24] *** _ritchie_ has quit IRC
[01:07:37] *** Superhard__ has quit IRC
[01:08:27] <zwischenzug> jaawerth, both sound a bit more complicated than just using "button status" variables in my controller. which approach would you recommend?
[01:08:57] *** fairuz has quit IRC
[01:09:33] *** prbc has quit IRC
[01:09:45] <jaawerth> zwischenzug: well, I'd probably just use a directive and pass the status in using isolate scope - makes the directives easier to use. But I'd keep track of the logical statuses for whatever your action is using a service injected into the controller
[01:09:51] *** ctanga has joined #angularjs
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:57] *** Sadin has quit IRC
[01:11:07] *** mundodojava has quit IRC
[01:11:43] *** mzabriskie has joined #angularjs
[01:11:57] *** baweaver has joined #angularjs
[01:12:13] *** sharkcat has quit IRC
[01:12:28] *** baweaver has quit IRC
[01:12:53] *** baweaver has joined #angularjs
[01:13:23] <jaawerth> zwischenzug: honestly, though - data references get removed from a scope when that scope gets destroyed (like, say, their view is removed from the DOM), so you really shouldn't have to worry much about memory leaks in that scenario
[01:13:48] <zwischenzug> jaawerth, could i somehow pass a functionWhichReturnsPromise into the directive, and the directive manages the elements class based on the result of the promise?
[01:14:01] *** bayousoft has joined #angularjs
[01:14:19] <subone> zwischenzug: I think I missed something, what are you trying to accomplish?
[01:14:45] *** codeman has joined #angularjs
[01:14:52] *** phrozensilver has joined #angularjs
[01:14:53] <zwischenzug> subone, http://plnkr.co/edit/9WfscjEASorEQ8qGDRT1?p=preview but without having a "status" variable for each button
[01:15:38] *** matheuslc has quit IRC
[01:15:39] <subone> So, you want this variable just for the button? Not accessible outside the button directive?
[01:15:55] *** mdedetri_ has quit IRC
[01:16:14] <zwischenzug> subone, correct. the variable is only used to change the class of the button.
[01:16:54] *** jrajaratnam has joined #angularjs
[01:17:12] <subone> zwischenzug: sounds like a very simple directive
[01:17:37] *** mennea has joined #angularjs
[01:17:45] *** jrajaratnam has quit IRC
[01:17:48] <Grokling> Yech. the angular 'lets add an option to the select if the ng-model doesn't match an option we have already' breaks entirely unsatisfactorily on ipad.
[01:18:13] *** mennea has quit IRC
[01:18:25] <subone> zwischenzug: is test() supposed to be some arbitrary action which should return a promise?
[01:18:40] *** jtimon_ has quit IRC
[01:18:57] <zwischenzug> subone, yes
[01:19:01] *** AciD`` has quit IRC
[01:19:48] <subone> zwischenzug: so, write a directive "like" ng-click, which evals the expression passed to it
[01:21:07] *** phrozensilver has quit IRC
[01:21:17] *** phuh has quit IRC
[01:21:48] *** phuh has joined #angularjs
[01:21:56] *** charuru has joined #angularjs
[01:24:50] <subone> zwischenzug: https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$eval
[01:24:51] *** da_wunder has joined #angularjs
[01:25:09] *** Foxandxss has quit IRC
[01:25:41] *** conan_the_destro has quit IRC
[01:26:03] *** nc90 has quit IRC
[01:26:09] *** epantzar has joined #angularjs
[01:26:15] *** conan_the_destro has joined #angularjs
[01:26:47] *** mdedetrich has joined #angularjs
[01:27:33] *** epantzar has quit IRC
[01:27:33] *** prbc has joined #angularjs
[01:28:26] *** mdedetri_ has joined #angularjs
[01:28:28] *** mdedetrich has quit IRC
[01:28:32] *** KushS has joined #angularjs
[01:28:38] *** Silne30 has joined #angularjs
[01:28:41] *** kirfu has quit IRC
[01:28:43] *** kirfu1 has joined #angularjs
[01:30:02] *** caitp has quit IRC
[01:31:32] *** Simone\ has quit IRC
[01:31:39] *** Simone\ has joined #angularjs
[01:32:01] *** snapwich has quit IRC
[01:32:04] *** Silne30_ has quit IRC
[01:33:56] *** dsdeiz has quit IRC
[01:34:03] *** Superhard__ has joined #angularjs
[01:34:11] *** moogey has quit IRC
[01:34:14] *** dsdeiz has joined #angularjs
[01:34:23] *** dacuca has quit IRC
[01:35:46] *** plato has quit IRC
[01:36:13] *** th3fallen has joined #angularjs
[01:36:41] *** _mtr has joined #angularjs
[01:36:57] *** Silne30_ has joined #angularjs
[01:37:07] *** th3fallen has quit IRC
[01:38:17] *** Superhard__ has quit IRC
[01:38:43] *** D9 has joined #angularjs
[01:38:45] *** plato has joined #angularjs
[01:39:05] *** daptordarattler has quit IRC
[01:39:50] *** Sjeeke has quit IRC
[01:39:56] *** Silne30 has quit IRC
[01:40:04] *** t1mmen has joined #angularjs
[01:41:44] *** plato1 has joined #angularjs
[01:42:07] *** dc has quit IRC
[01:42:36] *** SargoDarya has joined #angularjs
[01:42:45] *** SargoDarya has joined #angularjs
[01:43:38] *** wolfman2000 has joined #angularjs
[01:43:46] *** k-dawg has joined #angularjs
[01:45:19] *** plato has quit IRC
[01:45:31] *** settinghead has quit IRC
[01:45:35] *** jstroem has quit IRC
[01:46:16] *** jstroem has joined #angularjs
[01:46:55] *** axsuul has quit IRC
[01:48:00] *** rchavik has joined #angularjs
[01:49:06] *** codeman has quit IRC
[01:49:13] <johnkevinmbasco> is it safe to use primitives when using controller as syntax? since its already dotted? example: MyController as my.... my.loading = true. When not using controller as syntax, its recommend to use something like vm = {} vm.loading = true
[01:49:29] *** bradmaxs has quit IRC
[01:49:48] *** SargoDarya has quit IRC
[01:50:42] *** SFeser has quit IRC
[01:50:54] *** jstroem has quit IRC
[01:51:14] *** ries has quit IRC
[01:51:17] *** Sontakey has joined #angularjs
[01:51:52] <subone> johnkevinmbasco: Not sure what you mean. Where is "my" defined?
[01:52:08] <subone> $scope.my = this?
[01:53:00] <johnkevinmbasco> subone: in the view, ng-controller="MyController as my". Just wanted to know if its already safe to use primitives when using controller as syntax in the view and in the controller.
[01:53:15] *** robbyt has quit IRC
[01:53:15] <johnkevinmbasco> since variables are already dotted: my.var1, my.var2
[01:53:29] *** jonatha__ has quit IRC
[01:53:31] <johnkevinmbasco> not $scope.var1, $scope.var2 when not using controller as syntax
[01:53:43] <jaawerth> zwischenzug: yeah, you can even have it work just like ng-click! got interested so I wrote up a short example of how this would work http://plnkr.co/edit/e9xJmE11WYDmVdTn3mER?p=preview
[01:53:56] <jaawerth> zwischenzug: you basically just use the isolate scope '&' property
[01:54:02] <subone> johnkevinmbasco: I've never used that syntax but I would assume that is fine since it is a scalar on an object
[01:54:08] *** jonathanpglick has joined #angularjs
[01:54:35] *** blicero has joined #angularjs
[01:54:39] <johnkevinmbasco> subone: thanks, I'll just try it on a plunk just to make sure. thanks again.
[01:55:13] *** axsuul has joined #angularjs
[01:55:33] *** rho has quit IRC
[01:55:40] *** axsuul has quit IRC
[01:55:45] *** sabrehagen2 has joined #angularjs
[01:56:14] *** axsuul has joined #angularjs
[01:56:51] *** antons has joined #angularjs
[01:57:49] *** zeezey has quit IRC
[01:57:50] *** zeezey has joined #angularjs
[01:58:01] <subone> johnkevinmbasco: "Since there is always a . in the bindings, you don't have to worry about prototypal inheritance masking primitives." https://docs.angularjs.org/api/ng/directive/ngController
[01:58:32] *** sabrehagen1 has quit IRC
[01:58:36] <johnkevinmbasco> subone: oh, thanks for the link. I also saw that its safe in another article though - https://egghead.io/lessons/angularjs-experimental-controller-as-syntax
[01:59:46] *** torartc has quit IRC
[01:59:57] *** cacts|works has quit IRC
[01:59:59] *** pulpfree has joined #angularjs
[02:00:29] *** sebhoss has joined #angularjs
[02:00:50] *** phuh has quit IRC
[02:01:18] *** phuh has joined #angularjs
[02:01:45] *** eBureau has quit IRC
[02:03:09] *** treeface has quit IRC
[02:03:22] *** ProLoser has quit IRC
[02:03:44] *** k-dawg has quit IRC
[02:03:52] <zwischenzug> jaawerth, subone thanks! i need to do a but more reading/experimenting to fully grok the scope stuff, but this is a huge help
[02:04:38] *** Sadin has joined #angularjs
[02:04:52] <subone> np
[02:04:57] *** sebhoss has quit IRC
[02:05:30] *** nya has quit IRC
[02:06:23] *** ctanga has quit IRC
[02:08:23] <CanyonMan> holy suffering shit are there really 800 people in this channel?
[02:08:32] <CanyonMan> or is my client just desparately confused?
[02:08:43] <subone> There's probably more being proxied in lol
[02:09:03] *** RobertMeta has quit IRC
[02:09:10] <subone> 799
[02:09:13] <CanyonMan> do NSA spies count? I know they don't show up on the list ...
[02:09:14] *** pknordic has joined #angularjs
[02:09:20] *** ome has joined #angularjs
[02:09:52] *** Crumb has quit IRC
[02:11:10] *** jchamberlain has quit IRC
[02:11:36] *** tfennelly has quit IRC
[02:11:37] *** sabrehagen2 has quit IRC
[02:12:09] *** dsdeiz has quit IRC
[02:12:13] *** t1mmen has quit IRC
[02:12:30] *** sabrehagen1 has joined #angularjs
[02:12:36] *** dc has joined #angularjs
[02:12:37] *** marr has quit IRC
[02:13:02] *** dsdeiz has joined #angularjs
[02:13:22] *** codeman has joined #angularjs
[02:13:41] *** pknordic has quit IRC
[02:13:52] *** patrick99e99 has quit IRC
[02:14:08] *** settinghead has joined #angularjs
[02:14:30] *** g33k5z_ has quit IRC
[02:14:41] *** {DV8} has joined #angularjs
[02:15:10] *** g33k5z has joined #angularjs
[02:16:34] *** settinghead has quit IRC
[02:16:46] *** settinghead has joined #angularjs
[02:17:34] *** k-dawg has joined #angularjs
[02:17:48] *** dc has quit IRC
[02:19:42] <jaawerth> CanyonMan: yeah a lot of people use a proxy/bouncer/ remote server with IRSSI or something
[02:19:46] *** g33k5z has quit IRC
[02:19:53] <jaawerth> I myself use ZNC, so I'm always logged in
[02:19:58] <sabrehagen1> hey guys, i'm having trouble debugging my web app. in chrome, the spinner spins indefinitely and my page doesn't load. however, in ie, the page loads immediately. how can i trace why chrome is still trying to load? http://i.imgur.com/oNtD75P.png
[02:20:11] *** gladely has joined #angularjs
[02:20:15] *** AimerPaddle has quit IRC
[02:20:52] <themime> sabrehagen1: extension in chrome?
[02:21:23] *** earthquake has joined #angularjs
[02:21:26] <themime> sabrehagen1: my app suddenly failed because batarang got a wild hair up its ass
[02:21:36] <themime> something to check
[02:21:46] *** fourq is now known as salesforce
[02:21:52] *** salesforce is now known as fourq
[02:22:03] <sabrehagen1> themime: thanks, will check now
[02:22:42] *** nya has joined #angularjs
[02:22:53] <sabrehagen1> themime: fuckin batarang...
[02:23:13] <sabrehagen1> unbelieveable
[02:23:24] <themime> srsly
[02:23:36] <sabrehagen1> i've been encountering this for days with seeminly no rhyme or reason as to when it occurs
[02:23:50] <sabrehagen1> you saved me man, thank you so fuckin much
[02:23:54] <themime> yea i was kinda lucky that it was actually the project at work
[02:24:02] <themime> and i was the only one having issues
[02:24:07] *** dhcar_AFK is now known as dhcar
[02:24:18] *** ron_frown has joined #angularjs
[02:24:20] <themime> np!
[02:24:32] <sabrehagen1> so much relief right now
[02:24:53] *** ctanga has joined #angularjs
[02:24:59] *** fairuz has joined #angularjs
[02:25:12] <themime> haha im glad
[02:26:08] *** roymiloh has quit IRC
[02:26:15] <jaawerth> yeah, the most recent release is bugged due to a broken library in it... someone should really add a message about that to the channel topic
[02:26:27] *** caitp has joined #angularjs
[02:26:42] *** dsdeiz has quit IRC
[02:26:48] <sabrehagen1> the old "it works on my machine" was said many times in the last few days to many a cringe
[02:27:06] *** opiates has quit IRC
[02:27:15] <subone> personally I thought batarang was crap. I just use the scope() function on elements :p
[02:27:38] *** lele has quit IRC
[02:27:52] *** codeman has quit IRC
[02:28:03] *** shampine has quit IRC
[02:28:07] <BahamutWC> batarang got fixed
[02:28:10] <jaawerth> sabrehagen1: a good troubleshooting technique in general is: if it doesn't work, try it in incognito mode, since incognito won't allow any extensions to run unless you've explicitly enabled them in incognito
[02:28:20] <jaawerth> BahamutWC: ah, good to know!
[02:28:27] <jaawerth> BahamutWC: is it any good now?
[02:28:32] *** dsdeiz has joined #angularjs
[02:28:34] <BahamutWC> same as always I guess
[02:28:38] <jaawerth> haha
[02:28:40] *** _ritchie_ has joined #angularjs
[02:28:59] <BahamutWC> I think btford just reverted his previous push heh
[02:29:08] <jaawerth> ah.
[02:29:13] *** MacWinner has joined #angularjs
[02:29:14] *** subone has quit IRC
[02:29:22] <jaawerth> so... previous push with the new 1.3 capabilities or pre-1.3 capabilities?
[02:29:33] <jaawerth> guess I"ll check
[02:29:36] *** rtpg has joined #angularjs
[02:29:46] <jaawerth> not that I really used it before the update. but I thought about it once or twice!
[02:30:23] *** maikowblue has joined #angularjs
[02:30:32] *** oste has joined #angularjs
[02:31:00] *** caitp has quit IRC
[02:31:29] *** mglvl has quit IRC
[02:31:50] *** jareddlc has quit IRC
[02:31:58] *** Sontakey has left #angularjs
[02:34:16] *** weeyum has quit IRC
[02:34:48] *** patrick99e99 has joined #angularjs
[02:34:49] *** prbc has quit IRC
[02:35:39] *** Zeioth has quit IRC
[02:37:11] *** crakrjak has joined #angularjs
[02:37:30] *** debunk has quit IRC
[02:37:41] *** ChadStrat has joined #angularjs
[02:39:36] *** ColKurtz has joined #angularjs
[02:39:56] *** MistahKurtz has quit IRC
[02:40:23] *** settingh_ has joined #angularjs
[02:40:59] *** crakrjak has quit IRC
[02:41:00] *** lele has joined #angularjs
[02:41:19] *** ioudas has quit IRC
[02:42:06] *** tfennelly has joined #angularjs
[02:42:14] *** settinghead has quit IRC
[02:42:31] *** settingh_ has quit IRC
[02:43:05] *** settinghead has joined #angularjs
[02:43:07] *** busticated has quit IRC
[02:43:19] *** jchamberlain has joined #angularjs
[02:44:15] <ColKurtz> So I have a big form full of custom directives (which are more or less form fields, with enhanced logic). This form can come pre-populated (like if you're editing data, for instance). We're refactoring and I'm trying to figure out an elegant way to asynchronously load the data into each form field
[02:44:35] *** Juanchito has quit IRC
[02:44:38] *** bayousoft has quit IRC
[02:45:53] <ColKurtz> previously, each directive had a watcher, which watched for an array passed to the directive with an = binding
[02:46:17] *** tfennelly has quit IRC
[02:46:40] *** cacts has joined #angularjs
[02:46:44] *** whitebook has joined #angularjs
[02:47:08] *** whunt has joined #angularjs
[02:47:19] *** AlexZ has quit IRC
[02:47:38] *** TyrfingMjolnir has quit IRC
[02:47:50] *** AlexZ has joined #angularjs
[02:48:11] *** bayousoft has joined #angularjs
[02:49:19] *** kirfu1 has quit IRC
[02:49:55] *** djvirgen has quit IRC
[02:50:50] *** WorkingClassDev has quit IRC
[02:51:12] *** fouadm has quit IRC
[02:52:00] *** glaksmono has joined #angularjs
[02:52:08] *** mdedetrich has joined #angularjs
[02:52:58] *** erikruthven has quit IRC
[02:53:10] *** mdedetri_ has quit IRC
[02:53:31] *** swist has quit IRC
[02:53:52] *** jchamberlain has quit IRC
[02:53:56] *** _AimerPaddle has joined #angularjs
[02:53:57] *** RobinBAwesome has quit IRC
[02:54:20] *** jchamberlain has joined #angularjs
[02:54:55] <johnkevinmbasco> which way is better when you want to access the parent controller? In the view: ng-controller="ApplicationCtrl as application". 1st option is: $scope.$parent.application and 2nd option is: $scope.application .
[02:55:06] *** k-dawg has quit IRC
[02:55:16] *** hllau has joined #angularjs
[02:55:31] <johnkevinmbasco> 2nd I guess?
[02:56:05] *** Guest22 has joined #angularjs
[02:56:50] *** hllau has quit IRC
[02:58:18] *** TheAceOfHearts has quit IRC
[02:58:49] *** patcito has quit IRC
[02:59:10] *** _ritchie_ has quit IRC
[02:59:10] *** mven has joined #angularjs
[02:59:10] *** isabella has joined #angularjs
[02:59:12] *** macabre has joined #angularjs
[02:59:26] *** crakrjak has joined #angularjs
[03:00:52] *** phuh has quit IRC
[03:01:11] *** scythe__ has joined #angularjs
[03:01:19] *** phuh has joined #angularjs
[03:01:45] *** crakrjak has quit IRC
[03:02:31] <themime> where do i put toastr config? config doesn't seem to work since can't have instances, but its what i see in the sample (cant remember what sample though)
[03:02:33] *** snapwich has joined #angularjs
[03:02:38] <themime> do factories have run blocks.. hm
[03:02:39] *** ninjaparade has quit IRC
[03:03:05] *** boxman has joined #angularjs
[03:03:08] *** gladely has quit IRC
[03:03:20] <boxman> he;lllo
[03:03:22] <boxman> hello
[03:03:30] <boxman> i have a doubt about angularjs
[03:03:31] *** isabella has quit IRC
[03:03:32] <boxman> ?
[03:03:48] <boxman> can anybody help me?
[03:04:01] *** Una has joined #angularjs
[03:04:10] *** gladely has joined #angularjs
[03:04:43] *** snapwich has quit IRC
[03:04:57] *** c00ljs has quit IRC
[03:05:10] <themime> boxman: best to just ask your question, someone could be answering your question right now
[03:05:15] *** ron_frown has quit IRC
[03:05:27] *** earthquake has quit IRC
[03:05:42] *** c00ljs has joined #angularjs
[03:06:09] <boxman> my Que is.. " is angluarjs suitalble for a complex web application that needs millions of connections to be handled at a time.? I am Building a website for my client where he has multiple products to sell and a chat forum with in the same web page, he expects to have around 2 million connections to the web page. Will anybody suggest angularjs for this?"
[03:06:17] *** Guest22 has quit IRC
[03:06:20] *** Nijikokun has quit IRC
[03:06:23] *** hllau has joined #angularjs
[03:06:25] *** dhcar is now known as dhcar_AFK
[03:06:32] *** AlSquire has quit IRC
[03:06:38] *** kakashiAL has joined #angularjs
[03:06:52] *** jchamberlain has quit IRC
[03:07:20] *** Nijikokun has joined #angularjs
[03:07:42] * themime nopes right back to his code
[03:08:00] *** Nijikokun has joined #angularjs
[03:08:04] *** fabiofb has joined #angularjs
[03:08:05] *** scythe__ has quit IRC
[03:08:08] *** Nijikokun has quit IRC
[03:08:20] *** ChadStrat has quit IRC
[03:08:22] <fairuz> boxman: that you should worry about your server
[03:08:24] <fairuz> not angular
[03:08:42] *** Nijikokun has joined #angularjs
[03:08:46] *** mzabriskie has quit IRC
[03:08:49] *** c00ljs has quit IRC
[03:08:59] *** ProLoser has joined #angularjs
[03:09:00] *** andrew9183 has quit IRC
[03:09:25] *** c00ljs has joined #angularjs
[03:09:26] <boxman> <Fairuz> .. thanks for responding...
[03:09:28] *** wallerdev has quit IRC
[03:09:49] *** kakashiA1 has quit IRC
[03:09:56] *** Iravan has joined #angularjs
[03:10:01] *** vonnegut has joined #angularjs
[03:10:14] *** ron_frown has joined #angularjs
[03:10:18] <boxman> Fairuz... will it be fine if i host it right here on google cloud... could it become really expensive?
[03:10:41] *** vonnegut has joined #angularjs
[03:10:49] *** nattonerd has joined #angularjs
[03:11:01] <fairuz> 2 million request to the server in what time? a day? a month? a year
[03:11:15] <boxman> a day
[03:11:30] *** chrisshattuck has quit IRC
[03:11:36] <fairuz> Then you need a good server
[03:11:45] <fairuz> cloud solutions seems like a good idea
[03:11:52] <fairuz> AWS or anything similar
[03:12:02] *** JERE has quit IRC
[03:12:03] *** jdivock_ has quit IRC
[03:12:17] *** josh-k___ has quit IRC
[03:12:29] <vonnegut> also, bandwidth is an issue. are these requests responding with media streams? or just small files?
[03:12:42] *** say2joe has quit IRC
[03:12:49] <themime> i dig aws a lot
[03:13:01] <snurfery> tis dope
[03:13:08] <snurfery> they're coming up with so much cool stuff
[03:13:11] <vonnegut> most dope.
[03:13:30] <themime> crazy easy to scale and duplicate
[03:13:37] <themime> and distribute
[03:13:44] <vonnegut> yep.
[03:13:48] <boxman> Fairuz: he says he will aslo hold some video of his youtube channel on the page to and also will be providing a live streaming of his twitter account, Do i have to worry about it ?
[03:13:55] *** edrocks has joined #angularjs
[03:13:59] <joshgreen> Question: How to limit filter in ng-repeat to only show certain object properties instead of all? http://plnkr.co/edit/NoGJfIYoCHpH9XfvmTjw?p=preview
[03:13:59] <vonnegut> yes.
[03:14:16] <vonnegut> if you really get 2 million requests for streams, make sure you do the math on your bandwidth
[03:14:32] <fairuz> boxman: no need to worry on youtube
[03:14:35] <vonnegut> so you dont get blindsided with some huge bill..
[03:14:40] <fairuz> it's streaming from youtube
[03:14:43] <fairuz> not from your server
[03:14:52] <vonnegut> if its youtube hosted, then noy your issue
[03:14:56] <vonnegut> *not
[03:15:24] *** g33k5z_ has joined #angularjs
[03:16:37] *** pulpfree has quit IRC
[03:17:03] <boxman> vouuegut.. thats for responding
[03:17:06] <joshgreen> Anyone knows how to limit the filter in ng-repeat?
[03:17:45] <themime> limitTo
[03:17:47] *** edzez has quit IRC
[03:18:06] *** emocakes has joined #angularjs
[03:18:07] *** emocakes has joined #angularjs
[03:18:21] *** jonathanpglick has quit IRC
[03:18:28] <joshgreen> themime: can limitTo be used to show certain object properties instead of all? Example: http://plnkr.co/edit/NoGJfIYoCHpH9XfvmTjw?p=preview
[03:19:01] *** tripu has joined #angularjs
[03:19:37] <boxman> Fairuz, vonnegut: My problem is that when i asked around, some of my friends suggested me angularjs and some of them suggsted nodejs, they said basically said the advantage of both, thats what confussed me.. i now find it difficult to make my mind to select which framework i should go with, could you give me a good suggestion?
[03:19:49] *** Una has quit IRC
[03:20:04] *** g33k5z_ has quit IRC
[03:20:10] <vonnegut> angularjs is your solution for the front end..
[03:20:13] *** richardbkr has quit IRC
[03:20:19] <fairuz> nodejs is server side
[03:20:20] <vonnegut> nodejs could be your solution for the rest api that angular talks to
[03:20:22] <fairuz> angular is clientside
[03:20:33] <vonnegut> but so could a lot of other things
[03:20:35] <emocakes> ^ nubs
[03:20:36] <fairuz> different technology eventhough both use javascript
[03:20:40] <joshgreen> themime: doesn't look like it from I can tell in the docs.
[03:20:42] *** nattonerd has quit IRC
[03:20:44] <vonnegut> if you know php, then you could use slim
[03:20:51] <vonnegut> if you kow java you could use jboss
[03:20:57] <vonnegut> or play
[03:21:04] <fairuz> If you know clojure, you can use clojure :p
[03:21:08] <vonnegut> server side can be anything
[03:21:13] <vonnegut> just rest api
[03:21:26] <vonnegut> then angular can use that api
[03:21:31] <vonnegut> nicely
[03:21:45] <vonnegut> and your app will be nicely loosely de-coupled
[03:21:52] <vonnegut> front end and back end
[03:21:59] *** torartc has joined #angularjs
[03:22:13] <vonnegut> also, angular is wonderful for its ability to write very clean javascript on the client
[03:22:15] <themime> joshgreen: https://docs.angularjs.org/api/ng/filter/limitTo
[03:22:19] <BahamutWC> Play is better on Scala
[03:22:21] <vonnegut> yes
[03:22:25] <vonnegut> play and scala rule
[03:22:35] <vonnegut> i love scala
[03:22:40] <vonnegut> but most havent heard of i tyet
[03:22:45] <vonnegut> ive found.
[03:22:50] *** Evanion has quit IRC
[03:22:51] *** Superhard__ has joined #angularjs
[03:23:03] <BahamutWC> kinda weird of people in our industry not to hear of Scala - it's being used by many of the tech giants
[03:23:08] <fairuz> I ditched scala for clojure
[03:23:17] <BahamutWC> Facebook, Twitter, LinkedIn at least
[03:23:28] <vonnegut> yeah.. some big shops are using it no doubt
[03:23:33] <joshgreen> Anyone knows how to make ng-repeat filter work on only some properties of the object and not all of them? Say, only filter vales in yes1 & yes2 in [{yes1:1},{yes2:12},{no:123}]. I have a plunker
[03:23:50] <themime> filter:{prop:3}
[03:23:58] <joshgreen> oh, sorry mime
[03:24:04] <joshgreen> didn't see your link at first =)
[03:24:11] *** Una has joined #angularjs
[03:24:13] <joshgreen> checking it out right now.
[03:24:34] <themime> well for checking properties its just the core docs of filter: https://docs.angularjs.org/api/ng/filter/filter
[03:25:03] *** TheAceOfHearts has joined #angularjs
[03:25:21] *** chrisshattuck has joined #angularjs
[03:25:43] *** caitp has joined #angularjs
[03:27:18] *** Superhard__ has quit IRC
[03:27:34] *** Oka has quit IRC
[03:27:35] *** dhcar_AFK is now known as dhcar
[03:27:49] <boxman> I just called my client and he wants more than what he told me, he asked me if to make the following stuff, : users wanted to make a account on the site, an admin account to view purchase details, as well as stream facebook and twitter feeds on the admin account, he aslo wanted me to help him post on social media from his admin app, iam gonna choose angularjs, will that be fine guys, he doesnt care about the server cost, atleast th
[03:28:15] <boxman> admin app means admin account
[03:28:34] *** emocakes has quit IRC
[03:28:46] <boxman> he is also looking forward to make mobile apps
[03:28:47] *** baweaver has quit IRC
[03:28:53] *** Sjeeke has joined #angularjs
[03:29:04] *** GreenJello has joined #angularjs
[03:29:09] <fairuz> I don't see any weird stuff in the requirements
[03:29:28] *** fedenunez has joined #angularjs
[03:30:12] *** axsuul has quit IRC
[03:30:19] *** fouadm has joined #angularjs
[03:30:20] <boxman> fairuz: iam gonna go with angularjs, i hope everything gonna be fine, what do u think?
[03:30:25] <boxman> angularjs or not?
[03:30:40] <jaawerth> wait, have you used angular before?
[03:30:48] *** uris77_ has joined #angularjs
[03:31:08] <fairuz> why not. You can use anything you feel comfortable with
[03:31:36] <fairuz> boxman: you are worried about angular, how about the backend. Figured that out yet?
[03:32:01] <boxman> jaawerth: i havent used anguarjs,
[03:32:01] *** settinghead has quit IRC
[03:32:10] *** thomasreggi has quit IRC
[03:32:12] <ColKurtz> So I have a big form, which has lots of directives in it, each of which wraps a form field with some special logic (e.g., like autocomplete searching, or populating a tree of options to choose from, etc.). I'm trying to figure out how to pre-load data for populating the form on edit
[03:32:12] <jaawerth> yeah - angular is great but if you haven't used it before, I wouldn't recommend you use it for a client-facing product for your first app
[03:32:19] <boxman> fairuz: for backend , how about nodejs?
[03:32:29] <ColKurtz> I'm thinking I could make the entire form a directive, with children directives that require the parent directive
[03:32:37] <fairuz> boxman: you are good with javascript?
[03:32:51] *** smoores has joined #angularjs
[03:32:54] <fairuz> or any server side language? php / java/ scala / clojure / nodejs
[03:32:54] <boxman> hell yeah, i love javascript
[03:32:56] <ColKurtz> and they call something like parent_directive.loadData(), which would return a promise
[03:33:08] <fairuz> so should be ok to use nodejs on the backend
[03:33:21] *** Sjeeke has quit IRC
[03:33:24] <boxman> ok, will do that
[03:33:32] <jaawerth> most people's first angular apps are full of stuff they regret later, because they were still learning the best way to use the platform, so again I wouldn't recommend you learn it on the fly while making a client-facing app
[03:34:33] *** vonnegut has quit IRC
[03:34:38] <boxman> jaawerth: thanks for the advice, but my client whats it on google cloud only, he doesnt like other cloud services,
[03:34:45] *** GreenJello has quit IRC
[03:34:50] <jaawerth> it doesn't matter what you use in the cloud
[03:34:55] <boxman> do they host nodejs on google cloud these days
[03:34:58] <jaawerth> angular is a client-side framework, it has nothing to do with the server
[03:35:00] <sweeper> THE CLOUDS
[03:35:08] *** SargoDarya has joined #angularjs
[03:35:09] <boxman> last time when i checked it was pretty difficult
[03:35:49] <fairuz> what is difficult?
[03:35:53] <boxman> i had to use AWS
[03:35:55] *** ron1_ has joined #angularjs
[03:36:01] <boxman> nodejs on google cloud
[03:36:17] <jaawerth> sweeper: https://github.com/hank/cloud-to-butt
[03:36:19] *** nya has quit IRC
[03:36:21] <boxman> anyway i ope things have changed by now
[03:36:23] *** jshultz has quit IRC
[03:36:43] <jaawerth> sweeper: you're welcome!
[03:36:45] *** nya has joined #angularjs
[03:37:30] *** freeman42 has quit IRC
[03:37:44] *** patrick99e99 has quit IRC
[03:37:51] *** kapil__ has joined #angularjs
[03:38:29] *** cornerma1 has joined #angularjs
[03:38:34] *** yaru22 has joined #angularjs
[03:39:55] *** ngeksyo2 has quit IRC
[03:40:01] *** ron1 has joined #angularjs
[03:40:06] *** SargoDarya has quit IRC
[03:40:45] *** nya has quit IRC
[03:40:52] *** Xorlev_ is now known as Xorlev
[03:41:02] *** Xorlev has quit IRC
[03:41:02] *** Xorlev has joined #angularjs
[03:41:03] *** Xorlev has joined #angularjs
[03:41:16] *** sirkitree|afk is now known as sirkitree|afk|af
[03:41:54] *** cornerman has quit IRC
[03:41:59] *** cornerma1 is now known as cornerman
[03:42:02] *** ron1_ has quit IRC
[03:42:05] *** ColKurtz has quit IRC
[03:42:43] *** joshgreen has quit IRC
[03:43:18] *** Silne30 has joined #angularjs
[03:43:20] *** mdel has quit IRC
[03:43:43] *** andrew9183 has joined #angularjs
[03:44:14] *** ctanga has quit IRC
[03:44:59] *** ron1_ has joined #angularjs
[03:45:05] *** bmac has joined #angularjs
[03:45:10] *** Sri_ has quit IRC
[03:45:17] *** cotko has quit IRC
[03:45:28] *** Silne30_ has quit IRC
[03:45:58] *** whitebook has quit IRC
[03:46:51] *** RedOrangeZ has quit IRC
[03:47:17] *** Jae has quit IRC
[03:47:19] *** s3shs has joined #angularjs
[03:47:20] *** vonnegut has joined #angularjs
[03:47:23] *** lemur has joined #angularjs
[03:47:34] *** diN0bot has joined #angularjs
[03:47:42] *** settinghead has joined #angularjs
[03:47:53] *** ron1 has quit IRC
[03:48:05] *** scythe__ has joined #angularjs
[03:48:50] <diN0bot> i 'm having trouble getting karma to break when debugger statements are in the code or spec files. is this the right channel to ask about this?
[03:49:00] <diN0bot> i'm using karma with angular.
[03:49:07] <diN0bot> and this preprocessor: karma-ng-html2js-preprocessor
[03:49:14] *** nya has joined #angularjs
[03:49:18] *** Rebirth has quit IRC
[03:49:19] <diN0bot> https://www.npmjs.com/package/karma-ng-html2js-preprocessor
[03:49:21] *** sebhoss has joined #angularjs
[03:49:34] *** bmac has quit IRC
[03:49:40] *** Rebirth has joined #angularjs
[03:49:58] *** nya has quit IRC
[03:50:05] *** nya has joined #angularjs
[03:50:42] *** D9 has quit IRC
[03:50:45] *** smoores has quit IRC
[03:52:10] *** jae has joined #angularjs
[03:52:31] *** billcd has joined #angularjs
[03:53:19] *** boxman has quit IRC
[03:53:54] *** sebhoss has quit IRC
[03:55:21] *** GreenJello has joined #angularjs
[03:55:32] *** whunt has quit IRC
[03:56:30] *** japhar81 has joined #angularjs
[03:56:40] *** rileylark has joined #angularjs
[03:57:19] *** ProLoser has quit IRC
[03:58:04] *** pknordic has joined #angularjs
[03:58:09] *** dhcar is now known as dhcar_AFK
[03:58:42] *** cads has quit IRC
[03:58:56] *** phuh has quit IRC
[03:59:57] *** mdedetrich has quit IRC
[04:00:11] *** Slowintrepid has joined #angularjs
[04:00:24] *** kkk1 has joined #angularjs
[04:00:40] *** rileylark has quit IRC
[04:02:07] *** bradmaxs has joined #angularjs
[04:02:24] *** pknordic has quit IRC
[04:04:32] *** ron1 has joined #angularjs
[04:04:40] *** ianpirro has joined #angularjs
[04:05:30] *** Slowintrepid has quit IRC
[04:05:45] *** kirfu has joined #angularjs
[04:06:04] *** ron1_ has quit IRC
[04:07:04] *** tfennelly has joined #angularjs
[04:07:20] *** nya has quit IRC
[04:08:04] *** Nijikokun has quit IRC
[04:08:11] *** nya has joined #angularjs
[04:08:24] *** jsheely|ltop has joined #angularjs
[04:08:25] *** nya has joined #angularjs
[04:08:27] *** davesidious_ has joined #angularjs
[04:08:37] *** torartc has quit IRC
[04:09:03] *** ianpirro has quit IRC
[04:09:17] *** stormbytes has quit IRC
[04:09:51] *** snurfery has quit IRC
[04:10:01] *** ron1_ has joined #angularjs
[04:10:47] *** billcd has quit IRC
[04:11:34] *** tfennelly has quit IRC
[04:11:56] *** Hackwar1 has joined #angularjs
[04:12:20] *** ron1 has quit IRC
[04:12:32] *** davesidious__ has quit IRC
[04:14:08] *** Hackwar has quit IRC
[04:14:35] *** diN0bot has quit IRC
[04:14:47] *** rtpg has quit IRC
[04:14:56] *** rtpg has joined #angularjs
[04:15:22] *** nickgs has joined #angularjs
[04:16:50] *** Shai-Tan has quit IRC
[04:18:09] *** _AimerPaddle has quit IRC
[04:18:19] *** emocakes has joined #angularjs
[04:18:20] *** emocakes has joined #angularjs
[04:19:16] *** chrisshattuck has quit IRC
[04:21:17] *** Left_Turn has quit IRC
[04:22:06] *** bmac has joined #angularjs
[04:22:19] *** whitebook has joined #angularjs
[04:22:31] *** KushS_ has joined #angularjs
[04:22:52] *** KushS has quit IRC
[04:23:34] *** Superhard__ has joined #angularjs
[04:23:45] *** _mtr has quit IRC
[04:23:56] *** vonnegut has quit IRC
[04:24:04] *** jsheely|ltop has quit IRC
[04:24:46] *** cacts has quit IRC
[04:24:47] *** joshontheweb has quit IRC
[04:24:58] *** Shai-Tan has joined #angularjs
[04:25:24] *** lw has quit IRC
[04:26:09] *** cacts has joined #angularjs
[04:26:54] *** prbc has joined #angularjs
[04:27:37] *** jMyles has quit IRC
[04:28:14] *** Superhard__ has quit IRC
[04:28:27] *** ProLoser has joined #angularjs
[04:30:46] *** chrisbirk has joined #angularjs
[04:31:05] *** rtpg has quit IRC
[04:31:59] *** ron1_ has quit IRC
[04:33:48] *** Zentdayn has quit IRC
[04:34:09] *** scythe__ has quit IRC
[04:34:49] *** scythe__ has joined #angularjs
[04:35:18] *** Sawbones has joined #angularjs
[04:35:19] *** Nijikokun has joined #angularjs
[04:35:35] *** joshontheweb has joined #angularjs
[04:35:43] *** scythe__ has quit IRC
[04:36:20] *** JeffBuhrt has quit IRC
[04:36:27] *** mven has quit IRC
[04:36:33] *** scythe__ has joined #angularjs
[04:36:59] *** Greed` has joined #angularjs
[04:37:30] *** Greed has quit IRC
[04:37:42] *** ron1_ has joined #angularjs
[04:40:10] *** ron1 has joined #angularjs
[04:40:29] *** axsuul has joined #angularjs
[04:40:31] *** Lewix has joined #angularjs
[04:40:33] *** blicero has quit IRC
[04:40:43] *** axsuul has quit IRC
[04:40:49] *** ianpirro has joined #angularjs
[04:41:19] *** axsuul has joined #angularjs
[04:41:43] <Lewix> whats the difference between $rootScope.$broadcast(arguments) and $rootScope.$broadcast.apply($rootScope, arguments);
[04:41:44] *** titanomachy has quit IRC
[04:41:56] *** whitebook has quit IRC
[04:42:17] *** thrasibule_ has quit IRC
[04:42:25] *** ron1_ has quit IRC
[04:43:57] *** nickgs has quit IRC
[04:44:43] <BahamutWC|Laptop> Lewix: where did you see this?
[04:44:52] *** billcd has joined #angularjs
[04:45:13] *** davek has joined #angularjs
[04:45:13] <BahamutWC|Laptop> oh, I know the difference
[04:45:33] <BahamutWC|Laptop> $rootScope.$broadcast(arguments) will broadcast arguments, the psuedo-array
[04:45:58] <BahamutWC|Laptop> $rootScope.$broadcast.apply($rootScope, arguments) is the same as $rootScope.$broadcast(arguments[0], arguments[1], … )
[04:46:14] *** DV8_ has joined #angularjs
[04:46:32] *** yaru22 has quit IRC
[04:48:24] *** mogaj has quit IRC
[04:49:00] *** richiebkr has joined #angularjs
[04:49:37] *** {DV8} has quit IRC
[04:49:40] *** bayousoft has quit IRC
[04:49:45] *** Oddman_ has quit IRC
[04:49:50] <Lewix> BahamutWC|Laptop: ah thanks...just javascript. :/
[04:49:57] *** dhcar_AFK is now known as dhcar
[04:50:01] <BahamutWC|Laptop> yup
[04:50:10] <BahamutWC|Laptop> apply and call are very useful
[04:50:14] *** JeffBuhrt has joined #angularjs
[04:50:14] *** DV8_ has quit IRC
[04:50:28] *** ianpirro has quit IRC
[04:50:32] *** whitebook has joined #angularjs
[04:52:03] *** dhcar is now known as dhcar_AFK
[04:52:33] *** prbc_ has joined #angularjs
[04:52:37] *** fabiofb has quit IRC
[04:53:22] *** denysonique has quit IRC
[04:53:22] *** billcd has left #angularjs
[04:53:29] *** renlo_ has joined #angularjs
[04:53:52] *** goodenough has joined #angularjs
[04:54:06] *** mdcox has quit IRC
[04:54:14] *** mdedetrich has joined #angularjs
[04:54:15] *** prbc has quit IRC
[04:54:24] *** kkk1 has quit IRC
[04:54:39] *** mdcox has joined #angularjs
[04:55:44] *** prbc has joined #angularjs
[04:57:13] *** prbc_ has quit IRC
[04:57:25] *** pootpoot has quit IRC
[04:57:32] *** Alax has quit IRC
[04:57:44] *** uris77_ has quit IRC
[04:58:43] *** jordandotdev has joined #angularjs
[04:59:23] *** kentcdodds has quit IRC
[05:00:23] *** denysonique has joined #angularjs
[05:00:24] *** denysonique has joined #angularjs
[05:00:30] *** mven has joined #angularjs
[05:00:33] *** ycodr has quit IRC
[05:00:53] *** frkout_ has joined #angularjs
[05:01:09] *** ron1_ has joined #angularjs
[05:01:17] *** yaru22 has joined #angularjs
[05:01:33] *** bmac has quit IRC
[05:01:50] *** chrisshattuck has joined #angularjs
[05:02:12] *** jaydubya has quit IRC
[05:02:46] *** jaydubya has joined #angularjs
[05:02:55] *** whitebook has quit IRC
[05:03:17] *** ron1 has quit IRC
[05:04:03] *** tfennelly has joined #angularjs
[05:04:21] *** burzum has joined #angularjs
[05:04:24] *** frkout has quit IRC
[05:04:32] <TheAceOfHearts> I never use call or apply in apps; I think I only use it in libs
[05:06:08] *** tilgovi has quit IRC
[05:06:10] *** burzum2 has quit IRC
[05:07:08] *** macabre has quit IRC
[05:07:37] *** lw has joined #angularjs
[05:08:00] *** ChadStrat has joined #angularjs
[05:08:34] *** tfennelly has quit IRC
[05:09:52] *** bkuberek has quit IRC
[05:10:37] *** bkuberek has joined #angularjs
[05:11:27] *** scythe__ has quit IRC
[05:11:30] *** knownasilya has joined #angularjs
[05:11:55] *** goodenough has quit IRC
[05:11:56] <BahamutWC> my most common use of apply is to push one array into another, i.e. Array.prototype.push.apply(array1, array2)
[05:12:05] *** Una has quit IRC
[05:12:06] *** bmac has joined #angularjs
[05:12:26] *** chrisbirk has quit IRC
[05:12:28] *** goodenough has joined #angularjs
[05:12:30] *** hllau has quit IRC
[05:12:34] *** ron1_ has quit IRC
[05:13:09] *** shinnya has quit IRC
[05:13:18] *** scythe__ has joined #angularjs
[05:14:05] *** blicero has joined #angularjs
[05:14:37] <TheAceOfHearts> ah~
[05:14:40] *** phzon has joined #angularjs
[05:14:47] <TheAceOfHearts> I'd probably use concat unless I *have* keep the reference
[05:15:26] *** scythe__ has quit IRC
[05:16:02] *** hllau has joined #angularjs
[05:16:18] *** dc has joined #angularjs
[05:16:29] *** smoores has joined #angularjs
[05:16:31] *** bbankes has quit IRC
[05:16:37] *** goodenough has quit IRC
[05:17:12] *** bradmaxs has quit IRC
[05:17:38] *** Sjeeke has joined #angularjs
[05:18:10] *** bradmaxs has joined #angularjs
[05:18:59] *** phzon has quit IRC
[05:20:24] *** _mtr has joined #angularjs
[05:20:39] *** goodenough has joined #angularjs
[05:22:17] *** dc has quit IRC
[05:22:19] <s3shs> Oh, the *other* apply. ;-)
[05:22:33] *** Sjeeke has quit IRC
[05:24:03] *** SargoDarya has joined #angularjs
[05:25:17] *** _mtr has quit IRC
[05:25:31] *** mary5030 has joined #angularjs
[05:25:59] *** RedOrangeZ has joined #angularjs
[05:26:41] *** mven has quit IRC
[05:26:59] *** chrisbirk has joined #angularjs
[05:28:12] *** SargoDarya has quit IRC
[05:28:29] *** rtpg has joined #angularjs
[05:31:25] *** platonic has quit IRC
[05:31:43] *** kkthxbye has joined #angularjs
[05:32:03] *** rud_ has joined #angularjs
[05:32:10] *** frkout_ has quit IRC
[05:32:11] *** rkjdid has quit IRC
[05:32:36] *** frkout has joined #angularjs
[05:32:39] *** SomeKittens has quit IRC
[05:32:40] *** frozenice_ has quit IRC
[05:32:40] *** felipesabino has quit IRC
[05:32:40] *** Mattias has quit IRC
[05:32:41] *** remysharp has quit IRC
[05:32:42] *** mickhansen has quit IRC
[05:32:42] *** alphonse23_ has quit IRC
[05:32:42] *** amatecha has quit IRC
[05:32:42] *** oyvinmar___ has quit IRC
[05:32:43] *** mAxX-- has joined #angularjs
[05:32:56] *** Sawbones has quit IRC
[05:33:09] *** bradmaxs has quit IRC
[05:33:10] *** ukko has quit IRC
[05:33:11] *** syphar_ has quit IRC
[05:33:11] *** RoryHughes has quit IRC
[05:33:17] *** kuadrosx_ has joined #angularjs
[05:33:29] *** remysharp has joined #angularjs
[05:33:30] *** mickhansen has joined #angularjs
[05:33:34] *** oyvinmar___ has joined #angularjs
[05:33:34] *** SomeKittens has joined #angularjs
[05:33:34] *** frozenice_ has joined #angularjs
[05:33:38] *** felipesabino has joined #angularjs
[05:33:41] *** lebster has quit IRC
[05:33:42] *** Chepra has quit IRC
[05:33:42] *** mtree has quit IRC
[05:33:43] *** alphonse23_ has joined #angularjs
[05:33:50] *** mogaj has joined #angularjs
[05:34:02] *** amatecha has joined #angularjs
[05:34:05] *** ukko has joined #angularjs
[05:34:12] *** rud has quit IRC
[05:34:13] *** Phtes_ has quit IRC
[05:34:13] *** Shadda has quit IRC
[05:34:13] *** rud_ is now known as rud
[05:34:13] *** klobucar______ has quit IRC
[05:34:25] *** Chepra has joined #angularjs
[05:34:27] *** edrocks has quit IRC
[05:34:29] <mAxX--> im kinda new to angular and im wondering if there is any other reason than having installed ngRoute for Failed to instantiate module users due to:Error: [$injector:modulerr]
[05:34:43] *** Rebirth has quit IRC
[05:34:44] *** lebster has joined #angularjs
[05:35:05] *** klobucar______ has joined #angularjs
[05:35:05] *** mtree has joined #angularjs
[05:35:05] *** Phtes_ has joined #angularjs
[05:35:08] *** syphar_ has joined #angularjs
[05:35:38] *** Mattias has joined #angularjs
[05:36:09] *** kuadrosx has quit IRC
[05:36:10] <BahamutWC> mAxX--: you need to declare it as a module dependency
[05:36:20] <BahamutWC> angular.module('myApp', ['ngRoute'])
[05:36:26] *** RoryHughes has joined #angularjs
[05:36:33] *** scythe__ has joined #angularjs
[05:37:10] *** Lewix_ has joined #angularjs
[05:37:22] *** mogaj has quit IRC
[05:37:23] *** kirfu has quit IRC
[05:37:36] <mAxX--> BahamutWC, im just experiencing the issue including a dependency so basically ngRoute works fine
[05:37:40] *** denysonique has quit IRC
[05:37:53] *** platonic has joined #angularjs
[05:38:08] *** sebhoss has joined #angularjs
[05:39:18] *** denysonique has joined #angularjs
[05:40:21] *** Shadda has joined #angularjs
[05:41:30] *** johnkevi_ has joined #angularjs
[05:41:38] *** johnkevinmbasco has quit IRC
[05:41:42] <themime> where do you store URLs? we have a Session service but i think it needs to be a different place, just can't figure out a good name i guess
[05:42:15] *** hllau has quit IRC
[05:42:55] *** sebhoss has quit IRC
[05:43:34] *** bayousoft has joined #angularjs
[05:43:38] *** scythe___ has joined #angularjs
[05:44:08] *** scythe__ has quit IRC
[05:44:08] *** scythe___ is now known as scythe__
[05:44:27] *** angelazou has joined #angularjs
[05:45:01] *** ShivsharanRahul has joined #angularjs
[05:45:13] <angelazou> how can I access a form inside a controller?
[05:46:10] *** bmac has quit IRC
[05:46:10] <themime> angelazou: use a directive instead
[05:46:14] <angelazou> I have some form checking(mostly for the pristine value) functionality that I need to implement across various controllers, and I would like to abstract them into some form of common module, perhaps a directive
[05:46:26] *** Una has joined #angularjs
[05:46:37] <angelazou> these controllers serve as view controller inside a SPA
[05:46:54] *** pknordic has joined #angularjs
[05:46:59] <themime> yes a directive
[05:47:01] <angelazou> themime: yes, but the first problem I have encountered is that when I pass say, $scope.some_form to the directive
[05:47:10] <angelazou> it's not being initiated when the directive is
[05:47:11] <themime> noooope
[05:47:23] <themime> you use a directive so you can access the element in the link method
[05:47:35] *** lemur has quit IRC
[05:47:35] <angelazou> but the only thing I'm interested in is the $pristine value in the form
[05:47:36] *** maikowblue has quit IRC
[05:47:46] *** dave_boling has quit IRC
[05:47:59] <themime> and id probaby have a factory with it to do the processing
[05:48:11] *** lemur has joined #angularjs
[05:48:25] <themime> the factory could also stash info the controllers can have access to
[05:48:33] *** d10n-work has quit IRC
[05:50:45] <angelazou> themime: I guess the directive can be placed in a level above the forms, but I still need to know the pristine value of the form. How can I do that?
[05:50:58] *** opiates_ has joined #angularjs
[05:51:37] *** pknordic has quit IRC
[05:51:52] *** bayousoft has quit IRC
[05:52:37] *** bkuberek has quit IRC
[05:53:33] *** renlo has quit IRC
[05:53:34] *** renlo_ is now known as renlo
[05:54:20] *** ChadStrat has quit IRC
[05:54:45] *** nickgs has joined #angularjs
[05:55:51] *** c00ljs has quit IRC
[05:57:10] *** d4rklit3 has quit IRC
[05:58:28] *** goodenough has quit IRC
[05:58:46] *** prbc has quit IRC
[05:58:56] *** ZGirl has joined #angularjs
[05:59:21] <themime> im confused is that not stored on the form itself
[05:59:34] <ZGirl> Is there any way to avoid a flicker when Angular loads and does a transclude? I have some images that prior to Angular, but then there’s a flicker/blink as angular attaches and wraps the element
[05:59:41] <mAxX--> is it a good idea using angular for a chat functionality?
[05:59:51] *** nickgs has quit IRC
[05:59:57] *** prbc has joined #angularjs
[06:00:05] <themime> mAxX--: vague question. it /can/ be used for chat functionality
[06:00:48] <Grokling> ZGirl: ngCloak perhaps?
[06:00:49] <mAxX--> ok
[06:01:27] *** kapil__ has quit IRC
[06:01:47] *** ome has quit IRC
[06:02:13] *** richiebkr has quit IRC
[06:02:37] *** noord has quit IRC
[06:02:41] *** scythe__ has quit IRC
[06:02:45] *** richiebkr has joined #angularjs
[06:03:13] <angelazou> themime: I found a couple of posts on SO, but they refer to how to access the form controller when the directive is on an element in the form (e.g form is the parent of the directive in the DOM)
[06:03:29] *** ZGirl has quit IRC
[06:03:40] *** johnkevinmbasco has joined #angularjs
[06:03:44] <angelazou> but I'm looking to place the directive one layer above the form, and access the form that way
[06:03:57] *** whunt has joined #angularjs
[06:03:59] <mAxX--> having a module like 'users.users', creates any conflict?
[06:04:08] <angelazou> because there may be multiple forms on the page and I would like for the directive to access all of them
[06:04:22] <themime> angelazou: id make one directive and have it on each one
[06:04:39] <Grokling> mAxX--: might confuse you, but it won't confuse javascript.
[06:04:41] *** johnkevi_ has quit IRC
[06:04:46] <angelazou> themime: but then the directives would have to talk to each other...
[06:05:02] <mAxX--> ok
[06:05:02] <angelazou> oh, the factory can handle the interchange of information
[06:05:03] <angelazou> okay
[06:05:12] <themime> yea exactly
[06:05:25] <themime> or if you /really/ must, you can access child elements of an element in the directive
[06:05:34] *** noord has joined #angularjs
[06:05:35] *** codeman has joined #angularjs
[06:05:45] *** Soxad has joined #angularjs
[06:05:49] *** lw has quit IRC
[06:05:59] <angelazou> themime: yeah, but the thing is the element I want to access may not be available when the directive finished loading
[06:06:22] <angelazou> like the form, since everything in angular is loaded & rendered asynchronously
[06:06:58] *** codeman has quit IRC
[06:07:00] <angelazou> that would mean that I need to notify the directive when the form loading is completed, which adds an extra layer of complexity, which is not a good idea for me
[06:07:05] *** richiebkr has quit IRC
[06:07:58] <themime> why won't the form be there?
[06:08:27] *** codeman has joined #angularjs
[06:08:50] *** opiates_ has quit IRC
[06:09:09] *** Soxad has quit IRC
[06:09:12] *** prbc has quit IRC
[06:10:19] *** chrisshattuck has quit IRC
[06:10:34] <themime> unless you have some funky stuff going on, youll have access to the form elements from the directive - if code is running in the scope the html is at the very least pre-rendered in the background to the point you can manipulate them
[06:10:57] <themime> im not sure on the exact cycle but now i may have to dig about
[06:11:23] *** bkuberek has joined #angularjs
[06:12:42] *** Superhard__ has joined #angularjs
[06:12:52] *** whunt has quit IRC
[06:13:08] *** tomengland_mbp has joined #angularjs
[06:13:31] *** whitebook has joined #angularjs
[06:13:32] *** opiates_ has joined #angularjs
[06:14:20] <themime> hmm i may be wrong angelazou http://blog.brunoscopelliti.com/run-a-directive-after-the-dom-has-finished-rendering
[06:14:25] <themime> but that link has a solution
[06:14:38] <themime> however 1.3 fixed a lot of silly stuff like that sooo it may be a non issue
[06:15:32] <angelazou> yeah, before that, I had a hack where I created a directive with a very low priority so it would only execute stuff after the element finished rendering
[06:15:38] *** Sawbones has joined #angularjs
[06:16:06] *** bkuberek has quit IRC
[06:16:39] <themime> i don't ever do stuff with forms, i mean i use inputs obviously just never found a need for the level some people here do. mind what i ask youre working on?
[06:16:54] *** Superhard__ has quit IRC
[06:16:55] *** Sna4x8 has quit IRC
[06:17:11] *** Aerospark has joined #angularjs
[06:17:27] *** ggrzybek has joined #angularjs
[06:17:49] *** fedenunez has quit IRC
[06:17:51] *** whitebook has quit IRC
[06:17:57] *** Sna4x8 has joined #angularjs
[06:18:01] *** Aerospark has quit IRC
[06:18:08] *** whunt has joined #angularjs
[06:18:20] *** axsuul has quit IRC
[06:18:28] *** ggrzybek has quit IRC
[06:18:40] <Grokling> themime: Do you know how to make radio buttons work?
[06:18:44] <themime> just curious what would require such a level of checking of fields, beyond the awesome default angular databinding and such
[06:18:47] *** ggrzybek has joined #angularjs
[06:18:51] <themime> Grokling: yes, why?
[06:18:58] *** ggrzybek has quit IRC
[06:19:01] *** johnkevinmbasco has quit IRC
[06:19:04] *** blicero has left #angularjs
[06:19:11] *** ggrzybek has joined #angularjs
[06:19:32] <Grokling> Because this seems valid to me, but only the first one 'checks'.. http://pastebin.com/SqW4fczf
[06:19:34] <angelazou> themime: well, I have a backend management interface, and this is a single page with a root controller and each route point to another controller (child of root) associated with the route
[06:20:23] <angelazou> now the user is free to roam between pages, but if there are unsaved changes on a page, I would like to have a prompt asking if they are sure to leave
[06:20:26] <themime> Grokling: you need name="" to be the same i think http://www.w3schools.com/html/html_forms.asp
[06:20:52] <angelazou> so basically I need to check for the $pristine value of all the forms on a page before the user moves onto another page
[06:21:20] <themime> angelazou: ooh that makes sense. seems like a common issue, i wonder if someone else has done something similar like a plugin or something. angular is good like that
[06:21:38] *** johnkevinmbasco has joined #angularjs
[06:22:11] *** {DV8} has joined #angularjs
[06:22:12] *** _ritchie_ has joined #angularjs
[06:22:33] <themime> Grokling: yea i don't see any name="" at all. also if you plunker it ill get it working if you can't figure it out. im not sure why having no name="" would only let you check the first one though
[06:22:41] <angelazou> themime: yeah, I'd like to find one too if one's available, but this sort of implementation is usually tightly coupled with the existing code (e.g. the prompt on locationchange, $pristine check, etc.)
[06:22:48] <Grokling> themime: Yeah, I tried that, didn't seem to make any difference at all. It's like there's a key mismatch or something.
[06:23:03] <angelazou> so though I think it's possible I doubt if I can find one available
[06:23:25] *** Silne30 has quit IRC
[06:23:41] *** whunt has quit IRC
[06:23:43] *** vyaakull has joined #angularjs
[06:23:49] *** jeffisabelle has quit IRC
[06:24:33] <themime> Grokling: lol their sample here doesn't have a name="" i guess if theres none it puts them all together https://docs.angularjs.org/guide/forms
[06:24:48] <themime> Grokling: im curious now if you figure it out let me know
[06:25:30] <Grokling> Will do - I just found another example.. not sure if it's any different to what I'm already doing. If not, I'll plnk it..
[06:25:34] <vyaakull> Hi, I have a javascript analytics snippet that I would like to place in my application but I do not know what is the appropriate place to put such plain javascript in. Services or directives do not sound good to me. Please advise.
[06:26:05] *** caitp has quit IRC
[06:26:06] <vyaakull> I am using jade template and can place the whole code there but I wish to save it as .js and include in jade template.
[06:27:07] <Grokling> Rats. Plunker it is.
[06:27:11] <themime> vyaakull: personally id use a directive so its reusable - but the alternative is a factory/service, im not sure what else you had in mind
[06:27:17] *** charuru has quit IRC
[06:27:50] <Grokling> vyaakull: If it's just straight js, and has nothing to do with angular, wouldn't a <script> tag in your html be the place to put it?
[06:27:54] <vyaakull> themime: Its just a plain javascript (google analytics snippet)
[06:28:20] <vyaakull> Grokling: yes. I am only thinking of reasonable directory to place it in
[06:28:31] *** hyperfocal has joined #angularjs
[06:28:34] <vyaakull> maybe /assets/js in my project
[06:28:38] <s3shs> You want them in a directive.
[06:29:00] <s3shs> Directives are where "non-angular" code lives.
[06:29:48] <angelazou> I usually just dump it on my page ⊙ω⊙
[06:29:57] <Grokling> s3shs: Only if angular needs to do something with them.. I'm not sure that's the case with google analytics.
[06:30:13] <themime> or if the thing relies on the dom in anyway = directive
[06:30:26] <s3shs> Is this just one of those one-liner scripty things?
[06:30:45] <themime> s3shs: he said google analytics
[06:31:14] <s3shs> Ahh, he said that later.
[06:31:15] <vyaakull> s3shs: Its few lines of javascript.
[06:31:46] *** kapil__ has joined #angularjs
[06:31:48] <s3shs> Don't stick it in a scope that's not inserted when you need it working.
[06:32:13] <themime> did that make sense to anyone. maybe im just tired
[06:32:29] <s3shs> For themime, don't put it inside an ng-if.
[06:33:17] <vyaakull> I am thinking of placing an analytics.js file with ga-code in assets/js and include it in jade file. But, I just wanted to know if there was something angularish for this
[06:33:18] <themime> ah yea that sounds bad. im tired and your wording turned to gibberish in my head haha
[06:33:34] <s3shs> go to bed
[06:33:40] *** Aliks has quit IRC
[06:33:57] <themime> vyaakull: yes, a directive seems like the consensus
[06:34:10] <vyaakull> thanks
[06:34:13] *** Aliks has joined #angularjs
[06:34:21] <s3shs> vyaakull, this looks interesting: http://luisfarzati.github.io/angulartics/
[06:34:42] <angelazou> themime: I've made a plnkr but...I couldn't get it working http://plnkr.co/edit/KFZyf87IrzHYrA8XxQYY?p=preview
[06:34:46] <s3shs> I don't know what you want tracked. Do you want every load or just some parts of some pages?
[06:34:59] <vyaakull> s3shs: everything
[06:35:03] *** johnkevinmbasco has quit IRC
[06:35:18] <s3shs> Just stick it at the bottom of your html
[06:35:23] <vyaakull> s3shs: yes came across it. I'm using it. Anyway it needs ga code to be there
[06:36:03] *** tomengland_mbp has quit IRC
[06:36:08] <vyaakull> angulartics is what I think a good solution to have actual event and pageview tracking for applications built on top of angularjs
[06:36:56] <s3shs> Remember angular apps are apps... single page loads that are heavily modified on the fly. I've got a 40K line app that loads once and stays running all day. An analytics package would track just the single load.
[06:37:16] <s3shs> Unless I did something clever.
[06:37:48] <Grokling> themime: Usual story with my radio buttons.. Works perfectly in plunker.
[06:37:52] *** JBreit has quit IRC
[06:38:02] *** tomengland_mbp has joined #angularjs
[06:38:34] *** Aliks has quit IRC
[06:38:36] <vyaakull> s3shs: I think angulartics does the clever part, tracking virtual pageviews and events
[06:39:04] *** d10n-work has joined #angularjs
[06:39:15] *** macobo has joined #angularjs
[06:39:21] *** sigurding has joined #angularjs
[06:39:25] <s3shs> Looks that way, yes.
[06:39:29] <s3shs> (I've never used it.)
[06:40:04] <themime> Grokling: haha aw man every bug i have it seems is like that
[06:40:05] <vyaakull> yes, thank you.
[06:40:30] *** hyperfocal has quit IRC
[06:40:36] *** kuadrosx_ is now known as kuadrosx
[06:40:52] <Grokling> themime: Yeah. Most of mine too. Always something obscure. I just wish there was more productive time between them..
[06:41:19] <s3shs> Angular can handle custom tags and attributes, events and async services... but I swear you have to sacrifice a goat to get radio buttons and checkoxes to work.
[06:41:59] <angelazou> checkboxes, especially
[06:41:59] <mAxX--> any idea why i get undefined is not a function in this line return $http.get('/api/v1/users/' + username + '/');
[06:42:04] *** woah has joined #angularjs
[06:42:29] <angelazou> mAxX--: what did you add after that?
[06:42:40] <angelazou> not .then() right?
[06:42:41] <Grokling> yeah - look _around_ that line..
[06:43:02] <mAxX--> angelazou, User.get(username).then(userSuccessFn, userErrorFn);
[06:43:12] <angelazou> right, use .success
[06:43:24] <angelazou> unless it's a promise, then you can use 'then'
[06:43:28] <themime> it is a promise
[06:43:30] <angelazou> \o/
[06:43:36] <themime> yea
[06:43:38] <mAxX--> its a promise
[06:43:42] <themime> i promise
[06:43:44] <themime> lolol
[06:43:49] <angelazou> haha
[06:44:01] <angelazou> mAxX--: would you mind showing some snippet?
[06:44:06] <mAxX--> sure
[06:44:11] <themime> plunker that bish
[06:44:44] *** axsuul has joined #angularjs
[06:45:21] <Grokling> s3shs: I've sacrificed a lot of goats. Mostly to the freezer, but it should still count I think. Still doesn't make my radio buttons work!
[06:45:28] *** platonic has quit IRC
[06:45:28] *** bulkan has quit IRC
[06:45:28] <themime> i like to capture my $http response though and repackage it and return a new promise with $q
[06:45:35] *** mary5030 has quit IRC
[06:46:02] *** stephanbuys has joined #angularjs
[06:46:07] <Grokling> .then does return a new promise.. all by itself.
[06:46:11] *** mary5030 has joined #angularjs
[06:47:07] <themime> yea you can chain them. i return a new one with $q though so i can strip some server gibberish out and just return actual data from the service
[06:47:24] *** threesixes has joined #angularjs
[06:47:28] <mAxX--> angelazou, http://plnkr.co/edit/qMlKp7gEt1FdU1R7IrcA?p=catalogue
[06:48:06] *** JBreit has joined #angularjs
[06:48:13] *** triscuit has joined #angularjs
[06:48:16] <Grokling> themime: Why do you need $q for that? Can't you just strip the rubbish, and return?
[06:48:34] *** vyaakull has quit IRC
[06:49:07] *** NormySan has joined #angularjs
[06:49:14] <triscuit> What is the easiest - hopefully controller-less way - of adding a "blink" to a div on an ng-click? what i want is a transition from btn-warning -> btn-danger -> btn-> warning two or three times in maybe 100 ms
[06:49:15] <themime> mAxX--: getting console errors
[06:49:48] <mAxX--> TypeError: undefined is not a function at Object.get
[06:49:56] <themime> Grokling: hmm mmaaybe i thought i had to use $q. what would i return?
[06:50:15] *** denysonique has quit IRC
[06:50:25] *** jdj_dk has joined #angularjs
[06:50:40] *** mary5030 has quit IRC
[06:51:15] <Grokling> themime: $http.get(...).then(function(response){delete response.data.gibberish; return response.data;})
[06:51:39] *** platonic has joined #angularjs
[06:52:25] *** zeezey has quit IRC
[06:52:46] <themime> mAxX--: youre defining User a lot
[06:52:47] *** denysonique has joined #angularjs
[06:52:47] <themime> mAxX--: may or may not be related
[06:52:47] <Grokling> Right. I need to find more goats - this sacrifice business isn't working.
[06:52:47] *** jdj_dk has quit IRC
[06:52:48] *** denysonique has quit IRC
[06:52:48] *** denysonique has joined #angularjs
[06:52:53] <themime> Grokling: that returns a promise?
[06:53:07] <themime> Grokling: that auto wraps repsonse.data in a promise?
[06:53:11] *** {DV8} has quit IRC
[06:53:18] <mAxX--> lol
[06:53:23] <mAxX--> well dont think so
[06:53:37] <themime> plunker shows a warning
[06:53:53] <Grokling> themime: That resolves the promise that $http started, so when the chain (which is a promise) resolves, you'll get response.data out the end.
[06:53:56] *** Lewix has quit IRC
[06:54:03] <s3shs> triscuit, I would set a $timer and set/unset a class that's bound through ng-class.
[06:54:08] *** wa5ted has quit IRC
[06:54:16] *** threesixes has quit IRC
[06:54:35] <themime> wtf why was everyone using $q everywhere
[06:54:43] <s3shs> Because it's async.
[06:55:06] <s3shs> You can feed $q a bunch of functions and it'll execute them in parallel and tell you when they're done.
[06:55:11] <Grokling> themime: Maybe they were trying to do something more complicated..
[06:55:13] *** jimvideo has quit IRC
[06:55:25] <Grokling> You have $q.all to do what s3shs said.
[06:55:41] <Grokling> You have $q.when to make a non-promisey thing into a promise.
[06:55:42] *** wa5ted_ has joined #angularjs
[06:55:54] *** mdedetri_ has joined #angularjs
[06:55:56] <s3shs> And $http funcs return promises. And if there was ever a need for async, it was $http.
[06:56:02] <themime> i was just using var deferred = $q.defer() and then deferred.resolve(response.data) then return deferred.promise
[06:56:02] *** threesixes has joined #angularjs
[06:56:05] <Grokling> also $.resolve, $q.reject
[06:56:09] *** mdedetrich has quit IRC
[06:56:21] <s3shs> I use $q client side, but node.async server-side.
[06:56:45] <Grokling> themime: If you 'had' to do that, you'd just return $q.resolve(response.data)
[06:56:48] *** sigurding has quit IRC
[06:56:54] <Grokling> But you don't need to.. so don't bother.
[06:57:04] <themime> uggg i don't think i need to use $q as much. which is annoying because i knew you could chain promises i just...i dunno so duuuummb
[06:57:05] *** Lewix_ has quit IRC
[06:57:24] <themime> i felt so confident about my angular skills like an hour ago. I KNOW NOTHING
[06:57:26] *** yaru22 has quit IRC
[06:57:37] * themime falls sleep mid rant
[06:58:03] <Grokling> themime: It's all relative.. I know nothing either. Depends on the company you're keeping at the time..
[06:58:04] <s3shs> There is no need to chain functions that are not async.
[06:58:09] <stephanbuys> hi all, I'm a total n00b (disclaimer), I'm running into a situation where I have two controllers, each doing $http.get to a REST API, what's really weird is that I have the results from the first get and controller show up (merged??) in the second controller results (with its new results).
[06:58:22] <themime> s3shs: yes to remove gibberish server adds
[06:58:29] *** neilff has quit IRC
[06:58:49] <themime> s3shs: thats how the discussion started - i use $q.defer() to rewrap $https promise after processing - seems like that is unncessary now
[06:59:06] *** nemothekid has joined #angularjs
[06:59:12] <s3shs> stephanbuys, put debugger lines on the results of each get and see what's coming back. You may also have nested controllers and you're not adding your data to the controller you think you are.
[06:59:16] *** johnnyfive has quit IRC
[06:59:35] <s3shs> $http is already async so no need to wrap it again.
[06:59:43] *** MistahKurtz has joined #angularjs
[07:00:02] *** cellofellow has quit IRC
[07:00:13] *** frkout has quit IRC
[07:00:20] <stephanbuys> s3shs: yeah, I've got Webstorm and I'm looking at the data returned in the debugger, its like the results magically merged :/
[07:00:40] *** frkout has joined #angularjs
[07:00:41] <s3shs> Look at the variable you're merging them in to. I bet both get calls are merging in to the same one.
[07:01:05] *** TyrfingMjolnir has joined #angularjs
[07:01:09] <themime> s3shs: i was $q.defer().resolve()ing the data from the $http promise
[07:01:10] *** threesixes has quit IRC
[07:01:14] <s3shs> It's very important to bind through an object instead of directly to the $scope. To differentiate between data in different scopes... when nesting is involved.
[07:01:25] <s3shs> bed time.
[07:01:29] <themime> after pulling just the actual data from the server response
[07:01:56] <themime> its like .data.result.Result.MoreBS.DatayouActuallyneed
[07:02:05] <Kane`> doing some dev work on someones angular project. i noticed if i `{{test()}}` in a template and have that scope function just console.log('here'), i see that function is being called like ~8 times. is that normal?
[07:02:15] *** sabrehagen1 has quit IRC
[07:02:15] <Kane`> template is being loaded by the routeProvider
[07:02:20] <stephanbuys> The success promise's first param has a unique name from the other controller…
[07:02:56] *** richiebkr has joined #angularjs
[07:03:01] <Grokling> Kane`: Just sounds like multiple digests - in which case, yes, perfectly normal.
[07:03:14] <Kane`> righto, cheers
[07:03:23] *** stephanbuys1 has joined #angularjs
[07:04:17] *** IsraelOrtuno has quit IRC
[07:04:46] *** mennea has joined #angularjs
[07:05:09] <Grokling> This blows. I can cut and paste the code from my app into plunker, where it works, while simultaneously have it not work in my app. It's really not that difficult I thought!
[07:05:36] <themime> Grokling: plugin?
[07:05:49] *** deshong has joined #angularjs
[07:06:13] <Grokling> only ionic plugged in.
[07:06:17] * Grokling wonders..
[07:06:23] <themime> er extension
[07:06:29] *** stephanbuys has quit IRC
[07:06:34] *** Sjeeke has joined #angularjs
[07:06:40] <themime> chrome, etc extension
[07:07:00] *** tomengland_mbp has quit IRC
[07:07:06] *** mAxX-- has quit IRC
[07:07:46] *** richiebkr has quit IRC
[07:07:59] <Grokling> Don't think so - that should affect plunker equally no?
[07:08:52] *** ycodr has joined #angularjs
[07:08:57] *** angelazou has quit IRC
[07:09:11] <themime> batarang messed with me earlier, had a guy in here cupping my balls cause he had the same exact issue after trying to figure it out after days haha
[07:09:23] <themime> no idea if itll affect plunker too..
[07:09:25] *** _mtr has joined #angularjs
[07:09:26] <themime> hm
[07:09:32] * Grokling killed batarang at the first sign of trouble the other day.
[07:09:56] <themime> i rarely use it anyway. i really dig postman though
[07:10:07] <Grokling> Oddly, I just swapped in the ion-radio directive, and it works perfectly..
[07:10:20] *** TheAceOfHearts has quit IRC
[07:10:42] <themime> we can pretend like when i said "plugins" i meant "directives" rather than chrome extensions :P
[07:11:18] <Grokling> postman is great. Seeing as I'm using JWT, it's extremely awkward to test the api otherwise!
[07:11:22] *** Sjeeke has quit IRC
[07:12:40] *** deshong has quit IRC
[07:12:55] *** SargoDarya has joined #angularjs
[07:13:56] *** Nivag_ has joined #angularjs
[07:13:59] *** knownasilya has quit IRC
[07:14:17] *** _mtr has quit IRC
[07:14:19] *** sabrehagen1 has joined #angularjs
[07:14:37] *** joshontheweb has quit IRC
[07:15:06] *** triscuit has quit IRC
[07:15:38] *** jdivock_ has joined #angularjs
[07:17:10] *** gunagan has joined #angularjs
[07:17:19] *** SargoDarya has quit IRC
[07:17:20] *** denysonique has quit IRC
[07:17:42] *** windsurf_ has joined #angularjs
[07:18:02] *** joshontheweb has joined #angularjs
[07:18:03] *** VeeWee has joined #angularjs
[07:18:07] *** settinghead has quit IRC
[07:18:47] *** settinghead has joined #angularjs
[07:18:53] <windsurf_> I have a UserResource (ngResource) and I also have an EventResource. However, I want to get all the events for a user at /api/user/:user_id/events. Should I be looking at creating a custom action on the User resource?
[07:18:58] *** mAxX-- has joined #angularjs
[07:19:02] *** sabrehagen1 has left #angularjs
[07:19:05] *** denysonique has joined #angularjs
[07:20:00] *** jdivock_ has quit IRC
[07:21:00] *** Greed` is now known as Greed
[07:21:13] *** sigurding has joined #angularjs
[07:22:08] *** caitp has joined #angularjs
[07:22:35] *** Leon has joined #angularjs
[07:23:13] *** settinghead has quit IRC
[07:23:55] *** Roopesh has joined #angularjs
[07:23:57] *** _ritchie_ has quit IRC
[07:24:02] *** tomengland_mbp has joined #angularjs
[07:24:08] <Roopesh> Hi All
[07:24:21] *** richiebkr has joined #angularjs
[07:24:49] <Roopesh> What is the best and fastest way to learn angular js ?
[07:24:50] *** tschundeee has joined #angularjs
[07:24:58] *** Seikho has joined #angularjs
[07:25:04] <Roopesh> I am a php web developer
[07:25:21] *** Firo has quit IRC
[07:26:06] *** yekKhaste has joined #angularjs
[07:26:27] <yekKhaste> Hi
[07:26:31] <windsurf_> Roopesh: https://www.safaribooksonline.com/library/view/angularjs/9781449355852/
[07:26:47] *** linojon has quit IRC
[07:26:53] *** sebhoss has joined #angularjs
[07:26:57] <yekKhaste> I want to write my first angularjs project and I want use yeoman for it
[07:27:07] *** davek has quit IRC
[07:27:21] *** kuadrosx has quit IRC
[07:27:32] *** NormySan has quit IRC
[07:27:48] *** lostInParadise has joined #angularjs
[07:27:59] <yekKhaste> I install yo, grunt-cli, bower and generator-angular globally
[07:28:16] <yekKhaste> and run yo angular in my project folder
[07:28:38] <yekKhaste> But now when I'm running "grunt test"
[07:28:40] *** Code11 has joined #angularjs
[07:28:48] <yekKhaste> I get this err "Warning: Task "karma" not found. Use --force to continue."
[07:29:07] *** caitp has quit IRC
[07:29:25] <Code11> ??
[07:29:36] *** ez has joined #angularjs
[07:29:37] *** pzuraq has quit IRC
[07:30:15] <Grokling> Code11: !ask
[07:30:16] <UniBot1> Code11, Don't ask to ask. Just state your question (with a !bin code sample) and wait for an answer
[07:30:16] <UniBot> Code11, Don't ask to ask. Just state your question (with a !bin code sample) and wait for an answer
[07:30:16] <UniBot> code+sample)+and+wait+for+an+answer: reading code is easier than reading minds. Post a simple sandbox: http://plnkr.co/edit/gist:3510140 (click on the double arrows icon on the right to live-collaborate)"
[07:30:17] <UniBot1> code+sample)+and+wait+for+an+answer: reading code is easier than reading minds. Post a simple sandbox: http://plnkr.co/edit/gist:3510140 (click on the double arrows icon on the right to live-collaborate)"
[07:30:43] *** TheAceOfHearts has joined #angularjs
[07:31:17] *** lostInParadise has quit IRC
[07:31:42] *** sebhoss has quit IRC
[07:31:43] *** Greed` has joined #angularjs
[07:32:03] *** Greed has quit IRC
[07:32:48] *** opiates_ has quit IRC
[07:33:45] *** SahanH has joined #angularjs
[07:34:11] *** mennea has quit IRC
[07:34:37] *** gunn has joined #angularjs
[07:34:48] *** mennea has joined #angularjs
[07:35:32] *** kirfu has joined #angularjs
[07:35:42] *** pknordic has joined #angularjs
[07:35:55] *** denysonique has quit IRC
[07:36:11] *** Roopesh has quit IRC
[07:36:21] *** gunn has quit IRC
[07:36:27] <pontiki> should there be two of those bots?
[07:36:36] *** denysonique has joined #angularjs
[07:36:54] <jaawerth> uh oh, they're breeding
[07:37:08] *** wafflej0ck____ has quit IRC
[07:37:42] *** chrisbirk has quit IRC
[07:37:48] *** craigp has joined #angularjs
[07:37:51] <pontiki> mitosis? :D
[07:38:35] <jaawerth> hey, maybe it had an encounter with another bot, YOU DON'T KNOW
[07:38:39] *** chrisbirk has joined #angularjs
[07:39:02] <Grokling> Apparently when ProLoser was setting the bot up, he tried a bunch of different hosts. Now he doesn't know which one of the abortions survived the bucket.
[07:39:18] *** Sawbones has quit IRC
[07:39:19] <ProLoser> actually
[07:39:26] <ProLoser> i found out it's just node being a POS
[07:39:31] <Grokling> Hey - there he is!
[07:39:32] <Spot__> :D
[07:39:40] <ProLoser> if you push an update to nodejitsu it hangs the thread
[07:39:43] <ProLoser> instead of killing the old one
[07:39:45] <ProLoser> it's stupid
[07:39:52] <jaawerth> ooh, good to know
[07:39:53] <ProLoser> i hate nodejitsu
[07:40:10] *** Sadin has quit IRC
[07:40:13] <Grokling> If it's hung, how come it's running?
[07:40:16] *** pknordic has quit IRC
[07:40:36] <ProLoser> i have no idea
[07:40:42] *** UniBot1 has quit IRC
[07:40:47] <ProLoser> here, i'm going to restart it on nodejitsu
[07:40:53] <ProLoser> i bet you a dollar it's going to create 3 of em
[07:40:59] *** UniBot1 has joined #angularjs
[07:41:08] <ProLoser> tada!
[07:41:19] *** windsurf_ has quit IRC
[07:41:27] <Grokling> !help
[07:41:27] <UniBot1> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[07:41:27] <UniBot> Issue commands by doing !command [arguments] [@nick], See http://unibot.jit.su/#/channel/526a2e9eb6230d1090000001 for the full list
[07:41:42] <Grokling> I'll take that bet..
[07:41:54] *** UniBot1 has quit IRC
[07:41:59] <ProLoser> okay, you asked for it
[07:42:03] <jaawerth> man, nodejitsu's app pricing seems not that impressive for its limitations, given you can get a basic server for $5/month through DO
[07:42:11] <Grokling> Ooo. hey, one of the bots just quit!
[07:42:19] *** UniBot1 has joined #angularjs
[07:42:23] <Grokling> That's progress..
[07:42:28] <ProLoser> i restarted 3 times
[07:42:35] <ProLoser> maybe it's limited to 2 threads?
[07:42:52] <ProLoser> god my friend directied this independant film
[07:42:53] *** gunn has joined #angularjs
[07:43:03] <ProLoser> i'm watching the final edit
[07:43:18] <ProLoser> it's so hilariou, the music randomly starts and stops and the background sound randomly stops
[07:43:27] *** Superhard__ has joined #angularjs
[07:43:33] <ProLoser> she edited the whole thing with the volume super low and kept lowering it when i tried raising it
[07:43:37] *** Code11 has quit IRC
[07:43:38] <ProLoser> so the audio track is completely weird
[07:44:02] *** joshontheweb has quit IRC
[07:44:25] *** MattWelch has quit IRC
[07:44:33] <ProLoser> anyone use codementor or hackhands?
[07:44:40] *** gkap has joined #angularjs
[07:45:54] *** oste has quit IRC
[07:47:43] *** Sadin has joined #angularjs
[07:47:55] *** Superhard__ has quit IRC
[07:48:37] *** oliver___ has joined #angularjs
[07:49:22] *** joshontheweb has joined #angularjs
[07:49:52] *** ez has quit IRC
[07:49:54] *** tomengland_mbp has quit IRC
[07:50:20] *** kkk has joined #angularjs
[07:50:36] *** kkk has left #angularjs
[07:50:36] *** mdedetri_ has quit IRC
[07:50:54] *** denysonique has quit IRC
[07:50:56] *** tomengland_mbp has joined #angularjs
[07:51:17] *** mdedetrich has joined #angularjs
[07:51:22] <yekKhaste> I new to angularjs
[07:51:23] *** ianpirro has joined #angularjs
[07:51:24] *** sabrehagen1 has joined #angularjs
[07:51:40] <sabrehagen1> hey guys, i want to have a function that is 'private' to my service. what's the syntax to do this?
[07:51:44] <yekKhaste> Is there any tutorial about how can I deploy my angular js app
[07:52:06] <fairuz> yekKhaste: Like deploying normal web app
[07:52:33] *** ez_kkk has joined #angularjs
[07:53:02] <yekKhaste> fairuz, I new to js and front-end development, So I have no idea how normal apps should deploy too
[07:53:10] <yekKhaste> I find yeoman
[07:53:22] <yekKhaste> But it's too bugy
[07:53:29] <fairuz> yekKhaste: buggy?
[07:53:34] <fairuz> in what sense
[07:53:40] *** ez_kkk has left #angularjs
[07:53:45] <fairuz> I use Grunt and Bower
[07:53:51] *** Aliks has joined #angularjs
[07:54:07] <yekKhaste> for example I make a project with yo angular
[07:54:15] <yekKhaste> but when I run grunt test
[07:54:25] *** frkout_ has joined #angularjs
[07:54:33] <yekKhaste> it give me this err: "Warning: Task "karma" not found. Use --force to continue."
[07:54:36] <fairuz> You need to install some stuff before be able to use it
[07:54:39] <fairuz> It's normal
[07:54:45] <fairuz> install karma and jasmine
[07:55:06] <yekKhaste> install theme globally?
[07:55:26] <yekKhaste> like: npm install -g karma jasmine ?
[07:55:37] *** ianpirro has quit IRC
[07:55:59] *** gunagan has quit IRC
[07:57:16] *** rhp has quit IRC
[07:57:18] *** denysonique has joined #angularjs
[07:57:51] *** aslate has joined #angularjs
[07:57:56] <fairuz> theme? karma and jasmine is not themes
[07:58:08] *** frkout has quit IRC
[07:58:21] *** yaru22 has joined #angularjs
[07:58:25] <fairuz> yekKhaste: Look up in Google how to do proper test in AngularJS using karma and jasmine
[07:58:36] <fairuz> Should be easy to find.
[07:58:58] *** doginal has quit IRC
[07:59:09] <fairuz> yekKhaste: If you are new to js, why bother with the tests? Maybe it's better to get stuff straight first
[07:59:26] *** mtsr has joined #angularjs
[07:59:46] *** doginal has joined #angularjs
[07:59:58] <yekKhaste> fairuz, sorry that was a typo, I mean them!
[08:00:07] *** lite_ has joined #angularjs
[08:00:14] <fairuz> no install locally
[08:00:15] *** _mtr has joined #angularjs
[08:00:19] <fairuz> and make sure to add --save
[08:00:34] <fairuz> so that your package.json get updated as well
[08:00:34] *** KushS_ has quit IRC
[08:00:43] <yekKhaste> fairuz, thanks!
[08:00:45] *** settinghead has joined #angularjs
[08:01:58] *** sabrehagen1 has quit IRC
[08:02:49] *** yaru22 has quit IRC
[08:03:22] *** dnewkerk has quit IRC
[08:03:27] *** dnewkerk_ has joined #angularjs
[08:04:02] *** mAxX-- has quit IRC
[08:04:13] *** mennea has quit IRC
[08:04:15] *** MistahKurtz has quit IRC
[08:04:36] *** doginal has quit IRC
[08:04:38] *** mAxX-- has joined #angularjs
[08:04:51] *** mennea has joined #angularjs
[08:04:57] *** settinghead has quit IRC
[08:05:33] *** aslate has quit IRC
[08:05:42] *** _mtr has quit IRC
[08:06:12] *** chr1stopher has joined #angularjs
[08:06:14] *** doginal has joined #angularjs
[08:07:15] *** nabdev has joined #angularjs
[08:07:16] *** nabdev has joined #angularjs
[08:09:33] *** Una has quit IRC
[08:10:46] *** davek_ has joined #angularjs
[08:10:46] *** davek_ has joined #angularjs
[08:10:49] *** JohnBat26 has joined #angularjs
[08:10:52] *** davek_ is now known as davek
[08:12:14] *** CiE has quit IRC
[08:12:16] *** nya has quit IRC
[08:12:29] *** Una has joined #angularjs
[08:12:43] *** nya has joined #angularjs
[08:13:46] *** SargoDarya has joined #angularjs
[08:14:44] *** ron_frown has quit IRC
[08:15:22] *** sahbeewah has joined #angularjs
[08:15:36] *** nya_ has joined #angularjs
[08:16:00] *** gunn has quit IRC
[08:17:24] *** opiates_ has joined #angularjs
[08:17:56] *** Xethron has joined #angularjs
[08:18:04] *** renlo has quit IRC
[08:18:13] *** fouadm has quit IRC
[08:18:30] *** SargoDarya has quit IRC
[08:19:05] *** nya has quit IRC
[08:19:26] *** lk has joined #angularjs
[08:19:34] *** tfennelly has joined #angularjs
[08:19:56] *** lk has quit IRC
[08:20:00] *** platonic has quit IRC
[08:20:24] *** jtimon has joined #angularjs
[08:20:39] *** dc has joined #angularjs
[08:20:42] *** cacts has quit IRC
[08:21:01] *** ciwolsey has joined #angularjs
[08:21:39] *** dmrs has joined #angularjs
[08:23:08] *** lemur has quit IRC
[08:23:37] *** Xethron has quit IRC
[08:23:44] *** lemur has joined #angularjs
[08:23:58] *** tfennelly has quit IRC
[08:24:00] *** IJNX has joined #angularjs
[08:25:07] *** dc has quit IRC
[08:26:41] *** platonic has joined #angularjs
[08:26:59] *** renlo has joined #angularjs
[08:27:17] *** dan2k3k4 has joined #angularjs
[08:28:11] *** lemur has quit IRC
[08:28:39] *** tomengland_mbp has quit IRC
[08:29:17] *** dan2k3k4 has quit IRC
[08:29:31] *** opiates_ has quit IRC
[08:31:01] *** sahbeewah has quit IRC
[08:31:05] *** sheplu has quit IRC
[08:31:14] *** joshontheweb has quit IRC
[08:31:26] *** amortimer_ has joined #angularjs
[08:31:55] *** jtimon has quit IRC
[08:31:56] *** jaydubya has quit IRC
[08:32:05] *** fernandojsg has joined #angularjs
[08:32:10] *** jaydubya has joined #angularjs
[08:32:24] *** amortimer_ is now known as amortimer
[08:32:28] *** renlo has quit IRC
[08:32:31] *** Sky[x] has quit IRC
[08:32:59] *** evilaliv3 has joined #angularjs
[08:33:04] *** ezkkk has joined #angularjs
[08:33:19] *** lemur has joined #angularjs
[08:33:25] <fernandojsg> hi everyone
[08:33:38] *** Xethron has joined #angularjs
[08:33:47] *** e0ipso|away is now known as e0ipso
[08:34:01] *** devhoag has quit IRC
[08:34:10] *** Raging_Hog has joined #angularjs
[08:34:23] *** Greed` is now known as Greed
[08:34:51] <fernandojsg> Maybe someone could help me? I'm having troubles to know how to connect a gallery and a preview frame
[08:34:59] *** codeman has quit IRC
[08:35:24] <fernandojsg> basically I've a list of images as a gallery, and I've some instances of galleries on my page, when you click an image It should show up on an big <img> preview div
[08:35:49] <fernandojsg> and I don't know the correct way to share this data, if using the root controller, service ...
[08:36:31] *** wa5ted_ is now known as wa5ted
[08:36:47] *** Usuario has joined #angularjs
[08:37:05] *** Usuario is now known as frobs
[08:38:23] *** joshontheweb has joined #angularjs
[08:38:58] *** xxMatiasFCxx has joined #angularjs
[08:39:34] *** uru|away is now known as uru
[08:39:49] *** evilaliv3 has quit IRC
[08:40:18] *** threesixes has joined #angularjs
[08:40:59] <Grokling> fernandojsg: just a scope variable should work for that I'd think. Probably set it up in your controller so that the same variable is accessed by all your directives.
[08:41:03] *** renlo has joined #angularjs
[08:41:36] *** Sontakey has joined #angularjs
[08:42:13] *** codeman has joined #angularjs
[08:42:23] *** Sontakey has left #angularjs
[08:42:36] *** xxMatiasFxx has quit IRC
[08:43:16] *** codeman has quit IRC
[08:43:42] <fernandojsg> Grokling: but should I define the scope variable like for example selectedImage: "=" in both directives, and have the same variable on the main controller?
[08:44:18] *** Sky[x] has joined #angularjs
[08:44:30] <Grokling> fernandojsg: Sounds right to me.
[08:44:44] *** codeman has joined #angularjs
[08:46:55] *** chrisbirk has quit IRC
[08:47:39] *** lele has quit IRC
[08:48:41] *** one0one has quit IRC
[08:48:43] *** zeezey has joined #angularjs
[08:48:56] *** TheAceOfHearts has quit IRC
[08:50:20] *** lele has joined #angularjs
[08:51:06] *** renlo has quit IRC
[08:51:15] *** jdj_dk has joined #angularjs
[08:51:46] *** mylord has joined #angularjs
[08:52:05] *** morenoh150 has quit IRC
[08:53:56] *** zeezey has quit IRC
[08:53:56] *** joshontheweb has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:14] *** Sjeeke has joined #angularjs
[08:55:18] *** doginal has quit IRC
[08:55:23] *** diefans has joined #angularjs
[08:55:42] *** zeezey has joined #angularjs
[08:56:19] *** Sgeo has quit IRC
[08:56:23] *** doginal has joined #angularjs
[08:56:38] *** Sgeo has joined #angularjs
[08:56:43] *** IsraelOrtuno has joined #angularjs
[08:58:19] *** joshontheweb has joined #angularjs
[08:59:16] *** yaru22 has joined #angularjs
[09:00:01] *** Sjeeke has quit IRC
[09:00:13] *** ezkkk has left #angularjs
[09:00:19] *** doug64k has joined #angularjs
[09:00:29] <dsdeiz> shouldn't i be allowed to use ng-show="record.length > 0"?
[09:00:46] <dsdeiz> if i had $scope.record = ['foo', 'bar', 'baz']?
[09:01:07] *** dan2k3k4 has joined #angularjs
[09:01:25] <Grokling> dsdeiz: Should be. Try {{record.length}} and see what you get..
[09:01:46] <dsdeiz> ahh
[09:02:10] <dsdeiz> doesn't work still
[09:02:18] *** recurrence has joined #angularjs
[09:02:43] *** doginal has quit IRC
[09:02:46] <dsdeiz> ah dang, nvm.. got it now
[09:02:48] <dsdeiz> thx
[09:03:04] *** torghul has joined #angularjs
[09:03:14] *** craigp has quit IRC
[09:03:17] *** yaru22 has quit IRC
[09:03:28] *** jagga has joined #angularjs
[09:03:28] *** Hounddog has joined #angularjs
[09:03:32] *** kirfu has quit IRC
[09:03:47] *** Una has quit IRC
[09:04:02] *** jonasliljestrand has joined #angularjs
[09:04:12] *** Usuario_ has joined #angularjs
[09:04:15] *** AlexZanf has joined #angularjs
[09:04:35] *** codeman has quit IRC
[09:04:38] *** mennea has quit IRC
[09:04:41] *** recurrence has quit IRC
[09:04:44] *** AWAW has joined #angularjs
[09:04:52] *** dan2k3k4 has quit IRC
[09:04:56] *** mennea has joined #angularjs
[09:05:06] *** uris77_ has joined #angularjs
[09:05:14] *** dan2k3k4 has joined #angularjs
[09:06:07] *** blomman has joined #angularjs
[09:06:16] *** Iravan has quit IRC
[09:06:18] *** sixr420- has joined #angularjs
[09:06:27] *** pknordic has joined #angularjs
[09:06:49] *** OddDuck` has joined #angularjs
[09:07:01] *** Routh has quit IRC
[09:07:05] *** plato has joined #angularjs
[09:07:44] *** craigp has joined #angularjs
[09:07:49] *** Sadin has quit IRC
[09:07:53] *** JeffBuhrt1 has joined #angularjs
[09:08:31] *** Iravan has joined #angularjs
[09:08:36] *** OddDuck has quit IRC
[09:08:52] *** c00ljs has joined #angularjs
[09:08:54] *** elmcrest_ has joined #angularjs
[09:09:30] *** kent\n_ has joined #angularjs
[09:09:39] *** dman777_alter has joined #angularjs
[09:10:30] *** nemothekid has quit IRC
[09:11:04] *** pknordic has quit IRC
[09:11:23] *** s00pcan_ has joined #angularjs
[09:11:43] *** mdedetrich has quit IRC
[09:12:27] *** e0ipso is now known as e0ipso|away
[09:12:46] *** craigp has quit IRC
[09:12:52] *** sigurding has quit IRC
[09:14:17] *** mdedetrich has joined #angularjs
[09:14:45] *** frobs has quit IRC
[09:14:45] *** platonic has quit IRC
[09:14:47] *** yekKhaste has quit IRC
[09:14:47] *** JeffBuhrt has quit IRC
[09:14:47] *** AlexZ has quit IRC
[09:14:48] *** plato1 has quit IRC
[09:14:48] *** danecando has quit IRC
[09:14:49] *** DoubleAW has quit IRC
[09:14:49] *** ryst has quit IRC
[09:14:50] *** ses1984 has quit IRC
[09:14:50] *** red_horned_rihno has quit IRC
[09:14:52] *** uris77 has quit IRC
[09:14:52] *** Alina-malina has quit IRC
[09:14:53] *** s00pcan has quit IRC
[09:14:53] *** dimas has quit IRC
[09:14:53] *** dman777 has quit IRC
[09:14:54] *** kent\n has quit IRC
[09:14:55] *** elmcrest has quit IRC
[09:14:55] *** sixr420 has quit IRC
[09:14:56] *** [0__0] has quit IRC
[09:15:07] *** trinips has joined #angularjs
[09:15:10] *** red_horned_rihno has joined #angularjs
[09:15:13] *** Alina-malina has joined #angularjs
[09:15:32] *** CanyonMan has quit IRC
[09:15:37] *** trinips has left #angularjs
[09:15:42] *** sebhoss has joined #angularjs
[09:15:55] *** elmcrest_ is now known as elmcrest
[09:16:32] *** edzez has joined #angularjs
[09:16:35] *** jacuqesdancona_ has joined #angularjs
[09:17:39] *** ses1984 has joined #angularjs
[09:18:59] *** tschundeee has quit IRC
[09:19:39] *** nfroidure has joined #angularjs
[09:19:56] *** Usuario_ is now known as frobs
[09:20:14] *** dimas has joined #angularjs
[09:20:14] *** sebhoss has quit IRC
[09:20:23] <fernandojsg> Grokling: I've create a little plunk: http://plnkr.co/edit/xR3ycGwjgBg4ZTQuKLNr?p=preview see how {{selectedImageIndex}} is not in synch between the galleries and the main controller :/
[09:21:03] *** Routh has joined #angularjs
[09:21:56] *** platonic has joined #angularjs
[09:22:00] <fernandojsg> Grokling: any idea what I'm doing wrong? :/
[09:22:09] *** mtsr has quit IRC
[09:22:25] *** Superhard__ has joined #angularjs
[09:23:10] *** roymiloh has joined #angularjs
[09:23:22] <jagga> $scope.selectedImageIndex = -1;
[09:23:30] <jaydubya> I return an object from an API and I want to iterate over each and insert a new value based on a calculation. Angular.forEach?
[09:23:46] <jagga> Where are you then setting this value once you select a Gallery ID
[09:24:00] <jagga> what should be happening to the SelectedId when you select a different 'Gallery ID'
[09:24:14] <jagga> try be more descriptive please, you dont want Grok to have to do all the investigating himself
[09:24:19] *** sheplu has joined #angularjs
[09:24:39] *** pknordic has joined #angularjs
[09:25:10] <jagga> sync doesn't mean anything. What should happen to SelectedIndex when Gallery ID: (the top 1) is lets say 2.
[09:25:18] *** woah has quit IRC
[09:25:20] <jagga> and why do you have 2 labels THE SAME
[09:25:24] *** cotko has joined #angularjs
[09:25:25] <jagga> 1st Gallery ID
[09:25:28] <jagga> 2nd Gallery ID
[09:26:14] *** joshontheweb has quit IRC
[09:26:18] <fernandojsg> what I mean is that on each gallery I've the selected current Image
[09:26:20] <fernandojsg> selecteImageIndex
[09:26:23] *** mtsr has joined #angularjs
[09:26:38] <fernandojsg> and I want that everytime I update this value on a gallery, clicking on an image
[09:26:46] <fernandojsg> to update the main controller value for selectedImageIndex
[09:26:55] *** yekKhaste has joined #angularjs
[09:27:09] *** phzon has joined #angularjs
[09:27:11] <fernandojsg> so the value on the top will be the same (Hello gallery - Selectedindex: -1)
[09:27:33] <fernandojsg> I don't know if I've explained myself good enough
[09:28:52] <jagga> Now I'm even more confused. First you say it's not in sync (In sync of what?) Now you say the value should stay the same?
[09:29:00] *** sigurding has joined #angularjs
[09:29:28] <fernandojsg> let me try again
[09:29:58] *** ryst has joined #angularjs
[09:30:15] <fernandojsg> I've updated the example, please refresh
[09:30:31] <jagga> Look, if you're trying to access the Gallery ID from each of the Gallery's in your ng-repeat
[09:30:42] <fernandojsg> I've the main controller variables: selectedImageIndex and selectedImage
[09:30:46] <jagga> All you have to do is galleries[x] and access the .id part
[09:30:52] <fernandojsg> and they're used on each gallery instance
[09:31:05] <fernandojsg> and I also have a imagePreview directive
[09:31:19] <fernandojsg> that will use this variable "selectedImage" to show the current selected image
[09:31:50] <fernandojsg> so what i want is that once you click on a image form a gallery, it sets the "selectedImage" variable so the imagePreview directive will be able to read it and show the image
[09:32:09] *** craigp has joined #angularjs
[09:32:17] <jagga> Okay that's much clearer
[09:32:23] <fernandojsg> :D
[09:32:38] *** cbennett has joined #angularjs
[09:32:54] *** gunn has joined #angularjs
[09:32:59] *** Evanion has joined #angularjs
[09:33:43] <fernandojsg> basically is to have "in sync" the selectedImage variable between the imagePreview directive and each instance of the imageGallery directives
[09:34:31] *** blomman has quit IRC
[09:34:34] <jagga> selectedImage: "=",
[09:34:45] <jagga> This in your scope of the directive
[09:34:57] <jagga> and $scope.selectedImage = null;
[09:35:00] <jagga> in your main controller
[09:35:01] *** mennea_ has joined #angularjs
[09:35:05] *** mennea has quit IRC
[09:35:17] *** blomman has joined #angularjs
[09:35:18] *** Sky[x] has quit IRC
[09:35:26] <jagga> selected-image="selectedImage"
[09:35:31] *** alpha080 has joined #angularjs
[09:35:32] <jagga> in your html
[09:35:34] <Grokling> Ah. You know what..
[09:35:36] <jagga> something along the way is going wrong
[09:35:39] <Grokling> !moar
[09:35:39] <UniBot1> Grokling, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)
[09:35:40] <UniBot> Grokling, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)
[09:35:47] <jagga> your directive isn't receiving the juice
[09:36:04] <ProLoser> fucking unibto i hate you so much go die unibot
[09:36:23] <Grokling> Come on ProLoser.. fix that ish already!
[09:36:24] *** pknordic has quit IRC
[09:36:33] <ProLoser> i CANT it's not my fucking code
[09:36:35] <ProLoser> it's nodejitsu
[09:36:52] *** mkulke has joined #angularjs
[09:37:04] *** UniBot1 has quit IRC
[09:37:08] <Grokling> jagga & fernandojsg The primitives in scope thing is messing this all up.. fix that, and it might just about work.
[09:37:09] <jagga> what are you trying to say Grok
[09:37:46] <jagga> I was right yeah? the stuffs aren't going over to his directive
[09:37:49] <fernandojsg> So I should create and object with this data, something like "$scope.imageData={ selectedImage: null, selectedImageIndex: -1}
[09:37:50] *** fbenoit has joined #angularjs
[09:38:01] *** UniBot1 has joined #angularjs
[09:38:02] <fernandojsg> and pass this imageData between directives?
[09:38:19] <fernandojsg> something like <image-gallery imagedata="imageData"> as object instaed of simple variables
[09:38:20] *** cbennett has quit IRC
[09:38:37] *** themime has quit IRC
[09:38:38] *** pknordic has joined #angularjs
[09:39:01] *** guilbep has joined #angularjs
[09:39:03] *** cbennett has joined #angularjs
[09:39:24] <jagga> I don't even know what a primitive is
[09:39:24] <mkulke> hello there, i have colleagues who do not use fn's in the scope like ng-if="isDisabled()", but ng-if="disabled" and then do $watches in the controller to put update $scope.disabled accordingly
[09:39:30] *** tripu has quit IRC
[09:39:34] <jagga> perhaps I know what you're talking about but don't know it by that name?
[09:39:35] <mkulke> it seems to me, this is doing angular's work
[09:39:46] <mkulke> is there a good reason not to call functions on the scope?
[09:39:48] <Grokling> fernandojsg: yes, as an object. Otherwise you break the references, and then stuff doesn't appear to change like it should.
[09:39:54] <Grokling> jagga !primitives
[09:39:54] <UniBot1> Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes.
[09:39:54] <UniBot> Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes.
[09:40:42] <jagga> I see
[09:40:48] *** nemothekid has joined #angularjs
[09:41:54] *** alpha080 has quit IRC
[09:41:57] <jagga> So ng-repeat doesn't have 2 way binding basically
[09:41:59] *** UniBot has quit IRC
[09:42:06] <jagga> therefore your changes aren't getting reflecte
[09:42:06] <jagga> d
[09:42:08] *** alpha080 has joined #angularjs
[09:42:17] <jagga> it's creating it's own inner scope of sort
[09:42:18] *** UniBot has joined #angularjs
[09:42:33] <jagga> and updating that, so when you select an index. You're changing the index in the private scope of your ng-repeat object
[09:42:45] *** UniBot has quit IRC
[09:42:46] <jagga> *space sounds*
[09:42:51] <Grokling> kinda. It's still bound, but to a copy of the thing you started with, not the actual thing you started with.
[09:43:03] *** UniBot has joined #angularjs
[09:43:21] <jagga> http://www.codelord.net/2014/05/10/understanding-angulars-magic-dont-bind-to-primitives/
[09:43:34] <jagga> You might want to include that in your little moar dots thing
[09:43:50] *** jae has quit IRC
[09:44:14] *** oliver___ has quit IRC
[09:44:25] *** mchammer has joined #angularjs
[09:44:30] <fernandojsg> Grokling jagga that works just perfect :) http://plnkr.co/edit/xR3ycGwjgBg4ZTQuKLNr?p=preview
[09:44:39] <fernandojsg> thank you very much you made my day ;)
[09:44:42] <Grokling> what, and spoil the fun of 'googling stuff for yourself now that you know some of the terminology'?
[09:45:10] <jagga> hey I googled already!
[09:45:14] <mkulke> about that ng-if="isDisabled()"?
[09:45:15] <jagga> pass my googles onto the world
[09:45:21] <mkulke> *cough*
[09:45:37] <jagga> There can only be 1 google master
[09:46:02] <Grokling> nice fernandojsg. Always glad to brighten someones day.
[09:46:09] <mkulke> is this a reason not use fn's call in templates?
[09:46:51] *** evilaliv3 has joined #angularjs
[09:47:06] *** nya_ has quit IRC
[09:47:27] <jaydubya> https://gist.github.com/anonymous/1f571d759dcbafb06c0c <-- is there a way to call a factory method from within the resolution of a promise?
[09:47:29] <jagga> hmm, if you need to use functions I don't see why not
[09:47:39] <jagga> I've seen tutorials and stuff use scope functions in the view
[09:47:41] <jagga> sems normal
[09:47:42] <Grokling> fn's calls get run every time a digest runs. That can be heavy. On the otherhand, binding to a primitive like you also demonstrated is a grenade with the pin already pulled.
[09:47:45] <jagga> seems* normal
[09:48:14] <Grokling> You can use functions, just be aware that they will get run a lot, so make them light.
[09:48:36] <mkulke> i'm looking at code, and i see people jump through hoops to have variables on the $scope
[09:48:56] <Grokling> I do ng-if="!mything.disabled"
[09:49:16] <mkulke> like $watching other stuff to assign those $scope variables
[09:49:28] *** MaxV has joined #angularjs
[09:49:42] <mkulke> Grokling: the calc a bit verbose, so i understand they don't want to put it into the template
[09:49:43] *** _mtr has joined #angularjs
[09:50:07] *** jstroem has joined #angularjs
[09:50:23] <mkulke> but this $watch thing just to create a variable on the $scope seems cumbersome and like scope soup to me
[09:50:34] <Grokling> mkulke: Sounds like some people need to learn about services, and keeping one copy of a 'thing' that everywhere else refers to. Pretty much cuts $watch right out of the equation.
[09:50:54] <mkulke> you're doing angularjs work, since in the digest cycle is running that $watch thingie anyway
[09:51:31] *** yekKhaste has quit IRC
[09:51:46] <Grokling> mkulke: even if the calc isn't directly in the template, it's still getting run every digest. If it's verbose, that's probably a bad thing.
[09:51:53] *** laurensclaessen has joined #angularjs
[09:52:03] *** mtsr has quit IRC
[09:52:22] <mkulke> and you have databound variable on the scope.
[09:52:45] *** fbenoit has quit IRC
[09:53:27] <Grokling> !remember moar is :nick, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them) More reading here: http://www.codelord.net/2014/05/10/understanding-angulars-magic-dont-bind-to-primitives/
[09:53:35] *** renlo has joined #angularjs
[09:54:02] <Grokling> There you go jagga.. your googling is now recorded for posterity.
[09:54:07] *** UniBot1 has quit IRC
[09:54:09] *** mAxX-- has quit IRC
[09:54:13] <jagga> I actually read the rest of it grok
[09:54:16] *** jlebrech has joined #angularjs
[09:54:17] *** UniBot1 has joined #angularjs
[09:54:18] *** UniBot1 is now known as UniBot2
[09:54:23] <jagga> and it's probably not a good example afterall
[09:54:34] <jagga> :(
[09:54:47] <jaydubya> in my _.map I don't know how to access the id attribute for each iteration to even call the factory method inside the resolution even if I can
[09:54:49] *** _mtr has quit IRC
[09:55:12] <Grokling> jaydubya: Got codes?
[09:55:12] <mkulke> are you iterating an object?
[09:55:16] <jagga> I know you hate me right now, but the examples the post uses are a little more involved than what the problem we just had here
[09:55:23] <mkulke> _.map is value, key i think
[09:55:29] <jaydubya> https://gist.github.com/anonymous/1f571d759dcbafb06c0c
[09:56:49] <Grokling> jaydubya: obj.id not doing it for you?
[09:57:13] *** fred-fri has joined #angularjs
[09:57:23] *** mkulke has quit IRC
[09:57:30] <Grokling> mkulke: You're thinking of forEach
[09:58:11] <fred-fri> how does mean.js compare to https://github.com/sahat/hackathon-starter and other similar bootstrapping tools?
[09:58:42] *** renlo has quit IRC
[09:58:43] <jagga> fernandojsg, so just to get a clearer picture of the whole problem. Did all you have to do is set the imageData in an object and access the .selectedImage property?
[09:58:44] <fred-fri> im aware mean.js is meant for continuous use throughout the life of the project whereas hackathon starter is literally just a starter
[09:58:46] <jagga> is that all you changed?
[09:59:04] <jaydubya> Grokling: duh! yes, obj.id would give me the iterations id ... but how do I can another factory method from within the resolution of a factory method promise?
[09:59:11] *** marr has joined #angularjs
[09:59:13] <Grokling> jagga: There's something wrong with every article - the point of the moar thing is just to give a framework, and some concepts to grapple with (tbh, I just got tired of typing it all out every few days;-)
[09:59:18] *** neilff has joined #angularjs
[09:59:31] <Grokling> jaydubya: It won't give you the iteration id..
[09:59:37] *** opiates_ has joined #angularjs
[09:59:58] <jagga> I can imagine, it's a good idea though - a very practice solution !
[10:00:02] <Grokling> It'll give you the object id..
[10:00:21] <jaydubya> Grokling: the object id of each iteration, right?
[10:00:31] *** Xethron has quit IRC
[10:00:46] <fernandojsg> jagga: yep. encapsulate all the data i want to share in an object
[10:01:08] <jaydubya> Grokling: so if there are 100 loans, it would live me the loan.id each time loDash loops, right?
[10:01:12] <Grokling> jaydubya: You have an array of loans called allLoans. the map function will run once for each loan. Inside the map function, that particular loan is now called 'obj'
[10:01:16] <fernandojsg> jagga: as Grokling it will let js to pass the values by reference instead of by value if you use simple variables in the scope
[10:01:29] *** tfennelly has joined #angularjs
[10:01:35] <jaydubya> grok, that's what I thought ... cool
[10:01:45] *** mtsr has joined #angularjs
[10:02:01] *** apertoire has quit IRC
[10:02:11] <jagga> Alright, perhaps I'm just a little thick but I think I'll probably get it even more once I encounter this situation
[10:02:22] <jagga> or maybe I'm already not encountering it because I'm doing it the object way
[10:02:24] <jagga> who knows :E
[10:02:24] <Grokling> jaydubya: yes, but be aware that id 1 may be the nth iteration of the map function. If you need the iteration number/index, forEach can give you that.
[10:02:36] *** apertoire has joined #angularjs
[10:02:45] *** SargoDarya has joined #angularjs
[10:02:47] *** opiates_ has quit IRC
[10:03:11] <Grokling> jagga: Just look for the dots. If you've got dots, you're golden. If not.. well, stuff won't work like you intend.
[10:03:21] <jagga> :)
[10:03:48] *** neilff has quit IRC
[10:04:03] *** opiates_ has joined #angularjs
[10:04:24] *** alpha080 has quit IRC
[10:04:27] *** Xethron has joined #angularjs
[10:04:33] *** ries has joined #angularjs
[10:04:37] *** mennea_ has quit IRC
[10:04:48] <Grokling> jaydubya: so, to continue your next part - you can call another factory in there, as long as it's injected into your service/factory/controller whereever you're doing this stuff.
[10:04:57] *** fbenoit has joined #angularjs
[10:05:13] <fernandojsg> Grokling is the buzz lightyear of angularjs: http://makeameme.org/media/created/DOTS-DOTS-EVERYWHERE.jpg :)
[10:05:14] *** mennea has joined #angularjs
[10:05:24] <jaydubya> Grokling: so if for each loan in the map, I need to check if the count of LoansFactory.getPendingVotes(obj.id) is greater than 0. if it is, I need to insert $scope.loan.need_vote = true and if not, I need to insert $scope.loan.need_vote = false. I don't really know how to do that.
[10:05:30] *** blomman has quit IRC
[10:05:58] <Grokling> fernandojsg: :-D
[10:06:06] *** blomman has joined #angularjs
[10:06:11] *** alpha080 has joined #angularjs
[10:06:17] <Grokling> jaydubya: does LoansFactory.getPendingVotes return a promise?
[10:06:47] <ProLoser> fuck unibot
[10:06:53] <jaydubya> yes, it is an $http.get -- that's my problem ... it's not a value, it's a promise
[10:07:11] <Grokling> jaydubya: cool. We can make that work no problem.
[10:07:16] *** SargoDarya has quit IRC
[10:07:20] *** m8 has joined #angularjs
[10:07:33] <Grokling> ProLoser: I'll leave that to you.. too much chaffing for my liking.
[10:08:00] *** Sky[x] has joined #angularjs
[10:10:11] *** intellix has joined #angularjs
[10:10:27] *** jstroem has quit IRC
[10:10:28] *** sahbeewah has joined #angularjs
[10:10:33] *** aslate has joined #angularjs
[10:11:17] *** jonasliljestrand has quit IRC
[10:11:24] *** mtsr has quit IRC
[10:11:38] *** sk87 has joined #angularjs
[10:12:11] *** opiates_ has quit IRC
[10:12:18] *** mtsr has joined #angularjs
[10:12:55] *** jonasliljestrand has joined #angularjs
[10:13:01] *** edy has joined #angularjs
[10:14:40] *** cbennett has quit IRC
[10:15:16] <Grokling> jaydubya: Something like this: http://pastebin.com/ACqfV8C6 (untested and coded without syntax highlighting, so no guarantees AT ALL)
[10:15:40] *** laurensclaessen has quit IRC
[10:15:50] *** ang has joined #angularjs
[10:16:07] <jaydubya> crap!!!! SOB!!!! shit!!!!! I forgot the return
[10:16:24] *** laurensclaessen has joined #angularjs
[10:16:33] <blackkbot> soab*
[10:16:38] *** laurensclaessen has quit IRC
[10:16:41] <jaydubya> i soooo almost had that but the errors made me think I was so far off but i just forgot to return it
[10:16:48] <Grokling> If I had a dollar for every time I've forgotten the return.. I'd be getting paid a lot more than I am!
[10:16:55] *** DarrenCraig has joined #angularjs
[10:16:56] <jaydubya> LOL
[10:17:06] *** mcgurn has joined #angularjs
[10:17:15] *** opiates_ has joined #angularjs
[10:17:40] *** ang has left #angularjs
[10:17:44] <jaydubya> we can land men on the moon, visit mars but we can't create an IDE that will insert a return when we forget it???? LOL
[10:17:56] <jagga> you can
[10:17:59] <jagga> just not for js :D
[10:18:04] *** swag has joined #angularjs
[10:18:07] <jagga> vs spots the no return on c# :)
[10:18:25] <Grokling> It might inject them where you didn't mean to.. which would be more annoying still!
[10:18:28] <blackkbot> you can in js but there isn't a standard ide
[10:18:32] <jagga> thing is there isn't a function header in js, so it doesn't know if you're about to return or not
[10:18:36] *** threesixes has quit IRC
[10:18:49] <jaydubya> then maybe I'll write a framework where I code in C# and it will translate it to js
[10:18:53] <jaydubya> nahhh
[10:18:56] <jagga> I would love it
[10:19:08] *** nya has joined #angularjs
[10:19:10] <jaydubya> tad overkill
[10:19:11] *** Sebastien-L has joined #angularjs
[10:19:33] <jagga> I tried looking at coffee script etc
[10:19:38] <jagga> seems almost just as complicated
[10:19:40] <jaydubya> maybe a tatoo on the back of my left hand with "Return Your Promises"
[10:19:52] <jagga> learn a new syntax just to generate javascript when the new syntax might become deprecated.
[10:20:31] *** Foxandxss has joined #angularjs
[10:20:35] <blackkbot> jagga yeah thats about right
[10:20:55] *** woebtz has quit IRC
[10:21:10] <Grokling> I actually had a set up for a while where I was intentionally not returning promises.. My ui would automagically update itself as the information got resolved. Was technically quite cool, but the users didn't care.
[10:21:48] *** cojack has joined #angularjs
[10:22:06] *** gkap has quit IRC
[10:22:29] *** jonasliljestrand has quit IRC
[10:23:28] *** alpha080 has quit IRC
[10:23:34] *** SahanH has quit IRC
[10:24:01] *** bengillies has joined #angularjs
[10:24:06] *** pilva has joined #angularjs
[10:24:21] <jagga> so you weren't returning promises in the resolve of your route?
[10:24:28] <jagga> etc?
[10:24:38] *** gkap has joined #angularjs
[10:25:00] *** alpha080 has joined #angularjs
[10:25:07] <Grokling> nope. Just giving it a reference to the top level object (which wasn't async) and letting it fill out the rest as it happened.
[10:25:26] *** lemur has quit IRC
[10:25:40] *** rchavik has quit IRC
[10:26:10] *** juampy has joined #angularjs
[10:26:14] *** lemur has joined #angularjs
[10:26:32] *** Navai2 has joined #angularjs
[10:27:10] *** juampy_ has joined #angularjs
[10:27:29] *** jonasliljestrand has joined #angularjs
[10:28:00] *** mchapman has joined #angularjs
[10:28:15] *** Navai2 is now known as Novu
[10:28:17] *** Novu is now known as Nouv
[10:28:17] *** tfennelly has quit IRC
[10:28:36] *** aslate has quit IRC
[10:28:45] *** kirfu has joined #angularjs
[10:29:21] *** juampy__ has joined #angularjs
[10:30:11] <jagga> I see, that is pretty smooth Grokling
[10:30:28] *** juampy has quit IRC
[10:30:28] *** lemur has quit IRC
[10:30:29] <jagga> Don't worry about the users, we appreciate it!
[10:30:58] <Nouv> When would I put expressions in just single braces (like { product.cost }), and when in double? (like {{ product.cost }} )
[10:31:04] *** cbennett has joined #angularjs
[10:32:11] *** StryKaizer has joined #angularjs
[10:32:15] *** frkout_ has quit IRC
[10:32:15] <Grokling> Nouv: Don't think I've come across single curlies in the wild. Doubles are anywhere you want angular to interpolate the values (anywhere not already in an angular context at least)
[10:32:16] *** juampy__ is now known as juampy
[10:32:24] *** cbennett has joined #angularjs
[10:32:26] <Nouv> Grokling: Ok, cheers!
[10:32:37] *** juampy_ has quit IRC
[10:32:53] <Nouv> I'm going through these tutorials - campus.codeschool.com/courses/shaping-up-with-angular-js/
[10:33:51] <Nouv> Are they still recommended?
[10:34:05] *** IJNX has quit IRC
[10:34:21] <sacho_> still?
[10:34:33] <sacho_> Nouv, {{}} is interpolation
[10:34:43] <sacho_> if you saw { } somewhere in an expression, it was an object literal.
[10:34:53] <sacho_> or someone being confused.
[10:35:09] <Nouv> Ok, cheers sacho_
[10:36:12] <Grokling> { product.cost } isn't valid for either interpolation, or object literals, so I'm going to concur with the 'confused' option.
[10:36:55] <jlebrech> is there a chrome plugin to capture requests and storing them for use in tests?
[10:37:16] *** jstroem has joined #angularjs
[10:38:01] *** jtimon has joined #angularjs
[10:38:34] *** mennea has quit IRC
[10:39:32] <Grokling> jlebrech: You can do it manually easy enough..
[10:39:38] *** intellix has quit IRC
[10:40:34] <Grokling> jlebrech: chrome dev tools network tab, right click and 'copy as curl'. Jump over to postman, click import, raw text, and paste it.
[10:40:50] *** azizur has joined #angularjs
[10:41:10] <jlebrech> Grokling: already doing stuff manually
[10:41:14] <jlebrech> :)
[10:41:19] *** qdk has quit IRC
[10:41:24] *** trcm has joined #angularjs
[10:41:28] *** [0__0] has joined #angularjs
[10:41:38] *** swist has joined #angularjs
[10:41:44] <Nouv> Why doesn't this work - http://codepen.io/anon/pen/vEGxRm ?
[10:41:44] *** trcm has quit IRC
[10:41:48] <Grokling> Well, let me know if you find something better..
[10:42:28] <Grokling> Nouv: Because 99% of it is not there..
[10:42:36] <Nouv> Heh
[10:42:47] <Grokling> Nouv, try starting with this: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS
[10:43:01] *** nemothekid has quit IRC
[10:43:38] <Nouv> But I'm just trying to bind the input text to the text inside the div
[10:43:56] *** tarnus has joined #angularjs
[10:44:10] *** Sjeeke has joined #angularjs
[10:44:18] *** josh-k has joined #angularjs
[10:44:53] <Grokling> Nouv: Sure, but your html is not all there, you don't have an angular module, controller, etc etc.. So much missing that you're better to start with the template I linked, and play around with your input stuff there.
[10:45:17] <Nouv> Ahh, I didn't know you needed that for this
[10:45:41] *** KushS has joined #angularjs
[10:46:03] <Grokling> If you want to use angular, you kinda have to use angular to do it..
[10:46:46] <Nouv> http://codepen.io/anon/pen/vEGxRm?editors=101
[10:47:00] <Nouv> Sorry, should have thought that through more ;P
[10:47:04] *** swag has quit IRC
[10:48:26] *** platonic has quit IRC
[10:48:45] *** Sjeeke has quit IRC
[10:48:58] *** tarnus has quit IRC
[10:49:01] <Grokling> Congrats Nouv. That qualifies as the most minimalist angular app I've seen so far.
[10:49:26] *** SFeser has joined #angularjs
[10:49:30] <Nouv> Haha :D
[10:49:47] *** mcgurn has quit IRC
[10:50:06] *** speaking1ode has quit IRC
[10:50:20] *** craigp has quit IRC
[10:50:49] <Nouv> Wow, these shaping up with angular.js videos are excellent
[10:50:52] *** gunn has quit IRC
[10:52:22] *** mahlke has joined #angularjs
[10:52:44] *** rtpg has quit IRC
[10:53:27] *** craigp has joined #angularjs
[10:54:27] <jaydubya> Nouv: did you see John Lindquist "fix" the Code School's app in the screencast's section ... his refactors are awesome, as well
[10:54:38] *** mahlke has quit IRC
[10:54:43] <Nouv> I don't think I'm that far in yet
[10:54:51] *** platonic has joined #angularjs
[10:54:52] <Nouv> Only on level 3
[10:55:29] <jaydubya> Nouv: well, don't miss Soup to Bits: Shaping Up with Angular JS
[10:55:43] *** jstroem has quit IRC
[10:55:46] <jaydubya> ^in screencasts
[10:55:48] *** startupality has joined #angularjs
[10:55:49] *** c00ljs has quit IRC
[10:56:01] <Nouv> I'll add that to my todo list, cheers!@
[10:56:11] *** jstroem has joined #angularjs
[10:56:23] *** c00ljs has joined #angularjs
[10:56:40] *** jstroem has quit IRC
[10:57:43] *** speakingcode has joined #angularjs
[10:57:45] *** yi has joined #angularjs
[10:58:43] *** josh-k_ has joined #angularjs
[10:58:48] *** yi has quit IRC
[10:59:21] *** Iravan has quit IRC
[10:59:23] *** Caroga_afk is now known as Caroga
[10:59:56] *** N2 has joined #angularjs
[11:00:00] *** Nouv has quit IRC
[11:00:04] *** N2 is now known as Nouv
[11:00:18] <jaydubya> Grokling: Because of the API, the method always returns true despite my attempt to fix it --> http://laravel.io/bin/JxloB
[11:00:35] *** AimerPaddle has joined #angularjs
[11:00:51] *** aendrew has joined #angularjs
[11:00:56] <jaydubya> the data object counts as 1 so length is never 0
[11:01:33] *** KushS has quit IRC
[11:01:34] *** longabaug has joined #angularjs
[11:02:16] *** caitp has joined #angularjs
[11:02:17] *** josh-k has quit IRC
[11:02:37] <Grokling> length only works on an array (which it seems you have), so it should be 0 for loan 2. Stick a console.log in there to better see what you're dealing with at each level.
[11:02:41] *** longabaug has quit IRC
[11:03:01] <Grokling> Do you need pvs.data.data perhaps??
[11:03:15] *** opiates_ is now known as opiates
[11:03:29] *** SargoDarya has joined #angularjs
[11:03:35] <opiates> Anyone have experience with Mobile Angular UI - http://mobileangularui.com/ ?
[11:03:39] <Grokling> (just guessing seeing as you have response.data.data further up.)
[11:03:45] *** gkap has quit IRC
[11:04:22] <jaydubya> Grokling: you ARE a genius! data.data fixed it! Do you have any idea why all of my api returns need data.data?
[11:04:28] <opiates> I've been using AngularJS + Bootstrap + various AngularUI components so far. It's a single-page application that I'd like to work smoothly cross-device, but if I'm sacrificing desktop/laptop usability for mobile, I would rather stick with what I've got already.
[11:04:32] *** sebhoss has joined #angularjs
[11:04:34] <Nouv> Should all logic of the application go in the js file instead of in the html?
[11:04:44] <Grokling> opiates: No, but if you're looking around, also have a look at ionicframework.com
[11:05:03] <opiates> ><
[11:05:08] <opiates> Grokling: thanks lol, more to look at ;p
[11:05:15] *** arthas has joined #angularjs
[11:05:20] <opiates> if it helps, the application is essentially a stats/data visualisation app
[11:05:21] *** smoores has quit IRC
[11:05:24] *** wosick has joined #angularjs
[11:05:29] <fernandojsg> indeed ionicframework is so cool :)
[11:05:46] <opiates> think SAS Studio (if you know any statistics software/languages)
[11:05:52] <opiates> except much more directed
[11:05:54] <fernandojsg> opiates: it gives you a lot of nice components and runs smoothly on mobile
[11:05:58] <opiates> hrmm
[11:05:59] *** ries has quit IRC
[11:06:32] <opiates> is the mobile-ness responsive, or separate site (e.g. m.domain.com vs. domain.com)?
[11:06:36] *** blomman has quit IRC
[11:06:44] <opiates> b/c i already sort of have a template done in bootstrap
[11:06:51] <fernandojsg> no
[11:06:54] <Grokling> angular-material is upcoming too - a bit raw yet perhaps, and I understand that ionic and material are on a convergence course at some point..
[11:06:56] <fernandojsg> with ionic you get a cordova project
[11:06:59] <opiates> ah
[11:07:03] <fernandojsg> so you will compile it like a native application
[11:07:09] *** caitp has quit IRC
[11:07:10] *** blomman has joined #angularjs
[11:07:11] <fernandojsg> for ios, android, wphone..
[11:07:17] <opiates> hrm i might just stick with the angular mobile ui and customise the Less as needed :/
[11:07:28] <opiates> although these two are def things i'm bookmarking, thanks guys
[11:07:30] <Grokling> You don't 'have' to compile it - runs fine as a web delivered app too.
[11:07:56] <fernandojsg> well yep, you can take the web folder and it will just work for simple apps
[11:08:07] <Grokling> Mine is responsive, equally happy on desktop, android or iOS. Just reshuffles itself accordingly.
[11:08:08] <opiates> ah
[11:08:09] <fernandojsg> but you won't be able to use platform specific api
[11:08:09] *** SargoDarya has quit IRC
[11:08:17] <opiates> hrmmm
[11:08:28] <fernandojsg> like take pictures, batery status, connection status, vibration and so on
[11:08:45] *** kirfu has quit IRC
[11:08:55] <opiates> oh
[11:09:04] <Grokling> I don't need camera, G sensors etc for my app, so I'm happy either way.
[11:09:09] <opiates> yeah, my project doesn't need anything like that
[11:09:11] *** sebhoss has quit IRC
[11:09:19] <opiates> but i'm definitely bookmarking
[11:09:20] <opiates> ;D
[11:09:24] <opiates> thanks Grokling and fernandojsg !
[11:09:28] <Spot__> How I can define global variables from the index.html? Something like this <html ng-app="app" ng-controller="AppCtrl as main" ng-init="main.myGlobal = 'foo'"> or similar would be nice :)
[11:09:35] <Nouv> Should all logic of the application go in the js file instead of in the html?
[11:09:48] *** siaghofer has joined #angularjs
[11:09:55] *** Superhard__ has quit IRC
[11:09:57] *** wosick has quit IRC
[11:10:05] *** aendrew has quit IRC
[11:10:06] <Grokling> Nouv: Yes, in services/factories/resolves as much as possible..
[11:10:06] <Spot__> OK, nevermind. I was missing quotation marks :P
[11:10:28] *** aendrew has joined #angularjs
[11:10:30] <Spot__> I want to write one global on backend side to the index.html, so that's why it needs to be on the index.html. And it works just like that.
[11:10:42] <Nouv> Grokling: Ok, cheers. So for example form submitting - checking for validation would go in the function in app.js, not in ng-submit?
[11:10:56] *** sahbeewah has quit IRC
[11:11:17] *** cbennett_ has joined #angularjs
[11:11:26] <Grokling> Spot__: also angular.module(...).constant('constantName', constantValue)
[11:11:36] *** aendrew has quit IRC
[11:11:43] *** cbennett has quit IRC
[11:11:54] *** jlambert121 has quit IRC
[11:12:01] *** mennea has joined #angularjs
[11:12:14] <Spot__> Grokling: The problem is that I have automated build system, so the only "constant" I can touch is the main index.html - which grunt then evaluates with the real global variable I need to use int he app.
[11:12:15] *** cbennett has joined #angularjs
[11:12:28] <Grokling> Nouv: ng-submit would call a function from elsewhere that did the validation stuff.
[11:12:38] <Nouv> Grokling: Ok, cheers
[11:12:45] *** friedrich has joined #angularjs
[11:12:46] <Spot__> But it works just like that, I basically have that line there - ng-init="main.myGlobal = '<: backends stuff :>'"
[11:12:49] <Grokling> Spot__: Why can grunt not do that to a js file equally as well as an html file?
[11:12:51] <Nouv> Grokling: So basically anything more than reading / model variables should go in the js?
[11:13:03] *** mylord has left #angularjs
[11:13:41] *** friedrich has quit IRC
[11:13:42] *** azizur has quit IRC
[11:13:45] <fernandojsg> Spot__: can't you have something like writing a staticvariables.js and inside write what Grokling says: angular.module.....constantt('myglobal', '<:asdfasdf:>'") ?
[11:13:53] <fernandojsg> and then include this staticvariables.js on your .html
[11:14:26] <fernandojsg> Nouv: you should try to take out all the business logic from your html, or at least as much as you can :)
[11:14:34] <Spot__> That's basically the base url that I need :)
[11:14:35] <fernandojsg> Nouv: and put it on the .js
[11:14:47] <emocakes> ng-init
[11:14:48] <emocakes> yuck
[11:14:51] <Spot__> If I would need more stuff, like some database variables, account names, etc - obviously I could just use REST
[11:14:54] <Nouv> fernandojsg: Awesome, cheers. I was hoping that was the case.
[11:15:16] <fernandojsg> :)
[11:15:18] <Grokling> Nouv: html is for display only. You can bind stuff to the html, but that's all you should really be doing in there. Controllers are a means to connect services to the view/html, and should have minimal code in them aside from that (they're going away in angular 2) Put everything you can into factories/services and resolves.
[11:15:25] <emocakes> Spot why not put that onto a global
[11:15:34] *** aendrew has joined #angularjs
[11:15:35] <jaydubya> Grokling: since you used $q.all() wouldn't it be possible for me to do the other two similar calculation/inserts in the same method (better than Copy/Paste)
[11:15:52] <Nouv> Grokling: They are going away in angular 2? Wouldn't that just make it like jquery then?
[11:16:00] <Nouv> I mean in the way selection works
[11:16:15] <Spot__> fernandojsg: And of course in future I might just generate the configuration JS on the fly in backend, and just lazy load it :)
[11:16:31] *** maccarini has joined #angularjs
[11:16:38] *** AimerPaddle has quit IRC
[11:16:57] <Grokling> Nouv: I don't jQuery, so can't say. They'd have to take a lot out of angular to make it equivalent to jQuery.
[11:17:24] *** mdedetri_ has joined #angularjs
[11:17:25] <Nouv> Ok, good.
[11:17:26] *** maccarini has quit IRC
[11:17:56] <Nouv> But from what I see on reddit, a lot of people are unhappy with 2.0?
[11:18:04] *** gunn has joined #angularjs
[11:18:22] <Grokling> jaydubya: Probably. Not sure what you're trying to do, but probably.
[11:18:30] *** mdedetrich has quit IRC
[11:18:40] *** jdivock_ has joined #angularjs
[11:18:50] *** gunn has joined #angularjs
[11:19:24] *** SomeKittens has quit IRC
[11:19:32] <fernandojsg> Nouv: At then end it doesn't really matters if something is going to be good or bad, people just don't like big changes
[11:19:53] <Nouv> Yeah, I guess
[11:19:55] <Grokling> Nouv: 2 is a bit of a paradigm shift from what little I know of it. Some people like it, many are scared of the unknown. Seems like it's not really a version increment, more a whole new thing born out of stuff learned from angular 1.x
[11:19:58] *** beyersdor has joined #angularjs
[11:20:01] <fernandojsg> Nouv: thinking about rewrite most of your code to adapt to a new version doesn't make you feel good :D
[11:20:19] <Nouv> fernandojsg: Yeah I read that they had no migration path from 1.x to 2.0
[11:20:37] <Grokling> Which is why you don't put stuff in controllers, and make solid use of services and factories. Minimal rework then.
[11:20:41] *** slobo has quit IRC
[11:20:52] <Nouv> Makes sense
[11:21:09] *** AciD`` has joined #angularjs
[11:21:10] <Grokling> It's a couple of years away anyway.. so running around screaming at this point makes little sense.
[11:21:25] *** Anton_ has quit IRC
[11:21:35] <fernandojsg> when you break backward compatibility, everything is getting crazy. "similar" happens with jquery 1.x -> 2.x, python 2.7 -> 3.x and even those weren't as big changes as in angular v2 I think
[11:21:47] *** frkout has joined #angularjs
[11:21:57] *** platonic has quit IRC
[11:22:08] <jaydubya> Grokling: I have two other checks like need_vote (has_comment and is_stale) that work exactly the same. So, of course (b/c I am an idiot), I figured I would copy/paste for the other two but seeing $q.all() made me think that I could queue up all three at once
[11:22:16] <fernandojsg> Grokling: btw one question about good practises in angular that I don't get yet
[11:22:26] *** slobo has joined #angularjs
[11:22:45] *** nc90 has joined #angularjs
[11:22:46] *** dc has joined #angularjs
[11:22:47] *** laurensclaessen has joined #angularjs
[11:22:57] *** jdivock_ has quit IRC
[11:23:07] <fernandojsg> Grokling: Imagine you have a factory (REST) "patients" where you have typical actions, update, delete, get, etc. And then in your Controller you have somthing like: $scope.deletePatient() that call this factory to delete
[11:23:09] <Grokling> jaydubya: So three checks in parallel?
[11:23:42] <Grokling> fernandojsg: You could do it that way, sure.
[11:23:46] *** frkout_ has joined #angularjs
[11:23:47] <jaydubya> yes
[11:23:49] <fernandojsg> Grokling: then you maybe want to include some kind of validation, like show a modal dialog asking for confirmation, and once, deleted, show a notification or something
[11:23:52] <jaydubya> Grokling: yes
[11:24:31] *** beyersdor has quit IRC
[11:24:33] <fernandojsg> Grokling: if you're going to have multiples views with that "$scope.deletePatient()" full of modals calls, notifications, and factory calls, it's better to refactor and create this function to be accesible to everyone
[11:24:51] <fernandojsg> Grokling: instead of having it on each controller what could be better? Using a service to store this function?
[11:25:04] <Grokling> jaydubya: You're going to end up with three arrays of potential 'true' objects, and then you need to return only the ones that are in all three?
[11:25:13] *** tomphp has joined #angularjs
[11:25:18] *** tomphp has quit IRC
[11:25:46] *** startupality has quit IRC
[11:26:01] *** startupality has joined #angularjs
[11:26:33] <jaydubya> Grokling: I didn't understand that question but each loan could have any combination of the three
[11:26:55] <Grokling> fernandojsg: Yes. Either do the OO thing, and make it patient.delete(), or let it be a factory method, and assign that to $scope (that way the assignment is the only thing the controller is doing)
[11:27:00] *** frkout has quit IRC
[11:27:17] *** dc has quit IRC
[11:27:18] <Grokling> Personally I'm OO, and would just patient.delete()
[11:27:21] *** axsuul has quit IRC
[11:27:56] <fernandojsg> Grokling: but it's "angular way" to include those confirmation modals and notification calls (that are plain UI) in the factory patient (REST API) ?
[11:28:14] *** platonic has joined #angularjs
[11:28:18] <Grokling> jaydubya: You have one set of loans. You're passing that same set into three different criteria tests. You only want to ultimately return loans that pass all three tests?
[11:28:24] <fernandojsg> Grokling: or should be another factory like a wrapper of just data patient factory. that will act like an interface between the UI and the proper data factory
[11:30:17] <Grokling> fernandojsg: I don't think there's an 'angular way' particularly - at some point your own coding style/project structure preferences take over. As long as you're not doing it in the view, or in the controller, you won't hear too many objections.
[11:31:18] <jaydubya> Grokling: nope, i need to return all the loans ... each will have an indicator that shows if a (1) vote is needed, (2) comments are available, and/or (3) activity is more than 72 hours overdue
[11:32:05] <fernandojsg> Grokling: that's the problem right now I'm used to include those validation forms call and stuff like that on my controller. Should I take them out and use service instead right?
[11:32:36] *** DrMabuse has joined #angularjs
[11:33:10] *** jstroem has joined #angularjs
[11:33:30] *** sheplu has quit IRC
[11:33:53] <Grokling> jaydubya: Cool, that's much simpler then. Add another $q.all inside your map (remember to return it ;-)
[11:34:26] <Grokling> fernandojsg: right.
[11:35:49] <fernandojsg> Grokling: but it's also recommended to leave the REST api factory just as is, only as a pure data interface that just "understand" of delete items, create, modify or custom actions, but just like a mere interface with the REST API, no having additional business logic or UI stuff like modals and notifications
[11:36:18] <Grokling> fernandojsg: Perhaps you need another layer in that case?
[11:36:22] *** Evanion has quit IRC
[11:36:23] *** blomman has quit IRC
[11:36:32] *** plekplek has quit IRC
[11:36:36] *** glitch-hat has joined #angularjs
[11:36:57] <jaydubya> Grokling: OK, so it's like $q.all( //do need_votes ).$q.all( //do has_comments ).$q.all( //do is_stale ).then( $scope.loans = loans; )?
[11:36:59] *** blomman has joined #angularjs
[11:37:12] *** plekplek has joined #angularjs
[11:37:18] <fernandojsg> Grokling: yep that what I mean, that maybe the thing is that I need another class to act like a wrapper, let's say PatientServiceUI that will be called by the controller and it will be the responsble to make calls to the Patientfactory (REST)
[11:38:00] <fernandojsg> Grokling: so I'll inject this PatientServiceUI in the controller and do things like: PatientfactoryUI.delete(id), and this function will show modal, paint notifications, delete from rest, etc...
[11:38:20] *** frkout_ has quit IRC
[11:38:30] *** _mtr has joined #angularjs
[11:39:11] *** aliocha has joined #angularjs
[11:39:17] *** aslate has joined #angularjs
[11:40:04] *** VictorBjelkholm has joined #angularjs
[11:40:12] <Grokling> fernandojsg: Something like that. I have an apiFactory, and then I have a patientFactory.
[11:40:20] *** siaghofer has quit IRC
[11:40:29] <fernandojsg> okok
[11:40:37] <Grokling> patientFactory has methods to get things from apiFactory, and does other stuff besides.
[11:40:53] *** underhillj has quit IRC
[11:40:58] <fernandojsg> Grokling: and just for curiosity... is there any way to call directly to this ApiFactory directly from the html? or isn't good way
[11:41:22] *** Sky[x] has quit IRC
[11:41:42] <fernandojsg> Grokling: I mean, I end up in myu controller having something like $scope.deletePatient() { apifactory.deletePatient() }, $scope.assignPatientBlabla() { apiFactory.assignPatientBalblaba()}
[11:41:50] <Grokling> You could, but I would strongly suggest avoiding it. If you're dealing with a patient, let the patientFactory do it.
[11:41:53] *** mennea has quit IRC
[11:42:02] <zwischenzug> hello. wondering if there is a directive for ng-visibility, which works like ng-show?
[11:42:05] *** mennea has joined #angularjs
[11:42:26] *** sheplu has joined #angularjs
[11:42:30] <fernandojsg> Grokling: so basically instead of having <button ng-click="deletePatient()"> have something like <button ng-click="api.deletePatient()">
[11:42:36] <Grokling> jaydubya: I was thinking something like this: http://pastebin.com/rUsxPnF9
[11:42:53] *** Evanion has joined #angularjs
[11:43:19] *** _mtr has quit IRC
[11:43:42] *** mdedetri_ has quit IRC
[11:43:58] *** aslate has quit IRC
[11:44:15] *** mennea has quit IRC
[11:44:27] <fernandojsg> Grokling: when you meant that you have like apiFactory and patientFactory, you were talking also about that apiFactory really have a method like "deletePatient" and it call patientFactory.delete method, so PatientFactory is not exposed to the controller, just the apiFactory right?
[11:44:54] *** mennea has joined #angularjs
[11:45:11] *** e0ipso|away is now known as e0ipso
[11:45:20] <Grokling> fernandojsg: delete is something you do to 'a' patient, so I'd make it an instance method. So you'd have ng-repeat="patient in patients" and then <button ng-click="patient.delete()"> BUT, you're talking about doing other stuff besides, so you can either have more than one function triggered by that ng-click, OR, you call a factory method, and pass it the instance (or id)
[11:46:02] *** mennea has quit IRC
[11:46:22] <Grokling> patientFactory is injected into the controller. apiFactory is never seen, only used by patientFactory to interact with the api.
[11:47:11] <fernandojsg> Grokling: so in your example which one will be the "resource" connector with the RESTful api? apiFactory right?
[11:47:20] <Grokling> right.
[11:47:23] <jaydubya> Grokling: I gotcha ... duh! ... $q.all(1,2,3) NOT $q.all(1), $q.all(2), $q.all(3) <-- stupid!
[11:47:25] <fernandojsg> and patientfactory will hold the UI and other stuff
[11:47:30] <Grokling> yes
[11:48:20] <fernandojsg> okok now i understand, I was thinking the opposite
[11:49:07] *** Dead_Thinker has joined #angularjs
[11:49:10] <fernandojsg> so in that case, ng-repeat="patient in patients", <button ng-click="patientFactory.delete(patient.id)"> <-- Will it be right? or better use a method from the controller and in that method call the patientFactory.delete ?
[11:49:59] <Grokling> In the controller, $scope.patientFactory = patientFactory; would be perfectly valid, and nice and thin.
[11:50:13] <fernandojsg> cool
[11:50:14] <fernandojsg> :)
[11:50:51] *** Dead_Thinker has left #angularjs
[11:51:11] <fernandojsg> and regarding the apiFactory, If I'm having multiple resources like patient, users and so on, it's better to have a factory for each one right? Like PatientFactoryAPI, function($resource).... return $resource(....)...
[11:51:25] <Grokling> To my mind, 'service' is a better fitting pattern for this use than factory, but they amount to pretty much the same thing in the end.
[11:52:00] <fernandojsg> Grokling: patientService yep, and leave patientFactory for the RESTAPI
[11:52:12] <Grokling> I have a single apiFactory (I have a single api) and all the other factories interact with it by passing appropriate variables.
[11:52:54] <Grokling> The key difference is the url, and that's easy enough to pass in.
[11:53:08] <fernandojsg> Grokling: but you have the concept ot many resources on this apifactory? like I said for users, patients and so on
[11:53:31] *** tfennelly has joined #angularjs
[11:53:42] <fernandojsg> Grokling: I think every example of factory using $resource I've seen it's using just one resource per factory, I've no idea how to return more than one
[11:54:05] <Grokling> fernandojsg: Maybe your apiFactory is cleverer than mine - mine just wraps and unwraps $http.
[11:54:18] <fernandojsg> ah ok
[11:54:25] <fernandojsg> i'm not using $http, I'm just using plain $resource
[11:55:06] <Grokling> Same same.. just with a bit less sugar on it, and with a less exposed promise interface.
[11:55:07] <fernandojsg> for example http://pastebin.com/LDCMZG2A
[11:55:16] *** diefans has quit IRC
[11:55:42] *** blomman has quit IRC
[11:55:50] *** platonic has quit IRC
[11:55:54] *** ries has joined #angularjs
[11:55:55] *** StryKaizer has quit IRC
[11:57:19] *** Solid1_afk is now known as Solid1
[11:57:20] *** startupality has quit IRC
[11:57:22] <fernandojsg> Grokling: so you will have something like apiFactory.deleteUser(), apiFactory.deletePatient() both in the same factory
[11:57:52] *** cavallari has joined #angularjs
[11:58:03] <Grokling> fernandojsg: I have apiFactory.get(url, params)
[11:58:39] <fernandojsg> okok
[11:58:54] <Grokling> my Patient factory could call apiFactory.get('/patient',{id:1})
[11:59:07] <fernandojsg> right
[11:59:09] <fernandojsg> cool ;)
[11:59:41] *** rchavik has joined #angularjs
[12:00:09] *** mennea has joined #angularjs
[12:00:17] <Grokling> apiFactory takes care of prefixing the rest of the URL, my auth token etc, and cutting the params into a valid request. Then it unwraps the response, deals with errors, and returns data if there was any.
[12:00:48] *** google has joined #angularjs
[12:00:49] <google> Hi
[12:01:02] *** moo_oose has joined #angularjs
[12:01:04] *** VictorBjelkholm has quit IRC
[12:01:12] *** rchavik has quit IRC
[12:01:14] *** jonasliljestrand has quit IRC
[12:01:35] *** google has quit IRC
[12:01:46] * Grokling feels like talking to google would be wrong. Shoulda called themselves Siri..
[12:01:51] <Caroga> lol
[12:02:31] *** platonic has joined #angularjs
[12:02:36] *** azizur has joined #angularjs
[12:02:52] <Grokling> google: !google google
[12:02:52] <UniBot2> google: http://lmgtfy.com/?q=google
[12:02:53] <UniBot> google: http://lmgtfy.com/?q=google
[12:02:53] <Grokling> :-)
[12:03:15] <fernandojsg> Grokling: maybe do you have some github or similar with your implementation? or a place where have a look at similar approach?
[12:03:17] <fernandojsg> :D
[12:04:07] *** Siyfion has joined #angularjs
[12:04:21] *** SargoDarya has joined #angularjs
[12:04:37] <Grokling> fernandojsg: Not with my apiFactory stuff. and My ordinary factory stuff is 'advanced usage', and probably will confuse more than help you I suspect.
[12:06:00] <fernandojsg> :D
[12:06:02] <fernandojsg> okok
[12:06:23] <jagga> !google angularjs services
[12:06:23] <UniBot2> jagga: http://lmgtfy.com/?q=angularjs+services
[12:06:23] <UniBot> jagga: http://lmgtfy.com/?q=angularjs+services
[12:06:26] *** Nivag_ has quit IRC
[12:06:46] *** moo_oose has quit IRC
[12:06:48] <jagga> :p
[12:06:56] *** c00ljs has quit IRC
[12:07:05] *** moo_oose has joined #angularjs
[12:08:15] <fernandojsg> :D
[12:08:18] <Grokling> jagga there's also:
[12:08:18] *** Left_Turn has joined #angularjs
[12:08:25] <fernandojsg> why the need of 2 unibots? :D
[12:08:27] *** raibutera has joined #angularjs
[12:08:28] <Grokling> jagga: !lucky duck
[12:08:28] <UniBot2> jagga: http://lmgtfy.com/?q=duck&l=1
[12:08:29] <UniBot> jagga: http://lmgtfy.com/?q=duck&l=1
[12:08:34] <raibutera> hmm, my google fu is failing me. I'm migrating from 1.2.26 -> 1.3 and see that angular expressions cannot call functions anymore. I was using functions on the scope to generate text/attributes, (sometimes using service methods), obviously I can't do that anymore - so what is the "right" way of doing it?
[12:08:57] *** Hounddog has quit IRC
[12:09:02] <jagga> i never quite knew why people use the i feel lucky
[12:09:06] *** SargoDarya has quit IRC
[12:09:09] <jagga> i need to google what it actually does :E
[12:09:28] <jagga> right first result :E
[12:09:32] <raibutera> jagga it just goes to first result
[12:09:34] <jagga> Good stuff ye
[12:09:38] <raibutera> skips a whole step
[12:09:40] <Grokling> fernandojsg: There's no need. uniBot is just schizophrenic lately. The guy who made the bot blames the service hosting the bot.. and they don't give two shakes of a bot's leg.
[12:09:56] <fernandojsg> :D
[12:10:09] <jagga> bot's leg ;p
[12:10:48] *** Superhard__ has joined #angularjs
[12:12:16] *** mrpj has quit IRC
[12:12:32] *** tangorri has joined #angularjs
[12:12:52] *** elyssonmr has joined #angularjs
[12:13:22] *** Superhard__ has quit IRC
[12:13:36] <fernandojsg> btw, is there any convention for services and factory names? like camel case or first letter uppercase? patientService or PatientService
[12:13:55] *** Juanchito has joined #angularjs
[12:14:42] *** VictorBjelkholm has joined #angularjs
[12:15:01] <raibutera> fernandojsg I've seen many different conventions for both, but generally I understand that best practice is namespace using a module name at beginning, and lower camel case for service names ending with Service
[12:15:10] <Grokling> usually camel. Firstletter uppercase is (by convention) used for instances.
[12:15:21] *** antons has quit IRC
[12:15:41] <fernandojsg> ok
[12:15:54] <raibutera> Grokling FYI: first letter is also camelcase, it's called upper camelcase IIRC
[12:16:02] *** swist has quit IRC
[12:16:19] <Grokling> That said, I'm a rebel without a cause, and my patient factory is called Patient.
[12:16:42] <Grokling> raibutera: I always wondered whether the camel was meant to be taking a drink, or looking where it was walking..
[12:16:48] *** Grokling_ has joined #angularjs
[12:17:33] <Grokling> Look at that.. my laptop just spontaneously woke up in the middle of the night and came to join us..
[12:17:44] <raibutera> I have a UserService, a ProfileCtrl, an applicationsService and a ParseSrv so *shrug*
[12:18:01] <Grokling> Conventionally unconventional.
[12:18:23] <fernandojsg> Grokling: what you mean with instances? I used to uppcase for class definition, but as I far as I understand a factory or a service is a singleton instance so I don't get it
[12:18:41] *** caitp has joined #angularjs
[12:20:00] <Grokling> fernandojsg: True. Factories are meant to 'make' things. That's the point of the pattern traditionally. One carFactory can create instances of cars. Then you're starting to talk OO, and people get bipolar.
[12:20:16] *** soee has joined #angularjs
[12:20:24] *** Fire-Dragon-DoL has quit IRC
[12:20:25] <Grokling> or polarised?
[12:20:30] <fernandojsg> :D
[12:21:00] <Grokling> Hear all sorts in here.. I learned about prostrate cancer the other week. Apparently you can get it from lying down.
[12:21:30] *** pknordic has quit IRC
[12:21:54] <Grokling> fernandojsg: Here's a 'simple' version of my use of the factory pattern. http://plnkr.co/edit/PnP60l8sqZML20b0vEb6?p=preview
[12:22:42] *** bc_ has quit IRC
[12:23:06] *** caitp has quit IRC
[12:23:06] *** raibutera has quit IRC
[12:23:12] *** bc_ has joined #angularjs
[12:23:56] *** startupality has joined #angularjs
[12:24:37] *** jae has joined #angularjs
[12:24:38] *** mrpj has joined #angularjs
[12:25:03] *** tschundeee has joined #angularjs
[12:26:24] <fernandojsg> Grokling: ok thanks.
[12:26:36] *** apertoire has quit IRC
[12:27:01] <fernandojsg> so you use capital camel as you said yep
[12:27:42] <fernandojsg> so in the example I told you before, if i inject PatientService in my controller. I could have something like $scope.patientService = PatientService. And then in my view <button ng-click="patientService.deletePatient(id)"
[12:28:04] *** intellix has joined #angularjs
[12:28:11] <fernandojsg> is somehow following convention? or should I keep the capital case on $scope.patientService -> $scope.PatientService
[12:28:17] <fernandojsg> I know stupid question but just to know :D
[12:28:24] *** webus has joined #angularjs
[12:28:45] *** jae is now known as Jae
[12:28:47] *** bc_ has quit IRC
[12:28:57] *** ninkotech has quit IRC
[12:29:28] *** IvailoStoianov has joined #angularjs
[12:29:35] *** kpax has joined #angularjs
[12:29:43] <Grokling> I feel like it should probably be lowerCamelCase everywhere, but then I found it conflicted with variable names for me(because I don't have Factory tacked on the end) so went with UpperCase for the factories.
[12:29:45] *** mennea has quit IRC
[12:29:57] *** shpoont has joined #angularjs
[12:30:01] <fernandojsg> ok
[12:30:09] *** ninkotech has joined #angularjs
[12:30:10] <fernandojsg> i thought the same yep
[12:30:25] *** mennea has joined #angularjs
[12:30:34] <Grokling> Got sick of typing 'factory' everywhere and bloating out my code for no good reason that I could see.
[12:30:49] <fernandojsg> :)
[12:31:08] <fernandojsg> and the same goes for services? or services you use just plain camel
[12:31:15] <kpax> what would be the best way to accept the "root" (the the actual root scope) of a route controller when using recursive templates? The depth is unkown. I know several ways of accessing it. But I would like the cleanest and most angular way possible
[12:32:16] <kpax> When I built a widget based system in Knockout is declared a special scope called $widgetRoot, is it possible to do something similiar here?
[12:32:24] <webus> hi to all
[12:32:31] *** bayousoft has joined #angularjs
[12:32:45] *** tarnus has joined #angularjs
[12:33:03] *** Sjeeke has joined #angularjs
[12:33:06] <kpax> this would basicly be $controllerRoot
[12:34:27] *** glaksmono has quit IRC
[12:34:27] *** fairuz has quit IRC
[12:34:39] *** fedenunez has joined #angularjs
[12:35:16] *** DrMabuse has quit IRC
[12:36:11] *** dnewkerk_ has quit IRC
[12:36:27] *** bc_ has joined #angularjs
[12:36:33] *** jonasliljestrand has joined #angularjs
[12:37:21] *** frem has quit IRC
[12:37:37] *** tarnus has quit IRC
[12:37:53] <fernandojsg> Grokling: another REST question: when you have a list of users in your view, let's say you get them in your controller using a factory $scope.users = FactoryUsers.getAll();. Once you want to delete it you could use FactoryUsers.delete(id)
[12:37:57] *** Sjeeke has quit IRC
[12:38:30] *** Moult has joined #angularjs
[12:38:37] <Grokling> delete the user, or delete the list?
[12:38:54] <fernandojsg> Grokling: but what do you usually do to update the view? get again the list as before ($scope.users = FactoryUsers.getAll();) or directly modify the current user in the callback of delete (user.status=DELETED), or retrieve again the whole user data just for this user
[12:39:11] <fernandojsg> Grokling: delete just one user
[12:39:12] *** Sontakey1 has joined #angularjs
[12:39:19] <Moult> in my template can i do something like <foo-bar {{ifTrue}}has-attribute{{/isTrue}}>?
[12:39:30] <fernandojsg> Grokling: a "logical" delete, set a status to delete and paint like red or whatever
[12:40:04] *** jackc7 has joined #angularjs
[12:40:06] <Grokling> fernandojsg: because I use instances of the User class, I'd do user.delete()
[12:40:09] *** Left_Turn has quit IRC
[12:40:38] <Grokling> Make it an instance method if it affects only one instance.
[12:40:40] *** c00ljs has joined #angularjs
[12:40:58] *** seriema has joined #angularjs
[12:41:02] <fernandojsg> Grokling: yep, but delete() internally will call the REST api to change the status on backend/database, and how do you update it value on frontend?
[12:41:07] *** intellix has quit IRC
[12:41:21] <fernandojsg> Grokling: will you do some extra query inside user.delete() to update it status ?
[12:41:35] *** rbs has joined #angularjs
[12:42:19] *** ProLoser has quit IRC
[12:42:47] *** xdotcommer has joined #angularjs
[12:43:05] *** Sky[x] has joined #angularjs
[12:44:40] <Grokling> I do everything clientside - so I mark the instance as deleted, and I mark it as 'dirty' then later on when I feel inclined to persist it to the api (or I'm not offline anymore) I push any 'dirty' records to the api. Because I pass a reference to the same instance anywhere that cares, everywhere reflects the new status immediately.
[12:44:41] *** Sontakey1 has quit IRC
[12:44:41] *** rchavik_ has joined #angularjs
[12:44:42] *** kent\n_ is now known as kent\n
[12:44:42] <Grokling> Once my data has loaded, I don't need to talk to the api if I don't want to.
[12:44:42] *** xdotcommer has quit IRC
[12:44:42] <webus> i create simple chat on angularjs. and in chat window we publish messages via <li ng-repeat=""></li> if we have a lot of messages, chat window start to scroll. but how i detect what elements already displayed ?
[12:44:43] <fernandojsg> okok
[12:45:13] *** Zeioth has joined #angularjs
[12:45:54] <Nouv> webus: How do you check for new messages? push api?
[12:45:58] *** josh-k_ has quit IRC
[12:46:03] *** sebhoss has joined #angularjs
[12:46:25] <Grokling> websockets hopefully...
[12:46:37] <webus> Nouv, my chat used websocket for this. now i want to detect what messages user already watch
[12:46:58] <webus> i think it will be some directive for angular
[12:47:07] <webus> but i can't imagine what else
[12:47:12] *** sahbeewah has joined #angularjs
[12:47:16] <Nouv> Ah, ok
[12:47:37] * Grokling just noticed it's 00:47 and thinks he should go to bed.
[12:47:57] <fernandojsg> Grokling: good night and thank you for the help ;)
[12:48:00] *** richiebkr has quit IRC
[12:48:26] *** flaviogranero has joined #angularjs
[12:48:29] <webus> because when we have a lot of messages chat window start to scroll. and many new messages will be scrolled. but this messages user did not see yet. i want to detect this messages
[12:49:08] <Grokling> np fernandojsg . Hope some of it was useful!
[12:49:22] <fernandojsg> sure
[12:49:41] <Grokling> webus: Won't the users just scroll up to see what they missed? You can't tell if they read the messages anyway.
[12:50:41] <Grokling> Alternatively, don't let it scroll, leave it where they had it, and make them scroll down to find the end?
[12:51:03] *** e0ipso is now known as e0ipso|away
[12:51:32] <webus> Grokling, i got http://stackoverflow.com/questions/12790854/angular-directive-to-scroll-to-a-given-item
[12:51:38] <fernandojsg> you can just scroll when they have the window or the input box focused
[12:51:42] <webus> i think it is solution
[12:51:43] <fernandojsg> otherwise just leave in the point they were
[12:51:48] <fernandojsg> as webchat.freenode.net does
[12:51:59] <fernandojsg> so you scroll by yourself from the last point
[12:52:05] *** cbennett has quit IRC
[12:54:08] *** roymiloh has quit IRC
[12:54:40] *** RangerRick has quit IRC
[12:54:59] *** RangerRick has joined #angularjs
[12:55:20] *** twelverobots has quit IRC
[12:55:25] *** e0ipso|away is now known as e0ipso
[12:55:26] *** kuzz0 has joined #angularjs
[12:55:45] *** e0ipso is now known as e0ipso|away
[12:55:47] *** fabiofb has joined #angularjs
[12:55:57] *** twelverobots has joined #angularjs
[12:56:11] *** e0ipso|away is now known as e0ipso
[12:57:46] *** Mxyzpltk has joined #angularjs
[12:58:33] *** roymiloh_ has joined #angularjs
[12:58:34] *** d10n-work has quit IRC
[12:59:48] *** mennea has quit IRC
[12:59:57] *** suresh has joined #angularjs
[12:59:59] *** jackweirdy has joined #angularjs
[13:00:05] *** rafagomes has joined #angularjs
[13:00:21] *** suresh is now known as Guest8647
[13:00:28] <Guest8647> jackweirdy> i have one problem can u help me
[13:00:28] *** mennea has joined #angularjs
[13:01:02] *** sk87 has quit IRC
[13:01:03] <Guest8647> <mennea>i have one problem can u help me
[13:02:00] *** fedenunez has quit IRC
[13:02:24] *** fedenunez has joined #angularjs
[13:03:26] <Foxandxss> Guest8647: we don't have psychic debugging here
[13:03:28] <Foxandxss> you have to ask
[13:03:32] <Foxandxss> and if someone knows, will help
[13:04:14] <Guest8647> <Foxandxss>its simple problem but i couldnot do this.
[13:05:08] <Guest8647> var length=//anything suppose 1234;
[13:05:28] <Guest8647> i have to print first 10 after that just have to show one line like =================
[13:05:34] <Guest8647> then next 11 to 20
[13:05:36] <Guest8647> thats it
[13:06:03] *** shpoont has quit IRC
[13:06:17] <Guest8647> <Foxandxss>plzzzzzzzzzzzzz
[13:06:18] <Foxandxss> is that a javascript assignment ?
[13:06:21] *** JBreit has quit IRC
[13:06:25] <Guest8647> ya
[13:06:25] *** sebhoss has quit IRC
[13:06:29] <Foxandxss> do it yourself
[13:06:35] <Guest8647> plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
[13:06:37] <Foxandxss> no
[13:06:40] <Guest8647> i could not do this
[13:06:43] <Guest8647> plz
[13:06:44] *** fernandojsg has quit IRC
[13:06:45] <Foxandxss> then you will never learn
[13:06:46] <Guest8647> plz
[13:06:47] <Guest8647> plz
[13:06:52] <Nouv> Should I add <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.27/angular.min.js"></script> at the top or bottom of my page?
[13:06:53] *** bostonaholic has joined #angularjs
[13:07:07] <Guest8647> i am trying it from morning
[13:07:07] <Foxandxss> Nouv: bottom and don't use .min for development
[13:07:09] <Guest8647> plz
[13:07:10] <Guest8647> plz
[13:07:11] <Guest8647> plz
[13:07:19] *** ChanServ sets mode: +o Foxandxss
[13:07:19] <Nouv> Foxandxss: why not .min?
[13:07:25] *** Foxandxss sets mode: +b *!31ce009a@gateway/web/freenode/ip.49.206.0.154
[13:07:25] *** Guest8647 was kicked by Foxandxss (Your behavior is not conducive to the desired environment.)
[13:07:33] <Foxandxss> I don't work with kids
[13:07:51] *** PrinceAMD has joined #angularjs
[13:07:52] <Foxandxss> Nouv: because the .min version doesn't have the errors
[13:08:09] <Nouv> Ah, thanks
[13:08:21] <Foxandxss> so if you get an error, you won't know about it, just a static non-helpful message
[13:09:43] *** khurram has joined #angularjs
[13:09:58] <khurram> hi every1
[13:10:07] *** khurram is now known as Guest74606
[13:10:16] *** AlSquire has joined #angularjs
[13:10:47] <Guest74606> anybody here?
[13:12:14] <Nouv> By my count 782 anybodies are here.
[13:12:23] *** Anton_ has joined #angularjs
[13:12:32] <Guest74606> yea but they seem asleep
[13:12:47] <Foxandxss> half of them are statues, worry not
[13:12:57] <Guest74606> ok
[13:12:57] <Foxandxss> this is like an old castle
[13:13:05] <Guest74606> allrite
[13:13:09] <Guest74606> :)
[13:13:11] *** marcjs has joined #angularjs
[13:13:35] <Guest74606> i have to integerate a new calendar in my angular app do you people have any good suggestions
[13:13:35] <Nouv> How do I wrap my code? It said in the tutorial to wrap app.js code in braces or something, it was good practice?
[13:14:01] <Guest74606> my lead is insisting on using FullCalendar which is writter in jquery
[13:14:07] <Guest74606> written*
[13:14:08] *** Superhard__ has joined #angularjs
[13:14:13] *** bengillies has quit IRC
[13:14:13] *** pknordic has joined #angularjs
[13:14:23] <jcool> Foxandxss, your link to achieve login and logout was a great example and it helped a lot :)
[13:14:28] *** bostonaholic has quit IRC
[13:14:42] <Foxandxss> nice
[13:14:45] <Foxandxss> Nouv: wrap how?
[13:15:11] <Nouv> It was like this or something http://pastebin.com/p9raHTMx
[13:15:23] *** cbennett has joined #angularjs
[13:16:07] *** sebhoss has joined #angularjs
[13:16:28] *** arpu has joined #angularjs
[13:16:38] *** flaviogr1 has joined #angularjs
[13:17:05] *** DrMabuse has joined #angularjs
[13:17:08] <Foxandxss> Nouv: and you understand why is that made?
[13:17:18] <Nouv> So that it only executes when the page is loaded?
[13:17:38] *** ries has quit IRC
[13:17:44] <Foxandxss> negative
[13:18:03] <Foxandxss> are you aware of how javascript handles scopes?
[13:18:03] <Nouv> Oh
[13:18:11] <Nouv> No
[13:18:21] <Foxandxss> and in other languages?
[13:18:22] *** Superhard__ has quit IRC
[13:18:34] *** Leon has quit IRC
[13:18:35] <Nouv> Possibly, but not with that terminology
[13:18:51] <Foxandxss> when you create a variable inside a block, normally it is not accessible from outside
[13:18:57] *** flaviogranero has quit IRC
[13:19:08] <Foxandxss> in a "normal" language, you can do a: for (var i = 0; i < 10; i++) { }
[13:19:17] *** Leon has joined #angularjs
[13:19:19] <Nouv> Yep
[13:19:20] <Foxandxss> and that `i` won't be accessible from outside the for, because you created it inside
[13:19:25] <Foxandxss> in Javascript that is not correct
[13:19:41] *** Iravan has joined #angularjs
[13:19:43] <Foxandxss> in Javascript the only scope where variables doesn't leak are the functions
[13:19:53] <Foxandxss> if you create a var inside a function, won't be accessible
[13:19:54] *** red_horned_rihno has quit IRC
[13:20:02] <Nouv> Ok
[13:20:06] <Foxandxss> so if you do a
[13:20:08] *** Left_Turn has joined #angularjs
[13:20:11] <Foxandxss> app = angular.module(.....);
[13:20:18] <Foxandxss> well: var app = ...
[13:20:25] <Foxandxss> that app will be accessible everywhere, it is global
[13:20:31] <Foxandxss> if you put it inside a function, it won't
[13:20:36] <Nouv> OH
[13:20:38] *** swist has joined #angularjs
[13:20:39] <Foxandxss> so what you have on that paste is called IIFE
[13:20:48] <Foxandxss> inmediately invoked function expression
[13:20:52] *** josh-k has joined #angularjs
[13:20:55] *** FunnyLookinHat has joined #angularjs
[13:21:04] <Foxandxss> it is a function that gets called right away but since it is a function, it won't leak its variables outside
[13:21:10] *** Oka has joined #angularjs
[13:21:15] *** dan2k3k4 has quit IRC
[13:21:21] *** Sebastien-L has quit IRC
[13:21:24] <Foxandxss> AKA what you define inside that IIFE (which wraps the entire file) won't be accessible from other files
[13:21:27] *** jlebrech has quit IRC
[13:21:57] <Nouv> Ok, that makes sense
[13:22:04] *** sebhoss_ has joined #angularjs
[13:22:05] *** Kat123 has joined #angularjs
[13:22:06] <Nouv> So this is correct - http://pastebin.com/szKBE4xz
[13:22:11] <Nouv> and what is inside won't be in the global scope
[13:22:16] <Foxandxss> on the other hand, the: var app = angular.module(...); is no longer recommended
[13:22:17] *** Kat123 has quit IRC
[13:22:21] <Foxandxss> or well, not longer the convention
[13:22:24] <Nouv> Why?
[13:22:28] <Nouv> Is it best to "chain"?
[13:22:29] *** jstroem has quit IRC
[13:22:39] <Foxandxss> that is correct (the code)
[13:22:47] <Foxandxss> and yeah, chain
[13:22:52] *** jstroem has joined #angularjs
[13:22:54] <Nouv> Does it make much of a difference?
[13:23:04] <Foxandxss> no
[13:23:13] <Foxandxss> you're good using any of them
[13:23:20] <Foxandxss> just pointed to the current convention we try to follow
[13:23:24] <Foxandxss> but it is mostly up to you
[13:23:27] *** red_horned_rihno has joined #angularjs
[13:23:30] <Nouv> Ok, cheers.
[13:24:04] *** moo_oose has quit IRC
[13:24:26] *** sebhoss has quit IRC
[13:24:49] *** blomman has joined #angularjs
[13:26:07] *** Click66 has joined #angularjs
[13:27:15] <Nouv> Is $scope the same as this?
[13:27:18] *** _mtr has joined #angularjs
[13:28:16] *** gunn has quit IRC
[13:28:16] *** jackweirdy has quit IRC
[13:28:33] *** aslate has joined #angularjs
[13:29:01] <Foxandxss> no
[13:29:06] *** emocakes has quit IRC
[13:29:37] *** jackweirdy has joined #angularjs
[13:30:09] *** mennea has quit IRC
[13:30:13] <Nouv> In the angular.js intro videos they always used "this"
[13:30:19] <Nouv> and in this tutorial - https://www.airpair.com/angularjs/posts/angularjs-tutorial
[13:30:24] <Nouv> they seem to always use $scope
[13:30:30] *** mennea has joined #angularjs
[13:31:10] <Nouv> aaand the next paragraph explains why they use "this" instead of "$scope".
[13:32:04] *** diefans has joined #angularjs
[13:32:17] *** PeterMetz has joined #angularjs
[13:32:41] *** _mtr has quit IRC
[13:33:01] *** aslate has quit IRC
[13:33:08] <Foxandxss> there is a concept called "ControllerAs"
[13:33:14] <Foxandxss> which allows you to use "this" instead of $scope
[13:33:52] *** simplyshipley has joined #angularjs
[13:34:15] <Caroga> hi Foxandxss !
[13:34:17] *** fedenunez has quit IRC
[13:34:26] *** fedenunez has joined #angularjs
[13:34:30] <Foxandxss> hi
[13:34:44] *** fred-fri has quit IRC
[13:36:22] *** jackweirdy has quit IRC
[13:37:35] *** Aliks has quit IRC
[13:38:11] *** Aliks has joined #angularjs
[13:38:13] *** jdj_dk has quit IRC
[13:38:40] *** opiates has quit IRC
[13:38:44] *** jdj_dk has joined #angularjs
[13:38:54] *** kpax has quit IRC
[13:39:07] *** denysonique_ has joined #angularjs
[13:40:29] *** sigurding has quit IRC
[13:40:56] *** denysonique has quit IRC
[13:41:48] *** dsdeiz has quit IRC
[13:41:53] *** cbennett has quit IRC
[13:42:05] <Nouv> If I have something like a variable with the logged in user, where would I store that? Assuming I want to use it over multiple controllers, (ie one would be account management and one would be commenting)
[13:42:40] *** Aliks has quit IRC
[13:42:40] *** frobs has quit IRC
[13:43:04] *** jdj_dk has quit IRC
[13:43:22] *** eBureau has joined #angularjs
[13:43:43] <jonasliljestrand> Foxandxss: its amazing to just read those short comments and a new world of possibilities opens up :D ControllerAs. WOW thank you
[13:43:56] *** chr1stopher has quit IRC
[13:44:26] *** fedenunez has quit IRC
[13:45:03] *** jdj_dk has joined #angularjs
[13:45:18] *** gunn has joined #angularjs
[13:45:26] <Foxandxss> Nouv: services
[13:45:58] *** lostInParadise has joined #angularjs
[13:46:00] <Nouv> Wow, thank you
[13:46:02] *** kpax has joined #angularjs
[13:46:04] *** gunn has joined #angularjs
[13:46:07] *** chr1stopher has joined #angularjs
[13:46:15] *** gunn has quit IRC
[13:46:54] *** gunn has joined #angularjs
[13:47:50] *** cbennett has joined #angularjs
[13:47:56] *** ckng has joined #angularjs
[13:49:03] *** azizur has quit IRC
[13:49:23] *** scythe__ has joined #angularjs
[13:49:40] *** e0ipso is now known as e0ipso|away
[13:50:15] *** emocakes has joined #angularjs
[13:50:16] *** emocakes has joined #angularjs
[13:50:50] *** phzon has quit IRC
[13:51:12] *** mrwn has joined #angularjs
[13:51:16] *** sebhoss_ has quit IRC
[13:51:17] *** kpax_ has joined #angularjs
[13:51:26] *** basiclaser_ has joined #angularjs
[13:51:29] *** kpax has quit IRC
[13:51:42] *** kpax_ is now known as kpax
[13:52:31] <Nouv> Would ng-switch be used for .. a scenario like tabs? As in only one is shown at a time
[13:52:32] *** nc90 has quit IRC
[13:52:38] *** roymiloh_ has quit IRC
[13:53:08] *** jlebrech has joined #angularjs
[13:53:13] *** SargoDarya has joined #angularjs
[13:53:53] *** Embassy has joined #angularjs
[13:54:33] *** StryKaizer has joined #angularjs
[13:54:34] *** moo_oose has joined #angularjs
[13:55:08] *** swirlycheetah has joined #angularjs
[13:55:26] *** sebhoss has joined #angularjs
[13:56:11] *** sk87 has joined #angularjs
[13:56:25] *** nc90 has joined #angularjs
[13:56:32] *** Solid1 is now known as Solid1_afk
[13:56:39] *** webus has quit IRC
[13:57:22] *** SargoDarya has quit IRC
[13:57:38] *** swirlycheetah has quit IRC
[13:59:09] *** moo_oose has quit IRC
[13:59:15] *** flaviogr1 is now known as flaviogranero
[13:59:28] *** Trow has joined #angularjs
[13:59:54] *** mennea has quit IRC
[14:00:15] <Nouv> Would ng-switch be used for .. a scenario like tabs? As in only one is shown at a time
[14:00:23] *** tarnus has joined #angularjs
[14:00:33] *** mennea has joined #angularjs
[14:00:52] *** Sebastien-L has joined #angularjs
[14:01:22] <Nouv> OH ng-view
[14:01:27] <Nouv> This is *incredible*
[14:01:31] *** MattWelch has joined #angularjs
[14:02:13] *** bayousoft has quit IRC
[14:02:20] *** qdk has joined #angularjs
[14:02:46] <emocakes> it wears off
[14:02:49] <emocakes> :p
[14:03:08] <Nouv> Perhaps, but it doesn't go back down to the level I was at before ;P
[14:03:43] *** TweedleDee has quit IRC
[14:04:58] *** jdj_dk has quit IRC
[14:05:14] <emocakes> its like a rollercoaster
[14:05:26] <emocakes> angular is awesome, angular sucks, angular is awesome
[14:06:41] *** ivor has joined #angularjs
[14:06:41] *** sigurding has joined #angularjs
[14:07:09] *** caitp has joined #angularjs
[14:07:12] *** moo_oose has joined #angularjs
[14:07:32] *** grieof has joined #angularjs
[14:08:21] <grieof> Is there any way to embed script tags in angular templates? I know it's disabled because it's not secure, but I have a case where I need to do it, and understand the consequences.
[14:08:36] *** lexek__ has joined #angularjs
[14:08:37] *** kpax has quit IRC
[14:08:54] *** Xethron has quit IRC
[14:08:56] *** Patrick_Baitman has joined #angularjs
[14:08:58] <iivvoo> is it possible to make $location go to a non-hashed URL? I actually need to 'escape' the hashed url space
[14:09:00] *** kakashiAL has quit IRC
[14:09:20] <iivvoo> setting document.location is a bit too abrupt in this case
[14:09:33] *** startupality has quit IRC
[14:09:43] *** ShivsharanRahul has left #angularjs
[14:10:08] *** kpax has joined #angularjs
[14:10:14] *** opiates_ has joined #angularjs
[14:11:17] *** gregc2 has joined #angularjs
[14:11:17] *** gregc2 is now known as ioudas
[14:11:22] *** Xethron has joined #angularjs
[14:11:22] *** Xethron has joined #angularjs
[14:11:36] *** caitp has quit IRC
[14:11:54] *** cbennett has quit IRC
[14:12:10] *** geilt has quit IRC
[14:12:38] *** spatialbrew has joined #angularjs
[14:13:16] *** startupality has joined #angularjs
[14:13:56] *** Xethron has quit IRC
[14:14:02] *** opiates_ has quit IRC
[14:14:22] *** Xethron has joined #angularjs
[14:14:44] *** loverajoel has joined #angularjs
[14:15:24] *** zwacky has joined #angularjs
[14:15:24] *** Moult has left #angularjs
[14:15:44] *** dman777_1lter has joined #angularjs
[14:16:16] *** sebhoss has quit IRC
[14:16:37] *** kpax has quit IRC
[14:17:01] *** Guest74606 has quit IRC
[14:17:17] *** laurensclaessen has quit IRC
[14:18:10] *** kevinxu has joined #angularjs
[14:18:33] *** kevinxu is now known as Guest15210
[14:19:07] *** Xethron has quit IRC
[14:19:09] *** jlambert121 has joined #angularjs
[14:19:15] *** Guest15210 has quit IRC
[14:19:22] *** askes has joined #angularjs
[14:19:44] <askes> hello guys . ive a question regarding testing directives internal controller.
[14:19:55] *** swist has quit IRC
[14:20:10] *** caitp has joined #angularjs
[14:20:34] *** kpax has joined #angularjs
[14:20:42] *** bengillies has joined #angularjs
[14:20:55] <askes> hello guys . ive a question regarding testing directives internal controller. if iam acess the scope of the compiled element. IT loges that the function is undefined
[14:21:52] *** Sjeeke has joined #angularjs
[14:21:58] *** intellix has joined #angularjs
[14:21:59] *** tristanp has joined #angularjs
[14:22:16] *** gkap has joined #angularjs
[14:23:39] *** phzon has joined #angularjs
[14:23:44] <askes> hay guys how to thest the directives controller ?
[14:24:01] *** stephanbuys has joined #angularjs
[14:25:05] *** roymiloh has joined #angularjs
[14:25:20] *** dc has joined #angularjs
[14:26:17] *** stephanbuys1 has quit IRC
[14:26:41] *** Sjeeke has quit IRC
[14:27:50] *** Anton_ has quit IRC
[14:27:52] *** _ritchie_ has joined #angularjs
[14:28:03] *** _mtr has joined #angularjs
[14:28:24] *** aendrew has quit IRC
[14:28:46] *** d10n-work has joined #angularjs
[14:29:34] <zomg> you would probably do that by just using the directive in your test
[14:29:50] *** lsiv568 has joined #angularjs
[14:29:55] *** Superhard__ has joined #angularjs
[14:29:56] *** mennea has quit IRC
[14:29:57] *** dc has quit IRC
[14:30:32] *** mennea has joined #angularjs
[14:30:36] *** mccarrontr1ck has joined #angularjs
[14:30:38] *** torghul has quit IRC
[14:30:47] <zomg> assuming the controller is meant to control the directive's internals, it should be considered "private", so you would test it by exercising the object's public interface (ie. using it like it's supposed to be used)
[14:30:59] *** ProLoser has joined #angularjs
[14:31:56] *** ries has joined #angularjs
[14:32:39] *** McMont has quit IRC
[14:32:44] *** emocakes has quit IRC
[14:33:16] *** _mtr has quit IRC
[14:34:11] *** sacosta has joined #angularjs
[14:34:24] *** Superhard__ has quit IRC
[14:34:58] *** Zeioth has quit IRC
[14:35:06] *** anand_ has joined #angularjs
[14:35:09] *** intellix has quit IRC
[14:35:31] *** anand_ has quit IRC
[14:35:43] *** Anton_ has joined #angularjs
[14:35:54] *** ProLoser has quit IRC
[14:36:18] *** Xethron has joined #angularjs
[14:36:18] *** Xethron has joined #angularjs
[14:36:20] *** akrikos has joined #angularjs
[14:36:57] *** JeffBuhrt1 has left #angularjs
[14:37:52] *** DanSkaggs has joined #angularjs
[14:38:57] *** DuelShark has joined #angularjs
[14:39:24] *** Snugug has joined #angularjs
[14:39:42] *** Snugug has quit IRC
[14:39:58] *** juanpablo_ has joined #angularjs
[14:40:00] *** boxmein has joined #angularjs
[14:40:02] *** uday has joined #angularjs
[14:40:30] <uday> hi
[14:40:47] <uday> can any once help me to resolve this issue
[14:40:48] <uday> Error: [ng:areq] http://errors.angularjs.org/1.3.0-rc.1/ng/areq?p0=FilterController&p1=not%20a%20function%2C%20got%20undefined
[14:40:53] *** shaym has joined #angularjs
[14:41:25] *** bostonaholic has joined #angularjs
[14:41:27] *** Sky[x] has quit IRC
[14:41:44] *** scythe__ has quit IRC
[14:41:55] <jlebrech> anyone good with angular block-ui?
[14:42:09] *** mennea has quit IRC
[14:42:15] *** macabre has joined #angularjs
[14:42:18] *** kzoo has quit IRC
[14:42:37] *** walden|afk is now known as walden
[14:43:00] *** russellm has joined #angularjs
[14:43:40] *** bostonaholic has quit IRC
[14:44:00] *** mennea has joined #angularjs
[14:44:14] *** bostonaholic has joined #angularjs
[14:44:24] *** younqcass has joined #angularjs
[14:44:39] *** McMont has joined #angularjs
[14:44:55] *** askes has quit IRC
[14:45:17] *** swist has joined #angularjs
[14:45:26] *** russellm has quit IRC
[14:45:31] *** denysonique_ is now known as denysonique
[14:45:34] *** lif has left #angularjs
[14:46:01] *** denysonique is now known as Guest16207
[14:46:45] *** uday has quit IRC
[14:47:00] *** bostonaholic has quit IRC
[14:47:00] *** sahbeewah has quit IRC
[14:47:09] *** jtimon has quit IRC
[14:47:12] *** russellm has joined #angularjs
[14:47:18] *** Klumben has quit IRC
[14:47:38] *** stephanbuys has quit IRC
[14:48:12] *** SargoDarya has joined #angularjs
[14:48:50] *** opiates_ has joined #angularjs
[14:48:59] *** Poppabear has quit IRC
[14:49:01] *** livingstn has joined #angularjs
[14:49:57] <Embassy> Hi all - just wondering if anyone here uses angular with zf2, I am busy setting it up and need some poiners
[14:50:49] *** Guest16207 has quit IRC
[14:50:50] *** jtimon has joined #angularjs
[14:51:00] *** vonnegut has joined #angularjs
[14:51:11] *** denysonique_ has joined #angularjs
[14:51:32] *** azizur has joined #angularjs
[14:52:35] *** Poppabear has joined #angularjs
[14:52:56] *** lsiv568 has quit IRC
[14:53:04] *** Xethron has quit IRC
[14:53:18] *** mennea has quit IRC
[14:53:19] *** Sawbones has joined #angularjs
[14:53:34] *** fourq is now known as [fourq]
[14:53:44] *** Txandy has joined #angularjs
[14:55:25] *** Xethron has joined #angularjs
[14:55:46] *** Linell has joined #angularjs
[14:55:48] *** [fourq] is now known as fourq
[14:56:23] *** jordandotdev has quit IRC
[14:56:28] *** danecando has joined #angularjs
[14:57:00] *** Nijikokun has quit IRC
[14:57:08] <caitp> embassy: are you using zf2 mainly for api stuff, or mainly for "fancy php templating"?
[14:57:31] *** jmckind has joined #angularjs
[14:57:46] <Embassy> ZF2 is the main app,
[14:58:08] *** juampy has quit IRC
[14:58:17] *** SahanH has joined #angularjs
[14:58:29] *** cbennett has joined #angularjs
[14:58:30] *** SargoDarya has quit IRC
[14:58:34] *** VeeWee has quit IRC
[14:58:55] <Embassy> I want to use angular for my shopping basket
[14:59:37] <Embassy> switch between images in the product view, add an item etc.
[15:00:22] *** rileylark has joined #angularjs
[15:00:23] *** ses1984 has quit IRC
[15:01:40] *** tschundeee has quit IRC
[15:01:52] *** rileylar_ has joined #angularjs
[15:01:54] *** Patrick_Baitman has quit IRC
[15:01:57] *** tschundeee has joined #angularjs
[15:02:18] <ries> Is there a angular directive that shows a spinner text to the mouse cursor? I know about angular loading bar, but the spinner is on the top left of the screen hardly visible
[15:02:28] *** Patrick_Baitman has joined #angularjs
[15:02:34] *** rileylar_ has quit IRC
[15:02:49] *** tschundeee has quit IRC
[15:02:53] <jaydubya> I am getting a "TypeError: undefined is not a function" pointing at this line "LoansFactory.createLoan($scope.feeder.loantypes[l].id).then(function success(response){" ... The factory exists and is being used 3 lines above the error, createLoan() is declared and the id variable is also used above the error. How can I debug this?
[15:02:55] *** bmac has joined #angularjs
[15:03:04] <caitp> ries: you could easily write one
[15:03:05] *** tschundeee has joined #angularjs
[15:03:21] <ries> caitp: I rather re-use one :)
[15:03:35] <Linell> jaydubya: is createLoan actually a promise?
[15:03:36] *** tschundeee has joined #angularjs
[15:03:42] *** imehesz has quit IRC
[15:03:57] *** mmealling has joined #angularjs
[15:04:04] <jaydubya> no, not yet
[15:04:05] *** tschundeee has quit IRC
[15:04:13] *** mmealling has quit IRC
[15:04:16] <Linell> Then it's failing on the .then
[15:04:18] <caitp> https://github.com/urish/angular-spinner here's something
[15:04:20] *** tschundeee has joined #angularjs
[15:04:21] <caitp> no idea on its quality
[15:04:26] <jaydubya> gotcha
[15:04:27] *** evanjs has joined #angularjs
[15:04:30] *** cbennett has quit IRC
[15:04:39] *** imehesz has joined #angularjs
[15:05:02] *** tschundeee has quit IRC
[15:05:13] <jaydubya> so if a factory method isn't a promise, do I do a direct assign? or is there a way to make it a promise?
[15:05:17] *** rileylark has quit IRC
[15:05:19] *** tschundeee has joined #angularjs
[15:05:30] <zomg> I thought that github account was a Dwarf Fortress reference, but it actually said urish, not urist
[15:05:33] <zomg> :D
[15:05:38] *** knownasilya has joined #angularjs
[15:05:39] *** nc90 has quit IRC
[15:05:56] *** cbennett has joined #angularjs
[15:05:57] <Linell> jaydubya: check this page out. It's easy enough to make that function a promise https://docs.angularjs.org/api/ng/service/$q
[15:06:04] <jaydubya> k, thanks!
[15:06:50] *** Klumben has joined #angularjs
[15:06:56] *** nc90 has joined #angularjs
[15:07:10] *** Raging_Hog has quit IRC
[15:07:13] *** tristanp has quit IRC
[15:07:13] *** yaru22 has joined #angularjs
[15:07:29] *** _ritchie_ has quit IRC
[15:07:42] <jaydubya> and it's OK to set the $timeout to 0, right?
[15:07:54] *** Maketroli has joined #angularjs
[15:08:04] *** Joy has joined #angularjs
[15:08:23] *** lsiv568 has joined #angularjs
[15:08:35] *** rileylark has joined #angularjs
[15:08:54] <Linell> jaydubya: I think they're just doing the timeout stuff to simualte it actually taking some time to perform
[15:09:03] *** cuebix-wk has joined #angularjs
[15:09:03] <Linell> jaydubya: so you probably dont' have to do that at all
[15:09:19] *** boxmein is now known as [boxmein]
[15:09:44] *** rileylark has quit IRC
[15:11:29] *** lostInParadise has quit IRC
[15:11:50] *** titanomachy has joined #angularjs
[15:11:51] *** e0ipso|away is now known as e0ipso
[15:11:56] *** gunn has quit IRC
[15:12:00] *** nc90_ has joined #angularjs
[15:12:29] <ries> caitp: I’ll take a look
[15:12:29] *** FIFOd[a] has joined #angularjs
[15:13:00] <tschundeee> Is it okay to use angular as a better jquery for form validation and dynamic stuff that should happen on a specific html page?
[15:13:18] *** Maketroli has quit IRC
[15:13:27] *** kuzzz0 has joined #angularjs
[15:14:13] *** nc90 has quit IRC
[15:14:16] *** Maketroli has joined #angularjs
[15:14:23] <Maketroli> hey is anybody there?
[15:14:27] *** wafflej0ck has joined #angularjs
[15:14:28] <Maketroli> I need little help
[15:15:12] <Linell> Maketroli: what's your problem?
[15:15:23] <Maketroli> look
[15:15:31] <Maketroli> let me explain a little bit
[15:15:34] *** kuzz0 has quit IRC
[15:15:41] *** chr1stopher has quit IRC
[15:15:47] <Linell> tschundeee: I think the consensus is that it's okay but kind of an expensive way to do it
[15:16:16] <Maketroli> this is the question i did
[15:16:17] <Maketroli> http://stackoverflow.com/questions/27429444/how-can-i-prevent-angular-to-send-a-request
[15:16:33] <Maketroli> tell me if do not understand something
[15:16:47] *** rileylark has joined #angularjs
[15:16:49] *** Patrick_Baitman has quit IRC
[15:16:57] *** Patrick_Baitman has joined #angularjs
[15:17:27] *** chr1stopher has joined #angularjs
[15:17:34] *** aslate has joined #angularjs
[15:18:23] *** chr1stopher has left #angularjs
[15:19:03] *** dmack has joined #angularjs
[15:19:16] <Linell> So it's being caused by the `leagues` param being empty?
[15:19:24] <grieof> I have a div with an ng-click. Inside the div is an <a>. I would like the ng-click function not to fire when the <a> is clicked. Is that doable? If it matters, the <a> is inside another <div>. So div[ng-click=blabla()]>div>a
[15:20:11] <Maketroli> yes
[15:20:13] <Maketroli> I mean
[15:20:53] <Maketroli> when the leagues parameter goes clear, the error comes up
[15:21:04] <Maketroli> so what I need is to prevent that
[15:21:13] <Maketroli> I set up an if / else
[15:21:14] <Maketroli> so
[15:21:33] <Maketroli> if ($scope.leagues === ' ') {}
[15:21:46] <Maketroli> but it never reads that part
[15:21:53] *** cboden has joined #angularjs
[15:21:55] <Linell> But it never enters the console.log("ZERO") section, or that section?
[15:22:16] *** aslate has quit IRC
[15:22:20] <Linell> Have you tried to console.log $scope.leagues and $scope.leagues.length right before that to see exactly what it's giving you?
[15:22:29] <Maketroli> yes
[15:22:31] *** grieof has left #angularjs
[15:22:53] *** PeterMetz has quit IRC
[15:23:14] *** prbc has joined #angularjs
[15:23:28] <Linell> Is it always ''? You know what `=== ' '` != `=== ''` right?
[15:23:35] *** tristanp has joined #angularjs
[15:23:38] <Maketroli> the console.log($scope.leagues.length) returns [Object, Object, Object, Object, Object]
[15:23:43] *** atomical has quit IRC
[15:24:41] <Maketroli> yes I understant, but it never gives the result I want, the app just goes down once the error comes up
[15:24:46] <Maketroli> look this example
[15:25:04] *** atomical has joined #angularjs
[15:25:34] <Maketroli> $scope.displayLines = function() { $scope.lineLeagues = _.filter($scope.lineLeagues, function(league) { return league.active; }); // leagues . length is empty then do not do anything //use _.pluck LinesFactory.getLines({ customerId:customer.customer, top: 10, familyGameId:-1, games:-1, sports:$scope.lineSport.id, leagues:_.pluck($scope.lineL
[15:25:39] <Maketroli> oh yisus
[15:25:46] <Maketroli> just a moment
[15:25:47] *** fedenunez has joined #angularjs
[15:25:56] <Maketroli> $scope.displayLines = function() { $scope.lineLeagues = _.filter($scope.lineLeagues, function(league) { return league.active; }); // leagues . length is empty then do not do anything //use _.pluck LinesFactory.getLines({ customerId:customer.customer, top: 10, familyGameId:-1, games:-1, sports:$scope.lineSport.id, leagues:_.pluck($scope.lineLeagu
[15:26:07] <Maketroli> I can not send code here
[15:26:10] <Maketroli> sorry
[15:26:15] *** yoshokatana has joined #angularjs
[15:26:19] <Linell> haha yeah, it gets pretty gross. Try a gist of it?
[15:26:32] *** BahamutWC|Laptop has quit IRC
[15:26:51] <Maketroli> gist?
[15:27:15] *** PeterMetz has joined #angularjs
[15:27:33] *** ingsoc has joined #angularjs
[15:27:41] <Linell> https://gist.github.com/ .. Or even better, make a http://plnkr.co/ that simulates the problem
[15:27:56] *** lite_ has quit IRC
[15:28:29] *** lite_ has joined #angularjs
[15:28:49] *** Lewix has joined #angularjs
[15:28:50] *** Lewix has joined #angularjs
[15:29:44] *** Txandy has quit IRC
[15:29:59] *** Txandy has joined #angularjs
[15:30:51] *** Lewix has quit IRC
[15:30:59] <Maketroli> ok\
[15:31:00] *** Lewix has joined #angularjs
[15:31:01] *** Lewix has joined #angularjs
[15:31:03] <Maketroli> wait for me
[15:31:07] *** rileylark has quit IRC
[15:31:30] *** braidn has quit IRC
[15:31:42] <Linell> np
[15:32:47] *** cbennett has quit IRC
[15:32:47] *** tbassetto has joined #angularjs
[15:32:48] *** g3funk has joined #angularjs
[15:33:02] *** mrru has joined #angularjs
[15:33:07] *** lite_ has quit IRC
[15:33:12] *** Caroga is now known as Caroga_afk
[15:33:20] <jaydubya> ok, I did away with the promise but still nothing ... http://laravel.io/bin/JxlGy
[15:33:32] *** draco_ has joined #angularjs
[15:33:45] *** zemanel has joined #angularjs
[15:33:48] *** tbassetto has left #angularjs
[15:34:08] *** draco_ has quit IRC
[15:34:45] *** rkjdid has joined #angularjs
[15:34:52] *** elrabin has joined #angularjs
[15:34:53] *** jstroem has quit IRC
[15:35:25] *** kuadrosx has joined #angularjs
[15:35:32] *** draco_ has joined #angularjs
[15:36:00] *** g3funk has quit IRC
[15:36:18] *** g3funk has joined #angularjs
[15:36:32] *** ron1 has joined #angularjs
[15:36:49] <Linell> have you tried a fancy console.log inside of createLoan to make sure it's firing?
[15:36:52] <draco_> hey guys, anyone have any idea how can I access parent controller and it's functions from html of Angular UI Popover
[15:37:00] <draco_> its functions*
[15:37:59] *** bbankes has joined #angularjs
[15:38:23] *** simplyshipley has quit IRC
[15:38:32] <jaydubya> Linell: I console.logged(obj) from the factory inside createLoan and I gave me both attributes
[15:38:44] *** ggrzybek is now known as ggrzybek_afk
[15:38:48] *** simplyshipley has joined #angularjs
[15:38:48] *** rileylark has joined #angularjs
[15:39:33] *** Una has joined #angularjs
[15:40:06] *** yaru22 has quit IRC
[15:41:57] *** jonasliljestrand has quit IRC
[15:41:57] *** FunnyLookinHat has quit IRC
[15:42:08] *** rafagomes has quit IRC
[15:42:23] *** Alax has joined #angularjs
[15:42:47] <Maketroli> http://plnkr.co/edit/xF7GJtTLR0Dkd9oHG0Q4?p=preview
[15:42:54] *** devhoag has joined #angularjs
[15:43:00] <Maketroli> let me know if someone here can see this http://plnkr.co/edit/xF7GJtTLR0Dkd9oHG0Q4?p=preview
[15:43:08] <Maketroli> Linell ??????
[15:43:51] <Maketroli> can someone answer this to me
[15:43:51] <Maketroli> http://stackoverflow.com/questions/27429444/how-can-i-prevent-angular-to-send-a-request
[15:43:52] <Maketroli> ]?
[15:43:57] *** Una has quit IRC
[15:44:08] <xxMatiasFCxx> I have a view with one directive (A) with one subdirective (A1) that is transcluded. How can A1 access to data from A ? (I need the transcluded directive to access the scope of the parent directive)
[15:44:17] *** mven has joined #angularjs
[15:44:39] <tristanp> Hi guys, I need a bit of help getting started on the best way to "do" this directive: http://plnkr.co/edit/JFoULz4SO9pZq7ds8Qbt?p=preview
[15:44:49] <jaydubya> Linell: LOL, ng-inspector has the two attributes in $scope.loan but the pre tags are empty.
[15:45:07] *** ioudas has quit IRC
[15:45:14] <tristanp> I don't want one image to fade out, then the other to fade in, I want to achieve a cross fade like in http://css3.bradshawenterprises.com/cfimg/
[15:45:41] *** startupality has quit IRC
[15:45:42] <Linell> jaydubya: lol I have no idea then. Good luck with that
[15:45:57] *** plato has quit IRC
[15:46:11] <tristanp> should I use jQuery to make a second image tag, and then apply the css classes, then remove the old image when it's done?
[15:47:28] *** rhp has joined #angularjs
[15:47:49] *** neilff has joined #angularjs
[15:48:09] *** devhoag has quit IRC
[15:48:41] *** sebhoss has joined #angularjs
[15:48:49] *** sigurding has quit IRC
[15:49:02] *** g33k5z has joined #angularjs
[15:49:51] *** gkap has quit IRC
[15:50:11] *** sirkitree|afk|af is now known as sirkitree
[15:50:25] *** sigurding has joined #angularjs
[15:50:25] *** bkuberek has joined #angularjs
[15:50:42] *** scythe__ has joined #angularjs
[15:50:43] *** rbs- has joined #angularjs
[15:51:24] *** Slowintrepid has joined #angularjs
[15:51:42] <AlexZanf> hey guys any issues using ui bootstrap with angular 1.3* ?
[15:51:45] *** cornerma1 has joined #angularjs
[15:51:49] *** cornerman has quit IRC
[15:51:55] *** cornerma1 is now known as cornerman
[15:52:39] *** cavallari has quit IRC
[15:52:56] *** plato has joined #angularjs
[15:53:04] *** kpax has quit IRC
[15:53:14] *** alpha080 has quit IRC
[15:53:27] *** Sadin has joined #angularjs
[15:53:56] *** rbs has quit IRC
[15:55:02] *** alpha080 has joined #angularjs
[15:55:40] *** ciwolsey has quit IRC
[15:56:57] *** jdivock_ has joined #angularjs
[15:57:10] *** ppppaul has joined #angularjs
[15:57:52] <xxMatiasFCxx> I have a view with one directive (A) with one subdirective (A1) that is transcluded. How can A1 access to data from A ? (I need the transcluded directive to access the scope of the parent directive)
[15:58:48] *** sebhoss has quit IRC
[15:58:59] <Foxandxss> AlexZanf: last time I checked, it didn't work
[15:59:03] *** pilva has quit IRC
[15:59:03] *** SargoDarya has joined #angularjs
[15:59:06] *** aendrew has joined #angularjs
[15:59:11] *** Click66 has quit IRC
[15:59:16] <AlexZanf> why is it so out of date :s
[15:59:35] <roymiloh> What file structure do you use? do you sepearate your client / server into two repositories or in the same repository?
[15:59:39] <Foxandxss> xxMatiasFCxx: normally you "require" the parent directive's controller
[15:59:50] *** shackleford has joined #angularjs
[15:59:51] <Foxandxss> AlexZanf: they are busy paying bills
[15:59:56] <Foxandxss> or that is the answer I got once
[16:00:08] <Foxandxss> roymiloh: that is personal preference
[16:00:31] *** shackleford has quit IRC
[16:00:36] *** walden is now known as walden|brb
[16:00:40] <AlexZanf> hmm i wonder what i should use for a date time picker then
[16:00:46] <xxMatiasFCxx> Foxandxss, but it doesn't matter that it is transcluded ? I mean my sub directive is not inside the parent directive, in the parent directive I just have a ng transclude
[16:01:03] <Foxandxss> AlexZanf: if angularstrap works, go for that
[16:01:06] *** shackleford has joined #angularjs
[16:01:29] <Foxandxss> transcluded directive has a sibling scope
[16:01:30] <roymiloh> Foxandxss: well, that's right, but what is your individual opinion and why? currently I have two folders ('client' and 'server') and a shared gulpfile.
[16:01:30] *** mary5030 has joined #angularjs
[16:01:45] *** blackkbot has quit IRC
[16:01:56] <Foxandxss> roymiloh: if that works for you, that is fine
[16:02:21] *** josh-k_ has joined #angularjs
[16:02:29] *** fedenunez has quit IRC
[16:02:47] *** fedenunez has joined #angularjs
[16:03:12] *** SargoDarya has quit IRC
[16:04:16] *** sebhoss has joined #angularjs
[16:04:17] *** sk87 has quit IRC
[16:04:34] *** arcanin has joined #angularjs
[16:04:53] *** rileylark has quit IRC
[16:05:01] *** startupality has joined #angularjs
[16:05:05] <elrabin> roymiloh: i keep my client and server in the same repo, primarily because changes in both are often related. but i have a small team that works on both sides
[16:05:08] *** rileylark has joined #angularjs
[16:05:12] *** josh-k has quit IRC
[16:05:18] <arcanin> is it possible to instruct Angular UI's router to trigger a page reload on some urls ?
[16:05:32] *** oste has joined #angularjs
[16:05:45] <Foxandxss> I try to go as decoupled as possible
[16:05:54] <Foxandxss> considering some coupling if they are really good for the use case
[16:05:56] <roymiloh> elrabin: same here. do you have a shared grunt / gulp for both sides?
[16:06:22] <elrabin> yes
[16:06:36] *** jheady has joined #angularjs
[16:06:37] <elrabin> keeping everything in one repo makes configuring the gruntfile a little more cumbersome
[16:06:52] *** gregc2 has joined #angularjs
[16:07:07] *** cacts has joined #angularjs
[16:07:20] <roymiloh> i have a gulp folder with commands separate into files, then include it inside the main gulpfile.
[16:07:25] <Foxandxss> I personally don't use gulp on the backend for now
[16:07:35] <roymiloh> Foxandxss: why not?
[16:07:37] *** gregc2 is now known as ioudas
[16:07:40] *** plekplek has quit IRC
[16:07:44] <Foxandxss> no need so far
[16:07:49] <roymiloh> nodemon for example is really useful (for node.js developers) etc..
[16:08:03] <Foxandxss> nodemon is a useful tool yes
[16:08:16] <elrabin> you can use nodemon with grunt
[16:08:38] <tristanp> Ok, I'll try this again now that I'm further along. Can someone check out this and tell me why it's not crossfading? http://plnkr.co/edit/JFoULz4SO9pZq7ds8Qbt?p=preview
[16:09:14] *** ninkotech has quit IRC
[16:09:21] *** panzon has joined #angularjs
[16:09:55] *** jheady has left #angularjs
[16:10:00] <roymiloh> Another discussion :-) I want to start using commonjs on the client side and I'm not sure if using ES6 or a framework like webpack, browserify etc..
[16:10:46] *** pootpoot has joined #angularjs
[16:10:49] *** Sjeeke has joined #angularjs
[16:10:50] *** trippo has joined #angularjs
[16:10:52] *** jasonp has joined #angularjs
[16:11:04] *** rileylark has quit IRC
[16:11:20] *** rileylark has joined #angularjs
[16:11:30] <roymiloh> robdubya recommended on starting using ES6, but I need this product available for production in 3 months, and not sure about the stability of traceur
[16:11:50] *** zivester has joined #angularjs
[16:11:54] *** Iravan has quit IRC
[16:12:07] *** intellix has joined #angularjs
[16:12:10] *** Trow1 has joined #angularjs
[16:13:04] <G1eb> is there anyway to tell if a button is being pressed down inside a click event callback of an angular directive?
[16:13:09] <trippo> Are there any drawbacks with angular ui router and routing the whole site in the same ui-view ? It's a rather big site with login etc. Was wondering if I should split it in multiple modules.
[16:13:24] *** titanomachy has quit IRC
[16:13:37] *** Trow has quit IRC
[16:14:01] <trippo> G1eb: I'm rather new to angular, but you could always change a scope variable on mouseup, and check that in your callback.
[16:14:10] <trippo> Might be considered a bad hack though.
[16:14:15] *** BillCriswell has joined #angularjs
[16:14:42] <trippo> G1eb: But the click might also only be fired on mouseup ?
[16:15:10] <trippo> Yeah I think it does.
[16:15:25] *** Sjeeke has quit IRC
[16:15:25] *** zwacky has quit IRC
[16:15:30] <G1eb> trippo yeah basically the difference is that i can bind click events on a simple div but not keyup/down events
[16:15:47] <trippo> But you could bind mousedown/mouseup ?
[16:15:50] <elrabin> G1eb : https://docs.angularjs.org/api/ng/directive/ngMousedown
[16:15:51] <G1eb> i want that ctrl+click = something functionality
[16:15:53] *** titanomachy has joined #angularjs
[16:15:59] <G1eb> hmm let me check
[16:16:02] <trippo> Oh, a physical button
[16:16:06] <elrabin> oh
[16:16:08] <trippo> I thought you mean a ui button
[16:16:19] <G1eb> nope =/
[16:16:33] *** threesixes has joined #angularjs
[16:16:36] *** FunnyLookinHat has joined #angularjs
[16:16:37] <trippo> Then disregard my answer, sorry for misunderstanding
[16:16:37] *** davesidious has joined #angularjs
[16:16:42] *** davesidious_ has quit IRC
[16:16:46] *** _mtr has joined #angularjs
[16:17:08] *** Bodin- has joined #angularjs
[16:17:20] <trippo> G1eb: You could bind keydown on document perhaps.
[16:17:46] *** jshultz has joined #angularjs
[16:17:50] <G1eb> trippo, possibly yes, im going to try this atm http://stackoverflow.com/questions/23928168/ctrl-click-ng-click-open-page-in-new-tab
[16:18:26] <trippo> G1eb: But make sure to check the event when the callback is triggered. The event object should have event.shiftKey etc.
[16:18:37] *** mchammer has quit IRC
[16:18:38] *** Superhard__ has joined #angularjs
[16:18:55] *** blackkbot has joined #angularjs
[16:19:10] <trippo> G1eb: Doesn't the top answer work ?
[16:19:30] *** g33k5z has quit IRC
[16:19:31] *** mchammer has joined #angularjs
[16:19:50] *** ProLoser has joined #angularjs
[16:19:56] *** pskrz has joined #angularjs
[16:20:00] <dmack> google maps integration: is https://angular-ui.github.io/angular-google-maps/#!/api still the best option?
[16:20:29] *** g33k5z has joined #angularjs
[16:20:30] <G1eb> trippo yes ;')
[16:20:38] <trippo> Sooooo ?
[16:20:50] *** dacuca has joined #angularjs
[16:20:56] <trippo> Did you miss something? Like passing $event to the scope function?
[16:21:43] *** cavallari has joined #angularjs
[16:21:49] *** rho has joined #angularjs
[16:21:50] *** rho has joined #angularjs
[16:22:02] *** intellix has quit IRC
[16:22:06] *** _mtr has quit IRC
[16:22:29] *** scythe__ has quit IRC
[16:22:39] *** walden|brb is now known as walden
[16:22:53] *** sonofdirt has joined #angularjs
[16:23:08] *** Superhard__ has quit IRC
[16:23:14] *** prbc has quit IRC
[16:23:22] *** shinnya has joined #angularjs
[16:23:24] *** jstroem has joined #angularjs
[16:23:58] *** annlewis has joined #angularjs
[16:24:28] *** angelazou has joined #angularjs
[16:24:47] *** ProLoser has quit IRC
[16:25:02] *** davesidious has quit IRC
[16:25:04] <angelazou> I'm having trouble getting the watch inside the directive to continue monitor the $valid attribute
[16:25:10] <angelazou> paste link http://jsfiddle.net/x5eqae83/
[16:25:17] *** cuebix-wk has quit IRC
[16:25:33] <angelazou> the scope.$watch only logs the first entry and disregard all other entries
[16:25:34] *** sonofdirt has quit IRC
[16:25:37] *** davesidious has joined #angularjs
[16:26:02] *** cheef has joined #angularjs
[16:26:02] <cheef> afternoon
[16:26:07] <cheef> afternoon
[16:26:17] <angelazou> cheef: evening
[16:26:32] *** rafagomes has joined #angularjs
[16:27:14] *** aendrew has quit IRC
[16:27:49] *** zwacky has joined #angularjs
[16:27:54] *** scythe__ has joined #angularjs
[16:28:16] *** cojack has quit IRC
[16:28:46] *** jheady has joined #angularjs
[16:29:55] *** aendrew has joined #angularjs
[16:29:57] *** Brewski85 has quit IRC
[16:30:03] <balr0g> hello, whats the best way to enable a button based on the input of a field?
[16:30:45] *** yuradoc has joined #angularjs
[16:30:47] *** startupality has quit IRC
[16:30:57] *** scythe__ has quit IRC
[16:31:01] <yuradoc> Hello
[16:31:04] *** startupality has joined #angularjs
[16:31:32] *** scythe__ has joined #angularjs
[16:31:33] *** cotko has quit IRC
[16:31:58] *** Sky[x] has joined #angularjs
[16:32:04] *** conan_the_destro has quit IRC
[16:32:10] *** umib0zu has joined #angularjs
[16:32:22] <yuradoc> i have two divs...what i do - need to make outterHeight of the 2nd div the same that first one after it dynamic loaded content
[16:32:43] <yuradoc> is there are some angular way to make this?
[16:32:45] *** pilva has joined #angularjs
[16:32:46] *** getn_outchea has joined #angularjs
[16:32:50] *** getn_outchea_ has joined #angularjs
[16:32:54] *** getn_outchea_ has left #angularjs
[16:32:58] <elrabin> angelazou: http://jsfiddle.net/x5eqae83/2/
[16:33:12] <yuradoc> because i know how to do this with jquery
[16:33:38] <jaydubya> $http.post() returns a promise, correct?
[16:34:43] *** Foxandxss changes topic to "http://angularjs.org/ | Docs: http://docs.angularjs.org/ | Latest release: 1.2.27 / 1.3.6 | Be respectful! Code Of Conduct: http://goo.gl/m7MHxk | Paste your code here: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS | #ionic for Ionic questions | The channel is being logged at: http://goo.gl/8Wwttq | Be polite! ☃"
[16:35:06] *** jheady1 has joined #angularjs
[16:35:39] *** nickgs has joined #angularjs
[16:35:44] *** mfunkie has joined #angularjs
[16:35:58] <getn_outchea> so are watchers ALWAYS bad to use..or always bad to use in the controller?
[16:36:11] *** chr1stopher has joined #angularjs
[16:36:19] <getn_outchea> i was under the impression if you're writing directives it's probably going to require a watcher
[16:37:17] *** PeterMetz has quit IRC
[16:37:26] *** sonofdirt has joined #angularjs
[16:37:30] *** alpha080 has quit IRC
[16:37:42] *** Bodin- has quit IRC
[16:37:52] *** macabre has quit IRC
[16:38:05] *** jheady has quit IRC
[16:38:34] *** samuel02 has joined #angularjs
[16:39:05] *** dave_boling has joined #angularjs
[16:39:08] *** lite_ has joined #angularjs
[16:39:11] *** vassagus has joined #angularjs
[16:39:37] *** SahanH has quit IRC
[16:39:46] *** mfunkie has left #angularjs
[16:39:56] *** macabre has joined #angularjs
[16:40:00] *** snapwich has joined #angularjs
[16:40:51] *** jstroem has quit IRC
[16:41:19] *** ctanga has joined #angularjs
[16:41:26] <cheef> $watchers are OK, but you just need to have a good understanding of the $digest lifecycle
[16:41:30] *** kc3_ has quit IRC
[16:41:39] *** icotestin has joined #angularjs
[16:42:00] *** PeterMetz has joined #angularjs
[16:42:04] *** [boxmein] is now known as boxmein
[16:42:46] *** intellix has joined #angularjs
[16:43:15] <Nouv> This is totally wrong, right? http://pastebin.com/SLNk5VDn
[16:43:30] *** seriema has quit IRC
[16:43:33] *** lite_ has quit IRC
[16:44:01] *** seriema has joined #angularjs
[16:44:18] *** kuadrosx_ has joined #angularjs
[16:44:48] *** ihab has joined #angularjs
[16:45:14] *** kuadrosx has quit IRC
[16:45:15] *** sanjeri has joined #angularjs
[16:45:58] *** kc3 has joined #angularjs
[16:46:00] *** Siecje has joined #angularjs
[16:46:12] *** cotko has joined #angularjs
[16:46:12] *** Sadin has quit IRC
[16:46:22] *** cotko has quit IRC
[16:46:24] <sanjeri> hello. can someone help me?
[16:47:04] *** macabre has quit IRC
[16:47:15] *** sanjeri has quit IRC
[16:47:33] *** Sadin has joined #angularjs
[16:47:35] *** mdcox has quit IRC
[16:48:20] *** tfennelly has quit IRC
[16:48:39] *** lsiv568 has quit IRC
[16:48:48] *** seriema has quit IRC
[16:48:51] *** macabre has joined #angularjs
[16:49:37] *** diefans has quit IRC
[16:51:25] *** foofoobar has joined #angularjs
[16:51:33] *** Sadin has quit IRC
[16:52:03] *** sebhoss has quit IRC
[16:52:09] *** happyface has quit IRC
[16:53:34] *** azizur has quit IRC
[16:53:40] *** poolside has joined #angularjs
[16:53:52] *** lsiv568 has joined #angularjs
[16:54:09] *** rileylark has quit IRC
[16:54:10] <dman777_1lter> is there a way to manually create a debounce? I am stuck with angular 1.2
[16:54:15] *** tristanp has quit IRC
[16:54:19] *** tkdaj has joined #angularjs
[16:54:23] *** rileylark has joined #angularjs
[16:54:30] <tkdaj> could anyone tell me why this code doesn't work? <li ng-repeat="award in recognitionAwards | groupBy: Type"><a href="" ng-click="selectAward($index)">{{award.Award}}</a></li>
[16:54:39] *** craigp has quit IRC
[16:54:40] <tkdaj> if I take the groupBy out it works just fine
[16:54:48] <tkdaj> but when I put the filter in it complains
[16:54:58] *** merrihew has joined #angularjs
[16:54:58] *** diraol has quit IRC
[16:55:39] <jaydubya> tkdaj: what kind of collection is it? groupBy only works with arrays and not objects
[16:55:43] *** bkuberek_ has joined #angularjs
[16:55:47] <tkdaj> oh...
[16:55:50] <tkdaj> yeah, it's an object
[16:55:51] *** Anton_ has quit IRC
[16:56:08] *** davesidious_ has joined #angularjs
[16:56:08] <tkdaj> well, it's a list of objects
[16:56:10] *** jagga has quit IRC
[16:56:11] *** mzabriskie has joined #angularjs
[16:56:22] *** diosney has joined #angularjs
[16:56:24] <jaydubya> there are some user provided filters if you google for them ...
[16:56:43] *** Siyfion has quit IRC
[16:56:53] *** prosper_ has joined #angularjs
[16:57:02] <jaydubya> tkdaj: so it is an array of objects?
[16:57:06] <tkdaj> yeah
[16:57:31] <tkdaj> Well, actually.. It is sent from a webApi as a C# list<object>
[16:57:42] <tkdaj> so, in translation, I guess it is actually a list of objects and not an array
[16:57:44] <jaydubya> bit boom
[16:57:44] *** bkuberek has quit IRC
[16:57:52] *** opiates_ has quit IRC
[16:57:56] *** bengillies has quit IRC
[16:58:13] *** rileylark has quit IRC
[16:58:17] <jaydubya> can you cast it to an array?
[16:59:20] *** rileylark has joined #angularjs
[16:59:31] *** dcherman has joined #angularjs
[16:59:44] *** rileylark has quit IRC
[16:59:52] *** davesidious has quit IRC
[17:00:18] *** rileylark has joined #angularjs
[17:00:38] <jaydubya> tkdaj: try groupBy: 'Type'" -- single quoted
[17:00:45] *** rtpg has joined #angularjs
[17:00:49] <jaydubya> just around Type
[17:00:50] <tkdaj> okay
[17:01:06] <tkdaj> and I can also try to cast it as an array when I get the info
[17:01:17] *** rtpg has quit IRC
[17:01:17] *** startupality has quit IRC
[17:01:22] *** Patrick_Baitman has quit IRC
[17:01:27] *** rtpg has joined #angularjs
[17:01:33] *** Maketroli has quit IRC
[17:01:39] <jaydubya> maybe you won't have to
[17:01:42] *** mccarrontr1ck has quit IRC
[17:01:49] *** Patrick_Baitman has joined #angularjs
[17:02:26] <tkdaj> ah
[17:02:32] *** Fire-Dragon-DoL has joined #angularjs
[17:02:40] *** Silne30 has joined #angularjs
[17:02:43] <tkdaj> When I console.log the typeof the main object that is iterated through
[17:02:47] <tkdaj> it comes up as just object
[17:02:51] *** Laserbeak43 has joined #angularjs
[17:02:54] *** juampy has joined #angularjs
[17:03:09] *** Laserbeak43 has quit IRC
[17:03:15] <tkdaj> and, unfortunately, the single quotes didn't work either
[17:03:17] <tkdaj> still get an error
[17:03:22] *** mkc_ has joined #angularjs
[17:03:24] <jaydubya> did the single quotes not work?
[17:03:26] *** Laserbeak43 has joined #angularjs
[17:03:58] *** Anton_ has joined #angularjs
[17:04:04] *** mccarrontr1ck has joined #angularjs
[17:04:44] <jaawerth> tkdaj: wait, what do you mean "list of objects" if not an array? is it an object of objects?
[17:04:55] <elrabin> }
[17:04:56] <jaawerth> is it valid json?
[17:04:56] *** mkc_ has quit IRC
[17:05:11] *** mkc_ has joined #angularjs
[17:05:12] <elrabin> oops
[17:05:14] *** nfroidure has quit IRC
[17:05:15] <jaawerth> dman777_1lter: you can do a basic debounce with $timeout pretty easily
[17:05:28] <tkdaj> One sec
[17:05:30] <tkdaj> I'll show you
[17:05:30] <jaawerth> dman777_1lter: (I typically just use lodash)
[17:06:21] *** Patrick_Baitman has quit IRC
[17:06:22] *** zeezey has quit IRC
[17:06:22] *** zeezey has joined #angularjs
[17:06:30] *** aslate has joined #angularjs
[17:06:34] <tkdaj> So, this is where the object is coming from: http://plnkr.co/edit/sYeNtU61ae3xeTmhI6nq?p=catalogue
[17:06:41] <tkdaj> that is C#
[17:06:41] *** tomphp has joined #angularjs
[17:06:43] *** jheady1 has left #angularjs
[17:06:48] <tkdaj> a webAPI calls it
[17:06:56] <tkdaj> and then it gets converted to JavaScript
[17:07:11] *** Fire-Dragon-DoL has joined #angularjs
[17:07:14] *** startupality has joined #angularjs
[17:07:19] <tkdaj> it uses Linq to SQl
[17:07:48] *** flyingL123 has joined #angularjs
[17:08:24] *** edy has quit IRC
[17:08:34] *** sigurding has quit IRC
[17:08:36] <jacuqesdancona_> Before the return in a directive, can't I $templateCache.put() a template and reference it in templateUrl?
[17:08:40] *** tschundeee has quit IRC
[17:08:41] *** ivor has quit IRC
[17:09:04] <flyingL123> I just came across a strange bug with angular in Chrome. Has anyone seen this issue before? Here's a summary of the issue I wrote on SO:
[17:09:04] <flyingL123> http://stackoverflow.com/questions/27447247/angular-select-not-changing-model-value-when-tabbing-through-input-fields-in-chr
[17:09:09] *** ivor has joined #angularjs
[17:09:16] *** tschundeee has joined #angularjs
[17:09:22] <flyingL123> and here is the plunker: http://plnkr.co/edit/0DFI7w9mcp76kSA3lmwE?p=preview
[17:09:34] *** tkimmel has joined #angularjs
[17:09:57] *** SahanH has joined #angularjs
[17:10:22] <jacuqesdancona_> directive('stuff, ['$templateCache, function($templateCache){ $templateCache.put(stuff.html, '<div></div>'; return{ templateUrl: 'stuff.html, ............ } }])
[17:10:27] *** kirfu has joined #angularjs
[17:10:30] *** wa5ted_ has joined #angularjs
[17:10:33] *** wa5ted has quit IRC
[17:10:39] *** aslate has quit IRC
[17:11:19] *** Sadin has joined #angularjs
[17:11:50] *** Sadin has quit IRC
[17:12:00] *** basiclaser_ has quit IRC
[17:12:05] *** Sadin has joined #angularjs
[17:12:23] <jaawerth> tkdaj: yeah, it really don't matter where it comes from, it matters what the serialized format is in the http response
[17:12:24] *** PeterMetz has quit IRC
[17:12:28] <jaawerth> doesn't*
[17:12:37] *** sigurding has joined #angularjs
[17:12:49] *** angelazou has quit IRC
[17:13:04] *** Aerospark has joined #angularjs
[17:13:08] *** busticated has joined #angularjs
[17:13:16] <jaawerth> tkdaj: if it isn't valid json, you need to either configure your backend so it IS, or config $http to transform the response appropriately
[17:13:45] *** tschundeee has quit IRC
[17:13:55] *** Dan_ has joined #angularjs
[17:13:56] *** Sadin has quit IRC
[17:14:03] *** Sadin_ has joined #angularjs
[17:14:03] *** wa5ted_ has quit IRC
[17:14:20] *** Dan_ is now known as Guest71668
[17:14:36] *** wa5ted has joined #angularjs
[17:14:38] <tkdaj> figured out the problem
[17:14:58] <tkdaj> groupBy doesn't even exist
[17:15:15] <tkdaj> at least by default on angular
[17:15:26] *** melinda87_2 has joined #angularjs
[17:16:25] <jaawerth> well there's one in ngOptions, but no, there's not a built-in filter or what-have-you
[17:16:28] *** busticated has quit IRC
[17:16:33] *** MistahKurtz has joined #angularjs
[17:16:44] <tkdaj> yeah, I see
[17:17:28] *** Xethron has quit IRC
[17:17:34] *** conan_the_destro has joined #angularjs
[17:17:56] *** fabiofb has quit IRC
[17:17:57] *** cheef has quit IRC
[17:18:23] *** juanjob has joined #angularjs
[17:18:25] *** AciD`` has quit IRC
[17:19:06] *** fabiofb has joined #angularjs
[17:19:43] *** Xethron has joined #angularjs
[17:19:43] *** Xethron has joined #angularjs
[17:19:53] *** jameswork has joined #angularjs
[17:20:36] *** diefans has joined #angularjs
[17:20:41] *** fatshark has quit IRC
[17:21:29] *** sojic has joined #angularjs
[17:21:41] <jaydubya> I remember codementor and airpair but there is another one -- anyone know the other one?
[17:21:46] *** jdivock_ has quit IRC
[17:21:47] *** Anton_ has quit IRC
[17:22:05] *** cuebix-wk has joined #angularjs
[17:22:09] *** AngularUI has joined #angularjs
[17:22:09] <AngularUI> [ng-grid] c0bra created fix-tests-1.3.6 (+5 new commits): http://git.io/JAj8_w
[17:22:09] <AngularUI> ng-grid/fix-tests-1.3.6 0525907 Brian Hann: fix(Tests): angular 1.3 compiles style blocks...
[17:22:09] <AngularUI> ng-grid/fix-tests-1.3.6 f06f4ad Brian Hann: chore(Angular): Update to 1.3.6
[17:22:09] <AngularUI> ng-grid/fix-tests-1.3.6 fcf20c7 Brian Hann: fix(GridColumn): $q promises inherit then...
[17:22:09] *** AngularUI has left #angularjs
[17:22:26] *** rchavik_ has quit IRC
[17:22:28] <sojic> I have created directive, which is using bootstrap ui paginator directive. How can I pass function which I will use for paginator on-change?
[17:22:35] *** rtpg has quit IRC
[17:22:50] <CHC> has anyone gotten 'Error: $scope.$watch is not a function'?
[17:23:03] <CHC> when i inspect $scope, i see watch, but not $watch
[17:23:04] *** kuadrosx_ has quit IRC
[17:23:18] *** jdivock_ has joined #angularjs
[17:23:21] *** chrisshattuck has joined #angularjs
[17:23:22] *** kuadrosx_ has joined #angularjs
[17:23:24] *** juristr has joined #angularjs
[17:23:34] *** red_horned_rihno has quit IRC
[17:23:36] *** suiccc has joined #angularjs
[17:24:10] <cuebix-wk> I have a module that normally doesn't need a certain dependency (duScroll), but for one particular directive, I do
[17:24:20] <suiccc> hey guys, wondering if anyone has used angulartics and google tag manager for their angular app? I have it tracking pageviews, unsure how to have it track events.
[17:24:34] <cuebix-wk> Is there a way to make the dependency get included only when that directive is included?
[17:24:46] *** Sadin has joined #angularjs
[17:24:47] *** fatshark has joined #angularjs
[17:24:47] *** tristanp has joined #angularjs
[17:24:54] <cuebix-wk> I'm looking at angular.injector and it seems possible, but it's unclear how exactly
[17:24:58] <nickeddy> cuebix-wk: wrap that directive in a module that has that dependency
[17:25:13] <nickeddy> cuebix-wk: or by $injector, yeah, but lazy loading isn't going to get you anything.
[17:25:25] <nickeddy> err no actually
[17:25:26] *** Sadin has quit IRC
[17:25:27] <juristr> I'm getting an annoyed "Tried to load angular more than once" but just on Chrome :S
[17:25:28] <cuebix-wk> so, i can't make it a part of the other module without the dependency?
[17:25:34] *** merobertsjr has joined #angularjs
[17:25:34] <juristr> on FF it works well, on Chrome the app doesn't start...
[17:25:38] *** Sadin has joined #angularjs
[17:25:42] <nickeddy> cuebix-wk: how else would you?
[17:25:50] <cuebix-wk> I'd like to keep it all together
[17:26:11] <cuebix-wk> I don't know lol that's why I'm asking here
[17:26:21] <nickeddy> what's wrong with the current setup of having your module depend on the module you need to...
[17:26:24] <cuebix-wk> When you say wrap it in another module with the dependency what do you mean?
[17:26:32] <cuebix-wk> Because 90% of the time it's not needed
[17:26:38] *** ggrzybek_afk is now known as ggrzybek
[17:26:47] *** Sadin_ has quit IRC
[17:26:49] <nickeddy> do you understand how DI works in angular?
[17:26:53] <cuebix-wk> it's the directive that needs it, but i want to keep that directive as part of the module
[17:26:59] *** arabot has joined #angularjs
[17:27:00] <cuebix-wk> Not completely. I read a little bit about it
[17:27:01] *** arabot has quit IRC
[17:27:02] <nickeddy> then you have no choice
[17:27:07] <juristr> cuebix-wk You need to implement some lazy loading strategy with requirejs etc...
[17:27:09] <nickeddy> if you want it in the same module
[17:27:12] <nickeddy> no juristr
[17:27:12] <nickeddy> no
[17:27:23] *** dc has joined #angularjs
[17:27:29] <nickeddy> we just had this discussion yesterday
[17:27:44] *** cacts|works has joined #angularjs
[17:27:49] <nickeddy> it doesn't buy you anything to lazy load, not even performance that's noticeable
[17:28:23] <jacuqesdancona_> nevermind my question, some other directive was throwing the rror
[17:28:25] <jacuqesdancona_> it does work
[17:28:34] <cuebix-wk> i'll just make it part of a diff module
[17:29:00] *** Trow2 has joined #angularjs
[17:29:00] <nickeddy> cuebix-wk: why are you so concerned about your module depending on another module for your directive?
[17:29:11] *** Trow2 has quit IRC
[17:29:12] <juristr> nickeddy not sure...but when you have a large app and some users don't even have the right to enter in certain areas, then it might be useful if those aren't being loaded at all into your browser.
[17:29:24] *** tristanp has quit IRC
[17:29:27] <nickeddy> juristr: that's a shit way to handle auth
[17:29:35] <juristr> how would you?
[17:29:36] <Embassy> is it better to use googles hosted angular or a local implementation. Reason I am asking, I have used bower to isntall angular and am following some tutorials. Some tuts fail on my bower installation
[17:29:44] *** jr3 has joined #angularjs
[17:29:49] *** Trow2 has joined #angularjs
[17:29:50] <nickeddy> juristr: by protecting my APIs
[17:29:55] *** blomman has quit IRC
[17:30:01] *** deemeetar has joined #angularjs
[17:30:02] *** Anton_ has joined #angularjs
[17:30:22] <juristr> nickeddy: well obviusly the backend apis are protected
[17:30:22] *** lw has joined #angularjs
[17:30:24] <cuebix-wk> nickeddy, i wanted to keep dependencies on other modules out of my "base" module, which is exactly what i'm gonna do by making a separate module for this directive and any others like it lol
[17:30:34] <juristr> it's not that my only auth is by hiding HTML odr not loading scripts :)
[17:30:43] <jr3> I'm using $http to hit a web api hosted by IIS, if I disable anonymous auth what do I need to set to make this go through using windows auth?
[17:30:44] *** tkdaj1 has joined #angularjs
[17:30:51] <nickeddy> cuebix-wk: that's just shifting the module dependency somewhere else, and again, doesn't buy you anything
[17:30:55] <nickeddy> i give up no one listens
[17:31:02] <jaydubya> lol
[17:31:15] <cuebix-wk> it keeps my code together in its own module. how does it not buy me anything?
[17:31:20] *** tkdaj has quit IRC
[17:31:21] <deemeetar> Hello guys, I'm using ui-router, and i want to preload the template into the original request (instead of it being loaded ajaxy). Im trying to use <script type="text/ng-template" id="/templates/search.search">Content</script> but it doesn't work
[17:31:21] *** tkdaj1 has left #angularjs
[17:31:29] *** vectra has quit IRC
[17:31:48] <jaydubya> I am about to embark on codementor ... is anyone here a mentor ... I would like to keep my money in the community?
[17:31:51] *** dc has quit IRC
[17:31:55] *** subone has joined #angularjs
[17:32:06] *** chrisshattuck has quit IRC
[17:32:12] <nickeddy> jaydubya: what do you need help with
[17:32:18] *** sk87 has joined #angularjs
[17:32:33] <jaydubya> creating new loans
[17:32:34] *** _mtr has joined #angularjs
[17:32:54] *** Trow1 has quit IRC
[17:33:13] <nickeddy> deemeetar: you can use $templateCache.put('templates/search.search', '<template here>');
[17:33:59] *** t1mmen has joined #angularjs
[17:34:39] *** tristanp has joined #angularjs
[17:34:53] *** BahamutWC|Laptop has joined #angularjs
[17:35:03] *** Xethron has quit IRC
[17:35:09] <jacuqesdancona_> hmm, so I've written something but I don't really know if it's helping anything with performance. In a directive which is used multiple times, would it matter to just use template: 'htmlstuff', or putting it in $templateCache beforehand and getting it from the $templateCache?
[17:35:13] *** fbenoit has quit IRC
[17:35:18] *** Trow2 has quit IRC
[17:35:36] *** Trow2 has joined #angularjs
[17:35:38] <jacuqesdancona_> Does $templateCache does anything magical, or is it just storage for htmlstrings?
[17:36:08] <jacuqesdancona_> Use case would be (for example) ng-repeating the directive x times
[17:36:10] *** juristr has quit IRC
[17:36:26] *** red_horned_rihno has joined #angularjs
[17:36:31] *** DuelShark has quit IRC
[17:37:14] *** _mtr has quit IRC
[17:37:22] *** kuadrosx_ is now known as kuadrosx
[17:37:31] *** Xethron has joined #angularjs
[17:37:46] *** Xethron has joined #angularjs
[17:38:15] <cuebix-wk> anyone know of a module like angular-scroll (https://www.npmjs.com/package/angular-scroll) but better?
[17:38:36] <subone> jacuqesdancona_: If you shove it in templateCache you are assured the template will be available even if you lose network later when the directive is used
[17:39:11] *** opiates_ has joined #angularjs
[17:39:53] *** tschundeee has joined #angularjs
[17:40:02] *** ianpirro has joined #angularjs
[17:40:20] *** qdk has quit IRC
[17:40:36] *** UniBot2 has quit IRC
[17:40:53] *** UniBot1 has joined #angularjs
[17:40:54] *** UniBot1 is now known as UniBot2
[17:40:58] *** ajaxan has joined #angularjs
[17:41:07] <deemeetar> nickeddy: Thank you, it seems my original problem was i put the template outside of ng-app root
[17:41:12] *** dmamills has quit IRC
[17:41:13] *** Sky[x] has quit IRC
[17:41:22] <nickeddy> deemeetar: ah yeah that will do it too :)
[17:41:26] *** mica1 has joined #angularjs
[17:41:45] *** arpu has quit IRC
[17:41:59] *** samuel02 has quit IRC
[17:42:06] *** axsuul has joined #angularjs
[17:42:11] *** yuradoc has quit IRC
[17:43:08] *** macobo has quit IRC
[17:43:09] *** loverajoel has quit IRC
[17:43:37] *** moogey has joined #angularjs
[17:43:39] *** jhertz has joined #angularjs
[17:44:19] <jhertz> Hi, I am trying to get this very simple angular code to work, but it is not <div ng-include="test.html">some text</div>
[17:44:49] <subone> Hmmm... That works on my machine
[17:45:03] *** lw has quit IRC
[17:45:07] *** tschunde_ has joined #angularjs
[17:45:08] *** cboden has quit IRC
[17:45:13] <jhertz> It dose something, since some text gets removed, but it dose not replace it, nor do I see a request for test.html
[17:45:18] *** chr1stopher has left #angularjs
[17:45:24] <jacuqesdancona_> subone, it would also work when using an inline template template: 'wfiowejfwiofjeif'
[17:45:35] *** pskrz has quit IRC
[17:45:40] <subone> <div ng-include src="'test.html'">some text</div>
[17:45:48] *** btc_panhandler has joined #angularjs
[17:46:01] *** artisangoose has joined #angularjs
[17:46:06] <jacuqesdancona_> subone: that's already put in the templateCache
[17:46:15] *** cboden has joined #angularjs
[17:46:17] <jhertz> subone: thank you
[17:46:23] <jacuqesdancona_> but it's more about partials
[17:46:24] *** annlewis has quit IRC
[17:46:28] *** pknordic has quit IRC
[17:46:50] <jacuqesdancona_> afaik, when used in an ng-include, it's automatically pushed to the templateCache
[17:47:00] *** pknordic has joined #angularjs
[17:47:04] *** Solid1_afk is now known as Solid1
[17:47:28] *** tschundeee has quit IRC
[17:47:58] *** ianpirro has quit IRC
[17:47:59] <jacuqesdancona_> the only plus I can think of at the moment is not having to join or concat an array or strings, but that's probably negligible
[17:48:01] *** zumba_addict has joined #angularjs
[17:48:20] *** jonatas_oliveira has joined #angularjs
[17:49:16] <subone> jacuqesdancona_: sorry, thought you meant templateUrl
[17:49:36] <jacuqesdancona_> subone: ah ok :)
[17:49:41] *** tschunde_ has quit IRC
[17:49:48] <subone> Now I wonder if 'template:' actually uses templatecache
[17:49:59] *** Xethron has quit IRC
[17:50:01] <jacuqesdancona_> oh uh
[17:50:02] *** tkimmel has quit IRC
[17:50:03] <jacuqesdancona_> no it doesn't
[17:50:15] *** tschundeee has joined #angularjs
[17:50:15] <jacuqesdancona_> I am talking about template:
[17:50:44] <jacuqesdancona_> but it can, since templateCache returns strings
[17:51:04] *** IvanoffC_ has quit IRC
[17:51:11] *** pknordic has quit IRC
[17:51:33] *** Anton_ has quit IRC
[17:51:36] <jacuqesdancona_> if templateCache returned actual domnodes, my thingy would've be better in performance
[17:51:45] <jacuqesdancona_> but probably lots of detached domnodes
[17:51:45] <jacuqesdancona_> aaargh
[17:52:19] *** IvanoffCSI has joined #angularjs
[17:52:36] <jr3> whenever i disabled anonymous auth in IIS angularjs $http shit bricks
[17:52:44] *** rileylark has quit IRC
[17:52:56] <nickeddy> first problem is IIS ;)
[17:53:13] *** tarnus has quit IRC
[17:53:14] <jr3> no way around that
[17:53:14] *** tangorri has quit IRC
[17:53:21] <jr3> unfourtantely, at the moment
[17:53:22] *** yelvert has joined #angularjs
[17:53:40] *** neophyte_green has joined #angularjs
[17:53:58] *** cacts has quit IRC
[17:53:59] *** mAxX-- has joined #angularjs
[17:54:06] <jlebrech> how do I access the name variable from the callback? https://gist.github.com/jlebrech/4502e6a3e9f50168ea82
[17:54:18] *** Aerospark has quit IRC
[17:54:36] *** aendrew has quit IRC
[17:55:05] <MistahKurtz> morning
[17:57:28] *** younqcass has quit IRC
[17:57:31] *** flyingL123 has quit IRC
[17:57:32] *** Alax has quit IRC
[17:57:49] *** deemeetar has quit IRC
[17:58:18] *** bengillies has joined #angularjs
[17:58:31] *** phuh has joined #angularjs
[17:59:00] *** diraol has joined #angularjs
[17:59:10] <vonnegut> hi everyone.. so, batarang not working this morning. models not showing up.. did recent update break it?
[17:59:10] *** fedenunez has quit IRC
[17:59:12] *** Aerospark has joined #angularjs
[17:59:14] <vonnegut> any one else seeing this?
[17:59:20] *** SargoDarya has joined #angularjs
[17:59:37] *** Sjeeke has joined #angularjs
[17:59:38] *** Anton_ has joined #angularjs
[18:01:06] <bberry> Is it a bad idea in an ajax request to receive a large object that will be used to display data on my page? The data may not be displayed all at the same time, but for handling data within the client side application, it makes it a lot easier.
[18:01:08] <jacuqesdancona_> vonnegut: yeah
[18:01:13] <bberry> I only ask because of this article: https://www.airpair.com/angularjs/posts/angularjs-performance-large-applications
[18:01:15] <jacuqesdancona_> batarang last update breaks pretty much anything
[18:01:21] <jacuqesdancona_> you should manually update
[18:01:23] <vonnegut> so, how to fix? revert?
[18:01:35] <jacuqesdancona_> revert or update manually, I updated manually to 0.7.4 (iirc)]
[18:01:43] *** tristanp has quit IRC
[18:01:50] <vonnegut> ok.. ill try pushing to 0.7.4
[18:01:52] <vonnegut> thanks..
[18:02:02] *** fedenunez has joined #angularjs
[18:02:23] <jacuqesdancona_> vonnegut: https://github.com/angular/angularjs-batarang/releases
[18:02:28] <MistahKurtz> I hava a big form, comprised of directives that wrap form inputs with special functionality (e.g., like auto complete lookups)
[18:02:39] <vonnegut> heading there now.. i appreciate the help jacuqesdancona_
[18:02:43] <jacuqesdancona_> no problems
[18:02:47] <jacuqesdancona_> problem*
[18:02:53] <MistahKurtz> now I need to pre-populate the form when the user is editing a resource, rather than creating a new one
[18:03:05] *** juanpablo_ has quit IRC
[18:03:12] *** tristanp has joined #angularjs
[18:03:19] <vonnegut> i guess the one good thing I implmented every last "hint"
[18:03:24] <vonnegut> trying to fix the prb
[18:03:26] <vonnegut> heh
[18:03:26] <MistahKurtz> but it's asynchronous, so I can't just do <form-input data="data" /> and have it work seamlessly
[18:03:35] *** lsiv568 has quit IRC
[18:03:42] <MistahKurtz> the current implementation has a watcher in each directive, that watches for data
[18:03:46] <MistahKurtz> and once it's present it populates the form
[18:03:52] *** bengillies has quit IRC
[18:03:55] <vonnegut> now batarang will approve of my applications naming conventions much more then it did in the past. :)
[18:03:57] <MistahKurtz> but it's clunky and we're trying to refactor to have a better interface
[18:04:10] *** SargoDarya has quit IRC
[18:04:15] <MistahKurtz> wondering if the parent form should be its own directive, which the child directives then require
[18:04:17] *** mven has quit IRC
[18:04:27] *** rafagomes has quit IRC
[18:04:32] *** sigurding has quit IRC
[18:04:36] *** azizur has joined #angularjs
[18:04:37] *** Sjeeke has quit IRC
[18:05:03] *** VictorBjelkholm has quit IRC
[18:05:12] *** FrankH has joined #angularjs
[18:05:30] *** lsiv568 has joined #angularjs
[18:06:15] *** ggrzybek has quit IRC
[18:06:30] *** rafagomes has joined #angularjs
[18:07:26] *** Superhard__ has joined #angularjs
[18:07:41] *** lsiv568 has quit IRC
[18:07:45] *** rileylark has joined #angularjs
[18:07:50] *** sheplu has quit IRC
[18:08:42] *** ProLoser has joined #angularjs
[18:08:43] *** phuh has quit IRC
[18:08:47] *** jacuqesdancona_ has quit IRC
[18:09:08] *** phuh has joined #angularjs
[18:09:23] *** jacuqesdancona_ has joined #angularjs
[18:09:31] *** IvanoffC_ has joined #angularjs
[18:09:40] *** DrMabuse has quit IRC
[18:10:00] *** tomphp has quit IRC
[18:11:08] *** Slowintrepid has quit IRC
[18:11:35] *** codeninja-don has joined #angularjs
[18:11:37] *** IvanoffCSI has quit IRC
[18:12:05] *** Superhard__ has quit IRC
[18:12:49] *** bostonaholic has joined #angularjs
[18:12:59] *** ihab has quit IRC
[18:13:01] *** sk87 has quit IRC
[18:13:13] *** ProLoser has quit IRC
[18:13:39] *** codeninja-don has quit IRC
[18:13:48] *** jacuqesdancona_ has quit IRC
[18:13:52] *** btc_panhandler has quit IRC
[18:13:54] *** sheplu has joined #angularjs
[18:14:10] *** code-ninja{io} has joined #angularjs
[18:14:31] *** ChadStrat has joined #angularjs
[18:14:54] *** jlebrech has quit IRC
[18:14:59] *** tarnus has joined #angularjs
[18:15:06] <balr0g> hello, please help to enable button on matching, whats wrong? http://jsfiddle.net/0z8j7kw3/ im based upon this: http://www.ng-newsletter.com/posts/validations.html
[18:15:34] *** mica1 is now known as mica
[18:15:41] *** mica has left #angularjs
[18:16:21] *** sojic has quit IRC
[18:16:47] *** nickgs has quit IRC
[18:16:59] *** tristanp has quit IRC
[18:17:40] *** yelvert has quit IRC
[18:17:52] *** johnnyfive has joined #angularjs
[18:17:57] *** diefans has quit IRC
[18:17:59] *** BahamutWC|Work has quit IRC
[18:18:42] *** tristanp has joined #angularjs
[18:19:11] *** glitch-hat has quit IRC
[18:19:29] *** glitch-hat has joined #angularjs
[18:19:32] *** Leon has quit IRC
[18:20:42] *** Trow1 has joined #angularjs
[18:20:45] *** startupality has quit IRC
[18:20:50] *** Trow1 has quit IRC
[18:20:55] *** nemothekid has joined #angularjs
[18:20:56] *** mzabriskie has quit IRC
[18:21:07] *** jonathanpglick has joined #angularjs
[18:21:12] *** ianpirro has joined #angularjs
[18:21:33] *** Trow1 has joined #angularjs
[18:22:05] *** suiccc has quit IRC
[18:22:06] *** mzabriskie has joined #angularjs
[18:22:20] *** jdcasey has quit IRC
[18:22:33] *** mven has joined #angularjs
[18:23:02] *** arthas has quit IRC
[18:23:32] *** Xethron has joined #angularjs
[18:23:34] *** IanOlson has joined #angularjs
[18:23:53] *** Trow2 has quit IRC
[18:24:16] *** dacuca has quit IRC
[18:24:32] *** sonofdirt has quit IRC
[18:24:35] *** yelvert has joined #angularjs
[18:24:36] *** m8 has quit IRC
[18:25:12] *** sonofdirt has joined #angularjs
[18:25:52] *** intellix has quit IRC
[18:26:18] *** DarrenCraig has quit IRC
[18:27:21] *** robdubya has quit IRC
[18:27:55] *** dc has joined #angularjs
[18:28:37] *** red_horned_rihno has quit IRC
[18:28:52] *** zeezey has quit IRC
[18:29:18] *** red_horned_rihno has joined #angularjs
[18:29:25] *** sonofdirt has quit IRC
[18:29:28] *** tschundeee has quit IRC
[18:29:54] *** IvanoffC_ has quit IRC
[18:30:04] *** tschundeee has joined #angularjs
[18:30:09] *** mikehaas763 has joined #angularjs
[18:30:38] *** dannyc has quit IRC
[18:30:47] *** Aliks has joined #angularjs
[18:30:56] *** IvanoffC_ has joined #angularjs
[18:31:18] *** dannyc has joined #angularjs
[18:31:26] *** ajaxan has quit IRC
[18:31:33] *** conan_the_destro has quit IRC
[18:31:39] *** tschunde_ has joined #angularjs
[18:31:46] *** gladely has quit IRC
[18:31:51] *** juampy is now known as juampy_backlater
[18:31:57] *** tschundeee has quit IRC
[18:32:32] *** mdcox has joined #angularjs
[18:32:52] *** conan_the_destro has joined #angularjs
[18:33:15] <nickeddy> anyone done any angularjs with jawbone up?
[18:33:25] *** rafagomes has quit IRC
[18:35:29] *** dannyc has quit IRC
[18:35:43] *** Anonymous_ has joined #angularjs
[18:36:04] *** foofoobar has quit IRC
[18:36:06] *** g33k5z has quit IRC
[18:36:11] *** Aerospark has quit IRC
[18:36:32] *** g33k5z has joined #angularjs
[18:36:42] *** prosper_ has quit IRC
[18:37:02] *** sigurding has joined #angularjs
[18:37:52] *** tomengland_mbp has joined #angularjs
[18:37:59] *** Xethron has quit IRC
[18:38:06] *** icotestin has quit IRC
[18:38:22] *** ninjaparade has joined #angularjs
[18:38:23] *** moo_oose has quit IRC
[18:38:30] <subone> balr0g: I don't see a button
[18:38:48] *** rileylark has quit IRC
[18:38:56] *** g33k5z has quit IRC
[18:39:22] *** jdivock_ has quit IRC
[18:39:36] *** Klumben has quit IRC
[18:39:42] *** g33k5z has joined #angularjs
[18:40:23] *** red_horned_rihno has quit IRC
[18:40:46] *** arcanin has quit IRC
[18:40:56] <vonnegut> jacuqesdancona_, i had to roll back to batarang 4.x top get it working again
[18:41:01] *** red_horned_rihno has joined #angularjs
[18:41:03] *** rafagomes has joined #angularjs
[18:41:11] *** ChadStrat has quit IRC
[18:41:11] *** icotestin has joined #angularjs
[18:41:16] <vonnegut> this 6x version (and the short lived 5x) totally breaks chrome and chromium on ubuntgu
[18:41:30] *** rileylark has joined #angularjs
[18:41:30] *** red_horned_rihno has quit IRC
[18:41:45] *** jr3 has quit IRC
[18:41:52] <vonnegut> but, angularjs-batarang-0.4.3, thankfully, works OK still
[18:41:58] *** red_horned_rihno has joined #angularjs
[18:42:20] <vonnegut> what a waste of 2 hours that was
[18:42:24] <vonnegut> thanks google!
[18:42:32] *** samuel02 has joined #angularjs
[18:42:38] <vonnegut> great job regerssion testing your new tools!
[18:42:38] *** glitch-hat has quit IRC
[18:42:44] <vonnegut> (done venting now)
[18:43:03] *** poolside has quit IRC
[18:43:10] *** Anton_ has quit IRC
[18:43:28] *** smoores has joined #angularjs
[18:43:40] *** loverajoel has joined #angularjs
[18:43:55] *** g33k5z has quit IRC
[18:44:27] *** jareddlc has joined #angularjs
[18:44:44] *** yoshokatana has quit IRC
[18:44:49] *** poolside has joined #angularjs
[18:44:56] <mdcox> vonnegut: mighty good venting. 10/10
[18:45:25] *** tomengland_mbp has left #angularjs
[18:45:43] *** icotestin has quit IRC
[18:46:10] *** mbildner has joined #angularjs
[18:46:16] *** bostonaholic has quit IRC
[18:46:37] *** ngbot has joined #angularjs
[18:46:37] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/o6Ww2w
[18:46:37] <ngbot> angular.js/master b9bdbe6 Georgios Kalpakas: fix($http): only parse as JSON when opening/closing brackets match...
[18:46:37] *** ngbot has left #angularjs
[18:46:38] *** nemothekid has quit IRC
[18:46:42] <mbildner> did batarang change substantially recently?
[18:46:42] *** juanjob has quit IRC
[18:46:45] *** dave_boling has quit IRC
[18:46:49] <nickeddy> mbildner: yes
[18:46:51] <mbildner> I can’t find the performance tab anymore
[18:46:53] <mbildner> :(
[18:46:58] <nickeddy> mbildner: they had issues with 1.3
[18:47:02] <mbildner> ahhhh
[18:47:09] *** Johnny13371337 has joined #angularjs
[18:47:11] <nickeddy> mbildner: ctanga what version should he revert to?
[18:47:13] *** Sadin has quit IRC
[18:47:34] <mbildner> to clarify - is that revert my angular library or my batarang?
[18:47:38] <mbildner> nickeddy:
[18:47:42] <nickeddy> batarang
[18:47:49] <nickeddy> you could use ng-inspector too
[18:48:35] <mbildner> cool! does it do performance profiling too?
[18:48:43] *** loverajoel has quit IRC
[18:48:46] <mbildner> (I’m trying to speed up a slow monster web app)
[18:49:08] <nickeddy> not sure. though there's an ng watchers one to see how many watchers you have on page (probably the first optimization there)
[18:49:17] <vonnegut> thanks mdcox
[18:49:29] *** _mtr has joined #angularjs
[18:49:34] *** icotestin has joined #angularjs
[18:49:50] *** mkc_ has quit IRC
[18:50:12] *** nemothekid has joined #angularjs
[18:50:18] <mbildner> yeah I’m past that already :p trying to figure out which template-built watchers are slowing it down
[18:50:31] <vonnegut> on ubuntu (at least), these upgrades to batarang are totally broken.
[18:50:46] <nickeddy> vonnegut: yeah, we discovered that yesterday :P
[18:50:51] <vonnegut> maybe its great on windows and mac..
[18:50:55] <nickeddy> vonnegut: ng-inspector
[18:51:08] <vonnegut> yesterday i was deep in API side code so i missed it
[18:51:12] <vonnegut> until thismorning
[18:51:38] *** Anton_ has joined #angularjs
[18:51:49] *** annlewis has joined #angularjs
[18:51:56] *** yts has joined #angularjs
[18:51:59] *** simplyshipley has quit IRC
[18:52:09] *** Anton_ has quit IRC
[18:52:18] *** JohnBat26 has quit IRC
[18:52:26] *** robdubya has joined #angularjs
[18:52:29] *** simplyshipley has joined #angularjs
[18:52:51] *** _mtr_ has joined #angularjs
[18:52:54] *** zemanel has quit IRC
[18:53:08] *** snurfery has joined #angularjs
[18:53:09] <diraol> Friends, I'm facing some problems to deal with a call to a "Service" [ app.factory(...) ] and how to treat it on my controller.
[18:53:46] <nickeddy> wat
[18:53:59] <snurfery> sup yall
[18:54:02] <snurfery> top of the mornin
[18:54:16] *** icotestin has quit IRC
[18:54:20] <diraol> Inside this service I have a routine that waits for some user action and then it returns a text. I need to use that text to go to another state.
[18:54:20] *** yelvert has quit IRC
[18:54:32] *** phzon has quit IRC
[18:54:36] *** woah has joined #angularjs
[18:54:45] *** IvailoStoianov_ has joined #angularjs
[18:55:15] *** nabdev has quit IRC
[18:55:15] *** sonofdirt has joined #angularjs
[18:55:30] *** aslate has joined #angularjs
[18:55:36] <mbildner> vonnegut: I’m on chrome 39 on mac yosemite
[18:55:40] <mbildner> fwiw
[18:56:16] *** loverajoel has joined #angularjs
[18:56:17] *** IvailoStoianov has quit IRC
[18:56:19] *** IvailoStoianov_ is now known as IvailoStoianov
[18:56:56] *** phzon has joined #angularjs
[18:57:07] *** IvanoffCSI has joined #angularjs
[18:57:14] *** lsiv568 has joined #angularjs
[18:57:16] *** DLSteve_ has joined #angularjs
[18:57:36] *** dmack has quit IRC
[18:57:45] *** PeterMetz has joined #angularjs
[18:57:57] *** dobladez has joined #angularjs
[18:58:02] *** bostonaholic has joined #angularjs
[18:58:15] *** PeterMetz has quit IRC
[18:58:17] *** DarrenCraig has joined #angularjs
[18:58:26] *** guilbep has quit IRC
[18:58:38] *** qdk has joined #angularjs
[18:58:47] *** DLSteve has quit IRC
[18:58:54] *** bostonaholic has quit IRC
[18:59:13] *** IvanoffC_ has quit IRC
[18:59:17] *** iateadonut has joined #angularjs
[18:59:33] *** Klumben has joined #angularjs
[18:59:56] *** Anton_ has joined #angularjs
[19:00:12] *** SargoDarya has joined #angularjs
[19:00:18] *** wallerdev has joined #angularjs
[19:00:19] *** k-dawg has joined #angularjs
[19:00:21] *** aslate has quit IRC
[19:00:47] *** opiates_ has quit IRC
[19:00:59] *** yoshokatana has joined #angularjs
[19:01:08] *** Aerospark has joined #angularjs
[19:01:33] *** phzon has quit IRC
[19:01:47] *** IanOlson has quit IRC
[19:01:49] *** dannyc has joined #angularjs
[19:02:25] *** Lewix has quit IRC
[19:02:26] *** mchapman has quit IRC
[19:02:44] *** samuel02 has quit IRC
[19:02:52] *** neophyte_green has quit IRC
[19:02:56] *** DarrenCraig has quit IRC
[19:03:11] *** RobinBAwesome has joined #angularjs
[19:03:27] *** juanpablo_ has joined #angularjs
[19:04:03] *** tschunde_ has quit IRC
[19:04:20] *** SargoDarya has quit IRC
[19:04:38] *** tschundeee has joined #angularjs
[19:04:49] *** gladely has joined #angularjs
[19:05:18] *** ron1 has quit IRC
[19:05:34] *** poolside has quit IRC
[19:05:59] *** BahamutWC|Work has joined #angularjs
[19:06:09] *** dannyc has quit IRC
[19:06:25] *** FrankH has quit IRC
[19:06:43] *** lw has joined #angularjs
[19:06:54] *** FrankH has joined #angularjs
[19:07:10] *** lw has quit IRC
[19:07:38] *** Lewix has joined #angularjs
[19:07:45] *** lw has joined #angularjs
[19:07:46] *** Lewix has quit IRC
[19:07:46] *** Lewix has joined #angularjs
[19:07:52] *** d4rklit3 has joined #angularjs
[19:08:40] *** juanpablo_ has quit IRC
[19:08:42] *** phuh has quit IRC
[19:09:01] *** tschundeee has quit IRC
[19:09:10] *** phuh has joined #angularjs
[19:09:32] *** diosney has quit IRC
[19:10:01] *** jdivock_ has joined #angularjs
[19:10:06] *** lexek__ has quit IRC
[19:10:22] *** yelvert has joined #angularjs
[19:11:31] *** Anton_ has quit IRC
[19:11:43] *** poolside has joined #angularjs
[19:12:10] *** Embassy has quit IRC
[19:12:50] *** getn_outchea has quit IRC
[19:14:11] <balr0g> subone: r u seeing this? http://jsfiddle.net/0z8j7kw3/ there is a "Save" button...
[19:14:28] *** angelazou has joined #angularjs
[19:14:54] *** jdivock_ has quit IRC
[19:15:16] *** seriema has joined #angularjs
[19:15:23] *** merobertsjr has quit IRC
[19:15:40] *** Lawd has joined #angularjs
[19:15:56] *** merobertsjr has joined #angularjs
[19:16:18] *** whunt has joined #angularjs
[19:16:41] <robdubya> holllaaaa
[19:16:42] *** DrMabuse has joined #angularjs
[19:16:50] *** bengillies has joined #angularjs
[19:17:21] *** SomeKittens has joined #angularjs
[19:17:43] *** bboyjacks has joined #angularjs
[19:18:01] <Lawd> when using stSelectRow in smart table, how do you reference a value in the selected row
[19:18:04] *** Lewix has quit IRC
[19:18:20] <bboyjacks> Hey guys can post snippets of angular code here to get feedback?
[19:18:26] <robdubya> no.
[19:18:36] <bboyjacks> where can I do that?
[19:18:41] <robdubya> here
[19:18:44] <nickeddy> bboyjacks: you can use plnkrs and pastebins
[19:18:54] <nickeddy> pasting code directly in here will result in death though
[19:19:03] <robdubya> bboyjacks gist.github.com
[19:19:06] *** angelazou has quit IRC
[19:19:08] <robdubya> then paste the link :D
[19:19:15] *** bengillies has quit IRC
[19:19:20] <Nouv> What's going on here? http://pastebin.com/nSENByjG
[19:19:24] *** chrisshattuck has joined #angularjs
[19:19:29] *** Anton_ has joined #angularjs
[19:19:31] <Nouv> In the $http.get.success, it isn't writing to the variable proeprly
[19:19:37] <Nouv> properly*
[19:19:45] *** swist has quit IRC
[19:19:49] *** testin has joined #angularjs
[19:19:51] <Nouv> Where it says this.response = data;, it doesn't seem to do that?
[19:19:56] <robdubya> your this is is probably not this
[19:20:02] *** jacuqesdancona_ has joined #angularjs
[19:20:20] <Nouv> Hm?
[19:20:27] *** tristanp has quit IRC
[19:20:31] *** djvirgen has joined #angularjs
[19:20:34] *** seriema has quit IRC
[19:20:46] *** walden is now known as walden|lunch
[19:21:07] <Nouv> robdubya: What do you mean?
[19:21:23] *** sheplu has quit IRC
[19:21:32] *** Anton_ has quit IRC
[19:21:34] <robdubya> first - are you using ctrl As on the controller?
[19:21:37] *** pilva has quit IRC
[19:21:40] *** DrMabuse has quit IRC
[19:21:42] <Nouv> Yep
[19:21:47] <robdubya> so postCtrl as post
[19:21:48] <Nouv> <div ng-controller="postCtrl as post">
[19:22:03] <robdubya> i'd so
[19:22:05] <robdubya> *do
[19:22:09] <robdubya> var post = this;
[19:22:11] *** feurler55 has joined #angularjs
[19:22:18] <robdubya> and then insie the handler
[19:22:25] <robdubya> post.response = data;
[19:22:28] <Nouv> var post = this where?
[19:22:34] <robdubya> line 5
[19:22:35] *** eBureau has quit IRC
[19:22:37] <robdubya> then
[19:22:42] <robdubya> {{post.response}} in the view
[19:22:43] *** kirfu has quit IRC
[19:22:46] *** tristan_1990 has joined #angularjs
[19:22:52] *** feurler55 has quit IRC
[19:23:03] <tristan_1990> Hey. I have an app made on node.js and I'm having real problems changing it to using angular from using jade templating. Is there anybody who would be interested in Ionic-fying my app. I have a small budget, but I don't think this is a big job at all. PM me - thanks.
[19:23:14] *** chrisbirk has joined #angularjs
[19:23:17] *** jonathanpglick has quit IRC
[19:23:50] <robdubya> make a bunch of APIs, ???, profit
[19:24:10] <tristan_1990> ^^ To use the Ionic Framework, that is.
[19:24:18] *** kenhoes has joined #angularjs
[19:24:22] <Nouv> robdubya: That works, I don't understand why though?
[19:24:27] *** jacuqesdancona_ has quit IRC
[19:24:38] *** kenhoes is now known as kenpoint
[19:24:50] *** Mxyzpltk has quit IRC
[19:25:07] *** jonathanpglick has joined #angularjs
[19:25:18] <vonnegut> mbildner: Version 39.0.2171.95 (64-bit) on ubuntu 14.04 lts
[19:25:27] *** Mxyzpltk has joined #angularjs
[19:25:37] <vonnegut> (chrome version meant to say)
[19:26:13] <mbildner> vonnegut: saying it’s broken there too?
[19:26:14] <vonnegut> only batarang 4x works. oh well.. at least that.. i am sure the guys at google will get it figured out before long.
[19:26:28] <Nouv> robdubya: So I can't access "this" inside the function?
[19:27:08] <vonnegut> yeah.. broken on 64 bit ubuntu linux on chrome 39
[19:27:20] *** ajaxan has joined #angularjs
[19:27:22] <mbildner> yeah some parts of it still work for me
[19:27:30] <mbildner> just not the parts I need lol
[19:27:57] <vonnegut> model/scope inspectioon, gone..
[19:28:04] <vonnegut> main thing i use..
[19:28:18] <vonnegut> heh.. but work around just install 4x
[19:29:01] *** lsiv568 has quit IRC
[19:29:11] *** kirfu has joined #angularjs
[19:29:27] *** Anton_ has joined #angularjs
[19:29:34] <mbildner> does that mean 0.7.4… or am I *way* behind
[19:29:56] <CHC> is there a way to disable the html compiler, requiring you to manually compile?
[19:30:10] *** draco_ has quit IRC
[19:31:12] <balr0g> subone: sorry, this one updated, can you see the button on this? http://jsfiddle.net/b9nefrse/
[19:31:46] *** merobertsjr_ has joined #angularjs
[19:32:38] *** AimerPaddle has joined #angularjs
[19:33:02] <robdubya> Nouv its nothing specific to angular, its just JS scoping
[19:33:08] *** arkanciscan has joined #angularjs
[19:33:13] *** devhoag has joined #angularjs
[19:33:16] *** testin has quit IRC
[19:33:31] *** jdivock_ has joined #angularjs
[19:33:59] *** merobertsjr has quit IRC
[19:34:41] <nickeddy> robdubya: this article is nice but the suggestion of angular.bind is just :| http://toddmotto.com/digging-into-angulars-controller-as-syntax/
[19:34:57] <robdubya> i'd use regular bind personally
[19:35:06] <nickeddy> why not just var self = this;
[19:35:16] <Nouv> How do I do an ng-repeat loop, but have different things for the first item in the loop?
[19:35:23] <Nouv> *array, not loop
[19:36:19] *** rileylark has quit IRC
[19:36:21] *** OnkelTem has quit IRC
[19:36:22] *** testin has joined #angularjs
[19:36:42] <robdubya> bind is useful for all sorts of things https://gist.github.com/robwormald/78b7cbd201e028f63d64#file-challenges-js-L13-L16
[19:36:55] *** Lawd has quit IRC
[19:37:23] *** OnkelTem has joined #angularjs
[19:37:24] *** devhoag has quit IRC
[19:38:09] <nickeddy> robdubya: i meant the way he used it to get a reference of the controller as `this`
[19:38:18] <mbildner> Nouv: ng-repeat will inject $index into the template scope, you can use that to change behavior
[19:38:33] *** TheDreamIsReal has joined #angularjs
[19:38:38] <mbildner> * also gives you $first
[19:38:39] <mbildner> https://docs.angularjs.org/api/ng/directive/ngRepeat
[19:39:03] <Nouv> Like the first item in the array that is repeated will be structured differently to all other items (it's a highlight thing)
[19:39:23] *** eBureau has joined #angularjs
[19:39:23] *** craigp has joined #angularjs
[19:39:41] *** g33k5z_ has joined #angularjs
[19:40:02] *** platonic has quit IRC
[19:40:22] *** ron1 has joined #angularjs
[19:41:03] *** ajaxan has quit IRC
[19:41:19] *** ingsoc has quit IRC
[19:41:21] <mbildner> yeah so inside your ng-repeat, you can for example set a class conditionally based on whether $first is true
[19:42:03] *** devhoag has joined #angularjs
[19:42:21] <Nouv> This is my relevant code - http://pastebin.com/FN7dyKbk
[19:42:24] *** ianpirro has quit IRC
[19:42:30] <Nouv> It's quite different for the first one (that is currently commented out)
[19:42:48] *** SargoDarya has joined #angularjs
[19:43:11] *** Anton_ has quit IRC
[19:43:48] *** g3funk is now known as braidn
[19:43:54] *** smoores has quit IRC
[19:44:34] *** themime has joined #angularjs
[19:44:45] *** debunk has joined #angularjs
[19:45:06] *** jdivock_ has quit IRC
[19:45:07] *** g33k5z_ has quit IRC
[19:45:16] <Nouv> mbildner: ?
[19:45:23] *** diefans has joined #angularjs
[19:45:52] *** tschundeee has joined #angularjs
[19:45:55] <mbildner> Nouv: would be super helpful if you can get me a plunkr :D
[19:46:06] *** mdcox has quit IRC
[19:46:16] <mbildner> and I can show you what I mean
[19:46:20] *** TheAceOfHearts has joined #angularjs
[19:46:32] *** Levi_ has joined #angularjs
[19:46:57] *** h0ru5 has joined #angularjs
[19:47:24] *** devhoag has quit IRC
[19:48:27] <Nouv> Won't work, relies on php (gets the content from the loop from an api)
[19:48:33] *** Sjeeke has joined #angularjs
[19:49:09] <nickeddy> Nouv: server side rendering + angularjs rarely work well together
[19:49:25] <nickeddy> restful APIs on the other hand
[19:49:43] *** mary5030 has quit IRC
[19:49:50] <Nouv> I mean angular makes a http request to a server that returns json encoded results (from php)
[19:50:05] *** dobladez has quit IRC
[19:50:17] *** davek has quit IRC
[19:50:17] *** mary5030 has joined #angularjs
[19:50:19] <nickeddy> ohhh
[19:50:19] <Sawbones> Also be warry, php and apache can't parse application/json type
[19:50:31] <nickeddy> you meant for the plnkr
[19:50:50] *** younqcass has joined #angularjs
[19:51:01] *** tschundeee has quit IRC
[19:51:10] <mbildner> Nouv: just set up a plunkr with some dummy data (can be as simple as “these are a bunch of words”.split(“ “);
[19:51:16] *** Anton_ has joined #angularjs
[19:51:30] *** jdivock_ has joined #angularjs
[19:51:31] <Nouv> Ah, I think I did it - http://pastebin.com/38D1sRwn
[19:51:42] <Nouv> This works, not sure how well though (for performance, running through the loop twice)
[19:51:45] *** mzabriskie has quit IRC
[19:51:51] <nickeddy> Nouv: yeah that will work
[19:52:02] *** ngbot has joined #angularjs
[19:52:02] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/lA00lA
[19:52:02] <ngbot> angular.js/master 1b74097 Pawel Kozlowski: feat($http): pass response status code to data transform functions...
[19:52:02] *** ngbot has left #angularjs
[19:52:04] <nickeddy> Nouv: just wanting to hide the first item?
[19:52:13] <Nouv> ?
[19:52:16] *** Linell has quit IRC
[19:52:23] <nickeddy> that's what you're doing
[19:52:30] <Nouv> No
[19:52:38] <Nouv> It's displaying the first item in a different structure
[19:52:42] <Nouv> <div id="max">
[19:52:48] *** 64MABC50Z has joined #angularjs
[19:53:01] <nickeddy> ah don't do it that way
[19:53:03] <nickeddy> sec
[19:53:08] *** Nivag_ has joined #angularjs
[19:53:21] *** Sjeeke has quit IRC
[19:53:34] *** juanpablo_ has joined #angularjs
[19:53:34] *** rafagomes has quit IRC
[19:53:41] *** SargoDarya has quit IRC
[19:54:34] *** mary5030 has quit IRC
[19:54:45] *** fedenunez has quit IRC
[19:55:16] *** vassagus has quit IRC
[19:55:21] <jaawerth> ugh this gaze error in gulp watch is killing me
[19:55:40] <nickeddy> Nouv: http://pastebin.com/32f1C2xL
[19:55:41] <jaawerth> anyone know of a workaround to the ENOSPC issue where it thinks you'er watching too many files (until you reboot)?
[19:55:42] *** yuradoc_ has joined #angularjs
[19:55:46] <nickeddy> Nouv: that may be what you want
[19:55:50] *** fedenunez has joined #angularjs
[19:56:01] *** ProLoser has joined #angularjs
[19:56:07] *** sheplu has joined #angularjs
[19:56:10] *** Superhard__ has joined #angularjs
[19:56:18] *** nemothekid has quit IRC
[19:56:19] <nickeddy> Nouv: oops, take off that ng-if="$first"
[19:57:06] <Nouv> Broken structure, but I think the idea is right
[19:57:09] *** Lewix has joined #angularjs
[19:57:19] *** dmack has joined #angularjs
[19:57:24] <jaawerth> ah, here we go.. an ugly fix but it works
[19:57:27] *** kalusn has joined #angularjs
[19:57:42] <nickeddy> jaawerth: you on linux?
[19:57:46] *** rafagomes has joined #angularjs
[19:57:50] <Nouv> Ahh, I see what you are doing
[19:57:50] *** Successful has joined #angularjs
[19:57:51] *** ciwolsey has joined #angularjs
[19:57:55] <Nouv> Cheers nickeddy, I'll work on that
[19:57:57] <jaawerth> yeah, so I did echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
[19:58:02] *** paperElectron has quit IRC
[19:58:10] *** nickgs has joined #angularjs
[19:58:11] <jaawerth> I shouldn't HAVE to do that, but whatever works for now
[19:58:19] <nickeddy> jaawerth: you can make that a default by just adding it to /etc/sysctrl.conf
[19:58:26] *** jdj_dk has joined #angularjs
[19:58:28] *** threesixes has quit IRC
[19:58:34] <nickeddy> jaawerth: well, check that it's not already in there
[19:58:52] <jaawerth> yeah, but I feel like I shouldn't have to do that - I mean, it works fine until it doesn't, and I can either run that or reboot
[19:58:53] <jaawerth> it's weird
[19:58:55] *** rileylark has joined #angularjs
[19:59:12] <jaawerth> I feel like this is just kind of a hacky workaround, and it's actually an issue with gaze more than my system
[19:59:24] *** rileylark has quit IRC
[19:59:26] <jaawerth> but thanks, I will make that the default if I get sick of running the command
[19:59:28] <nickeddy> it's just how file watches work
[19:59:29] *** dejanr has joined #angularjs
[19:59:43] *** samuel02 has joined #angularjs
[19:59:44] <nickeddy> i have to do that when first setting up dropbox all the time
[20:00:15] *** cakirke has joined #angularjs
[20:00:59] *** fastbyte33 has joined #angularjs
[20:01:06] *** Superhard__ has quit IRC
[20:01:09] <bboyjacks> hey guys is there a way to resize img that I've called using ng-src directive? I can make a gist.github you guys need to see the code
[20:01:27] <fastbyte33> any suggestions on good angularjs books?
[20:01:43] *** vassagus has joined #angularjs
[20:02:06] <jaawerth> nickeddy: ah. I thought otherwise because there are a bunch of pending bugs related to it, but I guess you'er right
[20:02:11] <Successful> fastbyte33 i like ng-book.com/
[20:02:12] <cavallari> Hi
[20:02:13] *** Sebastien-L has quit IRC
[20:02:59] *** ckng has quit IRC
[20:03:00] *** scythe__ has quit IRC
[20:03:00] <cavallari> I have a ng-repeat = 'i in phones', and I have an input type checkbox... and it´s model is i.local
[20:03:18] <cavallari> how can i check this checkbox if i.local is true?
[20:03:19] <nickeddy> jaawerth: yeah i kind of wish there were a policy you could set to just auto increase the inotify watch limit :(
[20:03:39] <Nouv> nickeddy: http://pastebin.com/NCXYNRsZ works
[20:03:42] *** rileylark has joined #angularjs
[20:03:54] <nickeddy> Nouv: cool
[20:04:11] *** baweaver has joined #angularjs
[20:04:19] *** samuel02 has quit IRC
[20:04:25] <Nouv> nickeddy: Is this a disaster? http://pastebin.com/NMGL7k1G
[20:04:38] *** MaxV has quit IRC
[20:04:44] *** tristan_1990 has quit IRC
[20:04:48] <nickeddy> that's how you're doing routing?
[20:04:55] <nickeddy> highly recommend you use ui-router
[20:04:55] <Nouv> lmao
[20:05:10] *** overtime has joined #angularjs
[20:05:13] *** csduarte has joined #angularjs
[20:05:19] <Nouv> Why not just ngroute?
[20:05:46] *** juanpablo_ has quit IRC
[20:05:49] <nickeddy> it's not as good
[20:05:55] <Nouv> How so?
[20:06:27] *** baweaver has quit IRC
[20:06:44] *** baweaver has joined #angularjs
[20:06:45] <nickeddy> stateful routing with multiple named views, nested views, blah blah
[20:06:53] <nickeddy> stuff ngRoute can't do
[20:06:56] <Nouv> I don't know what any of that means though
[20:06:59] *** chrisbirk has quit IRC
[20:07:03] *** fastbyte33 has quit IRC
[20:07:04] <TheAceOfHearts> https://examples.treasuredata.com/ I made this :D
[20:07:07] <Nouv> My uses for this will literally not extend past what I linked above
[20:07:07] <TheAceOfHearts> erm
[20:07:13] <TheAceOfHearts> Foxandxss: https://examples.treasuredata.com/
[20:07:18] *** joshontheweb has joined #angularjs
[20:07:25] <nickeddy> Nouv: it won't grow at all?
[20:07:52] <Nouv> I don't think by much more than ngRoute can support (from examples)
[20:07:54] *** jumpstracks has joined #angularjs
[20:08:21] <Successful> Nouv i must say as nickeddy us ui-router :)
[20:08:45] *** phuh has quit IRC
[20:09:02] *** merrihew has quit IRC
[20:09:05] <nickeddy> Nouv: really it is the best, even if your app is simple
[20:09:14] *** phuh has joined #angularjs
[20:09:15] *** pknordic has joined #angularjs
[20:09:16] <Nouv> Ok then
[20:09:26] *** axsuul has quit IRC
[20:09:40] <nickeddy> Nouv: https://github.com/angular-ui/ui-router/wiki
[20:09:59] <nickeddy> give a glance over that, should explain how it works
[20:10:06] <nickeddy> most everyone uses it too so you can get help on it here
[20:10:44] *** {DV8} has joined #angularjs
[20:11:22] *** jumpstracks has quit IRC
[20:11:36] *** baweaver has quit IRC
[20:11:51] *** 64MABC50Z has quit IRC
[20:12:13] *** ioudas has quit IRC
[20:12:17] *** g33k5z has joined #angularjs
[20:12:18] *** jumpstracks has joined #angularjs
[20:12:33] <cavallari> Can anyone help me?
[20:12:44] <cavallari> My checkbox is sending value as 'on'
[20:12:53] <cavallari> but I need 1 or 0
[20:13:11] <cavallari> I´ve used ng-true-value="1" but didnt work
[20:13:44] *** ProLoser has quit IRC
[20:14:15] *** CHC has quit IRC
[20:14:26] <nickeddy> cavallari: http://plnkr.co/edit/ELY3wWr6QKClhCrJURVv?p=preview
[20:15:26] *** Successful has quit IRC
[20:16:07] *** sojic has joined #angularjs
[20:16:20] *** seriema has joined #angularjs
[20:16:21] *** rikko has joined #angularjs
[20:16:37] *** g33k5z has quit IRC
[20:16:37] <sojic> Anybody to help me with passing function to directive? Here is the current state: http://plnkr.co/edit/07NLe7WgQLfAB0O7GTDQ?p=catalogue
[20:16:41] <Guest71668> anyone familiar with https://github.com/dalelotts/angular-bootstrap-datetimepicker#working-with-ng-model ?? I am trying to bind to a $parent.var which is a Date() object, and it is not being set in the parent scope when the control is change.d.
[20:17:11] *** walden|lunch is now known as walden
[20:17:11] *** jumpstracks has quit IRC
[20:17:46] <cavallari> nickeddy: not working for me =(
[20:17:46] *** chrisbirk has joined #angularjs
[20:17:54] *** jumpstracks has joined #angularjs
[20:17:55] <bboyjacks> is there a bootstrap class to resize my images?
[20:18:11] <bboyjacks> other than image responsive
[20:18:37] *** kirfu has quit IRC
[20:18:40] *** bzitzow has joined #angularjs
[20:18:42] *** aliocha has quit IRC
[20:18:44] *** Trow1 has quit IRC
[20:18:59] *** younqcass has quit IRC
[20:19:06] *** Xethron has joined #angularjs
[20:19:06] *** sojic has quit IRC
[20:19:13] <nickeddy> cavallari: would have to see some code then
[20:19:25] <Nouv> I'm seriously reconsidering using php as my backend
[20:20:54] *** Sawbones has quit IRC
[20:20:58] *** tristanp has joined #angularjs
[20:21:02] <bzitzow> our whole application is not a single page application. I have a directive that works great, until the page is visited a second time (either the back button or clicking through to it from a link). In this case, the directive does not render. Using the console, if I use angular.bootstrapResume(‘my-module’), then the directive does render again. Also if I just use angular.bootstrap.
[20:21:25] <christo_m> im trying to use ui-router, however when i do a $state.go('page.keyboard') what loads is only the 'page' parent template, and not the page.keyboard template inside the page parent like i want it to. this is my configuration: http://pastie.org/9777016
[20:21:28] <bzitzow> I’ve searched the web, and I’m not quite sure what the source of the problem is
[20:21:29] <christo_m> any ideas?
[20:21:43] *** craigp has quit IRC
[20:21:46] <nickeddy> christo_m: has to be a ui-view inside the page.html
[20:21:54] <christo_m> nickeddy: i have that
[20:21:57] *** seriema has quit IRC
[20:22:01] <christo_m> its an empty ui-view tag
[20:22:03] <Nouv> What do you all use for backend?
[20:22:07] <nickeddy> oh you don't have any urls christo_m
[20:22:18] *** gregc2 has joined #angularjs
[20:22:18] *** gregc2 is now known as ioudas
[20:22:18] <nickeddy> christo_m: pretty sure you need some urls
[20:22:19] <christo_m> nickeddy: do i need them?
[20:22:21] <christo_m> ok..
[20:22:52] <bzitzow> I’ve confirmed problem on 1.2.23 and 1.3.6
[20:23:06] *** craigp has joined #angularjs
[20:23:15] *** DrMabuse has joined #angularjs
[20:23:23] *** rtpg has joined #angularjs
[20:23:46] <bzitzow> There are no errors in the console log
[20:23:55] *** MistahKurtz has quit IRC
[20:24:01] <christo_m> nickeddy: still empty, still only loading the 'page' parent
[20:24:01] *** kirfu has joined #angularjs
[20:24:13] *** i_am_nader has joined #angularjs
[20:24:15] <nickeddy> christo_m: have a plnkr?
[20:24:22] *** i_am_nader has left #angularjs
[20:24:25] *** Sawbones has joined #angularjs
[20:24:51] <christo_m> no :(
[20:24:51] *** nuizzy has joined #angularjs
[20:24:57] <christo_m> mind you i am using the ionic router
[20:25:01] <christo_m> but its based off the ui-router
[20:25:04] *** cilkay has quit IRC
[20:25:06] *** borgdrone7_ has joined #angularjs
[20:25:27] *** yelvert has quit IRC
[20:25:39] *** tristanp has quit IRC
[20:26:02] *** Z3R0 has joined #angularjs
[20:26:14] <nickeddy> christo_m: can you show page.html
[20:26:15] <Nouv> What do you all use for backend?
[20:26:21] <christo_m> sure sec
[20:26:30] *** cakirke has quit IRC
[20:26:42] <christo_m> nickeddy: in ion, ui-view is <ion-view> http://pastie.org/9777028
[20:26:43] *** jonasliljestrand has joined #angularjs
[20:26:47] *** jr3 has joined #angularjs
[20:27:00] <christo_m> so i should expect page.keyboard.html to load into page.html, based off my router config and those html files.
[20:27:06] <christo_m> however all im seeing is page.html
[20:27:23] *** Ganesh has joined #angularjs
[20:27:24] <Ganesh> hi
[20:27:26] *** Joy has quit IRC
[20:27:44] *** rtpg has quit IRC
[20:27:47] *** Ganesh is now known as Guest95978
[20:28:05] *** Guest95978 has left #angularjs
[20:29:33] *** Trow has joined #angularjs
[20:30:39] *** doginal has joined #angularjs
[20:31:26] *** djvirgen has quit IRC
[20:31:28] *** Trow1 has joined #angularjs
[20:32:25] *** josh-k_ has quit IRC
[20:32:30] <mbildner> Nouv: I work at a company that uses php for our api, I use node for personal projects, and I’ve used python: I would go with node, python is a little more gentle on the eyes
[20:32:36] <mbildner> and avoid php if you can :p
[20:32:40] <christo_m> nickeddy: ?
[20:32:46] <Nouv> Yeah, php is killing me right now :P
[20:32:57] <nickeddy> christo_m: sec
[20:33:01] <christo_m> nickeddy: np
[20:33:02] <Nouv> I might use node, but I don't get it
[20:33:10] *** rikko has quit IRC
[20:33:36] <mbildner> how much experience would you say you have with js?
[20:33:42] *** jmckind has quit IRC
[20:33:42] *** Aerospark has quit IRC
[20:33:45] <mbildner> same question for python
[20:33:48] <Nouv> Only jquery
[20:34:01] <Nouv> More with python, but I don't want to use python
[20:34:05] *** mtsr is now known as mtsr_
[20:34:10] <mbildner> curious - why not?
[20:34:11] *** tristanp has joined #angularjs
[20:34:16] *** rafagomes has quit IRC
[20:34:51] *** HowdyHowdy has joined #angularjs
[20:34:53] <mbildner> wrt node though, all it is is javascript on the server - if you’re committing to learning angular you should invest in some of your basic JS skills, which will make node easier as well
[20:35:12] <HowdyHowdy> how can I use Karma to spyOn() a standalone function that isn't in an object?
[20:35:23] *** juanjob has joined #angularjs
[20:35:27] *** neilff has quit IRC
[20:35:28] *** Trow has quit IRC
[20:35:33] <Nouv> Might use node then
[20:35:35] *** jmckind has joined #angularjs
[20:36:30] *** encryptd_fractl has quit IRC
[20:36:42] <nickeddy> christo_m: fyi there's a difference between ion-view and ion-nav-view
[20:36:49] <christo_m> yes
[20:37:00] <christo_m> the one is tied to the navbar
[20:37:03] <christo_m> i dont use the navbar for these views though
[20:37:04] *** encryptd_fractl has joined #angularjs
[20:37:05] *** blomman has joined #angularjs
[20:37:29] *** Angelica has joined #angularjs
[20:37:56] <Angelica> Hola, alguno que hable español ?
[20:37:57] *** nemothekid has joined #angularjs
[20:38:02] *** rikko_ has joined #angularjs
[20:38:24] *** frem has joined #angularjs
[20:38:31] <jr3> anyone using angular + iis + windows auth?
[20:38:52] *** mAxX-- has quit IRC
[20:39:50] *** FIFOd[a] has quit IRC
[20:39:51] *** farn5w0rth has quit IRC
[20:39:58] *** juanjob has quit IRC
[20:40:00] *** hiddentoken has joined #angularjs
[20:40:07] <themime> we use angular+iis at work but i think we have a custom login system
[20:40:13] *** Z3R0 has quit IRC
[20:40:48] *** platonic has joined #angularjs
[20:41:02] <cavallari> People...
[20:41:02] *** kenpoint has quit IRC
[20:41:05] <cavallari> I have this.. https://gist.github.com/anonymous/e00395e3bdb77b6fa151
[20:41:06] *** xxMatiasFxx has joined #angularjs
[20:41:07] *** FIFOd[a] has joined #angularjs
[20:41:15] *** dacuca has joined #angularjs
[20:41:26] <cavallari> but when I send the form and check my post data, it´s value comes as 'on'
[20:41:31] *** kenpoint has joined #angularjs
[20:41:31] <cavallari> why??
[20:41:44] *** Angelica has quit IRC
[20:42:09] *** Greed` has joined #angularjs
[20:42:24] *** jtimon has quit IRC
[20:42:40] *** whitebook has joined #angularjs
[20:42:46] *** Greed has quit IRC
[20:42:50] *** pzuraq has joined #angularjs
[20:42:50] *** Greed` is now known as Greed
[20:42:53] *** jmckind has quit IRC
[20:43:07] *** azizur has quit IRC
[20:43:12] *** PeterMetz has joined #angularjs
[20:43:22] *** Solid1 is now known as Solid1_afk
[20:44:14] *** TheAceOfHearts has quit IRC
[20:44:15] *** TommyO has joined #angularjs
[20:44:28] *** mchapman has joined #angularjs
[20:44:34] *** xxMatiasFCxx has quit IRC
[20:44:35] *** aslate has joined #angularjs
[20:44:44] *** platonic has quit IRC
[20:44:56] *** bayousoft has joined #angularjs
[20:44:59] *** jMyles has joined #angularjs
[20:45:06] *** jeffisabelle has joined #angularjs
[20:45:11] *** platonic has joined #angularjs
[20:45:30] *** one0one has joined #angularjs
[20:45:32] *** jameswork has quit IRC
[20:46:08] *** gladely has quit IRC
[20:46:08] *** BillCriswell has quit IRC
[20:47:01] *** g33k5z has joined #angularjs
[20:47:07] *** Nijikokun has joined #angularjs
[20:47:07] *** mary5030 has joined #angularjs
[20:47:11] *** SexualRickshaw has quit IRC
[20:47:19] *** fedenunez has quit IRC
[20:47:29] *** tschundeee has joined #angularjs
[20:49:06] *** aslate has quit IRC
[20:49:26] *** jdcasey has joined #angularjs
[20:49:36] *** guilbep has joined #angularjs
[20:49:45] *** ciwolsey has quit IRC
[20:49:54] *** BobbieBarker has quit IRC
[20:50:11] *** sirkitree is now known as sirkitree|afk
[20:50:23] *** pootpoot has quit IRC
[20:50:56] *** Trow2 has joined #angularjs
[20:51:01] *** mAxX-- has joined #angularjs
[20:51:34] *** whitebook has quit IRC
[20:52:09] *** tschundeee has quit IRC
[20:52:21] *** lw has quit IRC
[20:52:26] *** prosper_ has joined #angularjs
[20:52:50] *** fairuz has joined #angularjs
[20:53:24] *** joshontheweb has quit IRC
[20:53:33] *** jumpstracks has quit IRC
[20:54:13] *** SargoDarya has joined #angularjs
[20:54:37] *** guilbep has quit IRC
[20:55:01] *** Trow1 has quit IRC
[20:55:28] <jr3> its gotta be something with the headers $http is sending, I can successfully hit the api with anonymous auth disabled in chrome using post man, but in an $http request it comes back as unauthorized
[20:55:31] *** whitebook has joined #angularjs
[20:55:38] * jr3 rages
[20:55:49] *** whitebook has quit IRC
[20:56:16] *** sigurding has quit IRC
[20:56:16] *** whitebook has joined #angularjs
[20:56:35] *** djvirgen has joined #angularjs
[20:56:58] *** Txandy has quit IRC
[20:57:22] *** cavallari has quit IRC
[20:57:27] *** elyssonmr has quit IRC
[20:57:43] *** tomphp has joined #angularjs
[20:57:47] <christo_m> nickeddy: http://pastie.org/9777129
[20:57:50] <christo_m> in page.html, if i dont put <ion-content> and just put an empty <ion-nav-view> tag it will work. however it will be hidden by the page.html header bar
[20:57:53] *** woah has quit IRC
[20:57:54] <christo_m> if i do put the <ion-content> wrap first, the contents of page.keyboard.html will show for a second during the transition, then disappear
[20:58:19] *** g33k5z has quit IRC
[20:58:22] <christo_m> also it looks like the title attribute will set the parent nav bar title, but theres no way to set the parent header bar title..
[20:58:31] *** sigurding has joined #angularjs
[20:58:44] *** SargoDarya has quit IRC
[20:58:51] *** shacklef_ has joined #angularjs
[20:58:58] *** lw has joined #angularjs
[20:59:06] *** g33k5z has joined #angularjs
[20:59:11] *** soj has joined #angularjs
[20:59:14] *** ianpirro has joined #angularjs
[20:59:45] *** shackleford has quit IRC
[21:00:14] *** inspiron has joined #angularjs
[21:00:21] *** Anton_ has quit IRC
[21:00:31] *** jumpstracks has joined #angularjs
[21:00:43] *** samuel02 has joined #angularjs
[21:01:04] <christo_m> oh well fixed that overlapping shit, put "has-header" class on the ion view
[21:01:11] <inspiron> anyone run into the problem that when using ng-annotate https://github.com/olov/ng-annotate with a JavaScript file that uses Map() it didn't like it?
[21:01:15] <christo_m> now to figure out how to dynamically change the header bar so i dont have to copy that everywhere
[21:01:57] *** cuebix-wk has quit IRC
[21:02:14] *** mmealling has joined #angularjs
[21:02:14] *** g33k5z has quit IRC
[21:02:28] *** blomman has quit IRC
[21:02:43] *** g33k5z_ has joined #angularjs
[21:03:18] *** cannap has joined #angularjs
[21:03:20] *** tfennelly has joined #angularjs
[21:03:38] <lebster> im looking at a project and i dont understand how he uses the Task module in the Project module without passing it in, any one have any ideas https://github.com/ProLoser/AngularJS-ORM/tree/master/modules
[21:03:41] *** lw has quit IRC
[21:04:19] <lebster> does it have to do with the naming convention? App.Project App.Task?
[21:04:54] *** Solid1_afk is now known as Solid1
[21:04:57] *** MacWinner has quit IRC
[21:05:06] *** Sky[x] has joined #angularjs
[21:05:56] *** wallerdev has quit IRC
[21:06:02] <DrMabuse> @christo_m has-subheader too and has-footer
[21:06:02] *** dcherman has quit IRC
[21:06:18] <DrMabuse> !very iportant :)
[21:06:33] *** lw has joined #angularjs
[21:07:26] <elrabin> lebster: https://github.com/ProLoser/AngularJS-ORM/issues/13
[21:07:30] *** Sontakey has joined #angularjs
[21:07:56] *** kalusn has quit IRC
[21:08:14] *** arkanciscan has quit IRC
[21:08:28] *** Anton_ has joined #angularjs
[21:09:37] *** Solid1 is now known as Solid1_afk
[21:09:53] *** jdivock_ has quit IRC
[21:10:12] <lebster> elrabin: thanks didnt see that
[21:10:27] *** TheAceOfHearts has joined #angularjs
[21:10:45] *** neilff has joined #angularjs
[21:11:30] *** walden is now known as walden|brb
[21:11:32] *** whitebook has quit IRC
[21:11:35] *** iateadonut has quit IRC
[21:12:34] *** lw has quit IRC
[21:12:47] *** lw has joined #angularjs
[21:12:59] *** Sontakey has quit IRC
[21:13:08] *** mlpug has joined #angularjs
[21:13:43] *** lw_ has joined #angularjs
[21:13:59] *** rileylark has quit IRC
[21:14:08] *** Sontakey has joined #angularjs
[21:14:12] *** rileylark has joined #angularjs
[21:14:43] *** _mtr__ has joined #angularjs
[21:14:55] *** lw__ has joined #angularjs
[21:15:14] *** TheDreamIsReal has quit IRC
[21:15:17] *** basiclaser_ has joined #angularjs
[21:15:35] *** Sontakey has left #angularjs
[21:15:46] *** whatadewitt has joined #angularjs
[21:15:51] *** CHC has joined #angularjs
[21:15:59] *** lw has quit IRC
[21:16:10] *** nickgs has quit IRC
[21:16:19] *** CHC is now known as Guest22770
[21:16:20] <whatadewitt> i'm new to writing karma tests... i have a service that i want to test the functions of... should i be writing tests at the service level or at the directive level where i am making use of this service?
[21:16:32] *** whitebook has joined #angularjs
[21:16:44] *** juanjob has joined #angularjs
[21:17:23] *** dacuca has quit IRC
[21:17:24] *** Guest71668 has quit IRC
[21:17:29] *** seriema has joined #angularjs
[21:17:40] *** TheDreamIsReal has joined #angularjs
[21:17:58] *** Guest22770 has quit IRC
[21:17:58] *** Guest22770 has joined #angularjs
[21:18:11] *** lw_ has quit IRC
[21:18:37] *** threesixes has joined #angularjs
[21:18:38] *** juanpablo_ has joined #angularjs
[21:18:48] *** juanpablo_ has joined #angularjs
[21:19:00] *** RobinBAwesome has quit IRC
[21:19:09] <subone> balr0g: sorry, went to lunch. What is the purpose? You want the model in ng-model to match the model in ensure-match?
[21:19:16] *** dcherman has joined #angularjs
[21:19:30] *** Guest22770 is now known as CHC
[21:19:45] *** nickgs has joined #angularjs
[21:19:50] *** Trow1 has joined #angularjs
[21:20:54] *** lw has joined #angularjs
[21:21:05] <balr0g> subone: thanks for answer, already solved it: http://jsfiddle.net/b9nefrse/1/ yes something like you said, i needed to verify the user writes the correct text to enable some button
[21:21:37] *** davek has joined #angularjs
[21:21:37] *** davek has joined #angularjs
[21:21:44] <subone> IC, so you found that you were testing unevaluated attrs.ensureMatch which is equal to the literal string "fullname"?
[21:21:58] *** jdivock_ has joined #angularjs
[21:22:35] <subone> Should be if (scope.$eval(attrs.ensureMatch) == 'hello')
[21:22:41] *** walden|brb is now known as walden
[21:22:45] *** seriema has quit IRC
[21:23:09] *** lw_ has joined #angularjs
[21:23:09] <subone> though unsure why you are watching the model with ng-model but never use that value
[21:23:15] *** lw__ has quit IRC
[21:23:37] *** Trow2 has quit IRC
[21:23:46] *** Sojharo has joined #angularjs
[21:24:42] *** bkuberek has joined #angularjs
[21:25:00] *** andrewvee has quit IRC
[21:25:17] <balr0g> subone: i took example for that: http://www.ng-newsletter.com/posts/validations.html
[21:25:22] *** swist has joined #angularjs
[21:25:30] <balr0g> from*
[21:25:43] *** Sebastien-L has joined #angularjs
[21:25:50] *** shackleford has joined #angularjs
[21:26:05] *** shacklef_ has quit IRC
[21:26:09] <mAxX--> ok
[21:26:16] *** morenoh149 has joined #angularjs
[21:26:21] *** bkubere__ has joined #angularjs
[21:26:39] *** Sojharo has quit IRC
[21:27:04] *** lw has quit IRC
[21:27:09] *** zwacky has quit IRC
[21:27:37] *** morenoh149 has quit IRC
[21:27:42] *** prosper_ has quit IRC
[21:27:55] *** morenoh149 has joined #angularjs
[21:27:58] *** samuelsimoes has joined #angularjs
[21:28:11] *** bkuberek_ has quit IRC
[21:28:59] <subone> balr0g: seems like thats a bit buggy. Not sure why they use 'signup.username for the ng-model but 'username' (which I can't find defined anywhere) for the ensure-unique
[21:29:39] <subone> Seems to me you would just use the ng-model value: scope.$watch(attrs.ngModel, function(modelValue) {
[21:29:46] *** bkuberek has quit IRC
[21:29:52] *** dmack has quit IRC
[21:29:58] *** swist has quit IRC
[21:30:23] *** narutimateum has joined #angularjs
[21:30:53] *** IvailoStoianov has quit IRC
[21:31:20] *** shackleford has quit IRC
[21:31:44] *** e0ipso is now known as e0ipso|away
[21:31:55] *** MacWinner has joined #angularjs
[21:31:57] *** shackleford has joined #angularjs
[21:32:10] *** plex0r has joined #angularjs
[21:33:05] *** neilff has quit IRC
[21:34:28] *** marcjs has quit IRC
[21:35:02] *** marcjs has joined #angularjs
[21:35:02] *** DrMabuse has quit IRC
[21:35:05] <balr0g> subone: http://jsfiddle.net/b9nefrse/1/ and i did
[21:35:25] <subone> gj
[21:36:22] <merpnderp> In ui-router is there a way to update the stateParms without changing state?
[21:36:26] *** dave_boling has joined #angularjs
[21:36:27] *** t1mmen has quit IRC
[21:36:51] *** neilff has joined #angularjs
[21:37:04] *** Alax has joined #angularjs
[21:37:07] <ctanga> $state.go(“.”, { param1: val1 });
[21:37:45] <merpnderp> ctanga: hah, sweet!
[21:38:09] *** garbanzio has joined #angularjs
[21:38:11] <merpnderp> ctanga: ermegerd, it is so beautiful
[21:38:31] *** TheDreamIsReal has quit IRC
[21:40:10] *** neilff has quit IRC
[21:40:17] *** webguynow has quit IRC
[21:40:19] *** HowdyHowdy has left #angularjs
[21:40:35] <merpnderp> ctanga: is there a way to do that in a ui-sref?
[21:40:43] *** lw has joined #angularjs
[21:40:57] <ctanga> ui-sref=“.({ param1: val1 })"
[21:41:00] *** endless_walrus has joined #angularjs
[21:41:12] *** webguynow has joined #angularjs
[21:41:13] *** JBreit has joined #angularjs
[21:41:24] <merpnderp> ctanga: doh, can't transition to abstract state .
[21:41:31] *** sirkitree|afk is now known as sirkitree
[21:42:21] *** lw__ has joined #angularjs
[21:42:54] *** ninjaparade has quit IRC
[21:43:24] *** mmeallin_ has joined #angularjs
[21:43:47] *** mmealling has quit IRC
[21:44:24] <merpnderp> just changed it to a ng-click and handled it ther.e
[21:44:45] *** lw_ has quit IRC
[21:44:46] *** code-ninja{io} has quit IRC
[21:44:56] *** Superhard__ has joined #angularjs
[21:44:58] *** lw_ has joined #angularjs
[21:45:37] *** lw has quit IRC
[21:45:56] *** lw__ has quit IRC
[21:46:11] *** simplyshipley has quit IRC
[21:46:26] *** whitebook has quit IRC
[21:46:33] *** chrisbirk has quit IRC
[21:47:13] *** Sebastien-L has quit IRC
[21:48:07] *** sacosta has quit IRC
[21:48:07] *** shackleford has quit IRC
[21:48:11] *** neilff has joined #angularjs
[21:49:01] *** chrisbirk has joined #angularjs
[21:49:21] *** Superhard__ has quit IRC
[21:49:45] *** nickgs has quit IRC
[21:50:52] *** kenpoint has quit IRC
[21:51:04] *** xxMatiasFxx has quit IRC
[21:51:14] *** xxMatiasFxx has joined #angularjs
[21:51:17] *** mmeallin_ has quit IRC
[21:51:17] *** neilff has quit IRC
[21:51:34] *** mrru has quit IRC
[21:51:56] *** code-ninja{io} has joined #angularjs
[21:52:08] *** erry has quit IRC
[21:52:08] *** erry has joined #angularjs
[21:52:20] <jr3> disabling the anonymous authentication works right, the server rejects the initial http.get request, but its like the ntlm challenge doesnt even happen
[21:52:27] *** chrisbirk has quit IRC
[21:52:35] *** nickgs has joined #angularjs
[21:52:50] *** prosper_ has joined #angularjs
[21:52:54] *** Anonymous_ has quit IRC
[21:52:59] *** PrinceAMD has quit IRC
[21:53:34] *** jumpstracks has quit IRC
[21:54:19] *** yelvert has joined #angularjs
[21:54:20] *** jonatas_oliveira has quit IRC
[21:54:53] *** samuelsimoes has quit IRC
[21:54:59] *** shackleford has joined #angularjs
[21:55:08] *** chachan has joined #angularjs
[21:55:14] *** whatadewitt has quit IRC
[21:55:15] *** dannyc has joined #angularjs
[21:55:22] *** chrisbirk has joined #angularjs
[21:55:52] *** neilff has joined #angularjs
[21:57:25] *** TheDreamIsReal has joined #angularjs
[21:57:27] *** Lewix_ has joined #angularjs
[21:57:54] *** Levi_ has quit IRC
[21:58:29] *** mzabriskie has joined #angularjs
[21:59:14] *** Xethron has quit IRC
[21:59:36] *** yaru22 has joined #angularjs
[21:59:36] *** joshontheweb has joined #angularjs
[22:00:14] *** Lewix has quit IRC
[22:00:34] *** mlpug has quit IRC
[22:01:16] *** kirfu1 has joined #angularjs
[22:01:29] *** dacuca has joined #angularjs
[22:01:33] *** djvirgen has quit IRC
[22:02:03] *** kirfu has quit IRC
[22:02:03] *** djvirgen has joined #angularjs
[22:02:20] *** ProLoser has joined #angularjs
[22:03:22] *** stormbytes has joined #angularjs
[22:04:12] *** ianpirro has quit IRC
[22:05:25] *** szymek has joined #angularjs
[22:06:29] *** ProLoser has quit IRC
[22:06:50] *** danecando has quit IRC
[22:07:54] *** fouadm has joined #angularjs
[22:07:56] *** evanjs has quit IRC
[22:08:16] *** flaviogranero has quit IRC
[22:08:22] *** jumpstracks has joined #angularjs
[22:08:51] *** phuh has quit IRC
[22:09:07] *** s00pcan_ has quit IRC
[22:09:33] *** s00pcan has joined #angularjs
[22:09:48] <Foxandxss> TheAceOfHearts: back from beeeers time, let me see that
[22:09:55] <TheAceOfHearts> yahh :D
[22:09:59] *** jacuqesdancona_ has joined #angularjs
[22:10:07] <TheAceOfHearts> https://examples.treasuredata.com/
[22:10:07] <TheAceOfHearts> it's a simple Rails app
[22:10:21] *** phuh has joined #angularjs
[22:10:30] *** dannyc has quit IRC
[22:10:41] <TheAceOfHearts> honestly, turbolinks is really cool for simple apps like this
[22:10:46] *** baweaver has joined #angularjs
[22:10:54] <Foxandxss> too tired to kick you
[22:11:00] <Foxandxss> but don't say that again
[22:11:08] <TheAceOfHearts> lmao
[22:11:17] *** nickgs has quit IRC
[22:11:23] *** ioudas has left #angularjs
[22:11:27] <TheAceOfHearts> it's horrifying for a lot of stuff
[22:11:32] <TheAceOfHearts> but this app is soooo simple
[22:11:37] <TheAceOfHearts> and it does make it snappied haha
[22:11:40] <TheAceOfHearts> snappier*
[22:11:58] <Foxandxss> yeah, that was the original idea
[22:12:16] *** tristanp has quit IRC
[22:12:17] <Foxandxss> "we don't need angular / ember / backbone crap, we have turbolinks"
[22:12:42] *** umib0zu has quit IRC
[22:13:01] *** NormySan has joined #angularjs
[22:13:48] *** sonofdirt has quit IRC
[22:14:29] *** jacuqesdancona_ has quit IRC
[22:14:32] *** tristanp has joined #angularjs
[22:14:41] *** baweaver_ has joined #angularjs
[22:14:41] *** dannyc has joined #angularjs
[22:14:51] *** sk87 has joined #angularjs
[22:14:54] *** lw_ has quit IRC
[22:14:57] *** baweaver has quit IRC
[22:15:01] *** lw has joined #angularjs
[22:15:12] *** mbildner has quit IRC
[22:15:13] *** jdivock_ has quit IRC
[22:15:34] *** jlebrech has joined #angularjs
[22:16:04] *** numproc has joined #angularjs
[22:29:04] *** echelog-2 has joined #angularjs
[22:29:15] *** cepkoth has quit IRC
[22:31:33] *** FrankH is now known as Guest36888
[22:31:35] *** sigurding has quit IRC
[22:31:39] *** i_am_nader has joined #angularjs
[22:31:43] *** dobladez has joined #angularjs
[22:31:51] *** annlewis has quit IRC
[22:33:17] *** Nijikokun has quit IRC
[22:33:19] *** Nijikokun has joined #angularjs
[22:33:19] *** robdubya has quit IRC
[22:33:19] *** robdubya has joined #angularjs
[22:33:20] *** annlewis has joined #angularjs
[22:33:20] *** Embassy has quit IRC
[22:33:32] *** aslate has joined #angularjs
[22:34:30] *** platonic has joined #angularjs
[22:34:34] *** RobinBAwesome has joined #angularjs
[22:34:56] *** phzon has joined #angularjs
[22:35:07] *** bostonaholic has joined #angularjs
[22:36:23] *** jillesme has quit IRC
[22:36:25] *** robdubya has quit IRC
[22:36:38] *** nickgs has joined #angularjs
[22:36:44] *** doug64k has quit IRC
[22:36:57] *** jillesme has joined #angularjs
[22:37:03] *** richiebkr has joined #angularjs
[22:37:13] *** lw has quit IRC
[22:37:22] *** adarshaj has quit IRC
[22:37:23] *** lw has joined #angularjs
[22:37:43] *** aslate has quit IRC
[22:38:00] *** annlewis has quit IRC
[22:38:43] *** richiebkr has quit IRC
[22:38:57] *** spatialbrew has quit IRC
[22:39:22] *** adarshaj has joined #angularjs
[22:39:24] *** mzabriskie has quit IRC
[22:39:29] *** phzon has quit IRC
[22:40:01] *** mtsr_ has quit IRC
[22:40:03] *** lw_ has joined #angularjs
[22:40:22] *** adoming has joined #angularjs
[22:40:43] *** richiebkr has joined #angularjs
[22:40:45] *** lw_ has quit IRC
[22:41:17] *** plato has quit IRC
[22:41:45] *** adamsilver has joined #angularjs
[22:41:54] *** akrikos has quit IRC
[22:41:55] *** phuh has quit IRC
[22:42:00] *** danecando has joined #angularjs
[22:42:11] *** sonofdirt has joined #angularjs
[22:42:52] *** lw_ has joined #angularjs
[22:43:10] *** Una has joined #angularjs
[22:43:29] *** plato has joined #angularjs
[22:43:32] *** lw has quit IRC
[22:43:33] *** SargoDarya has joined #angularjs
[22:43:52] <adamsilver> Guys when i have something hidden in my template based on a scope var, it is better to define it at the top of my controller of just when needed? Like an error message div... should I write $scope.invalid_msg = false; and when needed $scope.invalid_msg = true; or just $scope.invalid_msg = true when the request fail
[22:43:57] *** bostonaholic has quit IRC
[22:44:15] *** jonathanpglick has quit IRC
[22:44:19] *** TommyO has quit IRC
[22:44:32] *** Una has quit IRC
[22:44:33] *** TyrfingMjolnir has quit IRC
[22:44:34] *** lw_ has quit IRC
[22:44:50] *** overl0rd has joined #angularjs
[22:44:52] <overl0rd> hello
[22:44:54] *** adoming has quit IRC
[22:44:57] *** phuh has joined #angularjs
[22:45:12] *** Siecje has quit IRC
[22:45:24] *** TommyO has joined #angularjs
[22:45:28] *** marcjs has quit IRC
[22:45:44] *** Superhard__ has joined #angularjs
[22:46:04] *** marcjs has joined #angularjs
[22:47:04] *** philips has left #angularjs
[22:47:08] *** Aerospark has joined #angularjs
[22:47:14] *** caitp has quit IRC
[22:47:14] *** mdcox has joined #angularjs
[22:47:33] *** orangerobot has joined #angularjs
[22:47:52] *** dnewkerk has joined #angularjs
[22:48:01] *** Fenikkusu has joined #angularjs
[22:48:03] *** geilt has joined #angularjs
[22:48:20] *** Methylated has joined #angularjs
[22:48:29] <Fenikkusu> Can someone tell me how I can set focus on an invalid element of ng-form?
[22:49:14] *** mikehaas763 has quit IRC
[22:49:35] *** nickgs has quit IRC
[22:50:08] <overl0rd> any clue why is the help-block text displaying? http://plnkr.co/edit/0FqGn7wdOsv6vulbovRN?p=preview
[22:50:20] *** Superhard__ has quit IRC
[22:50:28] <overl0rd> im using ng-show to hide it. <div ng-show="forma.emailU.$dirty && forma.emailU.$invalid">
[22:50:39] *** {DV8} has quit IRC
[22:50:41] *** zumba_addict has quit IRC
[22:52:00] *** sk87 has quit IRC
[22:52:04] *** jillesme_ has joined #angularjs
[22:52:04] *** adoming has joined #angularjs
[22:52:10] *** yelvert has quit IRC
[22:52:16] *** jonathanpglick has joined #angularjs
[22:52:26] *** cboden has quit IRC
[22:52:37] *** loverajoel has quit IRC
[22:52:44] *** andreas___ has joined #angularjs
[22:53:03] *** sk87 has joined #angularjs
[22:53:18] *** axelav has joined #angularjs
[22:53:24] <nickeddy> overl0rd: mainly because you don't have an ng-app
[22:53:33] <nickeddy> and angular isn't even loading on that
[22:53:59] <nickeddy> overl0rd: http://plnkr.co/edit/HRFNhrCZ8u6Bp9yvuBRR?p=preview
[22:54:01] *** c00ljs has quit IRC
[22:54:03] *** davek has quit IRC
[22:54:32] *** djvirgen has quit IRC
[22:54:54] <nickeddy> overl0rd: i also suggest using latest 1.2.x or 1.3.x
[22:55:00] *** mtsr_ has joined #angularjs
[22:55:00] *** tfennelly has quit IRC
[22:55:04] *** seriema has joined #angularjs
[22:55:05] *** mtsr_ has quit IRC
[22:55:10] <axelav> hi all, have a weird issue that seems to have been introduced ~1.2.17 regarding css animations & ngShow directives
[22:55:26] *** jillesme has quit IRC
[22:55:43] <axelav> basically it seems that ngShow/ngHide will not show/hide the element until the css animation has run thru it's loop (2 secs, 5 secs, whatever)
[22:55:44] <nickeddy> axelav: latest 1.2.x is 1.2.27
[22:55:51] <axelav> has anyone else experienced this?
[22:55:52] <adoming> Hey all, I am trying to create an Apache rewrite rule for my nodejs / angular app. I am using Html5Mode for my URL's and need my route w/ params i.e. example.com:3000/docs/12345 to work on load. Please see my .htaccess https://gist.github.com/adoming3/84186bdb9641b88bfaf7 I appreciate any help in advance. Thanks
[22:56:00] <axelav> yes i know, it happens with any version post 1.2.16
[22:56:22] *** CiE has joined #angularjs
[22:56:24] *** jr3 has quit IRC
[22:56:56] *** whitebook has joined #angularjs
[22:56:57] *** jonathanpglick has quit IRC
[22:57:08] *** Superhard__ has joined #angularjs
[22:57:31] <andreas___> axelav any sample code?
[22:57:45] <overl0rd> nickeddy, thanks!
[22:57:55] <axelav> andreas__: let me see if i can whip something up
[22:58:02] *** dman777_1lter has quit IRC
[22:59:01] <andreas___> axelav cool
[22:59:07] *** seriema has quit IRC
[22:59:17] *** SargoDarya has quit IRC
[22:59:18] *** Lewix_ has quit IRC
[22:59:31] *** djvirgen has joined #angularjs
[22:59:47] *** busticated has joined #angularjs
[23:00:05] *** freelyfred has joined #angularjs
[23:00:07] *** baweaver has quit IRC
[23:00:26] <overl0rd> im using: angular#1.3.4
[23:00:46] <overl0rd> i just use the cdn for the plunkr example.
[23:00:48] *** yelvert has joined #angularjs
[23:01:28] <mAxX--> Any idea whats wrong here that i get undefined is not a function at Object.get in line 53 http://plnkr.co/edit/qMlKp7gEt1FdU1R7IrcA?p=catalogue
[23:01:33] *** whitebook has quit IRC
[23:02:04] *** prosper_ has quit IRC
[23:02:05] *** opiates_ has quit IRC
[23:02:19] *** aliocha has joined #angularjs
[23:02:41] *** annlewis has joined #angularjs
[23:03:32] *** Superhard__ has quit IRC
[23:03:35] *** jonathanpglick has joined #angularjs
[23:03:49] <kba> mAxX--: why are you defining your functions outside the Profile scope?
[23:03:51] *** lemur has joined #angularjs
[23:03:58] *** FIFOd[a] has quit IRC
[23:04:20] *** annlewis has quit IRC
[23:04:29] *** annlewis has joined #angularjs
[23:04:37] *** rileylark has quit IRC
[23:04:38] <mAxX--> kba, is pretty much the same
[23:04:39] <kba> I've never seen an architecture lik that before, and the mistake makes sense... hw would get have access to $http?
[23:04:56] <debunk> has anyone seen $http.post(....).success(..).error(..) not catch anything when a 401 is returned from the server?
[23:05:06] *** ehalas_ has joined #angularjs
[23:05:16] <debunk> I can't seem to capture and check the error
[23:05:19] *** _mtr__ has quit IRC
[23:05:27] *** ehalas has quit IRC
[23:05:28] *** ehalas_ is now known as ehalas
[23:05:29] <mAxX--> kba, im following john papas design patterns
[23:05:31] *** pknordic has quit IRC
[23:05:45] <nickeddy> debunk: what's your backend?
[23:05:46] <kba> can you link the pattern?
[23:05:54] <debunk> node.js
[23:06:02] <nickeddy> hmmm
[23:06:03] <debunk> just simple 401 status
[23:06:05] *** _mtr has quit IRC
[23:06:06] *** pknordic has joined #angularjs
[23:06:09] *** craigp has quit IRC
[23:06:17] <nickeddy> debunk: express?
[23:06:22] <kba> mAxX--: are you sure he doesn't define the methods before he returns Profile?
[23:06:22] <debunk> yes
[23:06:27] <nickeddy> debunk: how are you sending the 401
[23:06:30] *** _mtr_ has quit IRC
[23:06:40] <kba> mAxX--: Oh... You're injecting $cookies and $http
[23:06:51] <kba> Order matters
[23:06:55] <mAxX--> kba, right
[23:07:08] *** royalty has joined #angularjs
[23:07:09] <kba> It's assuming $http is $cookies, I think
[23:07:16] *** diefans has quit IRC
[23:07:28] <mAxX--> yes
[23:07:37] <debunk> nickeddy http://pastebin.com/azPVLCjv
[23:08:01] *** chrisbirk has quit IRC
[23:08:07] *** walden is now known as walden|brb
[23:08:19] *** lemur has quit IRC
[23:08:36] <mAxX--> kinda weird.. im only experiencing the issue with this particular module
[23:08:48] <nickeddy> debunk: can you try res.status(401); res.send('heres a 401');
[23:08:58] <debunk> nickeddy I post username password to end point, if its wrong, return 401. Angular seems to not pick up the status or error callback on $http.post
[23:09:00] *** annlewis has quit IRC
[23:09:12] <nickeddy> debunk: oh wait you said you're doing .success.error?
[23:09:13] <debunk> express 4 style?
[23:09:14] <kba> mAxX--: If you didn't do `Profile.$inject = ['$cookies', '$http'];`, AJS would just read Profile($http) and let that work
[23:09:14] *** scythe__ has joined #angularjs
[23:09:16] <debunk> I'll try
[23:09:22] <nickeddy> debunk: no don't wait
[23:09:24] <debunk> yea
[23:09:31] <kba> mAxX--: so I'm pretty sure it'd work if you removed Profile.$inject = ['$cookies', '$http'];, too.
[23:09:38] <nickeddy> debunk: just do $http.post().then(function(response) {}, function(err) {});
[23:09:53] <debunk> ahhhhh ok let me try that
[23:09:57] <nickeddy> or $http.post().then(function(response){ }).catch(function(error){})
[23:10:06] *** sonofdir_ has joined #angularjs
[23:10:08] *** fouadm has quit IRC
[23:10:19] *** chrisbirk has joined #angularjs
[23:10:21] <kba> mAxX--: $inject is only used to make sure minification doesn't screw it up
[23:10:26] *** lw has joined #angularjs
[23:10:26] *** tomphp has quit IRC
[23:10:29] *** mary5030 has quit IRC
[23:10:31] *** doug64k has joined #angularjs
[23:10:36] <nickeddy> kba: or you could just use proper DI syntax.
[23:10:42] *** lw has quit IRC
[23:10:43] <mAxX--> kba, yes it works but im assuming the issue is with $cookies i guess
[23:10:45] *** pknordic has quit IRC
[23:10:47] *** jonathanpglick has quit IRC
[23:10:51] *** richardlitt has joined #angularjs
[23:10:55] *** bkubere__ has quit IRC
[23:10:57] *** tomphp has joined #angularjs
[23:11:04] <kba> nickeddy: I already mentioned that I think he has an odd architecture
[23:11:06] *** mary5030 has joined #angularjs
[23:11:13] <nickeddy> very.
[23:11:17] *** lw has joined #angularjs
[23:11:25] <kba> mAxX--: No, the problem isn't with $cookies. It's the fact that you're telling Profile that the arguments you're giving it is $cookies and $http
[23:11:46] <debunk> nickeddy damn, neither worked
[23:11:53] <kba> When you do Profile($http), but you already use .$inject, the argument name could be anything
[23:11:54] *** D-Boy has quit IRC
[23:11:59] <nickeddy> debunk: still not showing? huh.
[23:12:04] <debunk> yea
[23:12:09] <kba> You could call it Profile(horse) if you wanted. It would still contain $cookies.
[23:12:13] *** D-Boy has joined #angularjs
[23:12:18] *** panzon has quit IRC
[23:12:34] *** sonofdirt has quit IRC
[23:12:35] <mAxX--> kba, when i do Profile.$inject = ['$http']; it still works
[23:12:42] <kba> mAxX--: Yes, of course.
[23:12:44] <nickeddy> mAxX--: ...
[23:12:57] <kba> I'm not getting through...
[23:13:03] <debunk> nickeddy if I find something i will let you know
[23:13:13] *** baweaver has joined #angularjs
[23:13:16] *** Una has joined #angularjs
[23:13:32] <kba> mAxX--: The problem is when you say ['$cookies', '$http'];, you're telling AJS that the two first arguments to Profile will be $cookies and $http.
[23:13:38] <kba> Then you do: Profile($http)
[23:13:43] <nickeddy> debunk: try on the response res.json(401, {message: 'yay youre unauthed'})
[23:13:53] <kba> thus giving $cookies the name $http in your the Profile scope.
[23:14:03] <mAxX--> Ohh
[23:14:05] <andreas___> does angular have an equivalent of async.each i.e. an async loop that doesn't finish until each task is complete?
[23:14:06] <mAxX--> now i get it
[23:14:13] <debunk> k
[23:14:16] <nickeddy> mAxX--: yeah don't do DI that way.
[23:14:19] *** cads has joined #angularjs
[23:14:24] *** jillesme_ has quit IRC
[23:14:26] *** jonathanpglick has joined #angularjs
[23:14:59] <kba> that, too. Don't use $inject, just let ng-annotate handle it when you minify
[23:15:13] *** ron1 has quit IRC
[23:15:15] <mAxX--> so you guys say this architecture is not quiet recommended
[23:15:21] <nickeddy> mAxX--: angular.module('users.profiles.services').factory('Profile', ['$http', '$cookies', ProfileFn]); function ProfileFn($http, $cookies) {/* do stuff */ }
[23:15:26] <kba> It's confusing.
[23:15:32] <kba> took me a little to figure out what you were doing
[23:15:37] *** mary5030 has quit IRC
[23:16:02] <kba> And you don't even have to do the ['$http', '$cookies', ProfileFn] thing. ng-annotate will fix that for you when you minify
[23:16:13] <nickeddy> no
[23:16:20] <nickeddy> damnit
[23:16:27] <kba> What? Yes it will
[23:16:39] <nickeddy> not if he doesn't ever use a build tool that uses ng-annotate
[23:16:46] <kba> ...
[23:16:51] <nickeddy> just learn normal DI syntax and oh wait you don't have to use ng-annotate
[23:16:53] <kba> No, if he doesn't use ng-annotate, then ng-annotate won't fix it.
[23:17:32] <kba> Or he could just write pre-minified code, too! Then he won't even have to use a minifier ;)
[23:17:46] <nickeddy> i'm suggesting the opposite.
[23:17:47] <nickeddy> but okay
[23:18:07] <kba> You're suggesting he goes through more trouble (i.e. annotates manually) instead of letting tools handle it for me
[23:18:16] <mAxX--> lol
[23:18:24] *** dave_boling has quit IRC
[23:18:27] <nickeddy> no i'm more suggesting he learn DI and why minification would break it.
[23:18:47] <kba> The problem he had here was annotating. He wrote ['$cookies' '$http'] when and later Profile($http)
[23:18:52] *** whatadewitt has joined #angularjs
[23:18:55] <kba> I could easily have done the same thing, understanding DI or not
[23:18:58] *** plato has quit IRC
[23:18:58] <nickeddy> no, he wasn't doing standard DI
[23:19:00] <kba> just because you write something, then later fix it
[23:19:02] <nickeddy> he was using $inject
[23:19:28] *** plato has joined #angularjs
[23:19:47] *** garbanzio has quit IRC
[23:20:07] <whatadewitt> got disconnected earlier... was curious... i have a service that i want to test the functions of... should i be writing tests at the service level or at the directive level where i am making use of this service?
[23:20:07] *** mccxiv has joined #angularjs
[23:20:20] *** dweave has joined #angularjs
[23:20:27] <kba> Right. Well, my vote is to let ng-annotate do it, so you won't fuck it up yourself. I can only imagine that I'd be in a situation where I'd refactor, then remove $cookies from the type signature, but forget to remove it from the DI array
[23:20:29] <kba> and then nothing works.
[23:21:19] *** apertoire has joined #angularjs
[23:21:27] *** kapil__ has quit IRC
[23:21:48] *** MaxV has joined #angularjs
[23:21:57] *** bkuberek has joined #angularjs
[23:22:20] <mAxX--> ok kinda new in the field and im trying different design patterns
[23:22:23] *** jdivock_ has quit IRC
[23:22:33] *** bbankes has quit IRC
[23:22:47] <mAxX--> any tutorial you guys suggest?
[23:22:52] *** jdivock_ has joined #angularjs
[23:23:10] *** juanjob has quit IRC
[23:23:20] *** walden|brb is now known as walden
[23:23:22] *** yelvert_ has joined #angularjs
[23:24:48] *** sk87 has quit IRC
[23:24:58] *** TheDreamIsReal has quit IRC
[23:25:26] *** tfennelly has joined #angularjs
[23:25:30] *** sahbeewah has joined #angularjs
[23:25:46] *** stormbytes has quit IRC
[23:25:52] *** sk87 has joined #angularjs
[23:26:13] *** Sjeeke has joined #angularjs
[23:26:48] *** yelvert has quit IRC
[23:27:00] *** jumpstracks has quit IRC
[23:27:33] *** yelvert_ has quit IRC
[23:27:46] <kba> Just the ones on angularjs.org, I suppose. I don't recall when I last read any AngularJS tutorials, so hard to say
[23:27:51] *** sonofdir_ has quit IRC
[23:28:24] *** baweaver has quit IRC
[23:28:30] *** sonofdirt has joined #angularjs
[23:28:47] *** woah has joined #angularjs
[23:28:57] <andreas___> mAxX-- the angular phonecat tutorial is pretty solid
[23:29:22] *** avens has joined #angularjs
[23:29:52] *** tfennelly has quit IRC
[23:30:02] *** jumpstracks has joined #angularjs
[23:30:14] *** pzuraq has quit IRC
[23:30:49] *** Sjeeke has quit IRC
[23:31:10] *** TheAceOfHearts has quit IRC
[23:31:17] *** AWAW has quit IRC
[23:31:36] *** woah has quit IRC
[23:31:50] *** Sawbones has quit IRC
[23:31:57] *** woah has joined #angularjs
[23:32:01] *** diraol has quit IRC
[23:32:45] *** sonofdirt has quit IRC
[23:33:21] *** jonathanpglick has quit IRC
[23:33:23] *** yoshokatana has quit IRC
[23:33:23] *** juanpablo_ has quit IRC
[23:33:53] *** juanpablo_ has joined #angularjs
[23:34:05] *** nickgs has joined #angularjs
[23:35:19] *** djvirgen has quit IRC
[23:36:40] *** mzabriskie has joined #angularjs
[23:36:46] *** geiltalasdair has joined #angularjs
[23:36:59] *** ZGirl has joined #angularjs
[23:37:05] *** shinnya has quit IRC
[23:37:28] *** andrewvee has joined #angularjs
[23:37:39] *** juampy_backlater has quit IRC
[23:37:50] *** soee has quit IRC
[23:37:53] *** Una has quit IRC
[23:38:02] <ZGirl> I’d like to use html5mode, but also have some URLs containing a hash string. When I enable html5mode and go to a URL starting with a hash, the hash is appended but it’s all encoded and the routing does not see it. I wonder if there’s anything I’m doing wrong?
[23:38:26] *** plato1 has joined #angularjs
[23:38:36] *** nickgs has quit IRC
[23:38:54] *** juanpablo_ has quit IRC
[23:38:58] <debunk> nickeddy super weird, I changed $http.post() to $.post() (jQuery) and the callbacks work as they should
[23:39:12] <debunk> might just do that and be done with it
[23:39:16] *** andrew_columbia has joined #angularjs
[23:39:40] *** andrew_columbia is now known as andrew_work
[23:39:42] *** MaxV has quit IRC
[23:39:49] *** jonathanpglick has joined #angularjs
[23:39:54] *** soee has joined #angularjs
[23:39:57] *** plato has quit IRC
[23:39:59] *** andrew_work is now known as andrewk_as3
[23:40:27] *** geilt has quit IRC
[23:40:42] *** livingstn has quit IRC
[23:40:55] *** imehesz has quit IRC
[23:41:45] <andrewk_as3> A couple of my colleagues need to brush up on Angular. Anyone have any good book suggestions?
[23:42:23] *** shinnya has joined #angularjs
[23:42:35] *** k-dawg has quit IRC
[23:42:36] *** pzuraq has joined #angularjs
[23:42:44] <denysonique_> andrewk_as3: backbone.js
[23:43:50] <andreas___> andrewk_as3 ng-book is good
[23:43:57] *** TheAceOfHearts has joined #angularjs
[23:44:06] <andrewk_as3> denysonique_: This project is already heavily invested in Angular. :-)
[23:44:16] *** walden is now known as walden|afk
[23:44:32] *** borgdrone7_ has quit IRC
[23:44:40] <andreas___> andrewk_as3 this is good too http://www.ng-newsletter.com/posts/directives.html
[23:44:43] *** samuel02 has quit IRC
[23:44:53] <andreas___> but just for directives
[23:45:20] <andrewk_as3> andreas___: thanks
[23:45:30] <andreas___> i think smaller articles can be less dense and easier to digest so they are more helpfl
[23:46:20] *** baweaver has joined #angularjs
[23:46:42] *** g33k5z_ has quit IRC
[23:46:43] *** opiates_ has joined #angularjs
[23:46:48] <andrewk_as3> yeah makes sense
[23:47:36] *** TheDreamIsReal has joined #angularjs
[23:47:36] *** dweave has quit IRC
[23:47:53] *** patcito has joined #angularjs
[23:47:59] *** shaym has quit IRC
[23:48:18] *** cornerman has quit IRC
[23:49:45] *** sahbeewah has quit IRC
[23:49:59] *** soee_ has joined #angularjs
[23:50:01] *** tschundeee has joined #angularjs
[23:51:01] *** chrisbirk has quit IRC
[23:51:13] *** ProLoser has joined #angularjs
[23:51:51] *** NormySan has quit IRC
[23:53:46] *** artisangoose has quit IRC
[23:54:17] *** soee has quit IRC
[23:54:37] *** tschundeee has quit IRC
[23:55:15] *** plex0r has quit IRC
[23:55:25] *** SargoDarya has joined #angularjs
[23:55:37] *** ProLoser has quit IRC
[23:56:07] *** cacts|works has quit IRC
[23:56:25] *** jdj_dk has joined #angularjs
[23:56:38] *** scythe__ has quit IRC
[23:57:42] *** avens has quit IRC
[23:58:01] *** sk87 has quit IRC
[23:58:09] *** avens has joined #angularjs
[23:58:42] <snapwich> is there a way to grab the "require"d controllers in the controller of a directive?
[23:59:05] *** sk87 has joined #angularjs
[23:59:33] *** bmac has quit IRC
[23:59:40] *** sonofdirt has joined #angularjs
[23:59:42] *** SargoDarya has quit IRC
[23:59:49] *** djvirgen has joined #angularjs
top

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