[06:35:23] *** echelog-2 has joined #angularjs
[06:35:27] <BahamutWC|Laptop> jrajaratnam: what do you mean completion of a factory return?
[06:35:27] <hawa> how do i get the route of current page i am in
[06:35:27] *** teddyp1cker has joined #angularjs
[06:36:42] <BahamutWC|Laptop> hawa: $location.path()
[06:36:43] *** lowell has quit IRC
[06:36:43] *** Templarian__ has joined #angularjs
[06:36:43] <BahamutWC|Laptop> unless you mean route via ngRoute or state via ui router
[06:36:44] <jrajaratnam> Bahamut: $scope.userLocation = userLocationService.getUserLocation();
[06:36:44] <jrajaratnam> userLatitude = $scope.userLocation.data.results[0].geometry.location.lat;
[06:36:44] *** TyrfingMjolnir has joined #angularjs
[06:36:45] <jrajaratnam> I need that second statement to wait to execute until the first one is complete
[06:36:45] <jrajaratnam> at least I think that’s the problem I’m having
[06:36:50] <hawa> BahamutWC, thanks
[06:37:09] <BahamutWC|Laptop> jrajaratnam: You need to use $q
[06:37:10] *** rtpg has quit IRC
[06:37:22] *** mary5030 has quit IRC
[06:37:23] *** lowell has joined #angularjs
[06:37:31] *** nya has quit IRC
[06:37:33] *** rtpg has joined #angularjs
[06:37:35] *** kudos has joined #angularjs
[06:37:40] <jrajaratnam> ok thanks.. I’ll look into what that is
[06:38:27] *** Hackwar has joined #angularjs
[06:38:54] *** wowa has joined #angularjs
[06:40:14] *** Hackwar1 has quit IRC
[06:40:31] <dnull> How to add zone when create moment object? new moment("2014/12/1 12:12:00")?
[06:41:47] *** opiates has quit IRC
[06:42:00] *** ianpirro has quit IRC
[06:44:02] <hawa> BahamutWC, reference error, location not defined
[06:46:24] *** BigMac has joined #angularjs
[06:46:34] *** moogumbo has quit IRC
[06:46:50] <dnull> How to add zone when create moment object? new moment("2014/12/1 12:12:00")?
[06:48:15] *** earthquake has quit IRC
[06:49:13] *** moogumbo has joined #angularjs
[06:50:22] *** snkcld has quit IRC
[06:50:37] *** teddyp1cker has quit IRC
[06:50:44] *** MetaCosm has quit IRC
[06:51:13] *** teddyp1cker has joined #angularjs
[06:52:08] *** mdedetrich has quit IRC
[06:52:23] *** JoshGlzBrk has quit IRC
[06:52:51] *** MetaCosm has joined #angularjs
[06:52:56] *** mdedetrich has joined #angularjs
[06:53:00] *** tfennelly has joined #angularjs
[06:53:08] *** kentaro0919 has quit IRC
[06:53:09] *** snkcld has joined #angularjs
[06:53:45] *** frkout_ has joined #angularjs
[06:53:49] <BahamutWC|Laptop> hawa: did you inject $location?
[06:53:57] *** jrajaratnam has quit IRC
[06:54:47] <hawa> BahamutWC, i solved that one by injecting. but now even though i am at /addDoc $location.path() returns empty
[06:54:47] *** jaydubya has quit IRC
[06:55:23] *** jaydubya has joined #angularjs
[06:55:37] *** jimmyy has quit IRC
[06:55:38] *** frkout__ has joined #angularjs
[06:55:46] *** frkout_ has quit IRC
[06:55:47] *** tschunde_ has quit IRC
[06:56:04] *** teddyp1cker has quit IRC
[06:56:15] *** TyrfingMjolnir has quit IRC
[06:56:37] *** {DV8} has quit IRC
[06:57:04] *** frkout has quit IRC
[06:57:24] *** Trow has joined #angularjs
[06:57:30] *** tfennelly has quit IRC
[06:57:52] *** frkout__ has quit IRC
[06:57:57] *** frkout has joined #angularjs
[07:00:16] *** jaydubya has quit IRC
[07:02:53] *** VeeWee has joined #angularjs
[07:03:59] *** exp10r3r1 has quit IRC
[07:04:13] *** renlo has joined #angularjs
[07:05:34] *** frozenice_ has quit IRC
[07:06:04] *** frozenice_ has joined #angularjs
[07:06:16] *** mickhansen has quit IRC
[07:06:24] <BigMac> I need to do something a little unusual; $location can extract jquery options, but only from window.location. How can I use that functionality on arbitrary URLs within angular?
[07:06:45] *** TyrfingMjolnir has joined #angularjs
[07:06:51] *** nya has joined #angularjs
[07:07:08] <BigMac> The reason is that I need to convert youtube links to embeds; hours/minutes/seconds are separate in the former and the latter uses only seconds
[07:07:25] *** mickhansen has joined #angularjs
[07:07:27] <BigMac> so I can't just regex away to convert links, not if I want to preserve timestamps
[07:09:41] *** ee99ee has quit IRC
[07:10:20] *** bmac has joined #angularjs
[07:12:31] *** opiates has joined #angularjs
[07:13:17] *** Superhard has joined #angularjs
[07:13:48] *** jeffw198____ has quit IRC
[07:13:48] *** hkeide_ has quit IRC
[07:13:56] *** glassir has joined #angularjs
[07:14:28] *** Sontakey has joined #angularjs
[07:15:08] *** btc_panhandler has joined #angularjs
[07:15:41] *** zivester has quit IRC
[07:16:36] *** opiates has quit IRC
[07:16:40] *** jeffw198____ has joined #angularjs
[07:16:46] *** lyanchih has quit IRC
[07:16:53] *** hkeide_ has joined #angularjs
[07:17:26] *** Superhard has quit IRC
[07:17:36] *** Xorlev_ has quit IRC
[07:18:44] *** glassir has quit IRC
[07:19:06] *** teddyp1cker has joined #angularjs
[07:19:24] *** ccohn has joined #angularjs
[07:19:30] *** moogumbo has quit IRC
[07:20:06] *** Xorlev_ has joined #angularjs
[07:20:07] *** t_p has joined #angularjs
[07:21:04] *** Milkweed has quit IRC
[07:21:27] *** moogumbo has joined #angularjs
[07:22:37] *** robdubya has joined #angularjs
[07:23:32] <robdubya> ladies
[07:23:56] *** Sontakey has quit IRC
[07:24:09] <rhp> :)
[07:24:16] *** ccohn has quit IRC
[07:24:18] *** teddyp1cker has quit IRC
[07:24:45] *** t_p has quit IRC
[07:25:07] *** LossFor has joined #angularjs
[07:25:22] *** Una has quit IRC
[07:25:59] *** Raging_Hog has joined #angularjs
[07:26:45] *** sigurding has joined #angularjs
[07:26:49] *** kompressor has joined #angularjs
[07:28:07] *** kd` has joined #angularjs
[07:29:28] *** Linell has joined #angularjs
[07:31:00] *** ee99ee has joined #angularjs
[07:32:43] *** lyanchih has joined #angularjs
[07:34:02] *** treasure has quit IRC
[07:34:02] *** Linell has quit IRC
[07:36:54] *** ryals has joined #angularjs
[07:37:09] *** Stichoza has joined #angularjs
[07:38:25] *** Shadeness is now known as Zren
[07:38:27] *** sigurding has quit IRC
[07:38:55] *** lite_ has quit IRC
[07:40:15] *** mary5030 has joined #angularjs
[07:40:17] *** diegoaguilar has joined #angularjs
[07:40:31] *** pknordic has joined #angularjs
[07:40:44] *** NormySan has joined #angularjs
[07:40:50] *** Sontakey has joined #angularjs
[07:40:56] *** edzez has quit IRC
[07:41:09] *** Sontakey has quit IRC
[07:41:18] *** ggrzybek has joined #angularjs
[07:41:48] *** Stichoza has quit IRC
[07:42:18] *** jga_ has quit IRC
[07:42:43] *** Leon has joined #angularjs
[07:42:46] *** sigurding has joined #angularjs
[07:43:19] *** jga_ has joined #angularjs
[07:43:28] *** mary5030 has quit IRC
[07:44:01] *** mary5030 has joined #angularjs
[07:44:36] *** pknordic has quit IRC
[07:45:35] *** Trow has quit IRC
[07:48:45] *** mary5030 has quit IRC
[07:51:12] *** glaksmono has joined #angularjs
[07:51:16] <glaksmono> anyone is around?
[07:51:23] <glaksmono> i'm wondering if it make sense to use angularjs with ruby on rails?
[07:51:31] *** mtsr has joined #angularjs
[07:51:37] <rahil> sure
[07:51:48] <rahil> what about SEO though?
[07:52:03] <rahil> you have a plan for that?
[07:52:33] *** speaking1ode has joined #angularjs
[07:52:38] *** speakingcode has quit IRC
[07:52:53] *** tfennelly has joined #angularjs
[07:53:21] *** chrisbirk has joined #angularjs
[07:55:35] *** LossFor has quit IRC
[07:56:07] *** wowa has quit IRC
[07:56:22] *** mdedetri_ has joined #angularjs
[07:57:19] *** aslate has joined #angularjs
[07:57:22] *** tfennelly has quit IRC
[07:57:25] *** caitp has joined #angularjs
[07:57:25] *** mdedetrich has quit IRC
[07:58:13] *** scythe__ has quit IRC
[07:59:19] *** kiwi_84742 has joined #angularjs
[07:59:41] *** saucey has quit IRC
[07:59:55] *** rhp has quit IRC
[08:00:01] *** charuru has quit IRC
[08:01:03] *** charuru has joined #angularjs
[08:01:39] *** aslate has quit IRC
[08:01:52] *** caitp has quit IRC
[08:02:52] *** frkout has quit IRC
[08:03:14] *** frkout has joined #angularjs
[08:03:26] *** BigMac has left #angularjs
[08:03:42] *** dnull has quit IRC
[08:03:53] *** zanea is now known as zanea|away
[08:04:58] *** mtsr has quit IRC
[08:05:40] *** martianboy has joined #angularjs
[08:06:19] *** jimmyy has joined #angularjs
[08:07:30] *** renlo has quit IRC
[08:08:00] *** NormySan has quit IRC
[08:08:12] *** plekplek has joined #angularjs
[08:08:16] *** erikruthven has joined #angularjs
[08:08:29] *** ciwolsey has joined #angularjs
[08:09:02] *** chrisbirk has quit IRC
[08:10:13] *** night-owl is now known as zz_night-owl
[08:10:19] *** Anton_ has quit IRC
[08:10:39] *** Etherael has quit IRC
[08:11:11] <dsdeiz_> hey all, it looks like ng-model stores the object selected on the a <select> element. i have binded it to $scope.submitted.test.. i need to get the value submitted in my submit function though. any ideas?
[08:11:41] <dsdeiz_> hm, prolly better if i make a plnkr :D
[08:12:02] *** soee has joined #angularjs
[08:12:20] *** rtpg has quit IRC
[08:12:38] *** snurfery has quit IRC
[08:12:42] *** ggherdov has quit IRC
[08:13:53] *** bmac has quit IRC
[08:14:00] *** rtpg has joined #angularjs
[08:14:01] *** Superhard has joined #angularjs
[08:14:03] *** frkout has quit IRC
[08:14:27] *** larsam has joined #angularjs
[08:14:29] *** one0one has quit IRC
[08:14:29] *** frkout has joined #angularjs
[08:15:45] *** jstroem has joined #angularjs
[08:16:57] <soee> good morning
[08:17:54] *** Anton_ has joined #angularjs
[08:18:24] *** eyebraus has quit IRC
[08:19:02] *** Superhard has quit IRC
[08:20:09] *** ccohn has joined #angularjs
[08:20:14] *** pknordic has joined #angularjs
[08:20:18] *** joshtau has quit IRC
[08:20:41] *** frkout_ has joined #angularjs
[08:20:45] *** eyebraus has joined #angularjs
[08:21:15] *** uru|away is now known as uru
[08:21:17] <dsdeiz_> i need to get foo or bar though instead of bar or baz
[08:21:29] *** tfennelly has joined #angularjs
[08:21:30] <dsdeiz_> any dieas?
[08:21:48] *** ggherdov has joined #angularjs
[08:22:09] *** macobo has joined #angularjs
[08:22:19] *** cacts has quit IRC
[08:23:43] *** yts has joined #angularjs
[08:23:43] *** lite_ has joined #angularjs
[08:23:52] *** frkout has quit IRC
[08:24:08] *** joshtau has joined #angularjs
[08:24:36] *** ccohn has quit IRC
[08:24:42] *** yts has quit IRC
[08:24:44] *** syphar_ has quit IRC
[08:24:46] *** foofoobar has joined #angularjs
[08:25:27] *** foofoobar has quit IRC
[08:26:38] *** twisted` has quit IRC
[08:26:49] *** syphar_ has joined #angularjs
[08:27:54] *** bremnes has quit IRC
[08:28:32] *** bbhoss has quit IRC
[08:29:42] *** craigp has joined #angularjs
[08:29:48] *** n3ssi3 has quit IRC
[08:30:16] *** twisted` has joined #angularjs
[08:30:18] *** renlo has joined #angularjs
[08:30:35] *** larsam has quit IRC
[08:30:45] *** SargoDarya has quit IRC
[08:31:00] *** mtsr has joined #angularjs
[08:31:02] *** SargoDarya has joined #angularjs
[08:31:15] *** bremnes has joined #angularjs
[08:31:26] *** bbhoss has joined #angularjs
[08:31:42] *** lebster has quit IRC
[08:32:44] *** craigp has quit IRC
[08:32:56] *** n3ssi3 has joined #angularjs
[08:32:58] *** lif has quit IRC
[08:33:38] *** mtsr has quit IRC
[08:34:04] *** lebster has joined #angularjs
[08:34:11] *** lif has joined #angularjs
[08:34:13] *** motionman has joined #angularjs
[08:34:14] *** ETBlue has quit IRC
[08:35:07] *** nya has quit IRC
[08:35:12] *** ETBlue has joined #angularjs
[08:36:28] *** frkout_ has quit IRC
[08:36:54] *** frkout has joined #angularjs
[08:37:57] *** chintanparikh has joined #angularjs
[08:38:19] *** jstroem has quit IRC
[08:38:42] *** jstroem has joined #angularjs
[08:38:56] <chintanparikh> Hey peeps, I have a strange issue. I have a search bar with an ng-change on it that should dynamically update the contents of the page depending on what's being searched. The function I'm calling with ng-change is triggering, and is successfully updating $scope.videos, but the view isn't updating
[08:38:59] <chintanparikh> Any ideas?
[08:39:24] *** craigp has joined #angularjs
[08:39:29] *** diegoaguilar has quit IRC
[08:39:56] *** mickhansen has quit IRC
[08:39:56] *** nhoening has quit IRC
[08:40:36] *** mvk has joined #angularjs
[08:40:46] *** mickhansen has joined #angularjs
[08:41:12] *** shadowhand has quit IRC
[08:41:14] *** nhoening has joined #angularjs
[08:41:50] *** remysharp has quit IRC
[08:41:51] *** shadowhand has joined #angularjs
[08:42:03] *** snurfery has joined #angularjs
[08:43:27] *** jaydubya has joined #angularjs
[08:43:48] *** JoshGlzBrk has joined #angularjs
[08:43:58] *** Superhard has joined #angularjs
[08:44:52] *** remysharp has joined #angularjs
[08:45:35] *** bengillies has quit IRC
[08:46:29] *** robdubya has quit IRC
[08:47:16] *** jacuqesdancona_ has joined #angularjs
[08:47:40] *** bmac has joined #angularjs
[08:47:43] *** fairuz has quit IRC
[08:48:09] *** rahil has quit IRC
[08:48:10] *** raytiley has quit IRC
[08:48:31] *** craigp has quit IRC
[08:48:38] *** jaydubya has quit IRC
[08:48:44] *** mtsr has joined #angularjs
[08:48:48] *** joshtau has quit IRC
[08:48:48] *** cuong_ has quit IRC
[08:49:03] *** cojack has joined #angularjs
[08:49:45] *** rchavik has quit IRC
[08:50:05] *** cuong_ has joined #angularjs
[08:50:15] *** nfroidure has joined #angularjs
[08:50:42] *** pchittum has quit IRC
[08:50:42] *** ikevin_ has quit IRC
[08:51:05] *** kiwi_84742 has left #angularjs
[08:51:20] *** snkcld has quit IRC
[08:51:35] *** raytiley_ has joined #angularjs
[08:51:35] *** craigp has joined #angularjs
[08:51:53] *** dcherman has quit IRC
[08:52:06] *** ikevin has joined #angularjs
[08:52:06] *** pchittum has joined #angularjs
[08:52:20] *** swirlycheetah has joined #angularjs
[08:52:36] *** adhipg has quit IRC
[08:52:44] *** rahil has joined #angularjs
[08:53:01]
<mvk> Why does $scope.items get unbound, after sorting the result of the $http.get ? > http://pastebin.com/VGs9Upve > in my people.json i have the same as what the json looks like under // Debug ..
[08:53:18] *** denysonique has joined #angularjs
[08:53:30] *** joshtau has joined #angularjs
[08:53:31] *** adhipg has joined #angularjs
[08:53:59] *** bmac has quit IRC
[08:54:08] *** snkcld has joined #angularjs
[08:54:57] *** renlo has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:08] *** richburke__ has quit IRC
[08:55:27] *** richburke__ has joined #angularjs
[08:55:54] *** swirlycheetah has quit IRC
[08:57:21] *** techsethi has quit IRC
[08:57:35] *** Oxynum has joined #angularjs
[08:57:46] *** phzon has joined #angularjs
[08:58:55] *** BobbieBarker_ has quit IRC
[08:59:49] *** Aswebb_ has joined #angularjs
[09:00:43] *** seriema has joined #angularjs
[09:00:57] *** Click66 has joined #angularjs
[09:01:13] *** mtsr has quit IRC
[09:01:37] *** MistahKurtz has quit IRC
[09:01:59]
<mvk> Why does $scope.items get unbound, after sorting the result of the $http.get ? > http://pastebin.com/VGs9Upve > in my people.json i have the same as what the json looks like under // Debug ..
[09:02:06] *** phzon has quit IRC
[09:02:11] <mvk> really feel like i'm stuck, anyone got a clue?
[09:02:31] <mvk> themime: maybe?
[09:03:06] *** laurensclaessen has joined #angularjs
[09:03:13] *** charlesfinley has joined #angularjs
[09:03:44] *** foofoobar has joined #angularjs
[09:04:30] <blackkbot> are you supposed to replace the $scope.items array with the json object?
[09:04:43] *** ngbot has joined #angularjs
[09:04:44]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/dFYTCw
[09:04:44] <ngbot> angular.js/master 41f03e4 Clark DuVall: docs(ngView): remove multiple position: relative...
[09:04:44] *** ngbot has left #angularjs
[09:04:53] *** Hounddog has joined #angularjs
[09:05:09] *** renlo has joined #angularjs
[09:06:04] <BahamutWC|Laptop> mvk: have you tried reproducing it in plunker?
[09:06:14] *** slopjong has joined #angularjs
[09:06:41] <Hounddog> Good Morning
[09:06:54] *** ludkiller has quit IRC
[09:07:14] <mvk> BahamutWC|Laptop: i dont know what plunker is
[09:07:15] <BahamutWC|Laptop> oh mvk: do a console.log(result.data);
[09:07:23] <mvk> good morning :)
[09:07:44] *** ludkiller has joined #angularjs
[09:07:52] *** SargoDarya has quit IRC
[09:08:34] <mvk> BahamutWC|Laptop: ok, dumping it on plunker!
[09:08:37] *** SargoDarya has joined #angularjs
[09:08:37] *** SargoDarya has joined #angularjs
[09:08:38] *** jagga has joined #angularjs
[09:10:11] <dsdeiz_> BahamutWC|Laptop: sorry, i wasn't clear.. wanted foo or bar to display on console.log instead
[09:10:25] *** ali4ever4 has quit IRC
[09:10:31] <dsdeiz_> not as options on the select element
[09:10:50] *** Aswebb_ has quit IRC
[09:11:45] *** ome has quit IRC
[09:12:48] *** jmverges has joined #angularjs
[09:13:02] <mvk> :-))
[09:13:19] *** chintanparikh has quit IRC
[09:13:29] <mvk> you immediately see the green 'avatars' being unbound to $scope.items
[09:13:57] *** gh0st has joined #angularjs
[09:14:25] *** pknordic has quit IRC
[09:14:37] *** blomman has joined #angularjs
[09:14:45] *** tangorri has joined #angularjs
[09:14:45] *** d4rklit3 has quit IRC
[09:14:49] <dsdeiz_> BahamutWC|Laptop: dang, thanks man!
[09:14:54] <BahamutWC|Laptop> np
[09:15:15] *** glassir has joined #angularjs
[09:15:27] *** iksik has joined #angularjs
[09:15:32] *** pknordic has joined #angularjs
[09:15:39] *** JoshGlzBrk has quit IRC
[09:16:27] *** linojon has quit IRC
[09:17:08] *** ryals has quit IRC
[09:18:50] <mvk> BahamutWC|Laptop: do you have a clue?
[09:19:49] *** glassir has quit IRC
[09:19:50] *** Greed has quit IRC
[09:20:02] *** pestronk has joined #angularjs
[09:20:06] <BahamutWC|Laptop> mvk: the plugin is almost certainly the culprit
[09:20:43] <mvk> BahamutWC|Laptop: you dont think it has to do with the Promise the http.get returns?
[09:20:47] <BahamutWC|Laptop> nope
[09:20:56] *** ccohn has joined #angularjs
[09:21:12] <BahamutWC|Laptop> I added a $watch, the model never changed
[09:21:15] *** craigp has quit IRC
[09:21:27] *** Oka has quit IRC
[09:22:29] *** techsethi has joined #angularjs
[09:22:56] *** dannyc has joined #angularjs
[09:23:13] <mvk> while there is a 2.0 on github too
[09:23:15] <BahamutWC|Laptop> try version 2.0
[09:23:21] *** ron1 has joined #angularjs
[09:23:48] *** fairuz has joined #angularjs
[09:24:41] *** macobo has quit IRC
[09:24:50] <mvk> BahamutWC|Laptop: its on plunker now, same troubles
[09:24:55] *** jstroem has quit IRC
[09:25:17] *** jstroem has joined #angularjs
[09:25:21] *** devhoag has quit IRC
[09:25:22] *** ccohn has quit IRC
[09:27:22] *** Christer has joined #angularjs
[09:27:22] *** dannyc has quit IRC
[09:27:29] <BahamutWC|Laptop> mvk: I’m convinced the plugin is buggy
[09:27:39] *** ron1 has quit IRC
[09:27:55] <BahamutWC|Laptop> it’s doing the manual DOM manipulation, and when you’re doing that sort of manipulation with elements ng-repeated, there are some nuances
[09:28:00] <BahamutWC|Laptop> I recommend filing an issue on GitHub
[09:28:03] <mvk> BahamutWC|Laptop: if in the plugin, i comment out //scope.$apply();
[09:28:11] <mvk> then it seems to work :o
[09:28:39] <BahamutWC|Laptop> it doesn’t work still
[09:28:44] <mvk> or at least, it doesn't clear it
[09:28:51] <mvk> no ok
[09:28:53] <BahamutWC|Laptop> in fact, you should already be in a $digest with $http
[09:29:13] *** evilaliv3 has joined #angularjs
[09:29:58] *** pestronk has quit IRC
[09:29:59] *** jonasliljestrand has joined #angularjs
[09:30:24] *** grogs has joined #angularjs
[09:30:28] <BahamutWC|Laptop> if I wasn’t tired, I probably can identify what exactly is the bug and file a PR
[09:30:39] <BahamutWC|Laptop> I should go to sleep though
[09:30:53] *** bobbydigitales has joined #angularjs
[09:30:53] *** cotko has joined #angularjs
[09:31:22] <jonasliljestrand> BahamutWC|Laptop what country you in? Im just opened my laptop at work :P
[09:31:34] *** waverider has joined #angularjs
[09:31:35] *** K-202 has joined #angularjs
[09:31:42] *** charuru has quit IRC
[09:31:42] <BahamutWC|Laptop> US, in Mountain View
[09:31:58] <jonasliljestrand> Alright, Sweden here :)
[09:32:00] *** LeonardDa has joined #angularjs
[09:32:38] <mvk> we wouldnt guess :p (looking at your name ;)
[09:32:41] *** cosca has joined #angularjs
[09:32:44] <mvk> :))
[09:33:09] *** jMyles has quit IRC
[09:33:56] <LeonardDa> Hi guys. I'm in trouble
[09:34:01] *** saucey has joined #angularjs
[09:34:01] *** cosca has quit IRC
[09:34:44] <LeonardDa> I'm doing CORS and using the PUT-method. The data is successfully sent to the server and as response I get 204 (NO Content). If I do this with jQuery, there is no "Cross-origin-error", but if I do it with AngularJS there is a Cross-Origin error. Why?
[09:35:50] <LeonardDa> Can anyone help?
[09:35:57] *** sk87 has joined #angularjs
[09:36:26] *** erikruthven has quit IRC
[09:36:59] *** boepple has joined #angularjs
[09:37:06] <mvk> LeonardDa: have you checked with wireshark what the difference in HTTP headers is?
[09:37:15] *** rahil has quit IRC
[09:37:17] <mvk> thats how i usually solve that kinda troubles
[09:37:26] *** yelvert has quit IRC
[09:37:27] <LeonardDa> no
[09:37:36] <mvk> LeonardDa: install that, and monitor your requests
[09:37:38] <LeonardDa> I'm checking out and will give you feedback
[09:37:55] <mvk> probably, Allow-alows / allow-origin is different, not ok
[09:38:02] <mvk> LeonardDa: ok
[09:38:02] *** yelvert has joined #angularjs
[09:39:01] *** boepple has quit IRC
[09:39:52] <mvk> LeonardDa: forget about the allow-always, i ment the 'Accept' header, Accept:*/*
[09:39:54] *** Oxynum has quit IRC
[09:40:13] *** Oxynum has joined #angularjs
[09:40:47] <mvk> LeonardDa: you dont really need wireshark btw; i just remember ... you can use chrome dev tools
[09:40:52] *** ali_ has joined #angularjs
[09:40:59] <LeonardDa> mvk: Yes, I'M using that
[09:41:01] <mvk> then check the 'network' tab, click on a item, and it opens with http header info
[09:41:09] <LeonardDa> mvk: Accept:*/*?
[09:41:15] <LeonardDa> mvk: Do I have to set this in the client?
[09:41:17] <mvk> its a http header
[09:41:35] <LeonardDa> mvk: I have to set this on clientside right?
[09:41:41]
<bobbydigitales> Hey, I'm setting up a simple angularjs 1.3.5 page and I've made a mistake somewhere with the routing. My controller initialization is being called recursively and I can't find the problem. I made a gist of all the files and the callstack here: https://gist.github.com/bobbydigitales/0c0e1518227ebbcb1b4f
[09:42:16] *** yelvert has quit IRC
[09:42:18] *** lostInParadise has joined #angularjs
[09:42:20] *** phu has joined #angularjs
[09:42:35] <LeonardDa> mvk: What's the problem of 204?
[09:42:42] <bobbydigitales> Can anyone see what I'm doing wrong?
[09:42:45] *** ianpirro has joined #angularjs
[09:42:55] <mvk> LeonardDa: soryr, i mean the CORS error
[09:43:05] *** tfennelly has quit IRC
[09:43:31] *** phu has quit IRC
[09:43:53] *** zz_night-owl is now known as night-owl
[09:44:17] <LeonardDa> But statuscode 204 should be ok right?
[09:44:25] *** renlo has quit IRC
[09:44:31] *** nya has joined #angularjs
[09:44:33] *** stastny has joined #angularjs
[09:44:38] *** Xethron has joined #angularjs
[09:44:42] *** stastny has quit IRC
[09:44:48] <LeonardDa> mvk: The strange thing is, that the PUT method is executed successfully but Angular says, that it failed
[09:45:06] *** Sky[x] has quit IRC
[09:45:57] *** craigp has joined #angularjs
[09:46:16] *** aslate has joined #angularjs
[09:46:21] <mvk> LeonardDa: my guess is that the server receives the request, and works it 'out', but then the response is not valid for angular due to CORS
[09:46:28] *** caitp has joined #angularjs
[09:46:37] <mvk> LeonardDa: what kinda server?
[09:47:05] <LeonardDa> LeonardDa: Apache
[09:47:09] <LeonardDa> mvk: Apache
[09:47:12] *** ianpirro has quit IRC
[09:47:34] *** guilbep has joined #angularjs
[09:47:38] *** oganyan has joined #angularjs
[09:47:54] *** warpx has joined #angularjs
[09:48:04] <mvk> make sure you have this: Header always set Access-Control-Allow-Origin: "*" Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS"
[09:48:15] <mvk> on the server
[09:48:25] *** oganyan has quit IRC
[09:48:36] *** MaxV has joined #angularjs
[09:49:22] <LeonardDa> mvk: Those headers are set
[09:49:32] *** rodyhaddad has quit IRC
[09:49:49] <LeonardDa> mvk: But instead of Access-Control-Allow-Origin: "*" -> the server sets the hostname of the client instead of the *
[09:49:59] *** saucey has quit IRC
[09:50:25] <mvk> LeonardDa: are you 100% sure about that hostname
[09:50:34] <mvk> just try * for one time..
[09:50:53] *** caitp has quit IRC
[09:51:00] *** techsethi has quit IRC
[09:51:05] *** nichol has joined #angularjs
[09:51:16] *** aslate has quit IRC
[09:51:17] *** SargoDarya has quit IRC
[09:51:35] *** Oxynum has quit IRC
[09:52:00] *** SargoDarya has joined #angularjs
[09:52:42] <LeonardDa> mvk: ok
[09:52:49] *** nichol has quit IRC
[09:53:37] *** red_horned_rihno has joined #angularjs
[09:55:40] *** woodis has joined #angularjs
[09:56:20] <bobbydigitales> ok I fixed it, <base> was set to "/game/". When I set that to "/" and use "/game" in the route it works.
[09:56:26] <bobbydigitales> don't know why really though :)
[09:56:54] *** lemur has quit IRC
[09:57:08] *** woodis has quit IRC
[09:57:17] *** doerteGone is now known as doerteDev
[09:57:30] *** lemur has joined #angularjs
[09:58:22] *** LeonardDa has quit IRC
[09:59:40] *** edzez has joined #angularjs
[09:59:54] *** perdzock has joined #angularjs
[10:00:12] *** Evanion has joined #angularjs
[10:00:32] *** fbenoit has joined #angularjs
[10:01:43] *** Ajans has joined #angularjs
[10:02:08] *** lemur has quit IRC
[10:02:30] *** TheAceOfHearts has quit IRC
[10:02:57] *** qdk has quit IRC
[10:02:59] *** edzez_ has joined #angularjs
[10:03:35] *** dman777 has quit IRC
[10:03:38] *** PeterMetz has joined #angularjs
[10:03:40] *** DarrenCraig has joined #angularjs
[10:03:43] *** kulish has joined #angularjs
[10:04:52] *** Click66 has quit IRC
[10:05:19] *** red_horned_rihno has quit IRC
[10:05:43] *** dman777 has joined #angularjs
[10:05:44] *** red_horned_rihno has joined #angularjs
[10:06:17] *** Evanion has quit IRC
[10:06:20] *** Dhruv has joined #angularjs
[10:06:21] *** red_horned_rihno has quit IRC
[10:06:22] *** grogs has quit IRC
[10:06:27] *** Dhruv has left #angularjs
[10:06:32] *** edzez has quit IRC
[10:06:48] *** red_horned_rihno has joined #angularjs
[10:07:17] *** saucey has joined #angularjs
[10:07:29] *** red_horned_rihno has quit IRC
[10:07:59] *** red_horned_rihno has joined #angularjs
[10:08:09] *** doug64k has quit IRC
[10:08:37] *** red_horned_rihno has quit IRC
[10:09:06] *** red_horned_rihno has joined #angularjs
[10:09:08] *** dannyc_ has joined #angularjs
[10:09:23] *** Oxynum has joined #angularjs
[10:09:41] *** red_horned_rihno has quit IRC
[10:10:11] *** red_horned_rihno has joined #angularjs
[10:10:48] *** tripu has quit IRC
[10:10:56] *** josh-k has joined #angularjs
[10:11:01]
<K-202> How can I group elements by property? http://pastebin.com/eqs329yd (notice that the property is only an ID and name of group must be retrieved from another model or part of JSON)
[10:12:41] *** TheAceOfHearts has joined #angularjs
[10:13:35] *** tfennelly has joined #angularjs
[10:14:20] *** Priyank has joined #angularjs
[10:14:55] *** e0ipso|away is now known as e0ipso
[10:15:03] *** edzez__ has joined #angularjs
[10:15:55] *** glassir has joined #angularjs
[10:17:28] *** milka has joined #angularjs
[10:18:31] *** edzez has joined #angularjs
[10:18:40] *** edzez_ has quit IRC
[10:19:03] *** beilabs has quit IRC
[10:20:00] *** edzez__ has quit IRC
[10:20:07] *** glassir has quit IRC
[10:20:22] *** fbenoit has quit IRC
[10:21:04] *** fbenoit has joined #angularjs
[10:21:21] *** marr has joined #angularjs
[10:21:41] *** ccohn has joined #angularjs
[10:22:46] *** dannyc__ has joined #angularjs
[10:23:33] *** jdj_dk has joined #angularjs
[10:23:48] *** jdj_dk_ has joined #angularjs
[10:23:58] *** disorder20 has joined #angularjs
[10:24:22] *** ninkotech has joined #angularjs
[10:26:18] *** ccohn has quit IRC
[10:26:25] *** Evanion has joined #angularjs
[10:26:51] *** lostInParadise has quit IRC
[10:27:15] *** dannyc__ has quit IRC
[10:27:48] *** thomastuts has joined #angularjs
[10:29:05] *** CodeFriar has quit IRC
[10:32:18] *** jaydubya has joined #angularjs
[10:33:43] *** sandelius has joined #angularjs
[10:34:25] <sandelius> We're about to start a new big app withiin the company. Is there a good idea to use 1.3 or will it be obsolete soon?
[10:36:19] *** jonasliljestrand has quit IRC
[10:36:19] *** Txandy has joined #angularjs
[10:36:39] *** mityaz has joined #angularjs
[10:36:57] <PeterMetz> sandelius: Hard to tell, the release date of v2.0 not known yet.
[10:37:05] *** bengillies has joined #angularjs
[10:37:07] <blackkbot> i don't think you should put off building something just because a newer version of a tool might come out eventually but idk it really depends on if you think the newer version will make things much easier
[10:37:29] <PeterMetz> I fully agree with blackkbot too.
[10:37:41] *** iksik has quit IRC
[10:37:43] *** jaydubya has quit IRC
[10:38:53] <mvk> BahamutWC|Laptop: i think i know what the problem is -> the sortable is initialized during page load, then the bound repeater is empty.. later when it's filled, the ui is updated
[10:39:08] *** AlSquirrel has quit IRC
[10:39:09] *** iksik has joined #angularjs
[10:39:16] <BahamutWC|Laptop> mvk: that still sounds like the plugin’s fault
[10:39:24] <BahamutWC|Laptop> also I can’t fall asleep :(
[10:39:37] *** aslate has joined #angularjs
[10:39:54] *** johnsonpham has joined #angularjs
[10:39:57] <mvk> but Sortable still uses the initial source available during page-load, which is empty, then applies the empty object to the $scope.items
[10:40:18] *** johnsonpham has quit IRC
[10:40:22] <mvk> why?
[10:41:36] *** Juanchito has joined #angularjs
[10:41:38] *** Iravan has quit IRC
[10:42:14] *** jstroem has quit IRC
[10:42:22] <TheAceOfHearts> angular 1.3 isn't going away any time soon~
[10:42:34] <TheAceOfHearts> just start using more directives over controllers
[10:42:37] *** jstroem has joined #angularjs
[10:43:58] *** tarnus has joined #angularjs
[10:44:17] *** K-202 has quit IRC
[10:44:29] *** jstroem has quit IRC
[10:44:36] *** K-202 has joined #angularjs
[10:44:37] *** jstroem has joined #angularjs
[10:44:44] *** juampy has joined #angularjs
[10:45:20] *** odin_ has quit IRC
[10:45:22] *** adben has joined #angularjs
[10:46:50] *** jstroem has quit IRC
[10:47:18] *** jstroem has joined #angularjs
[10:47:41] *** davi has joined #angularjs
[10:47:41] *** davi has joined #angularjs
[10:48:25] *** doerteDev is now known as doerteGone
[10:48:29] *** odin_ has joined #angularjs
[10:48:34] <Evanion> I don’t see Angular 2.0 comming out in <1 year (not counting alphas and betas)
[10:48:41] *** tarnus has quit IRC
[10:49:07] <BahamutWC|Laptop> I don’t see Angular 2.0 coming out until 2016, maybe not even until mid 2016
[10:50:08] *** blomman has quit IRC
[10:50:39] *** greengriminal has quit IRC
[10:50:53] *** laurensclaessen has quit IRC
[10:50:59] *** blomman has joined #angularjs
[10:51:05] *** edy has joined #angularjs
[10:51:59] *** rtpg has quit IRC
[10:52:30] *** tschundeee has joined #angularjs
[10:52:37] *** rtpg has joined #angularjs
[10:52:45] *** tschundeee has joined #angularjs
[10:54:42] *** mdedetri_ has quit IRC
[10:56:35] <edulix> hello people
[10:56:47] *** azizur has joined #angularjs
[10:57:39] *** laurensclaessen has joined #angularjs
[10:58:07] *** mdedetrich has joined #angularjs
[10:59:49] *** sk87 has quit IRC
[11:01:09] *** lyanchih has quit IRC
[11:01:25] *** freelyfred has quit IRC
[11:01:32] *** Aswebb_ has joined #angularjs
[11:02:31] *** usse has joined #angularjs
[11:02:32] *** qdk has joined #angularjs
[11:03:10] *** lyanchih has joined #angularjs
[11:03:39] *** jlebrech has joined #angularjs
[11:05:08] *** Aswebb_ has quit IRC
[11:05:18] *** jstroem has quit IRC
[11:05:41] *** jstroem has joined #angularjs
[11:06:18] *** lyanchih has quit IRC
[11:08:45] *** MaxV has quit IRC
[11:09:57] *** sk87 has joined #angularjs
[11:10:04] *** AlSquire has joined #angularjs
[11:10:16] *** azizur9 has joined #angularjs
[11:10:51] *** devhoag has joined #angularjs
[11:11:17] *** yelvert has joined #angularjs
[11:11:41] *** blomman has quit IRC
[11:12:17] *** blomman has joined #angularjs
[11:13:05] *** tschundeee has quit IRC
[11:13:11] *** azizur has quit IRC
[11:15:24] *** yelvert has quit IRC
[11:15:29] *** devhoag has quit IRC
[11:16:44] *** glassir has joined #angularjs
[11:17:24] *** merobertsjr has quit IRC
[11:18:48] *** tbo_ has joined #angularjs
[11:18:50] *** __emps is now known as _emps
[11:18:55] *** _emps is now known as emps
[11:19:31] *** mak`` has joined #angularjs
[11:20:06] *** iksik has quit IRC
[11:21:13] <Hounddog> Hi, i am trying to lake a directive for a jquery plugin. The plugin requires to be called like interact('.draggable'). If i try to use interact(element) i get an error "Cannot read property 'document' of undefined" so how would i know combine this within the directive?
[11:21:22] *** glassir has quit IRC
[11:21:25] <Hounddog> s/lake/make
[11:21:49] *** k-dawg has joined #angularjs
[11:22:05] *** MaxV has joined #angularjs
[11:22:27] *** iksik has joined #angularjs
[11:22:28] *** ccohn has joined #angularjs
[11:23:11] *** yhzhu has quit IRC
[11:23:24] *** macabre_ has joined #angularjs
[11:23:35] *** dannyc__ has joined #angularjs
[11:24:59] *** marcjs has joined #angularjs
[11:25:42] *** Aswebb_ has joined #angularjs
[11:26:43] *** blomman has quit IRC
[11:26:57] *** ccohn has quit IRC
[11:27:14] *** narutimateum has joined #angularjs
[11:27:24] *** blomman has joined #angularjs
[11:27:27] *** mdedetrich has quit IRC
[11:27:35] *** juampy_ has joined #angularjs
[11:27:44] *** Solid1_afk is now known as Solid1
[11:28:01] *** macabre_ has quit IRC
[11:28:19] *** ansu has quit IRC
[11:28:21] *** juampy has quit IRC
[11:28:29] *** dannyc__ has quit IRC
[11:28:55] *** juampy__ has joined #angularjs
[11:28:56] *** stormbytes has quit IRC
[11:29:05] *** ansu has joined #angularjs
[11:29:09] *** oller has joined #angularjs
[11:29:44] *** mityaz has quit IRC
[11:30:15] *** juampy__ is now known as juampy
[11:30:44] *** bayousoft has quit IRC
[11:31:23] *** frkout_ has joined #angularjs
[11:31:24] *** Sontakey has joined #angularjs
[11:31:52] *** pknordic has quit IRC
[11:31:55] *** blomman has quit IRC
[11:32:27] *** pknordic has joined #angularjs
[11:32:36] *** juampy_ has quit IRC
[11:32:58] *** lugzer has joined #angularjs
[11:33:09] *** frkout__ has joined #angularjs
[11:33:26] *** frkout_ has quit IRC
[11:34:04] *** doerteGone has quit IRC
[11:34:54] *** \du has joined #angularjs
[11:34:54] *** \du has joined #angularjs
[11:35:09] *** caitp has joined #angularjs
[11:35:16] *** frkout has quit IRC
[11:35:33] *** kompressor has quit IRC
[11:35:35] *** doerteGone has joined #angularjs
[11:36:27] *** doerteGone is now known as doerteDev
[11:36:55] *** JohnBat26 has joined #angularjs
[11:37:15] *** pknordic has quit IRC
[11:37:16] *** josh-k has quit IRC
[11:38:25] *** mmealling has quit IRC
[11:39:23] *** caitp has quit IRC
[11:40:21] *** zemanel has joined #angularjs
[11:40:51] *** Trow has joined #angularjs
[11:41:00] *** doerteDev has quit IRC
[11:43:01] *** PGTips has joined #angularjs
[11:43:31] *** tomphp has joined #angularjs
[11:43:54] *** jonasliljestrand has joined #angularjs
[11:43:55] *** tomphp is now known as Guest23674
[11:44:23] *** Alteration has joined #angularjs
[11:44:58] <Alteration> :-X
[11:45:06] *** doerteGone has joined #angularjs
[11:45:10] *** swirlycheetah has joined #angularjs
[11:45:17] *** Alteration has left #angularjs
[11:45:24] *** Alteration has joined #angularjs
[11:45:27] *** Alteration has left #angularjs
[11:45:29] *** doerteGone is now known as doerteDev
[11:45:53] *** nopolabs1 has joined #angularjs
[11:45:58] *** Alteration has joined #angularjs
[11:46:48] *** sk87 has quit IRC
[11:48:02] *** Greed has joined #angularjs
[11:48:33] *** motionman has quit IRC
[11:48:48] *** nopolabs has quit IRC
[11:49:25] *** guilbep has quit IRC
[11:49:40] *** doerteDev has quit IRC
[11:49:50] *** bobbydigitales has quit IRC
[11:51:04] *** usse has quit IRC
[11:51:08] *** guilbep has joined #angularjs
[11:51:12] *** dnewkerk has quit IRC
[11:51:26] *** dhcar is now known as dhcar_AFK
[11:51:42] *** OnkelTem has quit IRC
[11:51:52] *** charlesfinley has quit IRC
[11:52:32] *** OnkelTem has joined #angularjs
[11:54:22] *** _ritchie_ has quit IRC
[11:54:51] *** mityaz has joined #angularjs
[11:54:58] *** defaultdict has joined #angularjs
[11:55:55] *** jimmyy has quit IRC
[11:56:40] <pkiller> /set irc.look.smart_filter on
[11:56:51] <pkiller> yea... whitespace :)
[11:57:01] *** sahbeewah has quit IRC
[12:00:51] *** cannap has joined #angularjs
[12:01:05] *** jonasliljestrand has quit IRC
[12:01:12] *** tschundeee has joined #angularjs
[12:03:38] *** griefga has joined #angularjs
[12:03:42] *** marcjs has quit IRC
[12:04:58] *** ram_ has joined #angularjs
[12:07:01] <ram_> hello
[12:07:26] *** ram_ has quit IRC
[12:08:16] *** Aswebb_ has quit IRC
[12:08:19] *** blohm has joined #angularjs
[12:08:35] *** jstroem has quit IRC
[12:08:44] *** blohm has quit IRC
[12:09:19] *** frkout has joined #angularjs
[12:09:42] *** frkout__ has quit IRC
[12:09:49] <mvk> $http.get returns a json result as an Array
[12:10:06] <mvk> how would i go and store the result, do i need to serialize it again?
[12:10:17] *** jagga_ has joined #angularjs
[12:10:26] *** ederign is now known as ederign_pto
[12:11:23] *** schurkamp has joined #angularjs
[12:11:35] *** jstroem_ has joined #angularjs
[12:11:43] *** schurkamp has quit IRC
[12:12:17] *** narutimateum has quit IRC
[12:12:51] <mvk> ok, fixed that with JSON.parse / JSON.stringify :)
[12:13:07] *** sk87 has joined #angularjs
[12:13:58] *** James has joined #angularjs
[12:14:22] *** James is now known as Guest90486
[12:14:26] *** mityaz has quit IRC
[12:15:00] *** tbo_ has quit IRC
[12:16:04] *** mityaz has joined #angularjs
[12:16:21]
<griefga> I've got a controller method that has a promise inside it. I can not for the life of me figure out how to make that method return something from inside the promise.then() call. If anyone smarter than me could look at this and just give a hint I would be endlessly thankful! //Developer pulling hair. Code: http://pastebin.com/djFAg2HG Would like $scope.search to return what's at line 17
[12:16:39] *** Guest23674 has quit IRC
[12:17:07] *** coia has joined #angularjs
[12:17:17] *** coia has quit IRC
[12:17:42] *** glassir has joined #angularjs
[12:18:08] *** mityaz has quit IRC
[12:18:12] *** blomman has joined #angularjs
[12:18:14] <Guest90486> I'm trying to use a custom template in ui-bootstrap. For e.g. in datepicker I'm saying:$ templateCache.put("template/datepicker/datepicker.html", response[1]); however it's still using the base template. Does anyone have any ideas? (I know this is angular general but github says to use this channel) thanks so much for any help
[12:18:30] *** cornerma1 has joined #angularjs
[12:18:43] *** tomphp_ has joined #angularjs
[12:18:46] *** mityaz has joined #angularjs
[12:18:52] *** elyssonmr has joined #angularjs
[12:19:22] *** BahamutWC|Laptop has quit IRC
[12:20:11] *** tidball has joined #angularjs
[12:21:12] *** jaydubya has joined #angularjs
[12:21:52] *** cornerman has quit IRC
[12:21:53] *** cornerma1 is now known as cornerman
[12:22:03] *** glassir has quit IRC
[12:22:14] *** Oxynum has quit IRC
[12:22:53] *** armendari has joined #angularjs
[12:23:00] *** SargoDarya has quit IRC
[12:23:10] *** ccohn has joined #angularjs
[12:23:15] *** fedenunez has joined #angularjs
[12:23:22] *** guilbep has quit IRC
[12:23:31] *** lexek_ has joined #angularjs
[12:23:33] *** jagga has quit IRC
[12:23:36] *** jagga_ has quit IRC
[12:23:52] *** armendari has quit IRC
[12:23:55] *** jagga has joined #angularjs
[12:24:18] *** ali4ever4 has joined #angularjs
[12:24:22] *** dannyc__ has joined #angularjs
[12:26:42] *** katzenber has joined #angularjs
[12:26:57] *** guilbep has joined #angularjs
[12:27:10] *** katzenber has quit IRC
[12:27:22] *** sigurding has quit IRC
[12:27:26] *** ccohn has quit IRC
[12:27:58] *** merobertsjr has joined #angularjs
[12:28:38] *** glassir has joined #angularjs
[12:29:01] *** dannyc__ has quit IRC
[12:29:27] *** Oxynum has joined #angularjs
[12:29:46] *** schlottma has joined #angularjs
[12:30:52] *** mtsr has joined #angularjs
[12:31:44] *** hawa has quit IRC
[12:31:46] *** sahbeewah has joined #angularjs
[12:32:00] *** schlottma has quit IRC
[12:32:06] *** mtsr has quit IRC
[12:32:43] *** tomphp_ has quit IRC
[12:32:48] *** tarnus has joined #angularjs
[12:33:00] *** merobertsjr has quit IRC
[12:33:08] *** RangerRick has quit IRC
[12:33:18] *** tomphp has joined #angularjs
[12:33:30] *** RangerRick has joined #angularjs
[12:33:33] *** jonasliljestrand has joined #angularjs
[12:33:49] *** Prakash has joined #angularjs
[12:34:00] *** monbro has joined #angularjs
[12:34:41] *** mennea has joined #angularjs
[12:34:41] *** mogaj has quit IRC
[12:34:46] *** opielski has joined #angularjs
[12:34:58] *** fbenoit has quit IRC
[12:35:13] *** kwladyka has joined #angularjs
[12:35:19] <Prakash> Hi i am trying to refresh the data on smartTable on click of a facet . Does Anybody have any idea how to implement this ?
[12:35:41] *** jaydubya has quit IRC
[12:35:57] *** opielski has quit IRC
[12:37:41] *** tarnus has quit IRC
[12:38:01] *** sirkitree|afk is now known as sirkitree
[12:38:35] *** locket has joined #angularjs
[12:38:38] *** rtpg has joined #angularjs
[12:38:56] *** locket has quit IRC
[12:39:01] *** pknordic has joined #angularjs
[12:40:22] *** HACKING-FACEBOOK has joined #angularjs
[12:40:33] *** Aswebb_ has joined #angularjs
[12:41:40] *** pernod has joined #angularjs
[12:42:02] *** pernod has quit IRC
[12:43:14] *** az7ar_away has quit IRC
[12:43:33] *** Click66 has joined #angularjs
[12:44:23] *** micks_9093 has joined #angularjs
[12:44:30] *** caitp has joined #angularjs
[12:44:43] *** roemer has joined #angularjs
[12:44:57] *** IJNX has joined #angularjs
[12:45:04] *** roemer has quit IRC
[12:45:21] *** laurensclaessen has quit IRC
[12:47:41] *** gkap has joined #angularjs
[12:47:48] *** neathery has joined #angularjs
[12:48:31] *** fairuz has quit IRC
[12:49:00] *** neathery has quit IRC
[12:51:38] *** montbrian has joined #angularjs
[12:51:57] *** glassir has quit IRC
[12:51:58] *** _45kb has joined #angularjs
[12:52:13] *** rkjdid has joined #angularjs
[12:52:26] *** montbrian has quit IRC
[12:52:32] <_45kb> hi, sorry why window.history.replaceState() is refreshing the page? shouldn't this only replace the url and the history state?
[12:52:37] *** mmealling has joined #angularjs
[12:53:05] *** fbenoit has joined #angularjs
[12:53:25] *** jtimon has joined #angularjs
[12:54:23] *** verweto has joined #angularjs
[12:54:29] *** VeeWee has quit IRC
[12:54:48] *** Thorn has quit IRC
[12:55:05] *** fillingha has joined #angularjs
[12:55:30] *** rafagomes has joined #angularjs
[12:56:11] *** jaydubya has joined #angularjs
[12:57:33] <Hounddog> I am creating some own directives for drag and drop and need to inform the main controller if something is dropped or draggedout. Just thinking if i should just broadcast the events
[12:58:09] *** gover has joined #angularjs
[12:58:24] *** PGTips_ has joined #angularjs
[12:58:57] *** mjw56 has quit IRC
[12:59:00] *** gover has quit IRC
[12:59:21] *** tschunde_ has joined #angularjs
[12:59:42] *** KushS has joined #angularjs
[12:59:47] *** sigurding has joined #angularjs
[13:00:48] <KushS> I wish to input a number from the user using <input> and then generate divs(using ng-repeat) based on that number. Any help ?
[13:00:52] *** cbennett has joined #angularjs
[13:00:54] *** skalpelis has joined #angularjs
[13:00:58] *** laurensclaessen has joined #angularjs
[13:01:08] <skalpelis> PYDERAS; ESI; TAVO KRAIVAS BATASRASTISAS; KUBAS;
[13:01:14] <skalpelis> KUBA;S; KUBANA BANA BA;]/.
[13:01:36] *** holway has joined #angularjs
[13:01:37] *** martianboy has quit IRC
[13:01:37] *** PGTips has quit IRC
[13:01:52] *** swirlycheetah has quit IRC
[13:02:03] *** holway has quit IRC
[13:02:37] *** tschundeee has quit IRC
[13:02:47] *** lele has quit IRC
[13:03:02] <ali4ever4> KushS: i am just gessing a possible way but i am not expert , assign a $parser to the directive you get user input then make it create an array of numbers by the count of what user entered
[13:03:11] *** marcjs has joined #angularjs
[13:03:17] <ali4ever4> then ng-repeat on that array for your divs
[13:04:24] *** samantha has joined #angularjs
[13:04:39] *** shoals has joined #angularjs
[13:04:48] *** samantha is now known as Guest5156
[13:05:04] *** PGTips__ has joined #angularjs
[13:05:07] *** Guest5156 has quit IRC
[13:05:14] *** shoals has quit IRC
[13:05:22] *** Hounddog has quit IRC
[13:06:18] <_45kb> How is it possible that $window.history.replaceState({}, null, '/path'); is triggering the $routeChange event?
[13:06:48] <skalpelis> TRIGGER-. ALL.
[13:06:50] <skalpelis> NO TIME.
[13:06:50] <_45kb> Shoulldn't history only change the url string in brower only ?
[13:06:52] <skalpelis> TIME ON.
[13:06:56] <skalpelis> FUCK MAKE A ERROR;
[13:07:18] *** dylancole has joined #angularjs
[13:07:18] *** swirlycheetah has joined #angularjs
[13:08:06] *** inzano has joined #angularjs
[13:08:14] *** Snugug has joined #angularjs
[13:08:41] *** PGTips_ has quit IRC
[13:09:04] <KushS> ali4ever4: I wish to do it real time, like as the imput changes so the number of divs
[13:09:17] <skalpelis> DIOS--------.
[13:09:22] <skalpelis> TIME OFF;
[13:09:24] <skalpelis> TIME OFF;
[13:09:26] *** PGTips has joined #angularjs
[13:09:32] <skalpelis> ;] IT`S COM FOR ACT ON THE LIKE DAYS
[13:09:33] *** inzano has quit IRC
[13:09:54] <skalpelis> IT`S A COM TO ME SMART IQ. TOO LIKE A ME;P ON THE EXCELLENT PRIME;
[13:09:55] <skalpelis> TIME ON.
[13:09:58] <skalpelis> OFF-.
[13:10:00] *** frkout_ has joined #angularjs
[13:10:00] <skalpelis> TIME ON!
[13:10:11] *** frkout has quit IRC
[13:10:30]
<burzum> I'm trying to upload a file to my php application, I'm receiving the data but the file upload seems to be different from what I get from a normal POST http://pastebin.com/xTQP7Gyy Why is the tmp_name file name missing here? Looks like its using no path or hasn't really uploaded the file.
[13:10:45] *** PGTips__ has quit IRC
[13:11:22] *** arpu has joined #angularjs
[13:11:32] <skalpelis> NERA NIEKO BALTA BALTA-.
[13:11:37] <skalpelis> SIMPATINA-;#
[13:11:40] <skalpelis> IR AKACIJA-.
[13:11:44] <mvk> this can never work in a two way binding right? $scope.items = JSON.parse($cookies.privateSortList);
[13:11:44] *** jlebrech has quit IRC
[13:11:48] <burzum> somebody please ban skalpelis, hes spaming in private as well
[13:11:52] <skalpelis> ;) IT`S A ACTION ON .
[13:11:53] <burzum> (13:11:44) <skalpelis> OK LIKE IN TIME LOVES;
[13:11:53] <burzum> (13:11:51) <skalpelis> TOO HANDING S CR SA; A;.
[13:11:53] <burzum> (13:11:52) <skalpelis> FUCK.
[13:12:02] <skalpelis> TO BE FUCK TO YOU LIKE ANY`S.
[13:12:20] *** linhares has joined #angularjs
[13:12:41] *** ali4ever4 has left #angularjs
[13:12:49] *** linhares has quit IRC
[13:12:54] *** boxmein has joined #angularjs
[13:13:18] <pontiki> until then, /ignore should work
[13:13:19] <mvk> skalpelis: stfu
[13:13:21] <mvk> this can never work in a two way binding right? $scope.items = JSON.parse($cookies.privateSortList);
[13:13:23] <dylancole> burzum: Basically the file you're uploading to the server is not the same file once the data is recieved?
[13:13:29] *** PGTips_ has joined #angularjs
[13:14:14] *** PGTips__ has joined #angularjs
[13:14:15] <skalpelis> MOLIS-.
[13:14:17] *** glaksmono has quit IRC
[13:14:18] <skalpelis> LAIKAS-.
[13:14:19] *** yelvert has joined #angularjs
[13:14:19] <skalpelis> FAKTAI-.
[13:14:21] <skalpelis> AKIS-.
[13:14:23] <skalpelis> LAIKAS-.
[13:14:31] <skalpelis> TIME IN HAND YOUR SEIV;
[13:14:46] <dylancole> burzum: PM me. This is getting cluttered because of the spam.
[13:15:05] <burzum> ok, thank you, in the case its still skalpelis I've just set him on my ignore list
[13:15:24] *** schessler has joined #angularjs
[13:15:54] <_45kb> guys sorry how do i change url without refreshing at all? i tryed history.replaceState and $location.state() but both are not working :(
[13:15:56] *** schessler has quit IRC
[13:16:46] *** PGTips has quit IRC
[13:17:57] *** PGTips_ has quit IRC
[13:18:30] *** yelvert has quit IRC
[13:18:51] *** landolt has joined #angularjs
[13:19:29] *** skalpelis has quit IRC
[13:19:57] *** iksik has quit IRC
[13:20:05] *** daniele__ has joined #angularjs
[13:21:31] <daniele__> Hello all I've a directive that create a tree and when you select a node it pass the content to the controller (it works fine), Now I've the problem to send the value from the controller to the directive when you change one value and save it. How I can do it?
[13:22:03] *** dan2k3k4 has joined #angularjs
[13:22:06] *** PGTips__ has quit IRC
[13:22:10] *** K-202 has quit IRC
[13:22:13] *** _45kb has quit IRC
[13:22:16] <daniele__> This's the directive: <sb-json-service root="jsonData.endpointGroups" on-select="selectedServices">
[13:22:59] <daniele__> on-select send the value when you select the node. But when You click save from the controller? How I can send the changed value?
[13:23:26] *** dc_ has quit IRC
[13:23:34] *** SargoDarya has joined #angularjs
[13:23:44] *** glaksmono has joined #angularjs
[13:23:55] *** ccohn has joined #angularjs
[13:24:02] *** HACKING-FACEBOOK has quit IRC
[13:24:06] *** jstroem_ has quit IRC
[13:24:36] *** kinniburg has joined #angularjs
[13:25:01] *** wsmoak has joined #angularjs
[13:26:04] *** SargoDarya has quit IRC
[13:26:16] *** HACKING-FACEBOOK has joined #angularjs
[13:26:18] *** SargoDarya has joined #angularjs
[13:26:41] *** japhar81 has quit IRC
[13:26:55] *** IvailoStoianov has joined #angularjs
[13:28:20] *** tschunde_ has quit IRC
[13:28:29] *** ccohn has quit IRC
[13:29:08] *** fedenunez has quit IRC
[13:29:14] *** HACKING-FACEBOOK has quit IRC
[13:29:24] *** Zentdayn has joined #angularjs
[13:29:25] *** d10n-work has joined #angularjs
[13:30:22] *** HACKING-FACEBOOK has joined #angularjs
[13:31:30] *** rchavik has joined #angularjs
[13:31:42] *** kulish has quit IRC
[13:31:46] *** Ajans1 has joined #angularjs
[13:32:02] *** mityaz has quit IRC
[13:32:48] *** glassir has joined #angularjs
[13:33:45] *** Ajans has quit IRC
[13:33:54] *** loverajoel has joined #angularjs
[13:35:01] *** kinniburg has quit IRC
[13:36:30] *** SargoDarya has quit IRC
[13:36:37] *** reynierpm has joined #angularjs
[13:36:44] *** reynierpm has left #angularjs
[13:37:00] *** jlebrech has joined #angularjs
[13:37:37] *** dolejsi has joined #angularjs
[13:37:55] *** slopjong has quit IRC
[13:38:00] *** davi has quit IRC
[13:38:55] *** dolejsi has quit IRC
[13:39:30] *** glaksmono has quit IRC
[13:40:08] *** cakirke has joined #angularjs
[13:40:34] *** daniele__ has quit IRC
[13:40:37] *** Leon has quit IRC
[13:40:46] *** jr3 has joined #angularjs
[13:40:51] *** frkout_ has quit IRC
[13:40:56] *** frkout has joined #angularjs
[13:41:09] *** mityaz has joined #angularjs
[13:41:50] *** caitp has quit IRC
[13:43:42] *** K-202 has joined #angularjs
[13:43:45] *** glaksmono has joined #angularjs
[13:44:05] *** micks_9093 has quit IRC
[13:44:32] *** foltz has joined #angularjs
[13:44:52]
<K-202> Hi. Can Angular filter items and group them into groups? http://pastebin.com/eqs329yd I prefer 1st approach where you have separate "talks" and "locations" and "talks" items contain ID of location
[13:45:05] *** Aswebb_ has quit IRC
[13:45:07] *** Prakash has quit IRC
[13:45:33] *** glaksmono has quit IRC
[13:45:33] <K-202> or... group them into A, B, C, D, E...... X, Y, Z groups (first letter of name)
[13:46:01]
<sabrehagen> hi guys, i'm getting some really weird results from javascript. i have an object, and printing it, it shows all the properties. then when i try and access those properties, they show undefined. can somebody take a look at this screenshot and tell me what the hell is happening please? http://i.imgur.com/2Elx7Nm.png
[13:46:20] *** foltz has quit IRC
[13:46:27] *** dc has joined #angularjs
[13:47:08] *** monbro has quit IRC
[13:47:45] *** sk87 has quit IRC
[13:48:56] *** waverider has quit IRC
[13:49:08] *** barick has joined #angularjs
[13:49:13] *** artee_ has joined #angularjs
[13:49:15] *** barick has quit IRC
[13:49:42] *** artee_1 has quit IRC
[13:50:14] *** tripu has joined #angularjs
[13:50:29] *** Leon has joined #angularjs
[13:50:43] *** loverajoel has quit IRC
[13:52:14] *** caitp has joined #angularjs
[13:52:51] *** spatialbrew has joined #angularjs
[13:53:21] *** mrded has joined #angularjs
[13:53:46] *** jdj_dk_ has quit IRC
[13:55:16] *** mvk has quit IRC
[13:56:18] *** TyrfingMjolnir has quit IRC
[13:56:33] *** btc_panhandler has quit IRC
[13:56:54] *** craigp has quit IRC
[13:56:59] *** Aswebb_ has joined #angularjs
[13:57:18] *** craigp has joined #angularjs
[13:57:33] *** gochenour has joined #angularjs
[13:57:51] *** gkap has quit IRC
[13:58:03] *** gochenour has quit IRC
[13:58:04] *** jdj_dk has joined #angularjs
[13:58:06] *** lsiv568 has joined #angularjs
[13:58:41] *** AlSquirrel has joined #angularjs
[14:00:26] *** tarnus has joined #angularjs
[14:00:37] *** hervert has joined #angularjs
[14:00:43] *** cheef has joined #angularjs
[14:00:50] *** shaym_ has joined #angularjs
[14:00:51] *** jemendja has joined #angularjs
[14:00:54] <jemendja> hi
[14:01:19] *** hervert has quit IRC
[14:01:53] *** Snugug has quit IRC
[14:02:13] *** azizur9 has quit IRC
[14:02:18] *** AlSquire has quit IRC
[14:03:23] *** lugzer has quit IRC
[14:04:04] *** cancino has joined #angularjs
[14:04:16] *** Anton_ has quit IRC
[14:04:59] *** diosney has joined #angularjs
[14:06:45] *** loduca has joined #angularjs
[14:08:51] *** tschundeee has joined #angularjs
[14:09:04] *** lsiv568 has quit IRC
[14:10:12] *** sollman has joined #angularjs
[14:10:15] *** ansu has quit IRC
[14:10:21] *** D9 has joined #angularjs
[14:10:29] *** Anton_ has joined #angularjs
[14:10:31] *** sollman has quit IRC
[14:10:36] *** ansu has joined #angularjs
[14:10:38] *** lsiv568 has joined #angularjs
[14:10:40] *** Left_Turn has joined #angularjs
[14:11:13] *** loverajoel has joined #angularjs
[14:11:39] *** frkout has quit IRC
[14:11:43] *** frkout_ has joined #angularjs
[14:11:48] *** daandd has joined #angularjs
[14:12:18] *** rtpg has quit IRC
[14:12:22] *** johnkevinmbasco has joined #angularjs
[14:12:29] *** Stichoza has joined #angularjs
[14:12:38] *** Anton_ has quit IRC
[14:12:39] *** Sky[x] has joined #angularjs
[14:12:53] <daandd> I'm working on a timetable that needs an active class added whenever an event is going on, how can I execute this ng-class function every minute?
[14:13:16] *** marquess has joined #angularjs
[14:13:17] *** Trow has quit IRC
[14:13:19] *** marquess has quit IRC
[14:13:47] *** sk87 has joined #angularjs
[14:13:53] <cheef> hey guys how do i watch multiple properties using a watch fn instead of an expression. at the moment it only seems to fire whe the values im interested in change from null > defined, but i also want it to fire for defined > changed
[14:14:19] *** Trow has joined #angularjs
[14:15:58] *** peppel has joined #angularjs
[14:16:14] *** peppel has quit IRC
[14:16:15] *** rtpg has joined #angularjs
[14:16:38] *** Sadin has joined #angularjs
[14:16:58] *** SargoDarya has joined #angularjs
[14:17:13] *** yelvert has joined #angularjs
[14:18:32] *** gkap has joined #angularjs
[14:18:41] *** ishan1604 has joined #angularjs
[14:19:27] *** stormpat has joined #angularjs
[14:19:39] *** waverider has joined #angularjs
[14:21:09] *** scythe__ has joined #angularjs
[14:21:13] *** cakirke has quit IRC
[14:21:17] *** yelvert has quit IRC
[14:22:45] *** aslate has quit IRC
[14:22:58] *** tristanp has joined #angularjs
[14:23:35] *** felipebergamasch has joined #angularjs
[14:24:43] *** ccohn has joined #angularjs
[14:25:27] *** tbo_ has joined #angularjs
[14:26:17] *** borvoh has joined #angularjs
[14:26:22] *** Francis has joined #angularjs
[14:26:38] *** walden|afk is now known as walden
[14:27:05] *** pknordic has quit IRC
[14:27:09] *** Trow has quit IRC
[14:27:54] *** pknordic has joined #angularjs
[14:28:27] *** bayousoft has joined #angularjs
[14:28:37] *** brettfrable has joined #angularjs
[14:28:44] *** tschundeee has quit IRC
[14:29:09] *** rchavik has quit IRC
[14:29:19] *** Anton_ has joined #angularjs
[14:29:20] *** ccohn has quit IRC
[14:29:22] *** tfennelly has quit IRC
[14:29:33] *** simplyshipley has joined #angularjs
[14:30:04] *** htmelvis has joined #angularjs
[14:31:01] *** evilaliv3 has quit IRC
[14:31:19] *** sheplu has quit IRC
[14:31:19] *** evilaliv3 has joined #angularjs
[14:32:49] <jaydubya> Trying to decide on architecture and wanted expert's opinions: (1) have a "DataFactory whose sole responsibility is to make all of the $http calls to the API and have other factories use the DataFactory to resolve promises (i.e., getLoans(), getLoan() from DataFactory.getLoans(); or, (2) skip DataFactory and let i.e. LoansFactory make its own applicable calls to the API. Which do you prefer?
[14:33:36] *** brettfrable has quit IRC
[14:34:18] <Francis> Hey guyz i need help
[14:34:49] *** akrikos has joined #angularjs
[14:34:51] <Francis> is it possible to change the jquery drag and drop whole code in angular js
[14:34:56] <Francis> here a fiddle
[14:35:05] *** encryptd_fractl has joined #angularjs
[14:35:10] <Francis> if yes then plz
[14:35:12] *** juampy is now known as juampy_food
[14:35:29] *** fedenunez has joined #angularjs
[14:36:04] *** Superhard has quit IRC
[14:36:35] *** mfunkie has joined #angularjs
[14:37:00] *** JeffBuhrt has joined #angularjs
[14:37:35] *** Anand_ has joined #angularjs
[14:37:52] *** ishan1604 has quit IRC
[14:38:12] *** earthquake has joined #angularjs
[14:38:19] *** WhatsInTheBoks has joined #angularjs
[14:38:20] *** ishan1604 has joined #angularjs
[14:38:28] *** mchapman has joined #angularjs
[14:38:29] <pknordic> Hey guys, added a plugin using plugman install, but it doesn't show up on cordova plugin ls - any ideas?
[14:39:12] *** Anand_ has quit IRC
[14:40:18] *** bayousoft has quit IRC
[14:41:00] *** bayousoft has joined #angularjs
[14:41:07] *** kent\n has quit IRC
[14:41:40] *** kent\n has joined #angularjs
[14:41:42] *** thomastuts has quit IRC
[14:41:52] *** Linell has joined #angularjs
[14:42:37] *** ishan1604 has quit IRC
[14:42:56] *** killall has joined #angularjs
[14:43:20] *** bayousoft has quit IRC
[14:43:24] <Francis> i see this but cannot understand the functionality see my fiddle tell me how can i convert into angular drag and drop
[14:43:27] <killall> hello im building a webapp, how can i make my textbox and other elements get a nice looking aspect?
[14:43:32] *** felipebergamasch has quit IRC
[14:43:45] *** fairuz has joined #angularjs
[14:43:53] <Francis> actually i am not good in angular js
[14:44:03] *** bayousoft has joined #angularjs
[14:44:10] *** AngularUI has joined #angularjs
[14:44:11]
<AngularUI> [bootstrap] sashless opened pull request #3065: make it useable in xhtml documents (master...fix/xhtml-compatibility) http://git.io/yfpi9Q
[14:44:11] *** AngularUI has left #angularjs
[14:44:22] *** griefga has quit IRC
[14:44:53] *** rho_ has joined #angularjs
[14:44:53] *** rho_ has joined #angularjs
[14:44:53] <jaydubya> killall: Use Bootstrap?
[14:46:33] *** lsiv568 has quit IRC
[14:47:51] *** Guest90486 has quit IRC
[14:47:52] *** shinnya has joined #angularjs
[14:47:57] *** dmack has joined #angularjs
[14:47:57] *** aslate has joined #angularjs
[14:48:15] *** diosney has quit IRC
[14:48:54] *** diosney has joined #angularjs
[14:49:00] <killall> jaydubya: thks
[14:49:03] *** linojon has joined #angularjs
[14:49:37] <killall> jaydubya: alternatives|?
[14:49:50] *** encryptd_fractl has quit IRC
[14:50:08] <Francis> jaydubya link can't work for me i need multi droopale
[14:50:09] *** livingstn has joined #angularjs
[14:50:27] *** manoj has joined #angularjs
[14:50:28] <manoj> hi
[14:50:39] *** gkap has quit IRC
[14:50:53] *** livingstn has joined #angularjs
[14:50:53] *** linojon has quit IRC
[14:50:56] *** livingstn has quit IRC
[14:51:03] *** lsiv568 has joined #angularjs
[14:51:31] *** Brad___ has joined #angularjs
[14:51:34] *** livingstn has joined #angularjs
[14:51:37] <manoj> what the hell is going on?
[14:51:39] *** livingstn has quit IRC
[14:51:59] <jaydubya> killall: Foundation
[14:52:14] *** mdedetrich has joined #angularjs
[14:52:16] *** livingstn has joined #angularjs
[14:52:20] *** learner has quit IRC
[14:52:22] *** manoj has quit IRC
[14:52:40] <Francis> jaydubya i want when i drag any thing i want to drop one more time on same thing
[14:52:51] *** elrabin has joined #angularjs
[14:52:57] *** livingstn has joined #angularjs
[14:53:00] *** danecando has joined #angularjs
[14:53:02] *** livingstn has quit IRC
[14:53:25] *** Brad___ has quit IRC
[14:53:44] <jaydubya> Francis: I know that if you want to use jquery in Angular, you create a directive and put the jquery stuff in the link function using the element attribute but I've never tried to do anything like that so maybe someone else with experience can assist you better
[14:53:46] *** livingstn has joined #angularjs
[14:53:48] *** earthquake has quit IRC
[14:53:50] *** craigp has quit IRC
[14:53:52] *** livingstn has quit IRC
[14:54:15] <Francis> ok thanks for response
[14:54:17] *** FunnyLookinHat has joined #angularjs
[14:54:36] *** doug64k has joined #angularjs
[14:54:37] *** livingstn has joined #angularjs
[14:55:20] *** Linell_ has joined #angularjs
[14:55:26] *** livingstn has joined #angularjs
[14:55:46] *** jr3 has quit IRC
[14:55:55] *** japhar81 has joined #angularjs
[14:56:09] *** livingstn has joined #angularjs
[14:56:13] *** livingstn has quit IRC
[14:56:24] <jaydubya> killall: there is ui-bootstrap which helps if you want to use the bootstrap components as well ... as far as I can tell, Angular w/ Bootstrap is very popular
[14:56:36] *** NickMessing has quit IRC
[14:56:42] <killall> thks
[14:56:51] *** livingstn has joined #angularjs
[14:57:16] *** elrabin has quit IRC
[14:57:33] *** livingstn has joined #angularjs
[14:58:00] *** Superhard has joined #angularjs
[14:58:15] *** livingstn has joined #angularjs
[14:58:35] *** Siecje has joined #angularjs
[14:58:57] *** livingstn has joined #angularjs
[14:59:18] *** doug64k has quit IRC
[14:59:36] *** livingstn has joined #angularjs
[14:59:43] *** jr3 has joined #angularjs
[14:59:52] *** DarrenCraig has quit IRC
[15:00:03] *** mary5030 has joined #angularjs
[15:00:18] *** livingstn has joined #angularjs
[15:00:22] *** livingstn has quit IRC
[15:00:33] *** ccohn has joined #angularjs
[15:01:01] *** livingstn has joined #angularjs
[15:01:32] *** cboden has joined #angularjs
[15:01:43] *** livingstn has joined #angularjs
[15:01:52] *** Fishy has quit IRC
[15:02:22] *** livingstn has joined #angularjs
[15:02:32] *** mdedetrich has quit IRC
[15:02:43] *** chachan has joined #angularjs
[15:02:51] *** Guest89 has joined #angularjs
[15:03:03] *** livingstn has joined #angularjs
[15:03:08] *** daniele__ has joined #angularjs
[15:03:10] *** craigp has joined #angularjs
[15:03:16] <K-202> How to trigger data binding manually?
[15:03:43] *** livingstn has joined #angularjs
[15:04:10] *** jr3 has quit IRC
[15:04:25] *** livingstn has joined #angularjs
[15:04:30] *** juanpablo__ has joined #angularjs
[15:04:37] <daniele__> hello all there's a way to execute other statement only if watch has finished?
[15:05:06] *** livingstn has joined #angularjs
[15:05:41] *** jemendja has quit IRC
[15:05:41] <daniele__> for example: $scope.editCreateGroup --> Inside this function that is called by the view I want to do something after that the watch function has finished
[15:05:44] *** imehesz has joined #angularjs
[15:05:45] *** verweto has quit IRC
[15:05:48] *** livingstn has joined #angularjs
[15:05:53] *** CodeFriar has joined #angularjs
[15:05:57] *** snurfery has quit IRC
[15:06:00] <dmack> daniele__: you're setting up a $watch in a function?
[15:06:09] <daniele__> dmack: no outside
[15:06:10] *** encryptd_fractl has joined #angularjs
[15:06:15] *** Guest89 has quit IRC
[15:06:28] *** livingstn has joined #angularjs
[15:06:29] <dmack> so you're changing data inside your fuinction, which triggers the watch?
[15:06:32] *** livingstn has quit IRC
[15:06:35] *** __danimal__ has joined #angularjs
[15:06:36] <daniele__> $scope.editCreateGroup = (selectedKey)-> _.extend($scope.root, {"[New group]": []}) ........ the watch is inside the controller
[15:06:59] <daniele__> and watch: $scope.$watch "root", ((newValue, oldValue) ->
[15:07:07] *** i_am_nader has joined #angularjs
[15:07:10] *** livingstn has joined #angularjs
[15:07:18] <dmack> right. but i'
[15:07:26] <dmack> but i'm not understanding what you want to do with the watch?
[15:07:26] *** elrabin has joined #angularjs
[15:07:29] *** nickstr has left #angularjs
[15:07:44] *** araujo has joined #angularjs
[15:07:45] *** araujo has joined #angularjs
[15:07:48] <daniele__> dmack:
[15:07:49] <daniele__> $scope.$watch "root", ((newValue, oldValue) -> createNodeStyling() console.log("watch") ), true
[15:07:54] *** livingstn has joined #angularjs
[15:08:28] <daniele__> so the logic is: create node, watch look the creation and create the style when it finish I want to do something else
[15:08:36] *** kirfu has quit IRC
[15:08:39] *** livingstn has joined #angularjs
[15:08:41] *** juanpablo__ has quit IRC
[15:08:42] <dmack> so createNodeStyling needs to take a callback
[15:08:47] *** craigp has quit IRC
[15:09:18] *** livingstn has joined #angularjs
[15:09:21] *** prosper_ has joined #angularjs
[15:09:22] *** livingstn has quit IRC
[15:09:33] <daniele__> dmack: I pastebin the code so it's difficult for you to understand...one second
[15:09:38] <dmack> not sure what's going on in createNodeStyling, but you probably dont need a $watch at all
[15:10:10] *** livingstn has joined #angularjs
[15:10:27] *** dman777_alter has joined #angularjs
[15:10:35] *** s00pcan has quit IRC
[15:10:53] *** mccarrontr1ck has joined #angularjs
[15:10:57] *** livingstn has joined #angularjs
[15:10:59] *** tlr has joined #angularjs
[15:11:00] *** livingstn has quit IRC
[15:11:17] *** BobbieBarker_ has joined #angularjs
[15:11:21] *** snurfery has joined #angularjs
[15:11:38] *** livingstn has joined #angularjs
[15:11:40] <daniele__> dmack: line 66 I want to add setSelectedNode($scope.jsonStyle["[[New group]]"]) but I can't becouse the watch is called before
[15:11:42] *** livingstn has quit IRC
[15:11:52] *** Oxynum has quit IRC
[15:11:59] *** s00pcan has joined #angularjs
[15:12:10] *** livingstn has joined #angularjs
[15:12:11] *** frkout_ has quit IRC
[15:12:13] *** livingstn has quit IRC
[15:12:18] <daniele__> dmack: is clear now the scenario?
[15:12:25] *** frkout has joined #angularjs
[15:12:28] *** cacts has joined #angularjs
[15:12:29] *** ehynds has joined #angularjs
[15:12:40] <dmack> coffeescript, convering it...
[15:12:44] *** doug64k has joined #angularjs
[15:13:52] *** droogie- has joined #angularjs
[15:14:24] *** sigurding has quit IRC
[15:14:27] *** sigurding_ has joined #angularjs
[15:14:33] *** livingstn has joined #angularjs
[15:14:35] *** Juanchito has quit IRC
[15:14:36] *** livingstn has quit IRC
[15:15:13] *** juanpablo_ has joined #angularjs
[15:15:14] *** sjt003 has joined #angularjs
[15:15:28] *** code_ has joined #angularjs
[15:15:30] *** sacho has joined #angularjs
[15:15:40] <code_> hi guys
[15:15:50] *** annlewis has joined #angularjs
[15:15:58] <dmack> sorry daniele__ : your code isn't clear to me. :(
[15:16:03] *** Oxynum has joined #angularjs
[15:16:10] <code_> can anyone write link for me how can I install angular on Ubuntu 14.04???
[15:16:12] <code_> thankl you
[15:16:16] *** Wizek has joined #angularjs
[15:16:24] *** __danimal__ has quit IRC
[15:16:29] <daniele__> dmack: what is the problem
[15:16:31] <CodeFriar> code_: you don't need to install it.
[15:16:59] <code_> CodeFriar, I cant open it on localhost:8080
[15:17:07] *** mrru has joined #angularjs
[15:17:15] <CodeFriar> code_: thats not an angular issue
[15:17:15] *** ggrzybek is now known as ggrzybek_brb
[15:17:44] <droogie-> I've created a couple of service classes using: var MyClass = function($scope ....); MyClass.$inject = ['$scope', ...]; MyClass.prototype.someMethod = function(...). When not using ng-annotate (or atleast grunt-ng-annotate) everything works perfectly. But when using ng-annotate the generated code get changed to: var MyClass = ['$scope', .... function($scope...) {}; MyClass.$inject = ['....']; MyClass.prototype...
[15:17:47] <droogie-> The problem now is that MyClass isn't really a function anymore, rather an array, and therefor MyClass.prototype is undefined. Is there a way to configure ng-annotate to not annotate this using the array syntax (or not annotate it at all)?
[15:17:48] <code_> ive installed already npm http-server
[15:18:27] <jaydubya> Trying to decide on architecture and wanted expert's opinions: (1) have a "DataFactory whose sole responsibility is to make all of the $http calls to the API and have other factories use the DataFactory to resolve promises (i.e., getLoans(), getLoan() from DataFactory.getLoans(); or, (2) skip DataFactory and let i.e. LoansFactory make its own applicable calls to the API. Which do you prefer?
[15:18:27] *** craigp has joined #angularjs
[15:18:41] *** BillCriswell has joined #angularjs
[15:18:48] <dmack> jaydubya: I prefer option 2
[15:18:51] *** azizur has joined #angularjs
[15:18:53] <code_> CodeFriar, ive installed already npm http-server
[15:19:26] <CodeFriar> code_: great, start it.
[15:19:29] *** yelvert has joined #angularjs
[15:19:47] *** snurfery has quit IRC
[15:19:54] *** linojon has joined #angularjs
[15:19:54] <code_> CodeFriar, http-server: command not found
[15:19:57] *** Iravan_ has joined #angularjs
[15:20:23] *** ron1 has joined #angularjs
[15:20:27] <dmack> did you install it globally?
[15:20:45] *** Oxynum has quit IRC
[15:20:51] *** daniele__ has quit IRC
[15:21:00] <code_> yes?
[15:21:03] *** CHC has joined #angularjs
[15:21:03] <jaydubya> dmack: do you also prefer to pull getLoan() from $scope.loans via javascript or go back to the API for the individual loan?
[15:21:24] <dmack> code_: what command did you run to install it?
[15:21:38] <dmack> jaydubya: your API should support fetching a single loan.
[15:21:43] <dmack> by ID.
[15:21:47] *** elrabin_ has joined #angularjs
[15:21:47] *** Zentdayn has quit IRC
[15:21:48] *** glassir has quit IRC
[15:21:48] <dmack> GET /loans/3
[15:21:49] <code_> npm install http-server
[15:21:57] <dmack> npm install -g http-server
[15:22:01] *** soee has quit IRC
[15:22:40] <jaydubya> dmack: it does ... just some tutorials say save the trip and return it from the loans collection which is already in memory ... i've never done it that way and wanted to do it the "best way"
[15:22:59] *** IJNX has quit IRC
[15:23:00] <dmack> what if you want to deep link? you're going to pull down all the loans again?
[15:23:04] <code_> thx dmack
[15:23:05] <dmack> seems ineficient.
[15:23:10] <code_> it works
[15:23:22] *** diosney has quit IRC
[15:23:31] <jaydubya> dmack: cool, you support the way I am going but just wanted some advice
[15:24:01] *** yelvert has quit IRC
[15:24:06] <dmack> the way I like to build factories/services is very much modeled around how your API works
[15:24:16] *** jdj_dk_ has joined #angularjs
[15:24:29] *** efiwo has joined #angularjs
[15:24:47] <jaydubya> dmack: agreed, I was just thinking a change could save me from injecting $http and API_URL into each and every factory
[15:24:59] <dmack> use Restangular
[15:25:17] *** bkuberek has quit IRC
[15:25:20] <jaydubya> dmack: tried 3 or 4 times but it is over my head
[15:25:33] *** juampy_food is now known as juampy
[15:25:38] *** bkuberek has joined #angularjs
[15:25:40] *** FIFOd[a] has joined #angularjs
[15:25:42] *** IJNX has joined #angularjs
[15:25:42] *** bkuberek has quit IRC
[15:26:01] *** mccarrontr1ck has quit IRC
[15:26:09] <efiwo> noob question: If I set a $interval in a controller, will that object be thrown away (garbage collected?) when that controller is removed from memory, or does angular save that in some hidden place in memory?
[15:26:17] *** bkuberek has joined #angularjs
[15:26:48] *** jdj_dk_ has quit IRC
[15:26:54] <dmack> efiwo: "Note: Intervals created by this service must be explicitly destroyed when you are finished with them. In particular they are not automatically destroyed when a controller's scope or a directive's element are destroyed"
[15:27:12] *** jdj_dk has quit IRC
[15:27:21] *** livingstn has joined #angularjs
[15:27:22] *** encryptd_fractl has quit IRC
[15:27:24] *** livingstn has quit IRC
[15:28:03] *** rafagomes has quit IRC
[15:28:23] *** bayousoft has quit IRC
[15:28:55] <efiwo> damn, I knew there was something! Thanks dmack
[15:29:01] *** bayousoft has joined #angularjs
[15:29:03] *** efiwo has left #angularjs
[15:29:07] *** soee has joined #angularjs
[15:29:26] *** encryptd_fractl has joined #angularjs
[15:30:03] *** cbennett_ has joined #angularjs
[15:30:32] *** mdel has joined #angularjs
[15:30:37] *** bkuberek has quit IRC
[15:30:51] *** WhatsInTheBoks has quit IRC
[15:31:16] *** TheAceOfHearts has quit IRC
[15:31:26] *** neilff has joined #angularjs
[15:31:36] *** yhzhu has joined #angularjs
[15:32:25] *** yhzhu is now known as yz
[15:32:31] *** plysiu has joined #angularjs
[15:32:45] *** soee has quit IRC
[15:33:13] *** cbennett has quit IRC
[15:33:42] *** learner has joined #angularjs
[15:34:01] *** plato has joined #angularjs
[15:34:18] *** soee has joined #angularjs
[15:34:27] *** jr3 has joined #angularjs
[15:35:33] *** ee99ee has joined #angularjs
[15:37:24] *** warpx has quit IRC
[15:37:25] *** bayousoft has quit IRC
[15:37:28] *** Iravan_ has quit IRC
[15:37:40] *** gkap has joined #angularjs
[15:38:00] *** uris77 has joined #angularjs
[15:38:06] *** bmac has joined #angularjs
[15:38:06] *** bayousoft has joined #angularjs
[15:38:29] *** soee has quit IRC
[15:38:38] *** Francis has left #angularjs
[15:39:30] *** marcjs has quit IRC
[15:39:42] *** toin0u|a1ay is now known as toin0u
[15:40:24] *** sandalon has joined #angularjs
[15:40:26] *** dsdeiz_ has quit IRC
[15:40:27] *** encryptd_fractl has quit IRC
[15:41:15] *** sandalon has quit IRC
[15:41:37] *** toin0u is now known as toin0u|away
[15:42:15] <caitp> do your eyes ever bleed?
[15:42:18] <caitp> webmd says it's cancer
[15:42:20] <caitp> do i have cancer?
[15:42:40] <dmack> seek a professional :D
[15:42:45] <ee99ee> lol
[15:42:46] <caitp> D:
[15:43:09] *** frkout has quit IRC
[15:43:13] *** frkout_ has joined #angularjs
[15:43:21] *** Siyfion has joined #angularjs
[15:43:22] <ee99ee> clicking that takes me to a generic documentation page...
[15:43:26] <ee99ee> how do I find what the actual error is?
[15:43:31] <ee99ee> i.e., what's missing
[15:43:34] <dmack> angular can't find your module.
[15:43:39] *** pknordic has quit IRC
[15:43:47] *** soee has joined #angularjs
[15:43:57] *** chachan has quit IRC
[15:43:59] <dmack> something isn't included properly
[15:44:05] *** droogie- has quit IRC
[15:44:20] *** glontu has quit IRC
[15:44:37] *** KushS has quit IRC
[15:44:42] *** cbennett_ has quit IRC
[15:44:43] *** ctanga has joined #angularjs
[15:45:18] *** cbennett has joined #angularjs
[15:45:32] *** devops has joined #angularjs
[15:46:39] <devops> hello all there's a way to check in $scope.$watch (array) what's the difference between the old vlaue and the new value? the old is an object of array and the new is an ogject of array with a new element inside
[15:47:01] <ee99ee> dmack: yeah, but which module?
[15:47:10] <caitp> devops: you basically can't
[15:47:16] <caitp> not in 1.x
[15:47:17] <dmack> ee99ee: it has a line number
[15:47:29] *** mmealling has quit IRC
[15:47:32] <caitp> deep equality checks are possible, but won't tell you what changed
[15:47:38] <caitp> $watchCollection also won't tell you what changed
[15:47:46] <devops> caitp: I must compare by hand the 2 values? item by item
[15:47:47] *** jpstone has joined #angularjs
[15:47:51] *** mmealling has joined #angularjs
[15:47:51] <caitp> so you really need to have some kind of "track by" mechanism similar to ngRepeat
[15:47:51] <ee99ee> that line is just "return Error(a)" in angular.js
[15:47:59] *** chachan has joined #angularjs
[15:48:00] <ee99ee> dmack: how do I see which module it's missing?
[15:48:24] *** mven has joined #angularjs
[15:48:25] *** BobbieBarker_ has quit IRC
[15:48:32] <caitp> devops: ngRepeat uses trackby, so it will on'y care if IDs change
[15:48:39] *** mven has quit IRC
[15:48:44] <caitp> bindings can worry about the rest
[15:49:19] *** sirkitree is now known as sirkitree|afk
[15:49:43] *** sirkitree|afk is now known as sirkitree
[15:49:47] *** diosney has joined #angularjs
[15:49:53] *** mogaj has joined #angularjs
[15:49:55] *** macabre_ has joined #angularjs
[15:50:21] *** WhatsInTheBoks has joined #angularjs
[15:50:33] *** devops has quit IRC
[15:50:49] *** ggrzybek_brb is now known as ggrzybek
[15:50:54] *** Efrem has joined #angularjs
[15:51:42] *** jdivock_ has joined #angularjs
[15:52:19] *** chachan has quit IRC
[15:52:37] *** lite_ has quit IRC
[15:52:51] *** KushS has joined #angularjs
[15:52:52] *** Solid1 is now known as Solid1_afk
[15:52:58] *** mccarrontr1ck has joined #angularjs
[15:52:59] *** jdivock_ has quit IRC
[15:53:17] *** rileylark has quit IRC
[15:53:32] <dmack> ee99ee: are you minifying your code?
[15:53:36] <ee99ee> yes
[15:53:42] <dmack> unminify it
[15:53:49] *** mven has joined #angularjs
[15:54:10] *** juampy has quit IRC
[15:54:36] *** juampy has joined #angularjs
[15:54:49] *** mogaj has quit IRC
[15:54:51] *** code_ has quit IRC
[15:55:35] *** killall has quit IRC
[15:55:35] *** neilff has quit IRC
[15:55:40] *** foofoobar has quit IRC
[15:56:12] *** foofoobar has joined #angularjs
[15:56:47] *** soee has quit IRC
[15:56:51] *** evanjs has joined #angularjs
[15:56:53] *** Oddman has joined #angularjs
[15:57:10] *** FunnyLookinHat has quit IRC
[15:57:46] *** plysiu has quit IRC
[15:58:14] *** lsiv568 has quit IRC
[15:58:20] *** yoshokatana has joined #angularjs
[15:58:20] *** ctanga has quit IRC
[15:58:24] *** sk87 has quit IRC
[15:59:07] *** encryptd_fractl has joined #angularjs
[15:59:25] *** bberry_ is now known as bberry
[16:00:12] *** neilff has joined #angularjs
[16:00:38] *** jdcasey has joined #angularjs
[16:00:49] *** plekplek has quit IRC
[16:00:57] *** kk_ has joined #angularjs
[16:01:22] *** doug64k has quit IRC
[16:01:26] *** wdna has joined #angularjs
[16:01:27] *** bayousoft has quit IRC
[16:01:28] *** stormpat has quit IRC
[16:01:30] *** kk_ has quit IRC
[16:01:38] *** mary5030 has quit IRC
[16:01:44] *** lsiv568 has joined #angularjs
[16:02:01] *** bayousoft has joined #angularjs
[16:02:13] *** mary5030 has joined #angularjs
[16:02:33] *** Iravan_ has joined #angularjs
[16:02:54] *** Aswebb_ has quit IRC
[16:03:00] *** zivester has joined #angularjs
[16:03:27] *** dc_ has joined #angularjs
[16:03:41] *** braidn has quit IRC
[16:04:15] *** shackleford has joined #angularjs
[16:04:40] *** ips|malc has joined #angularjs
[16:04:50] *** braidn has joined #angularjs
[16:05:24] *** shackleford has quit IRC
[16:05:29] <wdna> I'm working on fixing angular 1.2.27 project (I migrated it form 1.0.8), the programmer who worked on it before me left some superior code: $scope.$eval($scope.onSelected)($scope.selectorname, value); can someone explain why he was trying to do with the $eval (traced it to this point)? I get "$apply already in progress" errors, this is related?
[16:05:57] *** shackleford has joined #angularjs
[16:06:42] *** mary5030 has quit IRC
[16:06:50] *** livingstn has joined #angularjs
[16:07:04] *** dc has quit IRC
[16:07:56] <jaawerth> wdna: is $scope.onSelected a function that calls $scope.$apply?
[16:08:07] *** ivor has joined #angularjs
[16:08:09] <jaawerth> wdna: or is it an expression?
[16:08:23] *** Click66 has quit IRC
[16:08:23] *** elrabin_ has quit IRC
[16:08:44] *** elrabin_ has joined #angularjs
[16:08:49] *** sharondio has joined #angularjs
[16:09:13] *** LossFor has joined #angularjs
[16:09:22] *** jdivock_ has joined #angularjs
[16:09:47] *** LossFor has quit IRC
[16:09:48] *** jstroem has joined #angularjs
[16:09:52] *** lewdev has quit IRC
[16:09:54] *** scythe__ has quit IRC
[16:10:07] *** knownasilya has joined #angularjs
[16:10:11] *** digisky has joined #angularjs
[16:10:33] *** Aswebb_ has joined #angularjs
[16:10:34] *** jasonp has joined #angularjs
[16:10:39] *** KushS has quit IRC
[16:11:17] <wdna> jaawerth: in same directive I have, scope: { ... onSelected: "&onSelected" ... }, it as not the method that calls $scope.$apply, it's called in the controller. but the error traced to this point.
[16:11:30] *** pknordic has joined #angularjs
[16:11:45] <Ownix> How do I know what commits in GitHub are in what version of NG?
[16:12:01] <wdna> this app is one big mess unfortunately :/
[16:12:09] <jaawerth> wdna: okay, so that's an isolate scope trick that lets you call a function in the parent scope's context
[16:12:12] <Ownix> I just updated to 1.3.5 does that mean all commits up till today are in it?
[16:12:20] *** jr3 has left #angularjs
[16:12:23] *** ccohn has quit IRC
[16:12:32] *** phzon has joined #angularjs
[16:12:45] *** jeffisabelle has joined #angularjs
[16:12:59] *** cads has joined #angularjs
[16:13:07] <jaawerth> what's bizarre is, doing $scope.$eval from there... I'm not sure how that would change things. Now I want to try it
[16:13:11] *** Keika has joined #angularjs
[16:13:12] *** lewdev has joined #angularjs
[16:13:15] <Keika> hey there
[16:13:23] *** ctanga has joined #angularjs
[16:13:24] <Keika> I'm having a little mock issue
[16:13:27] <Keika> anyone free?
[16:13:29] *** bayousoft has quit IRC
[16:13:36] *** frkout_ has quit IRC
[16:13:44] <jaawerth> wdna: is that function call being done from the link function or controller for the directive? can you gist/pastebin the code and the function being passed in by any chance?
[16:13:50] *** frkout has joined #angularjs
[16:14:01] *** bayousoft has joined #angularjs
[16:14:01] *** doug64k has joined #angularjs
[16:14:04] *** sharondio has quit IRC
[16:14:20] <wdna> jaawerth: yes, give me few min, i'll try gather some related code.
[16:14:41] *** dsdeiz has joined #angularjs
[16:14:49] *** ccohn_ has joined #angularjs
[16:15:41] <Keika> using ngMock and httpBackend, I don't understand why the response I get is like so: {data: {some: 'data'}, status: 200 ....} instead of just being: {some: 'data'} as I passed in the .respond() function
[16:15:44] *** Fishy has joined #angularjs
[16:15:53] <Keika> any idea
[16:16:18] *** tripu has quit IRC
[16:16:37] *** chachan has joined #angularjs
[16:16:56] *** kpax has joined #angularjs
[16:17:05] *** jonasliljestrand has quit IRC
[16:17:12] *** phzon has quit IRC
[16:17:40] *** cojack has quit IRC
[16:17:55] *** AngularUI has joined #angularjs
[16:17:55]
<AngularUI> [ng-grid] c0bra closed pull request #2178: zero height header when `hideHeader` is `true` (master...hide-header) http://git.io/1dgkOQ
[16:17:55] *** AngularUI has left #angularjs
[16:18:38] <jaydubya> anyone have an opinion on jmdobry/angular-data?
[16:18:45] *** GreenJello has quit IRC
[16:18:52] *** ianpirro has joined #angularjs
[16:19:11] <jaawerth> httpBackend is a tool for actually mocking an http backend, so that will include things like status and headers
[16:19:17] <jaawerth> Keika: ^
[16:19:28] *** fedenunez has quit IRC
[16:19:39] <Keika> ok
[16:20:06] <Keika> I'm testing a factory that returns $http.post, but had a .then() with logic in there
[16:20:11] *** doug64k has quit IRC
[16:20:31] <Keika> that's the .then() that's not liking the object sent by httpBackend
[16:20:36] <jaawerth> oh, well that's because you used .then
[16:21:04] <jaawerth> the parameter to the .then callback isn't the same as the .success callback, it's an object with .status, .data, .config, and .header properties
[16:21:43] <jaawerth> I usually do .then(function(res) { var data = res.data; }) (or what-have-you)
[16:21:45] <Keika> yeah, well done, as you wrote it my colleague found the same reason
[16:22:01] <jaawerth> or "response" if you want to be more verbose
[16:22:21] <jaawerth> using .then is still preferably to using .success, since .success won't let you do promise chaining
[16:22:29] *** jstroem has quit IRC
[16:22:43] *** fedenunez has joined #angularjs
[16:23:03] *** jstroem has joined #angularjs
[16:23:31] *** KushS has joined #angularjs
[16:24:33] *** gkap has quit IRC
[16:24:35] *** _ritchie_ has joined #angularjs
[16:25:24] *** mary5030 has joined #angularjs
[16:26:12] *** Sawbones has joined #angularjs
[16:26:20] *** mary5030 has joined #angularjs
[16:26:42] <IJNX> any ideas how to safely implement calls to N promise APIs in a loop has all been resolved and finally resolve one master promise?
[16:26:44] <Keika> hmm problem is, I need to chain..
[16:26:58] *** jstroem has quit IRC
[16:27:00] *** nopolabs1 has quit IRC
[16:27:03] *** ali_ has quit IRC
[16:27:07] *** jstroem has joined #angularjs
[16:27:12] *** ianpirro has quit IRC
[16:27:40] *** zivester has quit IRC
[16:28:02] *** ianpirro has joined #angularjs
[16:28:36] *** oniijin has joined #angularjs
[16:29:21] *** _magus has joined #angularjs
[16:29:23] *** K-202 has left #angularjs
[16:29:24] *** Linell_ has quit IRC
[16:29:59] *** fedenunez has quit IRC
[16:30:08] *** mokush has joined #angularjs
[16:30:15] *** fedenunez has joined #angularjs
[16:30:30] *** rileylark has joined #angularjs
[16:31:02] *** cthrax has joined #angularjs
[16:31:06] *** dacuca has joined #angularjs
[16:31:09]
<wdna> jaawerth: here you go: http://pastebin.com/bJ2M7nbc , I pasted (not full code) of the directive and the related controller and also the HTML code. setMainCategory() is the last application method in error trace.
[16:31:31] *** Hounddog has joined #angularjs
[16:31:42] *** kakashiA1 has joined #angularjs
[16:32:03] *** johnkevinmbasco has quit IRC
[16:32:11] *** brettfrable has joined #angularjs
[16:32:29] *** gkap has joined #angularjs
[16:33:41] <kakashiA1> I set an ng-model to false ($scope.flag = false;) and I made the value visible with {{flag}}. It shows false, but if I put that model in a selection box, it doesnt take the option with value="false"
[16:33:41] *** jdivock_ has quit IRC
[16:33:52] *** AngularUI has joined #angularjs
[16:33:52]
<AngularUI> [ng-grid] igormalyk closed pull request #2096: Pager $watchers will not fire if sum of totalItems and page size stays the same (master...pager-watchers) http://git.io/jgnE9A
[16:33:52] *** AngularUI has left #angularjs
[16:34:00] <tristanp> any nice angular way to fire an event or callback when an image from an <img> is done "loading"? So I don't show the rest of the stuff in the partial before it is fully visible
[16:34:13] *** Christer has quit IRC
[16:34:19] *** Milkweed has joined #angularjs
[16:34:23] *** ctanga has quit IRC
[16:34:24] <kakashiA1> but if I put a normal string to that option, something like "foo" and set the ng-model with it, it works
[16:34:37] *** bayousoft has quit IRC
[16:34:54] *** cthrax has quit IRC
[16:35:03] <merpnderp> What do you do when you need to do somethign like this? ng-src="/EmployeeSuite.WebAPI/ADPhoto/{{userService.currentUserModel.UserName}}" /> but the currentUserModel might not have been initialized yet?
[16:35:07] *** bayousoft has joined #angularjs
[16:35:33] *** BahamutWC|Laptop has joined #angularjs
[16:35:44] *** Solid1_afk is now known as Solid1
[16:36:10] *** glassir has joined #angularjs
[16:36:42] *** sandelius has quit IRC
[16:36:49] *** busticated has joined #angularjs
[16:36:53] *** craigp has quit IRC
[16:37:09] <kakashiA1> anyone?
[16:37:39] *** bayousoft has quit IRC
[16:37:41] *** devhoag has joined #angularjs
[16:37:41] *** shaym_ has quit IRC
[16:38:20] *** bayousoft has joined #angularjs
[16:38:28] *** __danimal__ has joined #angularjs
[16:38:51] <dmack> kakashiA1: which control are you using for ngModel?
[16:38:55] <dmack> just a text box?
[16:38:57] *** atomical has quit IRC
[16:39:09] <sacho> kakashiA1, the select directive doesn't do any options tracking - that's done by the ng-options.
[16:39:10] *** NormySan has joined #angularjs
[16:39:11] *** gkap has quit IRC
[16:40:37] *** conan_the_destro has joined #angularjs
[16:40:44] *** rtpg has quit IRC
[16:40:45] *** atomical has joined #angularjs
[16:41:18] *** rtpg has joined #angularjs
[16:42:25] *** devhoag has quit IRC
[16:42:39] *** Oddman has quit IRC
[16:42:51] *** rafagomes has joined #angularjs
[16:43:03] *** shaym_ has joined #angularjs
[16:43:06] *** bbankes has quit IRC
[16:43:06] *** gkap has joined #angularjs
[16:43:13] *** Oddman has joined #angularjs
[16:43:29] *** kp666 has quit IRC
[16:43:48] *** swist has joined #angularjs
[16:44:25] *** frkout has quit IRC
[16:44:36] *** frkout has joined #angularjs
[16:44:38] *** dowwie has joined #angularjs
[16:45:00] <dowwie> how pissed off is the angular dev community about 2.0 learning curve?
[16:45:39] *** rtpg has quit IRC
[16:45:40] *** ctanga has joined #angularjs
[16:45:40] <bd-> personally, not very
[16:46:05] *** swirlycheetah has quit IRC
[16:47:01] *** busticated has quit IRC
[16:47:03] <jaawerth> wdna: yeah, the use of that $eval is so weird I was just trying to see the POINT of it
[16:47:04] <merpnderp> dowwie: I'm still on the 1.x learning curve
[16:47:12] *** bostonaholic has joined #angularjs
[16:47:15] <dowwie> lol
[16:47:18] <dmack> dowwie: only people that fear the future are pissed
[16:47:22] *** gkap has quit IRC
[16:47:23] *** WhatsInTheBoks has quit IRC
[16:47:34] <burzum> the only way to send some form inputs data, like text inputs and file data together is application/x-www-form-urlencoded and multipart/form-data, correct?
[16:47:49] *** Oddman has quit IRC
[16:47:57] *** cacts|wtf has joined #angularjs
[16:47:58] <dowwie> is 2.0 the kind of upgrade that won't be widely adopted (ie python 2.7 vs 3.4)
[16:47:59] <jaawerth> wdna: $eval itself shouldn't call scope.$apply, typically.
[16:48:07] *** opiates has joined #angularjs
[16:48:09] <bd-> just don't think of it as angular2.0, but instead, something like AngularDart. AngularAtScript or whatever
[16:48:14] *** busticated has joined #angularjs
[16:48:17] *** fedenunez has quit IRC
[16:48:44] <merpnderp> bd-: I'm keeping my options open. My latest refactor will leave my angular app in a Flux like pattern.
[16:48:57] <jaawerth> wdna: question, is apply being set to true for any initController or setMainCategory functions on an angular event like ng-init?
[16:49:01] <bd-> certain vocal people were spouting the same woe when angulardart was announced, complainign they'd have to learn dart
[16:49:07] <bd-> and angularjs would be abandoned
[16:49:19] *** glassir has quit IRC
[16:49:26] <jaawerth> wdna: er, that is ng-click rather
[16:49:39] <jaawerth> wdna: being $apply should only need to be called on events outside of angular context, like a raw DOM event, a setTimeout, etc
[16:50:00] *** KushS has quit IRC
[16:50:13] *** tbo_ has quit IRC
[16:50:27] *** LossFor has joined #angularjs
[16:50:36] <jaawerth> that use of eval is really bizarre... the whole point of the '&' option for isolate scope is that the function/expression is executed in context of the parent scope
[16:50:46] *** ansu has quit IRC
[16:50:52] *** Iravan_ has quit IRC
[16:51:06] *** ansu has joined #angularjs
[16:51:06] *** ngbot has joined #angularjs
[16:51:07] <ngbot> angular.js/master ee29819 Giuseppe Caruso: docs(guide/controllers): Just a typo...
[16:51:07] *** ngbot has left #angularjs
[16:51:09] *** MistahKurtz has joined #angularjs
[16:51:30] *** uris77 has quit IRC
[16:51:54] *** ngbot has joined #angularjs
[16:51:54] <ngbot> angular.js/v1.2.x ac9336b Giuseppe Caruso: docs(guide/controllers): Just a typo...
[16:51:55] *** ngbot has left #angularjs
[16:52:07] <caitp> damnit, typos in my commit messages
[16:52:09] <caitp> always :u
[16:52:27] <jaawerth> haha, weren't you complaining about other people doing that the other day?
[16:52:29] <wdna> jaawerth: I know, the guy who worked on it, put $apply, $eval all over the place, I guess he did not ready any docs just copy/paste from stackoverflow. the 'apply' is true in all cases I checked.
[16:52:40] *** HACKING-FACEBOOK has quit IRC
[16:52:42] <caitp> no i'm usually complaining about me doing it
[16:52:43] *** bayousoft has quit IRC
[16:52:53] <caitp> but i have cancer that's my excuse
[16:53:18] <jaawerth> wdna: I haven't seen it much with $eval, but yeah, it's a common error for people to use $apply all over the place because they don't really have to use it. Sorry you had to inherit that
[16:53:22] *** bayousoft has joined #angularjs
[16:53:23] *** ppppaul has joined #angularjs
[16:53:30] <jaawerth> that is, because they don't really know how to use it
[16:53:54] *** busticated has quit IRC
[16:53:59] <jaawerth> then people write and use a totally unnecessary safeApply function that checks the $$phase
[16:54:31] <jaawerth> just so it avoids that error - even though the error won't happen at all if you're careful about context (unless you're in a rare situation where the context is ambiguous)
[16:54:39] *** milka has quit IRC
[16:54:51] <swist> System Information: Model: MacBook Pro (15-inch Retina Late-2013) • CPU: Intel Core i7-4980HQ (8 Threads, 4 Cores) @ 2.80 GHz • Memory: 16.00 GB • Uptime: 1 day • Disk Space: Total: 999.38 GB; Free: 554.18 GB • Graphics: Intel Iris Pro, NVIDIA GeForce GT 750M • Screen Resolution: 1920 x 1200 (HiDPI Mode) • Load: 16% • OS: OS X 10.10.1 (Yosemite) (Build 14B25)
[16:54:59] <jaawerth> caitp: Hm.. that's pretty bulletproof, I'd say
[16:55:05] *** Oddman has joined #angularjs
[16:55:16] *** cthrax has joined #angularjs
[16:55:30] <wdna> jaawerth: I saw places with setTimeout(function(){ scope.$apply(); }); as I understand this should slove the issue by executing it on the next tick, is that something common (it feels strange)?
[16:55:42] *** mennea has quit IRC
[16:56:49] <wdna> for now I just want it to work, i will probably have to rewrite the whole app at some point.
[16:57:21] <jaawerth> wdna: well, the $apply is actually unnecessary when you're in a digest cycle - the main thing about $apply is that it *triggers* a digest (wrapped in some other code) over all your scopes. Usually it's the other way around from what you described - someone does a setTimeout (which will never execute during a digest, because of how the browser event loop works), and you need a digest to be triggered
[16:57:57] <jaawerth> though usually you'd use the $timeout service instead (which handles that for you), unless you have a specific reason not to
[16:57:59] *** Una has joined #angularjs
[16:58:39] *** busticated has joined #angularjs
[16:58:42] <jaawerth> wdna: as a quick fix, you could replace the uses of $apply there with a safeApply. It's not great code, but it will fix that particular issue
[16:59:16] <wdna> jaawerth: okay, I see. much thanks for the help, i guess i'll figure this out from help.
[16:59:23] <wdna> here*
[16:59:47] *** k-dawg has quit IRC
[17:00:05] *** rafagomes has quit IRC
[17:00:15] *** nerdgrass has joined #angularjs
[17:01:33] *** cacts has quit IRC
[17:01:46] *** bayousoft has quit IRC
[17:02:00] *** swist has quit IRC
[17:02:03] *** couscous1 has joined #angularjs
[17:02:06] *** uris77 has joined #angularjs
[17:02:21] *** ggrzybek has quit IRC
[17:02:23]
<jaawerth> wdna: This is a simple approach to safeApply. You can just stick this on $rootScope and use it wherever as a quick patch for your issue. Again though, ideally you'd refactor and avoid the inappropriate calls to $apply https://coderwall.com/p/ngisma/safe-apply-in-angular-js
[17:02:28] *** milka has joined #angularjs
[17:02:29] *** scythe__ has joined #angularjs
[17:02:33] *** bayousoft has joined #angularjs
[17:02:45] <jaawerth> IIRC checking $$phase manually like that is considered to be a no-no, but you gotta do what you gotta do
[17:04:02] *** zeroquake has joined #angularjs
[17:04:07] <caitp> you have enough feeling in your scalp to get itchy, but not enough feeling to be satisfied by scratching the itch
[17:04:10] <caitp> what do you do?
[17:04:12] *** loverajoel has quit IRC
[17:04:20] *** Hounddog has quit IRC
[17:04:21] *** Anonymous_ has joined #angularjs
[17:04:27] *** sonicparke|bradm has joined #angularjs
[17:04:38] <wdna> jaawerth: yes tnx, already found it ;)
[17:04:53] *** lsiv568 has quit IRC
[17:04:58] *** blackkbot has quit IRC
[17:05:01] *** IJNX has quit IRC
[17:05:23] <jaawerth> well... I guess your options are to scratch it anyway or attempt to somehow make your scalp itchier so you can scratch and enjoy?
[17:05:34] *** tlr has quit IRC
[17:06:46] *** ngbot has joined #angularjs
[17:06:46] <ngbot> angular.js/master 924d3c6 active-low: docs(contributing): correct push -f command...
[17:06:46] *** ngbot has left #angularjs
[17:07:35] *** pknordic has quit IRC
[17:07:49] *** vonnegut has quit IRC
[17:08:00] <jlebrech> can anyone help with this type of error? "must return a value from $get factory method."
[17:08:08] *** pknordic has joined #angularjs
[17:08:58] *** rafagomes has joined #angularjs
[17:09:30] <caitp> jlebrech: you probably have a factory() somewhere which is not returning a value
[17:10:38] <jlebrech> caitp: omg as easy as that
[17:10:42] <jaawerth> or a provider that isn't returning a { $get: someFunc } but ^ is probably more common
[17:10:42] *** snapwich has joined #angularjs
[17:10:46] <jaawerth> oh, nevermind, heh
[17:10:58] <jlebrech> i just put: return {} at the end of my factory
[17:11:04] *** {DV8} has joined #angularjs
[17:11:09] <jaawerth> then your factory will return an empty object as a singleton
[17:11:20] <jaawerth> in which case there's no point in doing anything else with the factory
[17:11:36] *** cheef has quit IRC
[17:14:05] *** doertedev has joined #angularjs
[17:14:06] *** PDogJr has joined #angularjs
[17:14:22] *** sk87 has joined #angularjs
[17:14:37] *** jdivock_ has joined #angularjs
[17:14:42] *** yz has quit IRC
[17:14:43] <doertedev> hey. does someone have an angular/requirejs seed laying around that does not require me to keep list-type static include files?
[17:14:43] <maraneta> hey guys, so in my testing i'm setting a variable ORIGINAL_COUNT = list.count(). i want to the value of this variable to remain constant, rather than changing when the list changes. i know this is probably just a javascript problem, but would anyone know how i can just copy the value, rather than having my variable keep a reference to my list?
[17:14:44] *** lexek__ has joined #angularjs
[17:14:47] *** bkuberek has joined #angularjs
[17:14:56] *** bkuberek has quit IRC
[17:15:06] *** bkuberek has joined #angularjs
[17:15:15] *** Wextux has quit IRC
[17:15:23] *** Solid1 is now known as Solid1_afk
[17:15:58] *** mokush has quit IRC
[17:16:03] *** frkout_ has joined #angularjs
[17:16:11] *** SargoDarya has quit IRC
[17:16:16] *** frkout has quit IRC
[17:16:27] *** jshultz has joined #angularjs
[17:16:42] *** azizur has quit IRC
[17:16:47] *** glassir has joined #angularjs
[17:16:57] *** ianpirro has quit IRC
[17:17:08] *** Sky[x] has quit IRC
[17:17:59] *** lexek_ has quit IRC
[17:18:07] *** bbankes has joined #angularjs
[17:18:08] *** Xethron has quit IRC
[17:18:54] <jaawerth> maraneta: well, angular provides angular.copy for doing deep copy (and angular.equals for deep comparison)
[17:18:58] *** ianpirro has joined #angularjs
[17:19:08] *** patrickarlt has joined #angularjs
[17:19:36] <jaawerth> when not using angular (or even when I am), I usually also use lodash for a bunch of utilities, including those
[17:19:53] <maraneta> jaawerth: okay i'll look into that, thanks! =]
[17:20:44] *** daniele921 has joined #angularjs
[17:21:39] *** AngularUI has joined #angularjs
[17:21:40] <AngularUI> ng-grid/master e6cf438 Brian Hann: fix(Tests): Accidentally left in a ddescribe
[17:21:40] *** AngularUI has left #angularjs
[17:21:42] <daniele921> hello all I've create a form : <form name="addGroup1"> how I can access to it from controller? I've tried $scope.addGroup1 but it's undefined
[17:21:46] *** AngularUI has joined #angularjs
[17:21:46]
<AngularUI> [ng-grid] c0bra closed pull request #2237: added an 'aggregationLabel' attribute on colDef (master...master) http://git.io/d8IjgA
[17:21:46] *** AngularUI has left #angularjs
[17:22:06] *** macabre_ has quit IRC
[17:22:16] *** macabre has joined #angularjs
[17:22:22] *** macabre has joined #angularjs
[17:22:55] *** yelvert has joined #angularjs
[17:23:00] *** bostonaholic has quit IRC
[17:23:01] *** nerdgrass has quit IRC
[17:23:22] *** moogey has joined #angularjs
[17:23:39] *** couscous2 has joined #angularjs
[17:24:03] *** Keika has quit IRC
[17:24:17] *** prosper_ has quit IRC
[17:24:43] *** couscous1 has quit IRC
[17:24:46] <macabre> how would i go about loading data once from the server and let my controller store the data for reuse? i would prefer not to hit the server each time the controller is called. i'm using ui-router and resoive
[17:25:01] <nickeddy> macabre: resolve
[17:25:13] *** gladely has joined #angularjs
[17:25:23] <nickeddy> macabre: oh sorry. use a service and get/set the data from the resolve i guess?
[17:25:44] <macabre> nickeddy: okay i can look into that
[17:26:00] *** warpx has joined #angularjs
[17:26:01] <macabre> nickeddy: is there a more common way to achive this?
[17:26:03] *** prosper_ has joined #angularjs
[17:26:50] <dmack> daniele921: you typically wouldn't access forms that way.
[17:27:00] <dmack> what are you trying to do?
[17:27:01] *** bostonaholic has joined #angularjs
[17:27:02] *** arabot has joined #angularjs
[17:27:15] <daniele921> dmack: I must set the pristine status after the save
[17:27:21] *** jstroem has quit IRC
[17:27:25] *** Raging_Hog has quit IRC
[17:27:28] <dmack> are you using ngSubmit on the form?
[17:27:40] *** ses1984 has joined #angularjs
[17:27:46] <jacuqesdancona_> the $parser is only run once after a ng-click
[17:28:00] <jacuqesdancona_> But they're run everytime in 1.2
[17:28:01] *** umib0zu has joined #angularjs
[17:28:06] *** jstroem has joined #angularjs
[17:28:28] *** sonofdirt has joined #angularjs
[17:28:31] *** umib0zu has quit IRC
[17:28:53] <daniele921> dmack: at the beginning it's disabled, thena I change the value and it's enabled (And until here everithing works) but after save I must reset the save to disabled
[17:29:15] <daniele921> dmack: yes
[17:29:17] <dmack> and you're doing the disabling based on some value? or the $pristine status?
[17:29:19] *** yelvert has quit IRC
[17:29:26] <dmack> inside ngSubmit, `this` is actually bound to the form
[17:29:33] <daniele921> dmack: I want pristine status
[17:29:33] *** nerdgrass has joined #angularjs
[17:29:57] <dmack> this.$setPristine();
[17:30:21] <daniele921> dmack: I try
[17:30:39] *** warpx has quit IRC
[17:30:51] <daniele921> dmack: undefined is not a function
[17:31:05] <dmack> console.log(this), inside your submit
[17:32:24] *** jstroem has quit IRC
[17:32:46] *** gurke_ has joined #angularjs
[17:32:50] <daniele921> dmack: mmm it seems this.formName.$setPristine()
[17:32:56] *** sonofdirt has quit IRC
[17:32:58] <dmack> ah :)
[17:32:59] *** azizur has joined #angularjs
[17:33:06] *** gurke_ has quit IRC
[17:33:17] *** fedenunez has joined #angularjs
[17:33:25] <nickeddy> why not just formName.$setPristine() inside the ng-submit fn?
[17:33:30] *** dsdeiz has quit IRC
[17:33:32] <nickeddy> rather $scope.formName
[17:33:39] *** gurke_ has joined #angularjs
[17:33:47] *** bayousoft has quit IRC
[17:34:24] *** rileylark has quit IRC
[17:34:30] *** bayousoft has joined #angularjs
[17:34:53] <daniele921> nickeddy: $scope.formName doesn't work
[17:35:28] <dmack> I've seen weird things where sometimes the formname doesn't get on scope
[17:35:37] <dmack> exact issue that daniele921 is having
[17:35:43] *** vonnegut has joined #angularjs
[17:35:43] <daniele921> and also without this.
[17:35:53] *** umib0zu has joined #angularjs
[17:35:59] <daniele921> it works only with this.formname.setPristine()
[17:36:13] <daniele921> it's very strange but it's the only working way
[17:36:14] *** sk87 has quit IRC
[17:36:59] *** FunnyLookinHat has joined #angularjs
[17:37:22] *** nerdgrass has quit IRC
[17:37:58] *** lewdev has quit IRC
[17:37:59] <nickeddy> dmack: yeah i've seen this before
[17:38:04] <nickeddy> not sure why it happens though
[17:38:34] <dmack> #workingasintended
[17:39:04] *** walden is now known as walden|brb
[17:39:30] *** dan2k3k4 has quit IRC
[17:39:38] *** __danimal__ has quit IRC
[17:40:06] *** Milkweed has quit IRC
[17:40:16] *** macobo has joined #angularjs
[17:40:23] *** hasahm has joined #angularjs
[17:40:57] *** antons has quit IRC
[17:41:02] *** rileylark has joined #angularjs
[17:41:20] *** lewdev has joined #angularjs
[17:41:26] *** pushpak has joined #angularjs
[17:41:52] *** blomman has quit IRC
[17:42:35] <maraneta> is there any way i can put my 'expect' assertions inside a 'then' function, so i can wait until my promise is resolved before making the assertion? when i try to do this i get jasmine errors
[17:42:54] *** prosper_ has quit IRC
[17:42:58] *** jdivock_ has quit IRC
[17:43:12] <uris77> newbie question: i am resolving all my controller dependencies from the server from within the router using 'resolve'. The problem I'm having is displaying a 'loading' message in the view, because the view isn't rendered until after the data is effectively resolved. Would really appreciate some pointers....
[17:43:39] *** tehfedaykin has joined #angularjs
[17:43:52] <tristanp> is ui router ok with me adding states like /logout that don't have a partial or anything, but do some logic and then redirect when visited? I know there are obvious workarounds, but conceptually encapsulating the logic in a state seems sound
[17:44:04] *** walden|brb is now known as walden
[17:44:20] *** adampickeral has joined #angularjs
[17:44:30] *** cbennett has quit IRC
[17:44:46] *** artisangoose has joined #angularjs
[17:44:49] *** bigx has joined #angularjs
[17:45:13] <bigx> hello, not an angular question, but a karma one
[17:45:26] <tristanp> uris77: I can think of two options: an intermediate 'loading' route that shows the loading page and then forwards on to the actual page you want, or load the dependencies in the controller rather than resolve
[17:45:39] <jacuqesdancona_> ugh nevermind my question
[17:45:50] <jacuqesdancona_> should've copies the value before $setViewValue
[17:45:52] *** ioudas has quit IRC
[17:45:53] <jacuqesdancona_> copied*
[17:45:59] <nickeddy> maraneta: somepromise.then(function(res) { expect(otherThing).toBe(res); }
[17:46:02] <nickeddy> );
[17:46:02] <bigx> I try to test a class that rely on socket.io, with mocha, and it runs fine with mocha-phantomjs
[17:46:06] <dmack> jacuqesdancona_: didnt they change a lot of stuff in regards to formatters/parsers in 1.3
[17:46:07] <dmack> ?
[17:46:14] <jacuqesdancona_> dmack: yes :(
[17:46:24] <bigx> but it seems it never connects with karma (and phantom, chrome and firefox)
[17:46:25] <jacuqesdancona_> switched to 1.3 two weeks ago
[17:46:26] *** milka has quit IRC
[17:46:35] *** frkout has joined #angularjs
[17:46:46] *** frkout_ has quit IRC
[17:46:48] <jacuqesdancona_> Should've read the changelog better
[17:49:22] <maraneta> nickeddy: i'm trying that right now, and the protractor returns '0 tests, 0 assertions, 0 failures' before any promises are even returned... and then i get a jasmine error
[17:49:26] *** cthrax has quit IRC
[17:49:29] <maraneta> jnott: looking over it now, thanks
[17:49:32] *** nerdgrass has joined #angularjs
[17:49:37] *** morenoh149 has quit IRC
[17:50:07] *** mrded has quit IRC
[17:50:36] *** atomical has quit IRC
[17:50:38] *** couscous1 has joined #angularjs
[17:50:59] *** tfennelly has joined #angularjs
[17:51:10] *** daniele921 has quit IRC
[17:51:42] *** Xaleph has joined #angularjs
[17:52:38] *** Guest22 has joined #angularjs
[17:52:48] *** jdivock_ has joined #angularjs
[17:53:04] *** couscous2 has quit IRC
[17:53:54] *** MistahKurtz has quit IRC
[17:53:55] *** joncodo has joined #angularjs
[17:53:57] *** tangorri has quit IRC
[17:54:36] <joncodo> Hey. I am removing a local storage key sucessfully but I need to reload the page for it to truly take effect. Is there a way around this?
[17:54:58] <dmack> joncodo: localStorage shouldn't require a reload.
[17:55:15] *** zlalanne has joined #angularjs
[17:55:20] <dmack> the way its bound to your model might.
[17:55:29] *** GreenJello has joined #angularjs
[17:55:49] <merpnderp> In ui-router is there some way to watch $stateParams?
[17:56:01] <merpnderp> I need a service to update when the stateParam changes.
[17:56:12] <dmack> merpnderp: $stateChangeStart
[17:56:16] <joncodo> $rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){
[17:56:25] <nickeddy> noooooooo
[17:56:36] <nickeddy> params can change without the state changing so
[17:56:50] <dmack> oh, this is true.
[17:56:51] *** mzabriskie has joined #angularjs
[17:57:05] <nickeddy> merpnderp: probably a watch on rootscope. $rootScope.$watch('$stateParams', ....)
[17:57:11] <nickeddy> in your run
[17:57:19] <dmack> you have to set your stateParams to the $rootScope though
[17:57:23] <nickeddy> ^
[17:57:25] <dmack> they aren't just available.
[17:57:37] *** fatshark has joined #angularjs
[17:57:37] <nickeddy> i do that with $state/$stateParams anyway
[17:57:39] *** Solid1_afk is now known as Solid1
[17:57:50] <dmack> same.
[17:57:51] <merpnderp> So in my init somewhere i need to do $rootScope.$stateparams = $stateParams?
[17:58:02] <dmack> I have a high level AppController that I always set all that stuff to.
[17:58:02] <nickeddy> in your run block ya
[17:58:14] <merpnderp> Oh sweet, looks I did that for some reason a long time ago :D
[17:58:23] <merpnderp> Thanks nickeddy dmack and joncodo :D
[17:58:24] *** WhatsInTheBoks has joined #angularjs
[17:58:39] *** loverajoel has joined #angularjs
[17:58:49] <joncodo> :)
[17:58:50] *** bayousoft has quit IRC
[17:58:52] <jaawerth> that could really mess you up though
[17:59:12] <jaawerth> what if you go to a state and then a nested state and both have params?
[17:59:12] <merpnderp> jaawerth: I have a singleton employeeService that is looking at the EmployeeID stateparam.
[17:59:25] <merpnderp> It updates the currentEmployeeModel on changes (or will).
[17:59:27] *** bayousoft has joined #angularjs
[18:00:07] <jaawerth> you should just grab the stateparams in that state's controller and update the service data from there (or call some sort of update function on it)
[18:00:12] <dmack> ^
[18:00:22] <dmack> I don't think you need a $watch
[18:00:52] *** gladely has quit IRC
[18:01:03] <merpnderp> jaawerth: I'm trying to get away from controllers directly updating services.
[18:01:07] *** Aswebb_ has quit IRC
[18:01:13] <nickeddy> why?
[18:01:25] <merpnderp> Because.......decoupling?
[18:01:34] <merpnderp> I think the code is much cleaner
[18:01:42] <dmack> $watches aren't clean
[18:01:44] <dmack> FWIW
[18:01:46] <nickeddy> ^
[18:01:48] <nickeddy> well
[18:01:58] <nickeddy> in this case yeah, i'm going to have to agree with dmack and jaawerth
[18:02:09] <nickeddy> services are literally meant to be used in controllers
[18:02:16] <dmack> like, this whole idea of "decoupling" everything is great and all. but you use services in controllers.
[18:02:18] *** ukko has quit IRC
[18:02:22] <nickeddy> ^
[18:02:23] <dmack> that's why they're there
[18:02:32] <jaawerth> controllers pull the strings on services
[18:02:41] <merpnderp> a problem with that is sometimes my controller doesn't get updated on a new state if it is already instantiated.
[18:02:48] *** elrabin has quit IRC
[18:02:53] <dmack> right. but your controller does.
[18:02:53] <merpnderp> So it never knows abotu the stateParam change, since it doesn't have a $watch either.
[18:02:56] *** ukko has joined #angularjs
[18:03:06] <jaawerth> why would it already be instantiated if you're switching to a new state?
[18:03:09] <dmack> your controller should get re-instantiated when the URL changes.
[18:03:20] *** dc_ has quit IRC
[18:03:22] <merpnderp> jaawerth: it is a controller up higher on the inheritance tree.
[18:03:24] *** couscous1 has quit IRC
[18:03:26] <nickeddy> i'd probably throw that in a resolve
[18:03:30] <nickeddy> then
[18:03:36] <jaawerth> that's why you need to set it in the *state* controller
[18:03:39] <dmack> ^, and resolve your stateParams to your service method.
[18:03:39] <nickeddy> because resolves update on $stateParam changes
[18:03:42] <jaawerth> that's what the state controller is for
[18:03:51] *** UniBot1 has quit IRC
[18:03:56] <dmack> btw, we're all saying the same thing.
[18:04:01] <jaawerth> haha
[18:04:13] <merpnderp> For instance. If I'm switching from Employee.personaldetail to Employee.Recommendation and the EmployeeID changes, the Employee controller needs a options {reload:true} to work.
[18:04:35] <dmack> shouldn't recommendation be a child state of detail then?
[18:04:38] <merpnderp> okay, I'll go back and look at resolves.
[18:04:40] <dmack> that way the stateParams are kept?
[18:04:41] <nickeddy> resolve: { thingy: ['$stateParams', 'SomeService', function($stateParams, SomeService) { return SomeService.update($stateParams); }] }
[18:04:54] <merpnderp> dmack: no, recommendation is a child of employee. Has nothing to do with details.
[18:05:00] <jaawerth> yeah - you don't even have to do it in the controller, you can do it in the resolve
[18:05:10] *** Laserbeak43 has joined #angularjs
[18:05:11] *** deanclkclk has joined #angularjs
[18:05:16] <merpnderp> jaawerth: that makes me happier about this...much
[18:05:37] *** arpu has quit IRC
[18:05:40] *** Laserbeak43 has quit IRC
[18:06:04] <dmack> also, is "employee
[18:06:16] <dmack> is that a state that people can navigate to, or just an abstract?
[18:06:19] *** Oxynum has joined #angularjs
[18:06:26] *** aslate has quit IRC
[18:06:40] *** stillbourne has joined #angularjs
[18:07:25] <merpnderp> employee is abstract. It defaults to personaldetails
[18:07:30] <merpnderp> dmack:
[18:07:31] *** sonofdirt has joined #angularjs
[18:07:44] *** leolrrj has joined #angularjs
[18:07:45] <dmack> right, so the urls are like
[18:07:52] <merpnderp> nickeddy: what is 'thingy' in your example?
[18:07:54] <dmack> employee/:employeeId/children
[18:08:03] <merpnderp> dmack: YES....you get it!!!
[18:08:06] *** aslate has joined #angularjs
[18:08:09] <merpnderp> sorry I didn't explain it better.
[18:08:14] <nickeddy> merpnderp: the thing to be resolved
[18:08:17] <dmack> so, when you nagivate to details, you go
[18:08:32] <dmack> state.go('employee.details, { employeeId: 3 })
[18:08:34] <CHC> o'
[18:08:40] *** fbenoit has quit IRC
[18:08:56] <dmack> yeah. no need for a $watch in this case.
[18:09:03] <merpnderp> dmack: but if they click on someone's boss's href, all that is updated is the EmployeeID
[18:09:06] <tehfedaykin> is there a way to see if the HTML2JsPreprocessor worked?
[18:09:16] <merpnderp> And the controllers decide if that user can see that child, and if not redirect to
[18:09:33] *** phaggood has joined #angularjs
[18:09:34] <merpnderp> something they can see (personaldetails
[18:09:50] <bigx> hi, is anyone succeded to use karma, when using socket.io in the code under tests?
[18:10:08] <phaggood> any breezejs experts online?
[18:10:14] <CHC> i'm using $compile to compile auto-generated html that has ng-model, etc and its working fine, but its failing when i use my custom directives, i saw $compileProvider.directive but i'm not sure if thats what i want
[18:10:21] *** lsiv568 has joined #angularjs
[18:10:28] <bigx> I have a connection error, that obviously doesn't happens in real life and also not happening with mocha-phantomjs
[18:10:30] <phaggood> I’m trying to use BreezeJS to execute a post call against my server
[18:10:42] <phaggood> I’m getting this response: TypeError: Cannot read property '$http' of undefined {query: ctor, stack: (...), message: "Cannot read property '$http' of undefined"}
[18:11:00] *** Oxynum has quit IRC
[18:11:35] *** opioids has joined #angularjs
[18:11:45] *** Aswebb_ has joined #angularjs
[18:12:33] *** daandd has quit IRC
[18:12:52] *** rho_ is now known as rho
[18:12:55] *** Evanion_ has joined #angularjs
[18:13:13] *** kpax has quit IRC
[18:13:16] *** edy has quit IRC
[18:13:25] *** Evanion has quit IRC
[18:13:25] *** Evanion_ is now known as Evanion
[18:13:26] *** dacuca has quit IRC
[18:13:28] *** Guest22 has quit IRC
[18:13:29] *** nfroidure has quit IRC
[18:14:49] <nickeddy> phaggood: hard to tell what's going on in that error without the code that produced it...
[18:14:49] *** sonicparke|bradm has quit IRC
[18:15:06] *** frkout has quit IRC
[18:15:36] *** lsiv568 has quit IRC
[18:16:23] *** mennea has joined #angularjs
[18:16:34] *** sigurding_ has quit IRC
[18:16:46] *** SargoDarya has joined #angularjs
[18:17:24] *** codecone has quit IRC
[18:17:40] *** chrisshattuck has joined #angularjs
[18:17:44] *** Sontakey has quit IRC
[18:19:07] *** jdummy has joined #angularjs
[18:19:26] *** bengillies has quit IRC
[18:19:29] <BobbieBarker> phaggood if you want to up your CRUD game with angular i'd recommend using restangular
[18:19:31] <jdummy> Why doesn't angular honor the limitTo: filter when working with hashmaps?
[18:20:09] <BobbieBarker> what kind of error does it throw?
[18:20:11] *** deanclkclk_ has joined #angularjs
[18:21:11] *** SargoDarya has quit IRC
[18:21:19] *** htmelvis has quit IRC
[18:21:24] <jdummy> BobbieBarker: me?
[18:21:30] <BobbieBarker> yeah you jdummy
[18:21:37] <phaggood> I’ve used restangular but what I’m trying to do is apply a rich data model to my angular app, what I like about breeze is that I can define my models on the server and download them to the client on demand
[18:21:43] *** jacuqesdancona_ has quit IRC
[18:21:52] *** deanclkclk has quit IRC
[18:21:57] <jdummy> no error, just doesn't limit. however, since there is no implied order of items in a hashmap, maybe it makes sense for them to not be supported for filters
[18:22:04] *** deanclkclk has joined #angularjs
[18:22:12] <BobbieBarker> phaggood: does that API call hit the server at all?
[18:22:17] <phaggood> breeze get’s work fine but I’m having trouble with post and the docs appear out of date
[18:22:20] *** jacuqesdancona_ has joined #angularjs
[18:22:41] <jdummy> I thought I was adding an optimization to my app by converting my entity collections to hashmaps, but instead it's the opposite
[18:22:52] <phaggood> no, never seems to hit the server (there’s a breakpoint on the server when the call ireaches the target selector)
[18:22:59] <nickeddy> phaggood: are you sure you even need to include $http? doesn't appear you're using it
[18:23:08] <BobbieBarker> phaggood: did you look in your dev tools?
[18:23:13] <BobbieBarker> to see if it's doing anything
[18:23:22] <jdummy> BobbieBarker: I'll just be using arrays instead, I clearly hadn't thought it through. Thanks for responding though.
[18:23:39] <BobbieBarker> jdummy: i would stick to arrays, that was going to be my suggestion
[18:23:49] <phaggood> i assumed it was required because breeze.ajaxpost() wraps this; again, the docs appear a bit out of date so maybe I dont I’ll try it
[18:23:49] *** nerdgrass has quit IRC
[18:23:49] *** jlebrech has quit IRC
[18:23:52] <BobbieBarker> i was just checking to see if you where getting any errors before i said anything
[18:23:52] *** adben has quit IRC
[18:24:29] <BobbieBarker> phaggood: well angular relies on $q for resolving promises and stuff and since this ajaxy crap is outside of that, the lack of $http/$q maybe your point of failure
[18:24:34] <jdummy> BobbieBarker: the hashmap would be nice for updating a single entity in memory, but clearly introduces other issues. ohs well
[18:24:42] *** jonathanpglick has joined #angularjs
[18:25:28] *** deanclkclk_ has quit IRC
[18:25:43] <BobbieBarker> jdummy: yeah, collections are already hella fast, where you trying to optimize operations that have to do with targetting a specific item in the hash?
[18:25:46] <BobbieBarker> like put operations
[18:25:51] <BobbieBarker> against a specific item?
[18:25:54] <jaawerth> yeah, you can't filter an object in an ng-repeat
[18:26:08] <jdummy> BobbieBarker: yeah, exactly... putting one entity in a collection
[18:26:17] <jaawerth> or rather, not as part of the ng-repeat expression
[18:26:31] *** MaxV has quit IRC
[18:26:31] <BobbieBarker> so conversely, an alterative approuch would be to write an API end point to deal with a specific object
[18:26:35] <BobbieBarker> then you can call that
[18:26:39] <jaawerth> you could do something like ng-repeat="thing in (things|toArray)" with a custom filter that converts it to an array on the fly
[18:26:41] *** laurensclaessen has quit IRC
[18:27:04] *** jacuqesdancona_ has quit IRC
[18:27:13] *** juampy has quit IRC
[18:27:13] <jaawerth> (or just convert it yourself beforehand, the difference is whether you need it to be an object for some reason and then need the array to constantly update as the object does)
[18:27:40] *** jacuqesdancona_ has joined #angularjs
[18:27:43] *** paperElectron has quit IRC
[18:27:49] <jdummy> BobbieBarker: but there's no way to avoid iterating [at least some portion of] the collection in order to update just one entity in memory
[18:28:22] *** say2joe has joined #angularjs
[18:28:52] *** Siyfion has quit IRC
[18:29:00] *** gregc2 has joined #angularjs
[18:29:04] *** macobo has quit IRC
[18:29:11] <jdummy> jaawerth: that would probably be a net loss performance-wise for me... it would run everytime the view is updated
[18:29:13] *** patrick99e99 has joined #angularjs
[18:29:15] *** jdivock_ has quit IRC
[18:29:32] *** jdivock_ has joined #angularjs
[18:29:37] <nickeddy> premature optimization is the root of all evil
[18:29:42] <jdummy> arrays will have to do, I was simply trying to avoid iterating the collection to update one single entity... but it will cost more everywhere else it seems.
[18:29:56] <BobbieBarker> jdummy: true that, i'd have to know more about the use case to make a better recommendation on how to handle it.
[18:29:59] <BobbieBarker> i was kind of just speculating
[18:30:00] *** jdivock_ has quit IRC
[18:30:11] *** ederign_pto has left #angularjs
[18:30:13] <jdummy> nickeddy: well... the "root of *all kinds* of evil" maybe. :)
[18:30:26] <BobbieBarker> no nickeddy is correct, it is hte root of all evil
[18:30:29] <nickeddy> oh don't take my word for it
[18:30:43] <nickeddy> donald fucking knuth says it is
[18:30:48] <jdummy> oh. well then. I'll certainly go back to what I was doing before trying to optimize
[18:31:15] <nickeddy> i think..
[18:31:28] *** pknordic has quit IRC
[18:31:40] *** Guest22 has joined #angularjs
[18:31:58] *** jacuqesdancona_ has quit IRC
[18:31:59] *** m3l720 has joined #angularjs
[18:32:06] *** brettfrable has quit IRC
[18:32:23] <merpnderp> Okay, I'm pretty sure I'm doign this wrong. Anyone know how?
[18:32:31] <nickeddy> jdummy: "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"[3]
[18:32:45] *** disorder20 has quit IRC
[18:32:50] *** waverider has quit IRC
[18:32:52] <nickeddy> jdummy: i would profile the hell out of your app before doing any optimization
[18:32:58] <nickeddy> jdummy: start with the biggest things first :)
[18:33:01] <dmack> merpnderp: $stataParams?
[18:33:03] <dmack> typo?
[18:33:09] <merpnderp> arg
[18:33:13] *** gregc2 is now known as ioudas
[18:33:13] <nickeddy> merpnderp: you have to return something too
[18:33:24] <dmack> ^, usually a promise;
[18:33:37] <merpnderp> I don't care about what thngy is equal to....so nothign?
[18:33:44] *** ianpirro has quit IRC
[18:33:56] <nickeddy> no, you HAVE to return something
[18:33:57] *** Xaleph has quit IRC
[18:34:01] <dmack> yeah
[18:34:04] <merpnderp> nickeddy: I returned nothing and it works.
[18:34:07] <merpnderp> return;
[18:34:09] <dmack> just make updateEmployeeId return a promise
[18:34:12] <jaawerth> jdummy: well it would look for changes when the digest runs like any filter would
[18:34:23] <merpnderp> Weird that the typos didn't give me an undefined error on the $stateparams.EmployeeID.
[18:34:34] <merpnderp> Oh, in JS, that would resolve to undefined.
[18:34:58] <merpnderp> dmack: the controller uses the service through template binding.
[18:35:06] <jaawerth> jdummy: angular will only execute your filter in an expression when the inputs change
[18:35:08] <merpnderp> dmack: so as soon as the service upates, so does the controller's templat.e
[18:35:19] <nickeddy> merpnderp: and here you were talking about decoupling :P
[18:35:20] <jaawerth> aka it "watches" the inputs
[18:35:25] *** d4rklit3 has joined #angularjs
[18:35:27] <dmack> yeah, not sure that's what you want?
[18:35:37] <dmack> "thingy" should be the data you wanbt to bind in your controller
[18:35:39] *** merobertsjr has joined #angularjs
[18:35:40] <dmack> IMO.
[18:35:56] <merpnderp> nickeddy: any model would work there?
[18:35:57] *** tbo_ has joined #angularjs
[18:35:58] <dmack> or at least some initial data, what does uploadEmployeeId do?
[18:36:02] <merpnderp> as long as it had those properties?
[18:36:02] *** sheerun has joined #angularjs
[18:36:14] *** wallerdev has joined #angularjs
[18:36:16] <nickeddy> merpnderp: any model would work where?
[18:36:18] *** Ajans1 has quit IRC
[18:36:36] *** paperElectron has joined #angularjs
[18:36:43] <merpnderp> dmack: yeah, the controller doesn't need its state changed at all.
[18:36:58] *** m3l720 has quit IRC
[18:37:05] <merpnderp> dmack: UpdateEmployeeID sets the employeeService's selectedEmployeeModel to the correct model.
[18:37:06] *** elrabin_ has quit IRC
[18:37:11] *** paperElectron has quit IRC
[18:37:13] *** ctanga has quit IRC
[18:37:35] <dmack> so in your controller you have a $watch?
[18:37:39] *** elrabin has joined #angularjs
[18:38:20] <merpnderp> dmack: no, the controller doens't do anything about model updates. Those are just bound in the template.
[18:38:30] <merpnderp> The controller only cares about events from the template
[18:38:39] *** paperElectron has joined #angularjs
[18:38:39] <nickeddy> merpnderp: can i see the template?
[18:38:40] *** codecone has joined #angularjs
[18:38:48] <merpnderp> nickeddy: it is pretty big...j/s
[18:38:56] *** codecone has quit IRC
[18:39:14] *** morenoh149 has joined #angularjs
[18:39:21] <dmack> your setup seems weird, but maybe I just am not following
[18:39:22] <nickeddy> well i'm just curious as to why you were so worried about decoupling things when it sounds like it's extremely coupled
[18:39:26] <merpnderp> Here's enough to give you an idea of what's going on.
[18:39:52] *** m3l720 has joined #angularjs
[18:40:02] *** pikos has joined #angularjs
[18:40:04] <dmack> so you've bound employeeService to your template?
[18:40:09] *** diffalot has quit IRC
[18:40:16] *** Oxynum has joined #angularjs
[18:40:18] <dmack> how does that even work?
[18:40:27] <merpnderp> nickeddy: because I had these services talkign to controllers via pub/sub and I got all sorts of race conditions and double/triple calls for the same data.
[18:40:30] <nickeddy> $scope.employeeService = EmployeeService;
[18:40:38] <nickeddy> but
[18:40:42] <merpnderp> dmack: lots of people have told me to do that and seem to think it is ok.
[18:40:47] <nickeddy> this is strange
[18:41:03] <nickeddy> using the employeeService as the data store for that controller
[18:41:03] <merpnderp> nickeddy: remember I'm in the middle of a massive refactor. This is a work in progress.
[18:41:03] <nickeddy> = wtf
[18:41:11] <merpnderp> nickeddy: why?
[18:41:13] *** diffalot has joined #angularjs
[18:41:14] *** ianpirro has joined #angularjs
[18:41:18] <dmack> I'm agreeing with nickeddy here
[18:41:28] <nickeddy> because that's not what services are for?
[18:41:36] <dmack> your controller should be fetching data from the service and giving that to the template.
[18:41:42] <merpnderp> nickeddy: if I don't, then I have to have some sort of event system to update the conroller that its model needs to be updated.
[18:41:49] <nickeddy> no
[18:41:50] <nickeddy> you don't
[18:41:50] <dmack> no
[18:42:29] <nickeddy> EmployeeService.getEmployee(someIdHere).then(function(empl) { $scope.selectedEmployee = empl; });
[18:42:32] <merpnderp> nickeddy: what happens if two controllers depend on the same model and one of them updates it. How does the other know?
[18:42:42] *** ianpirro has quit IRC
[18:43:25] <nickeddy> are both of those controllers running at the same time?
[18:43:33] <merpnderp> nickeddy: in this case yes.
[18:43:42] <dmack> so you have 2 states active at once?
[18:43:50] *** Sontakey has joined #angularjs
[18:44:02] <nickeddy> this sounds next level strange
[18:44:06] *** BobbieBarker has quit IRC
[18:44:14] <merpnderp> my most common use case is the parent employee, which shows some employee data on the left quarter of the screen, and then an employee child which shows some more detailed info on the rest of the page.
[18:44:25] <merpnderp> dmack: not two states. Just a parent state and a child.
[18:44:32] <dmack> right.
[18:44:33] <merpnderp> employee.personaldetails.
[18:44:33] *** mennea has quit IRC
[18:44:40] *** mityaz has quit IRC
[18:44:48] *** cotko has quit IRC
[18:44:52] *** loverajoel has quit IRC
[18:45:05] <merpnderp> they both need access to the selectedEmployeeModel.
[18:45:12] *** mennea has joined #angularjs
[18:45:37] *** elrabin has quit IRC
[18:45:38] <merpnderp> but if someong clicks on the Groups tab, I need to switch to employee.groups
[18:45:41] *** DanSkaggs has joined #angularjs
[18:45:59] *** dcherman has joined #angularjs
[18:46:00] *** Sontakey has quit IRC
[18:46:18] <dmack> so, what I see is that you tried to "decouple" the data layer from your controller, but what you did was introduce more complexity
[18:46:27] *** kpax has joined #angularjs
[18:46:51] *** ianpirro has joined #angularjs
[18:46:56] <dmack> you have an "employee" state that has an ID. all child states will always inherit that ID, and if you need to move up and down states that data should ways be available
[18:47:45] <dmack> in my app we have an "orders" and "orders.detail", and "order.detail.shipments"
[18:47:46] *** _mtr has joined #angularjs
[18:47:49] *** Xaleph has joined #angularjs
[18:47:52] *** Sadin has quit IRC
[18:48:02] *** MuffinMan` has joined #angularjs
[18:48:09] *** Una has quit IRC
[18:48:23] *** loverajoel has joined #angularjs
[18:48:30] <dmack> and we query a service whenever we change states to get the appropriate data, which doesnt seem much different than what you're doing
[18:48:38] *** Una has joined #angularjs
[18:49:30] *** warpx has joined #angularjs
[18:49:33] <phaggood> BobbieBarker: so inspecting breeze.debug.js it appears my setup for post isn’t actually executing a post, but instead it’s attempting a ‘get’ which is munging up all the params. I think I’m either missing something in the docs or something actually missing *in* the docs for doing a post in my datacontext
[18:50:03] *** RobinBAwesome has joined #angularjs
[18:50:14] *** elrabin has joined #angularjs
[18:50:30] *** Leon has quit IRC
[18:50:40] *** conan_the_destro has quit IRC
[18:51:21] <merpnderp> dmack: well it wouldn't be hard to change to the way you ar edoing it. Just wondering how these states know about model updates from other controllers
[18:51:36] <merpnderp> although usually the stateparam updates.
[18:51:42] *** conan_the_destro has joined #angularjs
[18:51:51] <merpnderp> So I could simple use a reload.
[18:51:53] *** dannyc_ has quit IRC
[18:52:24] *** IvailoStoianov_ has joined #angularjs
[18:52:25] <merpnderp> dmack: but I'm not sure how I added more complexity. Rigth now my controllers are razor thin.
[18:52:47] <merpnderp> All they do is handle events from the user, apply business logic and pass data to the services.
[18:53:19] *** ihsw has left #angularjs
[18:54:10] <nickeddy> well you're binding the template to the service through the controller which is... strange to say the least
[18:54:14] *** rileylark has quit IRC
[18:54:16] *** IvailoStoianov has quit IRC
[18:54:30] *** IvailoStoianov_ is now known as IvailoStoianov
[18:54:48] *** marcjs has joined #angularjs
[18:55:26] *** hnomad has joined #angularjs
[18:56:09] <merpnderp> nickeddy: the only other option is to listen for events from the service to knwo when it has updated.
[18:56:17] *** Johnny13371337 has joined #angularjs
[18:56:18] <merpnderp> multiple controllers can update a service's modle.
[18:56:19] *** Johnny13371337 has left #angularjs
[18:56:34] <maraneta> i'm finding it hard to grasp how $q works... anyway, i'm trying to figure out a way to have a promise resolved and set a variable in a beforeEach() function... what's the best way to do this?
[18:56:35] <merpnderp> I guess I could just raise an event saying "I changed"
[18:56:56] <nickeddy> merpnderp: pretty sure you're thinking of this a bit wrong
[18:57:13] *** prosper_ has joined #angularjs
[18:57:15] <merpnderp> nickeddy: well that sticking point is mulitple controllers updating the same model
[18:57:40] <nickeddy> what are they changing about the model?
[18:57:43] <merpnderp> nickeddy: shuld the employee and the personaldetails controllers have different employee models?
[18:57:53] <merpnderp> nickeddy: usually the whole thing.
[18:58:02] <nickeddy> and what do you mean by model?
[18:58:14] *** night-owl is now known as zz_night-owl
[18:58:14] <merpnderp> I'm trying to think of a change a sub controller would make that the employee controller would need to know about that wasn't just a whole new model.
[18:58:29] <nickeddy> because if they're all employees it shouldn't matter
[18:58:34] <merpnderp> selectedEmployeeModel (the person tey're loolking at)
[18:58:42] <merpnderp> well in this case it is the same employee
[18:58:46] <merpnderp> You can only look at one person at a time.
[18:59:17] *** bayousoft has quit IRC
[18:59:19] *** bayousof_ has joined #angularjs
[18:59:22] <nickeddy> why are you able to change who you're looking at in every state ?
[18:59:26] *** zemanel has quit IRC
[18:59:30] <nickeddy> should only really be happening in the parent state
[18:59:48] *** zanea|away is now known as zanea
[18:59:48] <merpnderp> nickeddy: because the events that change the user are usually a ui-sref
[18:59:53] <nickeddy> parent's resolve gets current employee you're looking at (by $stateParams in a resolve)... children states depend on that parent resolve.
[19:00:28] *** _magus has quit IRC
[19:00:55] *** Stichoza has quit IRC
[19:01:01] <merpnderp> nickeddy: oh crap...I forgot that children inherit the scope fromtheir parent.
[19:01:10] <nickeddy> no, they don't inherit the scope?
[19:01:15] <nickeddy> they inherit the resolves
[19:01:37] *** Stichoza has joined #angularjs
[19:01:53] <nickeddy> merpnderp: not sure where you're getting that they inherit the scope...
[19:01:55] <merpnderp> so I should let ui-router be in charge of setting the selectedEmployeeModel for employee in a resolve, and every child state will inherit it.
[19:02:02] <nickeddy> merpnderp: correct
[19:02:23] *** OddDuck has joined #angularjs
[19:02:28] <nickeddy> merpnderp: that way you only have one spot it's grabbing the data, regardless of who is changing the url/$stateParams
[19:02:52] <merpnderp> nickeddy: and then the employeeService just gets the model from the server and maybe caches requests.
[19:02:52] *** tehfedaykin has quit IRC
[19:02:59] <nickeddy> yep
[19:03:00] <merpnderp> it doesn't hold data
[19:03:19] <nickeddy> it CAN hold data if you want (like you said, caching, it can first see if the cache has the data, if not, talk to the server)
[19:03:29] *** OddDuck has quit IRC
[19:03:34] <merpnderp> nickeddy: But then I have a userService which is always being hit. Everythign needs to know the current user's roles, name, id, etc etc etc.
[19:03:56] <nickeddy> well what makes you think employee service stuff should be coupled to user service?
[19:04:04] <merpnderp> they aren't at all.
[19:04:22] <merpnderp> the employeeService inits with the userServices employeeID, but that's all.
[19:04:28] *** jpstone has quit IRC
[19:04:39] *** ngbot has joined #angularjs
[19:04:40] <ngbot> angular.js/master c5cba6e Georgios Kalpakas: chore(changelog): add test for addition of trailing newline...
[19:04:40] *** ngbot has left #angularjs
[19:04:47] *** SomeKittens has quit IRC
[19:04:48] <nickeddy> so inject the userservice to your controllers where you need it
[19:05:05] <merpnderp> nickeddy: it is going ot be a chore to move all this logic back into the controllers.
[19:05:28] <nickeddy> all they are doing is invoking the services..
[19:05:48] <nickeddy> or talking to the resolves
[19:06:04] *** joncodo has quit IRC
[19:06:05] <nickeddy> sounds pretty light weight to me
[19:06:21] <themime> ug plunker
[19:06:30] <themime> y u down so often
[19:06:36] *** doertedev has quit IRC
[19:06:39] <merpnderp> nickeddy: okay......I'm sold
[19:06:55] <nickeddy> merpnderp: show me when you're done
[19:07:22] <merpnderp> Either way this is a huge improvement on my "publish ("what's the current employee") listen ("it's such and such"). And then that listerner being called EVERY TIME that publish is sent.
[19:07:30] *** nemothekid has quit IRC
[19:07:39] *** sl33k_ has joined #angularjs
[19:07:50] <merpnderp> and nearly everything needed to ask who the current employee was.
[19:08:10] <nickeddy> merpnderp: yeah i would stay as far away as possible from events
[19:08:13] <merpnderp> nickeddy: I'll have to write down your nick. This is going to take a day or two.
[19:08:14] *** aslate has quit IRC
[19:08:19] *** ngbot has joined #angularjs
[19:08:20] <ngbot> angular.js/v1.2.x bb3b653 Georgios Kalpakas: chore(changelog): add test for addition of trailing newline...
[19:08:20] *** ngbot has left #angularjs
[19:08:23] <nickeddy> i'm here pretty often
[19:08:34] *** MaxV has joined #angularjs
[19:08:41] *** Una has quit IRC
[19:08:46] *** uglyandstupid has joined #angularjs
[19:08:58] *** zB0hs has joined #angularjs
[19:09:00] <uglyandstupid> hello everyone
[19:09:01] <oniijin> it's almost winter break. he'll be in here 24/7
[19:09:02] *** adamsilver has quit IRC
[19:09:07] *** zB0hs has quit IRC
[19:09:09] <themime> haha
[19:09:15] <merpnderp> oniijin: heh, I'm jealous.
[19:09:31] *** PeterMetz has quit IRC
[19:09:32] *** shiftyRZA has joined #angularjs
[19:09:39] <oniijin> i don't think he sees it that way lol
[19:09:56] *** richiebkr has joined #angularjs
[19:10:03] *** mlpug has joined #angularjs
[19:10:34] *** Aliks has joined #angularjs
[19:10:38] *** nemothekid has joined #angularjs
[19:11:00] <merpnderp> nickeddy: dmack jaawerth thanks for the help!
[19:11:13] *** Simonator_ has joined #angularjs
[19:11:17] *** walden is now known as walden|brb
[19:11:41] *** jdivock_ has joined #angularjs
[19:11:41] *** zB0hs has joined #angularjs
[19:12:10] <dmack> sure
[19:12:13] *** Aliks has quit IRC
[19:12:53] *** SomeKittens has joined #angularjs
[19:13:03] *** Aliks has joined #angularjs
[19:13:06] *** saucey has quit IRC
[19:13:54] *** glassir has quit IRC
[19:14:35] *** mennea has quit IRC
[19:14:58] <uglyandstupid> anyone used to use QML please ? i'm thinking to re-use some AngularJS part with it and dont know yet how my idea is possible
[19:15:13] *** moogey has quit IRC
[19:15:14] *** phaggood has quit IRC
[19:15:15] *** mennea has joined #angularjs
[19:16:29] *** jdivock_ has quit IRC
[19:16:39] *** lsiv568 has joined #angularjs
[19:16:42] *** tomphp has quit IRC
[19:16:49] *** linojon has quit IRC
[19:16:57] *** gladely has joined #angularjs
[19:18:02] *** cthrax has joined #angularjs
[19:18:20] *** Sontakey has joined #angularjs
[19:18:51] *** linojon has joined #angularjs
[19:18:54]
<WhatsInTheBoks> Would this work to send a new page view every time the user changes the ID value of a ng-switch? http://pastebin.com/A8VT1NiL
[19:18:58] *** phaggood has joined #angularjs
[19:19:10] *** Sontakey has left #angularjs
[19:19:23] *** patrick99e99 has quit IRC
[19:19:32] *** kirfu has joined #angularjs
[19:19:54] *** patrick99e99 has joined #angularjs
[19:20:16] *** phaggood has quit IRC
[19:20:49] *** lsiv568 has quit IRC
[19:21:14] *** yelvert has joined #angularjs
[19:22:31] *** Wextux has joined #angularjs
[19:22:32] *** ctanga has joined #angularjs
[19:22:46] *** phaggood has joined #angularjs
[19:23:15] *** herzi has quit IRC
[19:25:17] *** robdubya has joined #angularjs
[19:25:33]
<maraneta> can someone check out my end to end test? it seems to return without waiting for my promises to resolve: http://dpaste.com/249MQ5M
[19:25:40] *** Oxynum has quit IRC
[19:25:51] *** jeremymarc has joined #angularjs
[19:26:18] *** joshontheweb has quit IRC
[19:27:06] *** diosney has quit IRC
[19:28:33] *** JohnBat26 has quit IRC
[19:28:52] *** stormbytes has joined #angularjs
[19:29:40] *** moogey has joined #angularjs
[19:30:36] *** _mtr has quit IRC
[19:30:50] *** _mtr has joined #angularjs
[19:30:57] *** Juanchito has joined #angularjs
[19:30:57] *** Milkweed has joined #angularjs
[19:31:01] *** shackleford has quit IRC
[19:31:01] *** baweaver has joined #angularjs
[19:31:06] *** \du has quit IRC
[19:32:48] *** rtpg has joined #angularjs
[19:32:52] *** jstroem has joined #angularjs
[19:33:13] *** fedenunez1 has joined #angularjs
[19:33:17] *** fedenunez has quit IRC
[19:33:32] *** maikowblue has joined #angularjs
[19:34:03] *** Anonymous__ has joined #angularjs
[19:34:04] <nickeddy> oniijin: lol i'm only here when i'm at work
[19:34:06] *** Anonymous__ has quit IRC
[19:34:10] <nickeddy> so, no :P
[19:34:28] *** dylan9o4 has joined #angularjs
[19:34:31] *** Anonymous__ has joined #angularjs
[19:34:44] *** jaredwilli has joined #angularjs
[19:34:50] <oniijin> i was giving the kid hope
[19:34:56] <oniijin> u just had to dash it to hell
[19:34:57] *** Anonymous__ has joined #angularjs
[19:34:59] <nickeddy> hope is for the weak
[19:35:02] <nickeddy> !!!!!
[19:35:06] *** tbo_ has quit IRC
[19:35:06] *** mchapman has quit IRC
[19:35:14]
<maraneta> can someone check out my end to end test? it seems to return without waiting for my promises to resolve: http://dpaste.com/249MQ5M
[19:35:20] *** jmverges has quit IRC
[19:35:21] *** Anonymous__ has joined #angularjs
[19:35:53] *** Superhard_ has joined #angularjs
[19:36:01] *** shiftyRZA has quit IRC
[19:36:22] *** Xaleph has quit IRC
[19:36:30] <dylan9o4> Hey guys, when looking at a web page/app's CSS animations, one can easily view this with Chrome's inspector. Is there some way to do this with animations triggered within angular?
[19:36:37] *** anapitupulu has joined #angularjs
[19:36:39] *** jmverges has joined #angularjs
[19:37:08] *** Anonymous_ has quit IRC
[19:37:32] *** rtpg has quit IRC
[19:37:57] *** Superhard has quit IRC
[19:38:06] *** mclenithan has joined #angularjs
[19:38:19] *** jacuqesdancona_ has joined #angularjs
[19:39:10] *** Xaleph has joined #angularjs
[19:39:13] *** TommyO has joined #angularjs
[19:39:21] *** linojon has quit IRC
[19:39:50] *** jojo_ has joined #angularjs
[19:40:58] *** rho has quit IRC
[19:41:31] *** linojon has joined #angularjs
[19:41:56] *** mzabriskie has quit IRC
[19:42:21] <jojo_> question about 1.3.4 and minification. I have add my controllers to the module but I get a very generic message about not being able to load the main app module. My assumption is that some controller might be trying to load before the module but I don't know which. Is there anyway to have an injector error message state the module or controller that might be trying to inject the missing module instead of the name of the missing item
[19:42:52] *** jacuqesdancona_ has quit IRC
[19:43:07] <maraneta> help! how can i wait for a promise to be resolved without putting code in the .then() function?
[19:43:11] <nickeddy> jojo_: are you using correct DI array syntax?
[19:43:47] *** pikos has quit IRC
[19:43:58] <jojo_> Everything works if I turn minification off
[19:44:01] *** guilbep has quit IRC
[19:44:30] *** jdivock_ has joined #angularjs
[19:44:37] *** mennea has quit IRC
[19:44:40] <jojo_> so that's why I suspect it's a order issue and not syntax. And yes I have done the di syntax ["DI",function(DI){}]
[19:44:56] *** rileylark has joined #angularjs
[19:45:00] <nickeddy> no that sounds like minification issue if it works without minification.
[19:45:07] *** mtsr has joined #angularjs
[19:45:10] <nickeddy> are you using ng-annotate?
[19:45:13] *** mennea has joined #angularjs
[19:45:27] <jojo_> I should also state that minification worked with 1.2.x
[19:45:34] <jojo_> it's only since I moved to 1.3x
[19:45:54] <nickeddy> are you using ng-annotate?
[19:46:06] *** curfont has quit IRC
[19:46:19] <jojo_> @nickeddy not using ng-annotate
[19:46:22] <nickeddy> use it
[19:46:28] <jojo_> ok
[19:46:43] *** ziyadb has joined #angularjs
[19:46:46] *** moogey has quit IRC
[19:46:52] <jojo_> do you suspect that will fix the problem or just give me better info about where the problem exists?
[19:46:59] *** s00pcan has quit IRC
[19:47:03] <nickeddy> that will fix it i'm guessing
[19:47:12] <morenoh149> maraneta: why do you think theres another way? thats how you do it
[19:47:12] <jojo_> ok will try now
[19:47:20] *** walden|brb is now known as walden
[19:47:51] *** dacuca has joined #angularjs
[19:48:08] *** dacuca has quit IRC
[19:48:16] *** nairys has joined #angularjs
[19:48:19]
<maraneta> morenoh149: can you look at my protractor test? http://dpaste.com/249MQ5M, it seems like my promise isn't being added to the control flow
[19:48:40] <jojo_> I don't see a file in the zip called angular-annotate is my assumption incorrect on where that module is?
[19:49:30] <nickeddy> jojo_: :| what is your build system?
[19:49:43] <jojo_> using teamcity for build server
[19:49:46] <nickeddy> jojo_: grunt or gulp or?
[19:49:48] <nickeddy> oh
[19:49:51] <nickeddy> uhhh
[19:50:07] <nickeddy> good luck then, i have no idea what that is
[19:50:09] <jojo_> it's a .net mvc app
[19:50:13] <jojo_> lol
[19:50:27] *** mfunkie has quit IRC
[19:50:31] <nickeddy> generally grunt or gulp is used and you use ng-annotate with those
[19:50:33] *** glassir has joined #angularjs
[19:50:49] <jojo_> I am a little familiar with grunt are you think about a grunt task to run to produce ng-annotate?
[19:50:56] <jdummy> teamcity is apparently the root of all evil :)
[19:51:02] <jojo_> lol
[19:51:21] <morenoh149> maraneta: I'm not good with testing :(
[19:51:28] *** uris77 has quit IRC
[19:51:36] <nickeddy> hey i'm not the one using nonstandard software
[19:51:46] *** MaxV has quit IRC
[19:52:12] <morenoh149> maraneta: make sure lotList.count() is returning a promise object
[19:52:14] <nickeddy> but jojo_ i can almost guarantee you're not using correct array DI syntaxd somewhere
[19:52:30] <morenoh149> there's also #promise channel
[19:52:49] <morenoh149> lol no one is in there
[19:52:56] <maraneta> =[
[19:53:02] *** dannyc_ has joined #angularjs
[19:53:16] <morenoh149> ah yes #promises
[19:53:39] *** shiftyRZA has joined #angularjs
[19:54:07] <morenoh149> maraneta: what's element.all ?
[19:55:07] <nickeddy> morenoh149: gets all elements matching that element finder
[19:55:22] <morenoh149> nickeddy: so $q.all ?
[19:55:26] <nickeddy> nope
[19:55:45] <oniijin> lol
[19:55:50] <morenoh149> well then maraneta I'm thinking youre not running .then() on a promise object
[19:55:55] <nickeddy> that's not at all what i said lol
[19:56:08] *** phaggood has joined #angularjs
[19:56:13] <nickeddy> morenoh149: it's part of protractor
[19:56:25] <morenoh149> ah never used it myself
[19:56:53] <nickeddy> yeah the question more pertains to protractor, not promises.
[19:57:12] *** anapitupulu_ has joined #angularjs
[19:57:13] *** soee has joined #angularjs
[19:57:19] *** dannyc_ has quit IRC
[19:57:31] *** arkanciscan has joined #angularjs
[19:58:02] *** dacuca has joined #angularjs
[19:58:40] *** jonasliljestrand has joined #angularjs
[19:58:41] <GreenJello> morenoh149, this assumes that done(x) means done with error and done() means done successfully
[19:58:57] <GreenJello> er rather line 12 should be }).then(done, done);
[19:59:00] *** s00pcan has joined #angularjs
[19:59:10] <nickeddy> wrong guy GreenJello but promises don't have a cb ?
[19:59:20] *** mzabriskie has joined #angularjs
[19:59:22] <morenoh149> yeah its maraneta
[19:59:23] <nickeddy> done is not defined anywhere in that context.
[19:59:42] <nickeddy> yeah really that's bad code
[19:59:44] <GreenJello> nickdenardis, it's an argument to the it handler
[19:59:49] <GreenJello> nickeddy*
[19:59:56] *** tehfedaykin has joined #angularjs
[20:00:05] <nickeddy> ah
[20:00:07] *** Wextux has quit IRC
[20:00:11] *** anapitupulu has quit IRC
[20:00:26] <nickeddy> still 95% sure that's not how it should be done
[20:00:27] *** baweaver has quit IRC
[20:00:30] *** icfantv has joined #angularjs
[20:00:33] *** marr has quit IRC
[20:00:41] *** anapitupulu has joined #angularjs
[20:00:42] *** dowwie has left #angularjs
[20:00:53] *** mlpug has quit IRC
[20:00:54] *** zB0hs_ has joined #angularjs
[20:01:07] *** djvirgen has joined #angularjs
[20:01:08] *** bkuberek has quit IRC
[20:01:09] <morenoh149> where can I find the api for !webdriver.promise.Promise ?
[20:01:12] *** kewark has joined #angularjs
[20:01:13] *** jmverges has quit IRC
[20:01:18] *** kewark has quit IRC
[20:01:18] *** kewark has joined #angularjs
[20:01:32] <djvirgen> is this a good place to ask a ui-router question?
[20:01:39] <nickeddy> djvirgen: yep
[20:01:51] *** zB0hs has quit IRC
[20:01:51] *** lsiv568 has joined #angularjs
[20:02:08] <oniijin> wait, this isn't a wendy's drivethrough?
[20:02:09] <oniijin> damnit
[20:02:22] *** anapitupulu_ has quit IRC
[20:02:40] *** jmverges has joined #angularjs
[20:02:53] *** dacuca has quit IRC
[20:02:53] *** kewark is now known as dacuca
[20:02:59] <djvirgen> cool :) I noticed that when I click from a parent state to a child state, the outer state gets destroyed and recreated (e.g. directives are recompiled). Is there a way to avoid this?
[20:03:15] <oniijin> sticky states afaik
[20:03:27] *** jplussier has joined #angularjs
[20:03:32] *** Aliks has quit IRC
[20:03:38] <djvirgen> I tried that, but maybe I was using it wrong. I'll give it another try, thanks!
[20:03:52] *** Embassy has joined #angularjs
[20:03:52] *** mak`` has quit IRC
[20:04:09] *** shackleford has joined #angularjs
[20:04:29] <jplussier> Hey angular, I've got a directive inside of an ng-view that when it loads, takes a little while to resolve its ng-hide property, so the element kind of blinks out of existence in front of the user. Unfortunately ng-hide-remove seems to use an !important property so I'm having some trouble clobbering that behavior with css...
[20:05:06] <nickeddy> ng-cloak probably but i'd stop using ngRoute in the first place
[20:05:41] <jplussier> whysat?
[20:05:53] <nickeddy> it sucks, ui-router is better
[20:06:10] *** Aliks has joined #angularjs
[20:06:12] *** SargoDarya has joined #angularjs
[20:06:14] <jaawerth> haha, that's true, but assuming for the moment that refactoring would be inconvenient..
[20:06:25] *** MistahKurtz has joined #angularjs
[20:06:28] <nickeddy> ng-cloak like i said
[20:06:30] <jplussier> Oh, well, yeah I agree on that point but, I'll make that switch eventually anyway :P
[20:06:35] <nickeddy> potentially
[20:06:37] <jaawerth> is the problem that the content disappears when it shouldn't, or appears when it shouldn't?
[20:07:04] <nickeddy> jaawerth: refactoring would be more painful down the road :P
[20:07:09] *** MistahKurtz has quit IRC
[20:07:46] <jaawerth> nickeddy: Yeah, but but "don't use ngRoute" probably isn't going to solve that particular problem so it's not the most actionable advice
[20:07:48] *** MistahKurtz has joined #angularjs
[20:08:13] *** marcjs has quit IRC
[20:08:49] *** zz_night-owl is now known as night-owl
[20:08:57] *** bayousof_ has quit IRC
[20:08:58] <nickeddy> probably would actually, given it handles parent/children state far better
[20:09:32] *** snurfery has joined #angularjs
[20:09:32] *** cthrax has quit IRC
[20:09:35] <nickeddy> i don't ever have views popping in and out like that
[20:09:39] *** bayousoft has joined #angularjs
[20:09:57] *** zB0hs_ has quit IRC
[20:11:15] *** opioids has quit IRC
[20:11:33] *** deanclkclk_ has joined #angularjs
[20:11:36] *** AlSquirrel has quit IRC
[20:11:40] *** Trindaz has joined #angularjs
[20:11:50] *** jplussier has quit IRC
[20:12:16] <Trindaz> what is the purpose of running $timeout(myFunc) ? (with no delay)? Is it purely about delaying an operation to after current digest cycle or are there other reasons?
[20:12:34] *** deanclkclk has quit IRC
[20:12:34] *** Snugug has joined #angularjs
[20:12:44] *** ron1 has quit IRC
[20:12:51] *** merrihew has joined #angularjs
[20:12:58] *** deanclkclk has joined #angularjs
[20:12:59] *** bayousoft has quit IRC
[20:13:02] <jdummy> Trindaz: it may actually be triggering the digest cycle in the case you're seeing it
[20:13:04] *** jojo_ has quit IRC
[20:13:12] *** Linell_ has joined #angularjs
[20:13:31] <Trindaz> ok thanks jdummy - so it would usually be about managing digest cycles
[20:13:37] *** bayousoft has joined #angularjs
[20:13:40] *** soee has quit IRC
[20:13:42] *** ianpirro has quit IRC
[20:14:11] *** elrabin has quit IRC
[20:14:21] <jdummy> Trindaz: yep. -- $scope.$apply(func()), $timeout(func()), and $scope.$evalAsync(func()) can all help do that... but they do operate with tiny differences
[20:14:40] *** mennea has quit IRC
[20:14:43] *** elrabin has joined #angularjs
[20:14:46] *** tristanp has quit IRC
[20:14:48] *** bostonaholic has quit IRC
[20:14:48] *** mlpug has joined #angularjs
[20:15:02] <Trindaz> One assumption I have is that $scope.apply would fail if you're currently in a digest cycle, so that would be a case when you would want to use $timeout. I haven't see $evalAsync before.
[20:15:04] *** stormbytes has quit IRC
[20:15:10] *** moogey has joined #angularjs
[20:15:11] *** soee has joined #angularjs
[20:15:16] *** mennea has joined #angularjs
[20:15:20] *** phaggood has quit IRC
[20:15:21] *** shiftyRZA has quit IRC
[20:15:40] *** Aliks has quit IRC
[20:15:52] *** deanclkclk_ has quit IRC
[20:16:07] <jaawerth> Trindaz: well, $timeout is essentially a $scope.$apply wrapped in a promise wrapped in a setTimeout
[20:16:25] *** Snugug has quit IRC
[20:16:25] *** jolts has quit IRC
[20:16:26] <jdummy> Trindaz: that's correct... $scope.$apply() will fail within a digest cycle., so $timeout is often used.
[20:16:39] <jaawerth> Trindaz: part of the reason people might use it is to "defer" an action until the callstack clears
[20:16:59] *** TheAceOfHearts has joined #angularjs
[20:17:00] *** Una has joined #angularjs
[20:17:07] <jaawerth> scope.$apply will never fail within a setTimeout, because setTimeouts happen in a spot in the browser event loop that is outside of a digest
[20:17:28] <Trindaz> How does setTimeout even work? How can you predict exactly when the target function will be run if the delay is 0?
[20:17:43] *** richardlitt has joined #angularjs
[20:18:03] <nickeddy> you can't, that's async
[20:18:09] <jaawerth> you can't predict EXACTLY when, because you don't know how long whatever's currently processing will take, but you DO know where it will happen in the browser's event cycle
[20:18:34] <jaawerth> so even setTimeout(someFunc, 100) will most likely NOT run 100ms later - probably a bit longer
[20:18:54] *** ianpirro has joined #angularjs
[20:19:24] *** bkuberek has joined #angularjs
[20:19:36] <jaawerth> basically the browser has a queue for functions to execute upon "timeout" events after x seconds. If you don't give it a time, it will interpret that as 0 and execute it as soon as it can, which will be the next time it gets to the timer process in the event loop.
[20:19:42] *** ceephax has joined #angularjs
[20:20:00] *** bkuberek_ has joined #angularjs
[20:20:13] *** phaggood has joined #angularjs
[20:20:24] <jaawerth> if you DO give it a time argument, it will execute the next time the timer process in the event loop runs and currentTime >= timeWhenYouInvokedSetTimeout
[20:20:26] *** Aliks has joined #angularjs
[20:20:37] <jaawerth> er
[20:20:58] <jaawerth> that is, currentTime - timeWhenYouInvokedSetTimeout >= yourTimeArgument
[20:21:00] *** SargoDarya has quit IRC
[20:21:51] *** sonicparke|bradm has joined #angularjs
[20:22:03] <jaawerth> single-threaded processes (like javascript in the browser, except for I/O and webworkers) fake async by using an event loop like that
[20:22:11] *** Txandy has quit IRC
[20:22:19] <jaawerth> incidentally, it's also how windows worked back before the days of multithreading and multi-core processors
[20:22:36] *** deanclkclk_ has joined #angularjs
[20:22:42] * jaawerth dusts chalk off hands
[20:23:04] <sonicparke|bradm> I hate TFS
[20:23:05] <lebster> inside my service i load 3 things with http get into an object then i return that object. when i use the object how do i wait until its fully loaded
[20:23:22] <nickeddy> lebster: promises
[20:23:25] <sonicparke|bradm> I'm beign forced to start using it rather than a local SVN server.
[20:23:35] <sonicparke|bradm> grrrr
[20:23:36] *** Superhard_ has quit IRC
[20:23:37] *** elrabin has quit IRC
[20:23:38] *** bkuberek has quit IRC
[20:23:52] <lebster> nickeddy: how would it look like if i wanted to implement it in that
[20:23:54] *** nemothekid has quit IRC
[20:23:57] *** fedenunez1 has quit IRC
[20:24:05] <sonicparke|bradm> I have to "checkout" my build folder before I can run my grunt tasks to build
[20:24:15] *** __danimal__ has joined #angularjs
[20:24:17] *** dacuca has quit IRC
[20:24:28] <nickeddy> lebster: i'm not writing code for you if that's what you're asking
[20:25:12] <lebster> i mean, would i have to return the http get from each method
[20:25:15] <lebster> and do .then
[20:25:17] <lebster> and chain them?
[20:25:19] *** Txandy has joined #angularjs
[20:25:26] <lebster> then return project only after the last . then?
[20:25:31] <nickeddy> lebster: could use $q.all
[20:25:39] *** nemothekid has joined #angularjs
[20:26:36] *** deanclkclk has quit IRC
[20:27:04] *** bradmaxs has joined #angularjs
[20:27:23] <djvirgen> oniijin: thanks, sticky states fixed the issue!
[20:27:25] <lebster> hmm i will look into that thanx
[20:27:55] *** tristanp has joined #angularjs
[20:28:54] *** josh-k has joined #angularjs
[20:28:55] *** sigurding has joined #angularjs
[20:29:25] *** Efrem is now known as Efrem-Away
[20:29:54] <lebster> awesome thanks jaawerth
[20:30:23] *** prosper_ has quit IRC
[20:30:52] *** jlevstein has joined #angularjs
[20:30:52] <jaawerth> lebster: one note: that guide uses the pre-1.3 syntax for using $q to create custom promises. This has nothing to do with what you'er doing right now (since $http creates if for you and you're just consuming it), and 1.3 is backwards compatible with the old way. Just something to keep in mind.
[20:31:01] <jaawerth> lebster: once you understand this, learning the new way is very, very easy
[20:31:28] <jaawerth> (and even some experienced angular devs don't know about it yet)
[20:31:29] <Trindaz> Does that mean all digest cycles are guaranteed to complete synchronously? Without that guarantee then your timeout'd target functions may change the start of the scope and cause infinite loops and whatnot in the digest cycle
[20:31:55] *** nuizzy has joined #angularjs
[20:31:59] *** jMyles has joined #angularjs
[20:32:29] *** gkap has joined #angularjs
[20:32:46] <jaawerth> Trindaz: nope - if you call $scope.$apply() from within a timeout, it will run a digest right then and there and then finish. a digest will only run again later if something happened to trigger one, like an ng-click being clicked.
[20:32:51] <jaawerth> digests DO run a lot, but that's what they're for
[20:33:01] <nickeddy> Trindaz: why would they cause infinite loops if they're not synchronous?
[20:33:08] <jaawerth> think of a digest as extending the browser event loop with an *angular* event loop
[20:33:37] *** sirkitree is now known as sirkitree|afk
[20:34:25] *** rhp has joined #angularjs
[20:34:32] *** richardlitt has quit IRC
[20:35:12] <Trindaz> jaawerth I was kind of talking the other way around - you're inside an $apply() and then you delay something with a timeout. Will the current $apply be guaranteed to complete before the target is executed? I suppose it will because neither of them take callbacks as arguments
[20:35:17] *** boxmein is now known as [boxmein]
[20:35:32] <Trindaz> ("neither of them" = "neither of $apply or $digest")
[20:35:56] *** pikos has joined #angularjs
[20:36:27] <nickeddy> Trindaz: have you read up on the api docs for $apply?
[20:36:36] <Trindaz> nickeddy yes
[20:36:39] <nickeddy> Trindaz: $apply() is used to execute an expression in angular from outside of the angular framework.
[20:37:00] *** cotko has joined #angularjs
[20:37:12] <Trindaz> nickedyy it's pretty common to use $apply from within functions defined on a scope
[20:37:17] <Trindaz> *nickeddy
[20:37:28] <nickeddy> why?
[20:37:46] <jaawerth> Trindaz: Yes, if you do a timeout within an apply, the browser will wait until that apply is over before executing the callback. If you used $timeout, it will wait until the current digest is over and then execute another one
[20:37:47] <nickeddy> that means you're inside an angular context
[20:37:52] <nickeddy> hence don't need a $apply
[20:37:52] *** Foxandxss has joined #angularjs
[20:37:54] *** eristic_ is now known as eristic
[20:38:08] *** erikruthven has joined #angularjs
[20:38:40] <jaawerth> yeah, you usually don't need to use $apply unless you're in a directive listening to a native DOM event ('click' as opposed to ng-click) or something else that doesn't automatically trigger it
[20:39:07] *** scythe__ has quit IRC
[20:39:10] <jaawerth> sometimes you might want to use setTimeout instead of $timeout - I often do this if I'm evaluating something and only updating the digest if it's true
[20:39:26] *** patrickarlt has quit IRC
[20:39:53] *** patrickarlt has joined #angularjs
[20:39:55] <jaawerth> another cool thing about $timeout is it returns a timeout object with a promise, so you can not only tell when it's done (and do other stuff) but also cancel it if you want. Very handy for debouncing
[20:40:06] <jdummy> nickeddy: I use $apply all throughout my controllers, but only because it's where I do ALL my dom manipulation ;)
[20:40:15] <jaawerth> that is terrible on so many levels
[20:40:18] <nickeddy> ^
[20:40:34] <nickeddy> seriously, $apply is pretty much never needed
[20:40:49] <jaawerth> controllers should be the shortest part of your code, honestly. SOMETIMES directives for really simple ones, I guess
[20:40:50] <nickeddy> and you sohuldn't be doing DOM manipulation in a controller
[20:40:59] <jaawerth> and ^
[20:41:04] <nickeddy> fuck this is giving me an anneurism
[20:41:17] <nickeddy> sp
[20:41:24] <jaawerth> ever. You can call a function in something else that LEADS to DOM manipulation, but that something else is either a directive or a service that talks to a directive
[20:41:47] <jdummy> anneurisms don't belong in the controller either, as far as I'm concerned
[20:41:56] <nickeddy> jdummy: well you're giving me one
[20:42:02] <jdummy> :)
[20:42:39] <Trindaz> where can I find a guide on the '=?', '=' scope expression values? I keep losing the link. It's not in the guide for directives or scopes
[20:42:41] *** PeterMetz has joined #angularjs
[20:42:54] *** Superhard_ has joined #angularjs
[20:43:10] <jdummy> isolate scope
[20:43:38] <Fuzzy> such isolate
[20:43:44] <jaawerth> Trindaz: it's under $compile
[20:43:48] <Trindaz> thanks
[20:43:49] <jaawerth> and yes, I think that's weird too
[20:44:18] <jaawerth> as for '=', that's to pass in a full object (with 2-way binding). the ? just makes it optional
[20:44:19] *** patrickarlt has quit IRC
[20:44:25] *** ccohn_ has quit IRC
[20:44:29] <Fuzzy> this llink is good
[20:44:42] *** mennea has quit IRC
[20:44:53] *** bostonaholic has joined #angularjs
[20:44:56] <Aswebb_> Good evening, is someone here using the new Google Calendar API (V3) with Angular full calendar?
[20:44:58] *** ccohn has joined #angularjs
[20:45:20] *** mennea has joined #angularjs
[20:45:22] *** cbennett has joined #angularjs
[20:45:39] <Fuzzy> lol
[20:45:59] <Fuzzy> I haven't read that one
[20:46:17] *** azizur has quit IRC
[20:46:57] *** Superhard_ has quit IRC
[20:47:46] *** jstroem has quit IRC
[20:47:49] *** ron1 has joined #angularjs
[20:48:20] *** jstroem has joined #angularjs
[20:48:34] *** cuebix-wk has quit IRC
[20:48:47] *** cuebix-wk has joined #angularjs
[20:48:51] *** gkap has quit IRC
[20:49:25] *** gkap has joined #angularjs
[20:49:28] *** cbennett has quit IRC
[20:49:42] *** ccohn has quit IRC
[20:49:49] *** gkap has quit IRC
[20:50:20] *** baweaver has joined #angularjs
[20:51:11] <Trindaz> So =? is just like = except that you won't get an error if there is no corresponding member of the parent scope available to use for the assignment?
[20:51:51] *** ccohn has joined #angularjs
[20:52:34] *** lugzer has joined #angularjs
[20:52:53] *** richiebkr has quit IRC
[20:53:05] *** jstroem has quit IRC
[20:53:11] *** patrickarlt has joined #angularjs
[20:53:21] *** richiebkr has joined #angularjs
[20:53:27] *** Stichoza has quit IRC
[20:53:28] *** nerdgrass has joined #angularjs
[20:53:38] *** nerdgrass has quit IRC
[20:53:52] *** nerdgrass has joined #angularjs
[20:54:31] *** pikos has quit IRC
[20:54:38] <jaawerth> Trindaz: yep.
[20:55:06] <jaawerth> Trindaz: you just gotta check for it when you use the value so you don't get undefined errors
[20:55:07] *** Snugug has joined #angularjs
[20:55:07] *** lsiv568_ has joined #angularjs
[20:55:11] *** lsiv568 has quit IRC
[20:56:30] *** DLSteve has joined #angularjs
[20:56:37] *** josh-k has quit IRC
[20:57:06] *** adben has joined #angularjs
[20:57:35] *** linojon has quit IRC
[20:57:50] *** saucey has joined #angularjs
[20:58:09] *** richiebkr has quit IRC
[20:58:37] *** lexek__ has quit IRC
[20:59:53] *** maraneta has quit IRC
[21:00:10] *** lsiv568 has joined #angularjs
[21:00:10] *** lsiv568_ has quit IRC
[21:00:45] *** AngularUI has joined #angularjs
[21:00:45] <AngularUI> ng-grid/2.x fad5dd8 Brian Hann: fix(Aggregation) Remove unnecessary space...
[21:00:45] *** AngularUI has left #angularjs
[21:00:57] *** sheerun has quit IRC
[21:01:04] *** linojon has joined #angularjs
[21:01:10] *** Aliks has quit IRC
[21:01:18] *** Stichoza has joined #angularjs
[21:01:24] *** stormbytes has joined #angularjs
[21:01:29] *** pushpak has quit IRC
[21:01:33] *** pknordic has joined #angularjs
[21:01:34] *** __danima_ has joined #angularjs
[21:02:28] *** tristanp has quit IRC
[21:02:31] *** mzabriskie has quit IRC
[21:03:03] *** elrabin has joined #angularjs
[21:03:08] *** Mugo has joined #angularjs
[21:03:12] *** jstroem has joined #angularjs
[21:03:16] *** tristanp has joined #angularjs
[21:03:50] *** m3l720 has quit IRC
[21:03:52] *** marr has joined #angularjs
[21:04:05] <christo_m> okay so i have a div as a directive, but its contents are ajax loaded at a later time. I'd like to put a link function to listen for touchstart events on buttons that will be ajax loaded into this div. however when i bind to $(element) its only the parent div.
[21:04:27] <christo_m> naturally, when a button is clicked, its handler puts an "activated" class on it.. so i try to look for $(element).siblings('.activated') but that is also empty.
[21:04:32] *** elyssonmr has quit IRC
[21:04:52] *** anapitupulu_ has joined #angularjs
[21:05:08] *** __danimal__ has quit IRC
[21:05:11] <christo_m> ive tried on touchend too, but i cant seem to get it when it has that class set
[21:05:12] *** Mugo has quit IRC
[21:05:37] *** richiebkr has joined #angularjs
[21:05:39] *** RobinBAwesome_ has joined #angularjs
[21:05:41] *** Mugo has joined #angularjs
[21:05:41] *** zB0hs has joined #angularjs
[21:05:46] <christo_m> but when i look in the inspector. i can tap the buttons and see the classes being added properly.
[21:06:14] *** nickdenardis has quit IRC
[21:06:33] <Fuzzy> ?
[21:06:37] <Fuzzy> what's the problem?
[21:06:45] <christo_m> the problem is id like to know what button im pressing. but i cant
[21:06:46] *** Mugo has quit IRC
[21:06:55] <christo_m> because any attempt to select it in the link function yields an empty array
[21:06:56] *** anapitupulu has quit IRC
[21:06:58] *** TheAceOfHearts has quit IRC
[21:06:59] *** Simonator_ has quit IRC
[21:07:28] *** m3l720 has joined #angularjs
[21:07:29] *** RobinBAwesome has quit IRC
[21:07:29] *** RobinBAwesome_ is now known as RobinBAwesome
[21:07:40] *** AngularUI has joined #angularjs
[21:07:40] <AngularUI> ng-grid/2.x 4f14534 Nathan Kerr: Update to use preferred $scope.apply check
[21:07:40] <AngularUI> ng-grid/2.x 465f760 Brian Hann: Merge pull request #1656 from TheBosZ/patch-1...
[21:07:41] *** AngularUI has left #angularjs
[21:08:09] *** AngularUI has joined #angularjs
[21:08:10] <AngularUI> ng-grid/2.x 13422ac Dan Royo: fixed multi-select to work with groups
[21:08:10] <AngularUI> ng-grid/2.x 2ddbc02 Brian Hann: Merge pull request #1757 from danroyo/1673_multi_select_with_shift_key...
[21:08:10] *** AngularUI has left #angularjs
[21:08:13] *** joshontheweb has joined #angularjs
[21:08:50] *** IJNX has joined #angularjs
[21:09:11] *** laurensclaessen has joined #angularjs
[21:10:18] *** richiebkr has quit IRC
[21:10:20] *** AngularUI has joined #angularjs
[21:10:20]
<AngularUI> [ng-grid] c0bra closed pull request #1858: ng-input hold $viewValue instead of $modelValue (2.x...2.x) http://git.io/DNMyqQ
[21:10:21] *** AngularUI has left #angularjs
[21:10:54] *** AngularUI has joined #angularjs
[21:10:54] <AngularUI> ng-grid/2.x 91b8f7a Eliran Kononowicz: Allow user to specify column default sort direction...
[21:10:55] <AngularUI> ng-grid/2.x 9c93ad2 Eliran Kononowicz: Update column.js
[21:10:55] <AngularUI> ng-grid/2.x bd2007f Eliran Kononowicz: Allow user to specify column default sort direction
[21:10:55] *** AngularUI has left #angularjs
[21:11:39] *** \du has joined #angularjs
[21:11:39] *** \du has joined #angularjs
[21:12:25] *** Oddman has quit IRC
[21:12:48] <christo_m> Fuzzy: specifically if i console.log the element on touchstart and touchend, looking at the structure, i dont see the buttons having an "activated" class on them, (otherwise they'd be selected by jquery obviously)
[21:12:56] *** sonofdirt has quit IRC
[21:13:01] <christo_m> makes me wonder if theres some delay or something
[21:13:42] <lebster> can $q.all return something other then a list of the promises?
[21:14:29] <jaawerth> it should return a list of the resolved values FOR the promises
[21:14:37] <jaawerth> in its .then function, I mean
[21:14:42] <jaawerth> it actually returns a single promise
[21:14:45] *** mennea has quit IRC
[21:14:46] <christo_m> is it possible to somehow get the exact element thats pressed by x,y coordinate or something
[21:15:25] *** mennea has joined #angularjs
[21:15:41] <jaawerth> well, you can look at the event target and then grab coordinates from that
[21:15:53] *** Aswebb_ has quit IRC
[21:16:10] *** stichoza_ has joined #angularjs
[21:16:23] <lebster> i have an object with functions that populate itself, i have something that creates this objects then calls the populate functions. i want to to know everythig is populated but still return the populated object
[21:16:57] *** Guest22 has quit IRC
[21:17:32] *** leolrrj has quit IRC
[21:17:55]
<jaawerth> actually, christo_m: http://devdocs.io/dom_events/click - you can also just look at clientX, clientY or screenX, screenY depending on the context you want
[21:17:58] *** SargoDarya has joined #angularjs
[21:18:28] *** DigitallyBorn has joined #angularjs
[21:18:40] <jaawerth> lebster: you should only need a single promise for that unless each of the separate functions are running asynchronously, separately to one another
[21:18:50] *** cthrax has joined #angularjs
[21:18:53] *** RobinBAwesome has quit IRC
[21:18:57] *** doug64k has joined #angularjs
[21:19:05] *** AngularUI has joined #angularjs
[21:19:05]
<AngularUI> [ng-grid] c0bra closed pull request #1597: Remove unneeded comma, comment out unused variables (master...syntax-fixes) http://git.io/EYLAOA
[21:19:06] *** AngularUI has left #angularjs
[21:19:18] *** felixn has quit IRC
[21:19:29] *** Stichoza has quit IRC
[21:19:30] *** RobinBAwesome has joined #angularjs
[21:19:33] *** richiebkr has joined #angularjs
[21:19:51] *** maraneta has joined #angularjs
[21:19:53] *** baweaver has quit IRC
[21:19:56] <jaawerth> christo_m: but that will give you the pointer position - you can also grab the DOM element from the event target. But it's a lot easier with ng-click if you just pass in an ID for the element or something, and refer to that
[21:20:10] <lebster> like i want the object but i also want to know when its done loading the sepereate functions
[21:20:40] <jaawerth> well, are each of those reloads async? and if so, do they need to happen in any order or can they be parallel?
[21:20:59] *** richiebkr has quit IRC
[21:21:06] *** richiebkr has joined #angularjs
[21:21:15] <lebster> they can be called in parallel, its just in my controller once i get that project object i want to be able to work with it. right now im not sure when its loaded
[21:21:18] *** wdna has quit IRC
[21:21:24] <stillbourne> If I have a target REST api that does not have CORS support or JSONP callback support can I just build a local proxy service that forwards requests between my local webserve and the destination webserver?
[21:21:40] *** rtpg has joined #angularjs
[21:22:32] *** SargoDarya has quit IRC
[21:22:35] <lebster> this is an example of one of the reload functions
[21:22:38] *** Aswebb_ has joined #angularjs
[21:23:03] <jaawerth> okay so, couple things
[21:23:14] <jaawerth> first: put "return" before $http so you're returning its promise
[21:23:18] *** atomical has joined #angularjs
[21:23:28] *** atomical has quit IRC
[21:23:29] *** tyson2 has joined #angularjs
[21:23:30] <jaawerth> second, if you want to make use of the promises so you can chain them, you'll need to use .then instead of .success
[21:23:36] *** LossFor has quit IRC
[21:23:42] *** Aswebb_ has quit IRC
[21:23:45] <jaawerth> since .success doesn't return a promise for chaining
[21:23:56] *** atomical has joined #angularjs
[21:24:15] *** stichoza_ has quit IRC
[21:24:16] *** Oddman has joined #angularjs
[21:24:17] *** markalanevans has joined #angularjs
[21:24:18] <christo_m> jaawerth: these buttons are loaded from somehere else
[21:24:26] <christo_m> and theres tons of them, i guess i could regex insert something like that..
[21:24:29] *** LossFor has joined #angularjs
[21:24:37] *** plato has quit IRC
[21:24:39] <christo_m> but see the issue is it actually does work. but i have to hold the button for like a second
[21:24:45] <jaawerth> the only difference in using .then is that all the arguments in .success are passed to a .then inside of a single response object (response.data, response.status, response.config, response.headers)
[21:24:51] <christo_m> it works on 'touchend'
[21:24:55] *** stichoza_ has joined #angularjs
[21:25:09] *** dacuca has joined #angularjs
[21:25:13] *** fdv has left #angularjs
[21:25:16] *** stichoza_ has quit IRC
[21:25:50] *** mkulke has joined #angularjs
[21:25:58] *** baweaver has joined #angularjs
[21:26:09] <lebster> ohh ok so like
[21:26:14] *** stichoza_ has joined #angularjs
[21:26:18] *** rtpg has quit IRC
[21:26:21] *** mikehaas763 has joined #angularjs
[21:26:44] *** mikehaas763 is now known as Guest95129
[21:27:13] *** adben has quit IRC
[21:27:26] <mkulke> hello there, is there a reason why you should not use IIFE (in a bigger project w/ distributed dev teams working on it) for your modules?
[21:28:29] <jaawerth> lebster: yep. and what I'd do is make sure that when you call them, you're pushing the promises to an array. Then you can pass the array into $q.all, and when they're done you don't even have to worry about the resolved properties - you can just grab the object iself, which you know will have been totally populated by then
[21:28:58] <Fuzzy> mkulke, not that I know of
[21:29:00] *** DLSteve has quit IRC
[21:29:17] *** dnewkerk has joined #angularjs
[21:29:28] *** sl33k_ has quit IRC
[21:29:43] <Fuzzy> I mean, i'd think that NOT using IIFEs is a lot more dangerous even if there was
[21:29:57] *** stichoza_ has quit IRC
[21:29:58] *** plato has joined #angularjs
[21:30:20] *** stichoza_ has joined #angularjs
[21:30:35] <mkulke> hmm, i agree. i have some devs, who cry out that IIFEs are limiting them
[21:30:44] *** samuel02 has joined #angularjs
[21:30:51] <lebster> but how will i return q.all and project
[21:31:23] <Fuzzy> what are they trying to do?
[21:31:37] *** pootpoot has joined #angularjs
[21:31:37] <mkulke> one argument i heard: you cannot spread modules over several files
[21:31:57] <Fuzzy> what?
[21:32:00] <jaawerth> lebster: well, I'd put the code as a member function of Project so you can load data into it and then refer to the object itself
[21:32:14] <Fuzzy> you can still do that IIFEs..
[21:32:14] <jaawerth> it makes sense to do that anyway, since you're initializing a single config object
[21:32:28] *** one0one has joined #angularjs
[21:32:34] *** IvailoStoianov has quit IRC
[21:32:46] <Fuzzy> like
[21:32:47] <jaawerth> mkulke: ONly if you make it one big IIFE (and even then you can do it if you just make sure concat is part of your build tools for everything)
[21:33:15] <Fuzzy> I don't really get what they mean by that argument
[21:33:30] <mkulke> me neither
[21:33:35] *** stichoza_ has quit IRC
[21:33:37] <jaawerth> but you can also just split up into smaller IIFEs
[21:33:38] <Fuzzy> because in my projects I often spread out a module into several files
[21:33:38] <gladely> When loading a ui-state inside ui-router, should the $stateParams match the $state.params exactly?
[21:33:41] <Fuzzy> all using IIFEs
[21:33:51] *** sigurding has quit IRC
[21:34:04] *** Wizek has quit IRC
[21:34:05] *** stichoza_ has joined #angularjs
[21:34:08] <jaawerth> yeah, the only downside to that is more function invocations, but it should be pretty minor in the grand scheme of things as far as slowing down the bootstrap process is concerned
[21:34:11] <ctanga> gladely: nope. $stateParams is filtered to the params declared for that state
[21:34:23] <jaawerth> plus you wouldn't want all of your functions to be global to each other in a single module anyway
[21:34:40] <lebster> jaawerth: so put ProjectById where the reload functions are and have my factor just return an empty project and call ProjectById function on the project?
[21:34:41] *** yts has joined #angularjs
[21:35:00] <mkulke> jaawerth: i agree. concat does put everything in a big IIFE?
[21:35:13] <jaawerth> well, concat puts everything in one file
[21:35:15] <jaawerth> that's all
[21:35:25] <merpnderp> when you call .then the function doesn't wait for that to return, does it?
[21:35:41] <Fuzzy> ?
[21:35:49] <jaawerth> lebster: well, think through how you want to use your code. but if you'er creating a project and it's useless until you've loaded it with data, you should make the act of loading it an internal method on the object
[21:36:11] <mkulke> jaawerth: i know, but does it add one implicitely
[21:36:14] *** wallerdev has quit IRC
[21:36:16] <jaawerth> no
[21:36:17] *** ciwolsey has quit IRC
[21:36:19] <jaawerth> it's concat
[21:36:21] <jaawerth> it concats files ;-)
[21:36:31] <Fuzzy> yeah
[21:36:33] *** Siecje has left #angularjs
[21:36:35] <Fuzzy> it puts one file after another
[21:36:35] <gladely> should it include all of the params for the parent states, too?
[21:36:40] <mkulke> because annoyed devs were pointing at ui-router sourcecode, saying "they don't do that"
[21:36:43] <Fuzzy> iifes actually can make it easier
[21:36:45] <jaawerth> there might be a gulp/grunt module that WILL do that, but I don't know of it
[21:36:47] <themime> i just came into this convo but i have no issues concatting with separate IIFE's - i even have each controller broken into like 4 files, controller itself, module, route, config
[21:37:09] <jaawerth> well, the main argument against wrapping everything in anonymous functions is that it makes it harder to trace error callstacks
[21:37:11] <mkulke> and i figured, there is some built step doing that
[21:37:29] <themime> honestly i havent found any actual /advantage/ yet
[21:37:41] <jaawerth> but you can always just do angular.module('myMod').factory(function DoStuff() { and now it isn't anonymous
[21:37:43] <gladely> The paramter i'm missing is actually assigned to the current state, so $stateParams is missing the one I expect, but includes a parent state param.
[21:37:44] *** RobinBAwesome has quit IRC
[21:37:52] <themime> but i haven't had any issues beyond the initial learning curve (which was small. wasn't using correct syntax)
[21:38:07] <themime> forgot to () at the end, nothing ever got called haha
[21:38:18] <jaawerth> the only major advantage if you do that is that you can then add things to the functions like $inject anotation for explicit injection
[21:38:20] <jaawerth> but that's minor
[21:38:30] <lebster> jaawerth: so theres no way to pass the ojbect around and know when its completely filled out
[21:38:32] <Fuzzy> well
[21:38:35] <Fuzzy> if u name the functions
[21:38:38] <Fuzzy> its actually not that bad
[21:38:44] <jaawerth> lebster: well sure, you could
[21:38:54] <jaawerth> lebster: it just seems like an unwieldy way to do it
[21:39:08] *** blackkbot has joined #angularjs
[21:39:32] <Fuzzy> I name all my functions so that when an error is thrown I know what it is
[21:39:35] *** night-owl is now known as zz_night-owl
[21:39:39] <lebster> i c, i guess im using factory in a unwieldy way
[21:39:41] <lebster> lol
[21:40:31] *** Embassy has quit IRC
[21:41:17] <mkulke> Fuzzy: yes, and dev's don't like that either
[21:41:36] *** tbo_ has joined #angularjs
[21:41:53] <mkulke> so the whole problem popped up, when i asked not to use exclusively anonymous functions
[21:42:03] <mkulke> then they added everything to window
[21:42:18] *** MaxV has joined #angularjs
[21:42:20] <cthrax> Does anyone know if there's a way to clear the instance cache of the injector between tests?
[21:42:26] <christo_m> is it possible to use angular services outside of angular somehow?
[21:42:39] *** Fishy has quit IRC
[21:42:42] *** simplyshipley has quit IRC
[21:42:54] *** cuebix-wk has quit IRC
[21:43:15] *** cbennett has joined #angularjs
[21:43:22] *** borvoh has quit IRC
[21:43:41] *** Superhard_ has joined #angularjs
[21:43:50] <cthrax> christo_m, what do you mean outside of angular? The service should just be a POJO, so passing it to some non-angular function from angular should work just fine
[21:44:08] *** Snugug has quit IRC
[21:44:20] <Fuzzy> lol.
[21:44:41] <Fuzzy> get new devs? :D
[21:44:47] *** SomeKittens has quit IRC
[21:44:52] *** mennea has quit IRC
[21:45:26] *** mennea has joined #angularjs
[21:46:02] *** AngularUI has joined #angularjs
[21:46:03] <AngularUI> ng-grid/master 2a57a89 Josh Kropf: use horz scroll bar option to calculate initial grid height
[21:46:03] <AngularUI> ng-grid/master 0caedfd Brian Hann: Merge pull request #2169 from Envisage/calc-init-height...
[21:46:03] *** AngularUI has left #angularjs
[21:46:03] *** zz_night-owl is now known as night-owl
[21:46:31] <christo_m> cthrax: no i want to call an angular service from non angular code.
[21:46:33] <christo_m> thats the issue.
[21:47:10] <christo_m> im looking at the way the old stuff was done that im refactoring. and when the buttons are ajax loaded they come with their own script tag which tries to call a global sendMessage function.. that function no longer exists, its been abstracted to its own service
[21:47:16] <christo_m> a SocketService where i send tcp messages from there.
[21:47:18] *** fedenunez has joined #angularjs
[21:47:21] *** Aswebb_ has joined #angularjs
[21:47:33] *** D9 has quit IRC
[21:47:36] *** pikos has joined #angularjs
[21:47:53] <christo_m> luckily this stuff is ajax loaded into an angular controller, so i suspect i should be able to make calls to SocketService from within it
[21:48:13] *** juanlas has joined #angularjs
[21:48:24] *** Superhard_ has quit IRC
[21:48:49] *** opiates has quit IRC
[21:49:04] <cthrax> christo_m, it's a little clunky, but you could define the global sendMessage function in your app entry point and include the service there
[21:49:04] *** Xaleph has quit IRC
[21:49:10] *** KushS has joined #angularjs
[21:49:16] *** danecando has quit IRC
[21:49:27] <cthrax> christo_m, or, possibly in the controller that you're referring to
[21:50:00] *** dylancole has quit IRC
[21:50:08] *** night-owl is now known as zz_night-owl
[21:50:22] <christo_m> cthrax: can we go a step further and do it at the directive level or?
[21:50:33] <christo_m> cthrax: the directive is the parent that gets ajax loaded into.
[21:50:52] <christo_m> if i can make sendMessage be an alias for SocketService.send, it should be good
[21:50:56] <cthrax> well, you can define a global function anytime you want
[21:51:01] <christo_m> tru
[21:51:09] *** bayousoft has quit IRC
[21:51:14] <christo_m> ook, whats the cleanest method you suggest
[21:51:17] <cthrax> so wherever it makes the most sense
[21:51:30] *** ivor has quit IRC
[21:51:46] *** bayousoft has joined #angularjs
[21:51:47] *** subone has joined #angularjs
[21:52:03] <lebster> wouldnt the location of ProjectById sorta be considered the constructor?
[21:52:06] <christo_m> cthrax: what is the syntax if i define it globally, do i have to put it into $rootScope, then pass the service as a parameter to the function argument list?
[21:52:10] <cthrax> christo_m, the cleanest would be not to call global methods, but if you have to put a shim in, do it as close to the code as possible
[21:52:21] <subone> Is there a message or callback I can setup in my controller to run after all directives have been linked?
[21:52:44] <cthrax> christo_m, globally in this case would mean on the window object, so window.sendMessage = function() ...
[21:53:05] *** zz_night-owl is now known as night-owl
[21:54:20] <christo_m> cthrax: okay ill put that in app.run() i guess
[21:54:21] <lebster> jaawerth: thanks for the paste, that explains excatly what i wanted.
[21:54:28] <christo_m> cthrax: ?
[21:54:54] <cthrax> subone, I don't know if it will work in your case, but there's an viewContentLoaded on ng-view
[21:54:58] <jaawerth> lebster: sure thing. as for the constructor, it depends
[21:54:59] *** lele has joined #angularjs
[21:55:07] <cthrax> christo_m, I like to put my non-angular code in the run, sounds good to me.
[21:55:35] *** Guest22 has joined #angularjs
[21:55:37] *** Solid1 is now known as Solid1_afk
[21:55:51] *** ianpirro has quit IRC
[21:55:58] *** prbc has joined #angularjs
[21:56:54] *** gurke_ has quit IRC
[21:57:46] *** MaxV has quit IRC
[21:58:09] *** 77CAAWSUB has joined #angularjs
[21:58:14] <christo_m> cthrax: ya that worked, excellent thank you
[21:58:18] *** Guest22 has quit IRC
[21:58:24] <cthrax> np
[21:58:25] *** rafagomes has quit IRC
[21:58:28] <christo_m> i hate maintaining all this legacy shit, i mean im rewriting the mobile app for a reason,
[21:58:43] <christo_m> but i have to end up supporting all this crap and the way it was done before because a rewrite of 100+ remotes isn't feasible
[21:58:47] *** stichoza_ has quit IRC
[21:58:48] *** Guest22 has joined #angularjs
[21:59:02] <christo_m> it might defeat the entire purpose of using angular when i have the most polluted global scope ever
[21:59:09] *** elrabin_ has joined #angularjs
[21:59:25] *** stichoza_ has joined #angularjs
[21:59:27] *** joshontheweb has quit IRC
[21:59:33] *** mlpug has quit IRC
[22:00:04] *** frem has joined #angularjs
[22:00:24] <subone> cthrax: That is firing before
[22:00:44] <cthrax> subone, well that's mislabeled then :P
[22:00:56] <cthrax> sorry, I've not heard of anything else
[22:01:06] <subone> Thanks though
[22:01:13] *** MaxV has joined #angularjs
[22:01:25] *** frem_ has joined #angularjs
[22:02:04] <lebster> jaawerth: so does the factory itself look unwieldy ? lol
[22:02:25] *** taylorrf has joined #angularjs
[22:02:29] *** elrabin has quit IRC
[22:02:36] *** KushS has quit IRC
[22:02:50] <lebster> calling the init stuff in the controller that uses the factory felt kinda weird
[22:03:14] *** Trindaz has quit IRC
[22:03:17] *** sahbeewah has quit IRC
[22:03:26] <subone> The problem I'm having is that I have setup a directive which allows you to create scope variables on the fly from the view (e.g. <variable name="test" value="400">), but I need this value before a call is made. I know I could just watch the variable until it gets a value, but I was hoping for a more generalized way to tell if all the view's directives were linked
[22:03:49] <lebster> i think i had it that way to begin with but changed it to this lol
[22:03:56] *** devhoag has joined #angularjs
[22:04:07] *** DaveDH2 has joined #angularjs
[22:04:17] *** marcjs has joined #angularjs
[22:04:24] *** stichoza_ has quit IRC
[22:04:28] *** Rockroxx has joined #angularjs
[22:04:35] *** mdedetrich has joined #angularjs
[22:05:13] <Rockroxx> Hey guys, i am having an issue with cookies dissapearing on page reload. Do i need to do anything other then injecting $cookies?
[22:05:15] *** stichoza_ has joined #angularjs
[22:05:21] *** lele has quit IRC
[22:05:34] *** sahbeewah has joined #angularjs
[22:06:09] <subone> disappearing?
[22:06:44] <Rockroxx> yeah when i reload the page the cookie i set before is gone
[22:06:51] <subone> Check if you are overwriting the cookies?
[22:07:15] <GreenJello> "Cookies have, by default, a lifespan of the current browser session. [explanation of how to change that]"
[22:07:26] <Rockroxx> I am nwell fuck
[22:07:28] *** danecando has joined #angularjs
[22:07:35] *** pikos has quit IRC
[22:07:45] <subone> "As soon as your visitor closes his browser, your cookie disappears" he didn't say he closed his browser
[22:08:07] *** glassir has quit IRC
[22:09:00] *** IJNX has quit IRC
[22:09:27] *** coffey has joined #angularjs
[22:09:33] *** TheAceOfHearts has joined #angularjs
[22:09:47] *** baweaver has quit IRC
[22:10:12] <Rockroxx> doesnt the browser session get regenerated on page reload
[22:10:18] *** sonofdirt has joined #angularjs
[22:10:38] *** jonathanpglick has quit IRC
[22:10:53] *** __danima_ has quit IRC
[22:11:02] <subone> $cookies is not very robust though. I don't think setting max-age or domain are supported.
[22:11:02] <GreenJello> depends on the browser, but subone is right, it generally doesn't
[22:11:17] *** AngularUI has joined #angularjs
[22:11:18]
<AngularUI> [bootstrap] joshfriend opened pull request #3068: feat(timepicker): have up/down arrow keys control time selection (master...arrowkeys) http://git.io/CDXecQ
[22:11:18] *** AngularUI has left #angularjs
[22:11:26] *** prbc has quit IRC
[22:12:15] *** jonathanpglick has joined #angularjs
[22:12:40] *** mary5030_ has joined #angularjs
[22:12:43] *** mary5030 has quit IRC
[22:13:45] *** devhoag has quit IRC
[22:14:27] *** mtsr has quit IRC
[22:14:39] <Rockroxx> Hmm. I set max-age yet still no cookies.
[22:14:49] *** mennea has quit IRC
[22:14:58] *** sahbeewah has quit IRC
[22:15:10] <dmack> subone: you can use a postLink function
[22:15:13] <dmack> I think?
[22:15:27] *** mennea has joined #angularjs
[22:16:05] <subone> Yes, but you see I want a general way to tell in the controller if all directives have been linked, I don't want to have to add functionality to all my directives (and angulars?) to tell when each is done
[22:16:10] *** prbc has joined #angularjs
[22:16:28] <dmack> yeah. I'm not sure what viewContentLoaded listens for.
[22:16:28] *** swist has joined #angularjs
[22:16:28] *** kentcdodds has joined #angularjs
[22:16:35] <dmack> could be when all the directives are compiled
[22:16:40] *** skulzz has joined #angularjs
[22:16:43] *** jdivock_ has quit IRC
[22:16:47] <kentcdodds> Is there an easy way to have angular ignore validation for disabled fields?
[22:16:50] *** Xorlev_ is now known as Xorlev
[22:16:51] <subone> not sure, but they are definitely not linked by that time
[22:16:57] *** Xorlev has quit IRC
[22:16:57] *** Xorlev has joined #angularjs
[22:16:58] *** Xorlev has joined #angularjs
[22:17:09] <skulzz> Hey guys, any thoughts on how to create a proper "attendance sheet" in angular (and how to structure that in mongodb)?
[22:17:20] <subone> kentcdodds: Can you not just hide the errors?
[22:17:29] <kentcdodds> I can
[22:17:36] <kentcdodds> but I'm depending on the form's $invalid property
[22:17:40] <subone> ic
[22:17:58] *** baweaver has joined #angularjs
[22:17:59] <dmack> hmm, may have to write a custom directive for those fields I thinks
[22:18:11] <dmack> watch for disabled, setValidity manually?
[22:18:42] <kentcdodds> perhaps that's what I'll have to do dmack :-(
[22:18:58] <dmack> I imagine you're disabling fields dynamically?
[22:19:06] <subone> I think you could set the value to undefined, and most validators should skip it
[22:19:09] *** bayousoft has quit IRC
[22:19:28] <dmack> subone: yeah, but the form $invalid/$valid stuff, have to do that manually I think
[22:19:42] *** jimmyy has joined #angularjs
[22:19:43] <subone> What do you mean?
[22:19:45] *** Zentdayn has joined #angularjs
[22:19:53] <kentcdodds> I think I may actually use $removeControl instead
[22:19:59] *** bayousoft has joined #angularjs
[22:20:06] <kentcdodds> that way I don't have to care about what validation errors a field has
[22:20:16] <dmack> subone: $setValidity, on the actual model of the form field
[22:20:31] <kentcdodds> dmack: yes, I am disabling fields dynamically
[22:20:48] *** vassagus has joined #angularjs
[22:20:52] *** Zentdayn has quit IRC
[22:20:53] <kentcdodds> Yeah, I think adding and removing controls based on their disabled state is likely a better way to go
[22:21:07] <dmack> that doesn't actual remove it from the DOM, yeah?
[22:21:09] <kentcdodds> I wonder what it would be like to create an attribute directive for 'disabled'
[22:21:10] <subone> What I'm saying is if you add a $parser which returns undefined all other validators should not try to test it for validity. Except required, but you can turn that one off as needed
[22:21:14] <kentcdodds> that's right
[22:21:16] <kentcdodds> just the form
[22:21:19] <tehfedaykin> I’m having issues testing directives with external templates - is there a way to test that they are in the templateCache?
[22:21:21] <dmack> that's handy
[22:21:40] *** loverajoel has quit IRC
[22:21:49] *** _ritchie_ has quit IRC
[22:22:08] *** Zentdayn has joined #angularjs
[22:22:11] *** cbennett has joined #angularjs
[22:22:12] <tehfedaykin> yeah, I’m trying to test to see if that’s even working
[22:22:48] <tehfedaykin> I’m creating a template module
[22:23:10] *** MaxV has quit IRC
[22:23:27] *** lele has joined #angularjs
[22:23:57] *** snapwich has quit IRC
[22:24:23] *** jdivock_ has joined #angularjs
[22:24:50] *** jMyles has quit IRC
[22:24:52] *** richardlitt has joined #angularjs
[22:25:12] *** pknordic has quit IRC
[22:25:24] *** cbennett has quit IRC
[22:25:51] *** TheAceOfHearts has quit IRC
[22:26:02] *** lugzer has quit IRC
[22:26:22] *** RobinBAwesome has joined #angularjs
[22:26:39] *** siddart has quit IRC
[22:26:54] <robert_> is it possible to attach a data binding to an application directlyt?
[22:26:54] *** NormySan has quit IRC
[22:26:56] <robert_> directly **
[22:26:56] *** siddart has joined #angularjs
[22:27:08] <dmack> robert_: say what?
[22:27:12] <blackkbot> you mean like HTML?
[22:27:41] <subone> example?
[22:27:45] *** MaxV has joined #angularjs
[22:27:56] *** Aliks has joined #angularjs
[22:27:57] *** doginal has joined #angularjs
[22:28:03] <tehfedaykin> @kentcdodds: it seems like my templates are compiling to js, but they’re still not rendering in my tests
[22:28:10] *** jacuqesdancona_ has joined #angularjs
[22:28:14] *** cbennett has joined #angularjs
[22:28:25] *** wallerdev has joined #angularjs
[22:28:34] *** Sadin has joined #angularjs
[22:28:35] *** Xethron has joined #angularjs
[22:28:35] *** Xethron has joined #angularjs
[22:28:54] *** taylorrf has quit IRC
[22:28:58] <robert_> like, when I'm looking at my Model scopes in this angularjs debugger I found, it says Scope(1) has no models; can I give Scope(1) models, then? (for say, persisting a state globally across my application)
[22:28:58] *** qdk has quit IRC
[22:29:07] *** TheAceOfHearts has joined #angularjs
[22:29:09] <doginal> hey guys, i am using flow.js and i need to pass auth headers with it, but how do I pass data to the flowFactoryProvider to set the headers: {} ?
[22:29:23] <merpnderp> I'm having an issue where in a ui-router controller I'm immediately going to another state. And I don't get any error, but the controller for the next state is never entered. ANyone know how to debug this?
[22:30:11] *** ngbot has joined #angularjs
[22:30:11] <ngbot> angular.js/master 6ad109e Tobias Davis: docs($interval): correcting example code indentation...
[22:30:12] *** ngbot has left #angularjs
[22:30:15] *** jdivock__ has joined #angularjs
[22:30:16] <merpnderp> $state.go('employee.personaldetails', { EmployeeID: currentUser.EmployeeID }); and then the controller for abstract state employee and nonabstract state personaldetails is never entered.
[22:30:21] *** yelvert has quit IRC
[22:30:26] *** ngbot has joined #angularjs
[22:30:26] <ngbot> angular.js/v1.2.x 169e532 Tobias Davis: docs($interval): correcting example code indentation...
[22:30:26] *** ngbot has left #angularjs
[22:30:46] *** jlevstein has quit IRC
[22:31:24] <dmack> robert_: you can persist data across your application in a Service/Factory
[22:31:24] *** mkulke has quit IRC
[22:31:43] <robert_> hmm
[22:32:09] <Grokling> merpnderp: Do you have a click propagation issue? I had an issue that sounded similar - turned out that my click was propagating to an ancestor element which had a ui-sref set, and ui-router was ending up there rather than where I was expecting.
[22:32:43] *** jacuqesdancona_ has quit IRC
[22:33:04] *** snapwich has joined #angularjs
[22:33:44] *** fedenunez has quit IRC
[22:34:02] *** jdivock_ has quit IRC
[22:34:11] *** Xethron has quit IRC
[22:34:31] *** yelvert has joined #angularjs
[22:34:37] *** elrabin_ has quit IRC
[22:34:43] *** yelvert has quit IRC
[22:34:58] *** yelvert has joined #angularjs
[22:34:59] *** elrabin has joined #angularjs
[22:35:39] *** mven has quit IRC
[22:36:32] *** baweaver has quit IRC
[22:36:58] *** weems|mac has joined #angularjs
[22:37:22] *** weems|mac has joined #angularjs
[22:37:22] *** plato1 has joined #angularjs
[22:37:25] *** Zentdayn has quit IRC
[22:37:39] *** plato1 has quit IRC
[22:38:00] *** rtpg has joined #angularjs
[22:38:04] *** MaxV has quit IRC
[22:38:15] *** weems|mac has quit IRC
[22:38:17] *** plato has quit IRC
[22:38:19] *** mven has joined #angularjs
[22:38:40] *** plato has joined #angularjs
[22:38:47] *** jdivock__ has quit IRC
[22:38:54] *** weems|mac has joined #angularjs
[22:38:57] *** plato has quit IRC
[22:39:03] *** weems|mac has quit IRC
[22:39:03] *** weems|mac has joined #angularjs
[22:39:19] *** mven has joined #angularjs
[22:39:35] *** plato has joined #angularjs
[22:40:20] *** [boxmein] is now known as boxmein
[22:40:35] *** prbc has quit IRC
[22:40:50] *** mven has joined #angularjs
[22:40:53] *** plato1 has joined #angularjs
[22:40:53] *** richardlitt has quit IRC
[22:41:41] *** baweaver has joined #angularjs
[22:41:55] *** jdivock_ has joined #angularjs
[22:41:59] *** _ritchie_ has joined #angularjs
[22:42:02] *** samuel02 has quit IRC
[22:42:22] *** joshontheweb has joined #angularjs
[22:42:27] *** iateadonut has joined #angularjs
[22:42:53] *** rtpg has quit IRC
[22:42:55] *** dannyc has joined #angularjs
[22:43:57] *** davek has quit IRC
[22:44:24] *** pikos has joined #angularjs
[22:44:29] *** Superhard_ has joined #angularjs
[22:44:30] *** plato has quit IRC
[22:44:31] *** warpx has quit IRC
[22:44:54] *** neilff has quit IRC
[22:44:54] *** mennea has quit IRC
[22:45:31] *** mennea has joined #angularjs
[22:45:31] *** prbc has joined #angularjs
[22:46:12] *** bayousoft has quit IRC
[22:46:20] <subone> Is there a message or callback I can setup in my controller to run after all directives have been linked?
[22:46:40] *** bayousoft has joined #angularjs
[22:46:49] *** doginal has quit IRC
[22:47:00] <merpnderp> Grokling: I have a console.log in the controller that redirects, so if it was looping, I think it wuld tell me.
[22:47:06] *** warpx has joined #angularjs
[22:47:07] <merpnderp> I'm not sure why nothing is happening.
[22:47:26] *** dannyc has quit IRC
[22:47:35] <merpnderp> I have a resolve in the abstract state's controller. But it starts with a console.log too and says nothign.
[22:47:42] *** jdivock_ has quit IRC
[22:47:51] *** doginal has joined #angularjs
[22:48:25] *** zmo has quit IRC
[22:48:39] <Grokling> subone: there's a broadcast from ui-router once everything is ready I think (can't remember what it's handle is though..)
[22:48:46] *** Superhard_ has quit IRC
[22:49:16] *** AngularUI has joined #angularjs
[22:49:16] *** AngularUI has left #angularjs
[22:49:32] <merpnderp> One thing that is weird is that the url doesn't get updated.
[22:49:53] <merpnderp> Here's the state
[22:50:13] *** Aliks has quit IRC
[22:50:44] *** jcw has quit IRC
[22:50:46] *** kentcdodds has quit IRC
[22:51:12] *** WhatsInTheBoks has quit IRC
[22:51:26] *** jcw has joined #angularjs
[22:51:46] <merpnderp> Bluh, I suck. I'm always having these weird hard to debug issues in angular.
[22:51:57] *** curfont has joined #angularjs
[22:52:07] *** jdivock_ has joined #angularjs
[22:52:55] <merpnderp> course as soon as I get rid of this resolve it starts working again.....well ui-router works at least.
[22:53:49] *** ceephax has quit IRC
[22:53:55] *** ybl has joined #angularjs
[22:54:04] <ybl> hello!
[22:54:28] *** MaxV has joined #angularjs
[22:54:34] *** anapitupulu_ has quit IRC
[22:54:38] *** adampickeral has left #angularjs
[22:54:39] *** akrikos has quit IRC
[22:54:46] *** spatialbrew has quit IRC
[22:54:47] *** D-Boy has quit IRC
[22:54:50] *** opiates has joined #angularjs
[22:55:02] *** ninjaparade has joined #angularjs
[22:55:17] <ybl> I have a quick question - I want to send a data from one view to another when invoking ngClick on a href.
[22:55:34] *** MistahKurtz has quit IRC
[22:55:38] *** ColKurtz has joined #angularjs
[22:55:38] <ybl> How do I do that?^
[22:56:33] *** tehfedaykin has quit IRC
[22:56:42] *** evanjs has quit IRC
[22:56:51] *** tyson2 has quit IRC
[22:57:14] *** evanjs has joined #angularjs
[22:57:35] <themime> ybl: ui-router stateparams or a factory that shares the data
[22:58:10] <ybl> I just need to paas one wprd. What would be the easiest way to do that?
[22:58:14] <ybl> word*
[22:58:29] *** SexualRickshaw has quit IRC
[22:58:58] *** japhar81 has quit IRC
[22:59:07] <ybl> I'll check on UI-router ..
[22:59:36] *** nemothekid has quit IRC
[22:59:55] *** baweaver has quit IRC
[23:00:25] *** baweaver has joined #angularjs
[23:00:50] *** jaredwilli has quit IRC
[23:00:56] *** prbc has quit IRC
[23:01:12] *** pikos has quit IRC
[23:01:23] *** evanjs has quit IRC
[23:02:30] *** phaggood has quit IRC
[23:02:43] *** prbc has joined #angularjs
[23:04:08] *** _magus has joined #angularjs
[23:04:20] <merpnderp> This is the cause of my resolve failing. The mere inclusion of these dependencies is causing ui-router to silently die: currentEmployee: ['employeeService', '$stateParams', function (employeeService, $stateParams) {
[23:04:37] *** jagga has quit IRC
[23:04:47] <merpnderp> If I do this, it works: currentEmployee: function(){ return {};}
[23:05:01] *** zerd has quit IRC
[23:05:12] *** rboyd has joined #angularjs
[23:05:21] *** uglyandstupid has quit IRC
[23:06:08] *** kkthxbye has joined #angularjs
[23:06:09] *** rileylark has quit IRC
[23:06:11] *** linojon has quit IRC
[23:06:25] *** JERE has joined #angularjs
[23:06:41] *** jstroem has quit IRC
[23:06:50] *** SargoDarya has joined #angularjs
[23:07:50] *** Anonymous_ has joined #angularjs
[23:08:18] *** jimmyy has quit IRC
[23:08:20] *** Anonymous_ has joined #angularjs
[23:08:37] *** Rebirth has quit IRC
[23:08:38] *** FIFOd[a] has quit IRC
[23:08:44] *** laurensclaessen has quit IRC
[23:08:45] *** Anonymous_ has joined #angularjs
[23:09:10] *** Anonymous_ has joined #angularjs
[23:09:17] *** linojon has joined #angularjs
[23:09:18] *** Anonymous_ has quit IRC
[23:09:45] *** Anonymous_ has joined #angularjs
[23:10:10] *** Anonymous_ has joined #angularjs
[23:10:14] *** Anonymous_ has quit IRC
[23:10:15] *** D-Boy has joined #angularjs
[23:10:17] *** lsiv568 has quit IRC
[23:10:27] *** richardlitt has joined #angularjs
[23:10:38] *** Anonymous_ has joined #angularjs
[23:11:03] *** Anonymous__ has quit IRC
[23:11:11] *** Una has quit IRC
[23:11:18] *** SargoDarya has quit IRC
[23:12:01] *** dmack has quit IRC
[23:12:47] *** BillCriswell has quit IRC
[23:12:58] *** cboden has quit IRC
[23:13:11] *** qdk has joined #angularjs
[23:13:27] *** juanlas has quit IRC
[23:14:05] *** Anonymous_ has quit IRC
[23:14:06] *** Guest95129 has quit IRC
[23:14:37] *** deanclkclk has joined #angularjs
[23:14:53] *** deanclkclk_ has quit IRC
[23:14:53] *** mennea has quit IRC
[23:15:16] *** SonikBoom has joined #angularjs
[23:15:30] *** mennea has joined #angularjs
[23:16:01] *** a3gis has joined #angularjs
[23:16:06] *** Rockroxx has quit IRC
[23:16:15] *** KushS has joined #angularjs
[23:16:16] *** OddDuck has joined #angularjs
[23:17:19] *** Oxynum has joined #angularjs
[23:18:00] *** cbennett has quit IRC
[23:18:02] *** walden is now known as walden|brb
[23:18:20] *** dylan9o4 has quit IRC
[23:18:38] *** cbennett has joined #angularjs
[23:18:43] *** mven has quit IRC
[23:20:15] *** mven has joined #angularjs
[23:20:29] *** cads has quit IRC
[23:20:31] <sacho> make a plunker
[23:20:40] *** MaxV has quit IRC
[23:20:41] *** elrabin has quit IRC
[23:20:45] *** DaveDH2 has quit IRC
[23:20:55] *** mzabriskie has joined #angularjs
[23:21:17] *** elrabin has joined #angularjs
[23:21:28] *** mzabriskie has quit IRC
[23:21:42] *** baweaver has quit IRC
[23:21:50] *** yoshokatana has quit IRC
[23:22:03] *** mennea has quit IRC
[23:22:05] *** Aswebb_ has quit IRC
[23:22:10] *** Etherael has joined #angularjs
[23:22:23] *** elrabin has quit IRC
[23:22:39] *** elrabin has joined #angularjs
[23:23:26] *** cbennett has quit IRC
[23:23:33] *** dsdeiz has joined #angularjs
[23:23:45] *** prbc has quit IRC
[23:23:52] *** mzabriskie has joined #angularjs
[23:24:10] *** baweaver_ has joined #angularjs
[23:24:54] *** TheAceOfHearts has quit IRC
[23:25:58] *** slickuser has joined #angularjs
[23:25:59] *** slickuser has joined #angularjs
[23:26:21] *** slickuser has left #angularjs
[23:26:35] *** linojon has quit IRC
[23:27:01] *** linojon has joined #angularjs
[23:27:54] *** warpx has quit IRC
[23:28:26] *** walden|brb is now known as walden
[23:28:45] *** MacWinner has quit IRC
[23:28:54] *** ybl has quit IRC
[23:29:54] <Grokling> Fricken ipads. I opened webkit-flex.atomeye.com on chrome on my desktop, chrome on android, and also chrome and safari on ipad, and the examples are completely differently laid out on the ipad. Surely flexbox is not really broken like that?! Please tell me it's something dumb with this iPad.. Can anybody have a quick check with an ipad to confirm?
[23:29:59] *** mmealling has quit IRC
[23:30:10] *** doginal has quit IRC
[23:30:13] *** Aliks has joined #angularjs
[23:30:37] *** doug64k has quit IRC
[23:30:38] *** scythe__ has joined #angularjs
[23:30:47] *** ajk27_ has quit IRC
[23:31:05] *** stormbytes has quit IRC
[23:31:14] *** zB0hs has quit IRC
[23:31:22] *** _magus has quit IRC
[23:31:33] *** zB0hs has joined #angularjs
[23:31:43] *** tschundeee has joined #angularjs
[23:32:02] *** jonasliljestrand has quit IRC
[23:32:07] *** pikos has joined #angularjs
[23:32:15] *** zB0hs has quit IRC
[23:32:16] *** cbennett has joined #angularjs
[23:32:24] *** hernan has quit IRC
[23:32:24] *** night-owl is now known as zz_night-owl
[23:32:50] *** DanSkaggs has quit IRC
[23:33:38] *** mmealling has joined #angularjs
[23:34:00] *** doginal has joined #angularjs
[23:34:08] *** Evanion has quit IRC
[23:34:16] *** Oxynum has quit IRC
[23:35:00] <sari1> do you have to use ul li when using ng-repeat?
[23:35:04] <sari1> or could I just do it with links?
[23:35:06] *** 77CAAWSUB has quit IRC
[23:35:55] *** charuru has joined #angularjs
[23:36:24] *** Oxynum has joined #angularjs
[23:36:28] <Grokling> sari1: ng-repeat doesn't really care what you use. But your layout/css will care.
[23:36:50] *** ehynds has quit IRC
[23:37:29] <jaawerth> yeah, ul li is certainly easier to deal with for actual lists of things
[23:38:00] *** m3l720 has quit IRC
[23:38:12] *** prbc has joined #angularjs
[23:38:12] *** fairuz has quit IRC
[23:38:20] <jaawerth> Grokling: oh hey, I had a realization today re: having factories return constructor functions and then instantiate in another factory/in a service
[23:38:40] *** Sawbones has quit IRC
[23:38:43] <jaawerth> which is that in many cases we're better off doing that with vanilla providers
[23:39:13] <Grokling> jaawerth: How is that? You're talking about a factory factory?
[23:39:21] *** linojon has quit IRC
[23:39:22] *** tristanp has quit IRC
[23:39:42] *** Sawbones has joined #angularjs
[23:39:54] <jaawerth> well, specifically that returning constructors is sort of what providers are for, and if you do it that way you can then inject them into a .config block for further configuration
[23:40:04] *** jeremymarc has quit IRC
[23:40:19] <jaawerth> and then pass them into a .service provider (or another factory, but you can use .service just as easily) to instantiate a singleton
[23:40:29] *** mzabriskie has quit IRC
[23:40:33] *** josh-k has joined #angularjs
[23:40:37] *** ColKurtz has quit IRC
[23:42:32] <AciD`> is there a pattern/best practice to ensure that replies from a queried server are synchronous to the user input ? (so that if a user asks how much 2+2 does, then quickly ask how much 3+3 does, the result shown is always 6, even if the answer '4' comes back after the answer '6')
[23:42:51] *** Aswebb_ has joined #angularjs
[23:43:45] *** ProLoser has joined #angularjs
[23:44:00] *** kk_ has joined #angularjs
[23:44:12] <Fuzzy> AciD`: you could allow queries until the last one has been returned
[23:44:17] <jaawerth> it's honestly a minor difference and may not even have benefits all the time, but sure
[23:44:17] <ProLoser> hallo
[23:44:22] <ProLoser> what's up peeps
[23:44:26] <jaawerth> hey there!
[23:44:32] *** jimmyy has joined #angularjs
[23:44:34] <ProLoser> any node pros??
[23:44:34] *** Sawbones has quit IRC
[23:44:52] <blackkbot> im a node con
[23:44:58] <Grokling> jaawerth: Okay - don't worry about it then - I'm not brave enough to change anything fundamental at this late stage anyway!
[23:45:00] <AciD`> Fuzzy > I'm not following. You mean disallow other queries before the last one returns right ?
[23:45:04] <Fuzzy> yes
[23:45:05] <jaawerth> haha sure
[23:45:11] <jaawerth> maybe I"ll give you an example once I've used it a bit
[23:45:13] *** mrru has quit IRC
[23:45:14] *** Superhard_ has joined #angularjs
[23:45:44] <AciD`> Fuzzy > that could work indeed, but I think preventing a user to use the UI is not ergonomically good
[23:46:14] <Grokling> Also, I find it somehow comforting to have concrete factories and be able to see exactly what they're doing. It's bad enough inheriting from a common base class as it is!
[23:46:31] <dman777_alter> how can I grab a form from the html and have it in the controller? I tried $scope.form from <form novalidate name="form" class="simple-form form-horizontal"> but it's undefined in the controller
[23:46:34] <jaawerth> AciD`: well, I mean - a single request has its own unique.. let's call it ID.. that's handled by the HTTP protocol. Like, if you do two $http requests at the same time with Angular, you don't have to worry about the responses getting mixed up if the server answers out of order
[23:46:47] *** linojon has joined #angularjs
[23:46:53] *** rafagomes has joined #angularjs
[23:46:58] *** snurfery has quit IRC
[23:47:05] *** richardlitt has quit IRC
[23:47:16] <Fuzzy> so you want to be able to send as many requests as you want, but for it to update a field with data with the latest query, correct?
[23:47:31] <jaawerth> AciD`: if you want to PREVENT the 2+2 query, you just need to either debounce over a certain interval or you can cancel the earlier request if it isn't done
[23:48:06] <jaawerth> or some combination of the two - the combo would actually be better, because preventing the requests from occuring too quickly will save you on IO
[23:48:12] *** dannyc has joined #angularjs
[23:48:13] <AciD`> jaawerth > are you sure about that order thing ? I'm seeing wrong stuff on my end
[23:48:20] *** mmealling has quit IRC
[23:48:39] *** TheAceOfHearts has joined #angularjs
[23:48:41] <jaawerth> well I mean - if both requests are storing data in the same endpoint but sure
[23:48:47] <AciD`> Fuzzy > yes
[23:48:59] *** saucey has quit IRC
[23:49:02] *** SexualRickshaw has joined #angularjs
[23:49:07] <Fuzzy> add a timestamp field for your data then
[23:49:16] *** bayousoft has quit IRC
[23:49:20] <Fuzzy> and on your request as well
[23:49:25] <Fuzzy> so u timestamp when you send a request
[23:49:42] <jaawerth> yeah
[23:49:45] <AciD`> that's a good idea
[23:49:48] <AciD`> :)
[23:49:55] *** bayousoft has joined #angularjs
[23:49:55] *** Superhard_ has quit IRC
[23:49:55] <Fuzzy> then when it comes back, if the timestamp is later than the one you have stored in your client side data, refresh, otherwise ignore
[23:49:56] *** ron1 has quit IRC
[23:50:04] *** fedenunez has joined #angularjs
[23:50:20] *** doug64k has joined #angularjs
[23:50:42] *** livingstn has quit IRC
[23:50:42] <Fuzzy> so your stored data will be something like dataObj = {time: timestamp, response:}
[23:50:56] <dman777_alter> the controller loads before the html, correct?
[23:51:10] *** sheplu has joined #angularjs
[23:51:19] <jaawerth> or if you don't actually need both responses, you can just cancel the existing promise before starting the new one
[23:51:30] *** doginal has quit IRC
[23:51:31] *** rafagomes has quit IRC
[23:51:40] <Fuzzy> oh yeah, good point
[23:52:13] *** PeterMetz has quit IRC
[23:52:13] *** dannyc_ has joined #angularjs
[23:52:19] *** deanclkclk has quit IRC
[23:52:32] *** plato1 has quit IRC
[23:52:37] *** ctanga has quit IRC
[23:52:39] <AciD`> the data returned by the server includes the results as well as the 'input source', so that i'm always sure to display sound data (ie, not 4+4 because it has been changed by the user, and a result of 10 from a previous request). Is that a bad practice in your opinion ?
[23:53:10] *** kk__ has joined #angularjs
[23:53:34] *** swist_ has joined #angularjs
[23:53:39] *** ron1 has joined #angularjs
[23:54:18] *** walden is now known as walden|afk
[23:54:24] *** fedenunez has quit IRC
[23:54:29] *** fedenunez1 has joined #angularjs
[23:54:36] *** ctanga has joined #angularjs
[23:54:40] <merpnderp> sacho: i will in a bit
[23:55:00] *** umib0zu has quit IRC
[23:55:25] *** dannyc has quit IRC
[23:55:38] *** swist has quit IRC
[23:55:47] *** ZGirl has joined #angularjs
[23:56:23] *** cbennett has quit IRC
[23:56:28] <ZGirl> If I have a $resource object, should the object instance be updated with data from the server when I do object.$save(function () { … check data here… });, so do I need to manually extend the model with the data?
[23:56:29] *** {DV8} has quit IRC
[23:56:30] *** Txandy has quit IRC
[23:56:30] *** a3gis has quit IRC
[23:56:44] <ZGirl> * or do I
[23:56:47] *** Efrem-Away is now known as Efrem
[23:56:54] *** rho has joined #angularjs
[23:56:55] *** rho has joined #angularjs
[23:57:49] *** MotherMGA has joined #angularjs
[23:58:17] <MotherMGA> Hello. Is there a way to watch for when a form becomes valid?
[23:58:54] *** ctanga has quit IRC
[23:58:59] *** boxmein has quit IRC
[23:59:16] *** snurfery has joined #angularjs