[00:00:52] *** zwacky has joined #angularjs
[00:02:05] *** ceephax has quit IRC
[00:03:45] *** JohnBat26 has quit IRC
[00:04:21] *** mzabriskie has joined #angularjs
[00:05:08] *** robdubya has quit IRC
[00:06:07] *** pehlert has quit IRC
[00:06:36] *** bmac has quit IRC
[00:08:03] *** Solid1 is now known as Solid1_afk
[00:08:20] *** Sadin has quit IRC
[00:09:30] <jaawerth> gladely: it isn't just the slider. try highlighting text
[00:09:39] <jaawerth> gladely: it's because of event bubbling, I believe
[00:10:15] <gladely> :(
[00:11:28] <jaawerth> I don't think the base directives are really made to be used with parent elements the way you're using 'em
[00:12:03] *** tristanp has joined #angularjs
[00:12:17] <jaawerth> haven't done much with ng-touch though
[00:12:49] *** bzitzow has joined #angularjs
[00:13:11] <gladely> that makes sense. thankfully we didn't have any implementation in thos ehandlers, apparently (based on our comment) it broke some other stuff earlier in the year so we disabled it
[00:13:12] *** rtpg has quit IRC
[00:13:27] <gladely> but now when updating to 1.3 and replacing some crappy sliders we had with html5 ones, I found that even declaring them was causing issues.
[00:13:33] *** optikalmouse has quit IRC
[00:13:43] *** ctanga has quit IRC
[00:14:14] *** xxMatiasFCxx has quit IRC
[00:15:54] <jaawerth> I find that wrapping hammerjs is a bit more effective - that's what angular-material does as well, IIRC
[00:16:06] <jaawerth> ng-touch is pretty basic
[00:16:09] <gladely> thanks for the tip, i'll check that out when we revisit.
[00:17:35] *** mylord has quit IRC
[00:19:17] *** jmichaelward has quit IRC
[00:20:16] *** saucey has quit IRC
[00:25:18] *** Menorah has quit IRC
[00:25:20] *** ytsejam has quit IRC
[00:25:31] *** yts has quit IRC
[00:25:58] *** maikowblue has joined #angularjs
[00:26:14] *** Sky[x] has joined #angularjs
[00:27:09] *** chotchki has joined #angularjs
[00:27:33] *** Reskp has joined #angularjs
[00:28:57] *** WebDevOfDoom has joined #angularjs
[00:29:52] *** Zren_ is now known as Zren
[00:30:09] *** Zebra111_ has joined #angularjs
[00:30:23] *** leex has left #angularjs
[00:31:49] *** Reskp has quit IRC
[00:31:53] *** DrMabuse_ has joined #angularjs
[00:32:08] *** elrabin has joined #angularjs
[00:32:34] *** Zebra111_ has quit IRC
[00:32:45] *** WebDevOfDoom has quit IRC
[00:32:57] *** Zebra111 has quit IRC
[00:33:40] *** Aliks has joined #angularjs
[00:33:54] *** WebDevOfDoom has joined #angularjs
[00:35:08] *** NormySan has quit IRC
[00:36:33] *** DrMabuse_ has quit IRC
[00:37:05] *** rtpg has joined #angularjs
[00:37:22] *** elrabin has quit IRC
[00:37:55] *** elrabin has joined #angularjs
[00:38:36] *** WebDevOfDoom has quit IRC
[00:39:28] *** evotuned has joined #angularjs
[00:39:31] *** rtpg has quit IRC
[00:41:08] *** SargoDarya has joined #angularjs
[00:41:51] *** cotko has joined #angularjs
[00:41:59] *** tschundeee has joined #angularjs
[00:42:01] *** numproc has joined #angularjs
[00:42:25] *** elrabin has quit IRC
[00:43:43] *** Fishy has joined #angularjs
[00:43:52] *** numproc has joined #angularjs
[00:43:57] *** dman777_alter has quit IRC
[00:44:05] *** evotuned has quit IRC
[00:44:10] *** Sadin has joined #angularjs
[00:46:57] *** EQp has quit IRC
[00:47:31] *** rikko has quit IRC
[00:48:00] *** dc_ has joined #angularjs
[00:48:03] *** elrabin has joined #angularjs
[00:48:10] *** Fishy has quit IRC
[00:48:18] *** tschundeee has quit IRC
[00:49:04] *** zwacky has quit IRC
[00:51:16] *** s00pcan__ has quit IRC
[00:51:38] *** s00pcan has joined #angularjs
[00:51:43] *** ctanga has joined #angularjs
[00:52:22] *** earthquake has quit IRC
[00:52:26] *** eburcat has quit IRC
[00:52:37] *** elrabin has quit IRC
[00:54:00] *** eago_ has quit IRC
[00:54:27] *** rikko has joined #angularjs
[00:54:30] *** wafflej0ck__ is now known as wafflej0ck
[00:57:22] *** elrabin has joined #angularjs
[00:58:17] *** KushS has quit IRC
[00:59:50] *** earthquake has joined #angularjs
[01:00:34] *** slopjong has quit IRC
[01:01:05] <mattblang> anyone using angular material?
[01:01:13] *** AlSquire has quit IRC
[01:01:34] <mattblang> having an issue with the sidenav directive.
[01:01:37] *** bmac has joined #angularjs
[01:01:49] *** zwacky has joined #angularjs
[01:01:51] *** elrabin has quit IRC
[01:02:19] *** eago_ has joined #angularjs
[01:02:45] *** elrabin has joined #angularjs
[01:02:51] *** SargoDarya has quit IRC
[01:03:22] *** asheshambasta1 has quit IRC
[01:04:26] *** RossJH has quit IRC
[01:05:05] *** b1rkh0ff has quit IRC
[01:05:58] *** jonatas_oliveira has joined #angularjs
[01:06:06] *** DrMabus__ has joined #angularjs
[01:07:25] *** jonathanpglick has quit IRC
[01:07:28] *** DrMabus__ has quit IRC
[01:08:10] *** KushS has joined #angularjs
[01:09:09] *** KushS has joined #angularjs
[01:09:47] *** earthquake has quit IRC
[01:09:49] *** AlfredH_ has quit IRC
[01:10:40] *** jonatas_oliveira has quit IRC
[01:11:53] *** elrabin has quit IRC
[01:12:04] *** KushS has quit IRC
[01:12:16] *** bbankes has quit IRC
[01:12:39] *** zz_night-owl is now known as night-owl
[01:12:47] *** elrabin has joined #angularjs
[01:12:54] *** tomaso has quit IRC
[01:15:07] *** tschundeee has joined #angularjs
[01:17:34] *** nahoskins has quit IRC
[01:17:35] *** ries has quit IRC
[01:17:37] *** tomaso has joined #angularjs
[01:21:30] *** Oceed has joined #angularjs
[01:22:39] *** elrabin has quit IRC
[01:22:41] *** AlSquire has joined #angularjs
[01:24:43] *** charuru has joined #angularjs
[01:27:14] *** xdissent has quit IRC
[01:27:35] *** morenoh150 has quit IRC
[01:27:44] *** elrabin has joined #angularjs
[01:28:15] *** edrocks has joined #angularjs
[01:28:30] *** Reskp has joined #angularjs
[01:29:31] *** SergioFilhow has quit IRC
[01:30:08] *** SergioFilhow has joined #angularjs
[01:30:50] *** AlfredH_ has joined #angularjs
[01:32:19] *** elrabin has quit IRC
[01:32:52] *** tSpartak has quit IRC
[01:32:53] *** Reskp has quit IRC
[01:33:01] *** elrabin has joined #angularjs
[01:34:23] *** SergioFilhow has quit IRC
[01:37:05] *** edrocks_ has joined #angularjs
[01:37:24] *** elrabin has quit IRC
[01:38:00] *** tSpartak has joined #angularjs
[01:39:24] *** ctanga has quit IRC
[01:39:36] *** aven1 has joined #angularjs
[01:39:49] *** wiherek has joined #angularjs
[01:39:53] *** rtpg has joined #angularjs
[01:40:28] *** evotuned has joined #angularjs
[01:40:37] *** aazzjijdjza has quit IRC
[01:40:39] *** edrocks has quit IRC
[01:41:02] *** alpha080 has quit IRC
[01:42:19] *** joroc has quit IRC
[01:43:12] *** elrabin has joined #angularjs
[01:43:16] <wiherek> hi
[01:44:13] *** rtpg has quit IRC
[01:44:35] *** Fishy has joined #angularjs
[01:44:53] *** evotuned has quit IRC
[01:48:32] *** rikko has quit IRC
[01:48:49] *** Fishy has quit IRC
[01:50:03] *** michaelv_ has quit IRC
[01:50:59] *** oncenull has joined #angularjs
[01:51:29] *** KushS has joined #angularjs
[01:51:38] *** KushS has joined #angularjs
[01:52:07] *** elrabin has quit IRC
[01:52:54] *** elrabin has joined #angularjs
[01:53:52] *** {DV8} has joined #angularjs
[01:54:37] *** disorder20 has quit IRC
[01:57:27] *** elrabin has quit IRC
[01:57:50] *** DrFrog has joined #angularjs
[01:57:54] *** earthquake has joined #angularjs
[01:58:03] *** elrabin has joined #angularjs
[01:58:32] *** ihsw has quit IRC
[01:58:36] *** amergin has joined #angularjs
[01:59:46] <edrocks_> wiherek: would you be against a pagination?
[01:59:57] *** SargoDarya has joined #angularjs
[02:00:56] <amergin> how can I ensure that a directive also destroys it's scope? what I'm seeing is that element's $destroy is called, but after that the functionality of the directive scope carries on
[02:00:58] *** rmaceissoft has joined #angularjs
[02:01:33] <amergin> can I/should I manually destroy the scope?
[02:02:21] *** wiherek has quit IRC
[02:02:53] *** elrabin has quit IRC
[02:03:19] *** Sadin has quit IRC
[02:03:30] *** Foxandxss has quit IRC
[02:03:34] *** TuRnaD0 has joined #angularjs
[02:04:14] *** PointBlank has quit IRC
[02:04:25] *** mzabriskie has quit IRC
[02:04:28] *** gladely has quit IRC
[02:04:58] *** DLSteve_ has quit IRC
[02:05:13] *** gladely has joined #angularjs
[02:05:28] *** gladely has quit IRC
[02:05:43] *** komlev has quit IRC
[02:06:49] *** henn1nk has quit IRC
[02:07:08] *** oncenull has quit IRC
[02:08:14] *** circ-user-dfR6V has quit IRC
[02:08:16] *** elrabin has joined #angularjs
[02:08:28] *** cjustiniano has quit IRC
[02:09:05] *** ziyadb has quit IRC
[02:09:27] *** joroc has joined #angularjs
[02:09:39] *** Sadin has joined #angularjs
[02:10:46] *** marr has quit IRC
[02:11:17] *** Menorah has joined #angularjs
[02:12:23] *** mitc0185 has quit IRC
[02:12:53] <amergin> and when a directive is destroyed, how can I unwatch a $rootScope.$on expression?
[02:13:11] *** aven1 has quit IRC
[02:14:07] *** qdk has quit IRC
[02:15:41] *** eago_ has quit IRC
[02:18:06] *** EQp has joined #angularjs
[02:18:24] *** bmac has quit IRC
[02:19:55] *** Sjeeke has quit IRC
[02:20:10] *** tschunde_ has joined #angularjs
[02:20:23] *** SargoDarya has quit IRC
[02:22:09] *** elrabin has quit IRC
[02:22:15] *** oncenull has joined #angularjs
[02:23:01] *** elrabin has joined #angularjs
[02:23:48] *** tschundeee has quit IRC
[02:25:04] *** chrisshattuck has joined #angularjs
[02:25:39] *** edrocks_ has quit IRC
[02:27:18] *** chotchki has quit IRC
[02:27:25] *** elrabin has quit IRC
[02:28:21] *** elrabin has joined #angularjs
[02:28:30] *** tomaso has quit IRC
[02:29:11] *** rileylark has joined #angularjs
[02:29:13] *** Reskp has joined #angularjs
[02:30:09] *** chotchki has joined #angularjs
[02:30:44] *** tomaso has joined #angularjs
[02:31:07] *** cakirke has joined #angularjs
[02:32:42] *** AlfredH_ has quit IRC
[02:32:55] *** elrabin has quit IRC
[02:33:43] *** Rutix has quit IRC
[02:33:46] *** rileylark has quit IRC
[02:34:03] *** Reskp has quit IRC
[02:34:10] *** leolrrj has quit IRC
[02:35:17] *** ChadStrat has joined #angularjs
[02:35:20] *** psi_ has joined #angularjs
[02:36:23] *** aminRX has quit IRC
[02:36:24] *** sbellina has quit IRC
[02:37:14] *** Menorah has quit IRC
[02:37:20] *** TuRnaD0 has quit IRC
[02:37:35] <jaawerth> amergin: the scope will destroy itself (try scope.$on('$destroy', function() {console.log('destroyed'); }) and you'll see)
[02:37:55] *** kroogs has joined #angularjs
[02:38:14] <jaawerth> amergin: but you'll have to do stuff like unregister event listeners and and stuff. just listen for that $destroy event and unregister your $rootScope.$on and event listeners then
[02:38:26] *** elrabin has joined #angularjs
[02:38:51] <jaawerth> amergin: as for how, scope.$on returns an "unregister" function so you just grab the return value of the $on and execute it when you need to deregister
[02:38:59] *** mattblang has quit IRC
[02:39:06] *** Psi|4ward has quit IRC
[02:39:14] *** kroogs has quit IRC
[02:41:10] *** rtpg has joined #angularjs
[02:41:12] *** Sky[x] has quit IRC
[02:41:19] *** eburcat has joined #angularjs
[02:41:30] *** evotuned has joined #angularjs
[02:41:58] *** rileylark has joined #angularjs
[02:42:36] *** MLMitch has joined #angularjs
[02:43:20] *** larsam has quit IRC
[02:45:02]
<rmaceissoft> amergin: this answer illustrates what jaawerth mentioned about unregistering event listeners http://goo.gl/1xoVH8
[02:45:14] *** Fishy has joined #angularjs
[02:45:17] *** Jameser` has quit IRC
[02:45:17] *** rtpg has quit IRC
[02:45:37] *** eburcat has quit IRC
[02:45:39] *** robdubya has joined #angularjs
[02:45:51] *** WebDevOfDoom has joined #angularjs
[02:46:02] *** evotuned has quit IRC
[02:46:24] *** whitebook has joined #angularjs
[02:46:25] *** Menorah has joined #angularjs
[02:46:29] *** jdjduwss has joined #angularjs
[02:47:13] *** jdjduwss has quit IRC
[02:47:48] *** tschunde_ has quit IRC
[02:47:55] <robdubya> fucking awesomesauce
[02:49:06] <jaawerth> robdubya: thanks - I've been meaning to dive into that soon, actually
[02:49:17] *** oncenull has quit IRC
[02:49:20] <jaawerth> indexDb, that is
[02:49:52] *** Fishy has quit IRC
[02:50:03] *** cornerma1 has joined #angularjs
[02:50:07] <jaawerth> robdubya: oh hey, so I haven't really done much with Sails yet (I'm terrible, I know). Just how grunt-dependent is it? Because I love gulp so much I really don't want to go back :-\
[02:50:30] <robdubya> not at all - its there for the front end but has nada to do w/ the server side
[02:51:08] <jaawerth> so.. what, just some predefined things you can easily do to set stuff upu?
[02:51:18] <jaawerth> (guess I can check the docs for that part)
[02:51:32] <robdubya> the basic stuff any task runner does - copy / concat / minify / etc
[02:51:37] <jaawerth> ah, cool
[02:51:49] <robdubya> its the first thing i rip out on a new sails project
[02:51:53] <jaawerth> hehe
[02:51:57] *** raibutera has joined #angularjs
[02:52:11] *** elrabin has quit IRC
[02:52:40] <jaawerth> poor grunt. it really was a revolutionary tool but gulp is just... so easily extensible
[02:53:08] *** elrabin has joined #angularjs
[02:53:12] *** cornerman has quit IRC
[02:53:21] *** cornerma1 is now known as cornerman
[02:54:53] *** uris77 has joined #angularjs
[02:55:38] *** Aliks has quit IRC
[02:56:04] *** qwerty2 has joined #angularjs
[02:56:15] <qwerty2> hi
[02:56:26] *** earthquake has quit IRC
[02:57:37] *** elrabin has quit IRC
[02:58:11] *** elrabin has joined #angularjs
[03:00:13] *** annlewis has joined #angularjs
[03:00:39] *** SergioFilhow has joined #angularjs
[03:00:48] *** Rutix has joined #angularjs
[03:00:49] *** Rutix has joined #angularjs
[03:00:51] *** cjustiniano has joined #angularjs
[03:01:25] <robdubya> you shoudn't pass in scope
[03:02:54] *** raibutera has joined #angularjs
[03:02:56] *** pehlert has joined #angularjs
[03:03:02] *** marchand has quit IRC
[03:03:48] <robdubya> ha
[03:04:10] *** tristanp has quit IRC
[03:05:06] <jaawerth> I really don't get why they're using the function constructor (aka eval) there
[03:05:13] *** SergioFilhow has quit IRC
[03:05:13] <jaawerth> it doesn't seem like something you couldn't do in other ways
[03:05:42] *** knapko has joined #angularjs
[03:06:20] *** qdk has joined #angularjs
[03:07:49] *** elrabin has quit IRC
[03:07:49] *** MistahKurtz has quit IRC
[03:07:50] *** pehlert has quit IRC
[03:08:18] *** aminRX has joined #angularjs
[03:08:31] *** elrabin has joined #angularjs
[03:09:11] *** theotherguy has joined #angularjs
[03:09:47] *** WebDevOfDoom has quit IRC
[03:09:56] *** oncenull has joined #angularjs
[03:10:46] *** annlewis has quit IRC
[03:12:21] *** ChadStrat has quit IRC
[03:12:45] *** maikowblue has quit IRC
[03:14:00] <jaawerth> robdubya: in fact, they've got fallback code in place if eval isn't supported - can you tell at a glance what the benefit actually is?
[03:14:57] <jaawerth> oh.. it's so the functions use dot accessors instead of bracket accessors
[03:17:30] *** SargoDarya has joined #angularjs
[03:18:09] *** jumpstracks has joined #angularjs
[03:21:18] *** rikko has joined #angularjs
[03:21:40] *** SargoDarya has quit IRC
[03:24:10] *** MJD has quit IRC
[03:24:54] <jaawerth> that's so weird. I dono't think dot accessors are actually any faster, MDN even has a note about how sometimes "novices" will use eval when all they need are bracket accessors
[03:25:09] * jaawerth joins the polymer channel
[03:25:37] *** rileylark has quit IRC
[03:25:42] *** buzzlock has joined #angularjs
[03:26:03] <buzzlock> Hey Fellow ng-peeps.
[03:26:36] *** MJD has joined #angularjs
[03:26:57] <buzzlock> Hi MJD
[03:27:11] *** RedOrangeZ has quit IRC
[03:27:17] *** wiherek has joined #angularjs
[03:27:19] *** elrabin has quit IRC
[03:27:59] <wiherek> opinions needed :)
[03:28:00] *** nc90 has quit IRC
[03:28:11] *** elrabin has joined #angularjs
[03:28:56] <wiherek> (to answer a former question: client-side paging is needed; the client has the whole list available)
[03:29:08] <buzzlock> #wiherek Did you try buffing?
[03:29:14] <wiherek> ?
[03:29:42] *** eago_ has joined #angularjs
[03:29:45] <buzzlock> first in / first out loading.
[03:29:59] *** Reskp has joined #angularjs
[03:30:12] *** wiherek has quit IRC
[03:31:29] *** metasansana has quit IRC
[03:32:27] <robdubya> haven't really played with O.o directly toooo much jaawerth
[03:33:05]
<qwerty2> ¿Why if the console.log of line 17 give a well formated json, I dont get any data in the view please http://pastebin.com/irPjUuRz?
[03:33:22] <buzzlock> Anyone here into yeoman too?
[03:34:49] *** nerdfiles has quit IRC
[03:34:51] *** Reskp has quit IRC
[03:34:57] <robdubya> qwerty2 seems like a weird usage...
[03:35:21] *** Aliks has joined #angularjs
[03:35:34] <jaawerth> robdubya: yeah, I'm just reading the code
[03:35:52] <qwerty2> robdubya: would be a good one?
[03:36:13] <robdubya> depends what you're trying to do...
[03:36:55] <qwerty2> I would like to make a filter to can paginate the result data robdubya
[03:37:04] <robdubya> use limitTo
[03:37:33] *** elrabin has quit IRC
[03:37:40] <qwerty2> and if the from to 20 to 30 on a 100 results robdubya?
[03:37:47] <qwerty2> if I need*
[03:37:49] *** JesseH has quit IRC
[03:37:57] <robdubya> limitTo :)
[03:38:12] *** elrabin has joined #angularjs
[03:38:21] *** boxmein is now known as pacbrad
[03:38:24] *** pacbrad is now known as boxmein
[03:38:35] <wafflej0ck> limitTo only limits the number of elements though correct? I used some custom directive for startFrom I'm pretty sure in the past
[03:38:50] *** mrmanicou has joined #angularjs
[03:38:51] *** jumpstracks has quit IRC
[03:39:13] *** michaelSharpe has joined #angularjs
[03:39:20] <wafflej0ck> er filter
[03:39:27] <qwerty2> wafflej0ck: which ones?
[03:39:34] <robdubya> you can do limitTo:-5 (which would go from the end of the range)
[03:40:29] *** startupality has joined #angularjs
[03:40:30] *** jumpstracks has joined #angularjs
[03:40:34] *** evilaliv3 has quit IRC
[03:40:38] <buzzlock> What is the first reason that came to your mind that made you choose AngularJS?
[03:41:11] <wafflej0ck> buzzlock, Flex and advice from other ex Flex developers
[03:41:37] *** annlewis has joined #angularjs
[03:42:29] *** evotuned has joined #angularjs
[03:42:32] *** rtpg has joined #angularjs
[03:42:34] <wafflej0ck> mrmanicou, vm.obits is being assigned to a promise
[03:42:37] *** elrabin has quit IRC
[03:42:41] *** Grapes has joined #angularjs
[03:42:44] *** theotherguy has quit IRC
[03:42:54] <mrmanicou> No it's not
[03:43:03] <wafflej0ck> mrmanicou, yeah it is
[03:43:11] *** annlewis has quit IRC
[03:43:20] <wafflej0ck> lets do this playground style :)
[03:43:21] *** annlewis has joined #angularjs
[03:43:24] <mrmanicou> lol
[03:43:29] <wafflej0ck> $http returns a promise
[03:43:35] <mrmanicou> I'm not returning http
[03:43:46] *** michaelSharpe has quit IRC
[03:44:08] <mrmanicou> I'm returning the data from the success function
[03:44:09] <buzzlock> Wow! Very interesting #wafflej0ck; I love it; thanks.
[03:44:10] <wafflej0ck> oh okay you're right.. but you should typically return the promise from the call in the service
[03:44:24] *** Nivag has quit IRC
[03:44:30] <mrmanicou> I know... I just wanted to knwo why this wasn't working though
[03:44:43] <mrmanicou> Makes more sense to use the promise indeed
[03:44:48] <wafflej0ck> mrmanicou, yeah so basically you can just store the data in the service which I typically do... well right now getObits doesn't return anything
[03:44:54] *** Nivag has joined #angularjs
[03:45:14] <wafflej0ck> the success function returns something but that isn't being captured anywhere
[03:45:35] <mrmanicou> ok. I really do have a lot to learn here still
[03:45:36] *** michaelSharpe has joined #angularjs
[03:45:36] <Grapes> Are you using $q to setup a deferred?
[03:45:42] <qwerty2> wafflej0ck: and how can I change the value sended to startFrom filter? to can print diferrent result when go up/down on paginator
[03:45:48] <Grapes> and then returning deferred.promise
[03:45:54] <mrmanicou> Thank you wafflej0ck
[03:45:58] *** Fishy has joined #angularjs
[03:46:02] *** whitebook has quit IRC
[03:46:09] *** kakashiAL has joined #angularjs
[03:46:44] <wafflej0ck> so if you do like function getObits() { return $http.get('/api/stuftoget').success(success).error(error); }; then in your controller you can do getOrbits.then(function(data){vm.obits = data}); but there are easier ways by just keeping that data in the service and referencing it from the controller
[03:46:48] <wafflej0ck> mrmanicou, np
[03:46:57] *** evotuned has quit IRC
[03:47:01] *** michaelSharpe has quit IRC
[03:47:33] <wafflej0ck> qwerty2, should just be like myArray | startFrom:offset | limitTo:50
[03:47:44] <wafflej0ck> qwerty2, where offset changes based on the limitTo*pageNum
[03:47:44] *** rtpg has quit IRC
[03:48:01] *** annlewis has quit IRC
[03:48:14] *** nemothekid has quit IRC
[03:48:15] *** elrabin has joined #angularjs
[03:49:04] *** rileylark has joined #angularjs
[03:49:05] *** michaelSharpe has joined #angularjs
[03:49:08] <qwerty2> but I need to change one of those values right?
[03:49:15] *** kakashiA1 has quit IRC
[03:50:17] *** Fishy has quit IRC
[03:50:34] *** Weezey has quit IRC
[03:50:35] <wafflej0ck> yeah could be like myArray | startFrom: pageNum*perPage | limitTo: perPage and you just set the pageNum and perPage, think that works, haven't used it in a while though
[03:50:46] *** nemothekid has joined #angularjs
[03:51:38] *** fedenunez has joined #angularjs
[03:51:43] *** Weezey has joined #angularjs
[03:54:33] *** narutimateum has joined #angularjs
[03:54:37] <wafflej0ck> mrkake, missed some parens up there should have been getObits().then in the controller
[03:54:43] <wafflej0ck> shoot meant mrmanicou
[03:54:45] *** Oceed has quit IRC
[03:54:47] <wafflej0ck> too many mr's in here
[03:55:01] *** Oceed has joined #angularjs
[03:55:15] *** zwacky has quit IRC
[03:56:26] *** oncenull has quit IRC
[03:56:36] *** codeman has joined #angularjs
[03:56:54] <soee> wafflej0ck: may i take you one minute ?
[03:57:19] *** boxmein has quit IRC
[03:57:55] *** elrabin has quit IRC
[03:58:19] <wafflej0ck> can always ask, if I know I'll answer, usually someone else here usually knows if I don't though
[04:00:14] *** annlewis has joined #angularjs
[04:00:26] *** TheAceOfHearts has joined #angularjs
[04:00:44]
<soee> wafflej0ck: i checked the api provider you showed me yesterday (https://gist.github.com/jelbourn/6276338). Its nice and i would like to use it in my project, though i was wondering if it would be a good idea to use 'api' namespace for it not 'app' and put it into separate file, than 'api.core' would be my extra module, that would have some services that i will use in main app
[04:01:25] *** SergioFilhow has joined #angularjs
[04:02:10] *** one_zero has joined #angularjs
[04:02:45] *** elrabin has joined #angularjs
[04:03:45] *** mitc0185 has joined #angularjs
[04:04:49] *** annlewis has quit IRC
[04:05:46] *** SergioFilhow has quit IRC
[04:06:17] *** chrisshattuck has quit IRC
[04:06:37] *** tubiz has joined #angularjs
[04:06:38] <qwerty2> wafflej0ck: thanks! now the basic pagination is running!
[04:06:44] <wafflej0ck> qwerty2, nice
[04:07:23] *** elrabin has quit IRC
[04:07:47] <wafflej0ck> soee, hmm yeah don't immediately have hard opinions either way about that
[04:08:07] *** theotherguy has joined #angularjs
[04:08:15] *** elrabin has joined #angularjs
[04:08:18] *** JesseH has joined #angularjs
[04:08:35] *** Sjeeke has joined #angularjs
[04:09:04] *** aminRX has quit IRC
[04:09:45] *** jamto11 has joined #angularjs
[04:10:28] *** mitc0185 has quit IRC
[04:11:27] *** bmac has joined #angularjs
[04:12:29] *** Hackwar1 has joined #angularjs
[04:12:39] *** elrabin has quit IRC
[04:13:26] *** tristanp has joined #angularjs
[04:13:27] *** startupality has quit IRC
[04:13:31] *** Sjeeke has quit IRC
[04:13:59] *** Jet4Fire has quit IRC
[04:14:26] *** Hackwar has quit IRC
[04:14:29] *** Milkweed has quit IRC
[04:15:54] <buzzlock> #wafflej0ck I agree; this dir looks very clean. Nice job soee.
[04:16:30] <soee> dir ?
[04:16:33] *** cakirke has quit IRC
[04:16:58] *** whitebook has joined #angularjs
[04:17:18] <jaawerth> wafflej0ck: hmm, I kinda like that better than how I've been doing it, more dynamically configurable. I've been using a factory with a constructor function and then either using it to create services for individual APIs, or using a service with a store of APIs and creating them there (sometimes subclassing them with object inheritance, depending on how many related APIs there are under a specific system)
[04:17:34] <buzzlock> directory
[04:17:40] <jaawerth> I actually recently started to rewrite it using a provider and doing more in the config
[04:18:39] *** elrabin has joined #angularjs
[04:18:58] *** SargoDarya has joined #angularjs
[04:19:45] *** fotoflo has joined #angularjs
[04:21:07] *** whitebook has quit IRC
[04:21:13] *** numproc has quit IRC
[04:21:14] *** theotherguy has quit IRC
[04:21:17] *** codeman has quit IRC
[04:21:19] *** whitebook has joined #angularjs
[04:22:52] *** tSpartak has quit IRC
[04:23:00] *** soee has quit IRC
[04:23:26] *** frem has joined #angularjs
[04:23:37] *** matheusrocha89 has joined #angularjs
[04:24:37] <buzzlock> Hey frem && matheusrocha89
[04:24:47] *** Nivag_ has quit IRC
[04:24:57] <buzzlock> Welcome.
[04:24:59] *** bmac has quit IRC
[04:25:16] *** Nivag_ has joined #angularjs
[04:25:19] *** tristanp has quit IRC
[04:25:25] <matheusrocha89> buzzlock: thanks
[04:26:19] <buzzlock> #matheusrocha89 Indeed.
[04:27:19] *** night-owl is now known as zz_night-owl
[04:27:51] <buzzlock> What environment are you using? (to everyone)
[04:27:58] *** mmealling has joined #angularjs
[04:28:31] *** zz_night-owl is now known as night-owl
[04:29:48] *** night-owl is now known as zz_night-owl
[04:30:02] *** eburcat has joined #angularjs
[04:30:45] *** cjustiniano has quit IRC
[04:30:59] *** Reskp has joined #angularjs
[04:31:09] *** jumpstracks has quit IRC
[04:32:29] *** Menorah has quit IRC
[04:32:29] *** elrabin has quit IRC
[04:32:46] <matheusrocha89> buzzlock: what do you mean with eviroment?? IDE? Editors?
[04:33:14] *** sbellina has joined #angularjs
[04:33:18] *** elrabin has joined #angularjs
[04:33:47] <buzzlock> #matheusrocha89 I am basically using the MEAN stack. (personalty)
[04:34:27] *** Menorah has joined #angularjs
[04:34:35] *** bmac has joined #angularjs
[04:34:46] *** michaelSharpe has quit IRC
[04:34:47] *** eburcat has quit IRC
[04:35:02] *** Reskp has quit IRC
[04:35:27] <wafflej0ck> buzzlock, using PHP+Eloquent ORM+Slim+pHPass right now, been looking at sails though to play with Node and something for NRT pub/sub type stuff
[04:35:45] <matheusrocha89> buzzlock: Now I am working in a small project with Ionic and I am taking a look on pouchDB to use with it
[04:35:51] *** MistahKurtz has joined #angularjs
[04:36:24] <wafflej0ck> jaawerth, yeah I do the same as you at the moment pretty much but I've been looking at this other solution for months just haven't actually given it a go yet, haven't started a new project where it necessitated it and other projects I have bigger priorities than trying this out
[04:36:57] <jaawerth> wafflej0ck: only thing is I'd rather just use $interpolate than $resource
[04:37:05] *** TheAceOfHearts has quit IRC
[04:37:40] *** sbellina has quit IRC
[04:37:54] <wafflej0ck> good to hear from soee that it was working out though it does seem like a pretty clean approach, lets you do beforeSave and afterLoad to transform things
[04:38:12] <jaawerth> yeah
[04:38:20] <wafflej0ck> personally I already use $resource in my services for API calls so that part wouldn't really need to change for me
[04:38:33] <jaawerth> I always go back and forth on using $resource
[04:38:53] <wafflej0ck> yeah I use it for everything except auth basically
[04:38:54] *** Cronoh has quit IRC
[04:39:05] <jaawerth> I always just use $promise exclusively and there's often little point in getting the data itself
[04:39:17] <jaawerth> er, though the resource obj that is
[04:39:21] <jaawerth> through*
[04:39:38] <wafflej0ck> makes doing the CRUD for resources the same everywhere, having the $resource objects is nice for the $delete or $save functions
[04:40:17] *** SargoDarya has quit IRC
[04:40:20] <wafflej0ck> I'm trying to use this thing for nested set models in PHP now but just crossing my fingers that it works cause no idea how I'll fix it if it doesn't work like it says on the tin
[04:41:20] <buzzlock> #matheusrocha89 Thank you.
[04:41:31] *** muffin has joined #angularjs
[04:41:44] <wafflej0ck> using nested sets for representing tree structures is way better in terms of performance for selecting/filtering parts of a tree compared with just doing some sort of foreign key relationship type setup but it's more complicated to maintain
[04:41:53] *** whitebook has quit IRC
[04:42:51] *** whitebook has joined #angularjs
[04:42:52] *** elrabin has quit IRC
[04:43:05] <wafflej0ck> I wrote an implementation for it once before actually too but no idea what I did it for or where it is...
[04:43:15] *** j_wright has quit IRC
[04:43:31] *** evotuned has joined #angularjs
[04:44:01] *** MuffinMan` has quit IRC
[04:44:02] <buzzlock> #wafflej0ck Is there a tut for this wafflej0ck?
[04:44:08] *** bmac has quit IRC
[04:44:25] *** Zebra111 has joined #angularjs
[04:45:38] <buzzlock> #wafflej0ck Even better thanks for the share.
[04:46:03] *** rickhanlonii has joined #angularjs
[04:46:19] *** j_wright has joined #angularjs
[04:46:47] *** Fishy has joined #angularjs
[04:47:38] *** whitebook has quit IRC
[04:47:59] *** Zebra111 has quit IRC
[04:48:20] *** elrabin has joined #angularjs
[04:48:21] *** evotuned has quit IRC
[04:48:47] *** whitebook has joined #angularjs
[04:48:53] *** aminRX has joined #angularjs
[04:49:02] *** Zebra111 has joined #angularjs
[04:49:32] <jaawerth> ah yeah, ,I've seen this
[04:50:01] *** soee has joined #angularjs
[04:50:04] <jaawerth> it's funny, all these techniques are like 40 years old, nothing ever changes
[04:50:24] <wafflej0ck> eh well Math is Math and people have been doing it for millenia
[04:50:28] <jaawerth> used to be because storage access was slow/limited, now it's to get around remote storage limitations
[04:50:48] <wafflej0ck> cool that people like Djikstra still coming up with novel solutions to hard problems though
[04:51:29] *** Fishy has quit IRC
[04:51:51] <wafflej0ck> yeah I just like this solution better than having parent references and needing to run a ton of queries to resolve the tree
[04:52:53] *** elrabin has quit IRC
[04:53:01] *** Lewix has joined #angularjs
[04:54:34] *** eburcat has joined #angularjs
[04:54:50] *** mmealling has quit IRC
[04:55:08] *** warehouse13 has quit IRC
[04:55:53] <wafflej0ck> I'm glad thousands of years of mathematicians have solved all these hard problems so I can just copy/codify them :P
[04:58:24] *** elrabin has joined #angularjs
[04:59:04] *** eburcat has quit IRC
[04:59:41] *** sheplu has quit IRC
[04:59:59] *** Aliks has quit IRC
[05:00:19] *** AlSquire has quit IRC
[05:00:36] *** Aliks has joined #angularjs
[05:01:19] *** theotherguy has joined #angularjs
[05:01:39] *** fotoflo has quit IRC
[05:04:05] *** qwerty2 has quit IRC
[05:04:47] *** Zebra111 has quit IRC
[05:05:16] *** Aliks has quit IRC
[05:06:16] *** whitebook has quit IRC
[05:07:11] *** elrabin has quit IRC
[05:08:03] *** chotchki has quit IRC
[05:08:19] <buzzlock> Exactly. Where is the algorithms that support us developers in need of our plugins/builds?
[05:08:23] *** elrabin has joined #angularjs
[05:08:25] *** Cronoh has joined #angularjs
[05:09:22] *** JoshGlzBrk has joined #angularjs
[05:09:35] *** aven1 has joined #angularjs
[05:10:44] *** chotchki has joined #angularjs
[05:12:43] *** elrabin has quit IRC
[05:13:16] *** rickhanlonii has quit IRC
[05:13:17] *** joroc has quit IRC
[05:13:50] *** fotoflo has joined #angularjs
[05:14:10] *** rickhanlonii has joined #angularjs
[05:16:10] *** fedenunez has quit IRC
[05:18:46] *** elrabin has joined #angularjs
[05:21:16] *** nickgs has joined #angularjs
[05:21:45] *** nickgs has quit IRC
[05:21:45] *** freeAir has joined #angularjs
[05:22:19] *** nickgs has joined #angularjs
[05:22:23] *** Cronoh has quit IRC
[05:23:06] <freeAir> hi, in a custom directive. when i should wirte code in the controller and when link?
[05:26:53] *** nickgs has quit IRC
[05:27:23] *** aminRX has quit IRC
[05:27:42] *** bayousoft has quit IRC
[05:27:50] *** sshaginyan has joined #angularjs
[05:28:55] *** KushS has quit IRC
[05:29:12] *** nickgs has joined #angularjs
[05:31:06] *** cjustiniano has joined #angularjs
[05:31:40] *** ron_frown has joined #angularjs
[05:31:47] *** Reskp has joined #angularjs
[05:31:50] <wafflej0ck> freeAir, controller for exposing things to other directives that require this directive and need to access stuff from the injected controller in their link function
[05:32:01] <wafflej0ck> freeAir, link function for everything not a part of the API
[05:32:33] *** elrabin has quit IRC
[05:32:39] <jaawerth> it can also be helpful for prepping the scope/presentation logic in a more data-driven way, so the link can then focus primarily on the DOM and interaction stuff
[05:32:58] <jaawerth> I usually set up my controllers to expose an API for usue in both other directives AND in my link function
[05:33:27] *** elrabin has joined #angularjs
[05:33:29] *** ron_frown has quit IRC
[05:33:53] <jaawerth> lately I've even been borrowing from how the angular team wrote the form directive so the controller can attach itself via some attribute property to the parent controller's scope if the target property is passed in, but I wouldn't mess with that unless you really know what you're doing
[05:34:00] <wafflej0ck> yeah dunno personally I keep the controller clean of other stuff and just do it all in the link function if need be I'll define helper functions in there and stuff to make it easier to read but personally prefer only having API exposed stuff in controller
[05:34:25] <jaawerth> yeah - or you can define the functions standalone in the directive
[05:34:33] <wafflej0ck> right
[05:34:41] <wafflej0ck> just preference stuff any way would work
[05:34:46] <jaawerth> depends on the directive, really, but you have a point
[05:35:12] *** ron_frown has joined #angularjs
[05:35:27] <jaawerth> sometimes it's handy to get an early start on async stuff (since the controller runs before the link), but 1) you can also do that in preLink, and 2) that's an optimization and best done after you have a working directive anyway
[05:35:42] *** Dido has quit IRC
[05:36:00] *** Reskp has quit IRC
[05:36:25] <freeAir> so,if this directive is dependent,the function or variable only works in this directive.it is no different between controller and link.
[05:36:29] *** cjustiniano has quit IRC
[05:36:45] *** max_dev has joined #angularjs
[05:37:00] <freeAir> independent 0,0
[05:37:33] *** elrabin has quit IRC
[05:37:44] <jaawerth> well, the main thing is DOM manipulation triggered by the directive itself should happen in the link function, since you know the DOM will be ready by then. Subsequent DOM manipulation can then be triggered from elsewhere by functions in the controller
[05:37:53] *** SargoDarya has joined #angularjs
[05:38:37] <wafflej0ck> glad to see the traffic to my site is only 4% IE cause I'm pretty sure it doesn't work in IE<9 and looks pretty crappy in there anyway
[05:38:45] *** elrabin has joined #angularjs
[05:38:48] <wafflej0ck> need to add some alerts about browser version though, I still haven't done that
[05:39:28] <jaawerth> what percentage is IE <9?
[05:39:37] *** joroc has joined #angularjs
[05:39:46] <wafflej0ck> freeAir, yeah there are differences but it's not a matter of works/doesn't work it's just a matter of the order those functions you define are called in
[05:39:51] <jaawerth> I'm about ready to chuck IE8 entirely
[05:40:03] <wafflej0ck> 15% of that 4%
[05:40:40] <jaawerth> even IE9 sucks because CSS3 transitions/animations won't work
[05:40:54] *** earthquake has joined #angularjs
[05:40:55] *** mmealling has joined #angularjs
[05:41:41] *** freeAir has quit IRC
[05:42:55] *** aven1 has quit IRC
[05:43:02] <wafflej0ck> Mostly chrome then safari then firefox 65% 13% and 10% respectively (then Safari (in-app) not sure what that means) IE in 5th place with 3.6%, though it's mostly technical people coming to my site I'm pretty sure so no doubt these numbers are pretty slanted in terms of the overall web
[05:43:07] <jaawerth> wafflej0ck: 0.6%? what's your site traffic?
[05:43:19] *** elrabin has quit IRC
[05:43:29] <jaawerth> er, if that isn't a secret
[05:44:29] <wafflej0ck> no big deal, just using a little bit on adwords getting about 1000 sessions a month mostly driven from that, some from stackoverflow.com some from YouTube, some from e-mails out to people and general promoting
[05:44:30] *** evotuned has joined #angularjs
[05:44:30] *** uris77 has quit IRC
[05:44:36] *** burzum2 has joined #angularjs
[05:44:56] <wafflej0ck> jaawerth, eventually would like to have some services that people can just sign up on the site and will push more into advertising then, but experimenting with things at this point
[05:45:02] *** rtpg has joined #angularjs
[05:45:37] <jaawerth> so 6 IE8 users
[05:45:39] <jaawerth> GET EM
[05:45:42] <wafflej0ck> haha
[05:47:17] *** burzum has quit IRC
[05:47:29] *** Fishy has joined #angularjs
[05:47:50] *** TheAceOfHearts has joined #angularjs
[05:48:33] *** cantyjeffrey has joined #angularjs
[05:48:57] *** evotuned has quit IRC
[05:49:48] *** rtpg has quit IRC
[05:50:09] *** SergioFilhow has joined #angularjs
[05:51:56] *** Fishy has quit IRC
[05:53:24] *** elrabin has joined #angularjs
[05:53:27] *** vikas has joined #angularjs
[05:53:57] <wafflej0ck> be back later maybe... gotta reboot and try out this baum thing
[05:54:04] *** besson3c has joined #angularjs
[05:54:23] *** SergioFilhow has quit IRC
[05:54:37] <besson3c> Hey guys, I'm having some problems with my two-way data binding...
[05:54:50] <vikas> Hi want to certification in angular could you share me information on the same
[05:55:19] <robdubya> haha, angular certified
[05:55:30] <vikas> yup
[05:55:52] <vikas> u have any information
[05:55:56] <besson3c> my input field is displaying the correct data, but when I update a record in my MongoDB outside of the app the app's view doesn't refresh to show this data change
[05:56:06] <robdubya> dont think there's such a thing vikas
[05:56:28] <besson3c> any takers? Any help would be appreciated, I'm newish to conceptualizing how Angular does things
[05:56:51] <robdubya> besson3c a) just do ng-model="value"
[05:56:55] <wafflej0ck> robdubya, don't tell people that, I'm doing certifications for $10K :P bbiab
[05:57:05] <robdubya> b) not entirely sure what mongodb has to do with it
[05:57:11] *** wafflej0ck has quit IRC
[05:57:15] <robdubya> wafflej0ck hahaha
[05:57:36] *** Sjeeke has joined #angularjs
[05:58:00] *** wafflej0ck_ has quit IRC
[05:58:03] *** elrabin has quit IRC
[05:58:06] <Grapes> I don't think mongo will update your model
[05:58:07] <besson3c> robdubya: that's what I've done, no? My database backing the data in my model is Mongo. Shouldn't a direct update to a row outside my app reflect in my app without having to do a page refresh?
[05:58:15] <Grapes> but you could use something like Firebase for a 3 way data binding
[05:58:26] *** SargoDarya has quit IRC
[05:58:33] <robdubya> besson3c you're talking to an API, surely
[05:58:42] <robdubya> unless you're using node-webkit or something
[05:58:56] <vikas> == robdubya r u guys serous there is no any information
[05:58:57] <besson3c> Grapes: okay, so an AJAX call from within the app will update the view, but not stuff from outside the app? If so, that's cool...
[05:58:58] *** wafflej0ck_ has joined #angularjs
[05:59:10] <robdubya> as far as "conceptualizng angular" - we need to see your controller code
[05:59:24] <Grapes> Check out Firebase
[05:59:26] <robdubya> because data drives DOM
[05:59:37] <vikas> regarding certificae
[05:59:46] <robdubya> besson3c assuming you make an ajax call and update the *same* object with the response
[05:59:48] <besson3c> robdubya: no need, possibly. If what I just said is accurate, I think I'm set.
[05:59:52] <robdubya> then it should update
[06:00:07] <robdubya> (are you using $.ajax? or $http)
[06:00:10] *** zumba_addict has quit IRC
[06:00:21] <besson3c> robdubya: yup... My backend uses Loopback, so I just need to make an API call to Loopback and the view will auto-update, correct?
[06:00:30] <robdubya> ahhh loopback
[06:00:38] <besson3c> robdubya: neither, I'm just kicking tires right now. I'm not that deep.
[06:00:51] <robdubya> can you post your controller code?
[06:01:26] <besson3c> robdubya: I can, but there isn't much to see... Do you still want to check it out?
[06:01:27] *** alpha080 has joined #angularjs
[06:01:36] <robdubya> the key to making it work as you expect is that when the response comes back from loopback, you must update the *same* object/reference/instance
[06:01:43] *** lemur has joined #angularjs
[06:01:51] <robdubya> yeah, it would be useful
[06:01:52] *** WebDevOfDoom has joined #angularjs
[06:01:57] *** wafflej0ck has joined #angularjs
[06:02:12] *** morenoh149 has joined #angularjs
[06:02:16] *** freeAir has joined #angularjs
[06:02:35] *** Sjeeke has quit IRC
[06:02:55] *** elrabin has joined #angularjs
[06:03:09] <besson3c> robdubya: yeah, I get that.
[06:03:22] *** wafflejock has joined #angularjs
[06:03:35] <robdubya> assuming you're sure that's happening - the other possibility is that its not triggering a digest
[06:03:36] *** WebDevOfDoom has quit IRC
[06:03:41] <besson3c> robdubya: like I said, I don't have anything saving or sending data to Loopback yet, I'm still getting my ducks in a row
[06:03:41] *** fotoflo has quit IRC
[06:03:50] <besson3c> It's not happening
[06:03:53] <freeAir> thanks,wafflej0ck
[06:03:55] *** Grapes has quit IRC
[06:03:58] <besson3c> and that is no surprise
[06:04:11] <robdubya> ok, assuming that's how it would/should happen - then yes, your UI should auto update
[06:04:35] <besson3c> My (incorrect) understanding was that Angular binds to the database records themselves, rather than the API
[06:04:42] <robdubya> yep
[06:05:12] <robdubya> you can absolutely accomplish what you want - just takes a bit of planning
[06:05:45] <robdubya> iirc loopback does a socket powered kind of thing that pushes changes out
[06:06:13] <besson3c> Cool, thanks for helping to clear that up. It's kind of hard to understand how Angular is able to bind to a single record inside an ng-repeat loop, I guess that is its magic
[06:06:24] <robdubya> note that in your loop
[06:06:42] *** Valion__ has joined #angularjs
[06:06:44] *** fotoflo has joined #angularjs
[06:06:46] <robdubya> doing ng-repeat="(key, val) in stuff" -> use "val" directly
[06:06:51] <besson3c> Loopback exposes its REST endpoints to Angular, I think
[06:06:52] <robdubya> rather than stuff[key]
[06:07:05] *** mmealling has quit IRC
[06:07:35] <robdubya> the way to make it work slickly is only ever having one copy/instance of a record client-side
[06:07:47] <besson3c> will that work?
[06:08:14] *** elrabin has quit IRC
[06:08:15] *** mrmanicou has quit IRC
[06:08:24] <besson3c> I mean, I might be able to combine those, and it might make less steam come out of my ears if I can, but if I can't will it still work the way it is setup now?
[06:08:25] <robdubya> can you post the actual JSON?
[06:08:46] *** IanOlson has joined #angularjs
[06:08:53] <robdubya> easier to reason about what you're trying to do vs html (that's the real "angular way" of thinking :)
[06:09:20] <besson3c> robdubya: The JSON is two fields: userdata and schema. Userdata contains each record in a table, and schema contains info about the fields userdata is compromised of.
[06:09:38] *** fotoflo has quit IRC
[06:09:39] *** aven1 has joined #angularjs
[06:09:51] <besson3c> The JSON object I'm working with in testing is huge, but it's simple in structure
[06:10:02] *** Valion_ has quit IRC
[06:10:28] <robdubya> if you stick it in a gist i'll plunk a demo for you
[06:10:45] *** tubiz has quit IRC
[06:12:21] <robdubya> okay - so you're more or less rendering a dynamic table based on the returned schema
[06:12:56] *** elrabin has joined #angularjs
[06:13:12] *** joroc has quit IRC
[06:13:30] <besson3c> yes
[06:14:19] <robdubya> with the expectation being to at some point then edit/manipulate/save that data back / forth to loopback API
[06:14:44] <besson3c> yes sir
[06:15:14] <besson3c> It seems kind of wasteful to attach the same schema to each user record, but I suppose I could. Maybe that would be more efficient than having two loops.
[06:15:30] <besson3c> I'm not familiar with how Angular fares with inner and outer loops
[06:16:10] *** vikas has quit IRC
[06:16:53] *** muffin has quit IRC
[06:17:00] *** freeAir has quit IRC
[06:17:02] <besson3c> I have one other totally unrelated question to ask, if I may? Same app..
[06:17:45] <besson3c> I'll ask it now, maybe somebody else is paying attention....
[06:17:53] *** elrabin has quit IRC
[06:18:26] *** freeAir has joined #angularjs
[06:19:13]
<besson3c> Some of the items in my ng-repeat loop will need to load Javascript-heavy content such as CKEditor/TinyMCE, color pickers, and other visual doodads. I'm planning on using https://github.com/thenikso/angular-inview to load these dynamically when they come into view to lessen the initial page load
[06:19:34] <besson3c> Will this basically lazy load content, or just show/hide stuff, doing nothing about the initial page load?
[06:19:40] *** Oceed has quit IRC
[06:20:09] *** charuru has quit IRC
[06:21:20] <besson3c> Does Angular support queuing loading of resources/lazy loading, so that 203802398 things don't compete for initialization at the same time at load?
[06:22:51] <robdubya> (nada to do with your ng-repeat question)
[06:22:56] <robdubya> more on your first
[06:23:26] *** elrabin has joined #angularjs
[06:23:52] *** greg5green has joined #angularjs
[06:23:56] <besson3c> robdubya: what are you showing here? That foo.bar will update when the API is sent updated data?
[06:24:20] <wafflej0ck> robdubya, think you forgot to save
[06:24:24] <robdubya> ooooops
[06:24:34] *** tristanp has joined #angularjs
[06:25:05] <robdubya> tldr: maintain a cache so you only ever have one copy of a record. each time you do any CRUD operation, you always update the same instance of a rec -> the UI magically updates
[06:25:52] *** Lewix has quit IRC
[06:26:06] <besson3c> robdubya: this is showing constant polling for data changes?
[06:26:55] <besson3c> robdubya: makes sense, thanks! A cache meaning any variable attached to $scope?
[06:27:40] *** GutaFish has quit IRC
[06:28:04] *** grumpyOldRussian has quit IRC
[06:28:05] *** elrabin has quit IRC
[06:28:15] *** tsuchikazu has joined #angularjs
[06:28:39] <robdubya> the constant polling is just for effect
[06:28:40] *** elrabin has joined #angularjs
[06:28:57] <robdubya> the cache is just a k/v store (think "in memory database")
[06:29:21] *** Tyagi has joined #angularjs
[06:29:25] <robdubya> so the same way, server side, you always update the database, locally, you'd want to do the same thing
[06:29:57] <besson3c> Isn't any $scope variable the same thing as an in memory database?
[06:30:03] <Tyagi> i want to learn angular js ..from where should i start..
[06:30:09] <robdubya> you should consider scope transient
[06:30:25] <robdubya> a factory / service is a singleton and exists throughout the entire lifecycle of your app
[06:30:41] <robdubya> so when you navigate to a different controller, it doesn't disappear
[06:30:49] <besson3c> robdubya: I see... but will the view update any scope variable that the API has saved changes to?
[06:30:55] <robdubya> think "factory" == "Model"
[06:31:13] <besson3c> Yeah, I need to learn more about factories
[06:31:28] <robdubya> scope is just a scratchpad / workspace
[06:31:43] <jaawerth> really, service = model. it's just that a lot of people make their services using the ".factory" convenience function
[06:31:54] <Tyagi> no one is replying to my question
[06:32:02] <robdubya> so you fetch objects (records) via a factory ('Model') via an API ('database')
[06:32:09] *** chotchki has quit IRC
[06:32:11] *** Tyagi has quit IRC
[06:32:16] <jaawerth> Tyagi: 1) it's been 1 minute :P, 2) start with the official tutorial
[06:32:32] *** Reskp has joined #angularjs
[06:32:45] *** ycodr_ has joined #angularjs
[06:33:04] <besson3c> robdubya: so how well does Angular perform with inner and outer ng-repeat loops?
[06:33:06] *** Oceed has joined #angularjs
[06:33:07] *** elrabin has quit IRC
[06:33:14] *** KushS has joined #angularjs
[06:33:41] <robdubya> typically i would say doing dynamic columns is sort of a bad idea
[06:33:47] *** elrabin has joined #angularjs
[06:33:54] <robdubya> unless you really need them to be dynamic
[06:34:30] <besson3c> what do you mean by dynamic columns?
[06:34:35] *** ycodr__ has joined #angularjs
[06:34:53] *** ycodr has quit IRC
[06:34:59] *** ycodr__ is now known as ycodr
[06:35:01] <robdubya> you're generating the columns by ng-repeating
[06:35:05] <robdubya> vs just doing
[06:35:15] *** dsdeiz has joined #angularjs
[06:35:15] <robdubya> hold
[06:36:54] <jaawerth> dynamic columns isn't TOO bad, it's just a lot of possible dynamic contexts to keep track ofo
[06:36:58] *** Reskp has quit IRC
[06:37:01] <jaawerth> which I suppose was your point
[06:37:28] <besson3c> lookin
[06:37:37] <robdubya> yeah. unless you really need them to be dynamically controlled, it makes it harder to reason about
[06:37:48] *** KushS has quit IRC
[06:37:54] *** ycodr_ has quit IRC
[06:38:14] *** Menorah has quit IRC
[06:38:17] *** elrabin has quit IRC
[06:38:24] <besson3c> what's the difference here, other than the second one being in a table?
[06:38:27] <besson3c> HTML table?
[06:38:31] *** ubbrev has left #angularjs
[06:38:42] <robdubya> sigh :)
[06:38:47] *** nickgs has quit IRC
[06:39:10] <robdubya> thats just repeating over the records
[06:39:29] <jaawerth> so in my recent bout of wasting time thinking about optimizations, I've realized isolate scope in directives actually create one moroe watcher than you actually need
[06:39:39] *** joroc has joined #angularjs
[06:39:48] <jaawerth> compared to just reading attrs as strings and using scope.$parent to access them
[06:39:57] <robdubya> vs generating the columns by ng-repating
[06:39:57] <jaawerth> so I've been considering adding this as an optimization step in my dev process
[06:40:17] *** rileylark has quit IRC
[06:40:39] <besson3c> robdubya: sorry, I don't get it
[06:41:07] <robdubya> besson3c your first code showed an inner and an outer ng-repeat, correct?
[06:41:13] <besson3c> yes
[06:41:19] <jaawerth> besson3c: he's saying it's better to specify each column manually and ng-repeat from there rather than ng-repeating the columns that ng-repeat the rows, unless you actually need the columns to be dynamic
[06:41:29] <robdubya> what he said
[06:41:35] <jaawerth> besson3c: because it makes the context easier to track, and ultimately the code easier to debug
[06:41:45] <jaawerth> and/or maintain
[06:41:54] *** mzabriskie has joined #angularjs
[06:41:57] *** aven1 has quit IRC
[06:42:00] <besson3c> by columns you mean table cells?
[06:42:26] <jaawerth> columns
[06:42:30] <jaawerth> you know, the vertical stuff
[06:42:47] <robdubya> the opposite of rows
[06:42:48] <jaawerth> the things that are perpendicular to rows
[06:43:45] <robdubya> right
[06:43:49] <robdubya> the 2nd example vs your code
[06:43:53] *** elrabin has joined #angularjs
[06:43:54] <besson3c> I see, okay
[06:43:56] <robdubya> the fact its in a table is moot
[06:43:58] <besson3c> Sorry
[06:44:00] <robdubya> s'ok
[06:44:30] <robdubya> we're saying {{record.last_updated}} is typically preferable to {{ record[columnName] }}
[06:44:49] <besson3c> Ahhh...
[06:44:59] <jaawerth> by dint of it having less moving parts that could blow up
[06:45:09] <besson3c> So, maybe TL;DR: I should probably combine the loops into a single loop
[06:45:14] <jaawerth> which isn't to say the other way should never be done, just.. yeah, best not to complicate it unless you have to
[06:45:30] <robdubya> so it just depends if you're building
[06:45:32] *** evotuned has joined #angularjs
[06:45:38] <robdubya> a screen to look at products
[06:45:48] <robdubya> or a screen that's looking at any possible generic set of data
[06:45:59] <jaawerth> like, if you're building a configurable dashboard, yeah, that's gonna have to be all dynamic
[06:46:30] <jaawerth> but angular's all about data-driven. the more you know about the data being displayed on a specific view, the more you can hardcode
[06:47:04] <besson3c> My app is super dynamic
[06:47:05] <jaawerth> which might cost more work upfront but saves you work later when you're trying to make sure it's bulletproof
[06:47:41] <besson3c> but I can work with a single loop by attaching the schema to my userdata data object so that I only need one ng-repeat loop
[06:47:59] <robdubya> then (to answer your original question) you'd probably need to double ng-repeat, which is functionally fine but is performance expensive
[06:48:14] *** Fishy has joined #angularjs
[06:48:29] <jaawerth> honestly it shouldn't be too bad if the columns are mostly static
[06:48:29] *** elrabin has quit IRC
[06:48:34] <besson3c> Actually, I can't do what I just said... I do need the double loop.
[06:48:38] <robdubya> right
[06:48:41] <robdubya> which works fine
[06:48:47] <robdubya> but can be expensive :)
[06:48:51] <besson3c> Okay
[06:48:51] <jaawerth> you're likely to only have a few columns, so that's only a few extra listeners
[06:49:03] <robdubya> and you can use bind once syntax for the columns
[06:49:06] <jaawerth> and I doubt they'll change much - could probably get away with doing bindOnce in most cases
[06:49:09] <jaawerth> haha
[06:49:13] <jaawerth> beat me by 3 seconds
[06:49:14] *** cesarkawakami has quit IRC
[06:49:32] <besson3c> what is bind once about?
[06:50:17] *** evotuned has quit IRC
[06:50:40] *** MistahKurtz has quit IRC
[06:51:02] *** Z3R0 has joined #angularjs
[06:51:29] <besson3c> While I'm privileged enough to have your attention, did you get my (final) question about the inview/lazy loading module? If you haven't used it, care to take an educated guess as to how it would work?
[06:51:58] <besson3c> as far as whether the initial page load is lessened by the extra content not being loaded, as opposed to loaded but just hidden?
[06:52:01] *** zeezey has quit IRC
[06:52:28] *** Fishy has quit IRC
[06:53:18] *** elrabin has joined #angularjs
[06:53:54] *** sheplu has joined #angularjs
[06:54:04] *** jae has joined #angularjs
[06:54:44] <jaawerth> yeah, the second one
[06:54:55] *** earthquake has quit IRC
[06:55:25] *** SargoDarya has joined #angularjs
[06:55:34] *** jae has left #angularjs
[06:55:48] <jaawerth> angular 1.3.x basically lets you do use watchers that unregister themselves, so any angular expression that refers to something preceded by :: will stop updating after it gets a stable value, which boosts performance in situations where you don't need the data-binding to be persistent
[06:56:26] *** Sgeo has quit IRC
[06:56:28] <besson3c> Thanks robdubya, that is helpful!
[06:56:40] *** Sgeo has joined #angularjs
[06:57:00] <besson3c> jaawerth: great explanation!
[06:57:24] *** cacts|wtf has quit IRC
[06:57:50] *** cacts|wtf has joined #angularjs
[06:57:51] <besson3c> I think once I've mastered Loopback and Angular it will be hard to go back to full stack sort of tech stacks like Rails or a PHP framework
[06:58:25] <besson3c> I'm buying into the virtues of these concepts!
[06:58:37] *** soee has quit IRC
[06:58:49] *** KushS has joined #angularjs
[06:59:16] <jaawerth> yeah, I'm all about SOA these days, decoupling the front end from the back
[06:59:43] *** narutimateum has quit IRC
[06:59:58] *** SargoDarya has quit IRC
[07:00:01] *** narutimateum has joined #angularjs
[07:00:40] *** SergioFilhow has joined #angularjs
[07:00:53] <jaawerth> well, with dune gateway node proxy type things here and there
[07:00:57] *** sheplu has quit IRC
[07:01:03] *** JoshGlzBrk has quit IRC
[07:01:11] <jaawerth> some gateway*
[07:03:01] *** fotoflo has joined #angularjs
[07:03:29] <besson3c> Do you guys use Loopback or have any opinions about it
[07:03:31] <besson3c> ?
[07:03:36] *** elrabin has quit IRC
[07:03:47] *** KushS has quit IRC
[07:04:22] *** Mage_Dude has joined #angularjs
[07:04:55] *** Mage_Dude is now known as Mage
[07:05:01] *** {DV8} has quit IRC
[07:05:12] *** Mage is now known as Mage__
[07:05:26] *** Mage__ is now known as Majick
[07:05:32] <jaawerth> I've never touched it, so no opinion. seems neat, I guess
[07:07:56] <besson3c> what do you use on your backend?
[07:08:33] *** elrabin has joined #angularjs
[07:09:00] <jaawerth> it's pretty situational. a lot of what I do at work involves interfacing with existing stuff, so lately it's been a lot of node and/or nginx for dispatching
[07:09:29] *** earthquake has joined #angularjs
[07:09:39] *** cantyjeffrey has quit IRC
[07:09:49] <jaawerth> mostly for the streams and ability to quickly spin up a backend with minimal code
[07:10:06] <jaawerth> plus it's pretty performant for that kind of thing, if the processing is offloaded to other stuff
[07:10:45] <robdubya> loopback is cool. its a lot like sails
[07:11:06] <robdubya> it "appears" more enterprisey but i've not had too much experuence w/ how true that is
[07:14:45] *** MistahKurtz has joined #angularjs
[07:14:59] *** fotoflo has quit IRC
[07:15:20] *** JoshGlzBrk has joined #angularjs
[07:15:57] *** TripTastic has quit IRC
[07:17:10] *** mary5030 has joined #angularjs
[07:17:24] *** KushS has joined #angularjs
[07:17:25] *** theotherguy has quit IRC
[07:18:31] *** elrabin has quit IRC
[07:18:31] *** bzitzow has quit IRC
[07:21:37] *** KushS has quit IRC
[07:23:05] *** b1rkh0ff has joined #angularjs
[07:23:07] *** elrabin has joined #angularjs
[07:24:02] *** nycdevgirl has joined #angularjs
[07:25:13] *** windsurf_ has joined #angularjs
[07:27:39] <windsurf_> i retrieve objects with $resource but my date field isn’t preserving the Date type, it’s changing the value to string
[07:27:49] <windsurf_> should I be looking into interceptor ?
[07:27:53] *** elrabin has quit IRC
[07:28:05] <windsurf_> i know on the node.js side it’s a Date for sure
[07:28:55] *** elrabin has joined #angularjs
[07:32:05] *** zeezey has joined #angularjs
[07:32:33] *** theotherguy has joined #angularjs
[07:32:51] *** nemothekid has quit IRC
[07:33:15] *** elrabin has quit IRC
[07:33:23] *** Reskp has joined #angularjs
[07:33:24] *** cjustiniano has joined #angularjs
[07:33:25] *** nemothekid has joined #angularjs
[07:34:34] *** threesixes has left #angularjs
[07:34:45] *** KushS has joined #angularjs
[07:35:14] *** mary5030 has quit IRC
[07:35:48] *** mary5030 has joined #angularjs
[07:36:07] *** jamto11 has quit IRC
[07:36:41] *** ycodr_ has joined #angularjs
[07:36:50] <Majick> How do I set a $scope list to a $scope function? If I have $scope.teams... can I set that to $scope.getTeams() and have that list show up?
[07:37:23] *** Reskp has quit IRC
[07:37:51] *** earthquake has quit IRC
[07:38:10] *** zz_night-owl is now known as night-owl
[07:38:21] *** cjustiniano has quit IRC
[07:38:44] *** fotoflo has joined #angularjs
[07:39:04] *** elrabin has joined #angularjs
[07:39:29] *** KushS has quit IRC
[07:39:53] *** ycodr has quit IRC
[07:40:04] *** IanOlson has quit IRC
[07:40:05] *** ycodr_ is now known as ycodr
[07:40:08] *** mary5030 has quit IRC
[07:42:04] *** rtpg has joined #angularjs
[07:42:53] *** MattWelch has quit IRC
[07:43:27] *** elrabin has quit IRC
[07:43:29] <windsurf_> Majick: you’ve got an array somewhere and you want a getter function for it?
[07:44:57] *** GutaFish has joined #angularjs
[07:44:57] <Majick> windsurf_: That sounds right. I have the POST working fine, now I just need to get the list of data from the data source instead of a static list.
[07:45:29] <windsurf_> what data source? a restful service?
[07:45:33] *** MattWelch has joined #angularjs
[07:45:34] <Majick> Correct
[07:45:48] <windsurf_> is it returned from the post?
[07:46:01] *** JBreit has joined #angularjs
[07:46:28] *** Sjeeke has joined #angularjs
[07:46:34] *** evotuned has joined #angularjs
[07:47:39] <Majick> windsurf_: Handling the POST response is working. But I don't have the initial model array populated from the data source. I was hoping to just add a similar $scope.getTeams function...but I'm not sure how to tell ng to use that data source
[07:47:45] *** Cronoh has joined #angularjs
[07:48:09] <windsurf_> Majick: i’ve only used ngResource
[07:48:21] <windsurf_> with that, I can do $scope.events = EventResource.query()
[07:48:24] <Majick> $scope.teams = $http.get(...) won't work
[07:48:24] <wafflej0ck> cool that baum nested set model thing is working well
[07:48:55] *** nycdevgirl has quit IRC
[07:48:57] <windsurf_> Majick: why won’t $http.get work?
[07:49:01] *** Fishy has joined #angularjs
[07:49:15] <windsurf_> explain that a bit more
[07:49:46] <Majick> windsurf_: Errors out. Let me pastie the error real fast with the code
[07:50:07] *** nycdevgirl has joined #angularjs
[07:51:03] <windsurf_> Majick: have you tried setting the data on your scope that your receive in the ‘get’ method’s success handler?
[07:51:09] *** nycdevgirl has quit IRC
[07:51:24] <windsurf_> in that success block you’d do $scope.data = data
[07:51:30] *** Sjeeke has quit IRC
[07:51:55] *** freeAir has quit IRC
[07:52:00] *** evotuned has quit IRC
[07:52:24] <wafflej0ck> Majick, yeah the $http.get returns a promise when that resolves it triggers the success (or error) function and passes along the data as a parameter
[07:52:47] <wafflej0ck> Majick, you can do the same with $resource too check out the $promise from the $resource to do effectively the same stuff
[07:53:13] <Majick> That makes sense. But I don't see how the getTeams function is ever called. Ok I'll look in that direction for a minute and see what I can find. If I flounder I'll be back. Glad to know there's helpful people here.
[07:53:14] <wafflej0ck> Majick, you can also store the data in the service object and just reference it through there by injecting the service into your controller
[07:54:00] *** Fishy has quit IRC
[07:54:02] <windsurf_> Majick: you’d do $scope.teams = data in that example
[07:54:06] <windsurf_> it’s bound to your UI.
[07:54:09] <Majick> wafflej0ck: Haven't get into services yet. I'm sure that will be the first refactor.
[07:54:10] <windsurf_> no need to make a call to getTeams()
[07:54:37] <windsurf_> if you’re using ngRepeat it’ll just update automatically
[07:56:21] *** robdubya has quit IRC
[07:57:01] *** SargoDarya has joined #angularjs
[07:57:49] *** tschundeee has joined #angularjs
[07:58:28] <wafflej0ck> Majick, yeah when first learning usually everyone does stuff in controllers (self included) but eventually good to just do your API calls in services or factories, both can be injected into controllers by the dependency injection and are singletons so they are instantiated once and live for the life of the app
[07:59:09] *** elrabin has joined #angularjs
[07:59:40] <Majick> wafflej0ck: Coming from a similar backend environment. Can design a backend to do whatever I want, now just need to learn how to bend the frontend to my will. :)
[08:00:49] *** ycodr_ has joined #angularjs
[08:00:56] *** BahamutWC|Laptop has quit IRC
[08:01:12] *** JoshGlzBrk has quit IRC
[08:01:46] *** Shrooms has quit IRC
[08:01:53] *** ycodr has quit IRC
[08:01:59] *** ycodr_ is now known as ycodr
[08:02:41] *** BahamutWC|Laptop has joined #angularjs
[08:03:46] <wafflej0ck> okay back to cracking on this CMS functionality happy the Baum thing was pretty much just a drop in solution now just gotta build the UI and supporting API calls
[08:04:08] *** splickz_ has joined #angularjs
[08:04:40] *** zbzzn has joined #angularjs
[08:05:23] *** MattWelch has quit IRC
[08:05:43] *** KushS has joined #angularjs
[08:06:57] <windsurf_> wafflej0ck: do you know if I can have an interceptor on just one resource?
[08:07:28] *** MattWelch has joined #angularjs
[08:08:54] *** lemur has quit IRC
[08:09:06]
<wafflej0ck> windsurf_, dunno about that but if you wrap it up in a service/factory then you can deal with modifying the data in there when you retrieve it or send it out... this post (not mine) has a nice solution with beforeSave and afterLoad functions https://gist.github.com/jelbourn/6276338
[08:09:23] <windsurf_> thanks
[08:09:35] *** lemur has joined #angularjs
[08:09:52] *** slopjong has joined #angularjs
[08:09:57] *** cjustiniano has joined #angularjs
[08:10:10] *** KushS has quit IRC
[08:11:44] <wafflej0ck> np
[08:11:45] *** fotoflo has quit IRC
[08:12:21] *** JesseH has quit IRC
[08:12:22] *** splickz_ has quit IRC
[08:13:06] *** dsdeiz has quit IRC
[08:13:16] *** cotko has quit IRC
[08:13:49] *** lemur has quit IRC
[08:15:21] *** mkc has joined #angularjs
[08:15:41] *** alpha080 has quit IRC
[08:16:59] *** windsurf_ has quit IRC
[08:17:24] *** Menorah has joined #angularjs
[08:18:27] *** alpha080 has joined #angularjs
[08:18:35] *** elrabin has quit IRC
[08:18:35] *** SargoDarya has quit IRC
[08:21:03] <wafflej0ck> oh right... forgot about transformRequest and transformResponse, could just use those too... ah well
[08:23:37] *** besson3c has quit IRC
[08:23:40] *** fotoflo has joined #angularjs
[08:24:54] *** splickz has joined #angularjs
[08:26:42] *** doginal has joined #angularjs
[08:26:56] *** tsuchikazu has quit IRC
[08:27:22] *** Aliks has joined #angularjs
[08:27:30] *** tsuchikazu has joined #angularjs
[08:28:22] *** rajatarora has joined #angularjs
[08:30:22] *** nickgs has joined #angularjs
[08:31:55] *** tsuchikazu has quit IRC
[08:34:01] *** Reskp has joined #angularjs
[08:35:00] *** nickgs has quit IRC
[08:35:03] *** sbellina has joined #angularjs
[08:36:15] *** cjustiniano has quit IRC
[08:36:58] *** jamto11 has joined #angularjs
[08:37:24] <Majick> Shouldn't a <select> element with ng-model be bound correctly by default? Docs say ng-options is optional but the value never shows up in $scope
[08:38:38] *** tschundeee has quit IRC
[08:38:46] *** elrabin has joined #angularjs
[08:38:52] *** Reskp has quit IRC
[08:38:52] *** alpha080 has quit IRC
[08:38:52] <Majick> Or do the options have to exist on initalization? No options are in the select until after page load.
[08:39:37] *** sbellina has quit IRC
[08:39:44] *** aven1 has joined #angularjs
[08:40:20] *** Sky[x] has joined #angularjs
[08:40:36] *** eburcat has joined #angularjs
[08:41:20] *** cjustiniano has joined #angularjs
[08:42:14] *** jamto11 has quit IRC
[08:42:24] *** IvailoStoianov has joined #angularjs
[08:43:06] *** joroc has quit IRC
[08:44:27] <Majick> Yup. Changing it to a normal input is fine, but a select is not allowed.
[08:44:32] *** Sadin has quit IRC
[08:45:02] *** dadodju has joined #angularjs
[08:45:14] *** leolrrj has joined #angularjs
[08:45:45] *** dadodju has quit IRC
[08:45:52] *** cjustiniano has quit IRC
[08:46:25] <wafflej0ck> Majick, make sure you use the "select as label for thing in things" and ng-model corresponds to the select value and it should work, ng-options requires ng-model
[08:47:00] <wafflej0ck> should be something like thing.id as thing.label for thing in things, really, where ng-model corresponds to a thing.id
[08:47:35] *** evotuned has joined #angularjs
[08:47:47] *** KushS has joined #angularjs
[08:47:57] <Majick> So it's all or nothing? That hurts. You can't step into Angular. Since this model is connected to another (hence the select) I have to inject the previous model into this controller to get access to it?
[08:48:34] *** splickz has quit IRC
[08:48:37] *** elrabin has quit IRC
[08:49:04] <Majick> In this case setting a player to a team when creating the player I have just added the options to the select outside of ng. But in doing so ng ignores that select?
[08:49:47] *** Fishy has joined #angularjs
[08:50:25] <wafflej0ck> sorry not sure I follow but data that needs to be re-used should just be stored in an angular provider of some sort see "angular providers" for details on .value .factory .service etc.
[08:52:12] *** KushS has quit IRC
[08:52:26] <Majick> I'll try and rephrase. In order to use a select box and have angular use it as part of the model, it must only be from another Angular provider. Using a standard select box, and filling it in either manually or via an ajax request, angular will not use that field in a form for the $scope?
[08:52:35] *** evotuned has quit IRC
[08:54:30] *** D9 has joined #angularjs
[08:54:31] *** Fishy has quit IRC
[08:54:40] *** Z3R0 has quit IRC
[08:54:52] *** MattWelch has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:56:34] <aven1> hey, i have a question about ui-router and slide between states, i want to have a state with 2-3 states as tabs and i want to be able to slide between the states, is that possible without delays?
[08:56:34] <wafflej0ck> I believe it actually will still work doing it yourself but you have to use ng-value instead of value for the options
[08:56:51] <wafflej0ck> Majick, if you fetch them via AJAX request that's fine too
[08:57:34] <wafflej0ck> Majick, there is some finickness with the selected value needing to match the model and using or not using track by in the expression for ng-options but you can make it work in pretty much every scenario
[09:01:13] *** MattWelch has joined #angularjs
[09:01:13] *** KushS has joined #angularjs
[09:02:45] <Majick> wafflej0ck: I'm just needing the simplest of cases, use the option value selected, not the text. Do I use ng-value or ng-option?
[09:02:48] <wafflej0ck> aven1, yeah should be doable lookup ui-router and animation you should find an example where you'll see the new state/view gets added as the original state gets removed, nailing down the CSS to make it work can be tricky though
[09:03:02] *** knapko has quit IRC
[09:03:14] <wafflej0ck> Majick, you should be using ng-option unless you need to manually specify options inline
[09:04:31] <aven1> my problem is each state got a template url, would it take time to load it before the animation start?
[09:05:06] <wafflej0ck> aven1, you can preload the template stuff using html2js to stuff it into a JS file you load ahead of time
[09:05:10] *** pehlert has joined #angularjs
[09:05:26] *** macobo has joined #angularjs
[09:05:42] *** KushS has quit IRC
[09:06:02] *** kotow has joined #angularjs
[09:06:08] <wafflej0ck> aven1, it'll use $templateCache to setup all the templates in memory
[09:06:35] <wafflej0ck> aven1, then you just need to deal with preloading any of your images if that's a concern, but that's been done since the 90s in JS when I first started :)
[09:06:59] <wafflej0ck> think that was probably the first JS I actually learned
[09:07:04] <wafflej0ck> how to preload images
[09:07:20] <aven1> i think images will be ok, thanks
[09:08:49] *** elrabin has joined #angularjs
[09:08:50] *** pspfolio has quit IRC
[09:09:44] *** joroc has joined #angularjs
[09:10:55] *** pspfolio has joined #angularjs
[09:11:35] *** alpha080 has joined #angularjs
[09:12:24] *** joroc has quit IRC
[09:12:34] *** joroc has joined #angularjs
[09:12:49] *** aven2 has joined #angularjs
[09:12:54] <Majick> Last question and I'm toast. <select ng-model="playerTeam" ng-option="$scope.playerTeam"> I just want the select value bound to $scope.playerTeam, there is no "team in teams" available to iterate over.
[09:13:15] <aven2> wafflej0ck i'm not sure where or how do i specify all the html urls
[09:13:53] *** aven1 has quit IRC
[09:15:37] <wafflej0ck> this is for my components though I don't do it in main apps really just use html2js so I can just load the js file and not need to worry about relative html paths for directives loaded with bower
[09:15:49] *** SargoDarya has joined #angularjs
[09:16:20] <aven2> so i can just add urls to the array?
[09:16:27] <wafflej0ck> Majick, so ng-options must be defined as some thing in things where things is an array is playerTeam an array if not it doesn't make sense, also don't need $scope in the view that part is assumed based on the controller used for that part of the view
[09:16:55] <wafflej0ck> aven2, yeah I just have it globbing ** for all files with tpl.html at the end of the file
[09:17:06] <aven2> yea got it
[09:17:10] <aven2> i'll give it a try
[09:17:15] <aven2> thanks
[09:17:18] <Majick> So do I have to pull all the options in the element into an array before I can do anything with it?
[09:17:23] <wafflej0ck> aven2, yup np
[09:17:36] <Majick> Or do I just need to figure out how to bring the teams model into this controller?
[09:17:53] <wafflej0ck> Majick, yeah it needs to have an array to iterate over
[09:18:05] *** elrabin has quit IRC
[09:18:26] <wafflej0ck> how that array gets into the controller it doesn't really care but it does need an array of elements to iterate over (or possibly an object with properties to iterate over but typically I use an array)
[09:18:47] *** elrabin has joined #angularjs
[09:19:06] <wafflej0ck> Majick, if you put some of your code into the plunkr and fork it to save a new URL and share here I can take a look but impossible to say what's going on with bits and pieces in chat really
[09:19:37] *** alpha080 has quit IRC
[09:20:22] *** one_zero has quit IRC
[09:20:37] *** Sky[x] has quit IRC
[09:21:04] *** pHcF has quit IRC
[09:21:26] <Majick> wafflej0ck: I just need some rest. Zero to having at least a few functional parts in a day is a good start. More reading to come...and a few years of learning to go. Thanks for your help
[09:21:26] *** alpha080 has joined #angularjs
[09:21:48] <wafflej0ck> Majick, no problem need to get some rest here soon too I think
[09:22:15] *** asheshambasta has joined #angularjs
[09:22:32] *** j_wright has quit IRC
[09:23:01] *** elrabin has quit IRC
[09:24:00] *** elrabin has joined #angularjs
[09:24:22] *** MattWelch has quit IRC
[09:27:27] *** jae has joined #angularjs
[09:28:17] *** elrabin has quit IRC
[09:30:11] *** mzabriskie has quit IRC
[09:30:42] *** MattWelch has joined #angularjs
[09:31:29] *** MistahKurtz has quit IRC
[09:34:17] *** elrabin has joined #angularjs
[09:34:58] *** Reskp has joined #angularjs
[09:35:19] *** Sjeeke has joined #angularjs
[09:36:04] *** SargoDarya has quit IRC
[09:36:20] *** windsurf_ has joined #angularjs
[09:37:19] <windsurf_> I have an ngRepeater and i’m ordering event items by date. At a certain point in the list it’ll start to show expired events. I want to conditionally put an element above the FIRST expired event. How would I do this?
[09:37:59] <windsurf_> it’s like I need an ng-if and only run that ng-if until its expression has been true once and then never run it again
[09:38:57] *** matheusrocha89 has quit IRC
[09:39:21] *** Reskp has quit IRC
[09:39:52] *** Sjeeke has quit IRC
[09:40:00] *** joroc has joined #angularjs
[09:40:39] *** aven2 has quit IRC
[09:40:46] *** theotherguy has quit IRC
[09:43:28] *** MattWelch has quit IRC
[09:44:21] *** windsurf_ has quit IRC
[09:44:30] <wafflej0ck> windsurf_, typically I would just use a $filter to split up the list and have two ng-repeats
[09:45:49] <wafflej0ck> or depending on what you're doing could attach a class using ng-class to all the expired ones and do some fancy nth-child type stuff in CSS probably
[09:48:41] *** elrabin has quit IRC
[09:49:24] *** MLMitch has quit IRC
[09:50:22] *** MattWelch has joined #angularjs
[09:50:34] *** Fishy has joined #angularjs
[09:51:14] *** pehlert has quit IRC
[09:51:18] *** asheshambasta has quit IRC
[09:51:51] *** MLMitch has joined #angularjs
[09:53:31] *** elrabin has joined #angularjs
[09:53:32] *** Oceed has quit IRC
[09:54:39] *** eago_ has quit IRC
[09:55:08] <ocx_> hi
[09:55:24] *** kapil__ has joined #angularjs
[09:55:24] *** doginal has quit IRC
[09:55:30] *** Fishy has quit IRC
[09:57:37] *** elrabin has quit IRC
[09:58:56] *** elrabin has joined #angularjs
[10:01:52] <ocx_> what does this do exactly? newUsdToForeignRates[currency] = window.parseFloat(rate.Rate);
[10:03:25] *** elrabin has quit IRC
[10:03:57] *** MattWelch has quit IRC
[10:06:24] *** Menorah has quit IRC
[10:06:46] *** freeAir has joined #angularjs
[10:06:52] *** chiburbs has joined #angularjs
[10:07:35] *** jamto11 has joined #angularjs
[10:08:48] *** theotherguy has joined #angularjs
[10:09:19] *** elrabin has joined #angularjs
[10:09:40] *** aven2 has joined #angularjs
[10:10:02] *** MattWelch has joined #angularjs
[10:10:23] *** Sky[x] has joined #angularjs
[10:11:55] *** joroc has quit IRC
[10:11:56] *** jamto11 has quit IRC
[10:13:37] *** elrabin has quit IRC
[10:14:34] *** wiherek has joined #angularjs
[10:16:14] *** Menorah has joined #angularjs
[10:17:00] *** wiherek has quit IRC
[10:17:55] <wafflej0ck> stores the result of window.parseFloat of rate.Rate in a newUsdToForeignRates object using the currency as the property, in JS you can reference properties with . syntax or [] syntax
[10:18:09] <wafflej0ck> ocx_, myobj[prop] === myobj.prop
[10:18:52] *** elrabin has joined #angularjs
[10:19:17] <wafflej0ck> so newUsdToForeignRates["Bitcoin"] = 400.0 might be something in that object where currency="Bitcoin" could also be referenced like newUsdToForeignRates.Bitcoin, but that way doesn't work for strings as the parameter name
[10:19:39] <wafflej0ck> sorry myobj["prop"] two lines above
[10:20:13] <wafflej0ck> k sleepy time, ttyal
[10:21:22] *** sbellina has joined #angularjs
[10:22:04] *** callmekatootie has joined #angularjs
[10:23:12] *** elrabin has quit IRC
[10:24:14] *** elrabin has joined #angularjs
[10:24:28] *** pehlert has joined #angularjs
[10:27:23] *** RedOrangeZ has joined #angularjs
[10:28:24] <ocx_> wafflej0ck: window.parseFloat(rate.Rate); what does this do
[10:28:50] <wafflej0ck> parseFloat just takes a string and returns a number with a decimal
[10:28:55] *** elrabin has quit IRC
[10:29:06] <wafflej0ck> parseFloat("4.4") returns 4.4
[10:29:07] *** pehlert has quit IRC
[10:30:20] *** rhp has quit IRC
[10:31:00] *** sbellina has quit IRC
[10:31:10] *** jacuqesdancona has joined #angularjs
[10:31:19] *** sshaginyan has quit IRC
[10:31:56] *** ron_frown has quit IRC
[10:33:01] *** MattWelch has quit IRC
[10:33:05] *** brwr has quit IRC
[10:33:24] *** SargoDarya has joined #angularjs
[10:35:32] <aven2> can a module have two config sections?
[10:35:36] *** Reskp has joined #angularjs
[10:36:31] <wafflej0ck> yup
[10:36:34] *** Grokling_ has joined #angularjs
[10:36:53] <wafflej0ck> believe run in the order they're defined but pretty sure you can have multiple config or run blocks without issue
[10:36:56] *** nemothekid has quit IRC
[10:37:23] *** frem has quit IRC
[10:37:40] <aven2> so can i have in one file angular.module('app',[...]).config(function(){}); and in another file angular.module('app').config(...
[10:37:44] *** SargoDarya has quit IRC
[10:38:17] *** tristanp has quit IRC
[10:38:43] <wafflej0ck> aven2, yup pretty sure I did this recently so I could give my statesConfig it's own file but do other config in the main module (html5mode etc.)
[10:39:02] *** elrabin has joined #angularjs
[10:39:05] <aven2> yea i want to seperate my routes my init code
[10:39:10] <aven2> from my*
[10:39:17] *** mkc has quit IRC
[10:39:32] *** MattWelch has joined #angularjs
[10:39:34] <aven2> but for some reason i have problem injecting providers
[10:40:03] *** Reskp_ has joined #angularjs
[10:40:27] *** Reskp has quit IRC
[10:41:22] <wafflej0ck> hmm sure you don't have the [] in the second definition also sure the one with the [] dependencies is loaded up first?
[10:42:11] *** freeAir has quit IRC
[10:42:37] *** Reskp_ has quit IRC
[10:42:47] *** freeAir has joined #angularjs
[10:42:53] <aven2> yea
[10:43:05] *** alpha080 has quit IRC
[10:43:39] *** elrabin has quit IRC
[10:43:52] *** tarnus has joined #angularjs
[10:44:09] <wafflej0ck> aven2, yeah just double checked I'm definitely doing this
[10:44:15] *** fotoflo has quit IRC
[10:44:25] *** elrabin has joined #angularjs
[10:44:40] <wafflej0ck> aven2, only recently split it up in my own projects but saw some other project where someone had different chunks of route config separated out even
[10:46:08] <wafflej0ck> but for reals I gotta knock out so I can start getting back to a more regular schedule, been on the night shift lately :P
[10:46:14] *** Reskp has joined #angularjs
[10:46:36] <wafflej0ck> time for Netflix and spacing out
[10:46:40] *** evilaliv3 has joined #angularjs
[10:47:05] *** freeAir has quit IRC
[10:47:11] <aven2> oops found the problem :)
[10:47:26] <aven2> . instead of ;
[10:47:53] <wafflej0ck> ah cool
[10:48:28] *** Sky[x] has quit IRC
[10:48:31] *** nocturne777 has quit IRC
[10:48:43] *** elrabin has quit IRC
[10:48:43] *** tarnus has quit IRC
[10:49:18] *** evotuned has joined #angularjs
[10:49:52] *** wiherek has joined #angularjs
[10:50:22] *** Reskp_ has joined #angularjs
[10:50:27] *** rtpg_ has joined #angularjs
[10:51:13] *** Reskp has quit IRC
[10:51:17] *** Fishy has joined #angularjs
[10:51:46] *** fotoflo has joined #angularjs
[10:52:09] *** Oceed has joined #angularjs
[10:53:26] *** asheshambasta has joined #angularjs
[10:53:27] *** elrabin has joined #angularjs
[10:53:32] *** rtpg has quit IRC
[10:53:45] *** IvailoStoianov has quit IRC
[10:53:59] *** evotuned has quit IRC
[10:55:53] *** Fishy has quit IRC
[10:56:51] *** macobo has quit IRC
[10:57:01] *** macobo has joined #angularjs
[10:58:20] *** StryKaizer has joined #angularjs
[10:58:23] *** elrabin has quit IRC
[10:58:32] <ocx_> wafflej0ck: so window.parseFloat takes what is in the browser window and parse it to a float?
[10:59:08] *** IvailoStoianov has joined #angularjs
[10:59:39] *** wiherek has left #angularjs
[11:00:56] *** mrkrettan has quit IRC
[11:01:41] *** sshaginyan has joined #angularjs
[11:03:01] *** sshaginyan has quit IRC
[11:04:02] *** elrabin has joined #angularjs
[11:04:03] <wafflej0ck> ocx_, !lucky parseFloat
[11:04:17] *** Nivag_ has quit IRC
[11:05:41] *** sshaginyan has joined #angularjs
[11:05:50] *** startupality has joined #angularjs
[11:06:23] *** RossJH has joined #angularjs
[11:07:08] *** whitebook has joined #angularjs
[11:07:18] *** fotoflo has quit IRC
[11:07:29] *** davek has quit IRC
[11:07:44] *** cacts|wtf has quit IRC
[11:08:17] *** jamto11 has joined #angularjs
[11:10:22] *** D9 has quit IRC
[11:11:00] *** MattWelch has quit IRC
[11:11:51] <ocx_> wafflej0ck: but window. is what is in the browser url?
[11:12:07] *** aminRX has joined #angularjs
[11:12:28] <ocx_> angular.forEach(data.query.results.rate, function(rate) { var currency = rate.id.substring(3,6); newUsdToForeignRates[currency] = window.parseFloat(rate.Rate); <--- wanna understand this
[11:12:40] *** asheshambasta has quit IRC
[11:12:53] *** jamto11 has quit IRC
[11:12:58] *** Dido has joined #angularjs
[11:12:59] *** jumpstracks has joined #angularjs
[11:13:07] *** elrabin has quit IRC
[11:14:03] *** elrabin has joined #angularjs
[11:14:36] *** fotoflo has joined #angularjs
[11:14:44] *** avree has joined #angularjs
[11:14:47] *** MattWelch has joined #angularjs
[11:15:43] *** whitebook has quit IRC
[11:16:39] *** startupality has quit IRC
[11:17:45] *** night-owl is now known as zz_night-owl
[11:18:09] *** pehlert has joined #angularjs
[11:18:22] *** fotoflo has quit IRC
[11:18:26] <wafflej0ck> ocx_, you don't really need window. it's assumed in JS
[11:18:40] *** az7ar_away has quit IRC
[11:19:09] <ocx_> so what does this window.parseFloat do wafflej0ck
[11:19:18] <wafflej0ck> ocx_, when you do alert() or document it's just assuming you mean window.alert or window.document so it's the same as parseFloat()
[11:19:31] <wafflej0ck> ocx_, window has nothing to do with it really
[11:19:42] <wafflej0ck> it's just taking Rate.rate which is a string and turning it into a number
[11:19:47] *** avree has quit IRC
[11:19:55] <ocx_> thats the last example
[11:19:58] <ocx_> finance3
[11:20:03] *** StryKaizer has quit IRC
[11:20:42] *** jumpstracks has quit IRC
[11:22:07] <wafflej0ck> ocx_, yeah so it's querying the yahoo finance API for data, it gets returned in an array of data.query.results.rate, for each rate it calls that function rate.Rate is a string that contains the rate like "1.2", parseFloat("1.2")=1.2; //notice change from string to number
[11:22:24] *** numenor has joined #angularjs
[11:22:44] *** chiburbs has quit IRC
[11:22:48] *** ries has joined #angularjs
[11:23:05] <wafflej0ck> it's doing the conversion to a number so it can be used in the calculation of the amount
[11:23:10] *** Left_Turn has joined #angularjs
[11:23:12] <wafflej0ck> if it's a string it can't be used in mathematical operations
[11:23:14] *** elrabin has quit IRC
[11:23:17] <wafflej0ck> parseFloat turns it into a number
[11:23:31] <ocx_> so window.parseFloat is like a static function
[11:23:32] <wafflej0ck> but window. is superfluous
[11:23:35] <wafflej0ck> yeah
[11:23:42] <wafflej0ck> parseFloat is a global function
[11:23:44] <wafflej0ck> parseInt too
[11:23:52] <wafflej0ck> and isNaN and alert
[11:23:59] <wafflej0ck> not too many more I can think of off hand
[11:24:08] <ocx_> and function(rate) { } is the function we define on each returned row
[11:24:17] *** Sjeeke has joined #angularjs
[11:24:24] *** elrabin has joined #angularjs
[11:24:25] <wafflej0ck> yeah the forEach makes it run that for each element of the array that's the first argument
[11:24:37] <wafflej0ck> which in this case is the returned data
[11:26:15] *** fotoflo has joined #angularjs
[11:27:32] *** Reskp_ has quit IRC
[11:27:53] *** matheusrocha89 has joined #angularjs
[11:28:37] *** Sjeeke has quit IRC
[11:30:37] *** MattWelch has quit IRC
[11:32:23] *** Grokling_ has quit IRC
[11:32:26] *** matheusrocha89 has quit IRC
[11:34:41] *** jae has quit IRC
[11:35:00] *** SargoDarya has joined #angularjs
[11:35:03] *** asheshambasta has joined #angularjs
[11:35:29] *** jumpstracks has joined #angularjs
[11:36:16] *** fotoflo has quit IRC
[11:37:00] *** zz_night-owl is now known as night-owl
[11:38:22] *** suffice has quit IRC
[11:38:38] *** MattWelch has joined #angularjs
[11:39:38] *** joroc has joined #angularjs
[11:39:58] *** Sky[x] has joined #angularjs
[11:42:58] *** Sjeeke has joined #angularjs
[11:43:09] *** elrabin has quit IRC
[11:43:21] *** aven2 has quit IRC
[11:43:23] *** fotoflo has joined #angularjs
[11:44:03] *** elrabin has joined #angularjs
[11:45:19] *** rtpg_ has quit IRC
[11:45:38] *** rtpg has joined #angularjs
[11:46:11] *** startupality has joined #angularjs
[11:47:27] *** taha has joined #angularjs
[11:48:15] <ocx_> var currency = rate.id.substring(3,6); < wafflej0ck is this a json object?
[11:48:19] *** elrabin has quit IRC
[11:49:11] *** bealtine has quit IRC
[11:49:21] *** bealtine has joined #angularjs
[11:49:30] *** elrabin has joined #angularjs
[11:50:37] *** evotuned has joined #angularjs
[11:51:52] *** startupality has quit IRC
[11:52:01] *** Fishy has joined #angularjs
[11:52:18] *** fotoflo has quit IRC
[11:53:04] *** startupality has joined #angularjs
[11:53:47] *** calmbird has joined #angularjs
[11:53:55] *** elrabin has quit IRC
[11:55:14] *** evotuned has quit IRC
[11:55:38] <calmbird> Is it even possible?
[11:55:57] *** macobo has quit IRC
[11:56:12] *** macobo has joined #angularjs
[11:56:22] *** SargoDarya has quit IRC
[11:56:35] *** Fishy has quit IRC
[11:57:26] *** rtpg has quit IRC
[11:57:32] *** chiburbs has joined #angularjs
[12:00:04] *** rtpg has joined #angularjs
[12:00:23] *** MattWelch has quit IRC
[12:01:00] *** Reskp has joined #angularjs
[12:01:17] *** KushS has joined #angularjs
[12:01:39] *** KushS has joined #angularjs
[12:01:55] *** Reskp has quit IRC
[12:02:24] *** a_ghost_irl has joined #angularjs
[12:03:37] *** Reskp has joined #angularjs
[12:04:01] *** elrabin has joined #angularjs
[12:04:44] *** a_ghost_irl has quit IRC
[12:06:26] *** Reskp has quit IRC
[12:07:55] *** Reskp has joined #angularjs
[12:08:08] *** MattWelch has joined #angularjs
[12:09:02] *** jamto11 has joined #angularjs
[12:09:17] *** Trow has joined #angularjs
[12:13:50] *** jamto11 has quit IRC
[12:13:59] *** KushS has quit IRC
[12:14:12] *** ycodr_ has joined #angularjs
[12:16:06] *** ycodr has quit IRC
[12:17:39] *** zwacky has joined #angularjs
[12:18:04] *** Reskp has quit IRC
[12:18:13] *** Reskp has joined #angularjs
[12:18:17] *** elrabin has quit IRC
[12:18:41] *** ycodr_ has quit IRC
[12:19:05] *** elrabin has joined #angularjs
[12:19:44] *** ycodr has joined #angularjs
[12:21:30] *** Reskp has quit IRC
[12:22:37] *** night-owl is now known as zz_night-owl
[12:23:23] *** Aliks has quit IRC
[12:24:02] *** Aliks has joined #angularjs
[12:25:44] *** RangerRick has quit IRC
[12:26:06] *** RangerRick has joined #angularjs
[12:26:09] <ocx_> var currency = rate.id.substring(3,6); < wafflej0ck is this a json object?
[12:27:19] *** Left_Turn has quit IRC
[12:28:12] *** Aliks has quit IRC
[12:28:27] *** elrabin has quit IRC
[12:28:34] *** sbellina has joined #angularjs
[12:29:05] *** elrabin has joined #angularjs
[12:29:45] *** MattWelch has quit IRC
[12:30:08] *** Grokling_ has joined #angularjs
[12:30:15] *** jumpstracks has quit IRC
[12:30:27] *** Reskp has joined #angularjs
[12:31:23] *** IvailoStoianov has quit IRC
[12:31:39] *** Reskp has quit IRC
[12:32:00] *** Aliks has joined #angularjs
[12:32:47] *** MattWelch has joined #angularjs
[12:32:47] *** tarnus has joined #angularjs
[12:32:53] *** ries has quit IRC
[12:33:03] *** sbellina has quit IRC
[12:33:20] *** Dido has quit IRC
[12:33:35] *** elrabin has quit IRC
[12:33:39] *** h0ru5 has joined #angularjs
[12:34:03] *** Zebra111 has joined #angularjs
[12:36:12] *** mrmanicou has joined #angularjs
[12:36:19] <ProLoser> has anyone ever tried doing db driven notifications?
[12:36:33] *** mrmanicou has quit IRC
[12:36:42] *** Reskp has joined #angularjs
[12:37:32] *** tarnus has quit IRC
[12:37:35] *** pehlert has quit IRC
[12:38:13] <joroc> ocx_ why would you think is a json object?
[12:38:21] *** Left_Turn has joined #angularjs
[12:39:29] *** elrabin has joined #angularjs
[12:39:50] *** Reskp has quit IRC
[12:40:51] *** Reskp_ has joined #angularjs
[12:43:14] *** Rishabh_ has joined #angularjs
[12:43:25] <Rishabh_> hi
[12:43:47] *** elrabin has quit IRC
[12:44:04] *** Rishabh_ has quit IRC
[12:45:20] *** ries has joined #angularjs
[12:46:04] *** hendricius has quit IRC
[12:46:36] *** evilaliv3 has quit IRC
[12:47:04] *** hendricius has joined #angularjs
[12:47:19] *** gunn has quit IRC
[12:47:37] *** gunn has joined #angularjs
[12:47:53] *** adben- has joined #angularjs
[12:49:41] *** slopjong has quit IRC
[12:49:41] *** tschundeee has joined #angularjs
[12:50:42] *** illume has joined #angularjs
[12:51:09] *** MattWelch has quit IRC
[12:51:36] *** evotuned has joined #angularjs
[12:52:06] *** MattWelch has joined #angularjs
[12:52:43] *** Reskp_ has quit IRC
[12:52:49] *** Fishy has joined #angularjs
[12:53:34] *** SargoDarya has joined #angularjs
[12:54:08] *** tschundeee has quit IRC
[12:55:33] *** snurfery has joined #angularjs
[12:55:53] *** evotuned has quit IRC
[12:56:03] *** AciD` has quit IRC
[12:56:03] *** AciD` has joined #angularjs
[12:56:49] *** Rejected has joined #angularjs
[12:56:50] *** Cronoh has quit IRC
[12:57:28] *** Fishy has quit IRC
[12:57:47] *** mylordi has joined #angularjs
[12:57:51] *** jumpstracks has joined #angularjs
[12:58:06] *** DarrenCraig has joined #angularjs
[13:00:09] *** Cronoh has joined #angularjs
[13:03:04] *** lexek__ has joined #angularjs
[13:04:01] *** elrabin has joined #angularjs
[13:04:02] *** Grokling_ has quit IRC
[13:05:10] *** Reskp has joined #angularjs
[13:06:27] <calmbird> EQp: It looks like casting.
[13:06:34] <calmbird> But I'm not sure.
[13:07:14] <calmbird> var a = "5"; var b = !!a; //b is equal true now
[13:07:53] *** ries has quit IRC
[13:09:34] *** mmealling has joined #angularjs
[13:09:50] *** jamto11 has joined #angularjs
[13:09:51] *** Reskp has quit IRC
[13:10:18] *** Trow1 has joined #angularjs
[13:11:35] *** IvailoStoianov has joined #angularjs
[13:11:38] *** Milkweed has joined #angularjs
[13:11:40] *** ries has joined #angularjs
[13:13:10] <giLL0r> EQp: It's kind of a casting to boolean. Try !!' ' and !!'', !!0, !!42, etc
[13:13:12] *** Trow has quit IRC
[13:13:15] *** elrabin has quit IRC
[13:13:37] <giLL0r> casting by using double negation
[13:13:46] *** SargoDarya has quit IRC
[13:14:21] *** elrabin has joined #angularjs
[13:14:24] *** jamto11 has quit IRC
[13:15:13] *** rtpg has quit IRC
[13:15:49] *** Reskp has joined #angularjs
[13:16:33] *** freeman42 has quit IRC
[13:16:42] *** matheusrocha89 has joined #angularjs
[13:16:58] *** TheAceOfHearts has quit IRC
[13:17:39] *** h0ru5 has quit IRC
[13:19:57] *** benjamingr has joined #angularjs
[13:20:11] *** jae has joined #angularjs
[13:20:46] *** jae has left #angularjs
[13:21:06] *** DarrenCraig has quit IRC
[13:21:11] *** matheusrocha89 has quit IRC
[13:23:58] *** elrabin has quit IRC
[13:23:58] *** ycodr_ has joined #angularjs
[13:24:34] *** sheplu has joined #angularjs
[13:24:52] *** IvailoStoianov has quit IRC
[13:25:29] *** ycodr has quit IRC
[13:25:33] *** IvailoStoianov has joined #angularjs
[13:25:38] *** ycodr_ is now known as ycodr
[13:26:27] *** eburcat has quit IRC
[13:26:54] *** eburcat has joined #angularjs
[13:27:24] *** adben- has quit IRC
[13:28:36] *** elrabin has joined #angularjs
[13:29:49] *** MattWelch has quit IRC
[13:30:18] *** SergioFilhow_ has joined #angularjs
[13:30:44] *** sshaginyan has quit IRC
[13:31:17] *** SergioFilhow has quit IRC
[13:31:57] *** eburcat has quit IRC
[13:32:23] *** rickhanlonii has quit IRC
[13:32:59] *** Reskp has quit IRC
[13:33:39] *** elrabin has quit IRC
[13:33:51] *** MattWelch has joined #angularjs
[13:34:19] *** startupality has quit IRC
[13:34:46] *** cakirke has joined #angularjs
[13:34:51] *** eburcat has joined #angularjs
[13:35:38] *** arpu has quit IRC
[13:38:41] *** nya has quit IRC
[13:39:04] *** elrabin has joined #angularjs
[13:39:57] *** aven2 has joined #angularjs
[13:40:43] *** Hackwar1 is now known as Hackwar
[13:40:48] *** matheusrocha89 has joined #angularjs
[13:43:13] *** joroc has quit IRC
[13:44:28] *** Sjeeke has quit IRC
[13:45:34] *** matheusrocha89 has quit IRC
[13:46:34] *** Reskp has joined #angularjs
[13:48:57] *** elrabin has quit IRC
[13:49:22] *** Reskp has quit IRC
[13:49:37] *** MattWelch has quit IRC
[13:49:48] *** tschundeee has joined #angularjs
[13:50:45] *** Reskp has joined #angularjs
[13:50:51] *** MattWelch has joined #angularjs
[13:51:23] *** whunt has quit IRC
[13:51:24] *** Aliks has quit IRC
[13:52:35] *** instence_ has joined #angularjs
[13:52:40] *** evotuned has joined #angularjs
[13:53:36] *** Fishy has joined #angularjs
[13:53:37] *** elrabin has joined #angularjs
[13:53:40] *** illume has quit IRC
[13:54:16] *** rajatarora has quit IRC
[13:54:23] *** instence has quit IRC
[13:54:29] *** tschundeee has quit IRC
[13:55:48] *** calmbird has quit IRC
[13:56:12] *** fatshark has quit IRC
[13:56:31] *** alpha080 has joined #angularjs
[13:56:40] *** Reskp has quit IRC
[13:57:23] *** evotuned has quit IRC
[13:57:40] *** theotherguy has quit IRC
[13:58:12] *** elrabin has quit IRC
[13:58:12] *** Fishy has quit IRC
[13:59:24] *** elrabin has joined #angularjs
[13:59:53] *** tSpartak has joined #angularjs
[14:00:24] *** tarnus has joined #angularjs
[14:00:49] *** fatshark has joined #angularjs
[14:01:10] *** hswolff has quit IRC
[14:03:52] *** hswolff has joined #angularjs
[14:04:46] *** illume has joined #angularjs
[14:05:35] *** arpu has joined #angularjs
[14:05:41] *** msg has joined #angularjs
[14:07:19] *** alpha080 has quit IRC
[14:07:50] *** squeakytoy has joined #angularjs
[14:08:47] *** elrabin has quit IRC
[14:09:22] *** alpha080 has joined #angularjs
[14:09:53] *** aven2 is now known as joroci
[14:10:04] <zwischenzug3> !topic
[14:10:33] *** jamto11 has joined #angularjs
[14:11:18] *** SargoDarya has joined #angularjs
[14:12:17] *** Reskp has joined #angularjs
[14:12:45] <jacuqesdancona> With the idea of removing controllers from my code, how would I set up communication with a service?
[14:13:07] <jacuqesdancona> err, service to directive communication
[14:13:40] *** elrabin has joined #angularjs
[14:15:05] <jacuqesdancona> I know I can inject the service as a dependency to the directive, and just call the service's methods, but how do I call directive methods from the service?
[14:15:07] *** dacuca has joined #angularjs
[14:15:21] *** jamto11 has quit IRC
[14:15:30] *** shpoont has joined #angularjs
[14:15:39] *** SargoDarya has quit IRC
[14:16:02] *** ries has quit IRC
[14:17:28] *** whitebook has joined #angularjs
[14:17:47] *** dacuca has quit IRC
[14:17:50] <msg> Hey all
[14:17:56] <msg> I feel like i must be doing something stupid
[14:18:13] <joroci> like me, always
[14:18:14] <msg> I have a URL like mysite.com/?session=yourSessionName
[14:18:15] <joroci> :)
[14:18:19] <msg> heeh :)
[14:18:25] *** elrabin has quit IRC
[14:18:29] *** Johnny13371337 has joined #angularjs
[14:18:50] <joroci> so what's problem?
[14:19:00] <msg> Well, i have the above right, and want I want my controller to do is $http.get('/RESTAPI?session=yourSessionName')
[14:19:20] <jacuqesdancona> msg: every time, every route?
[14:19:24] <jacuqesdancona> or only on init load?
[14:19:27] <msg> But taking the session var from the users window and putting it in the http.get URL seems way to tricky
[14:19:28] *** elrabin has joined #angularjs
[14:19:52] <msg> Well, pretty much if there is a session in the URL, i want all requests to know about it - o any page/partial
[14:19:55] <msg> *to any
[14:20:11] <jacuqesdancona> why would you want to do that?
[14:20:17] <jacuqesdancona> or this way?
[14:20:18] <msg> But i dont want to use cookies because users should be able to copy/paste these sessions between each other
[14:20:24] <jacuqesdancona> oh
[14:20:54] <msg> Theres nothing top-secret here, hehe, but they can work on something and then show it to someone else by just sending the URL
[14:21:03] <msg> Thats the plan
[14:21:15] <jacuqesdancona> well
[14:21:26] <jacuqesdancona> I'd personally go for cookies though
[14:21:36] <jacuqesdancona> when a user uses that link, set the cookie
[14:21:43] <jacuqesdancona> then write up a requestInterceptor
[14:21:46] <jacuqesdancona> write the cookie
[14:21:56] <msg> $location.search() will let me grab GET request things, but they expect the URL to be mysite.com/#/?session=yourSessionName
[14:22:17] <msg> hm, that could be good... yeah
[14:22:24] <jacuqesdancona> that's what I'm doing at the moment
[14:22:33] <jacuqesdancona> but they're just user specific sessions
[14:22:46] <msg> But wait, er, then the with the cookie set they cant see the full URL
[14:22:51] <msg> i mean it would just be /
[14:23:04] <msg> So they wouldnt know what to send to someone else to help them set the right cookie :P
[14:23:18] <msg> I could generate a link for them to share...
[14:23:39] <jacuqesdancona> I'd personally go for a 'share this thing' button then trying to keep that queryparam in the url
[14:23:42] *** zbzzn has quit IRC
[14:23:54] <msg> yeah...yeah your right
[14:23:59] <msg> ok cool - thats what ill do
[14:24:04] <msg> Thanks :)
[14:24:20] <jacuqesdancona> You can do it, but it can be tricky, every LocationChange should be checked if there's the session queryparam, and if not append it
[14:24:31] <msg> But for futur reference, any idea why $location.search() only sees my ?session=param when the URL is /#/?...
[14:24:37] <msg> and not just /?...
[14:24:49] *** Reskp has quit IRC
[14:25:09] *** serum33_ has quit IRC
[14:25:17] <msg> I have not started routing anything yet - ive only been doing angular for a week now -_-
[14:25:17] <jacuqesdancona> eh, what do you expect to get, and what does it get?
[14:25:29] <jacuqesdancona> I dont' really get your question
[14:25:39] <msg> /?session=test with $location.search() returns {}
[14:25:49] <msg> /#/?session=test with $location.search() returns {session:'test'}
[14:26:08] <jacuqesdancona> Is html5mode enabled?
[14:26:17] *** mityaz has quit IRC
[14:26:19] <msg> Nope, hehe, i couldn't figure that out either -_-
[14:26:27] *** nahoskins has joined #angularjs
[14:26:31] *** serum33 has joined #angularjs
[14:26:44] <msg> I added $locationProvider.html5Mode(true); to the top of my controller, but i get an error
[14:26:52] <jacuqesdancona> That should be set up in your controller
[14:26:56] <jacuqesdancona> see the config block
[14:26:59] <msg> ReferenceError: $locationProvider is not defined
[14:27:23] <jacuqesdancona> err, that shouldn't be set up in your controller*
[14:27:28] *** shpoont has quit IRC
[14:27:38] <msg> ooooh
[14:27:56] *** shpoont has joined #angularjs
[14:27:56] *** Solid1_afk is now known as Solid1
[14:27:59] <nahoskins> howdy
[14:28:15] *** elrabin has quit IRC
[14:28:39] <msg> thanks jacuqesdancona - you've gone over and above what i expected for help :)
[14:28:41] <msg> thanks a lot :)
[14:29:03] <jacuqesdancona> I'm not sure about /?session=test doesn't return anything, but I think (I'm really not sure) is because it's not a valid route
[14:29:20] <jacuqesdancona> Shouldn't routing without html5mode default to /#/?
[14:29:27] *** elrabin has joined #angularjs
[14:29:31] *** sbellina has joined #angularjs
[14:29:44] <jacuqesdancona> no problem msg
[14:30:55] *** callmekatootie has quit IRC
[14:31:21] *** dsdeiz has joined #angularjs
[14:31:32] *** startupality has joined #angularjs
[14:32:29] *** Reskp has joined #angularjs
[14:32:54] *** shpoont has quit IRC
[14:34:08] *** dc_ has quit IRC
[14:36:03] <msg> jacuqesdancona: ah, well im not doing any routing yet at all
[14:36:06] <msg> i should set that up :)
[14:36:29] *** monbro has joined #angularjs
[14:38:32] *** shpoont has joined #angularjs
[14:38:48] *** jdivock has joined #angularjs
[14:40:08] *** joroc has joined #angularjs
[14:42:53] *** joroci has quit IRC
[14:42:57] *** cytg has joined #angularjs
[14:45:39] *** rajatarora has joined #angularjs
[14:48:27] *** elrabin has quit IRC
[14:48:29] *** whitebook has quit IRC
[14:49:29] *** elrabin has joined #angularjs
[14:49:34] <EQp> calrmbird: thanks, never seen that before...
[14:50:08] *** whitebook has joined #angularjs
[14:50:11] *** jdivock has quit IRC
[14:51:59] *** jumpstracks has left #angularjs
[14:53:11] *** KushS has joined #angularjs
[14:53:41] *** evotuned has joined #angularjs
[14:54:03] *** gunn has quit IRC
[14:54:06] *** Reskp has quit IRC
[14:54:36] *** Fishy has joined #angularjs
[14:55:30] *** Reskp_ has joined #angularjs
[14:55:43] *** BahamutWC|Laptop has quit IRC
[14:56:05] *** Reskp_ has quit IRC
[14:56:23] *** Reskp_ has joined #angularjs
[14:56:23] *** Ix-Xitan has joined #angularjs
[14:56:23] *** Ix-Xitan is now known as PointBlank
[14:57:50] *** EQp has quit IRC
[14:58:17] *** elrabin has quit IRC
[14:58:35] *** iksik_ has joined #angularjs
[14:58:51] *** evotuned has quit IRC
[14:59:15] *** Fishy has quit IRC
[14:59:28] *** elrabin has joined #angularjs
[15:01:01] *** boxmein has joined #angularjs
[15:01:29] *** iksik has quit IRC
[15:01:54] *** cboden has joined #angularjs
[15:02:05] *** rileylark has joined #angularjs
[15:03:16] *** cjustiniano has joined #angularjs
[15:03:33] *** calmbird has joined #angularjs
[15:03:45] *** elrabin has quit IRC
[15:03:45] *** jef79m has quit IRC
[15:05:16] *** qwerty2 has joined #angularjs
[15:05:47] <qwerty2> Hi
[15:06:40] <calmbird> hi
[15:06:59] <jacuqesdancona> calmbird: why not use a method for ng-click
[15:07:18] <jacuqesdancona> in that method iterate the array, check for same value and splice
[15:07:18] *** cannap has joined #angularjs
[15:07:22] *** cboden has quit IRC
[15:07:40] <calmbird> jacuqesdancona: This is not array, It's object
[15:07:54] <calmbird> check plunker
[15:07:55] <jacuqesdancona> Oh i see
[15:08:21] <jacuqesdancona> you're currently just setting the value to undefined
[15:08:31] <calmbird> I'v used <span ng-click="myObj[tag] = undefined">[x]</span>
[15:08:37] <calmbird> yeah but it's not removed from ng-repeat
[15:09:34] *** elrabin has joined #angularjs
[15:09:39] *** DarrenCraig has joined #angularjs
[15:10:02] *** joroci has joined #angularjs
[15:10:28] *** qwerty2 has quit IRC
[15:10:47] <jacuqesdancona> then delete the value
[15:11:08] <cjustiniano> Can't you splice on ng-click using myObject and $index?
[15:11:15] *** jamto11 has joined #angularjs
[15:11:22] *** cesarkawakami has joined #angularjs
[15:11:44] <jacuqesdancona> it's an object
[15:12:14] <cjustiniano> oh right, sorry just woke up.
[15:12:19] <calmbird> :)
[15:12:25] *** freeman42 has joined #angularjs
[15:12:37] *** cannap has quit IRC
[15:12:48] *** joroc has quit IRC
[15:12:48] *** Reskp_ has quit IRC
[15:12:54] *** SargoDarya has joined #angularjs
[15:13:22] <jacuqesdancona> ng-click="destroy(myObj, tag)" $scope.destroy = function(obj, tag){ delete obj['tag' }
[15:13:24] <jacuqesdancona> ]
[15:13:32] *** monbro has quit IRC
[15:13:49] <calmbird> <span ng-click="myObj[tag] = undefined">[x]</span> this removes from object, but tag is still present in ng-repeat
[15:13:57] *** DarrenCraig has quit IRC
[15:13:57] <jacuqesdancona> that doen't remove from object
[15:13:58] <calmbird> destroy ok
[15:14:29] *** cannap has joined #angularjs
[15:14:33] <jacuqesdancona> var x = {a: 'something', b: 'somethingelse' }; x['a'] = undefined; console.log(x);
[15:15:05] <jacuqesdancona> you'll just get {a: undefined: b: "somethingelse"}
[15:15:55] *** jamto11 has quit IRC
[15:16:20] <calmbird> Yeah it's worked.
[15:16:40] <calmbird> Well I'v reed that seting undefined delete it.
[15:17:30] <calmbird> But looks like its not.
[15:18:25] *** yts has joined #angularjs
[15:19:00] *** boxmein has quit IRC
[15:19:36] *** boxmein has joined #angularjs
[15:20:38] <jacuqesdancona> You could use a filter to not show undefined values
[15:20:59] *** mitc0185 has joined #angularjs
[15:21:02] *** qwerty2 has joined #angularjs
[15:21:40] <calmbird> jacuqesdancona: Yeah I will just to stick to your idea of delete it works good.
[15:21:53] *** monbro has joined #angularjs
[15:22:05] *** ansu1 has quit IRC
[15:22:36] <jacuqesdancona> ng-repeat=" (key, value) in stuffs | filter: {value: '!undefined'}
[15:22:37] *** eburcat_ has joined #angularjs
[15:22:43] *** eburcat has quit IRC
[15:23:19] *** monbro has quit IRC
[15:24:09] *** elrabin has quit IRC
[15:25:18] *** ansu has joined #angularjs
[15:27:25] *** oncenull has joined #angularjs
[15:28:18] *** bbankes has joined #angularjs
[15:28:55] *** elrabin has joined #angularjs
[15:29:08] <msg> hey all :)
[15:29:11] *** qwerty2 has quit IRC
[15:29:41] <msg> I have a ng-model on a checkbox, like ng-model="$scope.ss[$scope.sample.sampleHash]"
[15:30:12] <msg> some my $scope.ss object gets a key of $scope.sample.sampleHash and a value of either True or False depending on what the checkbox just did
[15:30:32] <msg> Works great - problem is, I want to do an if/else now
[15:30:57] <jacuqesdancona> calmbird: Don't do dom manipulation in a service
[15:31:00] <jacuqesdancona> use a directive for it
[15:31:11] <msg> Like, if my checkbox value is true, "$scope.ss[$scope.sample.sampleHash]", else { delete $scope.ss[$scope.sample.sampleHash] }
[15:31:17] <msg> Because I dont want the trues
[15:31:22] <msg> Is there anyway to do this?
[15:31:24] *** macobo has quit IRC
[15:31:37] <calmbird> I'm just appending <div directive></div> in service, the res is in directive
[15:31:52] <calmbird> *rest
[15:32:30] *** oncenull has quit IRC
[15:32:34] <jacuqesdancona> You realy shouldn't do that
[15:32:39] <jacuqesdancona> keep all your dom manipulations in directives
[15:33:00] *** k-dawg has joined #angularjs
[15:33:04] *** iksik_ is now known as iksik
[15:33:07] *** iksik has joined #angularjs
[15:33:17] *** elrabin has quit IRC
[15:33:28] <calmbird> How can I append <div> with directive from service call then.
[15:34:00] <jacuqesdancona> somewhere in your html just use <div yes-no></div>
[15:34:10] <jacuqesdancona> then inject the service in to the directive
[15:34:18] *** sbellina has quit IRC
[15:34:21] <calmbird> You mean, add <div directive> to the body, and just ng-if it?
[15:34:23] *** SargoDarya has quit IRC
[15:34:23] <jacuqesdancona> directive('yesNo', function(YesNoService)
[15:34:28] *** elrabin has joined #angularjs
[15:34:38] <calmbird> I see.
[15:35:03] *** Solid1 is now known as Solid1_afk
[15:35:16] *** mlpug has joined #angularjs
[15:35:27] <jacuqesdancona> then in your directive, create a method which is called when one of the buttons is clicked, and that method can the method from the service
[15:35:33] *** chotchki has joined #angularjs
[15:36:01] <calmbird> cjustiniano: Yes thank you, I'v done something like that, and it work great.
[15:36:03] *** Grapes has joined #angularjs
[15:36:37] *** apertoire has quit IRC
[15:36:44] <calmbird> jacuqesdancona: I see, and don't append/destroy divs from dom, just something like: ng-if="showAskWindow"
[15:37:23] *** whitebook has quit IRC
[15:37:23] <calmbird> <body><div ng-if="showAskWindow" yes-no></div></body>
[15:38:53] *** elrabin has quit IRC
[15:38:54] *** slopjong has joined #angularjs
[15:40:07] *** joroc has joined #angularjs
[15:40:15] <calmbird> jacuqesdancona: Just thought that having yes-no window all the time in DOM is not good idea. But if you are saying it's ok I will do that way then.
[15:40:32] <calmbird> Yeah well, ng-if removes it from DOM ofc
[15:41:06] <jacuqesdancona> yea
[15:41:34] <jacuqesdancona> Is this for a confirmation window/popup?
[15:42:04] <calmbird> Yes
[15:43:05] *** joroci has quit IRC
[15:44:00] *** cornerma1 has joined #angularjs
[15:44:29] *** elrabin has joined #angularjs
[15:44:36] *** komlev has joined #angularjs
[15:47:21] *** cornerman has quit IRC
[15:47:32] *** cornerma1 is now known as cornerman
[15:47:48] <jacuqesdancona> You could keep it in the dom, or have a look at angularStrap or bootstrap-ui, they have services which can wrap modals, or just write it yourself
[15:48:48] *** startupality has quit IRC
[15:49:01] *** mkc has joined #angularjs
[15:49:37] <calmbird> I wanted to write a Module, that you can load. And just use YesNoService.ask('', yesCallback, noCallback), without adding other things to DOM etc.
[15:49:48] *** tschundeee has joined #angularjs
[15:50:23] *** snurfery has quit IRC
[15:51:03] *** EQp has joined #angularjs
[15:53:27] *** ries has joined #angularjs
[15:54:11] *** elrabin has quit IRC
[15:54:21] *** tschundeee has quit IRC
[15:54:42] *** evotuned has joined #angularjs
[15:54:50] <jacuqesdancona> ah ok
[15:55:05] *** Fishy has joined #angularjs
[15:55:38] <jacuqesdancona> Then I think you can't do it without doing some dom manipulation in something other than a directive
[15:55:51] *** hylynyiv has joined #angularjs
[15:56:33] <jacuqesdancona> there has to be something to talk to, which writes the directive to the dom
[15:57:43] *** sbellina has joined #angularjs
[15:57:45] *** unmatrix has quit IRC
[15:57:51] <jacuqesdancona> Just looked at bootstrap-ui's source, they're appending the directive to the dom like you did
[15:59:11] *** wa5ted has quit IRC
[15:59:14] *** evotuned has quit IRC
[15:59:16] *** ivaldi has joined #angularjs
[15:59:21] *** Trow1 is now known as Trow
[15:59:28] *** elrabin has joined #angularjs
[15:59:37] *** Fishy has quit IRC
[16:00:07] *** cebor_ has quit IRC
[16:00:16] *** annlewis has joined #angularjs
[16:00:53] *** AlSquire has joined #angularjs
[16:02:15] *** cakirke has quit IRC
[16:02:27] *** rileylark has quit IRC
[16:03:29] *** wa5ted has joined #angularjs
[16:03:53] *** elrabin has quit IRC
[16:04:41] *** elrabin has joined #angularjs
[16:05:02] *** whitebook has joined #angularjs
[16:06:07] *** Thorn has joined #angularjs
[16:06:17] <Thorn> hello
[16:06:23] *** dsdeiz has quit IRC
[16:07:07] <Thorn> is it possible to make chosen work with angular?
[16:07:15] *** dsdeiz has joined #angularjs
[16:07:24] <Thorn> it sometimes doesn't show the selected value on form load no matter what I try if there're multiple instances on the page
[16:08:13] *** boxmein has quit IRC
[16:08:18] *** soee has joined #angularjs
[16:08:25] *** cebor has joined #angularjs
[16:10:10] *** maikowblue has joined #angularjs
[16:10:10] *** joroci has joined #angularjs
[16:10:20] *** IvailoStoianov has quit IRC
[16:10:37] *** rajatarora has quit IRC
[16:11:10] *** DarrenCraig has joined #angularjs
[16:11:28] *** caitp has joined #angularjs
[16:12:00] *** jamto11 has joined #angularjs
[16:12:57] *** joroc has quit IRC
[16:13:44] <calmbird> jacuqesdancona: I see.
[16:14:01] *** elrabin has quit IRC
[16:15:39] *** DarrenCraig has quit IRC
[16:15:41] *** whitebook has quit IRC
[16:15:42] <calmbird> They even appending class like that, interesting.
[16:15:43] *** jumpstracks has joined #angularjs
[16:16:21] *** bbankes has quit IRC
[16:16:29] *** jamto11 has quit IRC
[16:17:23] *** caitp has quit IRC
[16:19:19] *** ralugna12 has joined #angularjs
[16:19:28] *** elrabin has joined #angularjs
[16:20:29] <ralugna12> What is the best way to build large applications with angular.js? I don't want to load all controllers, etc for every page.
[16:20:48] *** smr_ has joined #angularjs
[16:21:48] *** rajatarora has joined #angularjs
[16:22:25] *** Mccxiv has joined #angularjs
[16:23:42] *** ron_frown has joined #angularjs
[16:23:56] *** mrwn has joined #angularjs
[16:24:36] <jacuqesdancona> ralugna12: lazy load and $inject modules
[16:25:52] <jacuqesdancona> ralugna12: I'm currently using ocLazyLoad, but there are other alternatives
[16:25:58] *** dsdeiz has quit IRC
[16:26:43] *** manekinekko has joined #angularjs
[16:26:58] <ralugna12> jacuquesdancona: Isn't there a built in solution from angular? Because every large application has to solve this problem
[16:27:41] <Grapes> Build lots of smaller SPAs?
[16:27:48] *** Sky[x] has quit IRC
[16:28:28] *** bmonty has quit IRC
[16:28:50] *** bmonty has joined #angularjs
[16:30:14] <ralugna12> Grapes: so you're recommending to split the application and built a multi-page-application?
[16:31:28] *** SargoDarya has joined #angularjs
[16:32:21] <Grapes> That might be one way
[16:32:38] <Grapes> I would say it depends on the workflows
[16:33:17] *** elrabin has quit IRC
[16:33:54] <jacuqesdancona> ralugna12: No, there isn't a built in solution, it's coming in 2.0 iirc
[16:34:13] <Grapes> From my experience, if you have certain entities that are shared across different pages, then you would want to keep those under the same app.
[16:34:28] *** elrabin has joined #angularjs
[16:34:39] <ralugna12> Grapes: would it be possible to use require.js and the routeProvider? :) than I wouldn't have to split my app in multiple SPAs
[16:34:46] <jacuqesdancona> ralugna12: ye
[16:34:48] <jacuqesdancona> yes
[16:35:15] <Grapes> That would let your angular services maintain a local version of that entity, and you wouldn't have to make a request for that entity on route change.
[16:35:57] *** Pieter has joined #angularjs
[16:36:12] *** eburcat_ has quit IRC
[16:36:15] <jacuqesdancona> Grapes: maintain a local version?
[16:36:22] *** frabblerock has joined #angularjs
[16:36:23] <ralugna12> Grapes: so which solution would you recommend? require.js + routeProvider?
[16:37:02] <Grapes> I haven't used require.js
[16:37:23] <Grapes> On the project that I'm working on we split the overall app into several smaller SPAs
[16:37:30] *** whitebook has joined #angularjs
[16:37:53] <Grapes> The spas live under ASP.NET MVC routes/views
[16:38:36] <jacuqesdancona> I think I don't get the multiple SPA's way of thinking, could you explain Grapes? Multi SPA's like in every template having it's own hardcoded script tag, and using an independent module?
[16:38:57] *** elrabin has quit IRC
[16:39:31] <Grapes> Are you familiar with ASP.NET MVC?
[16:40:07] *** joroc has joined #angularjs
[16:40:32] <jacuqesdancona> nope
[16:41:06] *** caitp has joined #angularjs
[16:41:07] <Grapes> There are two "levels" of apps. first one is a server side way of mapping urls to specific HTML views/pages
[16:41:20] *** WebDevOfDoom has joined #angularjs
[16:41:21] *** dob_ has joined #angularjs
[16:41:38] *** IvailoStoianov has joined #angularjs
[16:41:42] <Grapes> It loads up html for the "users" app
[16:41:51] *** instence has joined #angularjs
[16:41:59] <Grapes> that html would then include js code for the users app
[16:42:10] *** joroci has quit IRC
[16:42:17] *** Pieter has quit IRC
[16:42:38] <caitp> guys stop working
[16:42:40] <caitp> until new years
[16:42:43] <Grapes> There might obviously be better ways to organize
[16:42:47] <jacuqesdancona> What's 'including' in this context?
[16:42:56] <jacuqesdancona> inline javascript? script tag?
[16:43:00] <Grapes> Yup
[16:43:40] *** instence_ has quit IRC
[16:44:36] <jacuqesdancona> Hows communicating with a backend done?
[16:44:46] *** elrabin has joined #angularjs
[16:44:47] *** mrru has joined #angularjs
[16:44:49] *** alpha080 has quit IRC
[16:44:52] <Grapes> $http/$post/$get
[16:45:20] <Grapes> With REST endpoints exposed through WebAPI controllers
[16:45:26] *** AngularYaros has joined #angularjs
[16:45:27] <jacuqesdancona> That feels like mixing old and new technologies
[16:45:30] <Grapes> What stack are you planning on using?
[16:45:34] *** Reskp has joined #angularjs
[16:46:03] <jacuqesdancona> Why not have just one API for communicating and let the routing, and pretty much everything which can be done clientside, on the clientside?
[16:46:24] <Grapes> Well that depends on what you app actually does
[16:46:42] <Grapes> if you are building a todo app, then yeah you might be able to do it all clientside
[16:47:03] *** arpu has quit IRC
[16:47:14] <jacuqesdancona> When can't I do it clientside?
[16:47:22] *** caitp has quit IRC
[16:47:32] <Grapes> Are you storing any sort of data?
[16:47:36] <jacuqesdancona> yes
[16:47:38] <jacuqesdancona> of course
[16:47:43] <jacuqesdancona> well, not of course, but yes
[16:47:48] *** caitp has joined #angularjs
[16:47:53] <Grapes> You could use something like Firebase
[16:48:29] <jacuqesdancona> It's not that I'm trying to get advice about setting up a webapp, I'm just curious in why you'd build multi SPA's
[16:48:29] *** dob_ has quit IRC
[16:48:30] *** ycodr_ has joined #angularjs
[16:48:38] <jacuqesdancona> and setting up all kinds of logic on the server side
[16:48:40] *** dob_ has joined #angularjs
[16:48:53] <jacuqesdancona> when it's not necessary imho?
[16:49:02] *** mitc0185 has quit IRC
[16:49:09] *** elrabin has quit IRC
[16:49:22] *** ycodr__ has joined #angularjs
[16:49:35] <jacuqesdancona> You're actually building three apps, one api, one webserver, one frontend app
[16:49:46] *** tschundeee has joined #angularjs
[16:50:02] <jacuqesdancona> you can pretty much skip the webserver (or to be specific, logic on the webserver)
[16:50:06] *** pHcF has joined #angularjs
[16:50:38] *** dob__ has joined #angularjs
[16:51:00] *** Reskp has quit IRC
[16:51:40] *** ycodr has quit IRC
[16:51:47] *** ycodr__ is now known as ycodr
[16:51:59] <ralugna12> jacuquesdancona: have you ever used require.js to load modules ?
[16:52:05] *** caitp- has joined #angularjs
[16:52:13] *** WebDevOfDoom has quit IRC
[16:52:21] *** SargoDarya has quit IRC
[16:52:42] *** boxmein has joined #angularjs
[16:52:46] *** ycodr_ has quit IRC
[16:53:12] *** dob_ has quit IRC
[16:53:48] *** Reskp has joined #angularjs
[16:53:52] *** tschundeee has quit IRC
[16:53:54] *** caitp has quit IRC
[16:54:02] <jacuqesdancona> using ocLazyLoad, you can hook in RequireJs if you want
[16:54:03] *** bbankes has joined #angularjs
[16:54:40] *** lexek__ has quit IRC
[16:55:10] *** dob_ has joined #angularjs
[16:55:19] *** dob__ has quit IRC
[16:55:31] <jacuqesdancona> my main app has a very small footprint, and everything is lazy loaded when needed
[16:55:37] *** rajatarora has quit IRC
[16:55:38] *** evotuned has joined #angularjs
[16:55:48] *** Fishy has joined #angularjs
[16:57:45] *** joroc has quit IRC
[16:57:53] *** joroci has joined #angularjs
[16:58:25] *** WebDevOfDoom has joined #angularjs
[16:59:25] *** AngularYaros has quit IRC
[16:59:28] *** elrabin has joined #angularjs
[16:59:41] *** cannap has quit IRC
[17:00:04] *** Fishy has quit IRC
[17:00:19] *** dob_ has quit IRC
[17:00:24] *** ngbot has joined #angularjs
[17:00:24] <ngbot> angular.js/master 0e2ac3c Lucas Galfaso: chore($cache): do not add entry to LRU hash when value is undefined...
[17:00:24] *** ngbot has left #angularjs
[17:00:40] *** fotoflo has joined #angularjs
[17:00:47] *** evotuned has quit IRC
[17:00:53] *** dob_ has joined #angularjs
[17:01:45] *** annlewis has quit IRC
[17:02:34] *** adben- has joined #angularjs
[17:02:55] *** rileylark has joined #angularjs
[17:03:53] *** elrabin has quit IRC
[17:04:29] *** elrabin has joined #angularjs
[17:06:59] *** caitp- has quit IRC
[17:07:17] *** e0ipso|away is now known as e0ipso
[17:07:27] *** leolrrj has joined #angularjs
[17:07:51] *** rileylark has quit IRC
[17:08:06] *** WebDevOfDoom has quit IRC
[17:08:48] *** elrabin has quit IRC
[17:09:23] *** Reskp has quit IRC
[17:09:34] *** jamto11 has joined #angularjs
[17:09:53] *** boxmein has quit IRC
[17:10:04] *** mitc0185 has joined #angularjs
[17:10:09] *** joroc has joined #angularjs
[17:10:13] *** boxmein has joined #angularjs
[17:10:16] *** ngeksyo has joined #angularjs
[17:10:25] *** Johnny13371337 has quit IRC
[17:10:54] *** WebDevOfDoom has joined #angularjs
[17:11:45] *** torartc has joined #angularjs
[17:11:52] *** DarrenCraig has joined #angularjs
[17:12:29] *** Reskp has joined #angularjs
[17:13:32] *** eago_ has joined #angularjs
[17:13:53] *** elrabin has joined #angularjs
[17:14:00] *** joroci has quit IRC
[17:14:11] *** Trow1 has joined #angularjs
[17:14:46] *** bbankes_ has joined #angularjs
[17:14:47] *** swist_ has joined #angularjs
[17:15:16] *** Trow has quit IRC
[17:15:52] *** manekinekko has quit IRC
[17:15:53] *** DarrenCraig has quit IRC
[17:16:13] *** ejb has joined #angularjs
[17:16:54] *** bbankes has quit IRC
[17:17:59] *** nycdevgirl has joined #angularjs
[17:18:09] *** slopjong has quit IRC
[17:18:14] *** Reskp has quit IRC
[17:18:39] *** tomh- has joined #angularjs
[17:18:52] *** cannap has joined #angularjs
[17:19:26] *** k-dawg has quit IRC
[17:20:10] *** rajatarora has joined #angularjs
[17:20:28] *** Reskp has joined #angularjs
[17:21:36] *** moritzs has joined #angularjs
[17:24:12] *** Reskp has quit IRC
[17:24:36] *** Reskp has joined #angularjs
[17:25:05] *** rickhanlonii has joined #angularjs
[17:25:35] <thomasvs> However, it doesn't work for me when I try and access from the controller's $scope - the property is undefined
[17:25:49] *** fotoflo has quit IRC
[17:25:55] <thomasvs> anyone know how to have the controller have access to an ng-repeat's result?
[17:26:20] *** numproc has joined #angularjs
[17:26:30] *** jtimon has joined #angularjs
[17:26:46] *** arabot has joined #angularjs
[17:27:01] *** moritzs has quit IRC
[17:27:07] *** nycdevgirl has quit IRC
[17:27:59] *** JesseH has joined #angularjs
[17:28:23] *** IvailoStoianov has quit IRC
[17:28:23] <msg> hey all :)
[17:28:37] *** bbankes_ has quit IRC
[17:28:44] <msg> So i have an object which, if changed, should be updated in the database
[17:28:46] *** moritzs has joined #angularjs
[17:28:49] *** elrabin has quit IRC
[17:29:00] *** dllama has joined #angularjs
[17:29:02] *** D-Boy has quit IRC
[17:29:06] <msg> so i $watch the object for a change in a specific key, and if changed, i can update the DB accordingly
[17:29:07] <jacuqesdancona> thomasvs: the article is about accessing the filtered array in your template, not accessing it directly from your controller
[17:29:19] <msg> Problem is, it fires every time the user taps a letter
[17:29:30] *** elrabin has joined #angularjs
[17:29:34] <msg> Thats 10 db queries for a 10-letter word :P
[17:29:38] *** avree has joined #angularjs
[17:29:42] <jacuqesdancona> msg: that's expected behaviour
[17:29:47] <msg> jacuqesdancona: yeah sure :)
[17:29:58] <msg> So, how can i get angular to watch only once every 1 second
[17:30:00] <jacuqesdancona> it should do that, because 'a' !== 'aa'
[17:30:02] <thomasvs> jacuqesdancona: yes, but at the end it says: What’s the advantage here? That we can access our filteredPeople where we need it, both in our HTML and controller.
[17:30:09] <msg> or, apply the watch function only once every second
[17:30:14] <thomasvs> jacuqesdancona: so it suggests that it's available on the controller, but doesn't say how.
[17:30:14] <jacuqesdancona> msg use debounce
[17:30:22] <thomasvs> jacuqesdancona: are you saying it is not available on the controller?
[17:30:24] <msg> debounce? ok ill look into it
[17:30:25] <msg> thanks man
[17:30:26] <jacuqesdancona> in angular 1.3 you can set up ng-model-options
[17:30:58] <jacuqesdancona> one sec thomasvs
[17:31:00] *** whitebook has quit IRC
[17:31:09] *** freeAir has joined #angularjs
[17:31:10] *** jumpstracks has quit IRC
[17:31:23] *** theotherguy has joined #angularjs
[17:33:45] *** bayousoft has joined #angularjs
[17:34:41] <jacuqesdancona> click button, check console
[17:35:25] <thomasvs> ok, so the controller should be having access to it
[17:35:30] <jacuqesdancona> it has
[17:35:36] *** Reskp has quit IRC
[17:35:37] <thomasvs> then I need to figure out why my controller seems not to, sigh :)
[17:35:41] <thomasvs> jacuqesdancona: thanks for that sample
[17:35:52] <jacuqesdancona> no problem
[17:36:44] *** pfaal has joined #angularjs
[17:37:45] *** nickgs has joined #angularjs
[17:38:07] *** renlo has joined #angularjs
[17:38:22] *** Reskp_ has joined #angularjs
[17:39:03] *** nerdfiles has joined #angularjs
[17:39:18] *** Reskp__ has joined #angularjs
[17:41:07] <thomasvs> jacuqesdancona: are there any good ways to debug which scope the view is in vs my controller's scope? I don't see why it doesn't show up as I expect it to
[17:41:35] <jacuqesdancona> batarang, a chrome extension
[17:41:39] <jacuqesdancona> or ng-inspector
[17:42:40] *** jumpstracks has joined #angularjs
[17:43:32] *** Reskp_ has quit IRC
[17:43:52] *** elrabin has quit IRC
[17:44:02] <thomasvs> yeah, my batarang is currently doing substrings on undefined, but I'll try ng-inspector
[17:44:14] <thomasvs> it turns out that if I add another simple table with the same ng-repeat, I can access the variable
[17:44:25] <thomasvs> so this custom bp-table someone did is probably messing with the scope somehow
[17:44:31] *** elrabin has joined #angularjs
[17:45:18] *** JBreit has quit IRC
[17:46:00] *** ctanga has joined #angularjs
[17:46:14] *** D-Boy has joined #angularjs
[17:46:41] *** besson3c has joined #angularjs
[17:47:41] *** cebor has quit IRC
[17:47:55] <jacuqesdancona> beerpong-table?
[17:48:28] *** qdk has quit IRC
[17:48:36] *** qdk has joined #angularjs
[17:48:55] *** dob__ has joined #angularjs
[17:49:25] *** cebor has joined #angularjs
[17:49:28] *** SargoDarya has joined #angularjs
[17:49:40] *** tschundeee has joined #angularjs
[17:49:49]
<zwischenzug3> hello. i've created a custom model validator directive with isolated scope, which creates a new object and 2 way binds it to a variable. the new object has some properties which are defined in a closure, and something is getting a bit messed up. here's a plunker: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS?p=preview
[17:49:56] <thomasvs> jacuqesdancona: bradypodion, a framework
[17:49:59] *** IvailoStoianov has joined #angularjs
[17:50:19] <thomasvs> jacuqesdancona: I don't see any parameters to configure the scope, so I'm guessing this directive creates its own scope that I can't access from the controller
[17:50:40] *** ries has quit IRC
[17:50:51] <zwischenzug3> if you type a string, then change the string before the timeout of the oldVal concludes, the new object seems to "inherit" the oldVal's object properties
[17:51:12] *** zwacky has quit IRC
[17:52:05] *** nerdfiles has quit IRC
[17:52:07] <msg> oooooh
[17:52:08] *** dob_ has quit IRC
[17:52:13] <msg> i dont have angular 1.3 -____-
[17:52:21] *** nerdfiles has joined #angularjs
[17:52:23] <msg> trying so hard to use ng-model-options, lol
[17:52:32] <zwischenzug3> i know this is probably a bit of a hack of custom ng-model validation, but is there any other way i can do this? i want to create an object, based on input
[17:52:34] <msg> can i use 1.3? i mean, whats the worst that could happen?
[17:53:08] *** JBreit has joined #angularjs
[17:53:45] *** elrabin has quit IRC
[17:53:51] <jacuqesdancona> Just use 1.3, if things break fix them
[17:54:03] *** SargoDarya has quit IRC
[17:54:14] *** tschundeee has quit IRC
[17:54:30] *** elrabin has joined #angularjs
[17:54:32] <jacuqesdancona> zwischenzug3: what are you trying to do?
[17:54:46] *** WebDevOfDoom has quit IRC
[17:54:54] <jacuqesdancona> oh, you have a plunkr
[17:55:15] *** mikerrrrrr has joined #angularjs
[17:55:37] <jacuqesdancona> err, I guess not
[17:56:33] *** Fishy has joined #angularjs
[17:56:34] <jacuqesdancona> thomasvs: don't know, never used bradypodion
[17:57:19] <msg> jacuqesdancona: hehehe, ok cool :)
[17:57:27] <msg> Well everything seems to work, so im happy :)
[17:57:30] <jacuqesdancona> cool :)
[17:57:36] <msg> And the debounce is working perfectly - thank you :)
[17:57:40] <jacuqesdancona> no problem
[17:57:41] <msg> I have another question -_-
[17:57:43] <msg> lol
[17:57:44] <jacuqesdancona> yes
[17:57:59] <zwischenzug3> jacuqesdancona, i'm trying to create an object based on text input.
[17:58:10] <msg> So the object is only updating max once per 5 seconds - which is good for my database if we were to put that data into it
[17:58:30] <msg> I can make a REST API which takes post data and updates the database, no problems
[17:58:39] <msg> The problem is the $watch
[17:58:42] *** larsam has joined #angularjs
[17:58:42] <zwischenzug3> jacuqesdancona, and this object has properties which are fetched asyncronously
[17:58:44] <jacuqesdancona> thomasvs: that's very plausible
[17:59:03] <jacuqesdancona> can you set up a working plunkr zwischenzug3
[17:59:06] <msg> I can $watch the whole object for any change (true set) but how will i know which part of the object changed?
[17:59:38] <msg> I dont want to send the whole object to the database to update - just the rows that changed (my object is actually a list of objects, sorry)
[17:59:41] *** moritzs has quit IRC
[17:59:43] *** ctanga has quit IRC
[17:59:47] <jacuqesdancona> zwischenzug3: no, it's just anguar without your code
[18:01:28] *** Fishy has quit IRC
[18:01:36] *** whitebook has joined #angularjs
[18:02:19] <jacuqesdancona> msg: if you want the actual difference between two object you'd have to google for it, there isn't an angular out-of-the-box solution for it
[18:03:01] *** kotow has quit IRC
[18:03:24] *** IvailoStoianov has quit IRC
[18:03:34] <jacuqesdancona> zwischenzug3: I don't really understand what you're trying to do here
[18:03:46] *** Reskp__ has quit IRC
[18:03:53] *** elrabin has quit IRC
[18:04:30] *** elrabin has joined #angularjs
[18:05:01] <zwischenzug3> jacuqesdancona, i'm trying to create an object. this object is created based on user input, and asyncronously fetches information when it is created.
[18:05:24] <jacuqesdancona> yeah ok
[18:05:46] *** meconi has joined #angularjs
[18:06:32] *** Reskp has joined #angularjs
[18:06:37] <zwischenzug3> the asyncronous part is what's broken (both id, and expected finish get updated properly)
[18:06:44] *** ron_frown has quit IRC
[18:06:51] *** Reskp has joined #angularjs
[18:07:44] *** whitebook has quit IRC
[18:08:02] <zwischenzug3> when the input value changes, a new object gets created, and key.async.finish is undefined on that object. instead of showing undefined, the view shows the old key.async.finish
[18:08:06] *** max_dev1 has joined #angularjs
[18:08:38] <jacuqesdancona> Don't you just need $asyncValidators?
[18:08:52] *** e0ipso is now known as e0ipso|away
[18:09:38] <zwischenzug3> meh....it's not really validation which is happening, so i don't think that would be the right approach
[18:09:48] <zwischenzug3> i don't think this is really the right approach either
[18:09:54] *** freeAir has quit IRC
[18:10:10] *** joroci has joined #angularjs
[18:10:32] *** adben- has quit IRC
[18:10:52] <zwischenzug3> imagine you have an input for "movie name". when you type in the name, it creates a movie model object and asyncronously fetches year, actor, etc.
[18:11:05] <jacuqesdancona> you realize the $formatters and $parsers aren't actually waiting for your async stuff?
[18:11:22] *** max_dev has quit IRC
[18:11:48] *** IvailoStoianov has joined #angularjs
[18:11:49] <zwischenzug3> yes, that's mostly a hack so that i can create my model object when the ng-model's value changes
[18:12:23] <jacuqesdancona> ah ok
[18:12:39] *** Nivag_ has joined #angularjs
[18:12:42] <zwischenzug3> this let's me set a debounce as well
[18:12:47] *** numproc has quit IRC
[18:12:57] *** Reskp has quit IRC
[18:12:57] *** WebDevOfDoom has joined #angularjs
[18:13:21] *** KushS has quit IRC
[18:13:30] <jacuqesdancona> yeah ok, got it
[18:13:35] *** elrabin has quit IRC
[18:14:02] *** Nurbs has joined #angularjs
[18:14:23] *** joroc has quit IRC
[18:14:36] <jacuqesdancona> well, atleast why you're using the parsers/formatters
[18:14:42] <jacuqesdancona> ok, but what is the actual problem?
[18:15:01] <jacuqesdancona> I'm sorry, I'm still having a hard time understanding what you're trying to do, and why it isn't working the way you want it
[18:16:12] *** rikko has quit IRC
[18:16:15] <zwischenzug3> ok, let me make my plunker a bit more clear......1 sec
[18:16:21] <jacuqesdancona> ok
[18:16:26] *** ries has joined #angularjs
[18:16:33] *** nickgs has quit IRC
[18:16:44] <jacuqesdancona> The plunkr is exactly doing what it should be doing imho
[18:17:18] <jacuqesdancona> for every model change, create a new CryptoObj, for every CryptoObj set up the $timeout
[18:17:30] *** netameta has joined #angularjs
[18:17:32] *** Oddman has joined #angularjs
[18:18:01] <jacuqesdancona> You're not cancelling a timeout, you're just setting up $timeouts per ngModel change
[18:18:46] *** netameta_ has quit IRC
[18:19:03] *** elrabin has joined #angularjs
[18:20:16] *** devylon has joined #angularjs
[18:20:51] *** tomaso has quit IRC
[18:21:31] *** kapil__ has quit IRC
[18:22:10] <zwischenzug3> right, but that new object gets overwritten on ngModel change
[18:22:19] *** rajatarora has quit IRC
[18:22:31] <jacuqesdancona> well, not really imho
[18:22:41] <zwischenzug3> so why can we see a change in key.id, but not in key.async.finish?
[18:23:02] <jacuqesdancona> those $timeouts are still running
[18:23:38] <zwischenzug3> right, but when they complete, which object do they update?
[18:23:47] *** elrabin has quit IRC
[18:23:50] *** ejb has quit IRC
[18:23:59] *** tomaso has joined #angularjs
[18:24:31] *** elrabin has joined #angularjs
[18:24:37] <jacuqesdancona> scope.cryptoModel
[18:25:04] <zwischenzug3> but that object has been overwritten since the timeout started
[18:25:24] <jacuqesdancona> yeah, but it's getting reset after the $timeout
[18:25:39] *** MuffinMan` has joined #angularjs
[18:25:41] <jacuqesdancona> right?
[18:25:46] *** StryKaizer has joined #angularjs
[18:26:17] <zwischenzug3> let me make a plain js with timeouts to see if it's just a JS problem
[18:28:07] <jacuqesdancona> isn't this what you want?
[18:28:45] *** rajatarora has joined #angularjs
[18:30:17] *** danecando has joined #angularjs
[18:31:05] <zwischenzug3> no, because the data becomes stale when ng-model changes
[18:31:08] *** ejb has joined #angularjs
[18:31:31] <jacuqesdancona> what's 'stale' ?
[18:31:35] <zwischenzug3> so, for the movie example, we see that the movie name has changed (appropriately), but the actor is the same as the old movie
[18:32:35] <zwischenzug3> the actor.data should be undefined as soon as the model changes, until the timeout for that object complete (not the timeout of the previous object)
[18:33:27] *** pspfolio has quit IRC
[18:33:34] *** elrabin has quit IRC
[18:33:52] *** KushS has joined #angularjs
[18:33:52] *** slopjong has joined #angularjs
[18:34:14] *** Shadda has joined #angularjs
[18:34:28] *** elrabin has joined #angularjs
[18:36:20] <jacuqesdancona> ?
[18:36:24] *** eago_ has quit IRC
[18:36:36] *** dob__ has quit IRC
[18:36:45] *** mkc has quit IRC
[18:37:14] *** dob_ has joined #angularjs
[18:37:19] *** mven has joined #angularjs
[18:37:22] *** Trow2 has joined #angularjs
[18:37:54] *** dob_ has quit IRC
[18:37:57] *** aminRX has quit IRC
[18:38:19] <jacuqesdancona> that.data will always be the last value before the new 4000 ms $timeout run
[18:38:28] *** j_wright has joined #angularjs
[18:39:39] *** mkc has joined #angularjs
[18:39:39] <jacuqesdancona> So when you're getting a new movie, it'll wait for 4000ms to update that.data
[18:39:46] *** cthrax has joined #angularjs
[18:40:14] *** joroc has joined #angularjs
[18:41:13] *** Trow1 has quit IRC
[18:41:15] *** IvailoStoianov has quit IRC
[18:41:58] *** IvailoStoianov has joined #angularjs
[18:42:23] <zwischenzug3> ok.....yea, this works
[18:42:37] <zwischenzug3> i think my problem is that JS doesn't work as i expect it to
[18:42:55] *** ngbot has joined #angularjs
[18:42:55]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/ILr3zw
[18:42:55] <ngbot> angular.js/master 4836dac OKNoah: docs($http): fix markdown formatting...
[18:42:55] *** ngbot has left #angularjs
[18:43:21] <zwischenzug3> i'd expect the data in the closure to be completely isolated from any other data, and each object has it's own closure
[18:43:26] <zwischenzug3> but that doesn't seem to be the case
[18:43:34] *** joroci has quit IRC
[18:43:37] *** elrabin has quit IRC
[18:44:08] *** mkc has quit IRC
[18:44:50] *** elrabin has joined #angularjs
[18:45:17] *** IvailoStoianov_ has joined #angularjs
[18:45:35] *** rileylark has joined #angularjs
[18:46:16] *** nickgs has joined #angularjs
[18:47:06] *** Reskp has joined #angularjs
[18:47:07] *** _Marty has joined #angularjs
[18:47:17] *** IvailoStoianov has quit IRC
[18:47:22] *** IvailoStoianov_ is now known as IvailoStoianov
[18:48:20] *** numenor has quit IRC
[18:48:21] <jacuqesdancona> so data would be persistant in memory?
[18:48:47] *** Reskp has quit IRC
[18:48:47] <jacuqesdancona> it would/should be picked up by the garbage collector as soon as possible afaik
[18:49:05] *** mven has quit IRC
[18:49:16] *** ngbot has joined #angularjs
[18:49:16]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/fIVR5w
[18:49:16] <ngbot> angular.js/master 1eb6036 Chris Schmitz: docs($compile) fix a typo...
[18:49:16] *** ngbot has left #angularjs
[18:49:17] *** elrabin has quit IRC
[18:49:41] *** tschundeee has joined #angularjs
[18:50:51] *** SargoDarya has joined #angularjs
[18:51:02] *** ngbot has joined #angularjs
[18:51:02]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/jCR2nQ
[18:51:02] <ngbot> angular.js/master 2e721a7 mjfroehlich: docs(guide/modules): fix minor typos...
[18:51:02] *** ngbot has left #angularjs
[18:51:46] *** Reskp_ has joined #angularjs
[18:52:09] *** leolrrj has quit IRC
[18:52:09] *** zumba_addict has joined #angularjs
[18:53:37] *** frabblerock has quit IRC
[18:54:28] *** tschundeee has quit IRC
[18:54:46] *** matheusrocha89 has joined #angularjs
[18:55:06] *** WebDevOfDoom has quit IRC
[18:56:14] *** jacuqesdancona has quit IRC
[18:56:31] *** OnkelTem has quit IRC
[18:56:34] *** WebDevOfDoom has joined #angularjs
[18:56:38] *** ejb has quit IRC
[18:56:43] *** Reskp_ has quit IRC
[18:56:49] *** jacuqesdancona has joined #angularjs
[18:57:07] *** mmealling has quit IRC
[18:57:18] *** Fishy has joined #angularjs
[18:58:07] *** evotuned has joined #angularjs
[18:58:27] *** Reskp has joined #angularjs
[18:59:49] *** MistahKurtz has joined #angularjs
[19:00:17] *** sshaginyan has joined #angularjs
[19:01:04] *** rileylark has quit IRC
[19:01:08] *** jacuqesdancona has quit IRC
[19:01:22] *** elrabin has joined #angularjs
[19:01:53] *** Fishy has quit IRC
[19:02:22] *** StryKaizer has quit IRC
[19:02:27] *** matheusrocha89 has quit IRC
[19:02:39] *** TommyO has joined #angularjs
[19:02:49] *** evotuned has quit IRC
[19:02:52] *** juzemack has joined #angularjs
[19:03:32] *** jacquesdancona has joined #angularjs
[19:03:56] *** whitebook has joined #angularjs
[19:04:14] *** bayousoft has quit IRC
[19:05:04] *** JesseH has quit IRC
[19:05:54] *** eago_ has joined #angularjs
[19:08:57] *** kkthxbye has quit IRC
[19:09:11] *** ejb has joined #angularjs
[19:10:05] *** KushS has quit IRC
[19:10:15] *** joroci has joined #angularjs
[19:10:20] *** matheusrocha89 has joined #angularjs
[19:10:22] *** fedenunez has joined #angularjs
[19:11:04] *** johnstorey has joined #angularjs
[19:11:10] *** rileylark has joined #angularjs
[19:12:16] *** TommyO has quit IRC
[19:12:25] *** leolrrj has joined #angularjs
[19:12:31] *** SargoDarya has quit IRC
[19:13:34] *** joroc has quit IRC
[19:14:32] *** matheusrocha89 has quit IRC
[19:14:49] *** Reskp has quit IRC
[19:15:48] *** cjustiniano has quit IRC
[19:16:00] *** mrru has quit IRC
[19:16:08] *** nickgs has quit IRC
[19:18:11] *** corealis has joined #angularjs
[19:18:43] *** corealis has quit IRC
[19:18:51] *** corealis has joined #angularjs
[19:19:48] *** Reskp has joined #angularjs
[19:22:13] *** KushS has joined #angularjs
[19:22:24] *** rcanepa has joined #angularjs
[19:24:02] *** OnkelTem has joined #angularjs
[19:24:03] *** Reskp has quit IRC
[19:24:26] *** Sky[x] has joined #angularjs
[19:24:43] *** cjustiniano has joined #angularjs
[19:25:04] *** tristanp has joined #angularjs
[19:25:07] *** Reskp has joined #angularjs
[19:25:17] *** cacts|wtf has joined #angularjs
[19:26:03] *** deranged has quit IRC
[19:26:56] *** Foxandxss has joined #angularjs
[19:27:00] *** KushS has quit IRC
[19:27:30] *** deranged has joined #angularjs
[19:27:38] *** cjustiniano has quit IRC
[19:27:59] *** whitebook has quit IRC
[19:28:24] *** grumpyOldRussian has joined #angularjs
[19:28:30] *** Menorah has quit IRC
[19:28:32] *** leolrrj has quit IRC
[19:28:46] *** IvailoStoianov has quit IRC
[19:28:47] *** whitebook has joined #angularjs
[19:29:31] *** IvailoStoianov has joined #angularjs
[19:30:42] *** Reskp has quit IRC
[19:31:37] *** manekinekko has joined #angularjs
[19:31:52] *** sshaginyan has quit IRC
[19:32:00] *** zeezey has quit IRC
[19:32:24] *** manekinekko has quit IRC
[19:33:34] *** whitebook has quit IRC
[19:34:30] *** cesarkawakami has quit IRC
[19:34:38] *** sandor_nemeth has joined #angularjs
[19:36:10] *** ejb has quit IRC
[19:36:53] *** bloomingadam has joined #angularjs
[19:37:12] *** Reskp has joined #angularjs
[19:37:36] *** KushS has joined #angularjs
[19:38:47] *** WebDevOfDoom has quit IRC
[19:39:38] *** annlewis has joined #angularjs
[19:39:45] *** boxmein has quit IRC
[19:39:49] *** Reskp has quit IRC
[19:40:18] *** joroc has joined #angularjs
[19:41:19] *** theotherguy has quit IRC
[19:42:02] *** Jet4Fire has joined #angularjs
[19:42:10] *** elrabin has quit IRC
[19:42:42] *** elrabin has joined #angularjs
[19:43:01] *** bloomingadam has quit IRC
[19:43:32] *** JBreit has quit IRC
[19:43:56] *** joroci has quit IRC
[19:44:28] *** annlewis has quit IRC
[19:47:09] *** elrabin has quit IRC
[19:47:52] *** elrabin has joined #angularjs
[19:49:37] *** tschundeee has joined #angularjs
[19:50:55] *** mary5030 has joined #angularjs
[19:51:19] *** DLSteve has joined #angularjs
[19:51:31] *** Teddy_ has joined #angularjs
[19:52:11] *** elrabin has quit IRC
[19:52:23] *** devylon has quit IRC
[19:52:43] *** Reskp has joined #angularjs
[19:52:59] *** Teddy_ is now known as TeddyMurray
[19:54:07] *** Menorah has joined #angularjs
[19:54:11] *** tschundeee has quit IRC
[19:54:37] *** swist_ has quit IRC
[19:55:03] *** swist has joined #angularjs
[19:55:16] *** disusered has joined #angularjs
[19:55:23] *** snurfery has joined #angularjs
[19:55:39] *** jaredwilli has joined #angularjs
[19:56:49] *** Reskp has quit IRC
[19:57:00] *** eburcat has joined #angularjs
[19:57:03] *** Reskp has joined #angularjs
[19:57:55] *** JBreit has joined #angularjs
[19:58:03] *** elrabin has joined #angularjs
[19:58:06] *** Fishy has joined #angularjs
[19:59:13] *** evotuned has joined #angularjs
[19:59:40] *** mrru has joined #angularjs
[19:59:53] *** snurfery has quit IRC
[20:01:33] *** BahamutWC has quit IRC
[20:02:13] *** mrwn has quit IRC
[20:02:23] *** elrabin has quit IRC
[20:02:34] *** Fishy has quit IRC
[20:02:36] *** mrwn has joined #angularjs
[20:02:55] *** BahamutWC has joined #angularjs
[20:03:07] *** annlewis has joined #angularjs
[20:04:15] *** evotuned has quit IRC
[20:04:49] *** mlpug has quit IRC
[20:05:05] *** cjustiniano has joined #angularjs
[20:05:36] *** Hackwar1 has joined #angularjs
[20:05:52] *** mlpug has joined #angularjs
[20:06:21] *** bbankes has joined #angularjs
[20:06:52] *** Hackwar has quit IRC
[20:07:22] *** annlewis has quit IRC
[20:07:25] *** elrabin has joined #angularjs
[20:07:26] *** jacuqesdancona has joined #angularjs
[20:09:40] *** SargoDarya has joined #angularjs
[20:10:14] *** joroci has joined #angularjs
[20:10:14] *** TommyO has joined #angularjs
[20:11:54] *** jacuqesdancona has quit IRC
[20:11:57] *** elrabin has quit IRC
[20:12:46] *** elrabin has joined #angularjs
[20:12:52] *** tSpartak has quit IRC
[20:13:17] *** mrru has quit IRC
[20:13:18] *** dc_ has joined #angularjs
[20:14:17] *** Shai_Tan has quit IRC
[20:14:23] *** joroc has quit IRC
[20:17:07] *** elrabin has quit IRC
[20:17:41] *** Reskp has quit IRC
[20:18:37] *** bbankes has quit IRC
[20:18:52] *** charuru has joined #angularjs
[20:21:06] *** Reskp has joined #angularjs
[20:21:21] *** Trow1 has joined #angularjs
[20:22:45] *** eago_ has quit IRC
[20:23:07] *** elrabin has joined #angularjs
[20:23:12] *** Sky[x] has quit IRC
[20:23:37] *** KushS has quit IRC
[20:23:42] *** fotoflo has joined #angularjs
[20:23:54] *** bbankes has joined #angularjs
[20:24:20] *** Reskp has quit IRC
[20:24:40] *** Trow2 has quit IRC
[20:25:02] *** jamto11 has quit IRC
[20:25:08] *** Reskp has joined #angularjs
[20:25:48] *** manekinekko has joined #angularjs
[20:26:13] *** HassanCehef has joined #angularjs
[20:26:43] *** jaredwilli has quit IRC
[20:26:54] *** nemothekid has joined #angularjs
[20:26:56] *** ximenean___ has joined #angularjs
[20:27:34] *** MistahKurtz has quit IRC
[20:27:58] *** KushS has joined #angularjs
[20:28:07] *** circ-user-dfR6V has joined #angularjs
[20:28:31] *** tristanp has quit IRC
[20:29:01] *** SergioFilhow_ has quit IRC
[20:29:20] <mylordi> how can I go back to a state/url (in the same controller) and have it maintain my page and my position in it?
[20:29:35] *** Reskp has quit IRC
[20:29:46] *** MistahKurtz has joined #angularjs
[20:30:18] *** SargoDarya has quit IRC
[20:31:29] *** Trow2 has joined #angularjs
[20:32:16] *** ximenean___ has quit IRC
[20:32:43] *** Reskp has joined #angularjs
[20:34:00] *** Sky[x] has joined #angularjs
[20:34:29] *** jamto11 has joined #angularjs
[20:35:31] *** rickhanlonii has quit IRC
[20:35:49] *** Trow1 has quit IRC
[20:36:57] *** elrabin has quit IRC
[20:37:46] *** elrabin has joined #angularjs
[20:37:47] *** rajatarora has quit IRC
[20:38:37] <corealis> mylordi: listen to the statechange event in your controller. Store state when leaving and restore when getting back (check if stored state is present in sessionstorage or something). Or store info in sessionstorage when you change focus and read sessionstorage when your controller get instantiated again. maybe?
[20:39:37] <mylordi> corealis: but won't the DOM still load again, slowly, or all at once (invisibly)?
[20:39:39] *** annlewis has joined #angularjs
[20:39:57] *** platonic has joined #angularjs
[20:39:59] *** zeezey has joined #angularjs
[20:40:16] *** joroc has joined #angularjs
[20:40:43] *** Aliks has joined #angularjs
[20:41:24] *** ChadStrat has joined #angularjs
[20:41:33] *** Trow1 has joined #angularjs
[20:42:39] *** shpoont has quit IRC
[20:42:52] *** mven has joined #angularjs
[20:43:52] *** bbankes has quit IRC
[20:43:57] *** bbankes_ has joined #angularjs
[20:44:04] *** joroci has quit IRC
[20:44:18] *** annlewis has quit IRC
[20:45:23] *** Trow2 has quit IRC
[20:45:56] *** snurfery has joined #angularjs
[20:46:23] *** mkc has joined #angularjs
[20:46:35] *** nahoskins has quit IRC
[20:46:58] *** cakirke has joined #angularjs
[20:47:08] *** manekinekko has quit IRC
[20:47:15] *** elrabin has quit IRC
[20:47:16] *** rhp has joined #angularjs
[20:47:54] *** whitebook has joined #angularjs
[20:47:55] *** elrabin has joined #angularjs
[20:48:49] *** ximenean___ has joined #angularjs
[20:48:54] *** nahoskins has joined #angularjs
[20:49:39] *** tschundeee has joined #angularjs
[20:51:40] *** Trow2 has joined #angularjs
[20:52:15] *** elrabin has quit IRC
[20:52:27] <snurfery> sup yal
[20:52:28] <snurfery> yall*
[20:52:52] *** titanomachy has quit IRC
[20:52:54] *** whitebook has quit IRC
[20:53:54] *** titanomachy has joined #angularjs
[20:54:09] *** mary5030 has quit IRC
[20:54:30] *** tschundeee has quit IRC
[20:54:36] *** opiates has joined #angularjs
[20:54:44] *** mary5030 has joined #angularjs
[20:55:33] *** Trow1 has quit IRC
[20:56:30] *** ngbot has joined #angularjs
[20:56:31] <ngbot> angular.js/master e9bf93d Lucas Galfaso: refactor(*): rename internal function `int` to `toInt`...
[20:56:31] *** ngbot has left #angularjs
[20:56:58] *** KushS_ has joined #angularjs
[20:57:04] *** KushS has quit IRC
[20:57:07] *** jaredwilli has joined #angularjs
[20:57:34] *** cthrax has quit IRC
[20:58:07] *** elrabin has joined #angularjs
[20:58:32] *** ngbot has joined #angularjs
[20:58:32] <ngbot> angular.js/master d224fe8 Lucas Galfaso: docs(input): fix typo...
[20:58:32] *** ngbot has left #angularjs
[20:58:53] *** Fishy has joined #angularjs
[20:59:00] *** mary5030 has quit IRC
[20:59:03] *** manekinekko has joined #angularjs
[20:59:43] *** Reskp has quit IRC
[21:00:02] *** BahamutWC|Laptop has joined #angularjs
[21:00:11] *** evotuned has joined #angularjs
[21:00:31] *** Milkweed has quit IRC
[21:01:07] *** grumpyOldRussian has quit IRC
[21:01:43] *** Trow1 has joined #angularjs
[21:01:54] *** platonic has quit IRC
[21:02:23] *** Zebra111 has quit IRC
[21:02:27] *** elrabin has quit IRC
[21:02:31] *** grumpyOldRussian has joined #angularjs
[21:03:23] *** Fishy has quit IRC
[21:04:35] *** Zebra111 has joined #angularjs
[21:04:39] *** evotuned has quit IRC
[21:04:39] *** fotoflo has quit IRC
[21:05:04] *** Reskp has joined #angularjs
[21:05:31] *** Trow2 has quit IRC
[21:05:40] *** jaredwilli has quit IRC
[21:06:34] *** ChadStrat has quit IRC
[21:06:47] *** Reskp has quit IRC
[21:07:17] *** fotoflo has joined #angularjs
[21:08:20] *** Reskp has joined #angularjs
[21:09:36] *** Reskp has quit IRC
[21:10:17] *** joroci has joined #angularjs
[21:10:20] *** bbankes_ has quit IRC
[21:11:50] *** Trow2 has joined #angularjs
[21:13:01] *** snurfery has quit IRC
[21:13:13] *** numproc has joined #angularjs
[21:13:37] *** joroc has quit IRC
[21:14:17] *** nemothekid has quit IRC
[21:14:40] *** Nivag_ has quit IRC
[21:15:11] *** shpoont has joined #angularjs
[21:15:21] *** jdivock has joined #angularjs
[21:15:29] *** Trow1 has quit IRC
[21:16:01] *** rileylark has quit IRC
[21:16:51] *** jdivock has quit IRC
[21:17:19] *** mary5030 has joined #angularjs
[21:17:21] *** Menorah has quit IRC
[21:17:38] *** Menorah has joined #angularjs
[21:18:12] *** Thorn has quit IRC
[21:18:37] *** wa5ted is now known as thequickbrownfox
[21:18:40] *** Trow2 has quit IRC
[21:18:49] *** thequickbrownfox is now known as wa5ted
[21:18:51] *** Reskp has joined #angularjs
[21:19:52] *** zumba_addict has quit IRC
[21:20:11] *** disorder20 has joined #angularjs
[21:20:52] *** mary5030 has quit IRC
[21:21:23] *** Nivag_ has joined #angularjs
[21:21:26] *** mary5030 has joined #angularjs
[21:22:00] *** rileylark has joined #angularjs
[21:22:10] *** Trow has joined #angularjs
[21:22:23] *** elrabin has joined #angularjs
[21:22:44] *** ximenean___ has quit IRC
[21:23:05] *** e0ipso|away is now known as e0ipso
[21:23:43] *** sandor_nemeth has quit IRC
[21:24:24] *** Reskp has quit IRC
[21:24:37] *** aminRX has joined #angularjs
[21:24:50] *** Reskp has joined #angularjs
[21:24:55] *** soee_ has joined #angularjs
[21:25:43] *** eago_ has joined #angularjs
[21:25:51] *** fotoflo has quit IRC
[21:25:55] *** mary5030 has quit IRC
[21:26:49] *** elrabin has quit IRC
[21:27:11] *** SargoDarya has joined #angularjs
[21:27:48] *** elrabin has joined #angularjs
[21:28:08] *** numproc has quit IRC
[21:28:23] *** soee has quit IRC
[21:28:46] *** soee_ is now known as soee
[21:28:59] *** mlpug has quit IRC
[21:30:10] *** Lorthirk has joined #angularjs
[21:30:33] *** Reskp has quit IRC
[21:31:26] *** nemothekid has joined #angularjs
[21:31:34] *** Reskp has joined #angularjs
[21:31:43] *** SargoDarya has quit IRC
[21:31:50] *** rcanepa has quit IRC
[21:32:01] *** Trow1 has joined #angularjs
[21:32:16] *** elrabin has quit IRC
[21:32:32] *** Pons has joined #angularjs
[21:33:10] *** buzzlock has quit IRC
[21:33:13] *** elrabin has joined #angularjs
[21:33:24] *** KushS_ has quit IRC
[21:33:27] *** Johnny13371337 has joined #angularjs
[21:33:51] *** nerdfiles has quit IRC
[21:33:58] <marktraceur> So I have a template with this line: ng-class="{'min-highlighted': performer.id == highlightedItem}"
[21:34:08] *** nerdfiles has joined #angularjs
[21:34:11] <marktraceur> This works when I have a single variable, will the conditional work?
[21:34:25] <marktraceur> (because I'm not seeing it working, but this may be a bug elsewhere, I'm having trouble tracking it down)
[21:35:13] <marktraceur> highlightedItem is an ID from an object in a list, and performer in items is the iterator I'm using
[21:35:35] *** renlo_ has joined #angularjs
[21:35:43] *** Trow has quit IRC
[21:35:47] <marktraceur> items is the list from which the ID is given, clearly
[21:35:57] *** renlo has quit IRC
[21:35:57] *** renlo_ is now known as renlo
[21:36:34] *** Thorn has joined #angularjs
[21:36:36] *** Reskp has quit IRC
[21:36:42] <marktraceur> hm..it looks like it's working, just not on the initial load.
[21:36:50] *** evotuned has joined #angularjs
[21:37:29] *** platonic has joined #angularjs
[21:37:55] <marktraceur> Ugh, will dig more.
[21:38:57] *** nerdfiles has quit IRC
[21:39:11] *** nerdfiles has joined #angularjs
[21:39:24] *** e0ipso is now known as e0ipso|away
[21:39:38] *** annlewis has joined #angularjs
[21:40:12] <wafflej0ck> marktraceur, it works for sure if you have something more complex you may want to just write a helper function in the controller to do the logic and return the object for ng-class to use to setup classes instead of doing it inline
[21:40:21] *** joroc has joined #angularjs
[21:40:22] *** cthrax has joined #angularjs
[21:40:44] <marktraceur> Yeah
[21:41:11] <marktraceur> wafflej0ck: I had it running through a list of items and setting a boolean, but that seems overly complicated
[21:41:15] *** annlewis has quit IRC
[21:41:24] *** annlewis has joined #angularjs
[21:42:17] *** Trow has joined #angularjs
[21:42:41] *** speaking1ode has joined #angularjs
[21:43:37] *** opiates has quit IRC
[21:43:43] *** joroci has quit IRC
[21:43:46] *** Shai-Tan has joined #angularjs
[21:44:40] <marktraceur> Ugh, so weird
[21:44:49] <marktraceur> The variable gets set, and the boolean *must* be true
[21:45:08] <wafflej0ck> marktraceur, yeah show the problem in a plunkr if you get stuck, helps to reduce the problem and share it with us
[21:45:20] *** earthquake has joined #angularjs
[21:45:59] *** annlewis has quit IRC
[21:46:04] *** Trow1 has quit IRC
[21:46:15] <marktraceur> OK
[21:46:39] *** elrabin has quit IRC
[21:46:53] <marktraceur> I'm not sure it will be that easy, it depends on a server-side thing I have
[21:47:04] <marktraceur> I thought it might have been a race condition, but that seems unlikely now
[21:47:26] <wafflej0ck> well if you just duplicate your server side response put it in a data.json file and load it with $http you can pretty much simulate it all
[21:47:48] <wafflej0ck> and if you get it working in the plunkr you can be sure of what's needed client side
[21:47:50] *** elrabin has joined #angularjs
[21:48:01] <wafflej0ck> that's the great thing about a clear separation between the client and server
[21:48:04] <wafflej0ck> can debug each separately
[21:49:04] <marktraceur> Mm.
[21:49:13] <marktraceur> Well, I'll give it a shot
[21:49:47] *** tschundeee has joined #angularjs
[21:50:38] *** boxmein has joined #angularjs
[21:50:58] *** whunt has joined #angularjs
[21:52:19] *** elrabin has quit IRC
[21:52:20] *** Trow1 has joined #angularjs
[21:53:38] *** Reskp has joined #angularjs
[21:53:47] *** dc_ has quit IRC
[21:54:03] *** tschundeee has quit IRC
[21:54:22] *** nerdfiles has quit IRC
[21:54:37] *** nerdfiles has joined #angularjs
[21:55:48] *** erictr1ck has joined #angularjs
[21:56:17] *** Trow has quit IRC
[21:56:43] *** IvailoStoianov has quit IRC
[21:57:19] *** elrabin has joined #angularjs
[21:58:21] *** platonic has quit IRC
[21:58:34] *** tristanp has joined #angularjs
[21:59:11] *** Jet4Fire has quit IRC
[21:59:27] *** tSpartak has joined #angularjs
[21:59:36] *** Fishy has joined #angularjs
[22:00:07] <marktraceur> Hm...seems to work fine there
[22:00:35] *** Reskp has quit IRC
[22:00:59] *** Reskp has joined #angularjs
[22:01:07] <marktraceur> I'm using way more factories, and the highlighted item is based on another factory in the real code
[22:01:21] <marktraceur> I guess this means there's something screwing with the values somewhere else...
[22:01:33] *** jonathanpglick has joined #angularjs
[22:01:45] *** elrabin has quit IRC
[22:01:49] *** annlewis has joined #angularjs
[22:01:59] *** jaredwilli has joined #angularjs
[22:02:08] *** KushS has joined #angularjs
[22:02:12] <marktraceur> Aha, the highlightedItem variable gets cleared somehow
[22:02:45] *** Trow2 has joined #angularjs
[22:02:45] *** Trow2 is now known as Trow
[22:02:47] *** elrabin has joined #angularjs
[22:02:56] *** leolrrj has joined #angularjs
[22:03:01] <marktraceur> However, that only happens in one place.
[22:03:53] *** Fishy has quit IRC
[22:06:07] *** Trow1 has quit IRC
[22:06:28] *** jaredwilli has quit IRC
[22:06:52] <wafflej0ck> marktraceur, you shouldn't store primitives or strings on the scope directly
[22:07:37] *** pHcF has quit IRC
[22:08:39] <marktraceur> wafflej0ck: How do you suggest doing it?
[22:08:43] *** aminRX has quit IRC
[22:08:51] <wafflej0ck> marktraceur, should be like $scope.model = {highlightedItem:2}; or you can use the controllerAs syntax and do something like var ctrl = this; ctrl.highlightedItem = 2;
[22:09:06] <marktraceur> Hm, 'kay
[22:09:15] <marktraceur> Gonna need a bit of time to convert it.
[22:09:17] <wafflej0ck> I don't really see what's "wrong" int he plunkr though
[22:09:25] <marktraceur> Yeah, everything works fine there
[22:09:41] <marktraceur> Now I'm seeing my resources crossing the streams...one factory in the place of another
[22:09:42] *** pHcF has joined #angularjs
[22:09:45] <marktraceur> Very strange stuff
[22:10:06] *** numproc has joined #angularjs
[22:10:16] *** jonathanpglick has quit IRC
[22:12:08] *** jonathanpglick has joined #angularjs
[22:12:09] *** elrabin has quit IRC
[22:12:29] *** Trow1 has joined #angularjs
[22:12:42] *** enaqx has quit IRC
[22:12:59] *** nemothekid has quit IRC
[22:13:01] *** gunn has joined #angularjs
[22:13:07] *** elrabin has joined #angularjs
[22:13:48] *** nemothekid has joined #angularjs
[22:14:17] *** Reskp has quit IRC
[22:14:17] <marktraceur> wafflej0ck: So just adding an object to the $scope, say $scope.model, and using model.<whatever> everywhere, should help?
[22:14:31] <marktraceur> At worst, won't hurt?
[22:14:41] *** Reskp has joined #angularjs
[22:15:15] <wafflej0ck> marktraceur, yeah if you're using $scope you want to make sure you have an object on it that's your model not using the $scope itself directly otherwise you run into problems with overwriting the properties in child scopes that are inheriting from some parent scope
[22:15:57] <marktraceur> 'kay
[22:15:59] *** grumpyOldRussian has quit IRC
[22:16:15] <wafflej0ck> marktraceur, usually I actually just store the data in the factory and I inject the factory and put a reference to it on the scope, then I reference through the factory to get the data in the view
[22:16:18] <marktraceur> <3 hours of rewriting templates later...>
[22:16:25] *** Trow has quit IRC
[22:16:48] <wafflej0ck> marktraceur, yeah it's kind of a pain in the ass, but it saves you from strangeness
[22:16:57] <marktraceur> My factories will definitely be making this model object, yes
[22:17:09] <marktraceur> It won't be so bad rewriting the factories
[22:17:27] <marktraceur> So did I miss this in the tutorial, or was it just totally not there
[22:17:33] <wafflej0ck> probably not there
[22:17:45] <marktraceur> Sigh.
[22:17:49] *** elrabin has quit IRC
[22:19:13] <wafflej0ck> think it's something most tutorials don't want to bog you down with initially, and I ***think*** it's not a problem if you use controllerAs but I haven't experimented with it really to see yet
[22:19:38] <marktraceur> Hm.
[22:19:50] *** adben- has joined #angularjs
[22:19:54] *** evilaliv3 has joined #angularjs
[22:20:14] *** platonic has joined #angularjs
[22:20:57] *** earthquake has quit IRC
[22:21:23] *** jonathanpglick has quit IRC
[22:21:47] *** fedenunez has quit IRC
[22:22:00] <wafflej0ck> also ultimately if you put most of your stuff in services/factories and just use controllers as a thin layer of glue to hook those up to the view, then sort of automatically eliminate the problem too
[22:22:10] *** slopjong has quit IRC
[22:22:13] *** jonathanpglick has joined #angularjs
[22:22:37] *** Trow2 has joined #angularjs
[22:24:05] *** renlo has quit IRC
[22:25:51] *** chrisshattuck has joined #angularjs
[22:26:26] *** Trow1 has quit IRC
[22:26:41] *** evotuned has quit IRC
[22:26:57]
<soee> hi all, when tying to use this example https://gist.github.com/jelbourn/6276338 my app throws an error: Error: (intermediate value).prototype is undefined probably when it tries to instantiate models
[22:27:06] <soee> any idea how to solve this ?
[22:27:45] <marktraceur> wafflej0ck: Well, I added my model object, it didn't magically fix things, so maybe I'm doing something else wrong, I dunno
[22:28:50] *** SargoDarya has joined #angularjs
[22:28:56] <marktraceur> And yeah, it's all in services and factories but for a few injections in controller files
[22:29:35] *** johnstorey has quit IRC
[22:29:54] *** nahoskins has quit IRC
[22:30:10] <wafflej0ck> marktraceur, yeah it helps sometimes to just have {{someObject}} in your view so you can watch as the value changes to be sure it is what's expected, if not just search your source for the property it must be changed somewhere, put breakpoints anywhere it could be changed in the JS to see what's changing it in the wrong way
[22:30:53] <marktraceur> I suppose so.
[22:31:05] <marktraceur> Things keep getting weirder, the longer I debug this :P
[22:31:24] *** zz_night-owl is now known as night-owl
[22:32:01] *** mary5030 has joined #angularjs
[22:32:06] <wafflej0ck> soee, what line is throwing the error is the first place to start
[22:32:29] *** dc_ has joined #angularjs
[22:32:38] <marktraceur> Oh! Something got less weird. Awesome.
[22:32:44] *** Trow1 has joined #angularjs
[22:32:59] <wafflej0ck> ah suppose the same for the ApiEndpointConfig and ApiEndpoint wrt the .prototype stuff
[22:33:02] <marktraceur> (now the edit windows for *most* of the things are doing the highlighting properly) (but then again, one of my lists just got blanked, sigh)
[22:33:46] <wafflej0ck> marktraceur, you got batarang installed, can be helpful with the scope inspection, I also wrote a utility bower thing for debugging and letting you change the model on the fly
[22:34:38] <wafflej0ck> can be helpful for seeing what in the heck is going on and how the view updates when you change the model
[22:35:17] <marktraceur> I can also just hack it to show me :)
[22:35:26] <wafflej0ck> for sure
[22:35:34] *** fedenunez has joined #angularjs
[22:35:43] <wafflej0ck> but do that a few hundred times and you decide to write a component for it
[22:35:46] <marktraceur> Yeah.
[22:35:57] <marktraceur> Hm, I guess the KJ list is taking over parent scopes somehow
[22:36:22] *** mary5030 has quit IRC
[22:36:23] <marktraceur> OH.
[22:36:34] *** Trow2 has quit IRC
[22:36:37] <marktraceur> Hm, nope.
[22:37:14] *** elrabin has joined #angularjs
[22:37:56] *** PointBlank has quit IRC
[22:38:07] *** rickhanlonii has joined #angularjs
[22:38:16] <marktraceur> It's like whenever I load a particular controller it overwrites other controllers' scopes...
[22:38:26] *** numproc has quit IRC
[22:38:26] <circ-user-dfR6V> i've been going through a few stackover questions and i noticed that while performing an ng-repeat, instead of something like ng-repeat="idea in ideas", folks use "idea in $ideas"
[22:38:37] *** annlewis has quit IRC
[22:38:40] <circ-user-dfR6V> why is the $ sign used before ideas?
[22:38:56] <wafflej0ck> circ-user-dfR6V, no that's not really typical
[22:39:03] <wafflej0ck> circ-user-dfR6V, some directives have special properties that use $ to start them off
[22:39:17] <circ-user-dfR6V> oh!
[22:39:40] <wafflej0ck> circ-user-dfR6V, like on ng-repeat itself it has $last $first, special properties you can use, ngTable uses some $data or something like that too, but those are just special cases for directives usually
[22:39:49] <circ-user-dfR6V> i'm using ng-table, any idea is that requires the $ to be used? how do i find out exacly?
[22:39:53] <circ-user-dfR6V> oh oh oh
[22:40:01] <circ-user-dfR6V> so ng-table does have $data
[22:40:02] *** gunn has quit IRC
[22:40:11] <wafflej0ck> circ-user-dfR6V, on the services/JS side of things $ is used before the services built by the angular team but yeah search on ngTable $data
[22:40:18] *** joroci has joined #angularjs
[22:40:20] <wafflej0ck> it's not totally clear in the docs for that
[22:40:30] <circ-user-dfR6V> gotcha, thanks wafflej0ck :D
[22:40:33] <circ-user-dfR6V> trying that now
[22:40:51] <wafflej0ck> but ngTable is third party also shouldn't be named with ng prefix but whateves, I use it, it works eventually :)
[22:41:37] *** elrabin has quit IRC
[22:41:39] *** illume has quit IRC
[22:42:48] *** Trow2 has joined #angularjs
[22:42:51] *** elrabin has joined #angularjs
[22:43:12] *** joroc has quit IRC
[22:43:17] *** platonic has quit IRC
[22:43:18] *** foofoobar has joined #angularjs
[22:44:15] *** bin has joined #angularjs
[22:44:25] <bin> i have the following problem mates
[22:44:39] <bin> i must get via $http some settings and assign them to js variable
[22:45:06] <bin> in the first loaded controller i must use some of the settings
[22:45:27] <bin> i tried to use .run setup but the async response is slower and it's not working
[22:45:29] <bin> any suggestions
[22:45:44] <bin> i'm talking about $interval service delay setting
[22:46:17] *** Trow1 has quit IRC
[22:46:23] <marktraceur> wafflej0ck: I think this made it worst to be honest - I think now model.items in the parent controller gets overridden when I run updateList() and model.items gets set in the child
[22:46:38] <marktraceur> I didn't see that happening before (I *think*...)
[22:46:53] *** elrabin has quit IRC
[22:47:14] <marktraceur> As much as I believe this was necessary, I think there's a missing step
[22:48:17] *** AngularUI has joined #angularjs
[22:48:18]
<AngularUI> [ng-grid] PaulL1 opened pull request #2460: Fix #2435(addRowHeader): add a refresh, not just resize, race condition (master...2435_row_header_template) http://git.io/JXzIXg
[22:48:18] *** AngularUI has left #angularjs
[22:48:49] <marktraceur> wafflej0ck: And thanks so much for your help, I've been doing OK, but it's all just been splashing around in the shallows until now :)
[22:48:49] *** eago_ has quit IRC
[22:49:20] *** nemothekid has quit IRC
[22:49:35] *** opiates has joined #angularjs
[22:49:47] *** tschundeee has joined #angularjs
[22:50:16] *** SargoDarya has quit IRC
[22:51:53] <wafflej0ck> marktraceur, yeah np, it sounds like you're a little further along than most when they join in the chat, usually everyone is still doing things in the controller when they get stuck, so good that you're already using factories, typically the way I handle loading and referencing data I treat the service as the model (it also interacts with the API) if I need to do some transformation to the data when it's loaded I usually use
[22:51:53] <wafflej0ck> factories for that, wrt what's happening at the moment if the scopes are being inherited and you're referencing the same model name in multiple places then you'll actually be accessing the same object
[22:52:14] *** elrabin has joined #angularjs
[22:52:55] *** Trow1 has joined #angularjs
[22:53:01] <bin> aaaaaanyone
[22:53:01] <bin> ?
[22:53:21] <wafflej0ck> bin, you shouldn't try to make things async work synchronously the controller should just be able to deal with the fact that the data is loaded async
[22:53:31] <wafflej0ck> bin, share some code on what you're doing so far
[22:53:45] *** caitp has joined #angularjs
[22:53:46] <bin> wafflej0ck the problem is that the $interval is not working synchronously .. dunno why
[22:53:52] <bin> well i can give you a snippet
[22:53:56] <wafflej0ck> it's an async operation
[22:53:59] *** tschundeee has quit IRC
[22:54:22] <wafflej0ck> $interval waits (non-blocking) and executes a function after an interval of time has passed
[22:55:17] <bin> but i invoke it after .succes of http get request
[22:55:20] <wafflej0ck> you may need a $watch as a short term solution typically if you load data in a service/factory you can just store the data in that object and reference it from the controller, but in some cases a $watch is still necessary (or at least one option)
[22:55:21] <bin> and it's not working ..
[22:55:40] <bin> well tried with watch
[22:55:43] <wafflej0ck> what do you mean by "after"
[22:55:50] *** seriema has joined #angularjs
[22:55:54] <wafflej0ck> need to see some code otherwise just guessing what you're doing
[22:56:21] *** Trow2 has quit IRC
[22:56:28] <marktraceur> wafflej0ck: Hm, I'm using factories for everything though. Maybe I should name the model object differently in different factories?
[22:56:37] <marktraceur> Imperfect, but maybe helpful here.
[22:56:49] *** Pons has quit IRC
[22:57:28] <wafflej0ck> marktraceur, the objects you define in the factories should actually be isolated from each other since they're in the instance of the factory/service that gets made by the injector the first time it sees a reference to that service/factory so don't think that'd be a problem
[22:57:29] *** elrabin has quit IRC
[22:57:34] *** jacuqesdancona has joined #angularjs
[22:57:43] <marktraceur> Should be...
[22:58:00] <marktraceur> But clearly aren't for whatever reason
[22:58:11] <marktraceur> Maybe I have a scope leaking out somewhere
[22:58:29] *** eago_ has joined #angularjs
[22:58:50] *** jamto11 has quit IRC
[22:59:01] *** JmZ- is now known as JmZ-_
[22:59:28] <wafflej0ck> bin, okay so looking alright so far, timeouts gets fetched, $interval gets set what's the behavior? you can put debugger; statements at line 2 and line 8 to be sure it is getting into both of these functions
[23:01:09] <bin> well i'm not sure it's executed because it was i had to see some images.. but nothing happens
[23:01:34] <wafflej0ck> use debugger; statements to hit breakpoints, keep the debug panel open, also check the console for any errors
[23:01:53] *** jacuqesdancona has quit IRC
[23:02:02] *** Reskp has quit IRC
[23:02:06] *** numproc has joined #angularjs
[23:02:15] *** elrabin has joined #angularjs
[23:02:28] <soee> wafflej0ck: ill check the api-provider error in a 30 min, have to finish one thing now
[23:02:34] *** jaredwilli has joined #angularjs
[23:03:02] *** Trow2 has joined #angularjs
[23:03:05] *** angjang8 has joined #angularjs
[23:03:24] <wafflej0ck> soee, cool, not sure if you saw but also had a thought when talking with someone yesterday about this, could actually use transformRequest and transformResponse in $http or $resource to get the beforeSave/afterLoad functionality I believe
[23:03:26] <marktraceur> OK...so $scope.model || {} was a bad idea, now I just create the model unconditionally
[23:03:27] <bin> wafflej0ck do you know any other way to execute function after some period of time ?
[23:03:49] <marktraceur> Almost there.
[23:04:23] <wafflej0ck> bin, $timeout is for one time execution $interval I'm pretty sure just uses setInterval (most of these angular services that sound like existing JS functions just call the existing JS function and call $apply for you to trigger a digest for any watchers to update when the handler function is called)
[23:04:25] *** grumpyOldRussian has joined #angularjs
[23:04:39] <wafflej0ck> bin, but if you want it repeating then $interval is typically the way to go I believe
[23:04:48] <bin> yeah i want it repeating ..
[23:05:11] <bin> the problem is that some of the content might be updated
[23:05:15] *** AngularUI has joined #angularjs
[23:05:15]
<AngularUI> [ng-grid] PaulL1 closed pull request #2460: Fix #2435(addRowHeader): add a refresh, not just resize, race condition (master...2435_row_header_template) http://git.io/JXzIXg
[23:05:15] *** AngularUI has left #angularjs
[23:05:18] <bin> they didn't want me to use push notification
[23:05:30] *** besson3c has quit IRC
[23:05:34] <wafflej0ck> bin, yeah so you're just setting up some polling type thing
[23:05:35] <bin> so now i have to ask after some period of time if there are any new changes
[23:05:39] *** erictr1ck has quit IRC
[23:05:46] <bin> yeah
[23:05:49] <wafflej0ck> bin, just use debugger; lines to see what's going on first, then let me know what it doesn't hit that you expect it to
[23:05:49] <bin> thanks mate
[23:05:53] <wafflej0ck> np
[23:06:29] <Fifty5Plus> hello wafflej0ck
[23:06:32] *** Trow1 has quit IRC
[23:06:44] *** besson3c has joined #angularjs
[23:06:52] <wafflej0ck> Fifty5Plus, hey how goes it? been on a few projects since we chatted last
[23:07:02] *** jaredwilli has quit IRC
[23:07:11] *** cthrax has quit IRC
[23:07:13] <Fifty5Plus> me too but on legacy crap
[23:07:26] <wafflej0ck> ah I was on "legacy crap" I wrote a year ago :)
[23:07:41] *** elrabin has quit IRC
[23:07:52] <wafflej0ck> think it's all good but need to do some testing with the e-mail based stuff since that doesn't always go smooth on AWS
[23:08:18] *** renlo has joined #angularjs
[23:08:19] <Fifty5Plus> my was on code i wrote 12 years ago on a system written 120 years ago ;)
[23:08:21] *** OnkelTem has quit IRC
[23:08:30] <wafflej0ck> heh
[23:09:18] *** OnkelTem has joined #angularjs
[23:09:30] *** Reskp has joined #angularjs
[23:12:31] *** elrabin has joined #angularjs
[23:12:57] *** geoffreyw8 has joined #angularjs
[23:13:07] *** Trow1 has joined #angularjs
[23:13:21] <geoffreyw8> Howdy y'all. Happy Holidays
[23:13:36] *** nahoskins has joined #angularjs
[23:13:50] <geoffreyw8> I had a question - why can't I access $scope.something.attribute in the controller? I'm sure I'm probably doing something
[23:13:54] <geoffreyw8> wrong
[23:14:07] *** rcanepa has joined #angularjs
[23:15:03] *** Rebirth has joined #angularjs
[23:16:10] *** Reskp has quit IRC
[23:16:42] *** elrabin has quit IRC
[23:16:46] *** Lorthirk has quit IRC
[23:16:54] *** Trow2 has quit IRC
[23:17:14] <wafflej0ck> geoffreyw8, depends on when you're accessing it vs when it's set but shouldn't have a problem reading a property of something
[23:17:32] <wafflej0ck> geoffreyw8, also happy holidays back at ya
[23:17:49] *** elrabin has joined #angularjs
[23:19:01] *** cthrax has joined #angularjs
[23:19:28] *** Nurbs has quit IRC
[23:19:45] *** elrabin has quit IRC
[23:21:03] *** caitp has quit IRC
[23:21:24] <geoffreyw8> I'm trying to log it straight after it comes down from the server. It is however picked up in the view.
[23:22:41] <wafflej0ck> geoffreyw8, so line 2 I'm pretty sure is an async call so lines right after it will run before the topic has any sort of value... can you show Topic.get def
[23:23:15] *** Trow2 has joined #angularjs
[23:23:56] <marktraceur> wafflej0ck: Oh neat! Thanks :)
[23:24:11] *** leolrrj has quit IRC
[23:24:38] *** threesixes has joined #angularjs
[23:25:00] <geoffreyw8> wafflej0ck: ah, that would make sense. I'm actually using Ionic, and I'm using $resource via a factory...
[23:25:02] *** rileylark has quit IRC
[23:25:19] *** rileylark has joined #angularjs
[23:25:23] <geoffreyw8> I haven't written any code for the .get, I'm guessing its coming from one of the libraries
[23:25:27] *** enaqx has joined #angularjs
[23:25:47] *** rileylark has quit IRC
[23:25:52] *** renlo has quit IRC
[23:26:32] <wafflej0ck> geoffreyw8, yeah $http has a .get method but with $resource it's usually .query you run, haven't used Restangular but it might be that
[23:26:38] *** Reskp has joined #angularjs
[23:27:03] <geoffreyw8> wafflej0ck: ok thanks for the heads up. I'll amend my approach. Cheers
[23:27:30] *** evotuned has joined #angularjs
[23:27:31] *** Trow1 has quit IRC
[23:27:47] *** jonathanpglick has quit IRC
[23:27:53] *** elrabin has joined #angularjs
[23:28:24] *** jonathanpglick has joined #angularjs
[23:28:48] <bin> wafflej0ck it worked mate :) thanks again
[23:28:55] <wafflej0ck> bin, np
[23:29:48] *** caitp has joined #angularjs
[23:30:18] *** geoffreyw8 has quit IRC
[23:30:19] *** circ-user-dfR6V has quit IRC
[23:31:11] *** Reskp has quit IRC
[23:31:14] <BahamutWC> good afternoon #angularjs
[23:31:35] <wafflej0ck> g'afternoon BahamutWC
[23:31:57] <wafflej0ck> BahamutWC, how's it going?
[23:32:12] *** leolrrj has joined #angularjs
[23:32:32] <BahamutWC> ate too much the past week, feel sick :(
[23:32:48] *** KushS has quit IRC
[23:32:58] <BahamutWC> how's it going for you wafflej0ck?
[23:33:21] *** Trow1 has joined #angularjs
[23:33:39] <wafflej0ck> eh better than "I didn't eat this week, feel sick" but still sucks, doing pretty well myself, had to get a neglected/broken tooth extracted last week so that wasn't much fun but honestly went way smoother than I expected and not too much pain
[23:33:44] <HassanCehef> afternoon?
[23:34:09] <BahamutWC> 2:30 pm here in PST
[23:34:16] *** Sky[x] has quit IRC
[23:34:38] <HassanCehef> 11:30 pm CEST?
[23:34:38] *** caitp has quit IRC
[23:34:50] <HassanCehef> I'm not sure. Let's say France :D
[23:34:56] <BahamutWC> heh
[23:35:18] <wafflej0ck> 4:30pm here, pushing it with "afternoon" in this timezone but I woke up late so feels like afternoon
[23:35:18] *** asheshambasta has quit IRC
[23:35:21] *** rickhanl_ has joined #angularjs
[23:35:45] <BahamutWC> it's a lazy sunday on Christmas-New Year weeks
[23:36:10] <HassanCehef> aren't all sundays lazy?
[23:36:19] *** asheshambasta has joined #angularjs
[23:36:21] *** adben- has quit IRC
[23:36:25] *** gunn has joined #angularjs
[23:36:44] <BahamutWC> in my case, I spent my past almost-week in Vegas - too much gorging while there with friends' hospitality (which didn't help)
[23:36:52] *** mikerrrrrr has quit IRC
[23:36:57] *** Trow2 has quit IRC
[23:37:14] <HassanCehef> how much did you lose in casinos?
[23:37:36] <BahamutWC> $600 :(
[23:37:37] *** evotuned has quit IRC
[23:37:46] *** startupality has joined #angularjs
[23:37:58] <wafflej0ck> BahamutWC, you seem pretty asian to be having all these white people problems :)
[23:38:11] <BahamutWC> I am Korean haha
[23:38:14] <HassanCehef> :D
[23:38:34] *** rickhanlonii has quit IRC
[23:38:51] *** MistahKurtz has quit IRC
[23:41:22] *** Ludjer_ has quit IRC
[23:41:30] *** disorder20 has quit IRC
[23:42:11] *** dc_ has quit IRC
[23:42:21] *** cannap has quit IRC
[23:42:29] *** WeeJeWel has joined #angularjs
[23:42:46] *** disorder20 has joined #angularjs
[23:43:25] *** Trow2 has joined #angularjs
[23:44:36] *** Ludjer has joined #angularjs
[23:45:28] *** numproc has quit IRC
[23:45:31] *** squeakytoy has quit IRC
[23:46:12] *** rickhanl_ has quit IRC
[23:46:20] *** nemothekid has joined #angularjs
[23:47:10] *** Reskp has joined #angularjs
[23:47:20] *** SargoDarya has joined #angularjs
[23:47:32] *** Trow1 has quit IRC
[23:47:56] *** startupality has quit IRC
[23:49:03] *** marr has joined #angularjs
[23:49:44] *** tschundeee has joined #angularjs
[23:50:15] *** calmbird has quit IRC
[23:50:20] *** one_zero has joined #angularjs
[23:50:52] *** numproc has joined #angularjs
[23:51:22] *** Reskp has quit IRC
[23:51:24] *** WeeJeWel has quit IRC
[23:52:34] *** SargoDarya has quit IRC
[23:53:00] *** brwr has joined #angularjs
[23:53:54] *** Trow1 has joined #angularjs
[23:54:14] *** platonic has joined #angularjs
[23:54:18] *** tschundeee has quit IRC
[23:54:57] *** BillCriswell has joined #angularjs
[23:55:07] *** rickhanlonii has joined #angularjs
[23:56:27] <Sickness[]> I have a general question for you guys I hope you can give me some advice
[23:56:34] *** rhp has quit IRC
[23:57:00] *** Sadin has joined #angularjs
[23:57:02] <Sickness[]> I'm using restangular to pull some data in from an api
[23:57:17] *** Trow2 has quit IRC
[23:57:17] <Sickness[]> the api is referring to related objects with fields example = resourceUri
[23:57:27] <Sickness[]> which are pretty much strings with urls for the api
[23:57:49] <Sickness[]> as of now I'm retrieving the related object for every object I initially pull in manually by requesting the resourceUri manually
[23:58:07] <Sickness[]> as a result when the page loads you see 1 request for the main object list and then about 20/30 related objects being pulled in..
[23:58:10] *** rcanepa has quit IRC
[23:58:30] <Sickness[]> I feel like this is incredibly inefficient doing so many requests on 1 page load but I have no idea what else I should do..
[23:58:38] *** platonic has quit IRC
[23:58:46] *** hylynyiv has quit IRC
[23:59:09] <Sickness[]> I haven't really worked that much with apis before, I'm wondering if this is common
[23:59:16] <wafflej0ck> Sickness[], just load up the related parts in the initial request if you're going to need them
[23:59:17] *** bin has quit IRC
[23:59:25] <Sickness[]> yeah I need them at load
[23:59:41] <Sickness[]> its agenda events and they store the time for an event in a different resource..
[23:59:55] <wafflej0ck> yeah then just setup your API to return the main objects along with the necessary related parts
[23:59:57] <Sickness[]> so I need the appointment name and then get the time that goes with it from a different url