[00:00:01] *** SexualRickshaw has quit IRC
[00:00:23] <MotherMGA> more importantly, I need to watch from outside of the form.
[00:01:04] *** linojon has quit IRC
[00:01:05] *** threesixes has quit IRC
[00:02:05] *** Xaleph has joined #angularjs
[00:02:08] *** richiebkr has quit IRC
[00:02:08] <snurfery> sup yall
[00:02:13] <snurfery> happy mondays all around
[00:02:18] *** ZGirl has quit IRC
[00:02:28] <Fuzzy> snafuery
[00:02:53] *** dannyc_ has quit IRC
[00:03:33] *** weems|mac has quit IRC
[00:03:37] *** bayousoft has quit IRC
[00:03:51] *** sonicparke|bradm has quit IRC
[00:03:56] *** hasahm has quit IRC
[00:04:51] *** sonofdirt has quit IRC
[00:04:57] *** Zentdayn has joined #angularjs
[00:05:14] *** coffey has quit IRC
[00:05:17] *** baweaver_ has quit IRC
[00:05:36] *** SexualRickshaw has joined #angularjs
[00:05:56] *** FunnyLookinHat has quit IRC
[00:06:32] *** plato has joined #angularjs
[00:07:06] *** juanpablo_ has quit IRC
[00:07:37] *** juanpablo_ has joined #angularjs
[00:08:12] *** bkuberek has joined #angularjs
[00:08:30] *** fedenunez1 has quit IRC
[00:08:31] *** LossFor has quit IRC
[00:08:34] *** ccohn has quit IRC
[00:08:35] *** bkuberek has quit IRC
[00:08:55] *** bkuberek has joined #angularjs
[00:08:56] *** elrabin has quit IRC
[00:09:30] *** elrabin has joined #angularjs
[00:10:20] *** swist_ has quit IRC
[00:11:22] *** swist has joined #angularjs
[00:11:26] *** nemothekid has joined #angularjs
[00:11:33] *** Linell_ has quit IRC
[00:11:36] *** bkuberek_ has quit IRC
[00:12:10] *** Oxynum has quit IRC
[00:12:17] *** juanpablo_ has quit IRC
[00:12:24] *** nerdgrass has quit IRC
[00:13:19] *** bkuberek has quit IRC
[00:14:00] *** bmac has quit IRC
[00:14:04] *** baweaver has joined #angularjs
[00:14:13] *** elrabin has quit IRC
[00:14:18] *** KushS has quit IRC
[00:14:26] *** artisangoose has quit IRC
[00:14:58] *** zz_night-owl is now known as night-owl
[00:16:23] *** uru is now known as uru|away
[00:16:25] <jdummy> snurfery?
[00:16:37] <jdummy> real life not cuttin' it anymore? ;)
[00:16:39] *** prbc has quit IRC
[00:16:39] *** Linell has quit IRC
[00:16:40] *** MaxV has joined #angularjs
[00:17:22] *** jasonp has quit IRC
[00:17:45] *** dman777_alter has quit IRC
[00:17:55]
<cilkay> Hello. I'm using ng-resource to fetch JSON from Django REST Framework running on localhost:8080. I haven't figured out how to pass the client_id of the client I want to fetch from the server. My code is here: http://jsfiddle.net/cilkay/nr1748ne/ If I hard-code the ID, it works no problem. What should I be passing as a parameter in line 19 in place of the hard-coded client_id?
[00:18:18] <cilkay> $scope.client.id didn't work
[00:18:39] *** weeyum has joined #angularjs
[00:18:40] *** doginal has joined #angularjs
[00:18:45] <cilkay> That only gets populated from data returned from the request.
[00:19:47] *** phaggood has joined #angularjs
[00:21:01] *** dannyc has joined #angularjs
[00:21:03] *** Una has joined #angularjs
[00:21:13] *** nerdgrass has joined #angularjs
[00:21:17] *** Evanion has joined #angularjs
[00:21:25] *** jdivock_ has quit IRC
[00:23:29] *** araujo has quit IRC
[00:23:54] <cilkay> I think it should be $scope.id, not $scope.client.id but that returns a 404, too.
[00:25:04] *** araujo has joined #angularjs
[00:25:38] *** prbc has joined #angularjs
[00:25:49] *** dannyc has quit IRC
[00:26:21] *** tbo_ has quit IRC
[00:26:22] *** yts has quit IRC
[00:26:52] *** josh-k_ has joined #angularjs
[00:27:21] *** mven has quit IRC
[00:28:33] *** d10n-work has quit IRC
[00:28:49] *** richiebkr has joined #angularjs
[00:29:16] *** learner has quit IRC
[00:29:26] *** matkl_ has quit IRC
[00:29:41] *** mdedetrich has quit IRC
[00:30:01] *** josh-k has quit IRC
[00:30:03] *** jdcasey has quit IRC
[00:30:38] *** MaxV has quit IRC
[00:31:18] *** fourq is now known as salesforce
[00:31:26] *** salesforce is now known as fourq
[00:35:23] <dsdeiz> hey guys i'm back again with my noob questions :D
[00:35:30] *** cthrax has quit IRC
[00:35:46] *** annlewis has quit IRC
[00:36:16] *** nemothekid has quit IRC
[00:37:32] *** cthrax has joined #angularjs
[00:37:35] *** richiebkr has quit IRC
[00:37:43] *** Embassy has joined #angularjs
[00:37:52] *** richiebkr has joined #angularjs
[00:38:00] *** _ritchie_ has quit IRC
[00:38:32] *** nemothekid has joined #angularjs
[00:38:32] *** ctanga has joined #angularjs
[00:38:40] *** merrihew has quit IRC
[00:38:48] *** subone has left #angularjs
[00:38:51] *** ngbot has joined #angularjs
[00:38:51]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_3 from facfec9 to 41f03e4: http://git.io/au5klA
[00:38:51] *** ngbot has left #angularjs
[00:38:57] *** \du has quit IRC
[00:39:35] *** seriema has quit IRC
[00:40:17] *** tschundeee has quit IRC
[00:40:20] *** ngbot has joined #angularjs
[00:40:20]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_3 from 41f03e4 to ee29819: http://git.io/ASEZPQ
[00:40:20] *** ngbot has left #angularjs
[00:40:26] *** doginal has quit IRC
[00:40:54] *** taylorqj has joined #angularjs
[00:41:10] *** LossFor has joined #angularjs
[00:41:30] *** Foxandxss has quit IRC
[00:41:44] *** kwladyka has quit IRC
[00:41:47] *** tschundeee has joined #angularjs
[00:41:54] *** ngbot has joined #angularjs
[00:41:54]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_3 from ee29819 to 924d3c6: http://git.io/0hjq5Q
[00:41:55] *** ngbot has left #angularjs
[00:42:15] *** soee has quit IRC
[00:42:16] *** whitebook has joined #angularjs
[00:42:26] *** conan_the_destro has quit IRC
[00:42:26] *** macabre has quit IRC
[00:42:36] *** Embassy has quit IRC
[00:43:02] *** opiates has quit IRC
[00:43:25] *** doug64k has quit IRC
[00:43:28] *** ngbot has joined #angularjs
[00:43:29]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_3 from 924d3c6 to c5cba6e: http://git.io/_1w0vA
[00:43:29] *** ngbot has left #angularjs
[00:43:29] *** doginal has joined #angularjs
[00:43:30] *** BobbieBarker has joined #angularjs
[00:43:47] *** chachan has quit IRC
[00:43:49] <snapwich> did protractor just update and break for anyone else too? I'm getting can't find protractor.getInstance() method errors now
[00:43:50] *** JoshGlzBrk has joined #angularjs
[00:44:10] *** davek has joined #angularjs
[00:44:49] *** ngbot has joined #angularjs
[00:44:49] *** ngbot has left #angularjs
[00:45:05] *** nuizzy has quit IRC
[00:46:29] *** prbc has quit IRC
[00:46:32] <icfantv> anyone have any ideas why this might not be formatting my number? $filter('number')(number, fractionSize)
[00:46:57] <icfantv> number is a double and fractionSize WAS 2, but it defaults to 3, so i removed it. but it's not formatting my number.
[00:47:23] *** MotherMGA has quit IRC
[00:47:27] <icfantv> so i'm getting 11.70000000000001
[00:47:35] *** fabios has joined #angularjs
[00:47:36] *** stormbytes has joined #angularjs
[00:47:37] *** richiebkr has quit IRC
[00:48:02] <ProLoser> hey
[00:48:08] *** richiebkr has joined #angularjs
[00:48:24] *** ron1 has quit IRC
[00:49:16] <fabios> hi guys, I have a question with route resolve (I'm using ui router but I think it generically applies): I already use a promise with resolve to fetch some initial data before the controller is loaded. If the user access let's say /blog/posts/1 then I get the id from the url and fetch it
[00:49:24] *** dacuca has quit IRC
[00:49:56] *** codeman has joined #angularjs
[00:49:56] *** linojon has joined #angularjs
[00:49:57] *** richiebkr has quit IRC
[00:49:57] <fabios> but sometimes I already have the specific post data from the BlogController, and I simply want to pass to the Post controller that one, instead of fetching it from the API.
[00:50:06] <fabios> how would you handle this scenario?
[00:50:08] *** richiebkr has joined #angularjs
[00:50:25] *** grogs has joined #angularjs
[00:50:58] <snapwich> yup. protractor updated to 1.5.0 3 hours ago… and now it's broken. awesome
[00:51:28] *** prbc has joined #angularjs
[00:51:28] *** shackleford has quit IRC
[00:51:43] *** whitebook has quit IRC
[00:51:58] *** digitalfiz_ is now known as digitalfiz
[00:52:05] *** mary5030_ has quit IRC
[00:52:14] *** richiebkr has quit IRC
[00:52:42] *** richiebkr has joined #angularjs
[00:52:43] *** mary5030 has joined #angularjs
[00:52:47] *** dean has quit IRC
[00:52:53] *** anapitupulu_ has joined #angularjs
[00:53:08] *** PeterMetz has joined #angularjs
[00:53:29] *** Efrem has quit IRC
[00:54:33] *** morenoh149 has quit IRC
[00:55:17] *** fedenunez has joined #angularjs
[00:55:44] *** SargoDarya has joined #angularjs
[00:56:00] *** jareddlc has joined #angularjs
[00:56:02] *** mven has joined #angularjs
[00:56:06] *** jareddlc has quit IRC
[00:56:56] *** doug64k has joined #angularjs
[00:56:56] *** jgladwill has joined #angularjs
[00:56:57] *** LossFor has quit IRC
[00:56:58] *** mary5030 has quit IRC
[00:57:28] *** PeterMetz has quit IRC
[00:57:46] *** chrisshattuck has quit IRC
[00:57:46] *** rud has joined #angularjs
[00:57:47] *** rud has joined #angularjs
[00:58:12] *** dean has joined #angularjs
[00:58:41] *** jtimon has quit IRC
[00:58:45] *** nerdgrass has quit IRC
[00:59:37] *** digitalfiz has quit IRC
[00:59:52] *** SargoDarya has quit IRC
[01:00:04] *** digitalfiz has joined #angularjs
[01:00:49] <sari1> how do I include new lines in text that is from an ng class?
[01:00:56] *** cakirke has joined #angularjs
[01:00:57] <sari1> <br> and \n not working
[01:01:33] <snapwich> why would you want that in a class name?
[01:02:12] *** rud has quit IRC
[01:02:14] *** nairys has quit IRC
[01:03:02] <sari1> snapwich: from data, like { question: 'Will \n<br>this\nnewline?' }
[01:03:51] <Grokling> sari1: That's not what classes are for?
[01:03:58] *** fedenunez has quit IRC
[01:04:30] <sari1> Grokling: may have used wrong word
[01:04:32] *** whitebook has joined #angularjs
[01:04:34] <snapwich> no
[01:04:45] *** ilanbiala has joined #angularjs
[01:04:55] <sari1> Grokling: just want to use that data and have <br>s be put in the html
[01:05:05] <snapwich> you said ng-class. so like ng-class="{ question: 'Will \n<br>this\nnewline?' }" ?
[01:05:35] <Grokling> What you need to do is {{question}}
[01:07:06] <sari1> ok
[01:07:14] *** Aswebb_ has quit IRC
[01:07:14] *** clesen has joined #angularjs
[01:07:28] <sari1> Grokling: have used that, but the new lines or brs don't come through
[01:07:32] *** anapitupulu_ has quit IRC
[01:07:44] *** dacuca has joined #angularjs
[01:08:43] <snapwich> you need to use ng-bind-html if you want <br> in them
[01:09:02] *** ziyadb has quit IRC
[01:09:05] <snapwich> newlines don't display in webpages
[01:09:09] <snapwich> unless you're using a <pre> or something
[01:09:12] *** cacts|wtf has quit IRC
[01:09:22] *** knownasilya has quit IRC
[01:09:27] <Grokling> sari1: That's because you have everything wrapped in double quotes there.
[01:09:39] *** ccohn has joined #angularjs
[01:09:50] *** marcjs has quit IRC
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:03] *** sandalon has joined #angularjs
[01:10:04] <sari1> in double quotes?
[01:10:20] *** prbc has quit IRC
[01:11:00] <Grokling> sari1: right click, and inspect element..
[01:11:00] *** Joe____ has joined #angularjs
[01:11:03] *** ngbot has joined #angularjs
[01:11:03] <ngbot> angular.js/master 02c9dc6 Caitlin Potter: docs(CHANGELOG): add v1.3.6 changes...
[01:11:03] *** ngbot has left #angularjs
[01:11:15] *** ngbot has joined #angularjs
[01:11:15] *** _ritchie_ has joined #angularjs
[01:11:15] *** ngbot has left #angularjs
[01:12:06] *** Una has quit IRC
[01:12:07] <sari1> snapwich: ill try that
[01:12:24] <sari1> Grokling: don't know where you are referring to, sorry
[01:12:39] *** Una has joined #angularjs
[01:12:53] *** Evanion has quit IRC
[01:12:56] *** ngbot has joined #angularjs
[01:12:57] <ngbot> angular.js/master ca4df47 Caitlin Potter: docs(CHANGELOG.md): remove the `closes ...` from 2dc34a96 notes
[01:12:57] *** ngbot has left #angularjs
[01:12:57] *** apertoire has quit IRC
[01:13:13] <Grokling> sari1: It means that you've bound the value as a string. As snapwich said, bind as html.
[01:14:29] *** ccohn has quit IRC
[01:14:29] *** livingstn has joined #angularjs
[01:15:21] *** livingstn has joined #angularjs
[01:16:24] *** warpx has joined #angularjs
[01:16:47] *** k-dawg has joined #angularjs
[01:16:58] *** ngbot has joined #angularjs
[01:16:59] *** ngbot has left #angularjs
[01:17:15] *** cornerma1 has joined #angularjs
[01:19:44] <sari1> jdummy: thanks
[01:20:02] <jdummy> np
[01:20:22] *** cornerman has quit IRC
[01:20:23] *** cornerma1 is now known as cornerman
[01:20:38] *** ngbot has joined #angularjs
[01:20:38]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 38ff199 to 84bf883: http://git.io/MP3VgA
[01:20:38] *** ngbot has left #angularjs
[01:21:10] *** bmac has joined #angularjs
[01:21:14] *** bradmaxs has quit IRC
[01:21:24] *** warpx has quit IRC
[01:21:37] *** ilanbiala has quit IRC
[01:21:42] *** dannyc has joined #angularjs
[01:21:48] *** ngbot has joined #angularjs
[01:22:28]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 84bf883 to 17d8a52: http://git.io/ZrJZEA
[01:22:28] *** ngbot has left #angularjs
[01:22:28] *** johnkevinmbasco has joined #angularjs
[01:23:07] *** ngbot has joined #angularjs
[01:23:07]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 17d8a52 to e1f9877: http://git.io/rYS9Jg
[01:23:08] *** ngbot has left #angularjs
[01:23:33] *** zlalanne has quit IRC
[01:23:58] *** fabios has quit IRC
[01:24:03] *** phaggood has left #angularjs
[01:24:11] *** mven has quit IRC
[01:24:12] *** ngbot has joined #angularjs
[01:24:12]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from e1f9877 to ba7e24e: http://git.io/O5MwmA
[01:24:12] *** ngbot has left #angularjs
[01:25:11] *** ngbot has joined #angularjs
[01:25:11]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from ba7e24e to bd9e894: http://git.io/TXd1ag
[01:25:11] *** ngbot has left #angularjs
[01:25:12] *** opiates has joined #angularjs
[01:25:42] *** doginal has quit IRC
[01:25:44] *** mven has joined #angularjs
[01:26:07] *** pknordic has joined #angularjs
[01:26:09] *** dannyc has quit IRC
[01:26:11] *** ngbot has joined #angularjs
[01:26:12]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from bd9e894 to 7044e55: http://git.io/wBpXDA
[01:26:12] *** ngbot has left #angularjs
[01:26:39] *** pikos has quit IRC
[01:26:51] *** bmac has quit IRC
[01:26:52] *** ngbot has joined #angularjs
[01:26:53] *** ngbot has left #angularjs
[01:27:17] *** fairuz has joined #angularjs
[01:27:20] *** ngbot has joined #angularjs
[01:27:20]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 7044e55 to 7505d12: http://git.io/Xy4zzA
[01:27:20] *** ngbot has left #angularjs
[01:27:22] *** fairuz has quit IRC
[01:27:22] *** fairuz has joined #angularjs
[01:27:54] *** richiebkr has quit IRC
[01:28:18] *** jrajaratnam has joined #angularjs
[01:28:21] *** ngbot has joined #angularjs
[01:28:22]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 7505d12 to 1b9e408: http://git.io/3C4MxQ
[01:28:22] *** ngbot has left #angularjs
[01:28:26] *** richiebkr has joined #angularjs
[01:28:56] *** whitebook has quit IRC
[01:29:23] *** ngbot has joined #angularjs
[01:29:23]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 1b9e408 to 929dd15: http://git.io/5_fl_g
[01:29:24] *** ngbot has left #angularjs
[01:29:30] *** DaveDH2 has joined #angularjs
[01:29:34] *** pnade has quit IRC
[01:30:03] *** pnade has joined #angularjs
[01:30:14] *** pknordic has quit IRC
[01:30:23] *** ngbot has joined #angularjs
[01:30:23]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 929dd15 to 4c218de: http://git.io/S2ZVZg
[01:30:24] *** ngbot has left #angularjs
[01:31:22] *** ngbot has joined #angularjs
[01:31:23]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 4c218de to 370676d: http://git.io/iVPfSw
[01:31:23] *** ngbot has left #angularjs
[01:31:49] *** opiates has quit IRC
[01:32:07] *** visualshock has joined #angularjs
[01:32:08] *** fairuz has quit IRC
[01:32:24] *** ngbot has joined #angularjs
[01:32:24]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 370676d to 14409d7: http://git.io/Ti_iog
[01:32:24] *** ngbot has left #angularjs
[01:32:46] *** richiebkr has quit IRC
[01:33:04] *** fairuz has joined #angularjs
[01:33:29] *** ngbot has joined #angularjs
[01:33:29]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 14409d7 to 7578744: http://git.io/OtmzEQ
[01:33:29] *** ngbot has left #angularjs
[01:33:32] *** mmealling has joined #angularjs
[01:33:40] *** Nijikoku_ has joined #angularjs
[01:33:56] *** Superhard_ has joined #angularjs
[01:34:04] *** doginal has joined #angularjs
[01:34:24] <caitp> if you ever want to push a release
[01:34:31] *** ngbot has joined #angularjs
[01:34:31]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from 7578744 to ac9336b: http://git.io/isIGpw
[01:34:31] *** ngbot has left #angularjs
[01:34:36] <caitp> don't do it on 1600mg of ibuprofen with a fuzzy brain and an empty stomach
[01:34:46] <caitp> typos happen :<
[01:35:18] *** Sawbones has joined #angularjs
[01:35:19] *** dcherman has quit IRC
[01:35:33] *** ngbot has joined #angularjs
[01:35:33]
<ngbot> [angular.js] chirayuk fast-forwarded g3_v1_2 from ac9336b to bb3b653: http://git.io/KfYN-Q
[01:35:33] *** ngbot has left #angularjs
[01:35:56] *** DanielKarp has joined #angularjs
[01:35:57] *** sandalon has quit IRC
[01:36:39] *** ngbot has joined #angularjs
[01:36:40] *** ngbot has left #angularjs
[01:36:56] *** mven has quit IRC
[01:37:30] *** tschundeee has quit IRC
[01:37:44] *** mdedetrich has joined #angularjs
[01:37:52] <dsdeiz> what do i put as an expression on ng-show if i want it to only show if the expression isn't an empty object?
[01:37:54] *** sheplu has quit IRC
[01:38:06] *** tschundeee has joined #angularjs
[01:38:07] *** Sawbones has quit IRC
[01:38:12] *** Superhard_ has quit IRC
[01:38:43] *** nerdgrass has joined #angularjs
[01:39:34] <fairuz> ng-show="theObject"
[01:39:45] <Grokling> ^
[01:39:55] <dsdeiz> yeah tried that
[01:40:20] <dsdeiz> i've got $scope.foo = {}; and ng-show="foo"
[01:40:58] *** richiebkr has joined #angularjs
[01:40:58] <Grokling> Object.keys(foo).length > 0
[01:41:01] <dsdeiz> works with $scope.foo = null; though
[01:41:45] <fairuz> iirc {} is not considered false
[01:42:04] <fairuz> need to check the keys like Grokling did ^
[01:42:05] <Grokling> yeah, {} is a value, so it's true.
[01:42:36] <Grokling> ng-show="Object.keys(foo).length > 0" should work.
[01:42:42] <dsdeiz> ah gotcha thx
[01:42:49] *** tschundeee has quit IRC
[01:42:53] <Grokling> Better if you know one of the keys though.
[01:43:21] <fairuz> yeah, I normally do ng-show="theObject.theProp"
[01:43:37] *** gunn has quit IRC
[01:43:54] <fairuz> since I think normally you show stuff if the property you want to show is there
[01:44:41] *** DigitallyBorn has quit IRC
[01:44:56] <jdummy> caitp: meds + empty stomach = ulcers, oh nos!
[01:45:06] *** gunn has joined #angularjs
[01:45:24] <jdummy> ginger ale is your friend
[01:45:28] *** icfantv has quit IRC
[01:46:06] *** federicobucchi has joined #angularjs
[01:46:50] <federicobucchi> Hi guys, how can I refresh the results of an ngrepeat when the $scope.results are changed?
[01:47:11] *** pootpoot has quit IRC
[01:47:30] <Grokling> federicobucchi: That should happen automagically.
[01:47:33] <snurfery> federicobucchi: it'll happen automatically
[01:47:34] <jdummy> federicobucchi: that's angular's job
[01:47:58] *** jMyles has joined #angularjs
[01:48:03] <federicobucchi> mmm
[01:48:07] <federicobucchi> it’s not doing it
[01:48:11] <Grokling> federicobucchi: Maybe the $scope.results isn't actually changing..
[01:48:14] *** taylorqj has quit IRC
[01:48:23] <snapwich> might have to do an $apply to get the angular digest loop going
[01:48:30] <snapwich> scope.$apply
[01:48:33] <jdummy> federicobucchi: or you're modifying $scope.results outside of an ng-event
[01:48:38] <federicobucchi> yes I am changing it with updating a result
[01:48:47] <federicobucchi> yes is true
[01:48:49] <jdummy> ^ yeah, scope.$apply will fix it
[01:48:54] <federicobucchi> I am doing it outside ng-event
[01:49:00] *** bmac has joined #angularjs
[01:49:24] *** codeman has quit IRC
[01:49:29] <federicobucchi> I tried scope.$apply already but nothing :(
[01:49:55] *** cacts has joined #angularjs
[01:49:55] <snapwich> do you have a plunkr?
[01:50:14] <Grokling> add {{results}} into your view and see if it's really changing.
[01:50:24] *** taylorqj has joined #angularjs
[01:51:06] *** Fishy has joined #angularjs
[01:51:33] *** bbankes has quit IRC
[01:52:24] *** diegoaguilar has joined #angularjs
[01:52:26] *** marr has quit IRC
[01:53:57] *** sjt003 has quit IRC
[01:54:57] <jdummy> eww... anyone ever run into a problem where the server-side changes your empty object into an array?
[01:55:01] *** BillCriswell has joined #angularjs
[01:56:55] *** bmac has quit IRC
[01:57:04] <snurfery> ew
[01:57:32] *** neilff has joined #angularjs
[01:57:36] *** plato has quit IRC
[01:58:41] <jdummy> yeah, PHP does it
[01:59:27] *** prbc has joined #angularjs
[02:00:00] *** fedenunez has joined #angularjs
[02:00:38] *** neilff has quit IRC
[02:00:55] *** baweaver has quit IRC
[02:01:05] *** jdummy has quit IRC
[02:02:11] *** zeroquake has quit IRC
[02:03:20] *** deanclkclk has joined #angularjs
[02:04:34] *** Juanchito has quit IRC
[02:04:53] *** mary5030 has joined #angularjs
[02:05:17] *** erikruthven has quit IRC
[02:05:43] *** snapwich has quit IRC
[02:06:18] *** rchavik has joined #angularjs
[02:07:46] *** stichoza_ has quit IRC
[02:08:25] *** danecando has quit IRC
[02:08:48] *** danecando has joined #angularjs
[02:09:01] *** baweaver has joined #angularjs
[02:09:03] *** OddDuck has quit IRC
[02:09:35] *** rtpg has joined #angularjs
[02:09:41] *** mary5030 has quit IRC
[02:10:25] *** ccohn has joined #angularjs
[02:10:27] *** glaksmono has joined #angularjs
[02:10:44] *** seriema has joined #angularjs
[02:11:25] *** cthrax has quit IRC
[02:12:20] *** jrajaratnam has quit IRC
[02:12:26] *** mary5030 has joined #angularjs
[02:12:27] *** Guest22 has quit IRC
[02:13:29] *** jeffisabelle has quit IRC
[02:14:14] *** cannap has quit IRC
[02:14:37] *** ccohn has quit IRC
[02:15:14] *** seriema has quit IRC
[02:15:32] *** taylorqj has quit IRC
[02:16:46] *** doug64k has quit IRC
[02:16:49] *** prbc has quit IRC
[02:17:31] *** {DV8} has joined #angularjs
[02:17:40] *** cheef has joined #angularjs
[02:18:02] *** plato has joined #angularjs
[02:18:02] *** cthrax has joined #angularjs
[02:18:41] *** brolig has joined #angularjs
[02:19:17] *** johnkevinmbasco has quit IRC
[02:19:19] *** Oddman has quit IRC
[02:19:29] *** testin has joined #angularjs
[02:20:12] <brolig> hello?
[02:20:18] <federicobucchi> Hey
[02:20:33] *** dannyc has joined #angularjs
[02:20:37] *** cakirke has quit IRC
[02:20:43] *** prbc has joined #angularjs
[02:20:43] <brolig> can i ask all questions here? about angular
[02:20:52] <federicobucchi> ya
[02:21:53] <brolig> cool. I have a ng-repeat button and i want to give the active button a color, but since they have same id they all get the same color. if u understood. ty
[02:22:24] <federicobucchi> don’t use more ids
[02:22:26] <federicobucchi> use classes
[02:22:49] *** dannyc_ has joined #angularjs
[02:22:51] *** k-dawg has quit IRC
[02:23:06] <Grokling> brolig: your ng-repeat gets you an object, use an object property to feed into ng-class, and use the resulting class to assign your color via CSS.
[02:23:07] <federicobucchi> and add a new class .active just to the one you want to make with the active color
[02:23:41] *** neilff has joined #angularjs
[02:23:47] *** Guest22 has joined #angularjs
[02:24:18] *** fedenunez has quit IRC
[02:24:27] *** bbankes has joined #angularjs
[02:24:31] *** fedenunez has joined #angularjs
[02:24:44] *** dannyc has quit IRC
[02:25:11] *** paperElectron has quit IRC
[02:25:22] *** johnkevinmbasco has joined #angularjs
[02:26:05] *** cotko has quit IRC
[02:26:14] <Grokling> livereload ftw. Hit save, and four devices on my desk all update by themselves.
[02:27:04] *** ivor has joined #angularjs
[02:27:17] *** dannyc_ has quit IRC
[02:27:29] *** testin has quit IRC
[02:27:43] <brolig> i dont understand what you mean by feed into ng-class. I have ng-class="{true: 'btn-primary', false: 'btn-default'}[isActive]" and some angular that activates when clicked
[02:27:48] *** wsmoak has quit IRC
[02:28:44] *** jeffisabelle has joined #angularjs
[02:28:45] <Grokling> ng-class="{true: 'btn-primary', false: 'btn-default', active:isActive}"
[02:29:04] *** richiebkr has quit IRC
[02:29:58] *** Xaleph has quit IRC
[02:30:03] <Grokling> Actually, that ng-class thing is pretty messed up the way you have it..
[02:30:34] *** bostonaholic has quit IRC
[02:30:55] *** Joe____ has quit IRC
[02:31:04] <Grokling> ng-class="{'btn-primary':true, 'btn-default':false, 'active':isActive}" might give you a better result.
[02:31:07] *** encryptd_fractl has quit IRC
[02:31:20] <brolig> man im very new to angular. but thank you for ur help
[02:31:24] <brolig> i will try
[02:31:33] *** testin has joined #angularjs
[02:31:44] *** jimmyy has quit IRC
[02:31:49] <Grokling> With that, you should get <button class="btn-primary active"></button>
[02:31:59] <Grokling> for your active button.
[02:32:01] *** encryptd_fractl has joined #angularjs
[02:32:11] *** testin has quit IRC
[02:33:57] *** testin has joined #angularjs
[02:34:02] *** weeyum has quit IRC
[02:34:16] <merpnderp> what happens with $q when sometimes a method returns async and you return your promise, but sometimes it returns immediately and you need to fake the async.
[02:34:23] <merpnderp> Do you just use a timeout with 0 ms?
[02:34:25] *** plato has joined #angularjs
[02:34:34] <brolig> woops, that made all the buttons colored. here is my button: <md-button ng-repeat="resource in resources_filter = (resources | filter:query)"
[02:34:35] <brolig> md-no-ink
[02:34:35] <brolig> class="resource-item"
[02:34:35] <brolig> ng-class="{'btn-primary':true, 'btn-default':false, 'active':isActive}"
[02:34:35] <brolig> ng-click="getResource(resource.plural); active();">
[02:34:36] <brolig> {{ resource.displayName }} <span class="count">{{ resource.itemCount | number }}</span>
[02:34:38] <brolig> </md-button>
[02:34:59] <Grokling> merpnderp: You can wrap a sync thing in $q.when(syncThing) to make it promisey
[02:35:17] <merpnderp> Grokling: okay, thanks I'll look taht up :)
[02:35:26] <Grokling> brolig: Please don't paste stuff in the channel - it's hard to read, and messes things all up!
[02:35:38] <Grokling> brolig: !plunker
[02:35:39]
<UniBot> brolig, paste your code here: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS Try to isolate the specific problem (i.e. the least code you can use to show the issue - not your whole app), and get the code as near to running as you can, and someone will be happy to help.
[02:35:48] <brolig> okok. sry. didnt know. thanks.
[02:35:58] *** testin has quit IRC
[02:36:22] <Grokling> brolig: Don't worry - we all did it once ;-)
[02:36:28] *** cotko has joined #angularjs
[02:36:33] *** TyrfingMjolnir has joined #angularjs
[02:36:57] *** SonikBoom has quit IRC
[02:37:33] *** nerdgrass has quit IRC
[02:37:52] <brolig> nvm
[02:38:08] <brolig> nvm that nvm, my code appeard
[02:38:24] *** paperElectron has joined #angularjs
[02:39:22] *** cheef has quit IRC
[02:39:41] *** cheef has joined #angularjs
[02:39:48] <Grokling> brolig: I have to take off shortly - if you get a plunker up and running, someone will help point you in the right direction I'm sure.
[02:40:04] <brolig> ok no problem.
[02:41:08] <Grokling> Okay - over on the right had side, second to bottom icon, two arrows in a square - hit that, and paste the url.
[02:41:16] <Grokling> right 'hand' side..
[02:41:19] *** ron1_ has joined #angularjs
[02:41:29] <merpnderp> Grokling: I think I'm using this wrong but not sure how.
[02:42:07] *** ron1_ has quit IRC
[02:42:10] *** nerdgrass has joined #angularjs
[02:42:23] <Grokling> merpnderp: Over thinking it for sure.. hold on a sec and I'll cut something together for you.
[02:42:31] *** paperElectron has quit IRC
[02:42:36] *** testin has joined #angularjs
[02:42:47] *** lewdev has quit IRC
[02:42:58] *** zeroquake has joined #angularjs
[02:43:04] <merpnderp> I'm just trying to find a single working example of $q.when on the interwebs and having no luck
[02:44:10] *** moogey has quit IRC
[02:44:32] *** SargoDarya has joined #angularjs
[02:44:56] *** frkout has joined #angularjs
[02:45:03] <merpnderp> Grokling: think I got it
[02:45:14] *** _ritchie_ has quit IRC
[02:45:30] <merpnderp> Grokling: hah, awesome! THank you very much :)
[02:45:54] *** bostonaholic has joined #angularjs
[02:45:55] <Grokling> np.
[02:45:56] <merpnderp> $q.when is awesome. Returns a promise and immediately calls resolve with the passed in value.
[02:46:02] *** Una has quit IRC
[02:46:10] *** __danimal__ has joined #angularjs
[02:46:13] <Grokling> Gotta go. See you guys later.
[02:46:19] *** bostonaholic has quit IRC
[02:46:31] *** prbc has quit IRC
[02:47:06] <merpnderp> Whew, I'm tired. I've refactored the core of this app to two different patterns in the last week.
[02:48:09] *** tfennelly has quit IRC
[02:48:24] *** ngbot has joined #angularjs
[02:48:24] <ngbot> angular.js/materialize c820655 Georgios Kalpakas: docs(app): minor refactoring of 'docs/app/src/*'
[02:48:24] <ngbot> angular.js/materialize 68d490e Georgios Kalpakas: docs(app): refactor the Docs App based on the MD prototype...
[02:48:25] <ngbot> angular.js/materialize 1ce4547 Georgios Kalpakas: docs(app): fix styling of left sidenav, add FontAwesome...
[02:48:25] *** ngbot has left #angularjs
[02:49:01] *** gladely has quit IRC
[02:49:01] *** SargoDarya has quit IRC
[02:49:11] *** nemothekid has quit IRC
[02:49:38] *** jeffisabelle has quit IRC
[02:49:54] *** paperElectron has joined #angularjs
[02:50:44] *** grogs has quit IRC
[02:51:17] *** motionman has joined #angularjs
[02:51:56] *** andreypopp_ has quit IRC
[02:52:04] *** prbc has joined #angularjs
[02:52:25] *** AngularUI has joined #angularjs
[02:52:25]
<AngularUI> [ng-grid] kevin-sage opened pull request #2301: Load Data on Row Expanded (master...expandable-doc) http://git.io/FGhGuQ
[02:52:26] *** AngularUI has left #angularjs
[02:53:25] *** merobertsjr has quit IRC
[02:53:49] *** robdubya has quit IRC
[02:54:10] *** themime has quit IRC
[02:54:58]
<brolig> http://plnkr.co/edit/j1fjch7rJxiEzFMBymje?p=preview . I have this button which i wants to mark colored if its clicked and recolor if another button is clicked. in the link u can see the provided code i have but it marks all button blue on click
[02:55:08] *** cthrax has quit IRC
[02:55:19] *** deanclkclk has quit IRC
[02:55:43] *** juanpablo_ has joined #angularjs
[02:55:58] *** Aswebb_ has joined #angularjs
[02:56:37] *** ilanbiala has joined #angularjs
[02:56:54] <ilanbiala> Has anyone successfully gotten bower-material set up in their projecT?
[02:57:09] *** deanclkclk has joined #angularjs
[02:57:17] *** cbennett has joined #angularjs
[02:58:48] *** Anton_ has quit IRC
[02:58:51] *** Edsfnnnnmlop3 has joined #angularjs
[02:59:28] <ilanbiala> I'm trying to incorporate the ng-aria script into my Gulp concat task and the ng-animate one as well, but ng-aria doesn't get put in. I checked the path, it is correct, but for some reason angular-aria.min.js isn't being added...
[03:00:13] *** cthrax has joined #angularjs
[03:00:18] *** plato has quit IRC
[03:00:19] *** ProLoser has quit IRC
[03:00:36] *** ccohn has joined #angularjs
[03:00:45] *** Aswebb_ has quit IRC
[03:00:54] *** plato has joined #angularjs
[03:00:56] *** ProLoser has joined #angularjs
[03:01:12] *** juanpablo_ has quit IRC
[03:01:16] *** Guest22 has quit IRC
[03:01:17] *** cbennett has quit IRC
[03:02:41] *** jgladwill has quit IRC
[03:02:58] *** dacosta67 has joined #angularjs
[03:03:02] *** jimmyy has joined #angularjs
[03:03:09] <dacosta67> hi
[03:03:32] *** jimmyy has quit IRC
[03:04:00] *** evilaliv3 has quit IRC
[03:04:13] *** skulzz has quit IRC
[03:04:14] *** jimmyy has joined #angularjs
[03:04:27] *** brettfrable has joined #angularjs
[03:04:35] *** muffin has joined #angularjs
[03:04:56] *** mogaj has joined #angularjs
[03:05:02] *** jimmyy has joined #angularjs
[03:05:13] *** ccohn has quit IRC
[03:05:17] *** warpx has joined #angularjs
[03:05:24] *** jimmyy has quit IRC
[03:05:25] *** ProLoser has quit IRC
[03:05:58] *** jimmyy has joined #angularjs
[03:06:06] *** neilff has quit IRC
[03:06:23] *** moogey has joined #angularjs
[03:06:41] *** jimmyy has quit IRC
[03:06:57] *** MuffinMan` has quit IRC
[03:07:29] *** jimmyy has joined #angularjs
[03:07:38] *** jonathanpglick has quit IRC
[03:07:40] *** Sadin has quit IRC
[03:07:50] *** jimmyy has quit IRC
[03:08:06] *** DaveDH2 has quit IRC
[03:08:19] *** testin has quit IRC
[03:08:22] *** jeffisabelle has joined #angularjs
[03:08:25] *** jimmyy has joined #angularjs
[03:08:49] *** jimmyy has quit IRC
[03:09:29] *** jimmyy has joined #angularjs
[03:09:49] *** warpx has quit IRC
[03:09:59] *** shinnya has quit IRC
[03:10:16] *** jimmyy has joined #angularjs
[03:10:26] *** tripu has joined #angularjs
[03:10:26] *** jimmyy has quit IRC
[03:10:42] *** cacts has quit IRC
[03:10:43] *** patrick99e99 has quit IRC
[03:11:25] *** jimmyy has joined #angularjs
[03:11:26] *** patrick99e99 has joined #angularjs
[03:11:36] *** seriema has joined #angularjs
[03:11:52] *** jimmyy has quit IRC
[03:12:28] *** joe____ has joined #angularjs
[03:12:30] *** jimmyy has joined #angularjs
[03:12:57] *** jimmyy has quit IRC
[03:13:33] *** jimmyy has joined #angularjs
[03:13:48] *** jimmyy has quit IRC
[03:14:29] *** neilff has joined #angularjs
[03:14:35] *** jimmyy has joined #angularjs
[03:14:44] *** jimmyy has quit IRC
[03:15:40] *** nemothekid has joined #angularjs
[03:16:00] *** wallerdev has quit IRC
[03:16:11] *** doug64k has joined #angularjs
[03:16:53] *** nerdgrass has quit IRC
[03:16:57] *** jrajaratnam has joined #angularjs
[03:17:34] *** rchavik has quit IRC
[03:17:57] *** neilff has quit IRC
[03:18:48] *** scythe__ has quit IRC
[03:18:57] *** seriema has quit IRC
[03:18:59] *** rchavik has joined #angularjs
[03:19:12] *** fedenunez has quit IRC
[03:19:36] *** patrick99e99 has quit IRC
[03:19:38] *** plato has quit IRC
[03:19:40] *** JeffBuhrt has quit IRC
[03:20:47] *** japhar81 has joined #angularjs
[03:20:52] *** plato has joined #angularjs
[03:21:05] *** bc___ is now known as bc_
[03:21:11] *** bc_ has joined #angularjs
[03:21:45] *** mdedetrich has quit IRC
[03:21:52] *** MistahKurtz has joined #angularjs
[03:22:05] *** defaultdict has quit IRC
[03:22:30] *** mchapman has joined #angularjs
[03:22:35] *** defaultdict has joined #angularjs
[03:22:45] *** Superhard_ has joined #angularjs
[03:23:26] *** fatshark has quit IRC
[03:23:35] *** josh-k_ has quit IRC
[03:23:38] *** dannyc has joined #angularjs
[03:24:26] *** Iravan has joined #angularjs
[03:25:00] *** ASUchander1 has joined #angularjs
[03:25:36] *** danecando has quit IRC
[03:25:55] *** night-owl is now known as zz_night-owl
[03:26:05] *** danecando has joined #angularjs
[03:26:15] *** muffin has quit IRC
[03:26:29] *** Snugug has joined #angularjs
[03:27:17] <jnott> does google use angularjs
[03:27:17] *** Superhard_ has quit IRC
[03:27:25] <jnott> for any of their public facing products
[03:27:34] *** mary5030 has quit IRC
[03:27:43] <jnott> it all seems to be google closure library
[03:27:54] *** ASUChander has quit IRC
[03:27:57] *** dannyc has quit IRC
[03:28:03] *** cthrax has quit IRC
[03:28:10] *** mary5030 has joined #angularjs
[03:28:14] *** mdedetrich has joined #angularjs
[03:28:25] *** opiates has joined #angularjs
[03:28:34] <jnott> goog.ui everything
[03:28:36] *** warpx has joined #angularjs
[03:28:58] *** kuadrosx_ has joined #angularjs
[03:30:08] *** i_am_nader has quit IRC
[03:30:26] *** Sawbones has joined #angularjs
[03:31:07] <caitp> jnott: yes it does
[03:31:16] *** bkuberek has joined #angularjs
[03:31:22] <caitp> although in some of the cooler cases it's vestigial
[03:31:30] *** prbc_ has joined #angularjs
[03:31:33] *** prbc has quit IRC
[03:32:31] *** mary5030 has quit IRC
[03:33:01] *** warpx has quit IRC
[03:33:23] *** rtpg has quit IRC
[03:33:24] *** bostonaholic has joined #angularjs
[03:33:34] *** RobinBAwesome has quit IRC
[03:34:13] *** DanielKarp has quit IRC
[03:34:24] *** frkout has quit IRC
[03:34:32] *** Sawbones has quit IRC
[03:34:39] *** Iravan has quit IRC
[03:35:04] *** Iravan has joined #angularjs
[03:35:21] *** swist has quit IRC
[03:35:22] *** _ritchie_ has joined #angularjs
[03:35:42] *** devhoag has joined #angularjs
[03:35:56] *** rtpg has joined #angularjs
[03:36:33] *** mogaj has quit IRC
[03:38:03] *** axsuul has joined #angularjs
[03:38:43] *** Oka has joined #angularjs
[03:38:54] *** cthrax has joined #angularjs
[03:39:06] *** JeffBuhrt has joined #angularjs
[03:39:07] *** bostonaholic has quit IRC
[03:39:08] *** rho has quit IRC
[03:39:12] *** mclenithan has quit IRC
[03:39:53] <ctanga> like my tailbone
[03:40:30] *** jeffisabelle has quit IRC
[03:40:30] *** bmac has joined #angularjs
[03:40:33] *** Jae has quit IRC
[03:40:41] *** devhoag has quit IRC
[03:40:55] *** JERE has quit IRC
[03:41:37] *** johnkevinmbasco has quit IRC
[03:41:47] *** baweaver has quit IRC
[03:41:49] <stormbytes> would you put app biz logic in a controller?
[03:41:51] *** neilff has joined #angularjs
[03:41:57] <stormbytes> or strictly relegate that sort of thing to services?
[03:41:57] *** say2joe has quit IRC
[03:42:16] <jnott> seems like amazon also is using goog.ui
[03:42:29] <jnott> in some places
[03:42:40] <stormbytes> this is integral business logic i'm talking about -- directly related to the central purpose of the app
[03:43:36] *** kirfu has quit IRC
[03:43:44] *** bbankes has quit IRC
[03:43:46] *** RobinBAwesome has joined #angularjs
[03:43:49] *** kirfu has joined #angularjs
[03:44:06] *** frkout has joined #angularjs
[03:44:34] *** Jae has joined #angularjs
[03:45:23] *** johnkevinmbasco has joined #angularjs
[03:45:46] *** evanjs has joined #angularjs
[03:45:53] *** busticated has quit IRC
[03:46:53] *** vassagus has quit IRC
[03:47:11] *** frem has quit IRC
[03:47:11] *** frem_ is now known as frem
[03:47:36] *** nerdgrass has joined #angularjs
[03:47:40] *** snurfery has quit IRC
[03:48:45] *** RobinBAwesome has quit IRC
[03:51:28] *** dacuca has quit IRC
[03:52:07] *** ilanbiala has quit IRC
[03:52:46] <wafflej0ck> stormbytes: typically good to keep as much as possible in services/factories/providers since you can more easily avoid repeating yourself, the controller is just the glue to connect the functionality defined in providers to the view
[03:53:08] <stormbytes> hm
[03:53:22] <stormbytes> i know about services and factories, i've only heard of providers
[03:53:45] <wafflej0ck> services and factories are just specific ways of defining a provider (which they all are)
[03:53:45] *** kakashiAL has joined #angularjs
[03:54:10] <wafflej0ck> a provider gives you the ability to set properties on your service/factory in a config block in case you need some info from the app before your service/factory can work
[03:54:15] *** prbc has joined #angularjs
[03:54:25] <wafflej0ck> if you don't need some app config then you just use service or factory to define your providers
[03:54:25] <stormbytes> oh i see
[03:54:38] *** prbc_ has quit IRC
[03:54:46] <stormbytes> value, constant, that sort of thing
[03:54:53] <wafflej0ck> yeah check out $providers doc
[03:54:58] <wafflej0ck> in the bottom it has a table with all of em
[03:55:07] <wafflej0ck> and "special properties" like where they can be used
[03:55:54] *** devhoag has joined #angularjs
[03:56:22] <wafflej0ck> just realized the $provider documentation in particular isn't what I meant but ^ that doc
[03:56:35] *** neilff has quit IRC
[03:56:37] <stormbytes> thanks i'll look that over
[03:56:38] *** juanpablo_ has joined #angularjs
[03:56:42] *** kakashiA1 has quit IRC
[03:56:54] *** zB0hs has joined #angularjs
[03:57:05] <stormbytes> so controllers are essentially just there to provide scope & tie into the views
[03:57:10] *** zB0hs has quit IRC
[03:57:24] <stormbytes> meaning services can fire events + controllers respond via listeners
[03:57:41] <stormbytes> and controllers can of course invoke service methods directly
[03:57:55] *** opiates has quit IRC
[03:57:58] <wafflej0ck> stormbytes: yeah basically controllers I just have as a small support structure for the view
[03:58:22] *** Sawbones has joined #angularjs
[03:58:26] <stormbytes> got it. interesting dev paradigm there
[03:58:32] *** busticated has joined #angularjs
[03:58:39] <stormbytes> so.. basicaly vm would be more accuratie
[03:58:41] <stormbytes> accurate
[03:58:48] *** eslaron has joined #angularjs
[03:58:59] <eslaron> Hello ^^
[03:59:01] <stormbytes> going back to old school php mvc -- this just isn't it :)
[03:59:07] <stormbytes> wup eslaron
[03:59:13] *** gunn has quit IRC
[03:59:44] <eslaron> I think I encountered a tough nut. Relational DB with REST
[03:59:47] <stormbytes> wafflej0ck so is it normal for you to have several services within an app?
[03:59:57] <wafflej0ck> stormbytes: oh yeah definitely
[04:00:00] *** cthrax has quit IRC
[04:00:13] <stormbytes> wafflej0ck i'm up to like.. 3-4 factories and about as many services so far
[04:00:16] <wafflej0ck> stormbytes: usually I have a service for each resource/CRUD endponit
[04:00:22] <wafflej0ck> endpoint*
[04:00:29] <stormbytes> the factories simply spit out objects -- a-la-Gadgets plunk
[04:00:58] <stormbytes> wafflej0ck can you give me an example of a service & associated end point?
[04:01:07] *** juanpablo_ has quit IRC
[04:01:29] *** ccohn has joined #angularjs
[04:02:08] <stormbytes> like for ex. if you're tracking guests as they sign in/out of a particular app/process, is that something you'd use a service for?
[04:02:48] <eslaron> Should I try to use relational database quirks or just load whole entities into my app and grab what I need with angular? I'm building a REST APi with angular frontend. I have made basic CRUD operations, but now has come time for relations between entities and I'm kind of lost. Anyone has some advice to offer? ^^
[04:02:49] <wafflej0ck> yeah I just use "service" for my providers that do API calls and "factory" for objects that may do some transformation of the data returned from the API.... an example might be an InvoiceService, with methods for getAll, getById, update, delete and endpoints with paths like mydomain.com/invoice or mydomain.com/invoice/1 and using HTTP verbs, POST->Create, GET->Read, PUT->Update, DELETE->delete
[04:03:43] *** kuadrosx_ has quit IRC
[04:03:50] *** techsethi has joined #angularjs
[04:04:34] <eslaron> wafflej0ck been there already xD And I know the presentation "teach a dog to REST"
[04:04:38] *** digisky has quit IRC
[04:05:12] <wafflej0ck> eslaron: so yeah basically when I grab some object I'll grab the related parts if they are always needed
[04:05:22] <stormbytes> wafflej0ck got it
[04:05:36] <stormbytes> services for api calls + data 'transactions'
[04:05:47] <stormbytes> factories for objects that manipulate/store/reference data
[04:06:01] *** ccohn has quit IRC
[04:06:03] *** Snugug has quit IRC
[04:06:14] <wafflej0ck> eslaron: in some cases it might be better to just fetch all the data for some portion of the app and do client side "joining"/fetching but that is going to depend on the amount of data you're dealing with for a given portion and how much repition there is to see if it's worth it
[04:06:18] *** scythe__ has joined #angularjs
[04:06:24] *** cotko has quit IRC
[04:06:24] *** digisky has joined #angularjs
[04:06:25] <wafflej0ck> stormbytes: yeah that's just a personal preference though
[04:06:25] *** Sawbones has quit IRC
[04:06:31] *** ron1 has joined #angularjs
[04:06:37] <stormbytes> wafflej0ck sounds sensible to do
[04:07:17] *** eBureau has quit IRC
[04:08:10] *** patrickarlt has quit IRC
[04:08:12] *** sabrehagen has quit IRC
[04:08:13] *** ProLoser has joined #angularjs
[04:08:42] <eslaron> wafflej0ck, I got something like this: users entity and persons entity. Persons entity contains a foreign key with user_id. Each user has it's own personal data like firstName, lastneme, phoneNumber etc. Users can fill this data at any moment, so the first record in the persons entity can belong to user with id 287. On the details page I want to fetch the users basic info and his personal data.
[04:08:55] *** axsuul has quit IRC
[04:09:58] <eslaron> And the question is. Do it on the side of the database or fiddle with the whole collection on the client side?
[04:10:04] <wafflej0ck> how many users are you expecting?
[04:10:13] <eslaron> 120-500
[04:10:26] *** richiebkr has joined #angularjs
[04:11:06] *** merobertsjr has joined #angularjs
[04:11:14] *** bbankes has joined #angularjs
[04:11:25]
<wafflej0ck> eslaron: so what you can do is generate some fake payload using something like this http://www.generatedata.com/ and see what the difference in the payload size is if you were to include all the data for each entry up front vs if you were to lazy load the details
[04:11:35] <wafflej0ck> my guess is just doing it server side is going to be fine though
[04:12:04] *** davesidious__ has joined #angularjs
[04:13:16] <eslaron> As of now I load all into the app. For example. Loading 144 users takes 1,33 seconds. Doing a query for 10 users takes 1,2 sec. So I figured? Why bother with lazy loading?
[04:13:25] *** jrajaratnam has quit IRC
[04:13:38] <wafflej0ck> basically if you have something where there is a 1 to many relationship where the many side is repeated a lot then sending them as separate parts and joining client side is beneficial since you avoid returning a bunch of repitious data
[04:13:44] *** scythe__ has quit IRC
[04:14:17] <wafflej0ck> or many to many for that matter
[04:14:33] <wafflej0ck> but if it's 1 to 1 then there's not going to be much benefit to joining them up client side
[04:14:59] <wafflej0ck> and given it's a pretty small set of data I imagine the payload size in KB isn't going to be too terrible
[04:15:15] <eslaron> But when if there is 1 to 1 relation ship? User - Person is 1 to 1, User - Adress is 1 to n (main and correspondence address)
[04:15:19] *** seriema has joined #angularjs
[04:15:34] *** Hackwar1 has joined #angularjs
[04:15:34] *** Una has joined #angularjs
[04:15:54] <wafflej0ck> yeah all those cases I'd do server side and load as much data as is reasonable before it becomes a bandwidth problem
[04:16:02] *** davesidious_ has quit IRC
[04:16:25] *** chrisbirk has joined #angularjs
[04:16:29] <wafflej0ck> if you have something like students in classes then joining client side makes more sense since each student is in many classes and each class has many students
[04:16:44] *** bmac has quit IRC
[04:17:01] *** ProLoser has quit IRC
[04:17:06] <eslaron> But how do I fetch the 1 to 1 entities? I mean. record id
[04:17:30] <eslaron> id's arent mirroring each other and a foreign key is necessary.
[04:17:33] *** ProLoser has joined #angularjs
[04:17:45] *** MistahKurtz has quit IRC
[04:17:47] *** Hackwar has quit IRC
[04:18:36] *** deanclkclk_ has joined #angularjs
[04:18:48] <eslaron> Do I load my user detail page and then reqeust the personal info based on the user's id or load both entities at once and tie them clientside?
[04:19:12] <wafflej0ck> I'm saying I'd just join those parts all up server side and return complex objects
[04:19:24] *** seriema has quit IRC
[04:19:45] <eslaron> join u say
[04:19:49] <wafflej0ck> if addresses aren't shared between user entities and personal info isn't shared between user entities then you might as well just join them up server side
[04:19:57] *** onats has joined #angularjs
[04:20:41] *** deanclkclk has quit IRC
[04:20:47] <eslaron> You recommend to do a sql join or just lump them togheter in java?
[04:21:26] <wafflej0ck> I would maintain the CRUD endpoints for updating/creating addresses and personal info separate from the main entity if need be but yeah would just return the composed object in the case that all the parts are so unique and dependent on each other
[04:21:37] *** ProLoser has quit IRC
[04:22:50] *** Zentdayn has quit IRC
[04:23:50] *** ProLoser has joined #angularjs
[04:24:17] *** djvirgen has quit IRC
[04:24:21] *** dannyc has joined #angularjs
[04:24:31] *** djvirgen has joined #angularjs
[04:24:59] *** ctanga has quit IRC
[04:25:27] *** thumpba has joined #angularjs
[04:25:31] *** motionman is now known as anonyou
[04:26:51] *** axsuul has joined #angularjs
[04:27:14] *** SomeKittens has joined #angularjs
[04:28:40] *** andreypopp_ has joined #angularjs
[04:28:50] *** djvirgen has quit IRC
[04:28:51] *** dannyc has quit IRC
[04:29:17] *** kirfu has quit IRC
[04:29:30] *** sabrehagen1 has joined #angularjs
[04:29:35] <sabrehagen1> hi guys, i have an architectual question for you. i have an API on my server for accessing people and projects. a project has people, stored as an array of IDs of each person. i need to populate details of each person (e.g. name and picture) in order to display the project. should this population be done on the server, before returning the project, or should the onus be placed on the client (angular webapp) to make a request to the API for each us
[04:29:38] *** kirfu has joined #angularjs
[04:29:44] *** settinghead has joined #angularjs
[04:30:01] *** brettfrable has quit IRC
[04:30:05] *** BillCriswell has quit IRC
[04:30:38] *** TheAceOfHearts has quit IRC
[04:31:26] *** nemothekid has quit IRC
[04:31:47] *** techsethi has quit IRC
[04:33:27] *** SargoDarya has joined #angularjs
[04:34:29] <dacosta67> grizzm0:
[04:34:31] *** mary5030 has joined #angularjs
[04:35:44] <grizzm0> o.O
[04:35:54] <grizzm0> I'm sleeping.
[04:36:08] *** diegoaguilar has quit IRC
[04:36:24] *** bkuberek has quit IRC
[04:36:34] *** dnewkerk has quit IRC
[04:37:08] *** richiebkr has quit IRC
[04:37:44] *** SargoDarya has quit IRC
[04:37:47] <Fuzzy> sabrehagen1, is the api for your DB?
[04:38:09] <dacosta67> grizzm0: sorry
[04:38:15] <sabrehagen1> Fuzzy: yes
[04:38:18] <Fuzzy> I would make the requests from the server
[04:38:35] <Fuzzy> because you don't want to put your DB key on clients
[04:38:36] *** busticated has quit IRC
[04:39:15] *** doginal has quit IRC
[04:39:42] <sabrehagen1> Fuzzy: what about separation of concerns? now in my getProject routine, i have to call to users and populate the project document further. shouldn't some higher level service deal with this?
[04:40:41] <Fuzzy> sorry, I don't really follow
[04:40:52] <Fuzzy> what is users
[04:40:54] <Fuzzy> in your case
[04:41:11] *** doginal has joined #angularjs
[04:41:13] <Fuzzy> also another advantage of using a web server instead of having your clients accessing the db directly is because DBs can be slow and get bogged down
[04:41:20] <Fuzzy> whereas you can use memcached for your server
[04:41:29] <Fuzzy> and that's much faster
[04:41:39] *** ProLoser has quit IRC
[04:42:41] *** anonyou is now known as motionman
[04:43:01] *** mzabriskie has joined #angularjs
[04:43:07] <sabrehagen1> Fuzzy: sorry, *people
[04:43:07] *** dacosta67 has quit IRC
[04:43:22] <sabrehagen1> Fuzzy: i see...
[04:43:25] *** neilff has joined #angularjs
[04:43:59] *** glaksmono has quit IRC
[04:44:47] *** Aswebb_ has joined #angularjs
[04:45:45] *** zeroquake has quit IRC
[04:46:10] *** glaksmono has joined #angularjs
[04:46:34] *** linojon has quit IRC
[04:47:55] *** Aliks has quit IRC
[04:48:32] *** bmac has joined #angularjs
[04:48:45] *** jMyles has quit IRC
[04:49:04] *** mzabriskie has quit IRC
[04:49:13] *** richardlitt has joined #angularjs
[04:49:55] *** apipkin has quit IRC
[04:49:57] *** Aswebb_ has quit IRC
[04:51:02] *** apipkin has joined #angularjs
[04:51:04] *** defaultdict has quit IRC
[04:51:34] *** defaultdict has joined #angularjs
[04:52:07] *** linojon has joined #angularjs
[04:52:30] *** ProLoser has joined #angularjs
[04:52:43] *** frkout has quit IRC
[04:53:11] *** frkout has joined #angularjs
[04:53:42] *** thumpba has quit IRC
[04:54:41] *** phzon has joined #angularjs
[04:54:51] *** red_horned_rihno has joined #angularjs
[04:55:20] *** patrickarlt has joined #angularjs
[04:56:51] *** linojon_ has joined #angularjs
[04:56:54] *** linojon has quit IRC
[04:56:54] *** linojon_ is now known as linojon
[04:56:55] *** MistahKurtz has joined #angularjs
[04:57:07] <Fuzzy> it all comes down to how you set up your api
[04:57:08] <Fuzzy> tbh
[04:57:12] <Fuzzy> but if your api is just a db...
[04:57:19] <Fuzzy> set up a webserver to access ur db
[04:58:17] *** bmac has quit IRC
[04:58:33] *** stormbytes has quit IRC
[04:58:35] <sabrehagen1> Fuzzy: the api is provided by a web server as an interface to the db
[04:59:03] *** phzon has quit IRC
[04:59:03] *** ProLoser has quit IRC
[04:59:22] *** ProLoser has joined #angularjs
[04:59:44] *** kirfu has quit IRC
[05:00:21] <eslaron> wafflej0ck, thanks for your advice I think I know what I want to do now :)
[05:00:56] *** LossFor has joined #angularjs
[05:01:45] *** ProLoser has quit IRC
[05:02:04] *** ccohn has joined #angularjs
[05:02:16] *** _mtr has quit IRC
[05:02:47] *** ASUchander1 has quit IRC
[05:03:06] *** nerdgrass has quit IRC
[05:03:17] *** Z3R0 has joined #angularjs
[05:03:24] *** rtpg has quit IRC
[05:03:34] *** prbc has quit IRC
[05:04:20] *** onats has quit IRC
[05:06:17] *** ccohn has quit IRC
[05:06:18] *** s3shs has quit IRC
[05:06:22] <eslaron> Good night guys ^^
[05:06:26] *** eslaron has quit IRC
[05:06:56] *** chrisbirk has quit IRC
[05:07:34] *** burzum2 has joined #angularjs
[05:07:45] *** chrisbirk has joined #angularjs
[05:07:47] *** Left_Turn has quit IRC
[05:08:30] *** Francis has joined #angularjs
[05:09:19] *** gunn has joined #angularjs
[05:09:25] *** burzum has quit IRC
[05:10:26] *** brettfrable has joined #angularjs
[05:10:46] *** SexualRickshaw has quit IRC
[05:11:17] *** shaym_ has quit IRC
[05:11:27] *** chachan has joined #angularjs
[05:11:28] *** Superhard_ has joined #angularjs
[05:11:32] *** prbc has joined #angularjs
[05:12:01] *** JeffBuhrt has quit IRC
[05:12:16] *** zivester has joined #angularjs
[05:13:09] *** bkuberek has joined #angularjs
[05:14:34] *** stormbytes has joined #angularjs
[05:14:35] *** Francis has quit IRC
[05:15:06] *** bkuberek_ has joined #angularjs
[05:15:18] <Fuzzy> sabrehagen1: hm, I would still opt to run things through your own server
[05:15:44] *** merobertsjr has quit IRC
[05:15:45] *** bkuberek has quit IRC
[05:16:04] *** Superhard_ has quit IRC
[05:16:14] *** seriema has joined #angularjs
[05:16:18] *** chachan has quit IRC
[05:17:06] *** maikowblue has quit IRC
[05:20:00] *** mclenithan has joined #angularjs
[05:20:34] *** seriema has quit IRC
[05:20:41] <visualshock> Anyone know how I can make a md-button stay active?
[05:21:03] <BahamutWC|Laptop> visualshock: heh, co-workers were talking about that today - I believe it’s the md-active attribute
[05:21:39] *** evanjs has quit IRC
[05:22:32] *** chrisbirk has quit IRC
[05:23:05] <visualshock> BahamutWC, where should I place it?
[05:23:15] *** cacts has joined #angularjs
[05:23:45] *** BobbieBarker_ has joined #angularjs
[05:24:16] *** k-dawg has joined #angularjs
[05:25:10] *** dannyc has joined #angularjs
[05:26:35] *** doginal has quit IRC
[05:26:50] *** onozor has joined #angularjs
[05:27:07] <onozor> hi
[05:27:11] *** SexualRickshaw has joined #angularjs
[05:27:21] *** axsuul has quit IRC
[05:27:30] <BobbieBarker_> does angularJS 1.3.6 break ui-router?!
[05:27:56] <onozor> I am getting started with angular js please i need a guard
[05:28:00] *** Sontakey has joined #angularjs
[05:28:27] *** JeffBuhrt has joined #angularjs
[05:28:32] *** axsuul has joined #angularjs
[05:29:04] <onozor> who is the angular king?
[05:29:11] *** lemur has joined #angularjs
[05:29:24] *** dannyc has quit IRC
[05:29:29] <BobbieBarker_> there are lots of smart people in here if you have a question just ask it
[05:29:45] <federicobucchi> Hey guys
[05:29:54] *** doginal has joined #angularjs
[05:30:04] <federicobucchi> I solved the digest issue for the $scope.$apply using a timeout
[05:30:14] *** Iravan has quit IRC
[05:31:38] *** csduarte has joined #angularjs
[05:32:19] <federicobucchi> but in the view the ngrepeat is not showing the updated results
[05:32:37] *** prbc has quit IRC
[05:33:01] *** red_horned_rihno has quit IRC
[05:33:04] *** defaultdict has quit IRC
[05:33:37] *** defaultdict has joined #angularjs
[05:33:54] *** onozor has quit IRC
[05:35:18] *** csduarte_ has quit IRC
[05:35:49] *** Iravan has joined #angularjs
[05:36:48] *** rtpg has joined #angularjs
[05:36:50] *** plato has quit IRC
[05:37:56] *** Francis has joined #angularjs
[05:38:32] *** settinghead has quit IRC
[05:40:11] *** settinghead has joined #angularjs
[05:40:42] *** snapwich has joined #angularjs
[05:41:10] *** lw has joined #angularjs
[05:41:22] *** rtpg has quit IRC
[05:42:06] *** prbc has joined #angularjs
[05:42:20] *** mary5030 has quit IRC
[05:42:53] *** mary5030 has joined #angularjs
[05:43:59] <sakustar> BobbieBarker_: but who is the angular king?!
[05:44:14] <BobbieBarker_> you have to find the one ring to rule them all
[05:44:20] <BobbieBarker_> first
[05:44:49] *** dave_boling has joined #angularjs
[05:45:24] *** juanpablo_ has joined #angularjs
[05:45:35] *** ccohn has joined #angularjs
[05:45:51] *** techsethi has joined #angularjs
[05:46:16] <BobbieBarker_> anyone know what the last stable build of ui-router is/was?
[05:46:30] *** rtpg has joined #angularjs
[05:46:36] *** moogey has quit IRC
[05:46:57] <dave_boling> Are you using 2.12?
[05:47:01] <Fuzzy> where do you guys find your contracting work
[05:47:10] <BobbieBarker_> i'm on 2.13 apparently
[05:47:17] <BobbieBarker_> i don't contract i have a reg job
[05:47:25] *** mary5030 has quit IRC
[05:47:25] <dave_boling> Ah, been using 2.12 with no problems at all.
[05:47:27] <BobbieBarker_> is/was 2.12 stable?
[05:47:29] <BobbieBarker_> i'll try it
[05:47:42] <BobbieBarker_> i ran bower update lastnight to get the latest angular Material
[05:47:52] *** doginal has quit IRC
[05:47:52] *** RedOrangeZ has joined #angularjs
[05:47:58] *** richiebkr has joined #angularjs
[05:48:13] *** plato has joined #angularjs
[05:48:39] <sakustar> using bower update takes courage
[05:48:54] <sakustar> updating a project always does
[05:49:05] <BobbieBarker_> this is an internal tool app i'm building in my free time
[05:49:08] <dave_boling> truth
[05:49:10] <BobbieBarker_> using a shitload of expirimental stuff
[05:49:16] <BobbieBarker_> i'm building it using angular material ffs
[05:49:17] <BobbieBarker_> lol
[05:49:23] <BobbieBarker_> which is on versino 0.6.1
[05:49:39] <dave_boling> :D
[05:49:40] *** Nijikoku_ has quit IRC
[05:49:55] *** ccohn has quit IRC
[05:50:17] *** juanpablo_ has quit IRC
[05:50:21] <BobbieBarker_> everything was trucking along last night then i get on here tonight and it's completely fucked
[05:50:27] <BobbieBarker_> can't go from sign-in to my landing page
[05:50:29] *** moogey has joined #angularjs
[05:50:44] <BobbieBarker_> just a lot of bizarre behaviour from the router and according to ui-router's git page their current build is failing
[05:51:00] *** nuizzy has joined #angularjs
[05:51:16] <dave_boling> I feel your pain on that
[05:51:25] <dave_boling> especially when hapi went 8.0 few weeks ago
[05:51:37] <BobbieBarker_> ffs man still can't resolve the state
[05:51:42] <BobbieBarker_> it makes no sense
[05:51:52] <Francis> hey guyz i need a help in angularjs drag and drop ,i want to drop the list element in to element and append it li into li
[05:51:56] <Francis> here a plunker
[05:52:17] *** richiebkr has quit IRC
[05:52:42] <BobbieBarker_> whats the problem looks like it is working
[05:53:08] *** lemur has quit IRC
[05:53:20] *** robdubya has joined #angularjs
[05:53:28] <fairuz> Hey guys. Does ng-options need ng-model as well to work. Adding ng-options="state.id as state.name for state in states" does not seem to populate the list. $scope.states comes from a promise
[05:53:36] <Francis> yeah its working but i want to drop the element into element
[05:53:45] *** lemur has joined #angularjs
[05:54:05] <Francis> BobbieBarker like ipod into shirt
[05:54:36] *** doginal has joined #angularjs
[05:54:57] <dave_boling> Are you doing a $scope.digest anywhere in there fairuz?
[05:55:00] <BobbieBarker_> you didn't write your own drag-drop?
[05:55:20] <dave_boling> If you're doing it in a promise, it may not be done before the page loads.
[05:55:28] <BobbieBarker_> i think the problem is the
[05:55:32] <Francis> i have my own drag drop want to see that actually its all in jquery wait i show you
[05:55:36] <dave_boling> And not updating scope like it normally would
[05:55:37] *** k-dawg has quit IRC
[05:55:40] <BobbieBarker_> no
[05:55:42] <BobbieBarker_> jquery is shit
[05:55:42] <BobbieBarker_> lol
[05:55:44] <fairuz> dave_boling: no
[05:55:47] <BobbieBarker_> you can write it easily with out jquery
[05:56:06] <dave_boling> Do a $scope.apply() or $scope.digest() in your promise.
[05:56:24] <Francis> BobbieBarker but hard to make the json
[05:56:26] <BobbieBarker_> ithe problem
[05:56:28] <BobbieBarker_> the problem
[05:56:48] <BobbieBarker_> is that the drop target is the UL list itself
[05:56:51] *** {DV8} has quit IRC
[05:56:56] <Francis> yes
[05:56:56] <BobbieBarker_> which you have hidden
[05:57:05] <BobbieBarker_> so make the h2 tags a target too
[05:57:23] *** ron1 has quit IRC
[05:57:35] <Francis> so its work
[05:57:40] <BobbieBarker_> ?
[05:57:41] <Francis> or not
[05:57:42] <fairuz> dave_boling: Ok let me try that
[05:58:01] *** zivester has quit IRC
[05:58:28] *** joe____ has quit IRC
[05:58:29] <BobbieBarker_> i'm pretty sure that if you make the h2 target a target for drag-drop it will work. Clearly your drag-drop stuff yo'ure using works
[05:58:30] <dave_boling> Be sure to do the digest() after the variable is redefined
[05:58:34] <BobbieBarker_> because you can drop into the shopping cart
[05:58:54] *** scythe__ has joined #angularjs
[05:58:59] *** plato has quit IRC
[05:59:20] *** zivester has joined #angularjs
[05:59:34] *** Oka_ has joined #angularjs
[05:59:44] *** ron1 has joined #angularjs
[05:59:46] *** Oka_ has quit IRC
[06:00:04] *** Oka_ has joined #angularjs
[06:00:10] <Francis> BobbieBarker i want when i drag the element into shopping cart (like t shirt i drag i want the drop one more element into in it ) same thing i did in jquery but can't possible in angularjs
[06:00:39] *** prbc has quit IRC
[06:01:01] <BobbieBarker_> i guess i'm not understanding the problem, sorry for that
[06:01:24] *** Oka has quit IRC
[06:01:40] *** zivester has quit IRC
[06:01:40] *** devhoag has quit IRC
[06:02:04] *** devhoag has joined #angularjs
[06:02:05] <Francis> BobbieBarker give me one minute
[06:02:09] *** settinghead has quit IRC
[06:02:28] *** speaking1ode has quit IRC
[06:02:31] *** Oka_ has quit IRC
[06:02:40] *** zivester has joined #angularjs
[06:03:00] <BobbieBarker_> i dunno what to do about this fucking router problem. I guess i should wait for them to push a stable build
[06:03:50] *** Oka has joined #angularjs
[06:03:56] *** evanjs has joined #angularjs
[06:04:14] *** prbc has joined #angularjs
[06:04:24] <Francis> < BobbieBarker > like i drag the the Lolcat Shirt from list i want to make it droppable (same one) so i drop lot of list element into it
[06:04:56] <BobbieBarker_> so if you drop a shirt onto a shirt it increases the quantity?
[06:05:34] *** defaultdict has quit IRC
[06:06:00] *** chrisbirk has joined #angularjs
[06:06:15] <Francis> < BobbieBarker > i want to make it droppable and increases the index
[06:06:53] *** TripTastic has joined #angularjs
[06:07:12] *** mennea has joined #angularjs
[06:07:25] *** prbc has quit IRC
[06:07:59] <dave_boling> Oh
[06:08:21] <Francis> BobbieBarker got it
[06:08:33] <BobbieBarker_> nah sorry, i'm just getting confused,
[06:10:08] *** jaydubya has quit IRC
[06:10:10] <Francis> i drop list ino list
[06:10:10] *** techsethi has quit IRC
[06:10:15] *** speakingcode has joined #angularjs
[06:10:40] *** JBreit has quit IRC
[06:10:45] *** jaydubya has joined #angularjs
[06:13:15] <dave_boling> You're just wanting to have two items when another of the same is dragged onto the list?
[06:13:20] <dave_boling> that's what I'm getting
[06:13:46] *** doginal has quit IRC
[06:13:58] <Francis> like i drag one list element i want to make it droppable
[06:14:26] *** mzabriskie has joined #angularjs
[06:14:44] *** Sna4x8 has quit IRC
[06:15:01] *** MistahKurtz has quit IRC
[06:15:10] *** jaydubya has quit IRC
[06:15:16] *** snurfery has joined #angularjs
[06:15:52] *** Sna4x8 has joined #angularjs
[06:16:38] *** brettfrable has quit IRC
[06:17:12] *** busticated has joined #angularjs
[06:17:13] <BobbieBarker_> i see
[06:17:13] <BobbieBarker_> now
[06:17:36] <BobbieBarker_> so what you probably need is a directive that is restrict to A and applies the drag-target attribute
[06:17:46] <BobbieBarker_> ... i dunno
[06:17:50] <BobbieBarker_> that is a complex use case though
[06:17:52] <BobbieBarker_> or
[06:17:54] <BobbieBarker_> what you could do
[06:18:12] <BobbieBarker_> is write a filter that sorts all the items
[06:18:40] <Francis> ooooo i dont know
[06:18:44] <dave_boling> underscore.js
[06:18:52] *** chrisshattuck has joined #angularjs
[06:18:58] *** snurfery has quit IRC
[06:19:43] *** chrisbirk has quit IRC
[06:20:01] <BobbieBarker_> don't use underscore
[06:20:02] <BobbieBarker_> use lodash
[06:20:18] *** snurfery has joined #angularjs
[06:20:27] <BobbieBarker_> so the plot has thickened on my router problem
[06:20:39] <Fuzzy> the plot...has thickened!
[06:20:56] <BobbieBarker_> i console logged $state.get() and not surprisingly the state that i cannot reach isn't even in the list of available states
[06:21:10] *** Sontakey has quit IRC
[06:21:34] <snurfery> sup yall
[06:21:45] *** neilff has quit IRC
[06:21:57] *** bbankes has quit IRC
[06:22:09] *** ron1 has quit IRC
[06:22:22] *** SargoDarya has joined #angularjs
[06:25:55] *** dannyc has joined #angularjs
[06:26:02] *** mzabriskie has quit IRC
[06:26:10] <snurfery> plunker's collaboration tool isn't working
[06:26:25] <snurfery> are there any other "live code help" websites I can use to help my friend out?
[06:26:32] *** SargoDarya has quit IRC
[06:26:37] <zivester> how can I get a handle on the <form> element that triggers an ng-submit.. is that somewhere on 'this', or must I attach an id to the form ?
[06:26:39] <snurfery> maybe video + a place for code
[06:27:00] <snurfery> zivester: if you give the form a name then that name will appear on your scope
[06:27:27] *** earthquake has joined #angularjs
[06:27:50] *** TheAceOfHearts has joined #angularjs
[06:28:06] *** mzabriskie has joined #angularjs
[06:28:13] <dsdeiz> can't i easily get the cookie using $cookieStore.get('test')?
[06:28:30] <dsdeiz> i added $cookieStore.put('test', 'foo'); earlier and i'm not able to retrieve it
[06:28:34] <dsdeiz> when i reload the page
[06:29:07] *** wa5ted has quit IRC
[06:29:34] *** wa5ted has joined #angularjs
[06:30:00] <dsdeiz> ah i think i get it now
[06:30:22] *** dannyc has quit IRC
[06:30:32] *** lw has quit IRC
[06:31:18] <dsdeiz> ah no i still don't get it :D
[06:32:28] *** ajk27_ has joined #angularjs
[06:33:38] *** Aswebb_ has joined #angularjs
[06:35:16] *** _mtr has joined #angularjs
[06:35:18] *** deanclkclk_ has quit IRC
[06:35:54] *** chhsiao1981 has quit IRC
[06:36:21] *** doginal has joined #angularjs
[06:36:29] *** brolig has quit IRC
[06:36:57] *** Z3R0 has quit IRC
[06:37:14] *** mennea_ has joined #angularjs
[06:37:16] *** brolig has joined #angularjs
[06:37:29] *** mennea has quit IRC
[06:37:36] *** chhsiao1981 has joined #angularjs
[06:37:58] *** {DV8} has joined #angularjs
[06:38:08] *** evanjs has quit IRC
[06:38:21] *** sigurding has joined #angularjs
[06:38:30] *** Aswebb_ has quit IRC
[06:39:03] *** mennea_ has quit IRC
[06:39:37] *** patrickarlt has quit IRC
[06:39:40] *** caitp has quit IRC
[06:39:58] *** _mtr has quit IRC
[06:40:37] *** mzabriskie has quit IRC
[06:41:00] *** mzabriskie has joined #angularjs
[06:41:09] *** LossFor has quit IRC
[06:41:55] *** busticated has quit IRC
[06:42:20] *** moogey has quit IRC
[06:42:41] <zivester> snurfery, so I have the $scope.myForm ... how do I get a direct handle onto the form element... as if I did $('[name="myForm"]')
[06:42:58] *** Francis has left #angularjs
[06:43:21] *** d4rklit3 has quit IRC
[06:43:34] <BobbieBarker_> why do you want to do that?
[06:43:38] *** richardlitt has quit IRC
[06:44:44] <zivester> need to call a legacy function that needs a jQuery handle onto the form
[06:44:54] <BobbieBarker_> oi
[06:45:00] *** d4rklit3 has joined #angularjs
[06:45:18] *** pedrosanta has joined #angularjs
[06:45:27] *** snapwich has quit IRC
[06:45:42] <BobbieBarker_> well id on't know about this legacy function crap, but what i would do if i wanted to use like jqlite on a specific element is place a directive the element
[06:45:44] <zivester> better than not using angular at all.. i hope.. this new section is so much nicer to work with.. but some things i can't control.. hence this jquery stuff
[06:45:45] <BobbieBarker_> restrict it to A
[06:46:09] <BobbieBarker_> what does the legacy function do?
[06:46:21] *** ccohn has joined #angularjs
[06:46:33] *** ciwolsey has joined #angularjs
[06:47:11] <zivester> uploads a set of files to a specific endpoint on the server... something I can't be bothered to rewrite in angular right now
[06:47:26] *** Sontakey has joined #angularjs
[06:47:30] <zivester> so is there not something simple like $scope.myForm.getElement() or something?
[06:47:33] *** ycodr has quit IRC
[06:47:52] *** ycodr has joined #angularjs
[06:49:44] *** mennea has joined #angularjs
[06:50:11] <BobbieBarker_> no you have to use the link function in a directive with angularJS anytime you want to do anything with an element
[06:50:13] <pedrosanta> Hi there. I've seen the "replace: true" deprecation warning on $compile for some time now, but it seems that's a lot of discussion aound that issue and I'm getting the feeling that it might not be deprecated at all. Does anyone has a more informed position on this?
[06:50:15] <BobbieBarker_> angularJS runs on jqlite
[06:50:21] <BobbieBarker_> and you access that inside of directives
[06:50:39] *** ccohn has quit IRC
[06:50:40] *** brolig has quit IRC
[06:51:34] *** brolig has joined #angularjs
[06:52:17] *** ycodr has quit IRC
[06:52:29] *** grogs has joined #angularjs
[06:52:29] <zivester> gotcha, ok, thanks for the info
[06:52:33] <BobbieBarker_> np
[06:53:17] *** ycodr has joined #angularjs
[06:54:48] *** NormySan has joined #angularjs
[06:57:10] *** mzabriskie has quit IRC
[06:57:13] *** Superhard_ has joined #angularjs
[06:57:30] *** adarshaj has quit IRC
[06:59:56] *** renlo has joined #angularjs
[07:01:10] *** adarshaj has joined #angularjs
[07:01:14] *** {DV8} has quit IRC
[07:01:14] *** LossFor has joined #angularjs
[07:01:22] *** Superhard_ has quit IRC
[07:02:03] *** sigurding has quit IRC
[07:02:11] *** Etherael has quit IRC
[07:02:16] *** scythe__ has quit IRC
[07:02:54] *** sabrehagen1 has quit IRC
[07:03:01] *** clesen has quit IRC
[07:03:59] *** ProLoser has joined #angularjs
[07:05:06] *** bkuberek_ has quit IRC
[07:06:03] *** freil has joined #angularjs
[07:07:34] *** ggrzybek has joined #angularjs
[07:08:41] *** chrisshattuck has quit IRC
[07:08:43] *** dave_boling has quit IRC
[07:09:05] *** dave_boling has joined #angularjs
[07:09:43] *** Joseph_Silber has joined #angularjs
[07:10:08] *** adarshaj has quit IRC
[07:11:28] *** Shadda has quit IRC
[07:11:28] *** swalberg has quit IRC
[07:12:04] *** slobo_ has quit IRC
[07:12:06] *** xMopxShell has quit IRC
[07:12:12] *** adarshaj has joined #angularjs
[07:12:18] *** airtonix has quit IRC
[07:12:34] *** airtonix has joined #angularjs
[07:13:00] *** sabrehagen has joined #angularjs
[07:13:07] *** RangeRick has joined #angularjs
[07:13:13] *** brolig has quit IRC
[07:13:18] *** slobo has joined #angularjs
[07:13:22] *** ppppaul has quit IRC
[07:13:22] *** RangerRick has quit IRC
[07:13:23] *** JosephSilber has quit IRC
[07:13:23] *** Vye has quit IRC
[07:13:44] *** ppppaul has joined #angularjs
[07:13:45] *** xMopxShell has joined #angularjs
[07:13:58] *** Vye has joined #angularjs
[07:14:01] *** swalberg has joined #angularjs
[07:16:04] *** erikruthven has joined #angularjs
[07:16:47] *** mennea_ has joined #angularjs
[07:16:59] *** brolig has joined #angularjs
[07:17:29] <fairuz> Hi. After trying, Adding ng-options="state.id as state.name for state in states" to the select tag does not seem to populate the list. But when I do <option ng-repeat="state in states" ng-value="{{ state.id }}">{{ state.name }}</option> on the option tag, it works. What did I do wrong in my ng-options? Thanks
[07:17:52] <fairuz> Works as in the list appear
[07:17:54] *** Milkweed has quit IRC
[07:18:21] *** mennea has quit IRC
[07:20:25] *** Iravan has quit IRC
[07:21:16] *** LossFor has quit IRC
[07:21:17] *** seriema has joined #angularjs
[07:21:23] *** Iravan has joined #angularjs
[07:21:57] *** craigp has joined #angularjs
[07:22:18] *** sigurding has joined #angularjs
[07:22:55] *** brolig has quit IRC
[07:23:11] <fairuz> on nvm, it need ng-model to work
[07:24:07] *** josh-k has joined #angularjs
[07:24:18] *** NormySan has quit IRC
[07:25:02] *** brownish has quit IRC
[07:25:42] *** seriema has quit IRC
[07:26:36] *** dannyc has joined #angularjs
[07:26:54] *** Mattias has quit IRC
[07:27:00] *** brolig has joined #angularjs
[07:27:12] *** Shadda has joined #angularjs
[07:28:24] *** tfennelly has joined #angularjs
[07:28:41] *** josh-k has quit IRC
[07:30:45] *** Mattias has joined #angularjs
[07:30:56] *** dannyc has quit IRC
[07:31:11] *** red_horned_rihno has joined #angularjs
[07:31:46] *** robdubya has quit IRC
[07:32:54] *** brolig has quit IRC
[07:34:09] *** juanpablo_ has joined #angularjs
[07:34:22] *** Sontakey has quit IRC
[07:34:24] *** doginal has quit IRC
[07:35:41] *** motionman has quit IRC
[07:35:42] *** doginal has joined #angularjs
[07:35:59] *** caitp has joined #angularjs
[07:36:04] *** _mtr has joined #angularjs
[07:36:47] *** visualshock has quit IRC
[07:38:49] *** juanpablo_ has quit IRC
[07:39:07] *** LooMan has joined #angularjs
[07:39:36] *** renlo has quit IRC
[07:39:39] *** Embassy has joined #angularjs
[07:39:50] *** brolig has joined #angularjs
[07:40:38] *** caitp has quit IRC
[07:41:18] *** _mtr has quit IRC
[07:41:26] *** warpx has joined #angularjs
[07:43:30] *** Embassy has quit IRC
[07:43:46] *** fourq has quit IRC
[07:44:24] *** fourq has joined #angularjs
[07:46:20] *** mennea_ has quit IRC
[07:46:30] *** dave_boling has quit IRC
[07:47:05] *** mennea has joined #angularjs
[07:47:11] *** ccohn has joined #angularjs
[07:47:16] *** motionman has joined #angularjs
[07:47:22] *** motionman has joined #angularjs
[07:48:10] *** iksik has joined #angularjs
[07:48:57] *** brolig has left #angularjs
[07:50:47] *** rhp has quit IRC
[07:50:57] *** felipesabino has quit IRC
[07:51:18] *** LossFor has joined #angularjs
[07:51:21] *** ali_ has joined #angularjs
[07:51:32] *** ccohn has quit IRC
[07:52:58] *** krad has joined #angularjs
[07:52:58] *** krad has joined #angularjs
[07:53:17] *** renlo has joined #angularjs
[07:53:36] <krad> hey guys. ive read many articles on error handling in angularjs. but didn't understand why most of them add the errors to the $rootScope?
[07:53:59] <krad> they add the exception and the scope wherever they occur
[07:54:10] *** felipesabino has joined #angularjs
[07:54:40] <krad> shouldn't error handling be like for example if something fails, decide what to do, try to recover, or take actions according to the app state
[07:55:59] *** speaking1ode has joined #angularjs
[07:56:19] <BahamutWC> krad: sounds like you understand it better than those articles then :P
[07:57:28] *** renlo has quit IRC
[07:57:38] <krad> what's the point of pushing all errors to the $rootScope..... besides a centralized place for errors
[07:57:44] *** speakingcode has quit IRC
[07:57:46] *** _ritchie_ has quit IRC
[07:57:48] <krad> shouldn't error be dealt with at the place they occur
[07:57:51] *** IJNX has joined #angularjs
[07:59:31] *** zivester has quit IRC
[08:00:13] *** dc has joined #angularjs
[08:01:41] *** coder_ has joined #angularjs
[08:02:11] <BahamutWC> krad: using rootScope like that is pretty bad
[08:02:14] <BahamutWC> you are correct
[08:02:37] *** sabrehagen has quit IRC
[08:03:07] *** coder_ has left #angularjs
[08:04:36] *** Superhard__ has joined #angularjs
[08:05:47] *** bkuberek has joined #angularjs
[08:05:50] *** Rutix`away has joined #angularjs
[08:05:50] *** Rutix`away has joined #angularjs
[08:06:15] *** Rutix has quit IRC
[08:08:07] *** prbc has joined #angularjs
[08:08:09] *** SargoDarya has joined #angularjs
[08:08:21] *** bwing has joined #angularjs
[08:09:15] *** bwing has left #angularjs
[08:09:29] *** robdubya has joined #angularjs
[08:10:17] *** JohnBat26 has joined #angularjs
[08:10:17] *** bkuberek has quit IRC
[08:11:05] *** Edsfnnnnmlop3 has quit IRC
[08:12:22] *** SargoDarya has quit IRC
[08:12:40] *** prbc has quit IRC
[08:12:53] *** one0one has quit IRC
[08:13:15] *** SexualRickshaw has quit IRC
[08:13:38] *** soee has joined #angularjs
[08:14:21] *** jrajaratnam has joined #angularjs
[08:14:22] *** LooMan has quit IRC
[08:14:25] *** blackkbot has quit IRC
[08:14:36] *** blackkbot has joined #angularjs
[08:14:38] <soee> good morning
[08:15:54] *** dbxt has joined #angularjs
[08:16:22] *** mennea has quit IRC
[08:16:40] *** xxtjaxx`` has joined #angularjs
[08:17:00] *** mennea has joined #angularjs
[08:17:03] *** sabrehagen has joined #angularjs
[08:17:24] *** mdedetrich has quit IRC
[08:17:36] *** ProLoser has quit IRC
[08:18:13] *** ProLoser has joined #angularjs
[08:18:23] *** Raging_Hog has joined #angularjs
[08:19:17] *** johnkevinmbasco has quit IRC
[08:19:19] *** Anton_ has joined #angularjs
[08:22:25] *** ProLoser has quit IRC
[08:22:30] *** Aswebb_ has joined #angularjs
[08:23:37] *** bowman has joined #angularjs
[08:23:50] *** ProLoser has joined #angularjs
[08:23:56] <dsdeiz> i have form submit function usually like $scope.submit = function(values) { ... } and in my partial ng-model="values['textfield']" or ng-model="values['radio']"
[08:24:00] *** jrajaratnam has quit IRC
[08:24:08] <dsdeiz> would it be better if i used scope inside submit instead?
[08:24:20] <dsdeiz> like $scope.submit = function() { console.log($scope.values); }
[08:24:32] *** cheef has quit IRC
[08:24:38] <dsdeiz> or do i stick with $scope.submit = function(values) { console.log(values); } ?
[08:26:04] *** jrajaratnam has joined #angularjs
[08:27:25] *** Aswebb_ has quit IRC
[08:27:58] *** sinequanon has joined #angularjs
[08:30:00] *** LossFor has quit IRC
[08:30:07] *** bowman has quit IRC
[08:30:34] *** JohnBat26 has quit IRC
[08:30:42] *** craigp has quit IRC
[08:30:51] *** dbxt has quit IRC
[08:31:38] *** earthquake has quit IRC
[08:32:01] *** lite_ has joined #angularjs
[08:32:52] *** Leon has joined #angularjs
[08:34:02] *** pknordic has joined #angularjs
[08:34:05] *** Anton_ has quit IRC
[08:34:42] *** uru|away is now known as uru
[08:35:13] *** ishan1604 has joined #angularjs
[08:35:48] *** craigp has joined #angularjs
[08:36:00] *** Sontakey has joined #angularjs
[08:36:01] *** Aswebb_ has joined #angularjs
[08:38:24] *** JohnBat26 has joined #angularjs
[08:40:04] *** Sontakey has quit IRC
[08:40:14] *** jonasliljestrand has joined #angularjs
[08:41:22] *** BobbieBarker_ has quit IRC
[08:41:57] *** Aliks has joined #angularjs
[08:42:01] *** Anton_ has joined #angularjs
[08:42:07] *** Nivag has quit IRC
[08:42:09] *** Superhard__ has quit IRC
[08:42:09] *** Wizek has joined #angularjs
[08:42:47] *** Leon has joined #angularjs
[08:43:23] *** Sontakey has joined #angularjs
[08:44:04] *** foofoobar has joined #angularjs
[08:44:09] *** federicobucchi has quit IRC
[08:44:28] *** Aswebb_ has quit IRC
[08:45:00] *** SahanH has joined #angularjs
[08:45:06] *** jstroem has joined #angularjs
[08:45:25] *** jacuqesdancona_ has joined #angularjs
[08:45:55] *** yts has joined #angularjs
[08:46:24] *** mennea has quit IRC
[08:46:36] *** Superhard__ has joined #angularjs
[08:47:03] *** mennea has joined #angularjs
[08:47:50] *** ccohn has joined #angularjs
[08:48:47] *** chachan has joined #angularjs
[08:49:24] *** freelyfred has joined #angularjs
[08:49:28] *** Sontakey has quit IRC
[08:49:28] *** sebhoss has joined #angularjs
[08:49:30] *** lite_ has quit IRC
[08:50:21] *** Click66 has joined #angularjs
[08:50:39] *** e0ipso is now known as e0ipso|away
[08:51:14] *** kpax has quit IRC
[08:51:32] *** mtsr has joined #angularjs
[08:52:19] *** ccohn has quit IRC
[08:52:28] *** plekplek has joined #angularjs
[08:52:58] *** chachan has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:56] *** caitp has joined #angularjs
[08:56:43] *** jstroem has quit IRC
[08:57:03] *** nfroidure has joined #angularjs
[08:57:26] *** jstroem has joined #angularjs
[08:57:58] *** charuru has quit IRC
[08:59:23] *** sabrehagen1 has joined #angularjs
[09:00:31] *** frkout_ has joined #angularjs
[09:00:43] *** caitp has quit IRC
[09:01:37] *** SonikBoom has joined #angularjs
[09:02:10] *** jstroem has quit IRC
[09:02:45] *** Wizek has quit IRC
[09:02:46] *** mennea has quit IRC
[09:03:01] *** freil has quit IRC
[09:03:10] *** Aswebb_ has joined #angularjs
[09:03:30] *** TyrfingMjolnir has quit IRC
[09:03:40] *** evilaliv3 has joined #angularjs
[09:03:49] *** frkout has quit IRC
[09:04:31] *** lite_ has joined #angularjs
[09:04:51] *** blomman has joined #angularjs
[09:05:06] *** mennea has joined #angularjs
[09:05:47] *** Hounddog has joined #angularjs
[09:05:50] *** Fuzzy has quit IRC
[09:05:53] *** Nivag has joined #angularjs
[09:06:01] *** topi has joined #angularjs
[09:06:12] *** Fire-Dragon-DoL has quit IRC
[09:06:16] *** bkuberek has joined #angularjs
[09:07:15] *** cheef has joined #angularjs
[09:07:25] *** laurensclaessen has joined #angularjs
[09:07:33] *** mennea has quit IRC
[09:07:36] *** SargoDarya has joined #angularjs
[09:07:37] *** SargoDarya has joined #angularjs
[09:07:58] *** yelvert has quit IRC
[09:08:20] *** federicobucchi has joined #angularjs
[09:08:33] *** yelvert has joined #angularjs
[09:08:59] *** motionman has quit IRC
[09:09:01] *** sinequanon has quit IRC
[09:09:01] *** prbc has joined #angularjs
[09:09:10] *** sabrehagen has quit IRC
[09:09:30] *** jrajaratnam has quit IRC
[09:09:49] *** cheef has quit IRC
[09:10:45] *** erikruthven has quit IRC
[09:11:42] *** bkuberek has quit IRC
[09:11:42] *** cheef has joined #angularjs
[09:11:43] *** andrewvee has joined #angularjs
[09:12:27] *** tripu has quit IRC
[09:12:28] *** Fuzzy has joined #angularjs
[09:12:43] *** jagga has joined #angularjs
[09:12:47] *** yelvert has quit IRC
[09:13:05] *** andrew__ has quit IRC
[09:13:18] *** Una has quit IRC
[09:13:31] *** Oxynum has joined #angularjs
[09:13:39] *** prbc has quit IRC
[09:13:47] *** cheef has quit IRC
[09:14:55] *** cheef has joined #angularjs
[09:15:37] *** SonikBoom has quit IRC
[09:15:52] *** tangorri has joined #angularjs
[09:17:21] *** federicobucchi has quit IRC
[09:17:33] *** robdubya has quit IRC
[09:18:13] *** Aliks has quit IRC
[09:18:49] *** Aliks has joined #angularjs
[09:20:15] *** rchavik has quit IRC
[09:21:38] *** e0ipso|away is now known as e0ipso
[09:22:32] *** neilff has joined #angularjs
[09:22:56] *** juanpablo_ has joined #angularjs
[09:23:03] *** ron1 has joined #angularjs
[09:23:09] *** Aliks has quit IRC
[09:23:31] *** frkout_ has quit IRC
[09:23:57] *** frkout has joined #angularjs
[09:24:09] *** pknordic has quit IRC
[09:24:30] *** cotko has joined #angularjs
[09:24:43] *** pknordic has joined #angularjs
[09:24:46] *** milka has joined #angularjs
[09:25:05] *** _mtr has joined #angularjs
[09:25:25] *** milka has quit IRC
[09:25:43] *** milka has joined #angularjs
[09:26:49] *** neilff has quit IRC
[09:27:28] *** chachan has joined #angularjs
[09:27:37] *** ron1 has quit IRC
[09:27:45] *** seriema has joined #angularjs
[09:27:54] *** juanpablo_ has quit IRC
[09:29:13] *** saucey has joined #angularjs
[09:29:49] *** _mtr has quit IRC
[09:30:33] *** cojack has joined #angularjs
[09:30:37] *** chachan_ has joined #angularjs
[09:30:58] *** rchavik has joined #angularjs
[09:31:50] *** chachan has quit IRC
[09:32:17] *** settinghead has joined #angularjs
[09:33:34] *** LinxCat has quit IRC
[09:33:47] *** ciwolsey has quit IRC
[09:34:03] *** ciwolsey has joined #angularjs
[09:34:25] *** cbennett has joined #angularjs
[09:34:28] *** seriema has quit IRC
[09:34:45] *** phzon has joined #angularjs
[09:35:26] *** LinxCat has joined #angularjs
[09:35:26] *** LinxCat has joined #angularjs
[09:35:46] *** frobs has joined #angularjs
[09:35:48] *** dannyc has joined #angularjs
[09:36:20] *** sk87 has joined #angularjs
[09:37:07] *** settinghead has quit IRC
[09:37:24] *** Hounddog has quit IRC
[09:37:25] *** red_horned_rihno has quit IRC
[09:37:32] *** cbennett has quit IRC
[09:37:38] *** ciwolsey_ has joined #angularjs
[09:39:57] *** ciwolsey has quit IRC
[09:40:15] *** kk__ has quit IRC
[09:40:30] *** dannyc has quit IRC
[09:42:08] *** freelyfred has quit IRC
[09:42:20] *** guilbep has joined #angularjs
[09:44:12] *** MaxV has joined #angularjs
[09:44:35] *** rtpg has quit IRC
[09:45:48] *** SargoDarya has quit IRC
[09:46:40] *** Anton_ has quit IRC
[09:46:58] *** cbennett has joined #angularjs
[09:48:29] *** doginal has quit IRC
[09:48:52] *** ccohn has joined #angularjs
[09:48:59] *** fairuz has quit IRC
[09:49:06] *** Hounddog has joined #angularjs
[09:49:28] *** Sky[x] has joined #angularjs
[09:51:01] *** SahanH has quit IRC
[09:51:09] *** jordandotdev has joined #angularjs
[09:51:23] *** grogs has joined #angularjs
[09:51:49] *** doginal has joined #angularjs
[09:52:01] *** motionman has joined #angularjs
[09:52:28] *** jtimon has joined #angularjs
[09:53:08] *** ccohn has quit IRC
[09:53:40] *** kk_ has quit IRC
[09:54:47] *** Anton_ has joined #angularjs
[09:55:27] *** fbenoit has joined #angularjs
[09:55:56] *** fedenunez has joined #angularjs
[09:56:58] *** SargoDarya has joined #angularjs
[09:57:11] *** JERE has joined #angularjs
[09:57:12] *** doginal has quit IRC
[09:57:37] *** nothingPT has joined #angularjs
[09:57:48] <nothingPT> heloo
[09:57:51] <nothingPT> *hello
[09:58:36] *** mrru has joined #angularjs
[09:58:39] <Fifty5Plus> is ui-grid any good?
[09:59:20] *** sikor_sxe has joined #angularjs
[09:59:40] *** adben has joined #angularjs
[10:02:53] *** dannyc has joined #angularjs
[10:03:56] *** Oxynum has quit IRC
[10:04:48] *** SomeKittens has quit IRC
[10:04:49] *** jtimon has quit IRC
[10:05:07] *** s00pcan has quit IRC
[10:06:05] *** blomman has quit IRC
[10:06:08] *** Mad-C has joined #angularjs
[10:06:40] *** blomman has joined #angularjs
[10:06:57] *** ninjaparade has quit IRC
[10:07:46] *** jlebrech has joined #angularjs
[10:07:58] *** mclenithan has quit IRC
[10:08:52] *** nuizzy has quit IRC
[10:09:43] *** prbc has joined #angularjs
[10:09:47] *** grogs has quit IRC
[10:10:19] *** motionman has quit IRC
[10:11:52] *** sigurding has quit IRC
[10:12:11] *** marr has joined #angularjs
[10:12:18] *** DarrenCraig has joined #angularjs
[10:13:03] *** ninkotech has quit IRC
[10:13:51] *** sigurding has joined #angularjs
[10:14:13] *** prbc has quit IRC
[10:15:07] *** ninkotech has joined #angularjs
[10:16:56] *** cbennett has quit IRC
[10:17:53] *** SargoDarya has quit IRC
[10:19:54] *** Christer has joined #angularjs
[10:20:21] *** jstroem has joined #angularjs
[10:22:51] *** basiclaser_ has joined #angularjs
[10:22:54] *** JJOO has joined #angularjs
[10:23:06] *** tfennelly has quit IRC
[10:23:24] <JJOO> are there any plans to ever stop supporting implicit DI? (function($a, $b), no string array)
[10:23:25] *** iksik has quit IRC
[10:23:33] *** mennea has joined #angularjs
[10:23:45] <sacho> JJOO, yes
[10:23:54] <sacho> the plans are to stop supporting it when angular 1.3 comes out
[10:23:55] *** storkme has joined #angularjs
[10:23:56] *** Evanion has joined #angularjs
[10:24:12] <JJOO> sacho: 1.3 is out isn't it
[10:24:16] <sacho> JJOO, yes it is
[10:24:25] <nfroidure> how would you test drag and drop ? firing with elem.trigger() or other ?
[10:24:48] <JJOO> sacho: what did you mean the plans "are" to, then? haha, if its out already, you mean theres an open issue?
[10:25:31] <JJOO> couldn't find one on github so wasn't sure if it was planned
[10:25:46] *** iksik has joined #angularjs
[10:26:25] *** devhoag has quit IRC
[10:27:41] <sacho> well, you can use ng-strict-di to basically disable it.
[10:28:02] *** Sebastien-L has joined #angularjs
[10:28:03] <JJOO> true
[10:28:17] <JJOO> but i was wondering if there are plans to ever remove it completely
[10:28:23] <JJOO> just out of interest
[10:28:37] *** mennea_ has joined #angularjs
[10:28:54] <sacho> I can only speculate, but I can't imagine it being removed for 1.3, and 2.0 probably won't have anything like it
[10:29:07] <JJOO> yeah thats true
[10:30:41] *** seriema has joined #angularjs
[10:30:56] *** PeterMetz has joined #angularjs
[10:31:50] *** fedenunez has quit IRC
[10:32:13] <storkme> what's standard practice for showing like a spinny wheel while loading resources to inject into a controller with `resolve`? I have a login page, when finished it redirects you to user.index which loads a bunch of stuff in resolve:{} but while it's loading the user still sees the login page
[10:32:44] *** prashant has joined #angularjs
[10:32:47] *** stormpat has joined #angularjs
[10:32:52] *** mennea has quit IRC
[10:32:52] *** stormpat has quit IRC
[10:32:56] <prashant> hey
[10:32:57] <prashant> all
[10:33:02] <prashant> im new to angular
[10:33:37] *** prashant has quit IRC
[10:33:37] *** SargoDarya has joined #angularjs
[10:33:46] *** cbennett has joined #angularjs
[10:34:14] *** sacho has quit IRC
[10:34:36] *** sacho has joined #angularjs
[10:34:54] *** sabrehagen has joined #angularjs
[10:34:57] *** cbennett has joined #angularjs
[10:35:18] *** seriema has quit IRC
[10:35:18] *** Anton_ has quit IRC
[10:36:29] *** langywhips has joined #angularjs
[10:40:52] <cheef> how do i access custom elements inside a custom directive?
[10:40:54] *** jstroem has quit IRC
[10:41:00] *** daniele9821 has joined #angularjs
[10:41:02] <cheef> want to manipulate them befor ethey ar compiles
[10:41:17] *** jstroem has joined #angularjs
[10:41:30] <sacho> what do you want to do to them
[10:41:53] <cheef> add some attributes, and setup ngModel
[10:42:05] <cheef> the parent directive has a config to be shared by the children
[10:42:14] <sacho> You'd need to manually compile them, then
[10:42:23] <sacho> I think.
[10:42:43] <daniele9821> Hello all it's possible to create nested directive? in the first directive i've a ng-repeat now I want to create a second one with another ng-repeat but I don't know how. The scenario is the follow: Main view: <main-tree root+jsondata></main-tree>
[10:42:45] <sacho> you could select them like any other dom element regardless
[10:43:00] <daniele9821> now how I can pass the second one?
[10:43:18] *** yelvert has joined #angularjs
[10:43:28] *** Anton_ has joined #angularjs
[10:43:33] *** tarnus has joined #angularjs
[10:43:34] <cheef> for example <my-customer-directive some-attrs> <my-custom-element/> i want to transclude the custom element to a point inside my template, and then add some attrs from it
[10:43:51] <tangorri> anyone successfully use directive templateURL pointing to svg files ?
[10:44:02] <daniele9821> or I can do create the second one only inside the first directive?
[10:44:03] <cheef> i tried element.children but it gave me all the template elements, rather than just those that were to be transcluded
[10:44:39] *** fedenunez has joined #angularjs
[10:44:50] *** caitp has joined #angularjs
[10:44:53] *** blomman has quit IRC
[10:45:28] *** blomman has joined #angularjs
[10:45:33] *** aslate has joined #angularjs
[10:46:15] *** jstroem has quit IRC
[10:46:42] *** jstroem has joined #angularjs
[10:46:43] <daniele9821> maybe the question isn't more clear
[10:48:50] *** tarnus has quit IRC
[10:48:54] *** yelvert has quit IRC
[10:49:13] *** caitp has quit IRC
[10:49:19] <sacho> cheef, you can use the transclude function to access just the transcluded elements
[10:49:23] *** ccohn has joined #angularjs
[10:49:36] <cheef> thought that was the case!
[10:49:50] *** jtimon has joined #angularjs
[10:50:00] <cheef> its a bit more complicated as the transcluded content needs to go in an ng repeat
[10:50:03] *** JJOO has quit IRC
[10:50:03] *** narutimateum has joined #angularjs
[10:50:10] *** lugzer has joined #angularjs
[10:50:53] *** m8 has joined #angularjs
[10:50:53] *** paul_ has joined #angularjs
[10:50:55] *** Superhard__ has quit IRC
[10:51:09] *** lite_ has quit IRC
[10:51:38] *** lite_ has joined #angularjs
[10:52:58] *** emps is now known as EMPZ
[10:53:36] *** StryKaizer has joined #angularjs
[10:53:45] *** EMPZ is now known as emps
[10:53:51] *** lemur has quit IRC
[10:53:52] *** ccohn has quit IRC
[10:54:25] *** lemur has joined #angularjs
[10:54:38] *** dhanam has joined #angularjs
[10:55:31] *** bkuberek has joined #angularjs
[10:55:33] <dhanam> scopes are caching when i logged out
[10:55:46] *** langywhips has quit IRC
[10:55:46] <dhanam> in IE11
[10:55:59] <sacho> what does that mean
[10:56:39] *** dhanam has quit IRC
[10:57:16] <sacho> try forcing a full refresh, if your browser is caching the page and showing you stale contents, you need to change the caching headers your server sends
[10:57:31] *** bengillies has joined #angularjs
[10:57:42] *** swist has joined #angularjs
[10:57:55] *** sabrehagen has quit IRC
[10:59:04] *** lemur has quit IRC
[10:59:44] *** dan2k3k4 has joined #angularjs
[11:00:22] *** bengilli_ has joined #angularjs
[11:00:28] *** sabrehagen has joined #angularjs
[11:00:30] *** bkuberek has quit IRC
[11:01:13] *** lite_ has quit IRC
[11:01:36] *** azizur has joined #angularjs
[11:01:39] *** lite_ has joined #angularjs
[11:02:23] *** cbennett has quit IRC
[11:02:43] *** Aswebb_ has quit IRC
[11:03:07] *** bengillies has quit IRC
[11:03:16] *** twelverobots1 has quit IRC
[11:03:40] *** daniele9821 has quit IRC
[11:04:15] *** twelverobots has joined #angularjs
[11:04:23] *** craigp is now known as drksvnt
[11:06:16] *** lite_ has quit IRC
[11:08:26] *** deny has joined #angularjs
[11:08:28] *** UniBot1 has joined #angularjs
[11:09:12] *** mennea has joined #angularjs
[11:09:40] *** mak`` has joined #angularjs
[11:09:53] *** milka has quit IRC
[11:10:01] <deny> hello all is possibile to create 2 directive with 2 ng-repeat? for example think to a tree all the root node inside the first one and all the child inside the second one and in the main html do same like that: <root-tree json= data><child-tree json=??></></>
[11:10:19] *** milka has joined #angularjs
[11:10:23] *** Anton_ has quit IRC
[11:10:27] *** prbc has joined #angularjs
[11:10:44] *** swist has quit IRC
[11:10:59] *** Solid1_afk is now known as Solid1
[11:11:08] *** m8 has quit IRC
[11:11:21] *** swist has joined #angularjs
[11:11:41] *** juanpablo_ has joined #angularjs
[11:12:30] *** mennea_ has quit IRC
[11:12:43] *** tschundeee has joined #angularjs
[11:13:01] *** lite_ has joined #angularjs
[11:13:14] *** m8 has joined #angularjs
[11:13:54] *** _mtr has joined #angularjs
[11:14:05] *** AlSquirrel has joined #angularjs
[11:14:19] <cheef> sacho: in the transclusion function it gives me the custom elements template, rather than the original markup my-custom-directive
[11:14:24] <cheef> so im guessing its been compiled already
[11:14:29] *** m8 has quit IRC
[11:14:53] *** edy has joined #angularjs
[11:15:18] *** prbc has quit IRC
[11:15:24] *** lugzer has quit IRC
[11:15:38] *** m8 has joined #angularjs
[11:15:50] *** Aswebb_ has joined #angularjs
[11:16:34] *** juanpablo_ has quit IRC
[11:16:37] <cheef> ye that looks like it, can't modify it before compilation then :/
[11:17:05] *** rabbi1 has joined #angularjs
[11:17:13] <sacho> sorry, I don't remember the specific steps of compilation and transclusion, but that sounds plausible.
[11:17:28] *** morenoh149 has joined #angularjs
[11:17:31] *** jtimon has quit IRC
[11:17:36] <cheef> thats cool mate, im just saying what im seeing :)
[11:18:01] <cheef> im wondering if i can use pre instead of post and still access the trasncluded content
[11:18:30] *** Anton_ has joined #angularjs
[11:19:01] <sacho> prelink is before compile
[11:19:03] <sacho> err, after*
[11:19:09] *** _mtr has quit IRC
[11:19:18] *** IJNX has quit IRC
[11:19:28] *** tfennelly has joined #angularjs
[11:19:57] <cheef> ye, but importantly its before the child :)
[11:20:00] <rabbi1> sacho: for me ?
[11:20:08] <cheef> at the minute its doing child:postlink parent:postlink
[11:21:20] *** settinghead has joined #angularjs
[11:21:24] *** IJNX has joined #angularjs
[11:21:57] *** lexek__ has joined #angularjs
[11:22:01] *** d0ngz has quit IRC
[11:22:35] *** lewiscowper has joined #angularjs
[11:22:42] *** tangorri has quit IRC
[11:22:47] *** lewiscowper has left #angularjs
[11:23:15] *** tschundeee has quit IRC
[11:23:32] *** tschundeee has joined #angularjs
[11:23:40] *** d0ngz has joined #angularjs
[11:23:56] *** cbennett has joined #angularjs
[11:24:11] *** cbennett has quit IRC
[11:24:29] <cheef> sacho: works :)
[11:25:05] *** cbennett has joined #angularjs
[11:25:41] *** m8 has quit IRC
[11:26:09] *** settinghead has quit IRC
[11:26:10] *** MaxV has quit IRC
[11:26:23] *** warpx has quit IRC
[11:26:40] *** MaxV has joined #angularjs
[11:27:39] *** aslate has quit IRC
[11:27:42] *** mchapman has quit IRC
[11:28:17] *** Ritoon_ has joined #angularjs
[11:29:23] *** stormbytes has quit IRC
[11:31:47] *** Nijikoku_ has joined #angularjs
[11:31:50] *** stormbytes has joined #angularjs
[11:32:16] *** ProLoser has quit IRC
[11:32:37] *** aslate has joined #angularjs
[11:32:55] *** warpx has joined #angularjs
[11:32:57] *** DLSteve has joined #angularjs
[11:33:03] *** MaxV has quit IRC
[11:33:13] *** ProLoser has joined #angularjs
[11:33:22] *** MaxV has joined #angularjs
[11:33:40] *** MaxV has quit IRC
[11:33:55] *** GreenJello has quit IRC
[11:33:59] *** MaxV has joined #angularjs
[11:34:02] *** pknordic has quit IRC
[11:36:12] *** sikor_sxe has quit IRC
[11:36:31] *** Ritoon_ has quit IRC
[11:36:54] *** fedenunez has quit IRC
[11:37:04] *** Ritoon_ has joined #angularjs
[11:38:06] *** SargoDarya has quit IRC
[11:38:58] *** rightnow has joined #angularjs
[11:39:05] *** maddy has joined #angularjs
[11:39:17] *** sk87 has quit IRC
[11:39:29] *** maddy is now known as Guest4890
[11:39:35] *** cbennett has quit IRC
[11:39:36] <Guest4890> hi
[11:39:45] <Guest4890> hi
[11:39:54] *** greengriminal has joined #angularjs
[11:40:23] <Guest4890> can anyone tell me where to start studying angular
[11:40:24] *** Iravan has quit IRC
[11:40:30] <rightnow> Helo, i have a problem. I have <input type="checkbox" ng-model="crm.enabled" ng-true-value="1" ng-false-value="0"><input type="text" ng-model="crm.enabled" /> crm.enabled is tied to an API, and if i do console.log(crm.enabled) it says 1. the text field says 1, but the checkbox isnt checked?
[11:40:50] *** atomatt has joined #angularjs
[11:40:54] *** Guest4890 has left #angularjs
[11:41:43] *** sk87 has joined #angularjs
[11:42:50] *** cbennett has joined #angularjs
[11:43:03] *** cbennett has quit IRC
[11:43:38] *** cbennett has joined #angularjs
[11:43:54] *** macobo has joined #angularjs
[11:44:11] *** atomatt has quit IRC
[11:44:44] *** atomatt has joined #angularjs
[11:45:08] *** seriema has joined #angularjs
[11:46:35] *** \du has joined #angularjs
[11:46:35] *** \du has joined #angularjs
[11:46:38] *** lugzer has joined #angularjs
[11:48:15] *** Superhard__ has joined #angularjs
[11:49:48] *** seriema_ has joined #angularjs
[11:49:55] *** seriema has quit IRC
[11:50:01] *** seriema_ has joined #angularjs
[11:50:11] *** ccohn has joined #angularjs
[11:51:17] *** mchapman has joined #angularjs
[11:51:52] *** OnkelTem has quit IRC
[11:52:18] *** cbennett has quit IRC
[11:52:54] *** OnkelTem has joined #angularjs
[11:53:05] *** e0ipso is now known as e0ipso|away
[11:54:15] *** phzon has quit IRC
[11:54:20] *** Grokling has quit IRC
[11:54:38] *** ccohn has quit IRC
[11:54:50] *** qdk has quit IRC
[11:54:58] *** e0ipso|away is now known as e0ipso
[11:55:02] *** stormbytes has quit IRC
[11:55:03] *** SargoDarya has joined #angularjs
[11:55:59] *** cbennett has joined #angularjs
[11:56:01] *** ycodr has quit IRC
[11:56:13] *** cbennett has quit IRC
[11:56:22] *** jshultz has quit IRC
[11:56:24] *** ycodr has joined #angularjs
[11:56:27] <rabbi1> rightnow: get rid of ng-true and ng-false
[11:57:04] <rabbi1> and you can't have to fields with same model
[11:57:06] *** cbennett has joined #angularjs
[11:57:37] *** testin has joined #angularjs
[11:58:00] *** chachan_ has quit IRC
[11:58:27] *** saucey has quit IRC
[12:01:09] *** k-dawg has joined #angularjs
[12:01:44] *** blomman has quit IRC
[12:02:18] *** blomman has joined #angularjs
[12:02:23] <soee> if i want to implement authentication service its a better to do it as a separate module or simple service in existing one ?
[12:04:35] <sacho> if you plan on testing it alone, or your app with a mocked auth service, sure.
[12:06:35] *** blomman has quit IRC
[12:07:31] *** sk87 has quit IRC
[12:07:47] *** frem has quit IRC
[12:07:57] *** tangorri has joined #angularjs
[12:08:18] *** rightnow has left #angularjs
[12:08:52] *** intellix has joined #angularjs
[12:10:05] *** MaxV has quit IRC
[12:10:17] *** __danimal__ has quit IRC
[12:11:17] *** prbc has joined #angularjs
[12:11:21] <Fuzzy> use your own module
[12:11:23] <Fuzzy> for sure
[12:11:23] *** elyssonmr has joined #angularjs
[12:11:33] <Fuzzy> way too cluttered to put it with other stuff
[12:12:34] *** rabbi1 has quit IRC
[12:13:28] *** marcjs has joined #angularjs
[12:14:01] <soee> yeah ill go with separate module, have one more question if my main app module injects module Foo the foo is also avaiable in module Bar that is injected by main app ?
[12:14:32] *** Left_Turn has joined #angularjs
[12:15:18] <Fuzzy> no
[12:15:38] *** caitp has joined #angularjs
[12:15:39] *** prbc has quit IRC
[12:16:25] <sacho> soee, it would be
[12:16:56] *** Embassy has joined #angularjs
[12:17:03] *** paul_ has quit IRC
[12:17:09] *** ProLoser has quit IRC
[12:17:12] <sacho> but it's not a good idea to have implicit dependencies.
[12:17:44] <soee> usecase: my authentication module wil use ngStorage and i wonder either it shoudl be injected in main app or this auth module (main app might also use ngStorage)
[12:17:53] <Fuzzy> wait..you dont have to specify dependency directly? interesting
[12:17:59] *** saucey has joined #angularjs
[12:18:01] *** arpu has joined #angularjs
[12:18:05] <Fuzzy> if everything isi injected into mainapp
[12:18:16] <sacho> soee, inject it in the module as well.
[12:18:28] <soee> sacho: both modules ?
[12:18:35] <sacho> if you use the module separately from the app, then it wouldn't work.
[12:18:56] <soee> ok might be a good idea, thank you
[12:19:17] *** dc has quit IRC
[12:20:09] *** caitp has quit IRC
[12:21:26] *** phzon has joined #angularjs
[12:21:43] *** Aswebb_ has quit IRC
[12:22:05] *** MaxV has joined #angularjs
[12:22:14] *** erry has joined #angularjs
[12:22:55] <erry> if i want to access a variable key in an object in '{{}}' how do i do it? something like obj.$key ?
[12:23:04] <erry> where 'key' is my variable with the key name\
[12:26:46] *** swist has quit IRC
[12:26:51] *** glaksmono has quit IRC
[12:27:20] *** jstroem has quit IRC
[12:27:46] *** jstroem has joined #angularjs
[12:28:01] *** zanea is now known as zanea|away
[12:28:31] *** Aswebb_ has joined #angularjs
[12:28:56] *** krupnik has joined #angularjs
[12:29:06] *** yozilla has joined #angularjs
[12:30:15] *** sebhoss has quit IRC
[12:30:24] *** dannyc_ has joined #angularjs
[12:30:50] *** blackjid_ has joined #angularjs
[12:31:12] *** shaym_ has joined #angularjs
[12:32:49] *** tarnus has joined #angularjs
[12:32:54] *** atomatt has left #angularjs
[12:33:48] <sacho> obj['key']
[12:34:05] <sacho> or obj[$key]
[12:34:13] *** cbennett has quit IRC
[12:34:32] *** pknordic has joined #angularjs
[12:35:24] *** dc has joined #angularjs
[12:35:41] *** ngbot has joined #angularjs
[12:35:41] <ngbot> angular.js/master d8e3707 Wesley Cho: feat($compile): add support for ng-attr with camelCased attributes...
[12:35:41] *** ngbot has left #angularjs
[12:36:43] *** DLSteve has quit IRC
[12:38:16] *** tarnus has quit IRC
[12:39:22] *** intellix has quit IRC
[12:39:23] *** thalfeld has joined #angularjs
[12:39:23] *** DLSteve has joined #angularjs
[12:39:34] *** pknordic has quit IRC
[12:40:11] *** dannyc_ has quit IRC
[12:40:16] *** jaydubya has joined #angularjs
[12:41:26] *** cbennett has joined #angularjs
[12:41:41] *** cbennett has quit IRC
[12:41:44] *** Lingo__ has joined #angularjs
[12:42:10] <soee> what would be the best way to initialize auth module when app is loaded ?
[12:42:13] *** cbennett has joined #angularjs
[12:43:05] *** IJNX has quit IRC
[12:43:11] *** sk87 has joined #angularjs
[12:43:42] *** dsdeiz has quit IRC
[12:44:26] *** bkuberek has joined #angularjs
[12:44:36] *** MaxV has quit IRC
[12:44:46] *** TheAceOfHearts has quit IRC
[12:45:09] *** dc_ has joined #angularjs
[12:45:10] *** PC_ has joined #angularjs
[12:45:23] <PC_> hai
[12:45:33] *** RangeRick has quit IRC
[12:45:34] *** PC_ has quit IRC
[12:45:55] *** RangerRick has joined #angularjs
[12:46:30] *** pknordic has joined #angularjs
[12:46:37] *** StryKaizer has quit IRC
[12:47:27] *** yelvert has joined #angularjs
[12:47:38] *** josh-k has joined #angularjs
[12:48:45] *** dc has quit IRC
[12:49:27] *** bkuberek has quit IRC
[12:50:14] *** Mad-C has quit IRC
[12:50:54] *** ccohn has joined #angularjs
[12:51:10] *** jstroem has quit IRC
[12:51:38] *** jstroem has joined #angularjs
[12:52:11] *** mooru has joined #angularjs
[12:52:49] *** yelvert has quit IRC
[12:53:19] *** seriema_ has quit IRC
[12:53:30] *** sigurding has quit IRC
[12:53:44] *** tomphp has joined #angularjs
[12:53:46] *** seriema has joined #angularjs
[12:53:50] *** rafagomes has joined #angularjs
[12:54:22] *** glontu has joined #angularjs
[12:54:35] <glontu> hi
[12:54:42] *** qdk has joined #angularjs
[12:54:58] <glontu> i want my directive to be able to watch some variable on the controller scope but i can't get it to work
[12:55:04] *** rels has joined #angularjs
[12:55:17] *** ccohn has quit IRC
[12:55:37] *** ciwolsey_ has quit IRC
[12:55:49] <glontu> my directive has an isolated scope with {location: '='} and in the page i do <div location-gmap-directive callback="mapLocationChanged" location="{{location}}"></div>
[12:56:06] <glontu> but changing the $scope.location variable in the controller does not make the directive react
[12:56:22] <glontu> how should i do this properly ?
[12:56:27] <rels> Hey ! Any idea on how to properly watch a scope variable of a controller in a service ? I passed the scope to the service and the name of the variable to watch but it doesn't work when the var is not initialised :/
[12:56:32] <sacho> because the location attribute must hold an expression, not an interpolated value
[12:56:43] <sacho> try just location="location".
[12:56:43] *** PrinceAMD has joined #angularjs
[12:57:14] *** testin has quit IRC
[12:57:16] *** cbennett_ has joined #angularjs
[12:58:25] *** seriema has quit IRC
[12:58:31] *** chachan has joined #angularjs
[12:58:45] *** Aswebb_ has quit IRC
[12:58:59] <glontu> sacho, still not working. in my directive i have scope.$watch(location, function(){...}); which is not loging anything
[12:59:08] <glontu> should i watch scope.location or something else ?
[12:59:12] *** testin has joined #angularjs
[12:59:14] <sacho> why the hell are you watching it?
[12:59:33] <glontu> i'd like to do stuff when it changes
[12:59:37] *** cbennett_ has quit IRC
[12:59:59] <sacho> $watch also expects an expression. What's the contents of location in this case?
[12:59:59] *** Anton_ has quit IRC
[13:00:01] *** cbennett_ has joined #angularjs
[13:00:11] *** MaxV has joined #angularjs
[13:00:25] *** juanpablo_ has joined #angularjs
[13:00:25] <glontu> sacho {lat: ...., lng: .....}
[13:00:30] *** Left_Turn has quit IRC
[13:00:50] <sacho> well, watching an object literal is pointless
[13:01:03] <sacho> again, you want to pass an expression, e.g. 'location'
[13:01:04] *** cbennett has quit IRC
[13:01:20] *** brettfrable has joined #angularjs
[13:01:24] <sacho> but you're watching this value twice
[13:01:32] <glontu> so on the controller scope i should make a function that returns the object ?
[13:01:40] <sacho> no
[13:02:23] <glontu> can i set this up so that my directive does something when the controller $scope.location object changes ?
[13:02:34] *** _mtr has joined #angularjs
[13:02:44] *** chachan has quit IRC
[13:02:54] <sacho> sure
[13:03:09] *** Mad-C has joined #angularjs
[13:03:39] *** blomman has joined #angularjs
[13:04:07] <glontu> well i now put my controller like so : <div location-gmap-directive callback="mapLocationChanged" location="location"></div> and in the directive's isolate scope i have {location: '='}
[13:04:20] *** seriema has joined #angularjs
[13:04:53] *** juanpablo_ has quit IRC
[13:04:53] *** e0ipso is now known as e0ipso|away
[13:04:58] <glontu> my directive is a google map that is supposed to erase a marker and place a new one when the location changes so that i why i want to watch it ... i don't know how else to run functions when it changes
[13:05:30] <glontu> any sugestions ?
[13:06:08] *** bjorkman has joined #angularjs
[13:06:36] *** warpx has quit IRC
[13:06:39] *** foofoobar has quit IRC
[13:07:00] *** wsmoak has joined #angularjs
[13:07:25] *** jazib has joined #angularjs
[13:07:41] <sacho> you could also use '=', although that creates two watches
[13:07:42] <sacho> e.g.
[13:07:46] *** _mtr has quit IRC
[13:07:53] *** jazib has quit IRC
[13:08:03] *** Anton_ has joined #angularjs
[13:08:21] *** Hounddog has quit IRC
[13:08:21] *** simplyshipley has joined #angularjs
[13:08:37] *** Mad-C has quit IRC
[13:08:43] *** VictorBjelkholm has joined #angularjs
[13:08:58] <glontu> thanks sacho i'm testing this out right now
[13:09:05] *** Superhard__ has quit IRC
[13:09:22] *** Superhard has joined #angularjs
[13:09:24] <glontu> works great. thanks a lot
[13:09:38] *** simplyshipley has quit IRC
[13:09:45] *** mdcox has joined #angularjs
[13:09:50] *** Superhard has quit IRC
[13:10:15] *** swist has joined #angularjs
[13:10:43] *** Faizan has joined #angularjs
[13:11:11] *** testin has quit IRC
[13:11:36] *** edy_ has joined #angularjs
[13:11:59] *** prbc has joined #angularjs
[13:12:25] *** ngbot has joined #angularjs
[13:12:26] <ngbot> angular.js/v1.2.x a1e7eb6 Wesley Cho: feat($compile): add support for ng-attr with camelCased attributes...
[13:12:26] *** ngbot has left #angularjs
[13:12:44] *** jlebrech has quit IRC
[13:13:35] *** fairuz has joined #angularjs
[13:13:57] *** rchavik has quit IRC
[13:13:58] *** frobs has quit IRC
[13:14:42] *** edy has quit IRC
[13:14:59] *** shree has joined #angularjs
[13:15:28] *** shree has left #angularjs
[13:15:32] *** jtimon has joined #angularjs
[13:16:28] *** prbc has quit IRC
[13:17:01] *** cbennett_ has quit IRC
[13:17:01] *** rels has quit IRC
[13:17:17] *** Oxynum has joined #angularjs
[13:17:37] *** cbennett has joined #angularjs
[13:18:12] *** Mahonar has joined #angularjs
[13:18:13] *** whitebook has joined #angularjs
[13:18:32] *** Mahonar has quit IRC
[13:18:52] *** Faizan has quit IRC
[13:19:01] *** sacho_ has joined #angularjs
[13:19:18] *** cheef has quit IRC
[13:19:33] *** milka has quit IRC
[13:19:53] *** testin has joined #angularjs
[13:19:53] *** Txandy has joined #angularjs
[13:20:59] *** sigurding has joined #angularjs
[13:21:17] *** saucey has quit IRC
[13:22:00] *** jlebrech has joined #angularjs
[13:22:10] *** sacho has quit IRC
[13:23:37] *** aslate has quit IRC
[13:23:39] *** cornerma1 has joined #angularjs
[13:23:43] *** milka has joined #angularjs
[13:23:48] *** mooru has quit IRC
[13:23:57] *** tschundeee has quit IRC
[13:24:00] *** Lingo__ has quit IRC
[13:24:13] *** tschundeee has joined #angularjs
[13:24:18] *** warpx has joined #angularjs
[13:24:54] *** Mad-C has joined #angularjs
[13:25:15] *** mrru has quit IRC
[13:26:35] *** cornerman has quit IRC
[13:26:46] *** cornerma1 is now known as cornerman
[13:27:48] *** japhar81 has quit IRC
[13:28:03] *** whitebook has quit IRC
[13:28:03] *** mmealling has quit IRC
[13:29:31] *** __danimal__ has joined #angularjs
[13:29:49] *** Sebastien-L has quit IRC
[13:30:46] *** Sky[x] has quit IRC
[13:31:54] <erry> data.date.unix is 1417015516 , {{ alert.alerts.services['1417015516'] }} shows an array,
[13:31:58] *** sabrehagen has quit IRC
[13:32:06] <erry> but {{ alert.alerts.services[$data.date.unix] }} doesn't show anything
[13:32:11] <erry> how can i make this work?
[13:32:39] *** JFlash__ has joined #angularjs
[13:33:15] *** Left_Turn has joined #angularjs
[13:33:53] <JFlash__> why i keep getting this error that the injector could not inject the $state module into my controller?
[13:33:59] *** morenoh149 has quit IRC
[13:36:12] *** saucey has joined #angularjs
[13:37:32] *** cbennett has quit IRC
[13:38:32] *** sebhoss has joined #angularjs
[13:38:34] *** hecatonicosachor has joined #angularjs
[13:38:49] *** intellix has joined #angularjs
[13:39:04] *** SargoDarya has quit IRC
[13:39:05] *** hecatonicosachor is now known as sacho
[13:39:16] *** DLSteve has quit IRC
[13:39:36] *** warpx has quit IRC
[13:39:52] *** SargoDarya has joined #angularjs
[13:39:53] *** warpx has joined #angularjs
[13:39:55] *** sacho has quit IRC
[13:40:02] *** warpx has quit IRC
[13:40:19] *** nemothekid has joined #angularjs
[13:40:25] *** Beg has quit IRC
[13:40:43] *** cakirke has joined #angularjs
[13:40:58] *** Beg has joined #angularjs
[13:41:15] *** jstroem has quit IRC
[13:41:32] *** jstroem has joined #angularjs
[13:41:47] *** sacho_ has quit IRC
[13:41:57] *** basiclaser_ has quit IRC
[13:43:26] *** Ajans has joined #angularjs
[13:43:34] *** testin has quit IRC
[13:44:47] *** oncenull has joined #angularjs
[13:45:16] *** bkuberek has joined #angularjs
[13:45:22] *** jtimon has quit IRC
[13:45:39] *** lsiv568 has joined #angularjs
[13:46:07] *** dan2 has quit IRC
[13:46:10] *** opensourcegeek has joined #angularjs
[13:46:35] *** cheef has joined #angularjs
[13:46:48] *** jtimon has joined #angularjs
[13:46:51] *** busticated has joined #angularjs
[13:47:24] *** testin has joined #angularjs
[13:47:38] <opensourcegeek> hi guys - I have a question on best practice on performance
[13:47:55] *** blomman has quit IRC
[13:48:07] <JFlash__> opensourcegeek: good luck, man
[13:48:24] <JFlash__> opensourcegeek: all I can see here is idlers
[13:48:29] *** blomman has joined #angularjs
[13:49:06] <opensourcegeek> ha ha
[13:49:23] *** gruntjs has joined #angularjs
[13:49:28] <cheef> not all of us, some of us are busy!
[13:49:30] <cheef> :D
[13:49:37] <gruntjs> hello there
[13:49:39] <opensourcegeek> JFlas__: ha ha
[13:49:53] <cheef> guys, is it possible to access the transcluded content of a custom directive before its compiled (its a custom directive in itself)
[13:50:04] *** bkuberek has quit IRC
[13:50:41] *** investor_ has joined #angularjs
[13:50:47] <soee> i have a auth module with factory AuthenticationFactory and i can't use it anyway in app .run() callback function even if it is set to be injected
[13:50:56] <soee> any idea why this might happen ?
[13:51:06] *** dannyc_ has joined #angularjs
[13:51:14] <gruntjs> plnkr?
[13:51:35] *** mennea has quit IRC
[13:51:37] <gruntjs> verify that you injecty the module in the module definition
[13:51:40] *** ccohn has joined #angularjs
[13:51:55] *** investor_ has quit IRC
[13:52:31] *** sk87 has quit IRC
[13:52:56] *** sabrehagen has joined #angularjs
[13:52:57] *** Aswebb_ has joined #angularjs
[13:53:01] *** Mad-C has quit IRC
[13:53:10] *** cbennett has joined #angularjs
[13:53:26] *** phzon has quit IRC
[13:54:00] *** cbennett has joined #angularjs
[13:54:08] *** Raging_Hog has quit IRC
[13:54:24] <cheef> seems my issue is a child directive compiling before parent, eventhough its <parent><child>
[13:54:44] *** nerdgrass has joined #angularjs
[13:54:49] *** sabrehagen has quit IRC
[13:55:30] <JFlash__> I told you guys. there are only idlers here
[13:55:42] *** dannyc_ has quit IRC
[13:56:10] *** ccohn has quit IRC
[13:56:26] *** Raging_Hog has joined #angularjs
[13:56:31] <gruntjs> cheef:
[13:56:42] <gruntjs> did you use the compile function in your directive
[13:56:48] *** borvoh has joined #angularjs
[13:56:59] <gruntjs> it has arguments function(scope, element, attrs, transcludeFn)
[13:59:08] <cheef> ye, but because my transcluded content contains a custom directive, it gets compiled before the parent
[13:59:20] <cheef> so my transcluded content contains the template url for that directive
[13:59:34] *** AlSquirikou has joined #angularjs
[13:59:35] <cheef> i basically want to pass some attributes from my parent to my child
[13:59:40] *** swist has quit IRC
[13:59:43] <cheef> rather than having to repeat the attributes everywhere
[13:59:52] *** bengilli_ has quit IRC
[13:59:57] <gruntjs> and the compile function doesnt return that?
[13:59:59] *** chachan has joined #angularjs
[13:59:59] *** AlSquirrel has quit IRC
[14:00:24] *** tarnus has joined #angularjs
[14:00:27] *** bengillies has joined #angularjs
[14:00:50] *** guilbep has quit IRC
[14:00:52] <cheef> for example: <parent><child> where <child> has a a <label><input>, I get back <label><input> in the transcludeFn
[14:00:55] <cheef> instead of <child>
[14:01:06] <cheef> because the child directive has been compiled already
[14:01:14] *** cbennett_ has joined #angularjs
[14:01:33] <cheef> i guess i could grab the parent ctrl in the child directive, and configure in the pre
[14:01:41] *** vonnegut has quit IRC
[14:01:51] <gruntjs> use different
[14:01:55] <gruntjs> how do they call that
[14:01:57] <gruntjs> priority>\
[14:01:59] <gruntjs> maybe
[14:02:10] <cheef> possibly
[14:02:13] <cheef> ill try
[14:02:39] *** yottanami has joined #angularjs
[14:02:54] <cheef> althoguht thats meant for directives on the same elemenet
[14:03:08] *** azizur has quit IRC
[14:03:21] <gruntjs> maybe
[14:03:22] *** _mtr has joined #angularjs
[14:03:35] <gruntjs> there is the "terminal" property also
[14:03:39] <gruntjs> never used that either
[14:04:20] *** caitp has joined #angularjs
[14:04:24] *** cbennett has quit IRC
[14:04:35] *** chachan has quit IRC
[14:04:44] <cheef> in practice it seems quite trivial
[14:05:04] *** bengillies has quit IRC
[14:05:09] *** Embassy has quit IRC
[14:05:31] *** spatialbrew has joined #angularjs
[14:05:32] *** IvailoStoianov has joined #angularjs
[14:05:35] *** Embassy has joined #angularjs
[14:06:04] *** busticated has quit IRC
[14:06:13] *** akrikos has joined #angularjs
[14:06:46] <yottanami> I have a method named badge_processor that returns : [{"text":"Not Approved","color":"bg-yellow"}] but in this code `ng-repeat="in badge_processor(object)"` it run many times !
[14:06:52] *** Hounddog has joined #angularjs
[14:06:55] <yottanami> What is going wrong ?
[14:08:08] <yottanami> sorry the currect code is ` ng-repeat="badge in badge_processo`
[14:08:08] *** deny has quit IRC
[14:08:26] *** _mtr has quit IRC
[14:08:39] *** caitp has quit IRC
[14:09:40] <gruntjs> yes when you use functions it runs indefinitely
[14:09:54] <gruntjs> it should be avoided
[14:10:00] <yottanami> I used track by $index and now it works
[14:10:08] <gruntjs> yes
[14:10:21] *** roman has joined #angularjs
[14:10:24] <cheef> hmm, so how would i pass information to my child directives before they are compiled from the parent?
[14:10:38] *** storkme has left #angularjs
[14:10:41] *** Superhard has joined #angularjs
[14:11:53] *** swist has joined #angularjs
[14:12:08] *** Oxynum has quit IRC
[14:12:15] *** phzon has joined #angularjs
[14:12:45] *** hswolff has quit IRC
[14:12:48] *** prbc has joined #angularjs
[14:13:10] *** red_horned_rihno has joined #angularjs
[14:13:51] *** hswolff has joined #angularjs
[14:13:52] *** guilbep has joined #angularjs
[14:14:49] *** Superhard has quit IRC
[14:15:16] *** loverajoel has joined #angularjs
[14:15:37] *** Nijikoku_ has quit IRC
[14:17:25] *** prbc has quit IRC
[14:17:57] *** Oxynum has joined #angularjs
[14:18:44] *** aslate has joined #angularjs
[14:19:00] *** Sky[x] has joined #angularjs
[14:19:05] *** PeterMetz has quit IRC
[14:19:19] *** jshultz has joined #angularjs
[14:20:24] <AciD`> I used `npm install -g generator-angular-php && yo angular-php` to scaffold my app many months ago, but now I want to integrate Laravel into my project. Of course, the dir structure in not the same (not even psr-0 on angular-php), so what would be the best way to proceed for you ? Install a fresh Laravel and manually copy the existing files, and update the paths (that sounds awful :() ?
[14:21:06] *** krupnik has quit IRC
[14:21:07] *** ome has joined #angularjs
[14:21:30] *** saucey has quit IRC
[14:21:55] *** sk87 has joined #angularjs
[14:22:17] *** pedrosanta has quit IRC
[14:24:37] *** SexualRickshaw has joined #angularjs
[14:24:45] *** tristanp has joined #angularjs
[14:25:36] *** yottanami1 has joined #angularjs
[14:25:39] *** saucey has joined #angularjs
[14:25:49] *** yottanami has quit IRC
[14:26:10] *** mennea has joined #angularjs
[14:26:39] *** testin has quit IRC
[14:26:56] <yottanami1> gruntjs: But I have another ng-repeat that can not work after using track by $index for first looop
[14:28:12] *** azizur has joined #angularjs
[14:28:15] *** htmelvis has joined #angularjs
[14:29:20] *** nemothekid has quit IRC
[14:29:33] *** jmckind has joined #angularjs
[14:29:35] *** mmealling has joined #angularjs
[14:30:11] *** danecando has quit IRC
[14:30:13] *** ninkotech has quit IRC
[14:30:32] *** IJNX has joined #angularjs
[14:30:38] *** DanSkaggs has joined #angularjs
[14:30:40] *** mccarrontr1ck has joined #angularjs
[14:30:41] *** cakirke has quit IRC
[14:30:59] *** saucey has quit IRC
[14:31:28] *** lsiv568 has quit IRC
[14:31:44] *** lsiv568 has joined #angularjs
[14:31:53] *** Sebastien-L has joined #angularjs
[14:32:15] <cheef> sigh i give up with this, can't even share data from parent to child, the childs getting compiled before the parent and i think its to do with ng-transclude
[14:32:37] *** cbennett_ has quit IRC
[14:32:58] *** emanresu404 has joined #angularjs
[14:33:01] *** bayousoft has joined #angularjs
[14:33:24] *** foofoobar has joined #angularjs
[14:34:31] *** walden|afk is now known as walden
[14:34:38] *** cbennett has joined #angularjs
[14:35:03] *** fedenunez has joined #angularjs
[14:37:14] *** cbennett has quit IRC
[14:37:23] *** bayousoft has quit IRC
[14:37:38] *** testin has joined #angularjs
[14:37:40] *** brettfrable has quit IRC
[14:37:45] *** testin has quit IRC
[14:37:50] *** bayousoft has joined #angularjs
[14:37:51] *** cbennett has joined #angularjs
[14:37:58] <roman> I have two ng-includes in a template where I include the same template twice, but pass different variable values in the "onload" attribute. the problem is that they overwrite each other since they seem to share the same scope. does anyone know how I can solve that?
[14:38:39] *** whitebook has joined #angularjs
[14:39:23] *** shinnya has joined #angularjs
[14:39:28] *** ctanga has joined #angularjs
[14:39:28] <roman> basically I do onload="foo = 1" in one include and onload="foo = 2" in the other and in the target template I print it with "{{foo}}". the second foo passed overwrites the first one though
[14:40:07] *** testin has joined #angularjs
[14:40:08] *** Zentdayn has joined #angularjs
[14:40:09] <roman> what I need is to somehow scope the variables in the onload so they don't interfere with each other
[14:40:10] *** testin has quit IRC
[14:41:02] *** Milkweed has joined #angularjs
[14:41:50] *** bengillies has joined #angularjs
[14:42:15] *** aliocha has joined #angularjs
[14:42:33] *** saucey has joined #angularjs
[14:43:18] *** whitebook has quit IRC
[14:43:23] *** Alina-malina has quit IRC
[14:43:35] *** elrabin has joined #angularjs
[14:44:02] <bigx> hello, does anyone having trouble testing socket.io with karma? i've got a connection error, but the tests pass with mocha-phantomjs
[14:44:31] *** bjorkman has quit IRC
[14:46:05] *** bkuberek has joined #angularjs
[14:46:11] *** juanpablo_ has joined #angularjs
[14:47:13] <cheef> anyone?
[14:47:18] *** StryKaizer has joined #angularjs
[14:47:29] *** fedenunez has quit IRC
[14:47:36] *** fedenunez1 has joined #angularjs
[14:48:19] *** htmelvis has quit IRC
[14:48:34] *** cswelin has quit IRC
[14:49:14] *** Linell has joined #angularjs
[14:49:29] *** ASUChander has joined #angularjs
[14:49:30] *** Xaleph has joined #angularjs
[14:49:55] *** fbenoit has quit IRC
[14:50:16] *** fedenunez1 has quit IRC
[14:50:22] *** bkuberek has quit IRC
[14:50:32] *** IvailoStoianov has quit IRC
[14:50:41] *** juanpablo_ has quit IRC
[14:50:57] *** SargoDarya has quit IRC
[14:51:18] *** fedenunez has joined #angularjs
[14:51:53] *** yelvert has joined #angularjs
[14:52:20] *** ccohn has joined #angularjs
[14:52:25] *** bayousoft has quit IRC
[14:53:05] *** bayousoft has joined #angularjs
[14:53:05] *** emanresu404 has quit IRC
[14:53:20] *** emanresu404 has joined #angularjs
[14:53:59] *** seriema has quit IRC
[14:54:27] *** seriema has joined #angularjs
[14:55:06] *** juanlas has joined #angularjs
[14:55:26] *** bayousoft has quit IRC
[14:56:03] *** bayousoft has joined #angularjs
[14:56:33] *** ccohn has quit IRC
[14:57:02] *** jstroem_ has joined #angularjs
[14:57:07] *** jstroem has quit IRC
[14:57:07] *** dman777 has quit IRC
[14:57:28] *** yelvert has quit IRC
[14:57:46] *** dman777 has joined #angularjs
[14:58:21] *** fbenoit has joined #angularjs
[14:58:21] *** cboden has joined #angularjs
[14:58:24] *** danecando has joined #angularjs
[14:58:34] *** krad has quit IRC
[14:59:10] *** weems|mac has joined #angularjs
[14:59:18] *** seriema has quit IRC
[14:59:18] *** weems|mac has quit IRC
[14:59:18] *** weems|mac has joined #angularjs
[15:00:24] *** caitp has joined #angularjs
[15:00:37] *** ee99ee has quit IRC
[15:00:42] *** settinghead has joined #angularjs
[15:00:43] *** diosney has joined #angularjs
[15:01:17] *** ccohn has joined #angularjs
[15:01:27] *** bayousoft has quit IRC
[15:02:22] *** bayousoft has joined #angularjs
[15:02:43] *** roman has quit IRC
[15:02:50] *** rho_ has joined #angularjs
[15:02:50] *** rho_ has joined #angularjs
[15:02:53] *** settinghead has quit IRC
[15:02:55] *** annlewis has joined #angularjs
[15:03:01] *** i_am_nader has joined #angularjs
[15:03:11] *** cswelin has joined #angularjs
[15:03:12] *** fbenoit has quit IRC
[15:03:42] *** kayoone has joined #angularjs
[15:03:43] *** fedenunez has quit IRC
[15:04:12] *** d10n-work has joined #angularjs
[15:04:18] *** fedenunez has joined #angularjs
[15:05:57] *** Linell_ has joined #angularjs
[15:05:58] *** Milkweed has quit IRC
[15:06:04] *** dman777_alter has joined #angularjs
[15:06:09] *** sacho has joined #angularjs
[15:06:18] *** sjt003 has joined #angularjs
[15:07:25] *** testin has joined #angularjs
[15:07:31] *** nerdgrass has quit IRC
[15:07:50] *** richardlitt has joined #angularjs
[15:07:55] *** dmack has joined #angularjs
[15:08:45] *** whitebook has joined #angularjs
[15:10:14] *** cbennett_ has joined #angularjs
[15:11:35] *** japhar81 has joined #angularjs
[15:11:56] *** emanresu404 has quit IRC
[15:12:13] *** emanresu404 has joined #angularjs
[15:12:32] *** cbennett_ has quit IRC
[15:13:00] *** cbennett_ has joined #angularjs
[15:13:02] *** PeterMetz has joined #angularjs
[15:13:13] *** cbennett has quit IRC
[15:13:24] <cheef> is there a way to set up data binding in post link?
[15:13:31] *** prbc has joined #angularjs
[15:13:33] *** testin has joined #angularjs
[15:14:16] *** JFlash__ has quit IRC
[15:14:28] *** whitebook has quit IRC
[15:14:40] *** Alina-malina has joined #angularjs
[15:14:41] *** Alina-malina has joined #angularjs
[15:15:02] *** juanpablo_ has joined #angularjs
[15:15:26] *** nerdgrass has joined #angularjs
[15:15:31] *** whitebook has joined #angularjs
[15:15:50] *** Anton_ has quit IRC
[15:15:52] *** simplyshipley has joined #angularjs
[15:16:06] *** testin has quit IRC
[15:16:10] *** chachan has joined #angularjs
[15:16:35] *** BillCriswell has joined #angularjs
[15:17:31] *** milka has quit IRC
[15:17:42] <sacho> sure
[15:17:47] <sacho> all data bindings use watches
[15:17:55] *** testin has joined #angularjs
[15:17:55] *** dc has joined #angularjs
[15:18:09] *** prbc has quit IRC
[15:18:11] <dmack> merpnderp:
[15:18:20] <dmack> add a $stateChangeError handler, it'll catch resolve errors.
[15:18:34] *** dc_ has quit IRC
[15:18:52] *** cbennett_ has quit IRC
[15:19:32] *** cbennett has joined #angularjs
[15:19:50] *** cojack has quit IRC
[15:20:14] *** jmckind has quit IRC
[15:20:44] *** dsdeiz has joined #angularjs
[15:20:46] *** thalfeld has quit IRC
[15:20:59] *** Raging_Hog has quit IRC
[15:21:00] *** prosper_ has joined #angularjs
[15:21:08] <cheef> basically i have a tempate ng-model=ngModel where ngModel is an isolate scope. Normally ngModel is somehting like vm.obj.prop
[15:21:35] <cheef> however I want to make this dynamic, so in some circumstances I can update to vm.obj[index].prop
[15:22:26] *** mdcox has quit IRC
[15:22:29] *** bayousoft has quit IRC
[15:22:38] *** Zentdayn has quit IRC
[15:22:55] <caitp> cheef: you're gonna run into problems with that
[15:23:05] *** bayousoft has joined #angularjs
[15:23:12] <caitp> the #1 reason why you're gonna run into problems with it, is creating 2 instances of the ngModel controller
[15:23:21] <caitp> it's gonna confuse the hell out of you during test
[15:23:23] <caitp> tests
[15:23:33] <cheef> my use case is some form components, but i also want to reuse those components within an ng-repeat
[15:23:39] *** Siecje has joined #angularjs
[15:23:57] *** Anton_ has joined #angularjs
[15:24:14] *** jstroem_ has quit IRC
[15:24:31] *** jstroem has joined #angularjs
[15:24:31] *** FIFOd[a] has joined #angularjs
[15:24:32] <cheef> but the data binding needs to be bound to the index
[15:24:50] <caitp> harmony block-scoping shipping in v8 and spidermonkey soon
[15:24:59] <caitp> make sure to 'use strict' to get the benefits
[15:25:06] <dmack> so that'll be in node, right? oh, wait...
[15:25:08] *** e0ipso|away is now known as e0ipso
[15:25:18] *** richiebkr has joined #angularjs
[15:25:21] <caitp> since v8's sloppy block scoping is not gonna be implemented for a while due to fear of it breaking people :(
[15:25:21] *** emanresu404 has quit IRC
[15:25:23] *** richiebkr has quit IRC
[15:26:42] *** yottanami1 has left #angularjs
[15:26:42] *** ggrzybek is now known as ggrzybek_brb
[15:26:50] *** nerdgrass has quit IRC
[15:26:57] *** jmckind has joined #angularjs
[15:27:42] *** eBureau has joined #angularjs
[15:27:47] *** _45kb has joined #angularjs
[15:27:47] *** sojic has joined #angularjs
[15:27:58] *** drksvnt has quit IRC
[15:28:03] *** pilva has joined #angularjs
[15:28:31] <dmack> (don't do that, btw)
[15:28:38] <_45kb> hi, anybody knows how to change the url in browser without refreshing or re-rendering the directives and the ng-include?
[15:28:44] *** VictorBjelkholm has quit IRC
[15:28:51] *** tfennelly has quit IRC
[15:28:52] <sojic> Thanks!
[15:28:55] <_45kb> i tryed with history.replaceState() but i get a refresh
[15:29:27] *** lite_ has quit IRC
[15:29:28] *** IvailoStoianov has joined #angularjs
[15:29:55] *** Oxynum has quit IRC
[15:30:42] <dman777_alter> just to confirm....a value is a service, correct?
[15:31:40] *** drksvnt has joined #angularjs
[15:31:42] <sacho> you could say they are siblings
[15:31:47] <sacho> they're both specializations of a provider
[15:31:55] <dman777_alter> thanks
[15:32:11] *** pknordic has quit IRC
[15:32:12] <dmack> you guys are fixing that in 2.0 right caitp?
[15:32:23] *** walden is now known as walden|brb
[15:32:43] <_45kb> who is working on 2.0? caitp are you? :)
[15:32:43] <caitp> i hope we're fixing everything
[15:32:58] <caitp> well i should be since i'm supposed to give a talk on it in april
[15:32:59] *** drksvnt has quit IRC
[15:33:04] <caitp> but no i'm not yet
[15:33:06] <sacho> I heard angular 2.0 fixes global warming
[15:33:13] *** drksvnt has joined #angularjs
[15:33:45] <_45kb> oh ok :) i am corious about if there will be any chance to convert old 1.3 code to 2.0 in some easy way :)
[15:33:58] <caitp> no chance of that whatsoever
[15:33:59] *** drksvnt has quit IRC
[15:34:21] <_45kb> eheh we'll need a huge refactoring :P
[15:34:29] *** elrabin has quit IRC
[15:35:02] *** elrabin has joined #angularjs
[15:35:14] *** IJNX has quit IRC
[15:35:25] *** drksvnt has joined #angularjs
[15:35:50] *** plekplek has quit IRC
[15:35:55] *** drksvnt has joined #angularjs
[15:35:56] <_45kb> caitp: do you even know why they decided for so big changes? It looks to me that 2.0 is completely different ….
[15:36:17] *** seriema has joined #angularjs
[15:36:54] *** IJNX has joined #angularjs
[15:37:06] <dmack> _45kb: ES6
[15:37:46] *** FIFOd[a] has quit IRC
[15:37:50] <_45kb> dmack: cool
[15:38:00] <dmack> (at least that's a big driving factor)
[15:38:04] <dmack> and web components.
[15:38:17] *** FIFOd[a] has joined #angularjs
[15:38:25] <caitp> _45kb: some really stupid reasons, tbh
[15:38:38] <caitp> es6 doesn't make that big of a difference in it
[15:38:39] <_45kb> caitp: ehehhe
[15:38:43] *** Anonymous_ has joined #angularjs
[15:38:44] *** IJNX has quit IRC
[15:38:50] <cheef> can i access the $index of an ng repeat from inside a custom directive?
[15:39:12] *** ron1 has joined #angularjs
[15:39:13] <caitp> the main issue is, separating template component attributes from host attributes
[15:39:16] <_45kb> i am wondering how much time i'll need to refactor github repos and apps i've done :P
[15:39:43] <_45kb> caitp: that sounds cool
[15:40:01] <caitp> so to do that, we have this stupid template="microsyntax" attribute
[15:40:04] *** jdivock_ has joined #angularjs
[15:40:08] <caitp> which just strikes me as really bad
[15:40:22] <dmack> where's that github issue?
[15:40:27] <_45kb> :)
[15:40:31] *** IJNX has joined #angularjs
[15:41:04] *** Christer has quit IRC
[15:41:27] *** Superhard has joined #angularjs
[15:41:36] <_45kb> dmack: asking me?
[15:41:42] *** azizur has quit IRC
[15:41:59] <dmack> no, I remember there was (is) a really long github issue discussing the template stuff for 2.0
[15:42:00] *** walden|brb is now known as walden
[15:42:06] <_45kb> ah ok :)
[15:42:31] *** Christer has joined #angularjs
[15:43:12] *** sathishvikkas has joined #angularjs
[15:43:28] *** elrabin has quit IRC
[15:43:33] *** Sky[x] has quit IRC
[15:44:00] *** elrabin has joined #angularjs
[15:44:29] *** VictorBjelkholm has joined #angularjs
[15:44:32] *** edy_ has quit IRC
[15:45:15] *** macabre has joined #angularjs
[15:45:18] *** aslate has quit IRC
[15:45:28] <cheef> anyone? want to grab the current index of ng repeat inside a custom directive
[15:45:44] <_45kb> does $location.state replaces the browser url string?
[15:46:05] *** Superhard has quit IRC
[15:46:23] *** aslate has joined #angularjs
[15:46:50] <_45kb> trying $location.state(newUrl); but it seems doing nothing
[15:47:59] *** bkuberek has joined #angularjs
[15:48:05] *** devhoag has joined #angularjs
[15:48:39] *** bkuberek_ has joined #angularjs
[15:48:49] *** DanielKarp has joined #angularjs
[15:49:11] <jsheely|2> I have two directives on an element. That should work right?
[15:49:17] *** jsheely|2 is now known as jsheely
[15:49:23] *** ppppaul has quit IRC
[15:49:24] *** sk87 has quit IRC
[15:49:30] *** bayousoft has quit IRC
[15:49:31] <caitp> depends
[15:49:33] <jsheely> I keep getting the Multiple directives asking for new/isolated scope error
[15:49:48] <caitp> maximum one new scope, maximum one template
[15:50:03] *** bayousoft has joined #angularjs
[15:50:13] <jsheely> So by doing scope : { someVar: '=' } that is what is breaking it
[15:50:18] <caitp> although admittedly the code for detecting duplicate new scopes/templates is not very good and fails a lot
[15:50:31] *** jack10 has joined #angularjs
[15:50:32] *** mven has joined #angularjs
[15:51:14] *** drksvnt has quit IRC
[15:51:16] *** whitebook has quit IRC
[15:51:31] <jsheely> I guess I'm a little confused as I want to pass a value to my directive of the same name
[15:51:32] *** SargoDarya has joined #angularjs
[15:51:36] <jack10> Hey guys, im using ngStrap, and have some issues with an offcanvas col is this even implemented in ngStrap?
[15:51:46] <jsheely> Would it just make more sense to pull the value from the attrs then?
[15:51:47] *** rkjdid has quit IRC
[15:51:49] <burzum2> Is there any recommended way to validate a form on submit?
[15:52:11] *** _mtr has joined #angularjs
[15:52:12] *** whitebook has joined #angularjs
[15:52:17] *** bkuberek has quit IRC
[15:52:28] *** yozilla_ has joined #angularjs
[15:52:30] *** TyrfingMjolnir has joined #angularjs
[15:52:41]
<sojic> dmack, please check this one: http://jsfiddle.net/waLcL8r7/ How to "Inject" Date object in directive scope? Short intro: controller->scope.mp is array of objects received over api. trackTime is "sql" date format... I am creating directive to print a table, formating the date in "human readable" format.
[15:52:43] *** sirkitree|afk is now known as sirkitree
[15:52:57] *** sacho_ has joined #angularjs
[15:53:05] *** devhoag has quit IRC
[15:53:09] *** yozilla_ has quit IRC
[15:53:26] <chachan> guys, I have this: $scope.django = JSON.parse($('#django').text());
[15:53:42] *** yozilla_ has joined #angularjs
[15:53:58] *** yozilla has quit IRC
[15:54:11] <chachan> I want to put that line in most of my controllers, should I use a directive for that? (in order to about repeating code)
[15:54:14] *** ukko has quit IRC
[15:54:34] *** _45kb has quit IRC
[15:55:32] *** bayousoft has quit IRC
[15:55:35] *** mary5030 has joined #angularjs
[15:55:35] *** jaredwilli has joined #angularjs
[15:55:50] *** SargoDarya has quit IRC
[15:56:07] *** bayousoft has joined #angularjs
[15:56:37] *** sacho has quit IRC
[15:56:54] *** DanielKarp has quit IRC
[15:56:57] *** doug64k has quit IRC
[15:57:12] *** _mtr has quit IRC
[15:57:12] *** tomphp has quit IRC
[15:58:02] *** soee has quit IRC
[15:58:34] *** bayousoft has quit IRC
[15:58:52] <dmack> chachan: don't use DOM manipulation in controllers.
[15:59:01] *** bayousoft has joined #angularjs
[15:59:06] *** Oxynum has joined #angularjs
[15:59:09] *** Anton_ has quit IRC
[15:59:43] <chachan> dmack: yeah, I've heard that. So directive is my best option?
[15:59:46] *** evanjs has joined #angularjs
[16:00:00] *** azizur has joined #angularjs
[16:00:06] *** jdcasey has joined #angularjs
[16:00:19] <dmack> yes
[16:00:22] <dmack> sojic: sec
[16:00:31] <sojic> dmack, thanks
[16:00:36] *** sjt003 has quit IRC
[16:01:07] *** loverajo_ has joined #angularjs
[16:01:08] <jsheely> I'm puzzzled on this scope issue
[16:01:12] *** josh-k_ has joined #angularjs
[16:01:38] *** yozilla has joined #angularjs
[16:01:40] *** Aswebb_ has quit IRC
[16:02:03] <jsheely> wanted to do something like <div auto-width="{{size.Width}}" auto-height="{{size.Height}}" />
[16:02:17] <jsheely> I guess a directive that just does both probably would make sense
[16:02:19] *** WhatsInTheBoks has joined #angularjs
[16:02:20] *** Efrem has joined #angularjs
[16:02:29] <dmack> sojic: I'm still not sure why you need Date.parase
[16:02:31] <dmack> parse*
[16:03:12] <dmack> could do it like this
[16:03:22] *** yozilla has quit IRC
[16:03:28] *** Una has joined #angularjs
[16:03:32] <sojic> dmack, I have "sql" date format from the api... I want to "print" it in format: "10 Dec. 14 10:11"
[16:03:53] *** narutimateum has quit IRC
[16:04:05] *** josh-k has quit IRC
[16:04:15] <sojic> dmack, track.time is string from api, therefore I want to "convert" it in the directive.
[16:04:33] *** yozilla_ has quit IRC
[16:04:40] <sojic> I do not want to "iterate" in factory and replace time string to time object
[16:04:45] *** ciwolsey has joined #angularjs
[16:04:47] *** loverajoel has quit IRC
[16:04:50] *** FunnyLookinHat has joined #angularjs
[16:04:53] *** yozilla has joined #angularjs
[16:04:56] *** ansu has quit IRC
[16:04:56] *** shackleford has joined #angularjs
[16:05:09] <dmack> so do this
[16:05:17] *** ansu has joined #angularjs
[16:05:21] *** dave_boling has joined #angularjs
[16:05:24] *** jstroem has quit IRC
[16:05:32] *** shackleford has quit IRC
[16:05:36] *** manurg has joined #angularjs
[16:05:46] <dmack> well, either way you're going to have to convert it
[16:05:52] *** jstroem has joined #angularjs
[16:06:05] *** shackleford has joined #angularjs
[16:06:30] *** ali_ has quit IRC
[16:06:37] <sojic> dmack, thanks a lot!
[16:06:40] <sojic> link: do the trick
[16:07:20] *** Anton_ has joined #angularjs
[16:07:35] <dmack> cool
[16:07:49] *** sathishvikkas has quit IRC
[16:07:50] *** ctanga has quit IRC
[16:08:07] *** bmac has joined #angularjs
[16:08:19] *** rtpg has joined #angularjs
[16:08:43] *** Anton_ has quit IRC
[16:09:09] *** stryju has joined #angularjs
[16:09:26] <chachan> dmack: thanks
[16:09:29] <anderskristo> Hey, I have a form with different "steps", and i want to check if all fields in a "step" is valid. If they are valid the button that takes you to the next step in no longer disabled. How do i manage that? At the moment i have ng-disabled="myForm.$invalid", and that checks every field in the form..
[16:09:39] *** mrru has joined #angularjs
[16:09:49] <dmack> anderskristo: use ngForm to create subforms per step.
[16:09:56] *** doug64k has joined #angularjs
[16:10:26] <stryju> +1 @ dmack
[16:10:40] *** canthugeverycat has quit IRC
[16:11:23] <anderskristo> dmack: thanks!
[16:11:40] <dmack> sure
[16:12:32] *** Aswebb_ has joined #angularjs
[16:12:56] <jaydubya> hi, dmack. Do you remember on Sunday helping me to refactor my FeederFactory to prevent the copy-paste call of all of the methods?
[16:13:02] *** Oddman has joined #angularjs
[16:13:22] *** deanclkclk has joined #angularjs
[16:13:27] *** jstroem has quit IRC
[16:14:04] *** drksvnt has joined #angularjs
[16:14:16] *** prbc has joined #angularjs
[16:14:47] <dmack> hmm, I don't?
[16:14:52] *** Click66 has quit IRC
[16:14:54] <dmack> I dont think I was on Sunday :)
[16:16:09] <jaydubya> Maybe it was Saturday ... don't you like to return a get_object() from a factory that contains all member methods?
[16:16:18] *** Superhard_ has joined #angularjs
[16:16:36] *** bayousoft has quit IRC
[16:16:48] *** Anton_ has joined #angularjs
[16:17:13] <dmack> not ringing a bell :(
[16:17:15] *** pootpoot has joined #angularjs
[16:17:18] *** bayousoft has joined #angularjs
[16:17:20] *** s00pcan has joined #angularjs
[16:18:06] *** prbc has quit IRC
[16:18:23] *** prbc has joined #angularjs
[16:19:26] *** jagga has quit IRC
[16:19:39] <jaydubya> my apologies. I looked in the archive and it was moogey that helped me
[16:20:49] *** Superhard_ has quit IRC
[16:21:58] *** sk87 has joined #angularjs
[16:22:38] *** bayousoft has quit IRC
[16:23:09] *** bayousoft has joined #angularjs
[16:23:48] *** doug64k has quit IRC
[16:24:15] <tristanp> has anyone else had problems in ui router using $state.go inside of an onEnter of a state?
[16:24:24] <cheef> cna you transclude content into ng-repeat?
[16:24:26] *** settinghead has joined #angularjs
[16:24:30] <burzum2> Is there any recommended way to validate a form on submit?
[16:24:31] *** Christer has quit IRC
[16:25:00] *** reynierpm has joined #angularjs
[16:25:06] *** swist has quit IRC
[16:25:29] *** neilff has joined #angularjs
[16:25:36] *** reynierpm has left #angularjs
[16:26:08] *** cacts|wtf has joined #angularjs
[16:26:17] <cheef> burzum2: either with ng-submit, or a custom directive possibly that intercepts the submit, validates the form then does whatever afterwards
[16:27:24] *** Christer has joined #angularjs
[16:27:32] *** guilbep has quit IRC
[16:27:34] *** jlambert121 has quit IRC
[16:27:39] *** bostonaholic has joined #angularjs
[16:27:44] <burzum2> cheef ok thank you, im already using ng-submit, but how can I prevent the directives that are used on the elements to fire before the form is submitted?
[16:27:45] <jaydubya> I was taught to let a factory keep all the references to data it gets back from the server. And have a getObject() that returns an object of all the available data structures and was able to refactor a FeederFactory to do just that. The FeederFactory just harvests all of the dropdown lists for the application.
[16:27:52] *** bbankes has joined #angularjs
[16:27:58] *** Sawbones has joined #angularjs
[16:28:28] *** JeffBuhrt has left #angularjs
[16:28:32] *** dan2 has joined #angularjs
[16:28:32] *** swist has joined #angularjs
[16:28:43] <cheef> what directives do you want to prevent/
[16:28:47] *** swist has quit IRC
[16:29:04] <jaydubya> I wanted to do the same to my LoansFactory but I need parameters. The FeederFactory had no parameters since it was grabbing all the rows in the table. How do you handle parameters within a factory?
[16:29:07] *** jlambert121 has joined #angularjs
[16:29:17] *** fbenoit has joined #angularjs
[16:29:23] *** manurg has quit IRC
[16:29:24] *** dacuca has joined #angularjs
[16:30:13] <cheef> i create a cusotm directive for the submit event, i can do whatever then (like running validators), before deciding whether or not to submit the form
[16:30:42] *** drksvnt has quit IRC
[16:30:45] *** swist has joined #angularjs
[16:31:28] <jsheely> Brain just isn't grasping it today yet
[16:31:45] <cheef> is there a way to copy some html from inside a custom directive into an ng-repeat delcared in the directive tempalte?
[16:31:52] <cheef> its really busting my melon it sounds so straightforward
[16:32:09] <jsheely> cheef Are you looking for ng-include ?
[16:32:27] <cheef> not exactly
[16:32:53] <cheef> i have a form definition, and it may contain a collection (ng-repeat). i want the form definition to basically build that structure
[16:33:30] *** Milk_weed has joined #angularjs
[16:33:44] <jsheely> yea you lost me with your terms.
[16:33:59] <cheef> im probably explaining it badly
[16:33:59] *** foofoobar has quit IRC
[16:34:00] <jsheely> You're saying that the form actually contains an ng-repeat?
[16:34:06] <cheef> yes, sub forms
[16:34:21] *** ggrzybek_brb is now known as ggrzybek
[16:34:31] <cheef> as well as a button to add/remove items from that collection
[16:34:36] <jsheely> So you have something like $scope.form.subForm = "<div ng-repeat..."; ?
[16:34:37] *** MistahKurtz has joined #angularjs
[16:34:40] <cheef> i dont want my form controller to have that logic in
[16:34:52] *** mennea has quit IRC
[16:35:04] *** bengillies has quit IRC
[16:35:10] *** snapwich has joined #angularjs
[16:35:18] *** doug64k has joined #angularjs
[16:35:26] *** k-dawg has quit IRC
[16:35:41] <cheef> ye ill have a parent form, with some standard form components, then i have a collection of subforms thats dynamic
[16:35:46] *** DanielKarp has joined #angularjs
[16:35:49] <cheef> so you can add/remove/edit etc
[16:35:50] *** bengillies has joined #angularjs
[16:35:57] <cheef> wanted to put this into a directive
[16:36:04] <jsheely> But what is creating those "dynamic" forms? Where is the value?
[16:36:18] <jsheely> Ultimately it sounds like you just need to apply a sub controller to your sub forms
[16:36:32] <cheef> the form builder is dynamic
[16:36:53] <cheef> i did that before, it works, but it wasnt very flexible
[16:36:58] *** aniM has joined #angularjs
[16:37:23] *** Kay-z has joined #angularjs
[16:37:25] <jsheely> So the questions remains. Where are you storing the information?
[16:37:48] <cheef> on the parents scope
[16:37:57] <jsheely> $scope.masterForm ? Then contains a collection called $scope.masterForm.subFormOne?
[16:38:04] <cheef> yup
[16:38:14] <cheef> it all needs to be validated together
[16:38:21] <jsheely> Which subFormOne can contain a collection of things which present a form ?
[16:38:26] <cheef> yup
[16:38:34] <cheef> different things, or rather different types of components
[16:38:36] <aniM> Hey folks, I am creating an app which can have multiple layouts, like menu at leaft-search at right-content in middle or menu at right-search in menu-content at left and so on. I am wondering how do I structure my app. Please help.
[16:38:37] <cheef> its reusably
[16:38:45] <jsheely> So what's the problem with the master form generating that ?
[16:38:46] *** azizur has quit IRC
[16:38:51] *** ASUChander has quit IRC
[16:38:59] <cheef> not all my forms have that on it
[16:39:05] <jsheely> The type of components would I assume be your custom directives ?
[16:39:07] <aniM> I want to be able to easily add new layouts in future.
[16:39:24] <cheef> ye, but they are just simple directives for form controler
[16:39:27] <cheef> controls*
[16:39:34] <cheef> with a bit of additional config
[16:39:34] *** elrabin has quit IRC
[16:39:41] *** ColKurtz has joined #angularjs
[16:39:51] <cheef> the idea is the markup for the forms is very clear and configuration driven
[16:40:07] *** azizur has joined #angularjs
[16:40:10] *** elrabin has joined #angularjs
[16:40:36] <jsheely> STill working out your domain model in my head. But I haven't seen where the problem is with your formController rendering the content for the sub forms
[16:40:42] *** jonasliljestrand has quit IRC
[16:40:56] <cheef> it could render it sure
[16:40:59] *** CodeFriar has quit IRC
[16:41:00] <cheef> but then i'll have to manage it
[16:41:03] *** Xaleph has quit IRC
[16:41:06] <jsheely> Manage what?
[16:41:12] *** dcherman has joined #angularjs
[16:41:17] <cheef> adding/removing subforms
[16:41:18] <jsheely> your formController already knows about the subForms
[16:41:24] <cheef> it doesnt
[16:41:25] *** cbennett has quit IRC
[16:41:28] <jsheely> you said it does~
[16:41:38] <jsheely> $scope.masterForm.subFormOne
[16:41:40] <jsheely> !
[16:41:42] *** Kay-z has quit IRC
[16:41:47] *** a3gis has joined #angularjs
[16:41:56] <cheef> its not explicily defined
[16:42:02] <jsheely> Doesn't need to be
[16:42:05] *** adben has quit IRC
[16:42:12] <jsheely> Assuming it's a collection
[16:42:37] *** deanclkclk has quit IRC
[16:42:43] <cheef> it is
[16:42:46] *** ctanga has joined #angularjs
[16:42:46] *** busticated has joined #angularjs
[16:42:59] <jsheely> Then yea. Still not seeing your conundrum
[16:43:01] *** Torrieri has quit IRC
[16:43:13] *** Hounddog has quit IRC
[16:43:20] <jsheely> The master controller has some idea that a sub form can or will exist
[16:43:36] *** ppppaul has joined #angularjs
[16:43:40] *** Torrieri has joined #angularjs
[16:44:09] <cheef> i'll jsut use an ng-repeat
[16:44:14] <jsheely> I'm thinking your issue is that the subForm has a dynamic template ?
[16:44:19] <cheef> its all dynamic
[16:44:25] *** ColKurtz has quit IRC
[16:44:40] <jsheely> Careful with that word though.
[16:44:51] <cheef> the form controller just deals with capturing valiadting and submitting the data from a form configuration
[16:44:54] *** icfantv has joined #angularjs
[16:45:06] <cheef> that configuration contains a bunch of components, some simple, some complex (sub forms)
[16:45:35] *** azizur has quit IRC
[16:45:41] *** mica has joined #angularjs
[16:45:45] *** chrisbirk has joined #angularjs
[16:46:03] *** mica has left #angularjs
[16:46:18] <jsheely> Sure. But it's also responsible for knowing what form configurations are available. And if you don't want it to be. Then you'll need another directive / controller
[16:46:19] *** jack10 has quit IRC
[16:46:46] *** Sadin has joined #angularjs
[16:46:53] <cheef> aye ive build directives for all my componenets except a complex component which contains my simple components
[16:47:06] <cheef> which is basically an ng-repeat of components
[16:47:39] *** bayousoft has quit IRC
[16:48:02] *** deanclkclk has joined #angularjs
[16:48:11] *** bayousoft has joined #angularjs
[16:48:30] <cheef> all i wanted was to have it render a sub form, with the components id declared inside the custom element
[16:48:32] *** Xaleph has joined #angularjs
[16:48:33] *** jlambert121 has quit IRC
[16:48:40] <jsheely> Yea it seems straight forward in my head. $scope.masterForm.forms[0] = {components: [{type:'text', label:'First Name'}]}
[16:48:40] <cheef> and have two way data binding working
[16:48:47] *** ycodr has quit IRC
[16:48:54] *** ycodr has joined #angularjs
[16:48:55] <cheef> but its proving impossible
[16:48:55] *** elrabin has quit IRC
[16:49:31] *** MotherMGA1 has joined #angularjs
[16:49:34] *** m8 has joined #angularjs
[16:49:41] *** bayousoft has quit IRC
[16:49:50] *** JeffBuhrt has joined #angularjs
[16:50:22] *** bayousoft has joined #angularjs
[16:50:36] <cheef> i may as well right a plunkr showing what i want
[16:50:41] *** jlambert121 has joined #angularjs
[16:50:44] <jsheely> Usually safe
[16:50:48] <cheef> it wont work, but at least its better than me fumbling through an explanation
[16:53:46] *** azizur has joined #angularjs
[16:53:56] *** fabiofb has joined #angularjs
[16:54:01] *** warpx has joined #angularjs
[16:54:58] *** chrisbirk has quit IRC
[16:55:50] <jsheely> 213u=t20=g24=g2gu2g9=j2g=24tgj2=3gaj3erh=g24HG24G
[16:55:58] <jsheely> Freaking deep dirty checking
[16:55:59] <jsheely> UGH!
[16:56:02] <tristanp> maybe im missing something but how do you capture the current $state name in ui-router? Do you really have to listen to $stateChange and record it on rootscope?
[16:57:02] <ses1984> why is it that directives like ngSrc, ngClass, use camelCase in the docs but hyphen-case in html templates
[16:57:22] *** Solid1 is now known as Solid1_afk
[16:57:27] <jsheely> tristanp I believe you can assign it to the scope within the controller for the route
[16:57:34] *** Sadin has quit IRC
[16:57:35] *** avens has joined #angularjs
[16:57:56] *** scythe__ has joined #angularjs
[16:58:10] *** azizur has quit IRC
[16:58:35] *** elaijuh has joined #angularjs
[16:59:57] *** swist has quit IRC
[17:00:12] *** prbc has quit IRC
[17:00:19] *** aniM has quit IRC
[17:00:22] *** ianpirro has joined #angularjs
[17:01:01] <ses1984> sojic not sure what you're asking
[17:01:03] <ctanga> tristanp put $state on $rootScope, then use {{ $state.current.name }}
[17:01:13] <ctanga> for controller code, obviously
[17:01:25] *** cbennett has joined #angularjs
[17:01:34] *** akrikos has quit IRC
[17:01:38] *** cbennett has quit IRC
[17:01:45] <sojic> ses1984, I have array of something.... I'm using bootstrap, and I want to group "something" in each row 2 someting.
[17:01:55] *** whitebook has quit IRC
[17:01:59] *** balr0g_ has joined #angularjs
[17:02:19] <sojic> need: <div class="row">x, x</div><div class="row">x, x</row>.
[17:02:31] *** cbennett has joined #angularjs
[17:02:32] *** tfennelly has joined #angularjs
[17:02:39] <sojic> Currently <div class="row">x,x,x,x</div>
[17:02:49] <cheef> thats basically what i want
[17:02:51] <cheef> in terms of markup
[17:03:00] <cheef> but nothing works
[17:03:34] *** dacuca has quit IRC
[17:03:55] *** tfennelly has quit IRC
[17:03:57] *** swist has joined #angularjs
[17:04:37] <ses1984> sojic as far as i can tell that stackoverflow is not really relevant to your question. you don't actually want to group by any specific property, right?
[17:04:41] *** whitebook has joined #angularjs
[17:04:49] <ses1984> you want to just things in groups of two
[17:04:51] <ses1984> right?
[17:04:55] <sojic> yes
[17:05:32] <sojic> someting, group by 2
[17:05:38] <sojic> every 2
[17:05:58] <MotherMGA1> Hello, I have a checkbox input with ng-required, but then the model is set to true, its not getting checked. I can force it with ng-checked="{{ngmodel}}", but the form directive still considers it ng-invalid-required until you uncheck and recheck it again.
[17:06:02] <MotherMGA1> Suggestions?
[17:06:11] *** chrisshattuck has joined #angularjs
[17:06:52] *** ggrzybek is now known as ggrzybek_afk
[17:06:54] *** markalanevans has quit IRC
[17:06:58] <jsheely> @cheef Shouldn't your group directive contain the configuration of the form instead of doing textfield inline?
[17:07:01] <ses1984> do you mind if i ask why you want to do this, while i'm trying to work on it
[17:07:02] *** Foxandxss has joined #angularjs
[17:07:17] <cheef> ye its *slightly* trivialised
[17:07:18] <sojic> ses1984, is the question for me?
[17:07:21] <ses1984> yes
[17:07:22] <cheef> but the same problem exists
[17:07:32] <cheef> i think the issue is translcuding into ng-repeat
[17:07:34] <ses1984> i'm new to angular also so i'm trying to work through this but i also don't really know what i'm doing
[17:07:41] *** Christer has quit IRC
[17:08:25] *** CodeFriar has joined #angularjs
[17:08:30] <cheef> the trasncluded scope is the scope from where it was trasncluded from, not the ng repeat scope
[17:08:32] <jsheely> @cheef I'd make it exactly the way you want it instead of trying creating another problem
[17:08:40] *** jstroem has joined #angularjs
[17:08:47] <cheef> this is how i want it
[17:08:49] <ses1984> sojic i don't know how good of a solution this is, but what if in your controller you grouped mountpoints by two
[17:08:58] *** deanclkclk has quit IRC
[17:09:04] <cheef> group creates the subforms
[17:09:09] <jsheely> But it doesn't
[17:09:10] <cheef> using the form components defined in it
[17:09:16] <jsheely> You have the subForm in there
[17:09:40] <sojic> ses1984, bad solution, because I'm using the same "mountpoints" in another places.
[17:10:06] *** wooz86 has joined #angularjs
[17:10:19] <ses1984> so what, you can use still use the same mountpoints in other places if you have a separe mountpoint_by_two
[17:10:23] <jsheely> Doesn't really explain where you want your values either.
[17:10:37] <jsheely> I assume you want the model on the group to contain the values for the textfields ?
[17:10:55] <cheef> ye
[17:11:09] *** ciwolsey has quit IRC
[17:11:11] *** Superhard_ has joined #angularjs
[17:11:15] <wooz86> hey guys! I have this dropdown which is divided into optgroups with the help of "group by" in ng-options. But now I want to sort the optgroups alphabetically. How do I do that?
[17:11:23] <sojic> ses1984, I'll try
[17:11:36] <ses1984> i'm thinking of how you can do this, using filters
[17:11:47] <cheef> first things first, is tranclusion the only way to grab the content from inside group?
[17:12:25] *** fedenunez has quit IRC
[17:12:29] *** dacuca has joined #angularjs
[17:12:44] *** deanclkclk has joined #angularjs
[17:13:04] *** cthrax has joined #angularjs
[17:13:04] *** yelvert has joined #angularjs
[17:13:53] *** lsiv568 has quit IRC
[17:13:54] *** IJNX has quit IRC
[17:14:00] <jsheely> It's the only for a custom directive to contain child elements afaik
[17:14:38] *** bbankes has quit IRC
[17:14:44] *** prbc has joined #angularjs
[17:15:10] *** sonofdirt has joined #angularjs
[17:15:23] *** moogey has joined #angularjs
[17:15:30] *** ingsoc has joined #angularjs
[17:15:45] *** Una has quit IRC
[17:16:33] *** tfennelly has joined #angularjs
[17:16:43] *** leolrrj has joined #angularjs
[17:17:26] *** DLSteve has joined #angularjs
[17:17:37] *** cbennett has quit IRC
[17:19:02] *** doug64k has quit IRC
[17:19:13] *** lw has joined #angularjs
[17:20:01] *** ycodr has quit IRC
[17:20:09] *** bbankes has joined #angularjs
[17:20:36] <cheef> it 'sort of works'
[17:20:54] <ses1984> sojic...i have no idea if this would work...i'm new to angular
[17:21:00] <ses1984> i'm trying to test it in a real app now
[17:21:28] <jsheely> SO I think I see the problem
[17:22:00] <jsheely> But you want textfield... model='model.field1' instead of items.field1
[17:22:27] *** ycodr has joined #angularjs
[17:22:37] *** fedenunez has joined #angularjs
[17:22:43] *** bayousoft has quit IRC
[17:22:47] <cheef> id prefer field1
[17:22:50] *** _mtr has joined #angularjs
[17:22:56] <cheef> but im not sure if thats possible
[17:23:00] <cheef> on the fly
[17:23:15] *** jlambert_ has joined #angularjs
[17:23:24] *** bayousoft has joined #angularjs
[17:23:49] *** sojic has quit IRC
[17:23:50] <jsheely> It could be if you took your model and then applied each property directly onto the scope
[17:23:50] *** artisangoose has joined #angularjs
[17:24:01] <jsheely> by way of some loop in your group directive
[17:24:03] *** Oxynum has quit IRC
[17:24:09] <cheef> ye, i guess that would do it
[17:24:15] *** jlambert121 has quit IRC
[17:24:31] <ses1984> sojic fixing it a little more still...
[17:24:31] <jsheely> But yea I'm not sure why model doesn't work
[17:24:42] <jsheely> I feel like it should
[17:24:55] <ses1984> oh he left.
[17:25:00] <cheef> i can live with that for now
[17:25:08] <cheef> did you check the other example?
[17:25:09] *** Oxynum has joined #angularjs
[17:25:12] *** bkuberek has joined #angularjs
[17:25:15] <cheef> got it working with ng-repeat
[17:26:23] *** juanpablo__ has joined #angularjs
[17:26:35] *** juanpablo__ has joined #angularjs
[17:26:37] *** CodeFriar has quit IRC
[17:26:39] *** ishan1604 is now known as ishan1604_away_s
[17:26:55] *** Aliks has joined #angularjs
[17:26:57] *** ishan1604_away_s is now known as ishan|away
[17:27:01] *** arabot has joined #angularjs
[17:27:19] *** jagga has joined #angularjs
[17:27:42] *** nothingPT has quit IRC
[17:27:47] *** _mtr has quit IRC
[17:27:48] *** cbennett has joined #angularjs
[17:27:56] *** laurensclaessen has quit IRC
[17:27:59] *** cbennett has quit IRC
[17:28:12] *** wooz86 has quit IRC
[17:28:47] *** jagga_ has joined #angularjs
[17:28:55] *** cbennett has joined #angularjs
[17:29:06] *** sebhoss has quit IRC
[17:29:13] *** bkuberek_ has quit IRC
[17:29:22] *** bkuberek has quit IRC
[17:30:14] *** juanpablo_ has quit IRC
[17:31:03] *** Una has joined #angularjs
[17:31:16] *** richardlitt has quit IRC
[17:31:29] <cheef> right off home, probs be back laters
[17:31:35] *** mtsr has quit IRC
[17:31:39] *** gruntjs has quit IRC
[17:31:49] *** leolrrj has quit IRC
[17:32:00] *** werehuman has joined #angularjs
[17:32:02] *** bkuberek has joined #angularjs
[17:32:12] *** smuglr has joined #angularjs
[17:32:25] *** jagga has quit IRC
[17:32:30] *** richiebkr has joined #angularjs
[17:32:32] *** markalanevans has joined #angularjs
[17:32:58] <werehuman> hi
[17:33:03] <werehuman> i have a question
[17:33:24] *** prbc has quit IRC
[17:33:29] <werehuman> i know about the feature of passing a function to a directive using the '&'
[17:33:31] *** swist has quit IRC
[17:33:41] <werehuman> but is that possible to pass a list of functions?
[17:33:50] *** lsiv568 has joined #angularjs
[17:33:52] *** prbc has joined #angularjs
[17:34:20] <werehuman> like 'actions': '&' where actions contain a list of functions that are not on the directive but on the controller parent ?
[17:34:44] *** cheef has quit IRC
[17:35:55] *** bostonaholic has quit IRC
[17:36:10] *** LossFor has joined #angularjs
[17:36:17] *** azizur has joined #angularjs
[17:36:25] *** bostonaholic has joined #angularjs
[17:36:27] *** saucey has quit IRC
[17:36:33] *** yelvert has quit IRC
[17:37:01] *** yelvert has joined #angularjs
[17:37:11] *** sigurding has quit IRC
[17:38:07] *** Aliks has quit IRC
[17:38:48] *** elrabin has joined #angularjs
[17:39:25] *** oncenull has quit IRC
[17:39:38] <jaawerth> it'd be easier to just use '=' and pass in the collection yourself, and then $parse them and execute using scope.$parent
[17:39:53] *** oncenull has joined #angularjs
[17:39:57] *** lugzer has quit IRC
[17:40:04] *** devhoag has joined #angularjs
[17:40:06] <werehuman> i dont have scope.$parent
[17:40:13] <werehuman> since the directive is isolated
[17:40:27] <jaawerth> you still have scope.$parent when using isolate scope, your scope just isn't inheriting from it
[17:40:33] *** a3gis has quit IRC
[17:40:38] *** snurfery has quit IRC
[17:40:39] <jaawerth> you wouldn't want to do MUCH with it, but it's useful for stuff like that
[17:40:40] <werehuman> really
[17:40:51] <werehuman> ill try this
[17:40:54] *** SargoDarya has joined #angularjs
[17:41:03] <jaawerth> I kinda want to try it now too.. hehe
[17:41:13] *** eighty4 has joined #angularjs
[17:41:38] *** yelvert has quit IRC
[17:41:47] *** mzabriskie has joined #angularjs
[17:42:05] *** azizur has quit IRC
[17:42:23]
<eighty4> I'm trying to lazy load directives using https://github.com/ocombe/ocLazyLoad but it seems like a directive loaded after everything else won't trigger. Anyone have experiance with this?
[17:42:28] *** richardlitt has joined #angularjs
[17:43:28] *** Aliks has joined #angularjs
[17:43:29] <smuglr> Trying to punch above my weight .... I have a childApp module which contains various interconnected directives. The module is injected into my mainApp module. I want to pass an object with configuration data to the childApp from the mainApp. My best attempt (?) ... was to create a service in the childApp and use this in mainApp.config, but cant get this to work. Am I close?
[17:44:37] *** oncenull has quit IRC
[17:45:14] *** warpx has quit IRC
[17:45:14] *** SargoDarya has quit IRC
[17:45:19] *** merobertsjr has joined #angularjs
[17:45:42] *** mrru has quit IRC
[17:45:44] *** Aliks has quit IRC
[17:45:44] *** davidactualx has joined #angularjs
[17:46:08] *** yelvert has joined #angularjs
[17:46:17] *** subone has joined #angularjs
[17:46:35] *** rtpg has quit IRC
[17:46:40] <BahamutWC> smuglr: you cannot inject a service into the config block, only providers and constants
[17:47:01] <BahamutWC> I would recommend using a provider
[17:47:12] <subone> Under what circumstances would a REQUEST interceptor run AFTER a RESPONSE interceptor for the same request?
[17:47:35] *** jstroem has quit IRC
[17:47:47] *** prosper_ has quit IRC
[17:47:58] *** selva has joined #angularjs
[17:48:04] <subone> After the request came back, actually
[17:48:11] *** bkuberek has quit IRC
[17:48:15] <smuglr> Ah ok I thought reads somewhere a service was a subset of provider. What about using the service in the mainApp controller?
[17:48:17] <nickeddy> subone: you mean after the response came back?
[17:48:21] *** jstroem has joined #angularjs
[17:48:29] <subone> yeah
[17:48:38] *** bkuberek has joined #angularjs
[17:48:44] <werehuman> you would use a cached parameter
[17:48:45] <nickeddy> subone: is this for $http?
[17:48:47] <werehuman> something like
[17:48:51] <subone> yeah
[17:48:52] <werehuman> lastRequest = ...
[17:49:03] <werehuman> if (request == lastRequest) then ...
[17:49:10] <nickeddy> subone: might need to see some code because that shouldn't happen as far as i know
[17:49:14] *** zeroquake has joined #angularjs
[17:49:28] *** AngularUI has joined #angularjs
[17:49:29] <AngularUI> ng-grid/master aa47506 Brian Hann: Try to get tests running on SL again
[17:49:29] *** AngularUI has left #angularjs
[17:49:31] *** luckymeerza has joined #angularjs
[17:50:02] <selva> Is there any way to set expire time in AngularJS $localStorage or implement a retention policy to delete 30 days old data regularly
[17:50:18] *** deanclkclk has quit IRC
[17:50:19] <subone> NVM, OMG read it wrong, there is another request
[17:50:24] *** bkuberek has quit IRC
[17:50:39] <luckymeerza> hello
[17:51:30] *** luckymeerza has quit IRC
[17:51:40] <nickeddy> subone: :P
[17:51:47] <ingsoc> subone: are you sure it is the same request,
[17:51:54] <ingsoc> ok
[17:51:56] *** gurke_ has joined #angularjs
[17:52:01] <subone> sorry guys
[17:52:22] *** jstroem has quit IRC
[17:52:29] *** gkap has joined #angularjs
[17:52:36] <subone> and I found my issue :)
[17:53:04] <subone> There was a responseError that I was forgetting to reject before returning
[17:53:05] <werehuman> selva: you can implement a key in the LS that contain the creation Date, then when your app runs and the localstorage is expired, remove the data from the LS
[17:53:09] *** jdivock_ has quit IRC
[17:53:33] *** whiteboo_ has joined #angularjs
[17:53:34] *** tfennelly has quit IRC
[17:53:52] <werehuman> PS: I fixed my problem by implementing a function, "execute" in my controllers, and pass it to the directive using the '&'
[17:54:01] *** bkuberek has joined #angularjs
[17:54:16] *** warpx has joined #angularjs
[17:54:28] *** elrabin has quit IRC
[17:54:33] <selva> werehuman: could you please give more detail on this
[17:54:38] <ses1984> in an html template, what's the formal name of something to the right of a directive equals sign, with the quotes...
[17:54:39] *** Zeioth has joined #angularjs
[17:54:46] <ses1984> is that a directive parameter? argument?
[17:54:56] <werehuman> then in the directive i would call the execute function which would take a functionName, and call the function in the execution scope (the controller)
[17:55:02] <ses1984> like ng-repeat="x in my_array" , what is "x in my_array" called
[17:55:03] <selva> I am thinking, how does it will expire automatically when the creation data is added
[17:55:05] *** elrabin has joined #angularjs
[17:55:20] <selva> date*
[17:55:31] <werehuman> ses1984: ab exoressuib
[17:55:34] *** snurfery has joined #angularjs
[17:55:34] <werehuman> an expression
[17:55:35] *** chrisbirk has joined #angularjs
[17:55:36] <snurfery> sup yall
[17:55:45] *** jonasliljestrand has joined #angularjs
[17:55:53] *** neilff has quit IRC
[17:55:58] <werehuman> in html terms it is an attribute
[17:56:04] <ses1984> is it correct to refer to it as an expression, i thought expressions were always within double curly braces
[17:56:09] *** whitebook has quit IRC
[17:56:13] <werehuman> not at all
[17:56:13] *** jonasliljestrand has quit IRC
[17:56:28] <werehuman> double curly braces is just syntactic sugar for "ng-bind"
[17:56:33] <ses1984> ok so let's say it is an expression, it's an expression that's used as the argument of a directive?
[17:56:34] *** chrisbirk has quit IRC
[17:56:36] <ses1984> ahh i see
[17:56:40] *** neilff has joined #angularjs
[17:56:41] *** DLSteve has quit IRC
[17:57:03] <ses1984> ok well i'm asking because i want to make sure i'm asking my next question correctly. i'm having trouble using a custom filter in an expression passed to ng-repeat directive
[17:57:10] <werehuman> selva: it must be done in the context of your app of course
[17:57:27] <werehuman> i dont know if the native LS has an expiration feature
[17:57:31] *** olivvv has joined #angularjs
[17:57:37] *** scythe__ has quit IRC
[17:57:47] <werehuman> you should look in the html5 website for the specs
[17:58:01] *** lsiv568 has quit IRC
[17:58:04] *** deanclkclk has joined #angularjs
[17:58:17] <selva> werehuman: thanks, I will take look
[17:58:27] <ses1984> i think i must be doing something outside the bounds of what angular is expecting because when i try to put something like that in my app, i get a weird error that bubbles up from within angular
[17:58:30] *** snurfery has quit IRC
[17:58:30] <jaawerth> haha granted you'd want to pass in your actions using a scope var rather than a giant string in the view like I did there, but I thought it would be fun to test it that way
[17:58:32] *** jdivock_ has joined #angularjs
[17:58:39] <ses1984> i get "error: missing ; before statement angular.js:11383"
[17:58:42] *** luckymeerza has joined #angularjs
[17:58:43] *** devhoag has quit IRC
[17:58:52] <werehuman> i didnt know about the scope.$parent jaawerth
[17:58:59] <werehuman> but even though
[17:59:06] <werehuman> I wanted to do something like
[17:59:12] <jaawerth> hehe yeah, it's not something you run into something like that
[17:59:19] <jaawerth> er, run into often*
[17:59:32] <werehuman> myCtrl: $scope.actions = {'blabla': $scope.blabla, 'grunt': $scope.grunt }
[17:59:37] <jaawerth> I've been playing around with scopes lately though - like generating them manually and using them for specific things
[17:59:44] *** jdivock__ has joined #angularjs
[17:59:45] <Zeioth> Someone knows if it's possible to change $interpolateProvider only for a controller instead of the whole module?
[17:59:46] <werehuman> and in my html do "actions="actions""
[18:00:06] *** snurfery has joined #angularjs
[18:00:11] <olivvv> hi.
[18:00:15] *** blomman has quit IRC
[18:00:16] <jaawerth> well, you'd have to do it as a string - '&' actually works the same way
[18:00:24] <jaawerth> or an object of strings
[18:00:34] <jaawerth> rather
[18:00:37] *** nfroidure has quit IRC
[18:00:37] <werehuman> right
[18:00:44] <werehuman> because functions are not serializable in js
[18:00:48] *** blomman has joined #angularjs
[18:00:48] <olivvv> What should be done to ensure that a directive has run (transformed the dom) in protractor e2e tests ?
[18:00:53] <jaawerth> you could have the strings all be function calls though
[18:00:59] *** bradmaxs has joined #angularjs
[18:01:04] <werehuman> yes, the problem was
[18:01:05] *** neilff has quit IRC
[18:01:13] <werehuman> how to call them from inside the directive
[18:01:15] *** markalanevans has quit IRC
[18:01:18] <werehuman> so maybe
[18:01:36] <werehuman> $parse(actions.action)($scope.$parent)
[18:01:46] *** ome has quit IRC
[18:01:57] <werehuman> or even $parse(actions.action).call($scope,$parent, parameters)
[18:02:05] *** swist has joined #angularjs
[18:02:12] *** richardlitt has quit IRC
[18:02:16] *** luckymeerza has quit IRC
[18:02:20] <werehuman> other people on my team wouldnt understand though
[18:02:44] *** Solid1_afk is now known as Solid1
[18:02:45] <jaawerth> yeah, using $parse is getting into less common territory for a lot of people
[18:02:49] *** sigurding has joined #angularjs
[18:02:58] <jaawerth> then again, so is '&' really, it's just easier to use from the outside
[18:03:07] *** yts has quit IRC
[18:03:12] *** pipoo has joined #angularjs
[18:03:17] *** dan2k3k4 has quit IRC
[18:03:21] *** jdivock_ has quit IRC
[18:03:28] <werehuman> i think i just implemented the "command pattern"
[18:03:35] <werehuman> now that i think about it
[18:03:54] *** elrabin has quit IRC
[18:04:03] *** sonofdirt has quit IRC
[18:04:07] *** lsiv568 has joined #angularjs
[18:04:14] *** foofoobar has joined #angularjs
[18:04:35] <werehuman> its funny when you just implemented a design pattern that not long ago you thought would never use
[18:04:39] *** jdivock__ has quit IRC
[18:04:49] *** richiebk_ has joined #angularjs
[18:04:51] *** riseriyo has joined #angularjs
[18:05:14] *** azizur has joined #angularjs
[18:05:19] <nickeddy> werehuman: :) called patterns for a reason
[18:05:23] *** riseriyo has left #angularjs
[18:05:27] <BobbieBarker> can anyone recommend some resources on animations? Every time i fuck around with them, i get janky results.
[18:05:54] *** blomman has quit IRC
[18:05:55] <werehuman> nickeddy: right, but they were designed for OOP on the first place
[18:05:55] *** rud has joined #angularjs
[18:06:05] *** VictorBjelkholm has quit IRC
[18:06:06] <werehuman> I hardly stumble upon them in JS
[18:06:06] *** dave_boling has quit IRC
[18:06:18] <BobbieBarker> that's because JS has no class
[18:06:19] <BobbieBarker> lol
[18:06:25] *** Aswebb_ has quit IRC
[18:06:28] <jaawerth> it's getting there
[18:06:35] <BobbieBarker> ecma6
[18:06:36] *** settinghead has quit IRC
[18:06:52] <jaawerth> you can come pretty close with ecma5, lot of underutilized features
[18:06:58] <BobbieBarker> no doubt
[18:07:01] <werehuman> why, it has prototoyp
[18:07:02] *** settinghead has joined #angularjs
[18:07:04] <werehuman> protoype
[18:07:15] <BobbieBarker> well the powers that be have decided it would be better with classes
[18:07:17] <jaawerth> <3 Object.defineProperty
[18:07:19] <werehuman> sure inheritance is a mess
[18:07:19] *** settinghead has quit IRC
[18:07:25] *** settingh_ has joined #angularjs
[18:07:28] <BobbieBarker> i enjoy JS as it is
[18:07:41] *** NormySan has joined #angularjs
[18:07:42] <BobbieBarker> it's never really bothered me
[18:07:57] *** richiebkr has quit IRC
[18:07:57] <jaawerth> inheritance isn't that bad, it's just most devs don't really know how to do it properly
[18:08:10] <werehuman> you never worked in a very large application then BobbieBarker
[18:08:16] <dmack> can I just not return $q.all() and expect a promise?
[18:08:19] <werehuman> you dont imagine how many models i have
[18:08:25] <BobbieBarker> because this industry is full of hacks, and by hacks i mean tallentless sacks of shit
[18:08:29] <BobbieBarker> werehuman: yes
[18:08:33] <BobbieBarker> multiple large applications
[18:08:37] <jaawerth> also there are too many ways to do it, since new techniques have come into being as new features come into the spec
[18:08:39] *** fbenoit has quit IRC
[18:08:46] *** uris77 has joined #angularjs
[18:08:48] <werehuman> and you never used classeS?
[18:08:53] <werehuman> i mean, kind of
[18:08:54] *** whitebook has joined #angularjs
[18:09:00] *** snapwich1 has joined #angularjs
[18:09:03] <BobbieBarker> in the classical sense?
[18:09:04] *** lw has quit IRC
[18:09:06] <BobbieBarker> like with PHP?
[18:09:11] <werehuman> I just recenly learned about bject.create
[18:09:16] <werehuman> this is powerful
[18:09:17] <jaawerth> but writing a constructor and prototype, then inheriting with Object.create can get you pretty close
[18:09:25] *** MaxV_ has joined #angularjs
[18:09:25] *** MaxV has quit IRC
[18:09:31] <BobbieBarker> i've used classes in JS like extending objects and the like, but it wasn't a big deal
[18:09:33] <werehuman> BobbieBarker: yes
[18:09:37] <BobbieBarker> yeah ofc
[18:09:40] *** whiteboo_ has quit IRC
[18:09:47] *** markalanevans has joined #angularjs
[18:09:49] <BobbieBarker> prototype all day
[18:09:51] *** loverajo_ has quit IRC
[18:09:52] <werehuman> I have base classes, with interfaces and styuff
[18:09:55] <jaawerth> the trick is not to just extend the objects directly if you need to instantiate a bunch, because that's slow
[18:10:03] <BobbieBarker> i agree
[18:10:08] <BobbieBarker> and thats what i usually do now
[18:10:12] <jaawerth> same
[18:10:22] *** jacuqesdancona_ has quit IRC
[18:10:32] <nickeddy> what's the 'best practice' for having a function take in an arbitrary number of arguments?
[18:10:32] *** snapwich has quit IRC
[18:10:41] <BobbieBarker> ugh it's been awhile since i've done that
[18:10:53] <nickeddy> i kind of dislike using the `arguments`
[18:10:56] *** jacuqesdancona_ has joined #angularjs
[18:10:57] <BobbieBarker> you can do it with lodash
[18:10:58] *** ngbot has joined #angularjs
[18:10:58]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/0Uhj9g
[18:10:58] <ngbot> angular.js/master a808916 Brian Scoles: docs(guide/Expressions): fix grammar, flow and punctuation...
[18:10:58] *** ngbot has left #angularjs
[18:11:09] <zomg> nickeddy: having it accept an array of values can avoid some pitfalls with `arguments`
[18:11:10] *** jacuqesdancona_ has quit IRC
[18:11:19] *** jlebrech has quit IRC
[18:11:37] <nickeddy> yeah so far i'm seeing function (context) { } where context is just an object with params
[18:11:44] *** getn_outchea has joined #angularjs
[18:11:44] <nickeddy> i guess that works
[18:11:46] *** jacuqesdancona_ has joined #angularjs
[18:11:49] <BobbieBarker> anyone have any insight on my janky experience with animations? Specifically i've had problems with trying to slide things off the screen and have another element come in behind it
[18:12:03] <dmack> that's the easiest, but hard to follow if your comments/docs are horrible
[18:12:17] <nickeddy> dmack: oh they're awful. nah i'm going to jsdoc this :P
[18:12:22] <dmack> BobbieBarker: it's probably just css related
[18:12:29] *** prosper_ has joined #angularjs
[18:12:31] <BobbieBarker> no doubt dmack
[18:12:32] <werehuman> css sucks
[18:12:34] *** Guest22 has joined #angularjs
[18:12:40] *** jdivock_ has joined #angularjs
[18:12:43] <BobbieBarker> it's just a little unrully
[18:12:45] <werehuman> im glad we have a designer in my team\
[18:12:54] *** foofoobar has quit IRC
[18:13:00] <dmack> lol, i don't understasnd JS devs who don't get CSS
[18:13:03] *** m8 has quit IRC
[18:13:04] *** Anton_ has quit IRC
[18:13:05] <dmack> it's all just a part of the toolkit
[18:13:07] <jaawerth> with lodash it's as easy as function NewObj() { OldObj.call(this); }, NewObj.prototype = _.create(OldObj.prototype, {constructor: NewObj})
[18:13:09] *** ngbot has joined #angularjs
[18:13:09]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/g-bY5Q
[18:13:10] <ngbot> angular.js/master e50002b Grzegorz Marzencki: docs($resource): fix typo...
[18:13:10] *** ngbot has left #angularjs
[18:13:14] <nickeddy> getn_outchea: arr.data[0] is still defined even if it's "" i think
[18:13:15] <BobbieBarker> i don't not get css, i just prefer to not spend my time on it
[18:13:19] <werehuman> nickeddy: use .call
[18:13:30] <BobbieBarker> but i agree with you dmack it is apart of the skill set
[18:13:31] <werehuman> why is the chat window not scrolling automatically.......
[18:13:32] <dmack> the only thing that sucks with CSS is that there's no real scoping - shadow DOM hopefully will fix that
[18:13:32] *** AngularUI has joined #angularjs
[18:13:32] <AngularUI> ng-grid/master 8e6deaa Brian Hann: Fix bad js syntax
[18:13:33] *** AngularUI has left #angularjs
[18:13:51] *** sigurding has quit IRC
[18:13:51] <dmack> polymer already uses it, etc.
[18:14:00] <jaawerth> ehh CSS has a bunch of things I don't like
[18:14:13] <jaawerth> the whole clearing the lightbox, content breaking out of containers, etc
[18:14:21] <getn_outchea> nickeddy: i thought that too but i tried ng-disabled="arr.data[0] == false" - which should work cause of == - and that didn't work either
[18:14:21] <jaawerth> it's getting better, though, and I do like flexbox
[18:14:25] <werehuman> besides css feels like a hacky science
[18:14:35] <werehuman> people just use chrome dev tools and thats it
[18:14:47] *** Embassy has quit IRC
[18:14:47] <werehuman> no structure, no functions, nothing
[18:14:48] <BobbieBarker> css is one of those things that regardless of how you feel about it, you are going to have to use it, so you may as well jump on board with what ever the fuck they have going on
[18:14:54] *** Crumb has joined #angularjs
[18:14:56] <jaawerth> I almost always use SASS now
[18:15:04] <werehuman> it doesnt change
[18:15:06] <dmack> i haven't written raw CSS in years
[18:15:10] <BobbieBarker> less is the shit
[18:15:15] <BobbieBarker> i'm learning angular material
[18:15:19] <BobbieBarker> and flex lay outs atm
[18:15:19] <dmack> less is less powerful, if that's what you mean
[18:15:24] <dmack> :D
[18:15:32] <dmack> material uses sass, fwiw
[18:15:33] <jaawerth> nesting, mixins, functions, variables
[18:15:37] <jaawerth> makes life batter
[18:15:37] <BobbieBarker> dmack i know that
[18:15:45] <werehuman> jaawerth: yes for a programmer
[18:15:51] <werehuman> but designers dont know that stuff
[18:16:05] *** sk87 has quit IRC
[18:16:16] *** Pookz has quit IRC
[18:16:17] <werehuman> they just push padding, position absolute and that kind of shit
[18:16:19] <jaawerth> yeah well, I'm a one-man show (though that's going to change soon, thank god)
[18:16:28] *** dsdeiz has quit IRC
[18:16:28] <dmack> material looks really promising. the flex layout stuff is definitely good.
[18:16:31] <werehuman> until it looks like the psd and say "here"
[18:16:34] *** jdivock_ has quit IRC
[18:16:39] <jaawerth> I'm using material for a project right now
[18:16:42] *** jacuqesdancona_ has quit IRC
[18:16:43] <jaawerth> decided to risk it
[18:16:46] <dmack> nice
[18:16:54] <nickeddy> getn_outchea: oh. you're referencing arr.data.... that doesn't exist.
[18:16:54] <werehuman> still on semantic ui
[18:16:54] <dmack> what are your thoughts so far?
[18:16:58] *** kalz has quit IRC
[18:17:10] <werehuman> though since im not the designer i have nothing to say in the matter
[18:17:10] *** swist has quit IRC
[18:17:12] <jaawerth> it's nice but I don't like how much boilerplate it takes
[18:17:23] <jaawerth> I'm not a huge fan of directives where you pass everything in as attributes/strings
[18:17:25] *** ram_ has joined #angularjs
[18:17:29] <jaawerth> so your markup gets hideous
[18:17:32] <dmack> yeah, a lot of seems pretty heavy handed.
[18:17:39] <dmack> when really it's just applying a class
[18:17:59] *** oncenull has joined #angularjs
[18:18:05] <jaawerth> when I have time I'm going to build it myself and use the sass + code with some sparser directive syntax
[18:18:06] <dmack> werehuman: semantic UI looks nice, haven't seen that one
[18:18:28] <werehuman> tried it only once for an hackathon
[18:18:29] *** subone has left #angularjs
[18:18:32] <jaawerth> for now I'm just wrapping the common element groupings with my own directives
[18:18:42] <werehuman> but i didnt really changed the style
[18:18:47] <werehuman> just used it as is
[18:19:20] *** werehuman has quit IRC
[18:19:20] *** ram_ has quit IRC
[18:19:21] *** lsiv568 has quit IRC
[18:19:25] <dmack> does it have angular directives? or is just jquery garbage
[18:19:35] *** werehuman has joined #angularjs
[18:19:38] *** Leon has quit IRC
[18:20:08] <jaawerth> IIRC there are ng modules out there for it but I've never used them
[18:20:33] <nickeddy> if only js had *args and **kwargs
[18:20:49] <werehuman> lol dmack
[18:20:50] *** Embassy has joined #angularjs
[18:21:00] *** cheef has joined #angularjs
[18:21:01] <werehuman> i started a project like this some while ago
[18:21:01] *** VictorBjelkholm has joined #angularjs
[18:21:09] *** Anton_ has joined #angularjs
[18:21:14] <werehuman> didnt advanced well
[18:21:41] <BobbieBarker> jaawerth: you're using angular material for a project?
[18:21:52] *** jdivock_ has joined #angularjs
[18:21:58] <BobbieBarker> I'm building an internal tools app for my employer using angular materrial
[18:22:02] <BobbieBarker> atm
[18:22:11] <jaawerth> yeah, just started the real layout stuff though
[18:22:18] <BobbieBarker> bit of a mind fuck isn't it?
[18:22:19] <BobbieBarker> lol
[18:22:21] <dmack> they need to give more concrete examples of app layouts.
[18:22:27] *** mrru has joined #angularjs
[18:22:29] *** elrabin has joined #angularjs
[18:22:33] <dmack> the docs are decent, but they don't mix a lot of components together.
[18:22:33] <BobbieBarker> they do, but once you start to get the hang of it, it isn't that bad
[18:22:36] <BobbieBarker> it's actually quite simple
[18:22:43] <jaawerth> it is, though I recently taught myself all the flexbox spec
[18:22:47] <dmack> basically they just need to replicate the bootstrap docs
[18:22:51] <dmack> like
[18:22:53] <jaawerth> so that made it easier to swallow
[18:22:56] <BobbieBarker> for me it was a big mind fuck going from grids to flex lay outs
[18:22:58] <dmack> here's you you make a horizontal form
[18:22:59] <dmack> etc
[18:23:08] <jaawerth> as a side project I"m playing with my own dynamci flex layout generator directive(s)
[18:23:12] <dmack> I think that's a big part of it, yeah
[18:23:15] <ses1984> so i got this working in a fiddle...but when i try to add something similar to the tutorial app, i get weird errors that bubble up from angular.js
[18:23:17] <jaawerth> (nothing ready to share yet)
[18:23:19] <BobbieBarker> layout="row === horizontal form
[18:23:19] *** patrick99e99 has joined #angularjs
[18:23:21] <dmack> they make the assumption people understand flex layouts
[18:23:39] <ses1984> i keep getting, "Error: missing ; before statement" angular.js 11383
[18:23:39] <ingsoc> flex is the future
[18:23:40] <BobbieBarker> i'd agree with that dmack
[18:23:40] *** prosper_ has quit IRC
[18:23:45] <jaawerth> the trick is, I want the directives to check for browser compatibility with flex spec and fall back to JS when a browser has known issues with it
[18:24:05] <BobbieBarker> jaawerth: that's the advantage to this internal app. I don't have to give a fuck about fallback
[18:24:14] <ingsoc> not sure what is better about SASS v Less
[18:24:23] <dmack> old browsers can kindly fuck off
[18:24:24] <jaawerth> yeah, mine is also internal, which is nice since we have all modern browsers
[18:24:29] <ingsoc> I went with Less as it was the only option for bootstrap originally
[18:24:30] <jaawerth> but even IE11 has some flex issues IIRC
[18:24:44] <werehuman> ses1984: do you have an example?
[18:24:48] <werehuman> a plunker?
[18:24:52] <BobbieBarker> i didn't know that, internally almost everyone uses chrome and if they don't they can d/l it
[18:25:05] <jaawerth> um... sass is a little bit more robust, LESS is a bit cleaner and easier to learn and also JS-based, which has its advantages
[18:25:08] <BobbieBarker> ingsoc: imo it's just do you prefer JS syntax or ruby
[18:25:22] *** coffey has joined #angularjs
[18:25:24] <jaawerth> yeah I don't know how many people at my company use IE, I doubt it's many
[18:25:30] <jaawerth> lots of Chrome and FF
[18:25:34] <werehuman> lol
[18:25:35] *** Embassy has quit IRC
[18:25:40] <dmack> BobbieBarker: irrelvant. node-sass
[18:25:48] <jaawerth> well, most of the SASS I write nowadays is SCSS
[18:25:49] <dmack> uses lib-sass
[18:25:51] <BobbieBarker> dmack: i didn't know that was a thing
[18:25:56] *** doginal has joined #angularjs
[18:25:58] <ses1984> werehuman: let me see if i can push this to github or something
[18:26:00] <werehuman> in my company they still use ie for most of service
[18:26:06] <ingsoc> well I spose the using css braces etc. makes transition easier as normal CSS is understood
[18:26:08] <nickeddy> that's depressing werehuman
[18:26:10] <werehuman> most services
[18:26:12] <jaawerth> the syntax is still the same for .sass, but .scss is basically CSS3 syntax with extra magic
[18:26:16] <werehuman> its not that uncommon
[18:26:29] <ingsoc> I also use coffeescript
[18:26:35] <dmack> I write SCSS because I like brackets.
[18:26:37] <werehuman> lol coffeescript
[18:26:40] <dmack> i'm weird like that
[18:26:42] <ingsoc> which I view as just making JS more usable
[18:26:44] <ingsoc> :)
[18:26:45] <BobbieBarker> boo coffeescript
[18:26:45] *** MaxV_ has quit IRC
[18:26:47] <werehuman> i read coffeescript = "hipsterjs"
[18:26:50] <nickeddy> ^
[18:26:51] <dmack> ingsoc: you mean, less approachable?
[18:26:52] <jaawerth> I prefer brackets to indentation
[18:26:56] <ingsoc> this is what makes me laugh about development
[18:26:57] <nickeddy> i fkin hate coffeescript
[18:27:00] <BobbieBarker> i read coffeescript = i don't know how to write clean JS
[18:27:01] <ingsoc> it's religion
[18:27:05] <dmack> coffeescript is awful
[18:27:07] *** dmst has joined #angularjs
[18:27:08] <werehuman> like "i wrote cool javascript"
[18:27:09] <nickeddy> whitespace delimited = bleh
[18:27:10] *** MaxV has joined #angularjs
[18:27:11] *** gladely has joined #angularjs
[18:27:12] <BobbieBarker> and i need some one to tell me how to do it
[18:27:14] <dmack> go back to ruby
[18:27:15] <dmack> hipster
[18:27:21] <dmack> :D
[18:27:22] <BobbieBarker> lol
[18:27:24] <ingsoc> never programmed ruby in my life
[18:27:32] <dmack> and you like coffeescript?
[18:27:33] <dmack> wtf
[18:27:34] *** yozilla has quit IRC
[18:27:37] *** MaxV has quit IRC
[18:27:38] <nickeddy> mainly a python and js guy here
[18:27:50] <jaawerth> I have nothing against it, I just haven't used it enough to find it readable
[18:27:50] <werehuman> i also like coffeescript
[18:27:58] *** MaxV has joined #angularjs
[18:28:00] <werehuman> but its just for my own enjoyment
[18:28:04] *** Anton_ has quit IRC
[18:28:09] <werehuman> never used it in my real life projects
[18:28:13] <ingsoc> coffeescript is/has influenced ES6/7
[18:28:18] <dmack> when people post stuff on SO in javascript, but it's really coffeescript
[18:28:18] <werehuman> yes
[18:28:18] <ingsoc> so they are doing some things right
[18:28:28] <jaawerth> transpiled JS still makes me kinda nervous
[18:28:44] <BobbieBarker> it's just unecessary
[18:28:56] <nickeddy> arrow fns
[18:28:59] <nickeddy> so ugly
[18:29:00] *** Azerty4 has joined #angularjs
[18:29:01] <werehuman> but its cool :D
[18:29:04] <dmack> it's necessary for large teams. hence typescript/atscript, etc
[18:29:06] <Azerty4> Hi
[18:29:14] <BobbieBarker> hello
[18:29:16] <ingsoc> I would assert if you think CS is shit compared to JS (based on objective not subjective criteria) then you don't know coffeescript
[18:29:17] <werehuman> using comprehsneions loops
[18:29:18] <werehuman> omg
[18:29:21] <werehuman> its so awesome
[18:29:22] <nickeddy> dmack: totally understand type safety etc but the ugly crap of the language ugh
[18:29:24] <Azerty4> Is this the best way to handle multiple checkbox for same field filtering ?
[18:29:30] *** DanielKarp has quit IRC
[18:29:49] <werehuman> the real biggest problem of CS
[18:29:58] <werehuman> is the indentation based stuff
[18:30:04] <nickeddy> is that they chose CS for the acronym, it's counterstrike.
[18:30:05] <werehuman> and the removal of parenthesis
[18:30:10] *** MaxV has quit IRC
[18:30:29] *** ioudas has quit IRC
[18:30:46] *** ioudas has joined #angularjs
[18:31:18] <werehuman> and arrow lambda functions too
[18:31:28] <ingsoc> default args -, omprehencions, object/array unpacking, sane OOP, loads of pointless characters removed, help with scoping, prevention opf stupid unintentional things like global vars and coercing equality and top level global scope pollution
[18:31:31] *** Azerty4 has quit IRC
[18:31:31] <werehuman> especially for functional programming callbacks
[18:31:31] <ingsoc> tip of iceberg
[18:31:34] <werehuman> like map and reduce
[18:31:38] <BobbieBarker> Azerty4: that's fine, i would also maybe look at the angular strap project if it fits what you're doing
[18:31:46] *** annlewis has quit IRC
[18:32:05] <werehuman> ingsoc: at the contrary, scope handling in CS is awful
[18:32:09] <nickeddy> sorry but if code isn't readable by human it's worthless to me, and coffeescript seems to produce the most inane unreadable bullshit
[18:32:11] <ingsoc> alot of these things are how you should write JS anyway and also being added to ES6/7
[18:32:25] <ingsoc> i mean in practical terms
[18:32:25] *** robdubya has joined #angularjs
[18:32:28] *** sonofdirt has joined #angularjs
[18:32:30] <werehuman> yes
[18:32:30] <ingsoc> forgetting var = a
[18:32:35] <werehuman> ingsoc I agree
[18:32:37] *** Johnny13371337 has joined #angularjs
[18:32:37] <werehuman> but still
[18:32:37] <ingsoc> ert.
[18:32:45] <ingsoc> and also the top level soping
[18:32:46] <werehuman> removing parenthesis and semicolons
[18:32:48] *** jlambert_ has quit IRC
[18:32:53] <nickeddy> ^
[18:32:55] <ingsoc> we an all make up hypothetial shortomings
[18:32:56] *** doginal has quit IRC
[18:33:00] <ingsoc> that no sane dev would fall in to
[18:33:12] <ingsoc> removal of ==
[18:33:12] <werehuman> also the "@" for this
[18:33:15] <werehuman> awful
[18:33:31] <BobbieBarker> yes
[18:33:32] <werehuman> and the removal of the function word
[18:33:38] <BobbieBarker> double yes
[18:33:42] <nickeddy> i think there's a point when there's too much "sugar"
[18:33:42] <werehuman> other than that CS is awesome
[18:33:57] *** DLSteve has joined #angularjs
[18:34:13] <werehuman> especially comprehensions, classes, interpolations, the null-equality check thingie
[18:34:20] <werehuman> like
[18:34:22] *** warpx has quit IRC
[18:34:30] <werehuman> myObj?.data?.thingie
[18:34:36] <werehuman> GORGEOUS
[18:34:52] <ingsoc> without CS JS just is painful long winded featureless
[18:34:53] <werehuman> no more myObj && myObj.data && myObj.data.thingie
[18:34:56] <jaawerth> I'm actually using ngResource for this project too, since I'm working with an API that isn't particularly restful
[18:34:59] *** dacuca has quit IRC
[18:35:01] <ingsoc> soaking up null yeah
[18:35:04] <ingsoc> that is cool
[18:35:05] <ingsoc> in fact
[18:35:17] <nickeddy> wtf
[18:35:18] <werehuman> hope it made thru ES6 though
[18:35:25] <jaawerth> blahblah/api/someReq?=bunchofweirdparams
[18:35:25] <BobbieBarker> if you want to look at complete shit API's i just had to integrate into healthcare.gov's web broker API
[18:35:25] <ingsoc> skim that
[18:35:38] *** StryKaizer has quit IRC
[18:35:49] <jaawerth> BobbieBarker: did you a pure service with $http or something else?
[18:35:52] <werehuman> if we could only take a bunch of CS features
[18:35:53] *** prbc_ has joined #angularjs
[18:35:54] <ingsoc> tbh i might eventually switch to clojurescript
[18:35:59] <nickeddy> oh god
[18:36:02] *** scythe__ has joined #angularjs
[18:36:04] <werehuman> and still being able to use function(), var and this
[18:36:04] *** prbc has quit IRC
[18:36:08] <werehuman> CS would be the best
[18:36:09] *** Anton_ has joined #angularjs
[18:36:09] <BobbieBarker> $http and all the dark magic had to happen in the back end, their API uses SOAP && SAML
[18:36:12] <werehuman> but.
[18:36:23] <jaawerth> I considered just using $http and $interpolate to build the URL
[18:36:23] <BobbieBarker> and a standard webform
[18:36:31] *** kalz has joined #angularjs
[18:36:33] <jaawerth> but decided ngResource should be able to handle it for the most part
[18:36:40] <BobbieBarker> form action="" method=""
[18:36:43] *** iShortBus_ is now known as iShortBus
[18:36:45] <nickeddy> jaawerth: can't recommend using $resource
[18:36:46] <BobbieBarker> value=""
[18:37:13] <BobbieBarker> jaawerth: that internal tool i'm building is using firebase as the back end
[18:37:14] <BobbieBarker> it's the shit
[18:37:20] *** Aswebb_ has joined #angularjs
[18:37:31] <jaawerth> nickeddy: why? I've avoided it up until now but it looks fairly simple, just $http with some url interpolation
[18:37:35] <werehuman> btw did someone used sockets?
[18:37:43] <nickeddy> jaawerth: doesn't use promises correctly
[18:37:54] *** cbennett has quit IRC
[18:38:01] <jaawerth> can't you just avoid that with .$promise? or is even that broken?
[18:38:11] *** lexek__ has quit IRC
[18:38:27] *** mclenithan has joined #angularjs
[18:38:28] <nickeddy> crappy workaround imo
[18:38:46] <ingsoc> anyone looked at any other transpiled languages
[18:38:51] <ingsoc> just wondering
[18:38:58] <nickeddy> nope js > all ingsoc
[18:39:07] <jaawerth> why? you can just wrap it in a service - the resource gives you the raw data when ready but you can just return the $promise from the service call
[18:39:16] <jaawerth> it's like $http only it handles more stuff for you automatically
[18:39:17] <werehuman> ingsoc: yeah scala
[18:39:21] <ingsoc> lol oh dear you're gonna have a rough time in IT then
[18:39:27] <nickeddy> jaawerth: because you don't have to with Restangular or $resource
[18:39:54] <nickeddy> ingsoc: i'm plenty fluent in other languages, tell me when CS actually runs in browser
[18:39:56] <jaawerth> don't have to wrap?
[18:40:01] *** mattvv has joined #angularjs
[18:40:11] <ingsoc> nickeddy: i don;t are about CS
[18:40:11] <nickeddy> jaawerth: err i meant Restangular or $http
[18:40:24] <ingsoc> i was just saying it makes JS suk less
[18:40:25] <nickeddy> jaawerth: but yeah, they return promises by default
[18:40:31] *** phzon has quit IRC
[18:40:33] <jaawerth> well you'd be wrapping $http anyway
[18:40:37] <jaawerth> unless you're crazy
[18:40:38] <ingsoc> don't are*
[18:40:44] <nickeddy> i don't think JS sucks
[18:40:44] <ingsoc> care* omg
[18:40:51] <ingsoc> keyboard problems
[18:40:52] *** ianpirro has quit IRC
[18:41:05] *** fabiofb has quit IRC
[18:41:08] <ingsoc> ok, i mean, in my opinion it helps overome some JS shortomings
[18:41:24] *** garbanzio has joined #angularjs
[18:41:25] <ingsoc> it is far from being my favourite language
[18:41:27] *** jdivock_ has quit IRC
[18:41:33] <werehuman> i think its hypocrite to say that js > all when you dont write in pure vanilla JS
[18:41:35] *** atomi has quit IRC
[18:42:00] *** sonofdirt has quit IRC
[18:42:09] <werehuman> i have someone in my company who only writes vanilla JS
[18:42:09] <nickeddy> how am i not writing in vanilla JS? this library is written in JS
[18:42:17] <werehuman> except for things such as ajax requests
[18:42:29] *** Kyle has joined #angularjs
[18:42:29] <dmack> werehuman: document.getElementById ftw
[18:42:36] <jaawerth> libraries are a part of every programming language
[18:42:39] *** kuadrosx has joined #angularjs
[18:42:39] <nickeddy> ^
[18:42:43] <BobbieBarker> JS is my favorite language
[18:42:54] <dmack> my favorite language is angular
[18:42:54] *** Kyle is now known as Guest98520
[18:42:57] <dmack> wait
[18:42:58] *** atomi has joined #angularjs
[18:43:00] <BobbieBarker> lol
[18:43:04] <werehuman> yes but we are not talking about simple libraries
[18:43:10] <werehuman> we are talking about frameworks
[18:43:15] <dmack> you mean like Spring MVC?
[18:43:18] <dmack> or Rails?
[18:43:22] <nickeddy> werehuman: you can say that about ANY language
[18:43:23] <nickeddy> so no
[18:43:28] <BobbieBarker> if you guys want a good laugh check this out
[18:43:35] *** iribarne has joined #angularjs
[18:43:39] <dmack> lol, that article is such troll bait
[18:43:42] <werehuman> how many people know what is Object.create? Array.prototype.slice? etc
[18:43:49] <ingsoc> I don't agree that using angular means you don't use pure JS
[18:43:52] <ingsoc> that is stupid
[18:43:52] <Guest98520> Easy question - by just including angular sanitize, will it strip script injection in all my inputs? Or do I have to manually go through and sanitize every input?
[18:44:01] <nickeddy> BobbieBarker: or, how to use js and angular incorrectly?
[18:44:02] <werehuman> its not the point out there ingsoc
[18:44:03] <ingsoc> your app is written in JS the library is a small part of it
[18:44:17] *** MotherMGA1 has left #angularjs
[18:44:18] <werehuman> i mean its hypocrite to devalue writing in CS saying its not javascript
[18:44:34] *** ishan|away is now known as ishan
[18:44:35] <nickeddy> werehuman: no you were talking about vanilla js
[18:44:46] *** sonicparke|bradm has joined #angularjs
[18:44:49] *** sonofdirt has joined #angularjs
[18:44:57] *** deanclkclk_ has joined #angularjs
[18:45:02] <werehuman> exactly
[18:45:12] <nickeddy> and you said no one uses vanilla js which is total bullshit
[18:45:18] <dmack> " I get all sorts of backlash about how I suck at programming."
[18:45:21] <werehuman> i didnt say that
[18:45:22] <dmack> lol
[18:45:31] *** jaredwilli has quit IRC
[18:45:33] <nickeddy> 10:41 < werehuman> i think its hypocrite to say that js > all when you dont write in pure vanilla JS
[18:45:44] <werehuman> so?
[18:45:49] <werehuman> this is what i meant
[18:46:01] <nickeddy> lol "so?" best response ever
[18:46:05] <werehuman> if you can use a level of abstraction through a framweork
[18:46:27] <werehuman> why is that bad to use another level which is a transpiled language
[18:46:42] <nickeddy> i'm not saying it is, but for ME, it's harder to read and understand what's happening
[18:46:48] <nickeddy> therefore it's less useful for me
[18:46:53] <Guest98520> Ping - anyone here know the answer to my question? Easy question - by just including angular sanitize, will it strip script injection in all my inputs? Or do I have to manually go through and sanitize every input?
[18:46:55] *** zemanel has joined #angularjs
[18:46:56] <nickeddy> just stating how i see it
[18:47:08] <werehuman> i agree with you nickeddy
[18:47:23] <ingsoc> he didn't say no-one writes vanilla js, but he did imply you didn't write in vanilla JS os you were using angular (presumably ?)
[18:47:25] *** cheef has quit IRC
[18:47:32] <icfantv> random question for anyone using 64-bit chrome on a mac: do you have servers at work with unsigned certificates such that you get the warning when you visit an https site? if so, are you able to bypass it?
[18:47:38] <dmack> i use for loops, so i write in vanilla JS
[18:47:45] <nickeddy> lol
[18:48:04] <nickeddy> i'm using javascript as the language for my front end, so i write in vanilla JS sometimes
[18:48:15] <maraneta> i'm trying to use protractor to test multiple urls for my e2e tests... i'm first testing foo, and then bar. however, my page runs browser.get('bar') before all the tests on the first page are complete... how can I fix this?
[18:48:17] <nickeddy> sure, a lot of it is abstracted by angular
[18:48:17] <Guest98520> jaawerth: awesome thanks so much
[18:48:18] <jaawerth> yeah, I don't get why people so infrequently use native for loops for arrays, since they're so much faster
[18:48:23] <nickeddy> but that's the god damn point
[18:48:24] <ingsoc> nickeddy: yes, I think you an take cs too far
[18:48:30] <jaawerth> forEach makes sense for objects, not so much for arrays
[18:48:38] <nickeddy> jaawerth: lodash can do either fast as fuck
[18:48:41] <dmack> jaawerth: a lot of the times the performance is negligible
[18:48:46] <BobbieBarker> lodash is fucking awesome
[18:48:47] <ingsoc> can*
[18:48:50] <dmack> readability > performance, lots of times.
[18:48:50] <jaawerth> nickeddy: lodash is still a lot slower than native for
[18:48:53] <jaawerth> IIRC
[18:48:58] <dmack> yeah
[18:49:01] <jaawerth> but that's true, it's often negligible
[18:49:01] <dmack> but how much slower?
[18:49:02] <nickeddy> jaawerth: let me go find some benchmarks
[18:49:05] <BobbieBarker> lodash is faster than native
[18:49:06] *** ianpirro has joined #angularjs
[18:49:10] <dmack> wut
[18:49:17] <jaawerth> compared to native forEach
[18:49:20] <jaawerth> not compared to a for loop
[18:49:39] <BobbieBarker> also lodash adds readability in my opinion
[18:49:44] <nickeddy> ^
[18:49:46] <dmack> yes
[18:49:52] *** AngularUI has joined #angularjs
[18:49:52] <AngularUI> ng-grid/master 1e98d62 Brian Hann: Remove explicit selenium version option
[18:49:53] *** AngularUI has left #angularjs
[18:49:59] <nickeddy> far more concerned with the next guy taking over my project than 3ms of performance here and there
[18:50:01] *** davidactualx has quit IRC
[18:50:07] <BobbieBarker> i agree
[18:50:11] <werehuman> ses1984: which version of angular are you running
[18:50:14] <dmack> if you cared about performance you'd use pure vanilla js amirite
[18:50:17] *** jstroem has joined #angularjs
[18:50:26] <nickeddy> dmack: nah assembly
[18:50:36] *** lexek__ has joined #angularjs
[18:50:39] <Crumb> can you continue in a lodash forloop though?
[18:50:44] <werehuman> never mind i have my answer
[18:50:48] <ses1984> werehuman AngularJS v1.3.2
[18:50:51] *** ngbot has joined #angularjs
[18:50:51]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/RjevoQ
[18:50:51] <ngbot> angular.js/master 3b5ba87 Pawel Kozlowski: refactor($http): drop superfluous argument to sendReq...
[18:50:51] *** ngbot has left #angularjs
[18:50:53] *** ianpirro has quit IRC
[18:51:09] <ingsoc> I though now with all the super fast JS implementations out there that we would be over doing premature optimisations anyway
[18:51:20] *** RobinBAwesome has joined #angularjs
[18:51:21] <nickeddy> yeah
[18:51:30] <dmack> most people are
[18:51:38] <nickeddy> optimization requires a lot of profiling for it to be effective at all
[18:51:40] <jaawerth> and that isn't a premature optimization
[18:52:17] <nickeddy> jaawerth: that's an old ass version of lodash
[18:52:24] <jaawerth> if you're dealing with an array, a simple for loop is no less reliable than forEach, and it isn't a "clever" hack to improve performance at the cost of simplicity, it's one of the basic patterns of programming
[18:52:42] *** SargoDarya has joined #angularjs
[18:52:44] *** jlambert121 has joined #angularjs
[18:52:47] *** Solid1 is now known as Solid1_afk
[18:52:52] *** ianpirro has joined #angularjs
[18:53:15] *** topi has quit IRC
[18:53:26] *** mmealling has quit IRC
[18:53:27] *** lsiv568 has joined #angularjs
[18:53:32] <jaawerth> nickeddy: so it is. I'll update it
[18:53:39] *** kirfu has joined #angularjs
[18:53:48] *** IvailoStoianov_ has joined #angularjs
[18:54:12] <werehuman> i also have an error ses1984
[18:54:20] <werehuman> willl look into it
[18:54:33] *** richiebk_ has quit IRC
[18:54:54] *** cheef has joined #angularjs
[18:54:59] *** richiebkr has joined #angularjs
[18:55:04] <ses1984> i really like angular, but like many frameworks...if you do something slightly wrong and you cause an error within the framework it can be really hard to pinpoint
[18:55:17] *** IvailoStoianov has quit IRC
[18:55:22] *** IvailoStoianov_ is now known as IvailoStoianov
[18:56:19] <nickeddy> jaawerth: yeah native for can be fast but look at how god damn ugly that is. you have to do caching and weird shit to get it to be that performant
[18:56:29] <ingsoc> ses1984: take baby steps, always use version control and always test on changes and always watch the JS console is the way to do client side web dev
[18:56:52] <BobbieBarker> i agree with nickeddy
[18:56:58] *** SargoDarya has quit IRC
[18:57:00] <ingsoc> much less liely to get in a situation you didn't know how you got to
[18:57:01] <ses1984> that's what i'm trying. i got it working in a fiddle and tried to adapt it almost exactly to the tutorial app, and here i am
[18:57:07] *** stormbytes has joined #angularjs
[18:57:29] *** warpx has joined #angularjs
[18:57:29] *** mak`` has quit IRC
[18:57:47] <jaawerth> nickeddy: it's still twice as fast without caching
[18:57:52] <jaawerth> and I really don't see it as being that ugly
[18:58:06] <jaawerth> I mean, it's a for loop, I've seen it a million times on a hundred languages
[18:58:15] *** zz_night-owl is now known as night-owl
[18:58:16] <jaawerth> (okay maybe a hundred thousand times on ten languages)
[18:58:16] <dmack> for loops are fine
[18:58:22] *** deanclkclk__ has joined #angularjs
[18:58:30] <nickeddy> jaawerth: okay, what's "var d = stats[i],dw = d.window || 0;" do ?
[18:58:31] <dmack> lodash isn't really designed to replace for loops
[18:58:51] *** jagga_ has quit IRC
[18:59:14] *** ingsoc has quit IRC
[18:59:31] *** ishan has quit IRC
[18:59:35] *** deanclkclk has quit IRC
[18:59:50] <jaawerth> dmack, exactly
[18:59:59] *** Sky[x] has joined #angularjs
[19:00:04] <dmack> a loop really isn't a utility
[19:00:21] <jaawerth> nickeddy: the non-cached version is still three times faster than the lodash forEach
[19:00:30] *** erikruthven has joined #angularjs
[19:00:45] <jaawerth> don't get me wrong, there are still plenty of situations where forEach is preferably, particularly functional programming
[19:00:47] <werehuman> however filter is bad with arrays
[19:00:50] <jaawerth> or if you're using an object
[19:00:55] <werehuman> especially when you create new arrays
[19:00:59] <werehuman> its not made for that
[19:01:01] <ses1984> werehuman i dont think your link came over correctly
[19:01:03] *** wallerdev has joined #angularjs
[19:01:13] <jaawerth> werehuman: forgot to save your plunk
[19:01:15] <nickeddy> jaawerth: still 15m ops/s
[19:01:16] <ses1984> werehuman i'm very new to angular i was trying to work through a problem someone had asked in here earlier as an exercise
[19:01:22] <nickeddy> jaawerth: fast enough i believe is the term
[19:01:24] <werehuman> eys sorry
[19:01:30] *** wooz86 has joined #angularjs
[19:01:40] <ses1984> so i'm pretty sure i was doing things the "angular way" because i dont really know what that is yet
[19:01:44] <jaawerth> yeah, but there's no benefit unless you need to create a closure
[19:01:45] <werehuman> i had a similar problem recently
[19:01:51] <werehuman> trying to use map in a filter
[19:01:56] <jaawerth> er, that is, do functional programming
[19:02:04] <werehuman> turned out wrong, so i used the map in the controller instead
[19:02:14] *** pulpfree has joined #angularjs
[19:02:15] <BobbieBarker> I think the bottom line is you may save a few microseconds with native, but with those super cached loops you're sacraficing readability and maintainability
[19:02:30] <jaawerth> I'm not advocating the super-cached loops though
[19:02:38] <ses1984> werehuman: so i see you able to basically copy the fiddle over into plunker and it works
[19:02:39] <jaawerth> I'm just saying: simple for loop. aint broke, don't fix it (for arrays)
[19:02:53] *** zemanel has quit IRC
[19:03:04] *** DarrenCraig has quit IRC
[19:03:06] <jaawerth> there's very little benefit to the forEach approach unless you have a good reason to pass in callbacks
[19:03:11] <werehuman> where are you testing it? locally ?
[19:03:19] <ses1984> but what about adapting it to the tutorial app...from my point of view the filter script and the template look ok, where do you think the error within angular.js comes from
[19:03:24] <BobbieBarker> jaawerth: i see where you're coming from
[19:03:41] <ses1984> yeah i'm testing it locally with npm start, just like if you would worth through the tutorial
[19:03:49] *** bayousoft has quit IRC
[19:03:50] <BobbieBarker> i think for me i prefer a consistent approach, maybe if i had a fucking huge data set that was creating very noticable lag i'd implement an optimized approach
[19:04:01] <BobbieBarker> and by consistent i mean lodash for loops
[19:04:02] <jaawerth> yeah, it's only going to be a big deal for a larger data set
[19:04:10] <BobbieBarker> no doubt dude
[19:04:13] *** bayousoft has joined #angularjs
[19:04:13] <werehuman> i dont know about the errors
[19:04:14] *** sonofdirt has quit IRC
[19:04:16] <jaawerth> but it's such an easy optimization - you simply have to not do something instead of doing it ;-)
[19:04:18] *** prbc_ has quit IRC
[19:04:21] *** deanclkclk_ has quit IRC
[19:04:24] <BobbieBarker> jaawerth: lol
[19:04:30] <nickeddy> BobbieBarker: and even then, i've not noticed any lag at 1000s of elements in arrays. fwiw.
[19:04:32] <werehuman> you can always debug though chrome and trace why it says the error about the ;
[19:04:41] <dmack> and if it's a large data set, do it on the server anyway
[19:04:43] <dmack> hah
[19:04:49] *** neilff has joined #angularjs
[19:04:50] <BobbieBarker> i agree nickeddy i've ran large-ish datasets and not noticed anything
[19:04:56] *** deanclkclk has joined #angularjs
[19:05:05] <nickeddy> BobbieBarker: premature optimization is the root of all evil, i keep saying that
[19:05:06] <dmack> 1000 is large?
[19:05:13] <nickeddy> :P
[19:05:13] *** cthrax has quit IRC
[19:05:14] <BobbieBarker> 1000 is not large
[19:05:16] <dmack> :D
[19:05:29] <nickeddy> i mean thousands. so like 100k?
[19:05:29] <BobbieBarker> i need to get some work done
[19:05:32] <werehuman> ses1984: what if instead of returning an array you return a string ?
[19:05:33] *** prbc has joined #angularjs
[19:05:39] <BobbieBarker> unfortunately this chat is more interesting that triaging jira tickets
[19:05:40] *** sonofdirt has joined #angularjs
[19:05:41] <jaawerth> nickeddy: I'd actually argue that using a superstructure of a simple process is the premature optimization, only it actually worsens performance. That's kind of my point
[19:05:56] *** juampy has joined #angularjs
[19:06:11] *** chrisbirk has joined #angularjs
[19:06:29] <jaawerth> we're not talking about a hack or a workaround here, just something built right into every programming language down to assembly
[19:06:31] *** shackleford has quit IRC
[19:06:34] <nickeddy> lol
[19:06:34] <jaawerth> well, not assembly
[19:06:46] <nickeddy> i know.
[19:06:51] <jaawerth> I mean you can do it, but you need gotos
[19:07:06] *** Embassy has joined #angularjs
[19:07:34] <ses1984> werehuman: what do you mean?
[19:07:38] *** VictorBjelkholm has quit IRC
[19:07:39] *** yoshokatana has joined #angularjs
[19:07:57] <werehuman> let me try it in my machine
[19:07:58] <ses1984> werehuman: i would rather not try to just make this work by trial and error, and try to figure out what's going wrong
[19:07:59] <werehuman> just a moment
[19:08:09] <ses1984> if i don't know what's going on i'm never going to be able to think correctly in angular
[19:08:10] *** Somatt_wrk_ has quit IRC
[19:08:13] *** no1uknow has joined #angularjs
[19:08:33] <werehuman> yes but from what i see i dont think you are erring
[19:08:45] <ses1984> surely this is not a bug in angular
[19:08:54] <ses1984> i don't want to assume that until i've exhausted any other option
[19:09:16] <werehuman> how do you run the app?
[19:09:47] <werehuman> never mind found it
[19:09:51] *** moogey is now known as chocolate_moogey
[19:09:59] <ses1984> just like the tutorial, git clone the tut repo, cd to the working directory, check out a step, npm start
[19:10:08] *** snurfery has quit IRC
[19:10:19] *** cthrax has joined #angularjs
[19:10:27] *** opiates has joined #angularjs
[19:10:34] *** loverajoel has joined #angularjs
[19:10:40] <werehuman> Syntax Error: Token '.0' is an unexpected token at column 4
[19:10:41] *** tangorri has quit IRC
[19:10:43] <werehuman> i have this
[19:10:53] <werehuman> did you ?
[19:11:00] *** ingsoc has joined #angularjs
[19:11:17] *** denysonique has quit IRC
[19:11:17] <werehuman> this is bcz angular forbids about using properties as indexes
[19:11:19] *** deanclkclk__ has quit IRC
[19:11:28] *** chrisbirk has quit IRC
[19:11:29] *** AimerPaddle has joined #angularjs
[19:11:30] <ses1984> i did not see that message, how did you get it
[19:11:38] *** _mtr has joined #angularjs
[19:11:47] *** MuffinMan` has joined #angularjs
[19:11:57] <werehuman> on the phone detail page
[19:12:09] *** intellix has quit IRC
[19:12:19] *** whitebook has quit IRC
[19:12:27] *** elrabin has quit IRC
[19:12:42] *** LarsLap has joined #angularjs
[19:12:53] *** richiebkr has quit IRC
[19:12:57] *** OnkelTem has quit IRC
[19:13:03] *** elrabin has joined #angularjs
[19:13:07] <ses1984> hmm that'
[19:13:12] <ses1984> that's more informative than what i'm seeing
[19:13:13] *** djvirgen has joined #angularjs
[19:13:32] <ses1984> i see "Error: missing ; before statement angular.js:11383" and then some huuuge stack trace
[19:13:34] <werehuman> yes
[19:13:38] *** dannyc has quit IRC
[19:13:40] <werehuman> and i just run the application
[19:13:44] *** LarsLap has quit IRC
[19:13:44] <ses1984> that's whether i do {{ pair.0 }} or {{ pair[0] }}
[19:13:48] *** whitebook has joined #angularjs
[19:13:53] <werehuman> maybe you have an older version of angular into your bower cache
[19:14:07] *** garbanzio has quit IRC
[19:14:31] <ses1984> oh wait i'm running npm start on the tutorial repo not my repo. woops. let me run it in the rigth dir
[19:14:34] *** knownasilya has joined #angularjs
[19:14:37] <werehuman> take a look in the bower_components folder
[19:14:43] *** dannyc has joined #angularjs
[19:15:09] *** chocolate_moogey is now known as moogey
[19:15:09] <ses1984> jaawerth: there was never an issue in the fiddle/ the little test harness
[19:15:11] <werehuman> now i still have the error about the filter returning an array
[19:15:21] <ses1984> the issue is if i try to do something similar in the tutorial app
[19:16:01] <werehuman> also it is looking for phone.images, but i see nothing of the sort
[19:16:09] <werehuman> or maybe this is something you need to do in the tuto
[19:16:11] <jaawerth> ses1984: really? I had a ton of errors on the console
[19:16:16] <jaawerth> it ran too many digests and quit
[19:16:17] *** chrisbirk has joined #angularjs
[19:16:25] *** whitebook has quit IRC
[19:16:32] *** _mtr has quit IRC
[19:16:37] <werehuman> yes but his error was about a semicolon
[19:16:42] *** OnkelTem has joined #angularjs
[19:16:46] *** chrisbirk has quit IRC
[19:16:57] <jaawerth> oh, didn't see that
[19:17:00] *** straylight_ has joined #angularjs
[19:17:54] <jaawerth> well that's how you do a custom filter with an array, anyway
[19:17:55] <ses1984> hmm jaawerth i guess i do see those errors on the console but the output i get is expected. that's weird?
[19:18:34] *** olivvv has quit IRC
[19:18:40] *** aslate has quit IRC
[19:18:40] *** PeterMetz has quit IRC
[19:18:49] *** denysonique has joined #angularjs
[19:18:55] *** dannyc has quit IRC
[19:19:02] *** Anton_ has quit IRC
[19:19:07] *** warpx has quit IRC
[19:19:07] <jaawerth> well, the problem is that custom filters take the whole array/object. the way the digest watches things is that it caches a copy to check for changes, and that works fine for basic things because it compares them strict equality (===)
[19:19:08] *** settingh_ has quit IRC
[19:19:08] <werehuman> maybe its a feature from plunker
[19:19:12] <jaawerth> but that will fail for two identical objects
[19:19:16] *** opensourcegeek has quit IRC
[19:19:26] *** dmack has quit IRC
[19:19:27] *** Embassy has quit IRC
[19:19:35] <jaawerth> but it only fails after 10 digests, and by then it's rendered things as expected already
[19:19:35] <werehuman> yes such as array
[19:19:35] *** settinghead has joined #angularjs
[19:19:47] *** Guest98520 has quit IRC
[19:19:54] *** richiebkr has joined #angularjs
[19:19:54] *** Solid1_afk is now known as Solid1
[19:19:59] <jaawerth> since the plunk has no other other rendering that COULD fail, you don't notice because it failed after everythign was rendered
[19:20:21] <werehuman> i see
[19:20:28] <jaawerth> my fix was to cache the values myself and do a deep comparison
[19:20:31] *** dmack has joined #angularjs
[19:20:47] <ses1984> what if you wanted to use a different strategy to solve this "group by two" problem instead of a filter, what could you do
[19:20:48] *** burzum2 has quit IRC
[19:20:54] <jaawerth> it's still going to be more expensive than is preferable, but cheaper than rerunning the filter, and it avoids an infinite loop
[19:20:58] *** mennea has joined #angularjs
[19:21:05] <werehuman> ah the memoize fix
[19:21:10] <werehuman> i used that as well
[19:21:14] *** elrabin has quit IRC
[19:21:45] *** mmealling has joined #angularjs
[19:21:46] *** jaredwilli has joined #angularjs
[19:22:02] *** iribarne has quit IRC
[19:22:08] *** Aswebb_ has quit IRC
[19:22:13] <jaawerth> the only downside is that the deep comparison could be expensive for a huge object
[19:22:14] *** tfennelly has joined #angularjs
[19:22:18] <werehuman> but i didnt use angular.equals but ===
[19:22:23] *** straylight_ has quit IRC
[19:22:25] *** jacuqesdancona_ has joined #angularjs
[19:22:28] <jaawerth> the === COULD work, I think it depends
[19:22:44] <werehuman> thus it started giving me headaches when the data changed
[19:22:58] <nickeddy> for giant object stuff i use JSON.stringify(obj) === JSON.stringify(otherObj)
[19:23:04] *** _mtr has joined #angularjs
[19:23:05] <nickeddy> tends to work
[19:23:07] <jaawerth> oh wait, the === DOES work
[19:23:08] *** richardlitt has joined #angularjs
[19:23:11] <werehuman> yes
[19:23:21] <jaawerth> it's not the input that needs to match, it's the output, adn by returning the cached output you solve that
[19:23:22] *** Embassy has joined #angularjs
[19:23:24] <jaawerth> once sec, updating plunk
[19:23:27] <jaawerth> that makes it MUCH more performant
[19:23:43] <werehuman> yes but _.memoize is checking the input IIRC
[19:23:49] *** Sontakey has joined #angularjs
[19:24:01] *** Aswebb__ has joined #angularjs
[19:24:07] *** settinghead has quit IRC
[19:24:18] <ses1984> could you please elaborate what you mean by "the way the digest watches things
[19:24:37] *** PrinceAMD has quit IRC
[19:24:44] <ses1984> what's "the digest" the part within the angular framework that's reading input?
[19:24:46] *** elrabin has joined #angularjs
[19:24:55] <jaawerth> _.memoize is fine, but sort of unnecessary here
[19:25:04] <werehuman> ses1984: bascially angular is caching the scope variables so when they change, angular runs the digest cycle
[19:25:12] <jaawerth> plus then you'll be caching it for every single input to the filter over time, when you really only need to track the previous one
[19:25:17] <werehuman> so for primitive values its okay
[19:25:17] *** ngbot has joined #angularjs
[19:25:18]
<ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/9QnqxQ
[19:25:18] <ngbot> angular.js/master b3dfb38 Pawel Kozlowski: refactor($http): avoid using closure vars in serverRequest fn...
[19:25:18] *** ngbot has left #angularjs
[19:25:24] *** samuel02 has joined #angularjs
[19:25:29] <jaawerth> it COULD be preferable to do that, I guess, but it could also just be unnecessary memory consumption
[19:25:54] <werehuman> jaawerth: i dont care about perf at this point
[19:26:07] <werehuman> but still there was a problem
[19:26:15] <werehuman> when i send it the same input
[19:26:16] *** jstroem has quit IRC
[19:26:21] *** warpx has joined #angularjs
[19:26:22] <caitp> is an 18 year scotch a lazy gift or not a bad christmas present
[19:26:28] <werehuman> it was always returning the same output
[19:26:28] <jaawerth> well, the only reason you WOULD use memoize instead of just caching it like I did there is if you wanted to improve performance by storing more function results
[19:26:33] <jaawerth> otherwise, KISS
[19:26:43] *** jacuqesdancona_ has quit IRC
[19:26:46] *** dmack has quit IRC
[19:26:56] <caitp> it's pretty lazy if there isn't much thought put into it
[19:27:00] *** Sky[x] has quit IRC
[19:27:04] <caitp> but if they like it, that's what counts
[19:27:15] *** Anton_ has joined #angularjs
[19:27:29] <werehuman> i just didnt see it that way
[19:27:31] *** alkoma has joined #angularjs
[19:27:37] *** Embassy has quit IRC
[19:27:47] *** doginal has joined #angularjs
[19:27:52] <jaawerth> it's a minor difference really
[19:27:53] *** soee has joined #angularjs
[19:27:57] <werehuman> if i was passing here at the time i wouldnt need to fucking inject my filters inside my controllers ...
[19:28:10] *** Embassy has joined #angularjs
[19:28:32] *** cheef has quit IRC
[19:28:33] <jaawerth> _.memoize is awesome, just easy to find yourself with memory leaks if used lightly
[19:28:40] *** xxtjaxx`` has quit IRC
[19:28:42] <werehuman> is not only that
[19:28:45] <werehuman> like i said
[19:28:52] *** azizur8 has joined #angularjs
[19:28:56] <werehuman> memoize, given the same input, always return the same output
[19:29:21] *** azizur has quit IRC
[19:29:26] *** zB0hs has joined #angularjs
[19:29:37] <jaawerth> right, it's good for idempotent things
[19:29:50] *** deanclkclk_ has joined #angularjs
[19:29:50] <werehuman> but what i was passing it as input
[19:29:53] <werehuman> was a collection
[19:29:53] <jaawerth> well, not just idempotent but predictable
[19:30:00] <werehuman> that i wanted to apply map on it
[19:30:03] *** samuel02 has quit IRC
[19:30:16] <ses1984> i'm sorry i'm trying to go though all these plunkers and i don't see which solution used memoize?
[19:30:20] *** Zeioth has quit IRC
[19:30:29] <werehuman> and deep comparison doesnt go well with collections
[19:30:32] <jaawerth> yeah we're getting off base - I think werehuman is talking about something they did a while back
[19:30:42] <werehuman> so it was only checking the reference to the array i think
[19:30:45] <ses1984> oh i see
[19:30:49] <jaawerth> probably, yeah
[19:30:59] <ses1984> you used a memoize solution in the past, there isn't one pasted anywhere in this discussion
[19:31:02] <jaawerth> you need to use a haskhey if you want to use a collection
[19:31:04] <jaawerth> (or something along those lines)
[19:31:08] <werehuman> yes ses1984
[19:31:25] *** dmack has joined #angularjs
[19:31:27] *** Fire-Dragon-DoL has joined #angularjs
[19:31:28] <werehuman> yes i tried that as well
[19:31:33] <werehuman> using the $hashkey stuff
[19:31:33] *** Fire-Dragon-DoL has quit IRC
[19:31:35] <werehuman> didnt work
[19:31:36] <jaawerth> that can get complicated, but basically as you change hte collection you'd have a unique hash that mutates with it
[19:31:42] <jaawerth> it can be hard to get right
[19:31:44] *** Sontakey has left #angularjs
[19:31:45] *** jonathanpglick has joined #angularjs
[19:31:59] *** yelvert has quit IRC
[19:32:00] *** Fire-Dragon-DoL has joined #angularjs
[19:32:13] <werehuman> so we decided to throw it all altogether and not use filters
[19:32:23] <werehuman> throwing the baby with the water
[19:32:25] *** yelvert has joined #angularjs
[19:32:27] *** mzabriskie has quit IRC
[19:32:35] <werehuman> harder to test though
[19:32:47] *** mzabriskie has joined #angularjs
[19:32:47] *** markalanevans has quit IRC
[19:32:48] *** ingsoc has quit IRC
[19:33:23] <werehuman> okay its getting late i should get going
[19:33:29] <werehuman> thanks for the help ?
[19:33:48] *** Anton_ has quit IRC
[19:33:52] *** markalanevans has joined #angularjs
[19:34:30] *** \du has quit IRC
[19:34:53] *** ngbot has joined #angularjs
[19:34:54] <ngbot> angular.js/master a097aa9 Caitlin Potter: fix(orderBy): do not try to call valueOf/toString on `null`...
[19:34:54] *** ngbot has left #angularjs
[19:35:09] <ses1984> no thank you!
[19:35:14] *** prbc_ has joined #angularjs
[19:35:32] *** settinghead has joined #angularjs
[19:35:33] *** yelvert has quit IRC
[19:35:43] *** rhp has joined #angularjs
[19:35:45] *** yelvert has joined #angularjs
[19:36:05] <ses1984> ok so i'm sorry to backtrack but i'm still a little hung up on the digest stuff.
[19:36:10] *** prbc has quit IRC
[19:36:28] <ses1984> "custom filters take the whole array/obejct, the way the digest watches things is that it cahces a copy to check for changes"
[19:37:03] <ses1984> ok, so that means, in this line <ul ng-repeat="pair in test_array | group_by_two "> it takes the whole test_array object ... but it's not changing, right?
[19:37:15] *** azizur8 has quit IRC
[19:37:17] *** zackiv31 has joined #angularjs
[19:37:18] *** livingstn has joined #angularjs
[19:37:24] <ses1984> that would map the argument named input inside the filter and input is never changing
[19:37:46] <ses1984> only input_by_two is changing. is that also considered a scope variable even though it's inside the filter function?
[19:37:55] *** josh-k_ has quit IRC
[19:37:58] *** livingstn has joined #angularjs
[19:38:02] *** a3gis has joined #angularjs
[19:38:04] *** fedenunez1 has joined #angularjs
[19:38:17] *** swist has joined #angularjs
[19:38:33] *** CodeFriar has joined #angularjs
[19:38:45] *** Aliks has joined #angularjs
[19:38:49] *** mzabriskie has quit IRC
[19:38:51] *** snurfery has joined #angularjs
[19:38:52] <jaawerth> ses1984: the problem was that every time the filter runs with the same input on a digest (which it will do every digest), the output is an identical object with a different reference, and the digest is comparing the outputs by === (reference comparison, when it's an object)
[19:39:09] *** garbanzio has joined #angularjs
[19:39:17] <jaawerth> ses1984: and the digest always runs at least twice to check for stability - if the output changes, it runs ANOTHER digest until it stabilizes.
[19:39:22] <ses1984> in this example isn't the filter only run once?
[19:39:40] <jaawerth> so since your filter results have a different reference output every time it's run with the same input, it was causing that dirty-checking to go into an infinite loop
[19:39:59] *** tsalb has joined #angularjs
[19:40:08] <jaawerth> ses1984: the fix works because it's keeping your last output stored in filterCache, and if the input matches the inputCache, it just returns that one - the same object with the same reference
[19:40:13] *** amatecha_ is now known as amatecha
[19:40:33] *** jaredwilli has quit IRC
[19:40:46] <dmack> with 1.3 you can make your filters only run if there's a discreet diff.
[19:40:51] <jaawerth> bonus: this also means the whole function won't rerun with the same input every time the digest runs while dirty-checking, since it's just returning filterCache when they match
[19:40:54] *** adamsilver has joined #angularjs
[19:41:13] <adamsilver> what do you guys use for data grids?
[19:41:19] <ses1984> oh i think i'm getting it now
[19:41:22] *** fedenunez has quit IRC
[19:41:23] *** sojic has joined #angularjs
[19:41:38] <dmack> adamsilver: smart-table is nice
[19:41:47] *** Anton_ has joined #angularjs
[19:42:05] *** jdivock_ has joined #angularjs
[19:42:25] *** OnkelTem has quit IRC
[19:42:30] *** BobbieBarker has quit IRC
[19:42:41] <icfantv> dumb question: what's the opposite of on('$destroy',…)?
[19:43:05] *** zanea|away is now known as zanea
[19:43:06] <jaawerth> dmack: oh? where's that option?
[19:43:07] *** samuel02 has joined #angularjs
[19:43:13] <dmack> looking in the docs
[19:43:16] <ses1984> jaawerth: thanks very much
[19:43:19] <dmack> buried somewhere
[19:43:27] <ses1984> everything is clear now
[19:43:36] *** yelvert has quit IRC
[19:43:41] <jaawerth> it's not in $filter or $filterProvider
[19:43:56] <jaawerth> I don't think you mean $stateful, since that's something kinda different
[19:43:59] *** dave_boling has joined #angularjs
[19:44:02] *** yelvert has joined #angularjs
[19:44:17] *** azizur has joined #angularjs
[19:44:51] *** aliocha has quit IRC
[19:45:08] <adamsilver> dmack: it looks like exactly what i am looking for, thanks!
[19:45:15] *** Nivag_ has joined #angularjs
[19:45:20] *** RobinBAwesome has quit IRC
[19:45:28] *** quartzmo has joined #angularjs
[19:45:29] <dmack> I did, sorry. probably not enough context
[19:45:45] *** lsiv568 has quit IRC
[19:45:47] *** zeroquake has quit IRC
[19:45:49] *** settingh_ has joined #angularjs
[19:45:50] *** settinghead has quit IRC
[19:46:02] <dmack> wait
[19:46:03] <dmack> sec
[19:46:04] *** markalanevans has quit IRC
[19:46:29] *** jdivock_ has quit IRC
[19:46:37] <ses1984> so another question, i'm sorry i'm repeating myself, but: if you had to solve this group by two problem, what approach would you take other than filters
[19:46:48] *** weeyum has joined #angularjs
[19:46:53] *** nuizzy has joined #angularjs
[19:47:06] <ses1984> or is filter the way to go after you figure out the little idiosyncracies of angular digest
[19:47:22] *** OddDuck has joined #angularjs
[19:47:22] *** OddDuck has joined #angularjs
[19:47:49] *** jaredwilli has joined #angularjs
[19:48:12] <jaawerth> hmmm wait - come to think of it, you still need to use angular.equals
[19:48:12] <icfantv> anyone? opposite of on.('$destroy',…)?
[19:48:28] *** yelvert has quit IRC
[19:48:33] *** bruno has joined #angularjs
[19:48:33] <jaawerth> the === approach will incorrectly remain a match if the contents of the object changes
[19:48:53] *** settingh_ has quit IRC
[19:48:56] *** bruno is now known as Guest64926
[19:49:03] <ses1984> if the contents changes but the reference stays the same
[19:49:13] *** night-owl is now known as zz_night-owl
[19:49:20] <ses1984> and you know the reference stays the same because all that's set internally in the function
[19:49:36] *** mennea has quit IRC
[19:49:43] *** livingstn has joined #angularjs
[19:49:49] *** _mtr has quit IRC
[19:50:06] <jaawerth> yeah
[19:50:10] *** neilff has quit IRC
[19:50:14] <jaawerth> so angular.equals will be necessary to do a deep comparison
[19:50:15] *** mennea has joined #angularjs
[19:50:15] *** zz_night-owl is now known as night-owl
[19:50:36] <ses1984> or other comparison technique that was suggested like stringifying both sides
[19:50:43] *** stormbytes has quit IRC
[19:50:53] <jaawerth> I don't know if that would be cheaper
[19:51:02] <dmack> sojic: looking
[19:51:02] *** nuizzy has quit IRC
[19:51:04] *** oncenull has quit IRC
[19:51:10] *** tfennelly has quit IRC
[19:51:23] *** nuizzy has joined #angularjs
[19:51:25] *** JERE has quit IRC
[19:51:29] *** PrinceAMD has joined #angularjs
[19:51:37] <dmack> I dont see any javascript?
[19:51:39] <sojic> Probably something with array.slice
[19:51:45] <sojic> No, there is no javascript
[19:52:01] <sojic> how to achieve it?
[19:52:11] <jaawerth> hm I have a thought
[19:52:23] <dmack> split an array based on what?
[19:52:35] <ses1984> sojic we are actually all still talking about your original question
[19:52:35] <sojic> Based on half :)
[19:52:36] <dmack> you want an array of arrays?
[19:52:42] *** settingh_ has joined #angularjs
[19:52:45] *** azizur has quit IRC
[19:53:36] *** bengillies has quit IRC
[19:53:36] <dmack> array.splice(array.length - (array.length / 2))
[19:53:48] <dmack> havent tested that at all
[19:53:51] *** elaijuh has quit IRC
[19:53:51] *** six has quit IRC
[19:54:12] <sojic> Let me try, and will post the example code
[19:54:50] *** Oddman has quit IRC
[19:54:52] <ses1984> stupid quesiton, how do you save a plunker, do you have to be signed into github
[19:54:53] *** neilff has joined #angularjs
[19:55:13] <nickeddy> ses1984: hit fork at the upper left hand corner
[19:55:13] *** dave_boling has quit IRC
[19:55:17] <nickeddy> ses1984: or save
[19:55:22] *** lsiv568 has joined #angularjs
[19:55:28] <ses1984> i dont see save up there
[19:56:04] <ses1984> the group_by_two filter
[19:56:24] <ses1984> also you missed a lot of discussion covering why the implementation has to use inputCache and filterCache
[19:56:44] *** fatshark has joined #angularjs
[19:57:34] *** aendrew has joined #angularjs
[19:57:37] <sojic> ses1984, thanks... It seams it was bad idea.... so changing instead to print 3 rows with 2 items, I decide to print 2 rows with 3 items. Similar concept.
[19:58:00] *** mivv has joined #angularjs
[19:58:01] *** sonicparke|bradm has quit IRC
[19:58:08] *** sonicparke_ has joined #angularjs
[19:58:09] <jaawerth> hmm, I was thinking maybe you could use angular's $$hashkey but it doesn't apply here
[19:58:28] <ses1984> you could modify that filter to group_by_three, you just have to change the i=i+2 to i+3, and the push line
[19:58:48] *** sonicparke__ has joined #angularjs
[19:58:54] <ses1984> would it possible to generalize this filter to group_by_x and pass in x?
[19:58:56] *** markalanevans has joined #angularjs
[19:59:00] <aendrew> Hey, I have a provider that returns a promise, which I’m resolving via .then() and attaching to $rootScope in an angular.module.run() block. Is there any way to ensure the promise is resolved before my controller expects it?
[19:59:13] *** FIFOd[a] has quit IRC
[19:59:56] *** bkuberek has quit IRC
[19:59:56] *** jeffisabelle has joined #angularjs
[20:00:04] *** mivv has left #angularjs
[20:00:14] *** dimas has quit IRC
[20:00:24] *** bkuberek has joined #angularjs
[20:00:28] *** alkoma has left #angularjs
[20:00:53] *** RobinBAwesome has joined #angularjs
[20:01:00] *** nemothekid has joined #angularjs
[20:01:08] *** robdubya has quit IRC
[20:01:43] *** jdivock_ has joined #angularjs
[20:02:14] *** AngularUI has joined #angularjs
[20:02:14] <AngularUI> ng-grid/master f215f80 Brian Hann: Release v3.0.0-RC.18
[20:02:14] *** AngularUI has left #angularjs
[20:02:42] *** sonicparke_ has quit IRC
[20:03:02] *** FIFOd[a] has joined #angularjs
[20:03:21] *** tome_hr has joined #angularjs
[20:03:35] *** jMyles has joined #angularjs
[20:03:35] *** Anton_ has quit IRC
[20:03:48] <tome_hr> hello!
[20:04:19] *** shackleford has joined #angularjs
[20:04:30] *** bkuberek has quit IRC
[20:04:40] *** tfennelly has joined #angularjs
[20:04:44] *** m3l720 has joined #angularjs
[20:04:46] *** richiebk_ has joined #angularjs
[20:05:01] <dmack> herro
[20:05:07] *** shackleford has quit IRC
[20:05:19] *** AlSquirikou has quit IRC
[20:05:21] *** johnnyfive has joined #angularjs
[20:05:42] <tome_hr> newbie question: is it me onlly or trere are no any chatting?
[20:05:45] *** shackleford has joined #angularjs
[20:05:56] *** walden is now known as walden|brb
[20:06:01] <dmack> bring up vanilla js and there will be plenty of chat
[20:06:11] <jaawerth> haha wait
[20:06:11] *** jareddlc has joined #angularjs
[20:06:11] <dmack> right nickeddy ?
[20:06:14] <jaawerth> that fix is still broken
[20:06:14] <ses1984> you missed a pretty cool discussion about angular digest and how it applies within filters
[20:06:15] <jaawerth> one sec
[20:06:21] <ses1984> really
[20:06:22] <ses1984> ?
[20:06:27] *** prbc_ has quit IRC
[20:06:39] *** Efrem is now known as Efrem-Away
[20:06:45] <nickeddy> dmack: lol
[20:07:19] *** sirkitree is now known as sirkitree|afk
[20:07:20] <tome_hr> ok..another newbie question: why official doc/tutorial still encourages $scope instead controller as and $this?
[20:07:20] <jaawerth> ses1984: yeah, the problem is that the deep compare is going to pass every single subsequent run as it is right now
[20:07:27] <jaawerth> because they're the same object reference
[20:07:29] <jaawerth> lol
[20:07:31] <tome_hr> its confusing
[20:07:38] <jaawerth> so updating the array is going to update both of them
[20:08:00] *** tristanp has quit IRC
[20:08:15] *** richiebkr has quit IRC
[20:08:33] *** Aswebb__ has quit IRC
[20:08:56] *** g33k5z_ has joined #angularjs
[20:08:58] <ses1984> so you need to modfy the line inputCache = input
[20:09:01] <ses1984> right?
[20:09:25] *** jaredwilli has quit IRC
[20:09:28] *** diosney has quit IRC
[20:09:35] *** prbc has joined #angularjs
[20:09:38] *** OnkelTem has joined #angularjs
[20:09:46] <ses1984> or modify filterCache = input_by_two
[20:09:46] *** dimas has joined #angularjs
[20:09:51] <ses1984> i can't think straight i'm eating lunch
[20:10:24] *** markalanevans has quit IRC
[20:11:00] *** kayoone has quit IRC
[20:11:08] *** rho_ is now known as rho
[20:11:24] *** markalanevans has joined #angularjs
[20:11:34] <jaawerth> yeah, just drinking to think the most elegant approach
[20:11:38] <jaawerth> er, trying
[20:11:39] <jaawerth> hahh
[20:11:40] *** Anton_ has joined #angularjs
[20:11:48] <ses1984> lol
[20:11:59] <ses1984> drinking to think...just have to find that ballmer peak
[20:12:28] *** iribarne has joined #angularjs
[20:12:38] *** Wizek has joined #angularjs
[20:12:54] *** juanpablo__ has quit IRC
[20:13:26] *** tome_hr has left #angularjs
[20:14:02] *** chachan has quit IRC
[20:14:03] *** bejames has joined #angularjs
[20:14:50] *** zeroquake has joined #angularjs
[20:15:15] *** quartzmo has quit IRC
[20:15:15] *** prbc has quit IRC
[20:15:32] <dmack> this is a really nice trick for handling ngSubmit with controllerAs
[20:15:38] <dmack> didn't even think about that.
[20:15:47] *** kirfu has quit IRC
[20:16:00] *** dannyc has joined #angularjs
[20:16:04] *** walden|brb is now known as walden
[20:16:43] *** Johnny13371337 has left #angularjs
[20:16:47] *** bradmaxs has quit IRC
[20:17:03] *** juanpablo__ has joined #angularjs
[20:17:26] *** Guest64926 has quit IRC
[20:18:30] <adamsilver> looks like restangular is not maintained anymore
[20:18:37] *** a3gis has quit IRC
[20:18:39] <dmack> #downwith$scope
[20:18:39] <jaawerth> ooh okay this is kind of a premature optimization but it's a cool one
[20:18:43] <nickeddy> dmack: i always do var vm = this; at the start of my controllers
[20:18:55] *** lw has joined #angularjs
[20:18:58] <nickeddy> adamsilver: i still use it with 1.3, no issues here
[20:19:09] *** lw has quit IRC
[20:19:09] *** foofoobar has joined #angularjs
[20:19:12] *** JERE has joined #angularjs
[20:19:16] <dmack> nickeddy: me too :)
[20:19:21] *** jaredwilli has joined #angularjs
[20:19:29] <dmack> adamsilver: we use restangular as well. works fine
[20:19:38] *** lw has joined #angularjs
[20:19:39] *** mennea has quit IRC
[20:20:13] *** mennea has joined #angularjs
[20:20:18] *** dannyc has quit IRC
[20:20:23] *** sheplu has joined #angularjs
[20:21:35] *** jaredwilli has quit IRC
[20:22:01] <adamsilver> but it looks like the last commit was a few months ago
[20:22:21] <ses1984> that's not that bad
[20:23:14] <ses1984> maybe the dev was pissed about the angular 1.4 announcement
[20:23:33] *** bostonaholic has quit IRC
[20:23:38] <ses1984> i mean 2.0
[20:23:46] <Foxandxss> mgonto was working with a new version of restangular
[20:23:52] *** night-owl is now known as zz_night-owl
[20:23:56] <Foxandxss> but I think he recently got a new job, so it is expected to have delays
[20:24:05] <dmack> how do we feel about putting controller methods on the prototype?
[20:24:26] <jaawerth> ack, doesn't work. the only solution is to either run both angular.equals AND angular.copy or to write a function that deep compares and copies at the same time
[20:24:41] *** quartzmo has joined #angularjs
[20:25:03] *** cthrax has quit IRC
[20:25:07] *** ggrzybek_afk is now known as ggrzybek
[20:25:11] <ses1984> this solution is getting so ugly, surely there must be a better way than using filters, than trying to force filters to do something that doesn't fit well with angular digest
[20:25:40] *** mtsr has joined #angularjs
[20:25:49] *** pipoo has quit IRC
[20:25:56] <dmack> just manipulate your data first?
[20:26:00] <ses1984> if this is all happening in the template the hands of the designer, why not just...don't output group by two and use css to group by two
[20:26:28] <ses1984> but how can you "manipulate your data first" in just the html template
[20:26:44] *** prbc has joined #angularjs
[20:26:46] <dmack> ses1984: you wouldn't
[20:26:54] <dmack> I dont have much context, sorry
[20:26:54] <ses1984> hmm not a fair constraint, when the group_by_two filter is in angular already
[20:26:54] <jaawerth> that works, but it could take performance hits for large arrays that change frequently
[20:27:22] <ses1984> jaawerth what's the purpose of inputRand
[20:27:32] <jaawerth> oh, that's trash - I'm gonna toss it
[20:27:53] *** weeyum_ has joined #angularjs
[20:28:01] <jaawerth> I was experimenting with attaching a random number to the array for cheap comparison, but honestly that kind of thing would be better off during the change, and it's a premature optimization
[20:28:06] *** zz_night-owl is now known as night-owl
[20:28:13] <jaawerth> the kind of thing you'd want to do after your things are fully implemented
[20:28:48] <jaawerth> best approach would be to just iterate through the array and do a deep copy and comparison in one swoop
[20:28:55] <ses1984> what about instead of using angular.equals and angular.copy within the filter, you define a special AngularList type and use that, then you don't see all that ugly code in the filter
[20:29:02] *** quartzmo has quit IRC
[20:29:05] *** phzon has joined #angularjs
[20:29:07] *** Efrem-Away is now known as Efrem
[20:29:15] *** aslate has joined #angularjs
[20:29:20] <jaawerth> data logic shouldn't be interfered with by display logic
[20:29:28] <jaawerth> you could move your logic into a factory though
[20:29:36] *** prbc has quit IRC
[20:29:40] *** coffey has quit IRC
[20:30:25] *** danecando has quit IRC
[20:31:22] *** weeyum has quit IRC
[20:32:35] *** a3gis has joined #angularjs
[20:32:36] *** FIFOd[a] has quit IRC
[20:32:52] *** dave_boling has joined #angularjs
[20:33:11] *** jlambert121 has quit IRC
[20:33:12] *** iksik has quit IRC
[20:33:33] *** juampy has quit IRC
[20:33:37] *** aslate has quit IRC
[20:33:43] <jaawerth> ugh, I hate to say it but this may be one case where $scope.$watch is appropriate
[20:33:47] *** a3gis has quit IRC
[20:33:54] *** phzon has quit IRC
[20:33:56]
<aendrew> Okay, question — if I resolve a promise in a .run() block, is there any way to block controller loading until that date is attached to $rootScope? Seems not… http://plnkr.co/edit/F2I3lRq0XUPLmtMRaM8W
[20:34:05] <aendrew> *data
[20:34:09] *** iksik has joined #angularjs
[20:34:13] *** japhar81 has quit IRC
[20:34:26] <ses1984> why do you hate to say it
[20:34:33] <jaawerth> because that's terrible practice
[20:34:51] *** jlevstein has joined #angularjs
[20:34:57] *** FIFOd[a] has joined #angularjs
[20:35:14] *** jdcasey has quit IRC
[20:35:15] <ses1984> can you elaborate
[20:35:32] *** bh123 has joined #angularjs
[20:35:34] <ses1984> i'm sorry if i'm bugging you, i'm very new to angular and this discussion is teaching me so much
[20:35:56] *** dacuca has joined #angularjs
[20:36:07] <jaawerth> you'd be delaying your whole app if that's the case, plus it's not great practice to attach data to $rootScope like that anyway. Sometimes it's handy to attach services to $rootScope if you'd otherwise need to inject it everywhere, but that's about it
[20:36:17] *** fabiofb has joined #angularjs
[20:36:23] *** jshultz has quit IRC
[20:36:28] <jaawerth> $rootScope is better than just using global variables, but it comes a bit close for ocmfort
[20:36:28] *** chrisbirk has joined #angularjs
[20:36:45] <ses1984> i see
[20:37:16] *** TheAceOfHearts has joined #angularjs
[20:37:24] <jaawerth> aendrew: if you use ngRoute or ui-router, you could use a resolve with your root path/state and attach it there
[20:37:26] *** PeterMetz has joined #angularjs
[20:37:28] *** dmamills has joined #angularjs
[20:37:34] *** lw has quit IRC
[20:37:44] *** cthrax has joined #angularjs
[20:37:54] *** lw has joined #angularjs
[20:38:01] *** mennea has quit IRC
[20:38:03] *** dave_boling has quit IRC
[20:38:06] <bh123> greetings, all. Just wondering if anyone has any suggestions for useful resources on routes/ngView and accessibility. I'm having some difficulties - nothing contained in a template for a route is accessible via keyboard at all. I've tried giving the container aria-live attribute and a tabindex
[20:38:06] <jaawerth> that would be one workaround - and the best way to do it without bad practice. I'd say that, or if you really need that data to be grabbed before your app fully bootstraps, you can grab the data and then manually bootstrap
[20:38:06] *** chachan has joined #angularjs
[20:38:21] <aendrew> jaawerth: Was ‘fraid of that, have been trying not to use any routing because it doesn’t need any. Oh well, I might use UI-router so I can have child partial templates. Thanks!
[20:38:23] *** tristanp has joined #angularjs
[20:38:27] *** sonofdirt has quit IRC
[20:38:36] <jaawerth> aendrew: or the aforementioned manual bootstrap approach ;-)
[20:40:00] <jaawerth> aendrew: OR you could just defer it - attach an empty object to rootScope and populate it when the promise resolves. That way you aren't making it synchronous and delaying the bootstrapping process
[20:40:18] *** mennea has joined #angularjs
[20:40:25] *** stormbytes has joined #angularjs
[20:40:47] *** dave_boling has joined #angularjs
[20:41:16]
<aendrew> jaawerth: The last one is what I was doing before, but it meant most of my controller was inside a .then() callback. Will try manual bootstrap; is this SO Answer a good example of that? http://stackoverflow.com/a/20448708/467760
[20:41:34] *** SargoDarya has joined #angularjs
[20:41:38] *** GreenJello has joined #angularjs
[20:41:43] *** MaxV has joined #angularjs
[20:42:11] *** iribarne has quit IRC
[20:43:03] <jaawerth> your controller should be really short anyway ;-)
[20:43:07] *** cphil has joined #angularjs
[20:43:32] <jaawerth> (apps are much cleaner and easier to debug when the bulk of your logic is in factories and services)
[20:44:11] *** gurke_ has quit IRC
[20:44:16] *** zB0hs has quit IRC
[20:44:20] *** neilff has quit IRC
[20:44:27] <jaawerth> aendrew: yeah, that's solid. just make sure you remove ng-app from your index.html or it scream bloody murder at you
[20:45:24] <ses1984> jaawerth: when you say the bulk of your logic should be in factories and services, specifically about factories,
[20:45:33] <aendrew> jaawerth: Lulz, good to know. Yeah, I’m gradually abstracting my really obese controller into a bunch of services, just having a bit of difficulty wrapping my head around it all. Thanks, that was really helpful!
[20:45:36] <ses1984> do you mean service factories or factories distinct from services
[20:45:47] <jaawerth> lol
[20:45:57] <jaawerth> factories and services are so close to being the same thing
[20:46:00] *** swist has quit IRC
[20:46:01] *** coffey has joined #angularjs
[20:46:22] <ses1984> regarding moving ng-app from index.html, that's how the tutorial app is organized...what's the better approach?
[20:46:24] *** coffey is now known as Guest26733
[20:46:29] *** richiebk_ has quit IRC
[20:46:34] *** SargoDarya has quit IRC
[20:46:38] *** PeterMet_ has joined #angularjs
[20:46:39] <jaawerth> but are useful for abstracting the actual logic in your app so controllers are concerned with pulling the strings on service/factory functions and gluing that data to the view (with minor transformation), and directives handle the DOM
[20:46:54] <jaawerth> ses1984: when you manually bootstrap, you don't use ng-app at all
[20:46:56] *** richiebkr has joined #angularjs
[20:46:59] *** Left_Turn has quit IRC
[20:47:08] <jaawerth> it's a special case (see that SO from aendrew )
[20:47:40] <ses1984> that's a meaty post
[20:48:06] <ses1984> almost done with lunch and i'm stil trying to think about this filter thing, trying to find a better way
[20:48:09] *** josh-k has joined #angularjs
[20:48:18] *** Wizek has quit IRC
[20:48:54] *** ngbot has joined #angularjs
[20:48:55] <ngbot> angular.js/master 63db097 Julie Ralph: style(testability): throw a more informative error when getting testability...
[20:48:55] *** ngbot has left #angularjs
[20:48:55] *** jmverges has quit IRC
[20:49:00] *** nerdgrass has joined #angularjs
[20:49:39] <jaawerth> ses1984: I've filed it as an interesting problem for another time ;-)
[20:49:42] *** PeterMetz has quit IRC
[20:50:03] <jaawerth> actually, I think I know
[20:50:23] *** jmverges has joined #angularjs
[20:50:32] *** mhoran has joined #angularjs
[20:51:10] *** sonicparke__ has quit IRC
[20:51:11] *** bh123 has quit IRC
[20:51:26] *** jeremymarc has joined #angularjs
[20:52:02] <jaawerth> trying to fully memoize the filter is the mistake and would require some kinda hashkey thing- they're supposed to be idempotent anyway, so the key is to just let it run but control how results are returned without over-optimizing
[20:52:09] *** mikehaas763 has joined #angularjs
[20:52:29] *** frem has joined #angularjs
[20:52:40] *** jmverges has quit IRC
[20:52:47] <jaawerth> for a filter like this, the filter itself isn't gonna be any more expensive than a comparison anyway (and possibly cheaper)
[20:52:52] *** PeterMetz has joined #angularjs
[20:53:05] *** Guest64926 has joined #angularjs
[20:53:17] *** tschundeee has quit IRC
[20:53:19] *** brettfrable has joined #angularjs
[20:53:24] *** RobinBAwesome has quit IRC
[20:53:35] *** tschundeee has joined #angularjs
[20:53:36] *** LossFor has quit IRC
[20:54:03] *** bengillies has joined #angularjs
[20:54:04] *** tschundeee_ has joined #angularjs
[20:54:18] *** PeterMet_ has quit IRC
[20:54:23] *** AngularUI has joined #angularjs
[20:54:23] *** AngularUI has left #angularjs
[20:54:41] *** swist has joined #angularjs
[20:54:50] <aendrew> jaawerth: Lulz, just implemented ui-router in like ten lines to do exactly what I was wanting. WHY DID I NOT DO THAT EARLIER?!!?!
[20:55:06] *** shinnya has quit IRC
[20:55:26] *** nemothekid has quit IRC
[20:56:07] *** iribarne has joined #angularjs
[20:56:26] *** chrisbirk has quit IRC
[20:56:28] *** Aliks has quit IRC
[20:56:36] *** Xaleph has quit IRC
[20:56:46] *** danecando has joined #angularjs
[20:57:15] <jaawerth> (which is what it does anyway)
[20:57:20] *** IvanKondratyev has joined #angularjs
[20:57:29] <jaawerth> but now you're not wasting time doing a copy, deep compare, AND running the filtier
[20:57:42] *** sirkitree|afk is now known as sirkitree
[20:58:19] *** hell_razer has joined #angularjs
[20:58:39] *** Nijikoku_ has joined #angularjs
[20:58:51] *** chrisbirk has joined #angularjs
[20:59:03] *** hell_razer has joined #angularjs
[20:59:18] *** bengillies has quit IRC
[20:59:27] *** sojic has quit IRC
[20:59:40] <ses1984> still doing a deep compare which is probably the slowest part right?
[20:59:42] *** Una has quit IRC
[20:59:51] <ses1984> and running the filter
[20:59:55] *** jdivock__ has joined #angularjs
[21:00:16] *** ggrzybek has quit IRC
[21:00:19] *** robdubya has joined #angularjs
[21:00:37] *** Guest64926 has quit IRC
[21:00:39] *** yelvert has joined #angularjs
[21:00:39] *** tschundeee_ has quit IRC
[21:00:53] *** e0ipso is now known as e0ipso|away
[21:02:19] *** HawaiiCode has joined #angularjs
[21:02:24] *** yelvert has quit IRC
[21:02:47] *** yelvert has joined #angularjs
[21:02:56] *** elyssonmr has quit IRC
[21:03:09] *** jdivock_ has quit IRC
[21:03:26] *** richardlitt has quit IRC
[21:03:34] *** tfennelly has quit IRC
[21:03:42] *** frem_ has joined #angularjs
[21:04:34] <HawaiiCode> Has anyone else ever received and exception from jQuery when changing the sorting predicate on an ng-repeat?
[21:05:18] *** mrru has quit IRC
[21:05:18] <nickeddy> wat
[21:05:31] *** jdivock__ has quit IRC
[21:05:40] *** Una has joined #angularjs
[21:05:53] *** bayousoft has quit IRC
[21:05:56] *** chrisbirk has quit IRC
[21:06:08] *** Una has quit IRC
[21:06:08] <HawaiiCode> So I have a table with rows that are created with ng-repeat: ng-repeat="contest in AllContests | orderBy:sort:ReverseSort"
[21:06:16] *** mennea has quit IRC
[21:06:22] <ses1984> jaawerth: taking a step back from this, going back a couple hours... you say trying to fully memoize the filter is a mistake...but is it really? this filter is deterministic so if it's fully memoized wouldn't it avoid running multiple times?
[21:06:34] *** bayousoft has joined #angularjs
[21:06:35] <HawaiiCode> sort and ReverseSort are defined on the controller and the sorting is working.
[21:06:53] *** mennea has joined #angularjs
[21:06:56] <ses1984> isn't it better to check equality first, before running, if you have to check equality anyway when you run it?
[21:07:21] *** bionic has joined #angularjs
[21:07:24] <HawaiiCode> However every time I change the predicate and the sorting fires off, I get an exception from jQuery.
[21:07:43] *** IvanKondratyev has quit IRC
[21:07:49] <HawaiiCode> The line in question is 1430 (in version 2.1.1)
[21:07:51] *** neilff has joined #angularjs
[21:08:00] <jaawerth> ses1984: it's an optimization so best done some time after implementation and use
[21:08:30] <nickeddy> HawaiiCode: ng-repeat has nothing to do with jquery so...
[21:08:32] <HawaiiCode> It is getting attributes from HTML elements, and in this case it is trying to process the end ng-repeat line (which is not a valid html element.
[21:08:45] *** warpx has quit IRC
[21:08:48] <ses1984> ...is it always better to wait to do any optimization
[21:08:56] *** chrisbirk has joined #angularjs
[21:08:57] <jaawerth> ses1984: haha damnit now I'm thinking about it more though
[21:09:05] <jaawerth> well, it depends on how big the perf hit is
[21:09:10] *** Oddman has joined #angularjs
[21:09:12] <jaawerth> and how much you'd be complicating your code
[21:09:20] *** tyson2 has joined #angularjs
[21:09:22] <jaawerth> memoizing is also touchy because it leads to more mem use
[21:09:47] *** neilff has quit IRC
[21:09:58] <ses1984> what about a "temporary" memoization
[21:10:09] <aendrew> Hey, another question — I have a provider that grabs a config file, which feeds it to my controller via .then(). How would I test that it’s pulling data into the scope correctly?
[21:10:16] <ses1984> for example, if you know a filter is deterministic, then why is it recalculated every time digest happens
[21:10:40] <HawaiiCode> @nickeddy This exception is occuring only when I do a sort, and I am not calling the jquery method explicitly. Was just wondering if anyone else had encountered it. While the sorting is working, the exception seems to be breaking other things.
[21:10:40] *** neilff has joined #angularjs
[21:11:04] *** bostonaholic has joined #angularjs
[21:11:17] *** moogey is now known as moogey_eat
[21:11:55] *** akrikos has joined #angularjs
[21:12:25] *** Guest64926 has joined #angularjs
[21:12:32] *** atomi has quit IRC
[21:12:38] <jaawerth> aendrew: I thought you were using resolve?
[21:12:58] *** richiebkr has quit IRC
[21:13:06] <aendrew> I am, but I have a secondary controller that adds a bunch of stylesheets to the head that I’m still using then() with. I’m also curious for future reference.
[21:13:11] <aendrew> jaawerth: ^^
[21:13:46] *** Superhard_ has quit IRC
[21:13:47] *** nemothekid has joined #angularjs
[21:13:47] *** vonnegut has joined #angularjs
[21:14:01] <jaawerth> ses1984: it very much depends on the data you're working with, but because (for example here), the cost of checking AND copying the incoming data is going to be about equal to just running the filter anyway
[21:14:10] *** smuglr has quit IRC
[21:14:25] *** Oxynum has quit IRC
[21:14:33] <jaawerth> ses1984: it becomes much, much simpler if you know more about about the data and how deeply you need to check it
[21:14:39] <ses1984> but running the filter includes running the check...so why not just check instead of running and checking
[21:14:59] <jaawerth> because it isn't run and check, it's run, copy, and check
[21:15:03] *** davek has quit IRC
[21:15:06] *** MaxV has quit IRC
[21:15:37] <ses1984> so doesn't that make running even worse
[21:15:40] <jaawerth> so if they're all roughly equal (copy will likely be a bit more expensive), you're doing 3x when it runs rather than 2x
[21:16:02] *** baweaver has joined #angularjs
[21:16:03] *** jaredwilli has joined #angularjs
[21:16:16] *** PeterMetz has quit IRC
[21:16:26] *** baweaver has quit IRC
[21:16:44] *** PeterMetz has joined #angularjs
[21:16:55] *** ghenry has joined #angularjs
[21:17:02] *** bradmaxs has joined #angularjs
[21:17:03] *** bkuberek has joined #angularjs
[21:17:28] *** sonofdirt has joined #angularjs
[21:18:08] <jaawerth> doing copy, compare, and run when they aren't equal would mean you're gaining some perf when it's stable and losing it when it changes. Plus I think the filter is actually cheaper than the copy or compare, since you're just moving top-level references around rather than having to deep dive into whatever objects may be in there
[21:18:12] *** PeterMetz has quit IRC
[21:18:27] <ses1984> i had not thought of that last part
[21:18:29] *** ghenry has left #angularjs
[21:18:31] <jaawerth> if the object in shallow, it's a minor difference. if it's deep, you're actually going to kill your app's performance on a deep copy
[21:18:39] *** mzabriskie has joined #angularjs
[21:18:41] *** PeterMetz has joined #angularjs
[21:18:49] <ses1984> waaait a sec
[21:19:06] <jaawerth> er, deep compare AND copy, that is
[21:19:18] <jaawerth> you'd hurt perf twice as fast for a deep object
[21:19:24] *** __danima_ has joined #angularjs
[21:19:29] *** tfennelly has joined #angularjs
[21:19:44] *** lw has quit IRC
[21:19:49] *** CHC has quit IRC
[21:20:02] <jaawerth> the only other solution is to know a unique ID to track the top-level items by, or have some kind of mutating hash to assign when the object changes so you can do a quick-compare
[21:20:07] *** wallerdev has quit IRC
[21:20:19] <ses1984> that is a premature optimzation for sure
[21:20:20] *** lw has joined #angularjs
[21:20:25] <ses1984> but
[21:20:31] <jaawerth> but again, I would only do that if I was working with giant data and it was killing performance
[21:20:32] <ses1984> might be something cool to include in angular
[21:20:44] <jaawerth> angular actually kinda does that with ng-repeat
[21:20:53] *** g33k5z_ has quit IRC
[21:20:55] <jaawerth> with $$hashKey and the "filter" filter
[21:21:00] *** g33k5z has joined #angularjs
[21:21:15] <jaawerth> or rather, just with ng-repeat.
[21:21:39] *** Zentdayn has joined #angularjs
[21:21:40] *** sonofdirt has quit IRC
[21:21:57] *** __danima_ has quit IRC
[21:22:03] <jaawerth> still, it's not perfect - which is why usingi "track by" is a perf boost sometimes even when you know the elements aren't gonna be equal, since it lets angular do a comparison by some property rather than computing hashkeys
[21:22:19] *** _mtr has joined #angularjs
[21:22:40] <jaawerth> you MIGHT be able to tap into that, but that's a level of research I don't want to do right now (already spent too much time on this ;-) )
[21:23:06] *** __danimal__ has quit IRC
[21:23:07] *** dave_boling has quit IRC
[21:23:08] *** MaxV has joined #angularjs
[21:23:26] <nickeddy> anyone have a good directive for bootstrap navbars in angular? so tired of this fucking collapse not working
[21:23:29] *** DanSkaggs has quit IRC
[21:24:09] *** DanSkaggs has joined #angularjs
[21:25:06] *** PeterMetz has quit IRC
[21:25:10] *** ajenkins has joined #angularjs
[21:25:26] *** jdivock_ has joined #angularjs
[21:25:45] *** atomi has joined #angularjs
[21:26:01] *** TheAceOfHearts has quit IRC
[21:27:05] *** rho has quit IRC
[21:27:07] *** Grokling has joined #angularjs
[21:27:42] *** __danimal__ has joined #angularjs
[21:28:36] *** jchamberlain has joined #angularjs
[21:28:38] *** djvirgen has quit IRC
[21:29:01] <lebster> i have a project in my database that has a status of just being a proposed project. in my angular app i let the person view it and modify it and set its status to approved. should i be setting the status to approved in my angular and make a generic update project endpoint? or should i make an end point named approveProject that will update the project and
[21:29:01] <lebster> set the status inside the endpoint instead of in my angular app
[21:29:29] *** jaredwilli has quit IRC
[21:29:36] *** juanpablo__ has quit IRC
[21:30:17] *** IvailoStoianov has quit IRC
[21:30:26] *** juanpablo__ has joined #angularjs
[21:30:36] <lebster> i guess the question is should business logic be in angular or my end point
[21:30:38] *** juanpablo_ has joined #angularjs
[21:31:25] *** jdivock__ has joined #angularjs
[21:31:28] <lebster> so many crud examples, but shouldnt i validate things on my end point
[21:31:32] *** one0one has joined #angularjs
[21:31:53] *** weeyum_ has quit IRC
[21:31:57] *** devhoag has joined #angularjs
[21:32:06] *** no1uknow has quit IRC
[21:32:11] *** encryptd_fractl has quit IRC
[21:32:35] *** Sadin has joined #angularjs
[21:32:41] *** grogs has joined #angularjs
[21:32:46] *** encryptd_fractl has joined #angularjs
[21:33:54] *** jonasliljestrand has joined #angularjs
[21:33:58] *** quartzmo has joined #angularjs
[21:34:09] *** jdivock__ has quit IRC
[21:34:33] *** Aliks has joined #angularjs
[21:34:41] *** busticated has quit IRC
[21:34:52] *** artisangoose has quit IRC
[21:34:55] *** jdivock_ has quit IRC
[21:35:38]
<bradmaxs> Is there an angular way to find a record without using a loop as I am doing in my refreshPrinters and refreshOrders functions. http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info Someone provided an underscore method but I couldn't get it to work with my data.
[21:35:42] *** siddart has quit IRC
[21:35:54] *** IJNX has joined #angularjs
[21:36:37] *** devhoag has quit IRC
[21:36:45] *** Sadin has quit IRC
[21:37:09] *** djvirgen has joined #angularjs
[21:37:23] *** g33k5z has quit IRC
[21:37:38] *** caitp has quit IRC
[21:37:54] *** g33k5z has joined #angularjs
[21:38:05] *** jdivock_ has joined #angularjs
[21:38:45] *** stephen has joined #angularjs
[21:38:51] *** ed_ has joined #angularjs
[21:39:24] *** ed_ has quit IRC
[21:39:27] *** grogs has quit IRC
[21:39:35] *** busticated has joined #angularjs
[21:41:11] *** grogs has joined #angularjs
[21:41:21] *** jdivock_ has quit IRC
[21:41:30] *** wooz86 has quit IRC
[21:42:17] *** jeremymarc has quit IRC
[21:42:34] *** g33k5z has quit IRC
[21:43:14] *** siddart has joined #angularjs
[21:44:03] <ses1984> jaawerth -- you mentioned something about using $scope.$watch and that attaching to the root scope is bad... in this case is there a more specific scope we could attach to rather than the root?
[21:44:03] *** mmealling has quit IRC
[21:44:07] *** Aswebb_ has joined #angularjs
[21:44:15] *** jaredwilli has joined #angularjs
[21:44:33] *** 64MABB3CH has joined #angularjs
[21:45:14] *** jdivock_ has joined #angularjs
[21:45:17] *** SexualRickshaw has quit IRC
[21:45:21] *** caitp has joined #angularjs
[21:45:41] <jaydubya> I am creating a JSON file ... I read where everything has to be double-quoted ... does this mean numbers too? would it be "years_farming": "36" or "years_farming": 36?
[21:45:56] <jnott> if you want it to be a number you would not use quotes
[21:46:07] <jnott> strings just have to be double quoted
[21:46:12] <ses1984> usually you donb't create json objects directly though
[21:46:18] *** deyna has joined #angularjs
[21:46:19] *** richiebkr has joined #angularjs
[21:46:22] <ses1984> or files
[21:46:22] <jnott> it just means you can't do {years_farming: 36}
[21:46:29] <jnott> has to be {"years_farming": 36}
[21:46:30] *** ivor has quit IRC
[21:46:38] <jaydubya> thanks, that's what I thought but it wasn't what I read ... gotcha
[21:46:51] <ses1984> you would probably have an actual javascript object that contained "years_farming":36 and use some kind of library to write it to a file
[21:47:18] <jaydubya> ses1984: I am just creating test data to style a form before I migrate and seed a database table and get the same data through a service
[21:47:18] *** Kiril_ has joined #angularjs
[21:47:19] *** jdivock_ has quit IRC
[21:47:20] *** Kiril_ has quit IRC
[21:47:46] <jaawerth> it's just that, in general if you want a singleton (be it a full-fledged object with properties and member functions and prototypes and things) or a simple object, or just some data, using angular's dependency injection is the way to go
[21:47:55] <jaawerth> a factory, service, value, constant, etc
[21:47:58] *** bkuberek_ has joined #angularjs
[21:48:00] <jaydubya> trying to get a prototype to the approval board so I am focusing on the CSS right now
[21:48:01] *** grogs has quit IRC
[21:48:04] *** umib0zu has joined #angularjs
[21:48:18] <ses1984> if the test data is simple, go ahead and write it by hand, but it might be better to get into some js console, make a js object that is exactly the test data you want, then stringify it
[21:49:17] *** fedenunez1 has quit IRC
[21:49:49] *** vassagus has joined #angularjs
[21:50:25] *** busticated has quit IRC
[21:50:54] *** bkuberek has quit IRC
[21:51:08] *** nemothekid has quit IRC
[21:51:22] *** elrabin has quit IRC
[21:51:55] *** warpx has joined #angularjs
[21:51:56] *** Anonymous_ has quit IRC
[21:52:00] *** elrabin has joined #angularjs
[21:52:23] *** cotko has quit IRC
[21:52:45] *** gunn has quit IRC
[21:53:01] *** richiebkr has quit IRC
[21:53:29] *** mmealling has joined #angularjs
[21:54:11] *** cotko has joined #angularjs
[21:54:12] *** MotherMGA1 has joined #angularjs
[21:54:29] *** jstroem has joined #angularjs
[21:55:00] <ioudas> Is anyone familar with bindonce here, pre angular 1.3?
[21:55:18] <ioudas> How do i use bindonce on an expression like {{group['fr-index-product-no']}}<
[21:55:19] *** gunn has joined #angularjs
[21:55:20] *** avens has quit IRC
[21:55:43] <MotherMGA1> how can I use the $location service to remove the #path from my url to change the route to ''? $location.path('') ends up as the '/' route
[21:55:55] *** aendrew has quit IRC
[21:56:18] *** __danimal__ has quit IRC
[21:56:48] *** robdubya has quit IRC
[21:56:57] <MotherMGA1> I'd like to have a button that removes the path completely
[21:57:08] *** swist has quit IRC
[21:57:11] *** richiebkr has joined #angularjs
[21:57:31] *** swist has joined #angularjs
[21:58:18] *** jdivock_ has joined #angularjs
[21:59:18] *** cotko has quit IRC
[21:59:39] *** yelvert has quit IRC
[22:00:05] *** yelvert has joined #angularjs
[22:00:07] *** aphadke has joined #angularjs
[22:00:13] *** gkap has quit IRC
[22:00:29] <aphadke> hello. does anyone have an example of masonry + infinitescroll where images are loaded via REST API (lazy loading)?
[22:00:34] *** elrabin has quit IRC
[22:00:36] *** lsiv568 has quit IRC
[22:00:53] *** lexek__ has quit IRC
[22:01:09] *** Zentdayn has quit IRC
[22:01:48] *** PrinceAMD has quit IRC
[22:01:49] *** richiebkr has quit IRC
[22:02:08] *** ciwolsey has joined #angularjs
[22:03:13] *** wallerdev has joined #angularjs
[22:03:19] *** gkap has joined #angularjs
[22:03:42] *** dannyc has joined #angularjs
[22:03:54] *** snapwich1 has quit IRC
[22:04:06] *** TheAceOfHearts has joined #angularjs
[22:04:31] *** yelvert has quit IRC
[22:04:32] *** richiebkr has joined #angularjs
[22:04:57] *** quartzmo has quit IRC
[22:05:10] *** macabre has quit IRC
[22:05:45] *** jasonp has joined #angularjs
[22:06:23] *** mennea has quit IRC
[22:06:56] *** lw has quit IRC
[22:06:56] *** mennea has joined #angularjs
[22:07:06] *** macabre has joined #angularjs
[22:07:56] *** jaredwilli has quit IRC
[22:08:00] *** dannyc has quit IRC
[22:08:37] *** settingh_ has quit IRC
[22:08:54] *** jgladwill has joined #angularjs
[22:08:55] *** jgladwill has joined #angularjs
[22:09:03] *** settinghead has joined #angularjs
[22:09:10] *** Christer has joined #angularjs
[22:09:34] *** gkap has quit IRC
[22:10:16] *** tristanp has quit IRC
[22:10:48] *** AciD`` has joined #angularjs
[22:10:49] *** tristanp has joined #angularjs
[22:11:56] *** jlebrech has joined #angularjs
[22:12:05] <AciD`> anybody here with experience on integrating laravel (php) with an existing angular app? Any do and don't ?
[22:12:20] *** jacuqesdancona_ has joined #angularjs
[22:12:24] *** simplyshipley has quit IRC
[22:12:29] *** jdcasey has joined #angularjs
[22:12:48] *** bionic has quit IRC
[22:12:48] *** tristanp has quit IRC
[22:13:02] *** tristanp has joined #angularjs
[22:13:21] *** Sadin has joined #angularjs
[22:13:27] *** borvoh has quit IRC
[22:13:32] *** chrisbirk has quit IRC
[22:13:37] *** settinghead has quit IRC
[22:14:03] *** warpx has quit IRC
[22:14:17] *** Superhard_ has joined #angularjs
[22:14:37] <tristanp> is there an angular or just native js way to emit a friendly ding for debugging purposes?
[22:14:59] <tristanp> that takes five min or less to set up
[22:15:00] <deyna> alert()
[22:15:17] *** deanclkclk_ has quit IRC
[22:15:30] <tristanp> i have been using those but the nature of the app means it would be better to have a ding than have to click continue each time it happens
[22:15:54] *** snapwich has joined #angularjs
[22:16:16] *** josh-k_ has joined #angularjs
[22:16:17] *** jlebrech has quit IRC
[22:16:28] <deyna> could you just set a scope variable on $rootScope and have a div someone that appears and then fades after a timeout?
[22:16:35] *** jacuqesdancona_ has quit IRC
[22:16:36] *** RobinBAwesome has joined #angularjs
[22:16:40] <deyna> maybe check out ngnotifications
[22:16:46] *** MaxV has quit IRC
[22:16:48] <deyna> easy to setup
[22:16:49] *** NormySan has quit IRC
[22:16:55] *** settinghead has joined #angularjs
[22:17:19] *** TheAceOfHearts has quit IRC
[22:17:24] *** MaxV has joined #angularjs
[22:18:29] *** ciwolsey has quit IRC
[22:18:30] *** sonofdirt has joined #angularjs
[22:18:54] *** Superhard_ has quit IRC
[22:19:16] *** josh-k has quit IRC
[22:19:32] *** settinghead has quit IRC
[22:19:58] *** settinghead has joined #angularjs
[22:20:33] *** moogey_eat is now known as moogey
[22:20:34] *** ngbot has joined #angularjs
[22:20:34] <ngbot> angular.js/master 7fd2dc1 Caitlin Potter: chore(bower/unpublish.sh): add angular-messages and angular-aria...
[22:20:34] *** ngbot has left #angularjs
[22:21:02] <cilkay> Hello. I'm trying to include angular-ui in my project. I've installed it via bower and the location is shared/components/angular-ui/build/angular-ui.js If I source that in my HTML, grunt serve complains that it can't injet angular-ui and removes it from my HTML. I suspect it's because angular-ui.js is in a sub-directory that grunt complains about it. How do I address that?
[22:21:20] <deyna> are you using wiredep?
[22:21:34] *** snapwich has quit IRC
[22:21:35] *** snapwich1 has joined #angularjs
[22:21:43] <cilkay> Given that I don't know what wiredep is, no. :)
[22:22:04] *** nemothekid has joined #angularjs
[22:22:17] *** Embassy has quit IRC
[22:22:23] * cilkay reading wiredep docs
[22:22:45] *** Guest26733 has quit IRC
[22:23:17] <deyna> wiredep is a grunt task that takes your bower file and injects all the dependencies into your index.html
[22:23:39] *** gladely has quit IRC
[22:23:44] *** warpx has joined #angularjs
[22:23:47] *** chrisbirk has joined #angularjs
[22:23:47] <cilkay> This is one of the AngularJS app template so I'm guessing it uses wiredep since I see that <!-- bower:js --> nomenclature in index.html.
[22:23:52] *** Zentdayn has joined #angularjs
[22:24:03] *** sabrehagen has joined #angularjs
[22:24:08] *** lsiv568 has joined #angularjs
[22:24:16] *** gladely has joined #angularjs
[22:24:17] *** pipoo has joined #angularjs
[22:24:19] <deyna> ye, sounds like it does
[22:24:21] *** Aerospark has joined #angularjs
[22:24:22] <cilkay> It gets configured in Gruntfile, apparently. I'll look.
[22:24:33] *** settinghead has quit IRC
[22:24:44] *** pilva1 has joined #angularjs
[22:24:46] <cilkay> No reference to wiredep in Grunfile.
[22:24:46] *** pulpfree has quit IRC
[22:24:51] *** Embassy has joined #angularjs
[22:25:47] *** lexek__ has joined #angularjs
[22:26:13] *** aljohri has joined #angularjs
[22:26:16] *** snapwich1 has quit IRC
[22:26:17] *** snapwich has joined #angularjs
[22:27:01] <deyna> typically its listed as a task to the build task
[22:27:34] *** axsuul has quit IRC
[22:27:49] *** brettfrable has quit IRC
[22:27:49] <deyna> anyone have any idea how to access a parent directives controller after you've transcluded some content?
[22:28:01] <deyna> pretty sure its an ng-repeat stopping me from getting hold of it
[22:28:12] *** renlord has joined #angularjs
[22:28:32] *** pilva has quit IRC
[22:28:47] *** pipoo has quit IRC
[22:28:55] *** MotherMGA1 has left #angularjs
[22:29:09] *** Sawbones has quit IRC
[22:29:29] *** cacts|wtf has quit IRC
[22:29:46] *** busticated has joined #angularjs
[22:30:18] *** LossFor has joined #angularjs
[22:30:28] *** SargoDar_ has joined #angularjs
[22:31:06] *** seriema has quit IRC
[22:31:07] *** mtsr has quit IRC
[22:31:11] *** dave_boling has joined #angularjs
[22:31:23] *** mtsr has joined #angularjs
[22:31:27] *** lsiv568 has quit IRC
[22:31:32] *** mzabriskie has quit IRC
[22:31:41] *** spatialbrew has quit IRC
[22:32:30] *** antons_ has joined #angularjs
[22:32:51] *** robdubya has joined #angularjs
[22:32:57] *** mogaj has joined #angularjs
[22:33:10] *** HawaiiCode has quit IRC
[22:33:25] *** antons__ has joined #angularjs
[22:33:40] *** RangerRick has quit IRC
[22:33:46] <cilkay> It is using wiredep. I grepped through node_modules and saw plenty of references to it in generator-angular
[22:34:07] <deyna> ye generato angular uses wiredep
[22:34:18] <deyna> is your bower.json up to date?
[22:34:18] *** mtsr has quit IRC
[22:34:21] *** Embassy has quit IRC
[22:34:24] <deyna> i.e. includes angular-ui
[22:34:45] *** jlevstein has quit IRC
[22:34:49] *** SargoDar_ has quit IRC
[22:34:57] <cilkay> Yes, I installed it like so: bower install angular-ui --save and I see it in bower.json
[22:34:58] *** RangerRick has joined #angularjs
[22:35:40] *** jonathanpglick has quit IRC
[22:36:09] *** elrabin has joined #angularjs
[22:36:22] *** mennea has quit IRC
[22:36:43] *** TheAceOfHearts has joined #angularjs
[22:36:48] <deyna> anytihg in your network tab about it not serving up the files?
[22:36:54] *** Embassy has joined #angularjs
[22:36:56] <deyna> and isit included in your app config?
[22:36:58] *** mennea has joined #angularjs
[22:37:57] <cilkay> It's in my app config and I don't see anything in the network tab. This nodeenv is quite crufty. I'll create a clean one and try again.
[22:38:07] *** patrick99e99 has quit IRC
[22:38:46] <cilkay> I had been doing things the hard way by manually adding stuff to the app. Reading the docs on generator-angular, I see that I can save quite a bit of hassle and time initially.
[22:38:50] *** Aerospark has quit IRC
[22:38:53] *** jaredwilli has joined #angularjs
[22:38:57] *** patrick99e99 has joined #angularjs
[22:38:57] *** gladely has quit IRC
[22:39:01] *** ajenkins has quit IRC
[22:39:21] *** lw has joined #angularjs
[22:39:25] *** JohnBat26 has quit IRC
[22:39:27] <nickeddy> cilkay: i have a build system take care of all my script imports/etc
[22:39:32] <nickeddy> using gulp
[22:39:38] *** cotko has joined #angularjs
[22:40:01] *** Sebastien-L has quit IRC
[22:40:01] <cilkay> I'm spending so much time learning about all this tooling that I'm not writing any code. :)
[22:40:15] <nickeddy> yeah a big part i'
[22:40:18] <deyna> use tooling whne you need it :)
[22:40:21] <nickeddy> i've realized is the setup
[22:40:25] *** Nivag_ has quit IRC
[22:40:39] <cilkay> Lot less tooling with Django, which is what I'm familiar with.
[22:40:40] <nickeddy> but once you get things how you want it goes much more smoothly
[22:40:49] <nickeddy> cilkay: :| i come from django as well
[22:40:56] *** rud has quit IRC
[22:41:02] <cilkay> Are you using Django in the backend?
[22:41:07] * snurfery 's ears perk up
[22:41:10] <snurfery> who said django?
[22:41:16] <snurfery> =)
[22:41:17] <nickeddy> for some old stuff, we're ditching it for sailsjs
[22:41:39] <nickeddy> aka i get the beautiful chore of rewriting our entire backend
[22:41:40] <nickeddy> yay
[22:41:56] <snurfery> wow
[22:42:02] *** garbanzio has quit IRC
[22:42:06] *** Left_Turn has joined #angularjs
[22:42:09] *** snapwich has quit IRC
[22:42:14] *** LossFor has quit IRC
[22:42:15] *** hell_razer has quit IRC
[22:42:24] *** garbanzio has joined #angularjs
[22:42:44] <snurfery> I'm considering sailsjs for some functionality, dunno how well it does with using existing database tables
[22:42:49] <nickeddy> well, after having adopted angular django just became django-rest-framework
[22:42:54] <cilkay> Where is the win if you already have Django working?
[22:42:56] * snurfery nods
[22:43:17] <nickeddy> snurfery: good news, we're working on some open source tools to turn any arbitrary sql (say, a psql dump from django) in to sails models
[22:43:21] *** snapwich has joined #angularjs
[22:43:23] <nickeddy> snurfery: i'll let you know when that's out
[22:43:27] *** snapwich has quit IRC
[22:43:28] <snurfery> ah nice
[22:43:31] *** bengillies has joined #angularjs
[22:43:41] *** snapwich has joined #angularjs
[22:43:44] *** Aerospark has joined #angularjs
[22:43:50] *** aphadke has quit IRC
[22:43:52] <snurfery> as it is, does sails let you do stuff like specify table names, field names, etc for each model?
[22:43:57] <nickeddy> yep
[22:43:57] <moogey> looks like I'll have to check out Sailsjs more
[22:44:04] <snurfery> cool
[22:44:28] <snurfery> lord knows my stack doesn't need more stuff in it
[22:44:47] <moogey> does sailsjs replace django in this case?
[22:45:05] *** swist has quit IRC
[22:45:16] <nickeddy> snurfery: you can use columnName: '' as an attribute property
[22:45:17] <moogey> cikay: Haven't looked yet, but if it's anything like flask with flask-classy I think I'm gonna like it
[22:45:30] <snurfery> cool
[22:45:31] *** aphadke has joined #angularjs
[22:45:37] *** jaredwil_ has joined #angularjs
[22:45:38] *** aphadke has quit IRC
[22:45:38] <nickeddy> snurfery: as well as specify connections for entire models/tables
[22:45:59] *** jaredwilli has quit IRC
[22:46:12] *** LossFor has joined #angularjs
[22:46:47] <nickeddy> i think we're going to use both a postgres db and mongodb for a document store
[22:47:15] <snurfery> omg I did exactly that
[22:47:20] *** evanjs has quit IRC
[22:47:21] <snurfery> it cost me months
[22:47:23] <cilkay> Are you aware that PostgreSQL now has JSON datatypes?
[22:47:23] <chachan> docs are much better today =)
[22:47:38] <ses1984> hey here's a long shot, wondering if anyone can help me find this
[22:47:48] <snurfery> because I tried to tie them together, i.e. mongo document referencing django IDs and vice versa
[22:47:57] <snurfery> but there was no data integrity so shit got weird
[22:48:04] <nickeddy> cilkay: psql json !== mongodb document store
[22:48:16] <nickeddy> snurfery: yeah waterline can do all that automatically
[22:48:29] <snurfery> (it's getting pretty close)
[22:48:31] *** bengillies has quit IRC
[22:48:32] <snurfery> whaddya mean
[22:48:35] <snurfery> psql + mongo?
[22:48:36] <ses1984> i was reading someone's blog which i think was dedicated to testing. the guy had some eastern european sounding name like czech or something like that. this certain blog post was about the importance of seams to make things easier to test
[22:49:06] *** cotko has quit IRC
[22:49:25] <nickeddy> snurfery: well you can use multiple dbs in waterline and aggregate data that way
[22:49:28] <Foxandxss> seams?
[22:49:33] <nickeddy> snurfery: though i need to test it out :)
[22:49:41] *** ctanga has quit IRC
[22:50:22] *** SonikBoom has joined #angularjs
[22:50:24] <snurfery> interesting
[22:50:44] <ses1984> seams meaning logical divisions in the code in which you can insert mocks
[22:50:44] *** sabrehagen has quit IRC
[22:50:59] *** sonofdirt has quit IRC
[22:51:16] <Foxandxss> never heard that concept
[22:51:55] *** rho has joined #angularjs
[22:51:56] *** rho has joined #angularjs
[22:52:47] <ses1984> this is the guy
[22:53:01] <Foxandxss> he is the angular creator
[22:53:14] *** dhcar_AFK is now known as dhcar
[22:53:18] <ses1984> well thats probably how i found him
[22:53:21] *** dave_boling has quit IRC
[22:53:28] <ses1984> looking up angular stuff
[22:54:37] *** ProLoser has joined #angularjs
[22:55:18] *** gladely has joined #angularjs
[22:55:27] *** D-Boy has quit IRC
[22:56:04] *** sabrehagen has joined #angularjs
[22:56:17] *** htowngangsta has joined #angularjs
[22:56:18] *** soee has quit IRC
[22:57:01] *** yelvert has joined #angularjs
[22:57:25] <nickeddy> robdubya: is angularSails still usable?
[22:57:38] <robdubya> yepp
[22:57:42] <nickeddy> robdubya: <3
[23:00:00] *** macobo has quit IRC
[23:00:23] *** Aerospark has quit IRC
[23:00:33] *** aljohri has quit IRC
[23:01:41] *** samuel02 has quit IRC
[23:01:52] *** iribarne_ has joined #angularjs
[23:01:55] *** Etherael has joined #angularjs
[23:01:59] *** FIFOd[a] has quit IRC
[23:02:46] *** RobinBAwesome_ has joined #angularjs
[23:02:53] *** iribarne has quit IRC
[23:02:53] *** iribarne_ is now known as iribarne
[23:03:15] *** D-Boy has joined #angularjs
[23:04:15] *** sjee has joined #angularjs
[23:04:17] *** Siecje has left #angularjs
[23:04:42] *** RobinBAwesome has quit IRC
[23:04:42] *** RobinBAwesome_ is now known as RobinBAwesome
[23:05:07] *** _mtr has quit IRC
[23:05:15] *** stormbytes has quit IRC
[23:05:18] <nickeddy> robdubya: and does $sailsSocket give promises back?
[23:05:25] <robdubya> yes
[23:05:32] *** polumetis has joined #angularjs
[23:05:35] <robdubya> its == to the $http API
[23:05:38] *** iribarne_ has joined #angularjs
[23:06:01] <cilkay> nickeddy: I've never been a fan of specifying assets like CSS and JS files anywhere but in the HTML. There are various projects like this in Django, too. Django pipeline does it similar to how you're doing it, in a config file. I prefer the django-compressor approach where anything between the {% compress %}{% endcompress %} tags will be built/minified/combined.
[23:06:20] <dman777_alter> Foxandxss: question...please :) ....if I have a input box that takes a 5 digit number. Do I write a protractor test for it('should be invalid if not 5 digit number') for the port field, or am I re-testing angular.js code that angular.js has already tested?
[23:06:25] *** mennea has quit IRC
[23:06:53] *** jlambert121 has joined #angularjs
[23:07:03] *** mennea has joined #angularjs
[23:07:10] <Foxandxss> is that working with a custom validation or something?
[23:07:11] *** dmack has quit IRC
[23:07:17] *** iribarne has quit IRC
[23:07:17] *** iribarne_ is now known as iribarne
[23:07:23] *** Angelo has quit IRC
[23:07:23] *** multi_io has quit IRC
[23:07:30] *** multi_io has joined #angularjs
[23:07:42] *** Angelo has joined #angularjs
[23:07:48] <dman777_alter> Foxandxss: ng-pattern="/^\d{1,5}$/"
[23:07:55] <nickeddy> cilkay: except i can easily specify to minify or not - it doesn't actually uglify/minify anything unless on production
[23:07:57] *** polumetis has quit IRC
[23:08:03] <Foxandxss> I would test it dman777_alter
[23:08:07] <dman777_alter> Foxandxss: ok, thanks!
[23:08:27] <cilkay> nickeddy: That's driven by settings.DEBUG for django-compressor.
[23:08:39] *** polumetis has joined #angularjs
[23:08:47] <cilkay> In dev, it's not minified.
[23:08:55] *** soee has joined #angularjs
[23:08:57] *** polumetis has quit IRC
[23:09:10] <Foxandxss> dman777_alter: take in mind that even when ng-pattern is from angular, the regexp is yours, you need to test that it is working as you expected
[23:09:38] *** polumetis has joined #angularjs
[23:09:52] *** eric_ has joined #angularjs
[23:09:59] *** BillCriswell has quit IRC
[23:10:36] *** gladely has quit IRC
[23:10:42] *** Etherael has quit IRC
[23:11:39] *** juanlas has quit IRC
[23:11:49] *** IvanoffCSI has joined #angularjs
[23:11:55] *** Sadin has quit IRC
[23:12:08] *** jchamberlain has quit IRC
[23:12:41] *** Aerospark has joined #angularjs
[23:12:50] <nickeddy> cilkay: yeh i'm trying to get away from virtualenv crap
[23:13:11] *** mennea has quit IRC
[23:13:17] <dman777_alter> Foxandxss: +1
[23:13:25] *** polumetis has quit IRC
[23:13:32] *** adben has joined #angularjs
[23:13:43] <cilkay> Huh? Nothing I've said has anything to do with virtualenv, not to mention, what's wrong with virtualenv? I use nodeenv within virtualenv. I like that isolation.
[23:14:26] <nickeddy> cilkay: and i don't have to specify anything but dependencies before angular.js. can easily make a post-angular (i.e. module dependency) folder and just use another glob
[23:14:33] *** polumetis has joined #angularjs
[23:14:50] *** garbanzio has quit IRC
[23:15:04] *** stephen has quit IRC
[23:15:13] *** Aerospark has quit IRC
[23:15:19] *** Superhard_ has joined #angularjs
[23:15:22] *** soee has quit IRC
[23:16:19] *** Aerospark has joined #angularjs
[23:16:44] *** sjee has quit IRC
[23:17:02] *** tyson2 has quit IRC
[23:17:12] *** davek has joined #angularjs
[23:17:23] *** davek has joined #angularjs
[23:17:29] *** polumetis has quit IRC
[23:17:59] *** polumetis has joined #angularjs
[23:18:30] *** garbanzio has joined #angularjs
[23:18:57] *** foofoobar has quit IRC
[23:18:57] *** dsdeiz has joined #angularjs
[23:19:12] *** juanpablo__ has joined #angularjs
[23:20:06] *** Superhard_ has quit IRC
[23:21:03] *** kirfu has joined #angularjs
[23:21:06] *** juanpablo_ has quit IRC
[23:21:47] *** polumetis has quit IRC
[23:22:09] *** Efrem has quit IRC
[23:22:53] *** polumetis has joined #angularjs
[23:22:58] *** Pookz has joined #angularjs
[23:22:59] *** soee has joined #angularjs
[23:22:59] *** jchamberlain has joined #angularjs
[23:23:04] *** Sawbones has joined #angularjs
[23:23:42] *** polumetis has quit IRC
[23:24:09] *** polumetis has joined #angularjs
[23:24:42] *** sonofdirt has joined #angularjs
[23:25:18] <lebster> am i only supposed to create a CRUD web api for angular? or should i just pass stuff the web api for the action. business logic in angular or in my web api?
[23:25:38] *** polumetis has quit IRC
[23:25:43] *** qwerty has joined #angularjs
[23:25:48] <qwerty> hi
[23:26:02] *** bigx has quit IRC
[23:26:06] *** qwerty is now known as Guest25108
[23:26:22] <jaawerth> lebster: little of column A, little of column B really. anything secure should be done on the API, of course
[23:26:35] <jaawerth> insofar as authentication and the like goes, I mean
[23:26:52] <jaawerth> or any actions that your app needs to do but the user shouldn't be able to do
[23:27:16] *** warpx has quit IRC
[23:27:19] *** kirfu has quit IRC
[23:28:28] *** ccohn has quit IRC
[23:28:43] <lebster> some actions would use part of a model object, other actions would use the whole model part. do i expose the whole thing and let my angular code figure it all out
[23:28:52] *** BobbieBarker_ has joined #angularjs
[23:28:57] *** deyna has quit IRC
[23:29:02] *** walden is now known as walden|afk
[23:29:07] *** ccohn has joined #angularjs
[23:29:46] <jaawerth> depends, really. I'd start by grabbing the whole model and optimize later if you want to trim it down
[23:29:56] *** ianpirro has quit IRC
[23:30:48] <jaawerth> Guest25108: batterang hasn't been updated in well over a year. are there any other indications of issues?
[23:31:40] *** patrick99e99 has quit IRC
[23:31:53] *** mzabriskie has joined #angularjs
[23:32:07] *** quartzmo_ has joined #angularjs
[23:32:10] <jaawerth> batarang*
[23:32:18] <Guest25108> jaawerth:the other indication is that {{ data.texto }} give me {{ data.texto }} instead of the text
[23:32:30] *** jonathanpglick has joined #angularjs
[23:32:33] <jaawerth> hmm
[23:33:12] *** night-owl is now known as jquery-owl
[23:33:12] *** ccohn has quit IRC
[23:33:38] *** yelvert has quit IRC
[23:33:41] <jaawerth> Guest25108: errors in console.log?
[23:33:54] *** elrabin has quit IRC
[23:33:54] <jaawerth> or rather, in the console, period ;-)
[23:34:04] *** yelvert has joined #angularjs
[23:34:17] *** uru is now known as uru|away
[23:34:27] *** fouadm has joined #angularjs
[23:34:30] *** elrabin has joined #angularjs
[23:34:31] <Guest25108> jaawerth:no errros on the console
[23:34:44] <lebster> hmm so you would start off using object/update and then optimize it later to be like object/approve?
[23:34:57] <jaawerth> that is VERY strange, because if you're getting {{ }} in your template, that doesn't just mean your scopes are empty, it means it's not compiling at all
[23:35:01] *** whitebook has joined #angularjs
[23:35:14] <lebster> or only switch to object/approve if you needed to perform other actions not related to the object
[23:35:18] <jaawerth> which usually happens due to an error stopping angular
[23:35:39] <Guest25108> jaawerth:how can I print the content of $scope on the console?
[23:35:47] <jaawerth> lebster: probably start with object/update since it's easier and approve is a middleman
[23:36:08] <lebster> whats middleman mean
[23:36:18] <jaawerth> Guest25108: you'd need to put a breakpoint in your code so execution stops somewhere that has access to $scope (like a controller)
[23:36:19] *** loverajoel has quit IRC
[23:36:20] *** uris77 has quit IRC
[23:36:27] <jaawerth> oh, well yeah that's your issue
[23:36:29] *** quartzmo_ has quit IRC
[23:36:33] *** dacuca has quit IRC
[23:36:37] <jaawerth> your app is failing to download the code for angular itself
[23:36:43] <jaawerth> so nothing is executing ;-)
[23:36:55] *** geiltalasdair has joined #angularjs
[23:36:56] *** annlewis has joined #angularjs
[23:36:58] *** eric_ is now known as Etherael
[23:37:04] *** garbanzio has quit IRC
[23:37:09] <jaawerth> or rather, on your localhost. is your local server running?
[23:37:12] *** stormbytes has joined #angularjs
[23:37:15] *** ianpirro has joined #angularjs
[23:37:27] *** uris77 has joined #angularjs
[23:37:47] *** quartzmo has joined #angularjs
[23:37:48] <TheAceOfHearts> Marketo's javascript bullshit thing is so bad…
[23:38:37] <jaawerth> lebster: well, functionality-wise, I'd write the methods for update since they'd likely be called by approve methods
[23:38:40] *** yelvert has quit IRC
[23:38:44] <jaawerth> unless you mean it differently
[23:38:48] <Etherael> I have an unrelated UX question, why the hell do people disable paste of things like password elements on forms using js libs? that seems mind smashingly stupid.
[23:39:27] <jaawerth> in a silly attempt to prevent brute forcing? I dunno, I don't like it either - I use keepass
[23:39:34] *** whitebook has quit IRC
[23:39:35] <lebster> approve methods in your angular?
[23:39:39] *** quartzmo has left #angularjs
[23:39:39] <Etherael> exactly why I think it's mindsmashingly stupid.
[23:39:41] <lebster> or web api middle man
[23:39:47] <jaawerth> I mean on the server
[23:39:49] <Etherael> I also use keepass.
[23:40:21] *** jmckind has quit IRC
[23:40:32] *** SexualRickshaw has joined #angularjs
[23:40:47] *** deanclkclk_ has joined #angularjs
[23:40:49] *** geilt has quit IRC
[23:41:18] *** Nivag_ has joined #angularjs
[23:41:42] <jaawerth> Etherael: hmm you could probably write a greasemonkey script to override that
[23:41:59] <Guest25108> jaawerth:I fix the problem and now I dont see any li
[23:42:00] <jaawerth> or.. whatever the Chrome equivalent is. I haven't done any of that since I switched to Chrome which was.. I can't even remember
[23:42:05] <snurfery> ugh I hate that
[23:42:07] *** sabrehagen has left #angularjs
[23:42:09] <snurfery> paypal does that I think
[23:42:14] <snurfery> during registration
[23:42:22] *** Left_Turn has quit IRC
[23:42:36] *** lw has quit IRC
[23:42:46] *** elrabin has quit IRC
[23:42:56] <jaawerth> Guest25108: well.. you're making progress! I can help debug further if you set everything up in a plnkr and see if it executes there, but it's tough to debug your whole app in a static pastebin
[23:43:02] *** dave_boling has joined #angularjs
[23:44:01] *** fedenunez has joined #angularjs
[23:44:29] *** Fuzzy has quit IRC
[23:44:31] *** d4rklit3 has quit IRC
[23:45:03] <Etherael> snurfery, Yeah paypal and australia post, I'm just trying to grasp what possible reason they could have to do it and I'm coming up blank.
[23:45:52] *** neilff has quit IRC
[23:45:56] <stormbytes> how would you access an 'owner' object from within its property object? eg. owner { name: "bob", foo: new Foo() } how would owner.Foo access owner.name?
[23:46:10] *** ppppaul has quit IRC
[23:46:16] *** Fuzzy has joined #angularjs
[23:46:21] *** imehesz has quit IRC
[23:46:57] *** baweaver has joined #angularjs
[23:47:09] *** d4rklit3 has joined #angularjs
[23:47:32] *** dannyc has joined #angularjs
[23:48:02] *** mchapman has quit IRC
[23:48:36] <jaawerth> Guest25108: I already did - and like I said, it's kinda tough to debug static code compared to a plnkr that will actually execute. The only thing I can think of - it LOOKS like you've got your home route configured to to use index.html as the templateUrl, which is also your main page with your <ng-view>
[23:48:40] <jaawerth> that isn't gonna work
[23:49:51] *** scythe__ has quit IRC
[23:50:14] *** fedenunez has quit IRC
[23:52:16] *** mmealling has quit IRC
[23:52:32] *** IJNX has quit IRC
[23:52:40] *** gladely has joined #angularjs
[23:52:52] *** dannyc has quit IRC
[23:53:14] <jaawerth> you don't have any of the libraries set up on there.. *sigh* alright, guess I'll do it for you
[23:53:57] *** chachan has quit IRC
[23:54:03] *** gladely has quit IRC
[23:54:05] *** rafagomes has quit IRC
[23:54:35] *** gladely has joined #angularjs
[23:54:40] *** andrewvee has quit IRC
[23:56:29] *** chrisbirk has quit IRC
[23:56:39] *** morenoh149 has joined #angularjs
[23:56:49] *** nya has quit IRC
[23:57:32] *** mogaj has quit IRC
[23:57:34] *** whitebook has joined #angularjs
[23:57:36] *** settinghead has joined #angularjs
[23:57:51] *** iateadonut has left #angularjs
[23:58:16] <Guest25108> jaawerth:which libraries are nor seted?
[23:58:21] *** IvanoffC_ has joined #angularjs
[23:58:21] *** iribarne has quit IRC
[23:59:09] *** axsuul has joined #angularjs
[23:59:19] *** chrisbirk has joined #angularjs
[23:59:23] <mclenithan> do yall use 'resolve' in $routeProvider to lock down URLs from non-auth'd users? by using a authService or something?
[23:59:31] *** ccohn has joined #angularjs
[23:59:47] <mclenithan> any good resources for best practices on this issue? ^^
[23:59:51] <jaawerth> Guest25108: angular, foundation - all of 'em. The thing about plnkr is you can use the "libraries" tab (or a valid script tag pointing to a CDN) to grab the libraries so the code youo put in it will executue