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

Toggle Join/Part | bottom
[00:00:05] <oste> now i am finding myself needing this http://pterkildsen.com/2013/02/21/executing-code-when-all-templates-have-been-included-angularjs/
[00:00:10] <oste> so i can know when all of my includes have loaded
[00:00:20] <Grokling> dreambox: Sure, but how do I run them? To determine if what I'm about to propose will actually help, or just confuse you more?
[00:00:26] *** tilgovi has joined #angularjs
[00:00:39] <dreambox> it's just a dependency/scope issue I think..
[00:00:58] <Grokling> dreambox: It's just two files ;-) make a plunker.
[00:01:25] <dreambox> Grokling: I have a node js backend driving the data, the plunker will never work
[00:01:33] *** linojon has quit IRC
[00:01:51] <Grokling> We don't need data. we need a factory, and a controller, and some console.log statements...
[00:01:54] <jaawerth> Logicgate: as for your question about $scope and ctrl/this, I assume you're using controllerAs syntax?
[00:01:56] *** brettfrable has joined #angularjs
[00:02:15] *** slopjong has quit IRC
[00:02:21] *** mupkoo has joined #angularjs
[00:02:21] *** bayousoft has quit IRC
[00:02:23] <Grokling> dreambox: The whole idea is to cut away EVERYTHING that doesn't illustrate the core of the problem.
[00:02:32] <dreambox> damn plunk.. I ll do it
[00:02:32] *** xavia has joined #angularjs
[00:02:54] *** ccohn has quit IRC
[00:02:59] *** deveras has joined #angularjs
[00:03:06] *** whitebook has quit IRC
[00:03:15] <jaawerth> Logicgate: when you're using controllerAs, your controller gets set as an object on $scope. $scope still isn't global - your controller's particular $scope is available via the $scope service that you inject into it. The point of controllerAs is that now you can set properties on the controller, and your controller acts as a de facto object wrapper your controller vars, so you can avoid the "primitives on scope" issue
[00:03:44] *** yelvert has quit IRC
[00:04:05] *** mupkoo has quit IRC
[00:04:07] <jaawerth> Logicgate: as for your question about $scope.$apply, I'm not sure what you mean?
[00:04:33] *** dnull has joined #angularjs
[00:04:42] <dreambox> Grokling: http://plnkr.co/edit/SLl7ih3bhEZt6s5yrGjJ?p=catalogue there you go
[00:05:09] *** jbeaudry has joined #angularjs
[00:05:43] *** TheAceOfHearts has joined #angularjs
[00:06:04] <jcool> I am able to push data to backend sucessfully. When I go to view data, the data I last insrted is shown pretty late at frontend
[00:06:15] *** Guest49722 has quit IRC
[00:06:26] <jcool> Although the json file which gives data is updated and shows the response.
[00:06:37] <Grokling> dreambox: So, you've pasted your two files into plunker, but made no effort to get it working? Kinda missing the point?
[00:06:41] *** browles has joined #angularjs
[00:06:57] *** ozooner has quit IRC
[00:07:04] *** Owner__ has joined #angularjs
[00:07:27] <dreambox> Grokling: It's not possible to make it work man.. It uses a server side html template generated by node/express...
[00:07:28] *** Owner__ is now known as Guest83175
[00:07:42] *** woah has quit IRC
[00:07:42] <dreambox> it has variables, the JS is generated dynamically, uses requirejs n shit..
[00:07:52] <dreambox> sorry, it's ok if you cant help !
[00:08:00] <deweydb> anyone here use bower?
[00:08:01] <dreambox> I'll just try with a book or something :)
[00:08:11] <dreambox> but thanks
[00:08:20] <Logicgate> jumpman: http://jsfiddle.net/hm4qb8jh/2/
[00:08:34] *** saucey has quit IRC
[00:08:36] *** MistahKurtz has quit IRC
[00:08:37] *** sheerun has quit IRC
[00:08:44] *** uru is now known as uru|awa
[00:08:44] *** allgeek has quit IRC
[00:08:47] *** uru|awa is now known as uru|away
[00:08:48] <Grokling> dreambox: What you need to do is make a factory that does something, so you can understand the syntax and structure. Completely unrelated to your specific use-case.
[00:08:50] *** MistahKurtz has joined #angularjs
[00:08:57] *** ozooner has joined #angularjs
[00:09:11] <Grokling> dreambox: I could link you to one, but it's epically more complex than you're ready for, or need.
[00:09:13] <dreambox> ye that's what I did, I pasted you a 4 line factory...
[00:09:16] *** FunnyLookinHat has quit IRC
[00:09:17] <dreambox> and you didnt spot any errors
[00:09:20] <jcool> All actions at backend are being done but view in angular takes time to update
[00:09:26] <dreambox> yet the controller says the method is undefined
[00:09:26] *** Fishy has quit IRC
[00:09:34] <Logicgate> jumpman, does that make sense?
[00:09:38] <dreambox> I've even used some factories before..
[00:09:52] <Grokling> dreambox: So, put your 4 line factory in plunker, connect it to your controller, and make it break. Then I can see what you're up to.
[00:09:55] *** firelinks has joined #angularjs
[00:10:16] *** firelinks has quit IRC
[00:10:23] <dreambox> I'll do it in the morning.. you guys are on the US timezone :) it's sleep time here ;)
[00:10:28] *** joshontheweb has joined #angularjs
[00:10:28] *** firelinks has joined #angularjs
[00:10:37] <Grokling> I'm in the NZ timezone.. it's lunchtime.
[00:10:41] *** settinghead has quit IRC
[00:11:17] *** fedenunez has joined #angularjs
[00:11:45] *** kuadrosx has joined #angularjs
[00:11:51] *** qstrahl has quit IRC
[00:11:51] *** netameta_ has joined #angularjs
[00:12:03] <eddiemonge> deweydb: yes why
[00:12:15] <deweydb> sorry if this is a dumb question but
[00:12:19] <deweydb> how do i make it only install /dist
[00:12:22] *** _ritchie_ has quit IRC
[00:12:23] <deweydb> i don't want all the other files
[00:12:30] *** shaisnir_ has quit IRC
[00:12:44] *** mattblang_ has joined #angularjs
[00:12:48] *** Nizumzen has quit IRC
[00:12:52] *** netameta has quit IRC
[00:12:59] <deweydb> or is there some sort of tool that i can later run that packages up all the files without the extra docs and stuff before i push to production?
[00:13:00] *** dgee has quit IRC
[00:13:01] <eddiemonge> you have the module owner exclude other files
[00:13:01] *** erquhart has quit IRC
[00:13:30] <deweydb> but pretty much every angular module is like this
[00:13:33] <eddiemonge> deweydb: you should only be pushing the files you actual use. have you looked at wiredep?
[00:13:41] <deweydb> no, im new to this
[00:13:57] *** Ilgrim_ has joined #angularjs
[00:14:03] *** dhcar_AFK is now known as dhcar
[00:14:05] *** marr has joined #angularjs
[00:14:05] *** browles has quit IRC
[00:14:18] <deweydb> ok, this looks like waht i was looking for
[00:14:19] <deweydb> thanks
[00:14:28] *** jaydubya has quit IRC
[00:14:29] *** monir has quit IRC
[00:14:42] *** mennea has quit IRC
[00:15:03] *** jaydubya has joined #angularjs
[00:15:30] *** mrits has quit IRC
[00:15:38] *** oste has quit IRC
[00:15:54] *** cthrax has quit IRC
[00:16:01] *** bkuberek has quit IRC
[00:16:15] *** dylang has quit IRC
[00:16:23] *** danecando has joined #angularjs
[00:16:29] *** fedenunez has quit IRC
[00:16:54] *** Ilgrim has quit IRC
[00:16:56] *** browles has joined #angularjs
[00:17:02] *** simplegy has joined #angularjs
[00:17:20] <simplegy> Hello angular friends.
[00:17:37] *** gazbond has quit IRC
[00:17:49] *** dreambox has quit IRC
[00:17:54] *** dcherman has quit IRC
[00:18:36] *** michaelfavia has quit IRC
[00:19:00] *** TheAceOfHearts has quit IRC
[00:19:37] *** jaydubya has quit IRC
[00:19:44] <simplegy> I'm trying to troubleshoot why a scope.$apply callback fires in one situation but not another.
[00:20:29] <simplegy> I think that maybe the scope is getting destroyed before the apply callback can fire, but I don't know how to confirm--batarang?
[00:21:08] *** MaxV has joined #angularjs
[00:21:41] *** TheAceOfHearts has joined #angularjs
[00:21:56] *** pipoo_ has joined #angularjs
[00:22:13] <Logicgate> How can the scope be destroyed?
[00:22:14] *** jonr22 has joined #angularjs
[00:22:22] <Logicgate> Can we see the code simplegy
[00:22:24] *** tkdaj has joined #angularjs
[00:22:26] *** yelvert has joined #angularjs
[00:22:29] <Grokling> simplegy: Put some breakpoints in the source in developer tools.
[00:22:30] *** cthrax has joined #angularjs
[00:22:46] <tkdaj> I have a link function in a directive which, at the end of it, I do:
[00:22:46] <tkdaj> $(elem).find(' > * > tr:last').after('<tr><td colspan="' + (scope.max - 1) + '"></td><td><div class="btn-group"> <button type="button" class="btn btn-default" ng-repeat="pageNumber in pageNumbers">{{pageNumber}}</button> </div></td></tr>');
[00:23:02] <baweaver> For people using UI-Router and bootstrap, how do you reconcile with bootstrap changing the URL for certain actions?
[00:23:14] <tkdaj> and for some reason the button that I add just shows up as {{pageNumber}} even though pageNumbers = [1, 2];
[00:23:20] *** yiati has quit IRC
[00:23:20] <tkdaj> anyone know why that would happen?
[00:23:30] <baweaver> error in the code
[00:23:42] <baweaver> Angular will spit out raw if there's something wrong
[00:23:44] <Logicgate> tkdaj, need to see code.
[00:23:46] <baweaver> check the console.
[00:23:53] <tkdaj> no error in console
[00:23:54] <baweaver> it'll tell you
[00:24:03] <tkdaj> I'll put up a plunkr
[00:24:04] <jcool> I added some data via form from angular. Now when I view my data my response gets updated few seconds later. The last response pushed to backend gets updated on view after 10s.
[00:24:04] <tkdaj> with code
[00:24:26] *** davek has joined #angularjs
[00:24:47] * Logicgate waiting on tkdaj's plunker.
[00:24:59] <tkdaj> http://plnkr.co/edit/RBBZXd1EZpKzcsq5SilV?p=catalogue
[00:25:18] <tkdaj> it isn't a working plunkr, because there is a lot of outside stuff I would have to add
[00:25:28] <tkdaj> but those are the two thing communicating that something is wrong with
[00:25:31] *** Guest83175 has quit IRC
[00:26:02] *** kentaro0919 has joined #angularjs
[00:26:08] *** dcherman has joined #angularjs
[00:26:12] *** TripTastic has joined #angularjs
[00:26:15] *** jiskiras has quit IRC
[00:26:20] <tkdaj> it may have something to do with the scope? I am not sure... I am new to directives and link functions
[00:26:29] *** c00ljs has joined #angularjs
[00:26:37] *** jonr22 has quit IRC
[00:27:08] *** Ilgrim_ has quit IRC
[00:27:22] *** ozooner has quit IRC
[00:27:24] *** ozooner_ has joined #angularjs
[00:27:40] <Logicgate> tkdaj, I can't diagnose that code.
[00:27:43] *** iribarne has quit IRC
[00:27:47] <Logicgate> I need all of it.
[00:28:00] *** CamonZ has joined #angularjs
[00:28:01] <tkdaj> what else do you need? that's all that I have
[00:28:02] <jaawerth> tkdaj: if you're manually appending stuff to the DOM in a directive, and that stuff contains angular template magic, you need to also use $compile on it
[00:28:11] <tkdaj> ah okay!@
[00:28:13] <tkdaj> I was thinking that
[00:28:15] <tkdaj> but I wasn't sure
[00:28:21] <tkdaj> I haven't used compile yet...
[00:28:36] <tkdaj> thank you. I will look into compile
[00:28:39] <jaawerth> sure thing
[00:28:44] *** jaydubya has joined #angularjs
[00:28:52] <tkdaj> should I put ALL of that code into compile, then? Since it is all just setup stuff?
[00:28:57] *** SoulBlade has joined #angularjs
[00:29:05] <tkdaj> Then I would put the interactive stuff in the link?
[00:29:10] *** lw has joined #angularjs
[00:29:21] <jaawerth> I don't mean in the compile block of the directive
[00:29:25] *** lud has quit IRC
[00:29:27] *** JBreit has quit IRC
[00:29:30] *** durango has joined #angularjs
[00:29:33] <tkdaj> where do you mean?
[00:29:41] <jaawerth> basically, if you manually add new DOM elements in your link function, that comes in after your directive's template has been compiled
[00:29:53] <durango> Any idea why this https://gist.github.com/durango/609f8c33776fe9ee912f wont actually *set* the stupid header for "Authorization"?
[00:29:56] <jaawerth> so you need to use the $compile service on your new content so angular compiles it on the scope and wires everything up
[00:30:09] *** _ritchie_ has joined #angularjs
[00:30:12] <tkdaj> oh... Is that still inside the directive?
[00:30:19] *** cam_y has joined #angularjs
[00:30:20] <tkdaj> Do you have a link to something that would specify how to do that?
[00:30:20] <jaawerth> you'd still use it in the link function
[00:30:23] *** jasonp has quit IRC
[00:30:28] <tkdaj> oh
[00:31:01] <simplegy> the scope search in batarang is broken, right?
[00:31:03] *** juampy has quit IRC
[00:31:03] *** DanielKarp has quit IRC
[00:31:25] *** sheerun has joined #angularjs
[00:31:34] <Foxandxss> batarang is normally broken itself
[00:31:35] *** mjs2600 has joined #angularjs
[00:31:50] *** Guest29 has joined #angularjs
[00:32:18] <baweaver> ng-inspector is as well, man does that thing make a mess of errors in the console for no reason...
[00:32:44] *** ludkiller has joined #angularjs
[00:33:14] <baweaver> really, angular debugging in general is a headache
[00:33:33] *** SoulBlade has quit IRC
[00:33:47] <nicholes> +1 for unit tests, baby!!
[00:34:06] *** eddiemonge has quit IRC
[00:34:29] *** Guest29 has quit IRC
[00:34:43] *** TyrfingMjolnir has joined #angularjs
[00:34:49] *** shackleford has quit IRC
[00:34:53] *** Guest29 has joined #angularjs
[00:35:03] <baweaver> unit tests do crap-all good in the case of debugging some times
[00:35:32] *** prbc has quit IRC
[00:35:44] *** Shrooms has joined #angularjs
[00:35:57] <baweaver> even the most zealatous adherents of TDD are going to run up against nifty edge cases frequently.
[00:36:00] <Foxandxss> console.log is always my friend
[00:36:06] *** mjs2600 has quit IRC
[00:36:15] <baweaver> Still seems too basic.
[00:36:23] <Foxandxss> ya, but works for me :P
[00:36:25] <nicholes> zealous! :D
[00:36:43] <baweaver> that's not a good thing, mind
[00:36:50] *** rtpg has joined #angularjs
[00:37:03] <Foxandxss> working is a good thing for me
[00:37:14] <baweaver> referring to nicholes
[00:37:22] <tkdaj> so what is the difference between compile and $compile?
[00:37:23] <nicholes> baweaver: TDD isn't a good thing?
[00:37:29] *** mbildner has quit IRC
[00:37:31] <baweaver> being a zealot isn't
[00:37:35] <nicholes> ah
[00:37:43] <Foxandxss> tkdaj: $compile calls compile
[00:37:44] <nicholes> Unless you live your life for Auir, amirite
[00:37:45] *** prbc has joined #angularjs
[00:37:57] *** yelvert has quit IRC
[00:37:57] <baweaver> realizing that it's not an almighty silver bullet is a critical step of pragmatism some miss.
[00:38:00] *** diegoaguilar has quit IRC
[00:38:07] <tkdaj> oh... so compile is something you add as a key-value to your directive
[00:38:12] <tkdaj> how do you use $compile?
[00:38:24] <snurfery> the docs explain better than we can
[00:38:24] *** yelvert has joined #angularjs
[00:38:27] <Foxandxss> no
[00:38:34] <Foxandxss> with $compile you can compile chunks of html
[00:38:37] <Foxandxss> to process their directives
[00:38:42] <Foxandxss> and then link it with a scope
[00:38:53] <tkdaj> okay
[00:38:56] <sacho_> hmm, is there an updated version of batarang, or a similar extension?
[00:39:00] <baweaver> something like $compile(template, scope)
[00:39:09] <baweaver> none that work well at all at least.
[00:39:24] *** oncenull has joined #angularjs
[00:39:24] <sacho_> how lazy of us
[00:39:27] <baweaver> they went out of date with updates and choke all over themselves.
[00:39:27] <Foxandxss> because that line is wrong
[00:39:38] *** sheerun has quit IRC
[00:39:39] *** joshontheweb has quit IRC
[00:39:39] <simplegy> Is there a way to fetch a scope by id?
[00:39:46] <Foxandxss> baweaver: I have enough of your rant for today
[00:39:48] *** rtpg has quit IRC
[00:39:52] <simplegy> scusi by `$id`
[00:39:57] <baweaver> Good for you?
[00:40:00] <Foxandxss> simplegy: that is not useful
[00:40:13] <Foxandxss> baweaver: that is a way to say "shut up a little bit"
[00:40:18] <Foxandxss> but without being harsh
[00:40:36] <baweaver> and that was a way of saying I see no particular reason to, as that's still true.
[00:40:44] <simplegy> haha
[00:40:51] <simplegy> Not useful to you, then?
[00:41:01] <Foxandxss> not useful at all
[00:41:12] *** ckboii89_ has quit IRC
[00:41:17] <baweaver> they have a lot of rough edges that don't get updated with the new versions of angular
[00:41:20] <simplegy> I have a magical disappearing scope, just want to confirm it's really gone.
[00:41:31] *** ckboii89 has joined #angularjs
[00:41:35] <Foxandxss> well, for debugging, uhmm
[00:41:38] *** dnull has quit IRC
[00:41:45] <simplegy> right-o
[00:41:48] <Foxandxss> still, scopes don't disappear
[00:41:55] <Foxandxss> probably youre accessing the wrong one
[00:42:08] <Foxandxss> baweaver: they accept pull requests
[00:42:18] *** yelvert_ has joined #angularjs
[00:42:20] <BahamutWC|Work> string.prototype.replace makes me sad
[00:42:40] *** sheerun has joined #angularjs
[00:42:44] *** oncenull has quit IRC
[00:42:49] <simplegy> well--they do if an ng-repeat redraws a list. And in many other instances.
[00:42:49] <jaawerth> tkdaj: yeah, $compile is how angular looks at html and finds/acts on the directives. Here's a quick example of using it http://plnkr.co/edit/1DWqVgY0Y7jtSZ3gf16s?p=preview
[00:42:55] <baweaver> Of which I'm aware. I'm commenting on the fact that they don't keep up.
[00:42:58] *** oncenull has joined #angularjs
[00:43:05] *** yelvert has quit IRC
[00:43:18] *** joshontheweb has joined #angularjs
[00:43:30] *** braidn has quit IRC
[00:43:32] *** phuh has quit IRC
[00:43:34] *** mven has quit IRC
[00:43:38] <Foxandxss> simplegy: would be lovely to see it reproduced on a plunker so I can take a look
[00:43:40] <deweydb> eddiemonge: you still there?
[00:43:44] <jaawerth> tkdaj: It's worth noting that getting this hands on for appending basic stuff may be overcomplicating things in some cases when you could just append stuff using ng-repeat and adding to your array of items. But this comes in handy when you need to do heavy DOM manipulation on stuff that contains directives in the template
[00:43:47] *** sonofdirt has quit IRC
[00:43:54] *** mzabriskie has quit IRC
[00:44:05] *** phuh has joined #angularjs
[00:44:05] <deweydb> eddiemonge: once i get this all setup with wiredep, how do i create a copy of the site that i can push to production?
[00:44:06] <tkdaj> yeah
[00:44:12] <deweydb> or am i thinking about this all wrong?
[00:44:21] *** oncenull has quit IRC
[00:44:39] *** rtpg has joined #angularjs
[00:44:49] <tkdaj> what I'm trying to do with this directive is that the user will create a table and fill it either manually (typing in everything by hand) or with an ng-repeat. either way, I want to be able to add this directive to that table and have it automatically paginate it
[00:45:09] <tkdaj> I am adding this tr at the end to put it the page numbers
[00:45:18] *** whitebook has joined #angularjs
[00:45:39] *** stirlingw has quit IRC
[00:45:45] <tkdaj> it still isn't working, though... http://plnkr.co/edit/RBBZXd1EZpKzcsq5SilV?p=catalogue
[00:45:59] <simplegy> Foxandxss: Really nice of you to offer, but there are just too many moving parts. I think I'm trying to drag a scope that was created in rename mode, but the list only knows about the scope from already-named mode.
[00:46:02] *** dman777_alter has quit IRC
[00:46:07] *** MANCHUCK has joined #angularjs
[00:46:14] *** livingstn has quit IRC
[00:46:17] * deweydb is overwhelmed. gulp, grunt, bower, yeoman..so many tools
[00:46:22] *** g3funk has joined #angularjs
[00:46:30] <simplegy> Here's a way to get scope by id: http://stackoverflow.com/questions/23253506/get-dom-element-by-scope-id
[00:46:53] <tkdaj> Am I still using compile wrong?
[00:47:24] *** TheAceOfHearts has quit IRC
[00:47:32] *** conan_the_destro has quit IRC
[00:47:44] *** TheAceOfHearts has joined #angularjs
[00:47:46] *** mbenadda_ has quit IRC
[00:47:51] *** AngularUI has joined #angularjs
[00:47:51] <AngularUI> [ng-grid] PaulL1 opened pull request #1999: Fix(exporter): tutorial error (master...exporter_fix) http://git.io/0Qe3hQ
[00:47:51] *** AngularUI has left #angularjs
[00:47:51] *** MuffinMan` has quit IRC
[00:47:59] *** AngularUI has joined #angularjs
[00:47:59] <AngularUI> [ng-grid] PaulL1 closed pull request #1999: Fix(exporter): tutorial error (master...exporter_fix) http://git.io/0Qe3hQ
[00:47:59] *** AngularUI has left #angularjs
[00:48:12] <Foxandxss> tkdaj: why the prelink?
[00:48:13] *** brownbathrobe has joined #angularjs
[00:48:16] *** icfantv has quit IRC
[00:48:32] <brownbathrobe> hey folks, quick question:
[00:48:51] <brownbathrobe> is there a sane way for a factory to watch a value and react to changes?
[00:49:04] <brownbathrobe> or is that cuckoo-bananas?
[00:49:04] *** shinnya has joined #angularjs
[00:49:19] *** rtpg has quit IRC
[00:49:31] *** browles has quit IRC
[00:49:32] <Logicgate> brownbathrobe, that's what controllers are for.
[00:49:47] <brownbathrobe> Logicgate: hear me out
[00:49:49] <tkdaj> I did prelink because I am manipulating the DOM
[00:49:49] <brownbathrobe> :)
[00:50:01] <tkdaj> I thought I had to use prelink so that it would compile that change before rendering
[00:50:06] <Foxandxss> you can manipulate it on postlink as well
[00:50:14] *** lw has quit IRC
[00:50:18] <tkdaj> does it matter which one I do it on?
[00:50:29] <simplegy> brownbathrobe: sometimes I put an object on scope and $watch it. I think it can be a good architectural decision if made mindfully.
[00:50:34] *** Guest29 has quit IRC
[00:50:35] <Foxandxss> well, you will need to manually compile yes
[00:50:42] <tkdaj> ?
[00:50:45] <brownbathrobe> Logicgate: i want to wrap a localStorage module in a factory so i can update localStorage values from the controller
[00:51:03] <brownbathrobe> by just updating a javascript object
[00:51:09] <Foxandxss> sorry, I don't follow your needs and it is pretty late to try to follow :P
[00:51:19] <simplegy> Your factory can get any scope it wants pretty much. it's best suited to $rootScope use cases though (eg: putting the currentUser there, or the activity status of your API endpoints)
[00:51:31] <tkdaj> I just need to know how to edit the DOM and have it compile before it renders on the screen
[00:51:52] <tkdaj> I am new to directives... this is my first one I am attempting, so I don't know how it works very well
[00:51:55] *** discgo has joined #angularjs
[00:52:00] <brownbathrobe> simplegy: so the Factory needs a $scope ?
[00:52:01] * Foxandxss is writting a book
[00:52:15] <Foxandxss> factories doesn't need $scope
[00:52:23] *** DanielKarp has joined #angularjs
[00:52:29] *** baweaver has quit IRC
[00:52:36] <tkdaj> *** a
[00:52:49] *** bmac has quit IRC
[00:53:03] <simplegy> $rootScope.localStore = myStore; $rootScope.$watch('localStore', function(val, old){ /* get/set/del here*/ }, true)
[00:53:20] *** tkdaj has left #angularjs
[00:53:39] *** vassagus has quit IRC
[00:53:40] <simplegy> You can do this in your factory if you want to have a single file manage this on its own, which makes sense. Or you can separate the watch into some higher level controller
[00:53:53] <Foxandxss> that scares the shit out of me tho
[00:54:16] <brownbathrobe> simplegy: yes, i want a single file to deal with updating localStorage
[00:54:20] *** TheAceOfHearts has quit IRC
[00:54:30] <brownbathrobe> and just have controllers update a `prefs` object
[00:54:35] *** Reskp has joined #angularjs
[00:54:35] <simplegy> pshaw, works great. This module is about global, application-wide concerns (localstorage). having it interface through $rootScope is architecturally valid
[00:54:50] <brownbathrobe> without needing to use setters/getters or be concerned with localStorage details
[00:54:57] <Foxandxss> still scares me
[00:55:04] <simplegy> i think... could be a terrible idea
[00:55:08] *** moritzs has joined #angularjs
[00:55:39] <simplegy> :)
[00:56:09] <brownbathrobe> Foxandxss: i agree it seems sketchy. what would you suggest?
[00:56:17] *** caitp has quit IRC
[00:56:34] *** danflies has quit IRC
[00:56:37] *** ClarusCogitatio has quit IRC
[00:56:41] <Foxandxss> I save stuff in localstore by hand
[00:56:47] <Foxandxss> I don't automagically save stuff on change
[00:57:06] *** baweaver has joined #angularjs
[00:57:08] *** tomzx is now known as tomzx`afk
[00:57:20] <brownbathrobe> Foxandxss: fair enough
[00:57:29] *** deveras has quit IRC
[00:57:42] <nicholes> Are you rewriting firebase?
[00:58:03] <Foxandxss> you can define object properties and put the save on the set, but probably bad idea
[00:58:06] <Foxandxss> I am far asleep
[00:58:12] *** RobinBAwesome has quit IRC
[00:58:17] *** whippy has joined #angularjs
[00:58:28] *** ClarusCogitatio has joined #angularjs
[00:58:33] *** browles has joined #angularjs
[00:58:50] *** mchung has quit IRC
[00:58:53] *** Reskp has quit IRC
[00:59:02] *** tkdaj has joined #angularjs
[00:59:07] <deweydb> weird, bower is putting angularjs in my project twice, once in an angularjs folder and again in an angular folder
[00:59:13] *** ccohn has joined #angularjs
[00:59:15] *** discgo_ has joined #angularjs
[00:59:47] <Foxandxss> damn, I hate bower
[00:59:54] <Foxandxss> not my day, lol
[01:00:14] *** asher^ has joined #angularjs
[01:00:30] *** discgo has quit IRC
[01:00:30] *** conan_the_destro has joined #angularjs
[01:00:31] *** discgo_ is now known as discgo
[01:00:46] *** yelvert_ has quit IRC
[01:00:54] *** livingstn has joined #angularjs
[01:00:57] *** gazbond has joined #angularjs
[01:01:12] *** yelvert has joined #angularjs
[01:01:21] <whippy> I have a sortable accordion here - http://plnkr.co/edit/zUWV7XPaJfLGLEGj7N1N?p=preview but I can't see the subparts. Probably my inexperience with Angular. Can anyone see what I'm doing wrong?
[01:01:29] *** junmin_ has joined #angularjs
[01:01:34] *** AtomicCookie has quit IRC
[01:01:40] *** Yahkob has joined #angularjs
[01:02:02] *** davek has quit IRC
[01:02:03] *** davek has joined #angularjs
[01:02:23] <deweydb> ughh bower is driving me nuts
[01:02:23] *** powaa has joined #angularjs
[01:02:34] *** shaisnir has joined #angularjs
[01:02:40] <davek> HEY HOW BOUT THAT ANGULAR 2.0 AMIRITE?
[01:02:52] <snurfery> instarage
[01:02:58] *** durango has left #angularjs
[01:03:05] *** brownbathrobe has quit IRC
[01:03:28] *** ccohn has quit IRC
[01:03:33] *** tilgovi has quit IRC
[01:03:47] *** alinou has joined #angularjs
[01:04:02] *** junmin has quit IRC
[01:04:07] *** matisoffn has quit IRC
[01:05:18] *** tkimmel has quit IRC
[01:05:24] *** wallerdev has quit IRC
[01:05:31] *** subr0utine has joined #angularjs
[01:05:31] *** yelvert has quit IRC
[01:05:33] *** wallerdev has joined #angularjs
[01:05:55] <Logicgate> Angular 2.0 isn't angular.
[01:06:07] <Logicgate> They just slapped Angular to it so people would use it.
[01:06:24] *** Yahkob has quit IRC
[01:06:40] *** dalguete is now known as [dalguete]
[01:06:46] <Foxandxss> I am really tired of the angular 2 rant, and angular 2 posts
[01:07:07] <Logicgate> So am I Foxandxss, I just want to use it already.
[01:07:12] *** avree has joined #angularjs
[01:07:23] *** DLSteve_ has quit IRC
[01:07:27] *** RobinBAwesome has joined #angularjs
[01:07:28] <wallerdev> angular 2 is the php of js frameworks
[01:07:29] *** marshall_ has quit IRC
[01:07:37] <snurfery> let's not go that far
[01:07:46] *** MistahKurtz has quit IRC
[01:07:46] <wallerdev> :p
[01:07:49] <Foxandxss> enough rant
[01:07:50] *** avree has quit IRC
[01:07:50] <Logicgate> I'm not a fan of having to run it through a compiler.
[01:07:53] *** brunoB has quit IRC
[01:07:57] *** browles has quit IRC
[01:08:03] *** brettfrable has quit IRC
[01:08:09] *** Rejected has quit IRC
[01:08:12] <Logicgate> It just puts another step into web dev that's unnecessary
[01:08:27] *** Zeioth has quit IRC
[01:08:31] <Foxandxss> you can always change framework, I don't see the issue
[01:08:33] <Foxandxss> we are developers
[01:08:33] *** MANCHUCK_ has joined #angularjs
[01:08:37] <Foxandxss> not angular fanboys
[01:08:47] *** MANCHUCK_ has quit IRC
[01:08:50] <Logicgate> Could always stick with 1.2.
[01:08:50] <wallerdev> changing frameworks for large apps isnt realistic in most cases
[01:08:54] <Logicgate> And get it done just as well
[01:08:59] <Logicgate> ^^
[01:09:10] <snurfery> lack of understanding of other people's concerns don't make the concerns less significant
[01:09:13] *** MANCHUCK has quit IRC
[01:09:14] <Foxandxss> no, for new apps
[01:09:17] <Logicgate> I wouldn't make large apps with Angular in the first place
[01:09:27] <snurfery> so I'm very happy it's not a prob for you
[01:09:33] *** disorder20 has quit IRC
[01:09:41] *** nicholes has quit IRC
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:01] *** dhcar is now known as dhcar_AFK
[01:10:04] <scythe__> Logicgate what would you suggest then?
[01:10:10] *** draconis-chomp has joined #angularjs
[01:10:13] <Logicgate> Depends what the project is.
[01:10:14] *** gordroidJS has joined #angularjs
[01:10:28] <Logicgate> And I certainly wouldn't use jQuery either.
[01:10:29] *** jumpman has quit IRC
[01:10:30] <scythe__> What projects correlate with what frameworks then I guess is the question
[01:10:30] *** michaelSharpe has joined #angularjs
[01:10:42] <Foxandxss> scythe__: for you, keep angular
[01:10:43] <scythe__> In terms of React/Backbone/Ember etc
[01:10:47] <Foxandxss> you have nothing to do with their rants
[01:10:50] <scythe__> haha ;) Fox
[01:10:53] *** [dalguete] has quit IRC
[01:11:11] <scythe__> looking for any excuse to drop it haha
[01:11:20] <Logicgate> I'd use Ember for large scale.
[01:11:21] <Foxandxss> then what?
[01:11:34] *** browles has joined #angularjs
[01:11:34] <powaa> oh man i just spent a grip of moeny on learning angular
[01:11:35] <Foxandxss> I won't use ember
[01:11:39] <scythe__> Logicgate: why?
[01:11:42] <powaa> wait why ember instead of angular for large scale?
[01:11:50] <Logicgate> Depends, if the project needs to be SEO friendly
[01:11:54] *** cotko has quit IRC
[01:11:58] <Logicgate> Or not, then I'd use neither Angular or Ember.
[01:12:04] <scythe__> Then?
[01:12:10] <Logicgate> Too many factors lol
[01:12:16] *** mmealling has quit IRC
[01:12:18] <scythe__> Well you're narrowing them down well
[01:12:20] <Foxandxss> scythe__: just keep learning
[01:12:22] *** soee has quit IRC
[01:12:28] *** tkdaj has quit IRC
[01:12:28] <scythe__> I am haha
[01:12:33] <Foxandxss> or you won't be working anytime soon
[01:12:38] <Logicgate> lol
[01:12:40] <Foxandxss> if you start changing ideas because someone told you that
[01:12:48] <Logicgate> I don't understand the banter between Foxandxss and scythe__
[01:12:52] <Logicgate> Please explain
[01:12:54] <Foxandxss> nor I care
[01:13:09] <powaa> wait wait wait, so angular 2.0 isnt going to be out for another year or so right?
[01:13:10] <Logicgate> You guys work together?
[01:13:17] <Logicgate> powaa, who knows.
[01:13:22] <Foxandxss> powaa: minimum 2016
[01:13:28] <Logicgate> Still in early dev stages
[01:13:41] <powaa> ah ok ok cool. so thats actually still a good amount of time
[01:13:42] *** neoadventist has quit IRC
[01:13:46] <BahamutWC|Work> I wouldn’t worry about 2.0
[01:14:02] <BahamutWC|Work> just prepare your code for migration as best as possible and you’re golden for that time
[01:14:18] <Foxandxss> BahamutWC|Work: people likes to worry
[01:14:21] <powaa> ah yeah i see what u mean
[01:14:26] <Foxandxss> they are not developers
[01:14:33] <BahamutWC|Work> and by prepare for migration I mean even to another framework
[01:14:35] <Logicgate> As far as Angular VS Ember. I would say the one irrefutable argument that he provides is the bit about accessors vs dirty checking. Dirty checking is simply less efficient than using accessors, and at large scales, you will notice performance issues with it. If your page is holding a lot of models
[01:14:40] <Foxandxss> just sissy girls
[01:14:51] <BahamutWC|Work> getters and setters suck
[01:14:56] <Foxandxss> like a lot
[01:15:06] <Logicgate> Yeah but we're talking large scale here.
[01:15:17] *** Jon31 has joined #angularjs
[01:15:17] *** Jon31 has joined #angularjs
[01:15:17] <Logicgate> What if you have 500 models in a page (arbitrary numbers)
[01:15:19] *** Evanion has joined #angularjs
[01:15:28] <Logicgate> It just becomes resource hungry
[01:15:35] <Foxandxss> I am smarter than the dirty checking
[01:15:51] <powaa> sorry if im totally noobish here, but ur saying that in large scale angular will likely have performance issues because of dirty checking?
[01:15:54] <Foxandxss> there is always work arounds
[01:15:58] <Logicgate> https://github.com/new-proimage/insanely-big-tables
[01:16:06] <Foxandxss> powaa: that is a possibility, yes
[01:16:13] <Logicgate> Foxandxss, most people aren't though.
[01:16:28] *** MaxV has quit IRC
[01:16:57] <BahamutWC|Work> powaa: in practice, it doesn’t really come up for most
[01:16:57] *** szymek_ has quit IRC
[01:16:59] <Foxandxss> Angular 1.3 got massive improvements to dirty checking
[01:17:00] *** onats has joined #angularjs
[01:17:15] <Foxandxss> and when O.o gets out (some decade), no problem at all
[01:17:20] <BahamutWC|Work> I only tend to see performance issues with angular when people are doing complicated stuff in tables
[01:17:29] <Foxandxss> AKA ignorance
[01:17:41] *** dcherman has quit IRC
[01:17:50] <powaa> got it. i guess it shouldnt matter too much for me. I just need a framework to build an early version prototype, and we can probably always shift to another platform if necessary later on
[01:17:52] <BahamutWC|Work> otherwise, angular is just fine
[01:18:19] <BahamutWC|Work> in truth, if you are in the beginning stages, I would look into solutions with the future in mind
[01:18:23] <BahamutWC|Work> i.e. ES6 & Web Components
[01:18:40] <scythe__> same here powaa
[01:18:48] <powaa> oh really? isnt ES6 and web components super bleeding edge?
[01:19:06] <BahamutWC|Work> ES6 is coming fast with all of the frameworks, so you’re going to be likely moving onto it
[01:19:07] <powaa> i had figured that its better to use something that is kidna stable to build the concept first
[01:19:12] <powaa> ah
[01:19:19] <ckboii89> how do i specifically return a promise object if i do get a get request with a success function call back?
[01:19:22] <BahamutWC|Work> React is going to go to ES6 before hitting 1.0, Ember is going to ES6 in 2.0
[01:19:47] <BahamutWC|Work> Angular in 2.0 as well - seems like the whole frontend dev world will be moving to ES6 within the next year or two
[01:19:55] <BahamutWC|Work> you don’t want to get caught with your pants down there
[01:20:05] *** klaut has quit IRC
[01:20:22] <Foxandxss> ES6 rock
[01:20:45] <BahamutWC|Work> Foxandxss: just started using ES6 with angular 1.3 for the first time yesterday
[01:20:59] <BahamutWC|Work> really different feel to how you construct stuff with ES6
[01:21:04] <Foxandxss> oh, share ideas. I just played with all its component alone, doing demos
[01:21:15] *** MistahKurtz has joined #angularjs
[01:21:21] *** dejanr has quit IRC
[01:21:25] <BahamutWC|Work> this is the pattern I came up with for using angular with ES6: http://pastebin.com/TMjD2gwi
[01:21:39] <BahamutWC|Work> that’s psuedocode mind you, but should give you an idea
[01:21:45] *** anapitupulu has joined #angularjs
[01:22:29] *** RobinBAwesome has quit IRC
[01:22:31] *** iateadonut has joined #angularjs
[01:22:44] *** zz_night-owl is now known as night-owl
[01:23:06] <powaa> wow. hm. so wait ES6 works in angular 1.3 already?
[01:23:19] *** tkdaj has joined #angularjs
[01:23:46] <Foxandxss> yeah
[01:23:46] <Logicgate> ckboii89 request.$promise;
[01:23:55] <Logicgate> Depending on what you're using obviously
[01:24:06] <Foxandxss> how good idea to use it today, not so sure
[01:24:21] <tkdaj> I was just wondering people's opinions on best practice for table pagination. If you were to be paginating a table, would you just make currentPage = allData.slice(0, pageLength), or is there a different way to do it?
[01:24:34] <ckboii89> Logicgate, so like $http.get().request.$promise?
[01:24:38] *** RobinBAwesome has joined #angularjs
[01:24:39] <BahamutWC|Work> Foxandxss: we’re going to use it starting in January at work here :)
[01:24:54] <Foxandxss> oh, nice
[01:24:55] <BahamutWC|Work> then again, we got thebigredgeek, robdubya, and me
[01:25:14] <Logicgate> well I'd return $http.get() from a function. var r = $http.get(...); r.$promise;
[01:25:22] <Logicgate> That's how you'd access it.
[01:25:24] *** bbankes has quit IRC
[01:25:56] <Logicgate> So wrap that in a function and return $http.get(...) if you're trying to do resolve stuff.
[01:26:07] *** kuadrosx_ has joined #angularjs
[01:26:46] *** kuadrosx has quit IRC
[01:26:54] *** michaelSharpe has quit IRC
[01:27:14] *** shaisnir has quit IRC
[01:27:17] *** TheAceOfHearts has joined #angularjs
[01:27:34] <simplegy> alright. I found it
[01:27:40] *** cam_y has quit IRC
[01:28:04] *** saucey has joined #angularjs
[01:28:43] <simplegy> If you have an ng-repeat="item in list", and let users DnD to rearrange items, no big deal. Each item will maintain its scope, they aren't destroyed. If someone renames an item though, and THEN goes to rearrange it. trouble. The scope gets destroyed and recreated because angular thinks the object is different and creates a new $$hashKey
[01:29:03] *** pipoo has quit IRC
[01:29:13] <simplegy> For me, this mean scope.$apply just silently didn't run, because the scope was destroyed before apply could execute
[01:29:16] *** knownasilya has quit IRC
[01:29:25] <simplegy> really hard to find. thank goodness for rubber ducking
[01:29:43] *** cakirke has joined #angularjs
[01:29:50] <Logicgate> rubber ducking ftw.
[01:30:12] *** freeman42 has quit IRC
[01:30:20] *** icfantv has joined #angularjs
[01:30:30] *** freeman42 has joined #angularjs
[01:30:35] *** goodenough has joined #angularjs
[01:30:52] <ckboii89> Logicgate, like this?
[01:30:52] <ckboii89> http://pastebin.com/8rvJDC2m
[01:31:02] *** gazbond has quit IRC
[01:31:16] <ckboii89> ahshoot wrong method, change post to get
[01:31:22] *** josh-k_ has joined #angularjs
[01:31:32] *** jae has joined #angularjs
[01:31:33] <Logicgate> Lol wtf
[01:31:50] *** krawek has quit IRC
[01:31:59] *** crewshin has joined #angularjs
[01:32:05] <Logicgate> why are you coding this way?
[01:32:08] <Logicgate> With $inject?
[01:32:28] *** kentaro0919 has quit IRC
[01:32:33] <Foxandxss> that is one way of doing angular
[01:32:35] <Foxandxss> I do it as well
[01:32:40] <ckboii89> https://github.com/johnpapa/angularjs-styleguide
[01:32:40] *** MalteJ has quit IRC
[01:32:50] <Logicgate> Foxandxss, what is the purpose? that's extremely redundant no?
[01:32:50] <BahamutWC|Work> I use .$inject = […] with ES6
[01:32:51] <ckboii89> i used to put everything on top
[01:32:53] *** Nizumzen has joined #angularjs
[01:32:56] *** rho has quit IRC
[01:33:00] <BahamutWC|Work> but ES6 is a special beast
[01:33:07] <Logicgate> Why not .factory('factory',['$http',function($http)...
[01:33:14] <ckboii89> its kinda nice, makes everything more readable
[01:33:16] <ckboii89> its the same thing
[01:33:18] <ckboii89> dont worry
[01:33:19] <ckboii89> its style
[01:33:24] <Foxandxss> Logicgate: because if a file has 2 factories, you can see them on top
[01:33:33] <Foxandxss> not having to scroll down and figure out you have another factory
[01:33:37] *** ozooner_ has quit IRC
[01:33:42] *** subr0utine has quit IRC
[01:33:47] <Logicgate> Okay, that's one argument.
[01:33:47] *** Latros-OS has quit IRC
[01:33:52] *** calmbird has quit IRC
[01:33:54] *** ozooner_ has joined #angularjs
[01:33:57] <Logicgate> I guess on large files it's probably helpful.
[01:34:04] *** [dalguete] has joined #angularjs
[01:34:14] *** Owner__ has joined #angularjs
[01:34:15] <Foxandxss> it is just a convention of guy guy
[01:34:20] *** LeBlaaanc has joined #angularjs
[01:34:22] <Foxandxss> you don't need to like or follow it
[01:34:28] *** Latros-OS has joined #angularjs
[01:34:28] *** whiteboo_ has joined #angularjs
[01:34:34] <Logicgate> ckboii89, what is this promise going to be used for.
[01:34:38] *** Owner__ is now known as Guest22657
[01:34:39] <Logicgate> Is it for a resolver?
[01:34:42] *** freeman42 has quit IRC
[01:34:47] <ckboii89> storing into my ng-grid table
[01:34:49] <LeBlaaanc> Any of you know of a good way to organize states instead of a giant file?
[01:34:52] *** josh-k has quit IRC
[01:34:55] *** jsheely|ltop has joined #angularjs
[01:35:05] *** whitebook has quit IRC
[01:35:06] <Logicgate> the $promise contains .error,success,etc.
[01:35:09] *** subr0utine has joined #angularjs
[01:35:17] <Logicgate> You can't implicitly do that, or can you?
[01:35:40] *** ctanga has quit IRC
[01:35:46] *** d4rklit3 has quit IRC
[01:35:49] <Evanion> LeBlaaanc: depending on the size of your app … you can define each modules stats in each specific module
[01:35:50] *** bayousoft has joined #angularjs
[01:35:52] *** dhcar_AFK is now known as dhcar
[01:36:03] *** AngularUI has joined #angularjs
[01:36:03] <AngularUI> [ng-grid] PaulL1 closed pull request #1994: Add grid option 'exporterCsvColumnSeparator' (master...enhancement-csv-comma-separator) http://git.io/0NpS9w
[01:36:03] *** AngularUI has left #angularjs
[01:36:05] <Evanion> states*
[01:36:07] *** simplegy has quit IRC
[01:36:15] <ckboii89> actually
[01:36:18] *** whunt has quit IRC
[01:36:20] <ckboii89> maybe im asking thewrong question
[01:36:21] <ckboii89> hold on
[01:36:22] <Foxandxss> AFAIK, $http doesn't have $promise
[01:36:26] <Foxandxss> that is only for $resource
[01:36:33] <LeBlaaanc> Evanion: have an example to look at?
[01:36:39] *** AngularUI has joined #angularjs
[01:36:40] <AngularUI> [ng-grid] PaulL1 pushed 2 new commits to master: http://git.io/2XJ-mA
[01:36:40] <AngularUI> ng-grid/master 1c9deea Mauricio Núñez: Spanish translation updates
[01:36:40] <AngularUI> ng-grid/master 90eaeff Paul: Merge pull request #1992 from mauronunez/patch-spanish-translation...
[01:36:40] *** AngularUI has left #angularjs
[01:36:44] *** cohitre has quit IRC
[01:36:53] *** jsheely|ltop has quit IRC
[01:37:10] *** joshontheweb has quit IRC
[01:37:16] *** jsheely|2 has joined #angularjs
[01:37:41] *** jsheely has quit IRC
[01:37:52] <Evanion> IF you have an app devided in to several modules by feature/component, you can add a config block to that module, and define the states for that feature/component IN that feature/component just like you do in your main module now
[01:38:06] <Evanion> to each module*
[01:38:12] *** d4rklit3 has joined #angularjs
[01:38:15] *** Nizumzen has quit IRC
[01:38:31] <ckboii89> how do i access the array from the return success callback and doing a then function
[01:38:32] *** ManBearPixel has joined #angularjs
[01:38:38] <ckboii89> http://pastebin.com/y75pKzqD
[01:38:47] *** joshontheweb has joined #angularjs
[01:39:32] *** elrabin has joined #angularjs
[01:40:09] *** marr123 has joined #angularjs
[01:40:11] *** Skrypter has joined #angularjs
[01:40:32] <LeBlaaanc> Evanion: kinda like this https://nulogy.com/articles/code-organization-in-angular#.VFggW_vF-TY
[01:40:39] <Foxandxss> .then(function(result) { result.data });
[01:41:17] *** snapwich has quit IRC
[01:41:34] *** RobinBAwesome has quit IRC
[01:41:34] <Logicgate> ckboii89: http://jsfiddle.net/r9meyxug/
[01:41:51] *** michaelSharpe has joined #angularjs
[01:42:01] *** marr has quit IRC
[01:42:01] *** marr123 is now known as marr
[01:42:14] *** jackdpeterson2 has quit IRC
[01:42:17] <ManBearPixel> So I have my app running with html5Mode set to true. However, in IE8/9 the app doesn’t load anything (states) at all. I can clearly see the url as http://site.com/#/ but angular doesn’t handle anything. I thought Angular was supposed to work for IE8/9 ? I’m running version 1.2.22
[01:42:28] *** Txandy has quit IRC
[01:42:29] <ManBearPixel> Site is http://beta.touchvision.com/
[01:42:34] *** zwacky has joined #angularjs
[01:42:34] *** doug64k has quit IRC
[01:42:37] <Logicgate> ckboii89: http://jsfiddle.net/r9meyxug/1/
[01:42:49] <ManBearPixel> There are no errors in the console.log, and IE 10 loads fine, IE8/9 just fail with no indication as whats wrong
[01:43:05] <Logicgate> ManBearPixel, takes an awfull long time to load.
[01:43:07] <ckboii89> what does the q.defer mean?
[01:43:31] *** phuh has quit IRC
[01:43:35] <Logicgate> ckboii89, we're creating a promise that way. I forgot to mention that.
[01:43:38] <ManBearPixel> Logicgate: Sometimes does that, that’s the backend server. Rare, but it happens. Usually if there’s a refresh going on with Tomcat
[01:43:42] *** shinnya has quit IRC
[01:44:01] <Logicgate> Hitting refresh is still extremely slow.
[01:44:07] *** phuh has joined #angularjs
[01:44:16] <Logicgate> We're talking 20seconds+
[01:44:18] *** Guest22657 has quit IRC
[01:44:19] <ckboii89> so when creating a promise i would not need the then function in my main controller correct?
[01:44:23] <ManBearPixel> Loaded fine for me, sorry. But do you know what would be wrong?
[01:44:31] <Logicgate> ckboii89, depends what you're doing.
[01:44:38] *** dejanr has joined #angularjs
[01:44:40] <Foxandxss> Logicgate: that is a bit overcomplicated
[01:44:41] *** Shrooms has quit IRC
[01:44:44] <ManBearPixel> Even ran it with a site speed test, usually shows around 2.5 s
[01:44:48] <Logicgate> If you want to do something after the promise has been resolved, sure why not.
[01:44:52] *** tomzx`afk is now known as tomzx
[01:44:53] *** michaelS_ has joined #angularjs
[01:44:55] *** michaelSharpe has quit IRC
[01:45:19] *** goodenough has quit IRC
[01:45:25] *** gnrlbzik has joined #angularjs
[01:45:30] *** RobinBAwesome has joined #angularjs
[01:45:31] *** avree has joined #angularjs
[01:45:42] <Logicgate> Foxandxss, I didn't code that.
[01:45:47] <Logicgate> I just added a promise to it.
[01:45:57] <Foxandxss> that extra promise is not needed
[01:46:25] <Evanion> LeBlaaanc: http://pastebin.com/8TfJV0QW
[01:46:26] *** freeman42 has joined #angularjs
[01:46:50] <LeBlaaanc> Evanion: ah, neat!
[01:46:54] <Logicgate> Foxandxss, feel free to refactor.
[01:46:58] *** avree has quit IRC
[01:47:15] *** joshontheweb has quit IRC
[01:47:17] <ckboii89> im open to suggestions
[01:47:20] <ckboii89> no need to quarrel
[01:47:28] <Evanion> corrected minor typo in pastebin
[01:47:31] <LeBlaaanc> Evanion: when you make the modules do you just have a bunch of <script> to load?
[01:47:40] <ckboii89> we all know angular has a steep learning curve
[01:47:45] *** mbildner has joined #angularjs
[01:47:54] *** [dalguete] has quit IRC
[01:48:17] *** rburns has joined #angularjs
[01:48:25] *** whippy has quit IRC
[01:48:26] <Evanion> no I use gulp to sourcemap, annotate, concatenate and then uglify
[01:48:46] *** avree has joined #angularjs
[01:48:50] *** mrits has joined #angularjs
[01:48:50] *** dylang has joined #angularjs
[01:49:01] <Foxandxss> Logicgate: ckboii89 http://plnkr.co/edit/WNy6OxicRq6rO2GM3Nck?p=preview
[01:49:07] <Evanion> I then just hardcode a reference to a vendor.js and app.js file that contains all the unified files
[01:49:07] <Foxandxss> bit cleaner
[01:49:51] *** RobinBAwesome has quit IRC
[01:50:01] <Evanion> that way, I don’t get a lot of git changes to index.html everytime i commit...
[01:50:04] <Logicgate> Foxandxss, in a resolver situation that wouldn't work.
[01:50:08] *** RobinBAwesome has joined #angularjs
[01:50:15] <Logicgate> That's what I coded it for.
[01:50:20] <Foxandxss> I saw a factory
[01:50:24] <Foxandxss> not a resolve
[01:50:45] <Logicgate> I thought it was for a resolve.
[01:50:53] <Logicgate> He was talking about promises.
[01:50:56] <Foxandxss> I just cleaned the demo
[01:51:18] *** pipoo_ has quit IRC
[01:51:22] *** stirlingw has joined #angularjs
[01:51:27] *** caitp has joined #angularjs
[01:51:52] <Logicgate> Okay so ckboii89, what exactly are you trying to do.
[01:51:53] *** Jdubs has quit IRC
[01:52:01] <Logicgate> Is this for a resolver? Or simply for getting data.
[01:52:07] <ckboii89> trying to insert the array data into a ng-grid
[01:52:10] <Logicgate> Lol
[01:52:14] <ckboii89> haha
[01:52:30] <Logicgate> Well then Foxandxss's is the way to go!
[01:52:45] *** oste has joined #angularjs
[01:53:13] <Logicgate> No need for a promise in this case
[01:53:19] *** Nizumzen has joined #angularjs
[01:53:20] <Evanion> well good night everyone, I’m signing off
[01:53:26] <Logicgate> Good night Evanion
[01:53:32] *** annlewis has joined #angularjs
[01:53:42] *** Evanion has quit IRC
[01:53:43] *** doug64k has joined #angularjs
[01:53:45] *** cannap has quit IRC
[01:54:00] *** cads has joined #angularjs
[01:54:20] *** whunt has joined #angularjs
[01:55:22] *** Reskp has joined #angularjs
[01:55:50] *** TheAceOfHearts has quit IRC
[01:57:19] *** caitp- has joined #angularjs
[01:57:32] *** FergusL has quit IRC
[01:58:27] *** FergusL has joined #angularjs
[01:58:39] *** cthrax has quit IRC
[01:58:42] *** mbildner has quit IRC
[01:59:23] *** Reskp has quit IRC
[01:59:46] *** ccohn has joined #angularjs
[01:59:50] *** caitp has quit IRC
[01:59:50] *** monir has joined #angularjs
[01:59:51] *** Foxandxss has quit IRC
[02:00:05] *** zwacky has quit IRC
[02:00:27] *** optikalmouse has quit IRC
[02:00:34] *** nicholaswyoung has joined #angularjs
[02:00:38] <oste> anyone willing to take a look at this http://plnkr.co/edit/Cb5DPUcs8PYC0EKRUibG?p=preview
[02:01:19] <oste> i am trying to get the outerHeight of an ng-include insde a ng-repeat
[02:01:32] *** grantfunke_ has quit IRC
[02:01:34] <oste> problem is the ng-include loads after the model change
[02:01:56] *** d10n-work has quit IRC
[02:03:16] <Logicgate> oste, could make a directive and attach post function to it.
[02:03:47] <oste> post function?
[02:03:58] *** ccohn has quit IRC
[02:03:59] *** cthrax has joined #angularjs
[02:04:02] *** night-owl is now known as DJBobVilla
[02:04:38] *** DJBobVilla is now known as night-owl
[02:04:59] *** mchung has joined #angularjs
[02:05:10] <Logicgate> oste: http://jsfiddle.net/h8cz5pLk/
[02:05:21] *** mchung has quit IRC
[02:06:17] *** moritzs has quit IRC
[02:06:20] <oste> hrm, not sure - can you show in the plunkr?
[02:06:49] *** elrabin has quit IRC
[02:08:53] *** Asiajey has quit IRC
[02:09:01] *** junmin_ has quit IRC
[02:09:06] *** TheAceOfHearts has joined #angularjs
[02:09:32] *** [dalguete] has joined #angularjs
[02:09:58] *** avree has quit IRC
[02:10:35] *** lw has joined #angularjs
[02:10:48] *** richiebkr has quit IRC
[02:11:13] *** jonr22 has joined #angularjs
[02:11:44] *** ctanga has joined #angularjs
[02:13:01] *** TinkerTyper has joined #angularjs
[02:13:10] *** cthrax has quit IRC
[02:13:12] *** michaelS_ has quit IRC
[02:13:52] *** sacho_ has quit IRC
[02:14:11] *** baweaver has quit IRC
[02:14:44] *** baweaver has joined #angularjs
[02:15:04] *** gnrlbzik has quit IRC
[02:15:39] *** icfantv has quit IRC
[02:15:53] *** rburns has quit IRC
[02:16:15] *** jonr22 has quit IRC
[02:16:26] *** kreiggers has quit IRC
[02:17:24] *** Nivag has quit IRC
[02:17:27] *** michaelSharpe has joined #angularjs
[02:18:39] *** jaydubya has quit IRC
[02:18:57] *** gunn has joined #angularjs
[02:19:16] *** baweaver has quit IRC
[02:19:19] *** _TAS has quit IRC
[02:19:28] *** jdummy has joined #angularjs
[02:20:13] *** jrowny has quit IRC
[02:20:22] <jdummy> hola. is $http.patch() supported or not? It's in the docs, but I'm getting "undefined is not a function"
[02:20:23] *** michaelSharpe has quit IRC
[02:20:33] <jdummy> v1.2.26
[02:20:40] <jdummy> I is confused
[02:21:16] *** jolts has quit IRC
[02:21:50] *** ozooner_ has quit IRC
[02:21:51] *** rtpg has joined #angularjs
[02:21:59] *** rtpg has joined #angularjs
[02:22:06] *** saucey has quit IRC
[02:22:12] *** HEx1 has quit IRC
[02:22:17] *** knownasilya has joined #angularjs
[02:22:28] *** dhcar is now known as dhcar_AFK
[02:22:43] *** HEx1 has joined #angularjs
[02:23:22] *** [dalguete] has quit IRC
[02:23:23] *** jbeaudry has quit IRC
[02:23:42] *** Nivag has joined #angularjs
[02:24:47] *** joshontheweb has joined #angularjs
[02:24:50] *** mary5030_ has joined #angularjs
[02:25:03] *** motionman has joined #angularjs
[02:25:14] *** Fishy has joined #angularjs
[02:25:37] *** Juanchito has quit IRC
[02:25:57] *** Shrooms has joined #angularjs
[02:26:14] *** rho has joined #angularjs
[02:26:36] *** Fire-Dragon-DoL has quit IRC
[02:27:33] *** AciD`` has quit IRC
[02:28:12] *** cigarshark has quit IRC
[02:29:37] *** SoulBlade has joined #angularjs
[02:29:49] *** cthrax has joined #angularjs
[02:29:49] <ckboii89> can someone explain to me why the assignment doesnt live pass the then function call?
[02:29:50] <ckboii89> http://pastebin.com/jZazn6Wd
[02:30:01] *** whiteboo_ has quit IRC
[02:30:15] <oste> Logicgate http://plnkr.co/edit/zBD9numxY9yskwZeavPA?p=preview
[02:30:17] *** mjs2600 has joined #angularjs
[02:30:27] <oste> i think that is the way to go
[02:30:32] *** samuelharden has quit IRC
[02:30:39] *** Nivag has quit IRC
[02:30:55] *** Owner__ has joined #angularjs
[02:31:13] *** avree has joined #angularjs
[02:31:19] *** Owner__ is now known as Guest77961
[02:31:52] <Grokling> ckboii89: Try this instead: http://pastebin.com/PMZsvkhj
[02:32:19] *** monir has quit IRC
[02:32:24] *** g3funk has quit IRC
[02:32:50] <Grokling> ckboii89: Your console.log statement was being run WHILE the async function was still running, so it hadn't yet made the assignment.
[02:33:04] *** avree has quit IRC
[02:33:39] *** Nivag has joined #angularjs
[02:33:39] <ckboii89> ohh
[02:33:40] *** avree has joined #angularjs
[02:33:49] <ckboii89> is is assigned but because of asynch call
[02:33:54] <ckboii89> okay yeah that make sense
[02:33:56] *** SoulBlade has quit IRC
[02:33:56] <ckboii89> i remember now
[02:33:57] <ckboii89> thanks!
[02:34:07] <Grokling> It is assigned, just after you've looked at it..
[02:34:26] *** Nijikokun has quit IRC
[02:34:29] *** Guest77961 has quit IRC
[02:34:58] *** tomzx is now known as tomzx`afk
[02:35:16] *** narutimateum2 has quit IRC
[02:35:17] *** marr has quit IRC
[02:35:22] *** g3funk has joined #angularjs
[02:36:06] *** Jdubs has joined #angularjs
[02:36:36] *** mven has joined #angularjs
[02:37:52] *** Nijikokun has joined #angularjs
[02:38:36] *** jolts has joined #angularjs
[02:38:43] *** avree has quit IRC
[02:38:43] *** michaelSharpe has joined #angularjs
[02:40:08] *** gombos has quit IRC
[02:40:48] *** Skrypter has quit IRC
[02:41:02] *** elrabin has joined #angularjs
[02:41:10] *** samuelharden has joined #angularjs
[02:41:25] *** samuelharden has joined #angularjs
[02:41:27] *** gombos has joined #angularjs
[02:42:03] *** glaksmono has joined #angularjs
[02:42:39] *** loverajoel has quit IRC
[02:42:49] <nicksloan> is it possible to play around with the new router in 1.3 yet?
[02:42:58] <lrvick> Anyone know a way to import providers in a constant block like: app.constant('someconstant',(function(){ $someProvider = somehowImport('$someProvider'); $someProvider.getConfig() })())
[02:43:08] <nicksloan> starting a project now that won't need to be production ready for 6 months
[02:43:57] *** fixl has joined #angularjs
[02:44:20] *** rburns has joined #angularjs
[02:44:51] *** nathanic has quit IRC
[02:45:18] *** baweaver has joined #angularjs
[02:45:24] *** lw has quit IRC
[02:45:56] *** junmin has joined #angularjs
[02:46:48] *** jdummy has quit IRC
[02:46:51] *** dsdeiz has joined #angularjs
[02:47:01] *** moritzs has joined #angularjs
[02:47:03] <dsdeiz> anyone happen to know where this AUTH_EVENT is coming from? https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec
[02:47:17] <ManBearPixel> Anyone have something that fixes CORS request issues in ie8/9 for angular $http?
[02:47:53] *** tripu has joined #angularjs
[02:48:00] <ManBearPixel> I can somewhat get it to work with jQuery $.ajax and $.support.cors = true; — but I’ve been working on removing jQuery from my code so I could eventually remove it all together
[02:48:15] *** jonathanpglick has quit IRC
[02:48:46] *** nathanic has joined #angularjs
[02:49:08] *** BillCriswell has joined #angularjs
[02:49:09] *** optikalmouse has joined #angularjs
[02:49:16] *** Fishy has quit IRC
[02:49:35] *** RedOrangeZ has quit IRC
[02:49:36] *** pipoo has joined #angularjs
[02:49:40] *** xavia has quit IRC
[02:49:50] *** mikehaas_ has joined #angularjs
[02:50:02] *** mikehaas_ is now known as mikehaas
[02:50:12] *** mikehaas is now known as mikehaas763_
[02:50:36] *** Yahkob has joined #angularjs
[02:51:08] *** lw has joined #angularjs
[02:51:21] *** umib0zu has joined #angularjs
[02:51:46] *** _ritchie_ has quit IRC
[02:51:52] *** browles has quit IRC
[02:51:58] *** Siecje has quit IRC
[02:52:02] *** baweaver has quit IRC
[02:52:54] *** ozooner_ has joined #angularjs
[02:53:52] *** tkimmel has joined #angularjs
[02:53:53] *** jamto11 has joined #angularjs
[02:53:57] *** sheerun has quit IRC
[02:54:17] *** pipoo has quit IRC
[02:54:18] *** jshultz has quit IRC
[02:54:42] *** Joe_knock has quit IRC
[02:54:46] *** TinkerTyper has quit IRC
[02:54:47] *** mmealling has joined #angularjs
[02:55:04] *** marshall_ has joined #angularjs
[02:55:21] *** jareddlc has quit IRC
[02:55:25] *** bgerami has quit IRC
[02:55:25] *** Yahkob has quit IRC
[02:55:56] *** robdubya has quit IRC
[02:57:21] *** ozooner__ has joined #angularjs
[02:57:44] *** ozooner_ has quit IRC
[02:57:49] *** Reskp has joined #angularjs
[02:58:28] *** numenor has joined #angularjs
[02:58:43] *** tkimmel has quit IRC
[02:59:07] *** michaelfavia has joined #angularjs
[02:59:09] *** syzygy_ has joined #angularjs
[02:59:22] <dsdeiz> anyone? :D
[02:59:35] *** MrBaboon has quit IRC
[02:59:38] *** Nizumzen has quit IRC
[03:00:04] <syzygy_> I have recieving relative url’s via a json object, and my app works when it’s the root of the domain, but if it’s in a sub-directory I get 404’s gallore.
[03:00:09] *** asher^ has quit IRC
[03:00:21] <syzygy_> I’ve seen mention of setting the base-url, but that seems wrong
[03:00:41] <syzygy_> I’m developing my first angular app and am not sure how to handle this
[03:00:44] *** ccohn has joined #angularjs
[03:00:44] *** cads has quit IRC
[03:00:49] *** shampine has quit IRC
[03:01:26] *** ManBearPixel has quit IRC
[03:01:40] *** piecyk has quit IRC
[03:01:53] *** sirkitree|afk has quit IRC
[03:01:58] <snurfery> seems wrong?
[03:02:04] <numenor> Can someone enlighten me on controllerAs logic ? Some link to a tutorial or short example will suffice.
[03:02:05] *** mven has quit IRC
[03:02:15] <snurfery> base href="/"
[03:02:17] *** ozooner__ has quit IRC
[03:02:26] *** Reskp has quit IRC
[03:02:32] *** e0ipso has quit IRC
[03:02:50] *** marcjs has quit IRC
[03:02:56] *** SoulBlade has joined #angularjs
[03:02:59] *** mven has joined #angularjs
[03:03:17] *** e0ipso has joined #angularjs
[03:03:41] *** CamonZ has quit IRC
[03:04:46] *** nairys has quit IRC
[03:04:48] *** sirkitree|afk has joined #angularjs
[03:04:56] *** ccohn has quit IRC
[03:05:56] *** Guest29 has joined #angularjs
[03:06:27] *** cam_y has joined #angularjs
[03:06:47] *** gnrlbzik has joined #angularjs
[03:07:03] *** Guest29 has quit IRC
[03:07:09] *** patta_ has joined #angularjs
[03:07:17] <jcool> How to update view after deleting, adding or editing data?
[03:07:22] <LeBlaaanc> Anyone have any insight on organizing your app based on different states instead of "features" as shown here: http://dannynelson.io/rethinking-angularjs-app-structure/
[03:08:01] *** patta has quit IRC
[03:08:01] *** marcjs has joined #angularjs
[03:08:07] <jcool> My view gets updated but it takes 10s to do so. But json that gives repsonse to view gets updated immediaetly.
[03:08:13] *** discgo has quit IRC
[03:08:28] *** cakirke has quit IRC
[03:08:51] *** joshontheweb has quit IRC
[03:09:01] *** Jon31 has quit IRC
[03:09:03] *** DrJae has joined #angularjs
[03:09:47] *** benjick has quit IRC
[03:09:52] *** DexterTheDragon has quit IRC
[03:09:56] *** benjick has joined #angularjs
[03:10:02] *** mclenithan has quit IRC
[03:10:03] *** discgo has joined #angularjs
[03:10:21] *** jsheely|ltop has joined #angularjs
[03:11:12] *** tomzx`afk is now known as tomzx
[03:11:18] *** jae has quit IRC
[03:14:04] *** themime has quit IRC
[03:15:28] *** DexterTheDragon has joined #angularjs
[03:15:48] *** wallerdev has quit IRC
[03:17:36] *** shaisnir has joined #angularjs
[03:19:38] *** mven has quit IRC
[03:19:58] *** RobinBAwesome has quit IRC
[03:21:00] *** DanielKarp has quit IRC
[03:22:55] *** phuh has quit IRC
[03:22:56] *** plexiv has quit IRC
[03:23:25] *** phuh has joined #angularjs
[03:23:37] *** marshall_ has quit IRC
[03:23:48] *** plexiv has joined #angularjs
[03:24:20] *** ManBearPixel has joined #angularjs
[03:24:42] *** pofc has joined #angularjs
[03:24:45] <numenor> LeBlaaanc : Good to read
[03:25:00] <ManBearPixel> CORS with Angular in IE8/9 — Anyone with experience
[03:25:05] <ManBearPixel> D=
[03:25:07] <ManBearPixel> FML
[03:25:10] <LeBlaaanc> numenor: I'm left wondering where services go...
[03:25:35] <LeBlaaanc> It's also a bit against conventions that others might be familiar with
[03:25:59] *** mjs2600 has quit IRC
[03:26:16] <pofc> Hello everyone. Could someone please explain controllers to me? Controllers can be used in routes, in the ng-controller directive, and also directives can have their own controllers.
[03:26:19] *** michaelSharpe has quit IRC
[03:26:28] <pofc> What is it actually doing when you set the controller in the route?
[03:26:29] *** neoadventist has joined #angularjs
[03:26:34] <numenor> LeBlaaanc : Yes, I think services would have a separate "services" folder.
[03:26:44] <numenor> LeBlaaanc : Do you know about kibana ?
[03:27:16] <numenor> https://github.com/elasticsearch/kibana
[03:28:01] <numenor> Its built on angularjs, Its pretty huge.
[03:28:08] *** grantfunke_ has joined #angularjs
[03:28:32] *** Guest29 has joined #angularjs
[03:28:49] <numenor> LeBlaaanc : See its app structure..
[03:29:04] *** d4rklit3 has quit IRC
[03:29:57] <LeBlaaanc> numenor: nope... i'm really new to angular
[03:30:29] *** Guest29 has quit IRC
[03:30:36] *** monir has joined #angularjs
[03:30:41] *** joshontheweb has joined #angularjs
[03:30:59] *** grantfunke_ has quit IRC
[03:30:59] *** RobinBAwesome has joined #angularjs
[03:31:20] <LeBlaaanc> numenor: kinda hard to understandw here stuff is in that app.... probably becaquse I dunno what it even is
[03:31:30] *** kalehv has joined #angularjs
[03:31:38] <numenor> LeBlaaanc , yeah
[03:31:47] *** neoadventist has quit IRC
[03:32:31] <deweydb> stupid question time. if i have a controller A inside controller B in the markup. should controller A have access to controller B's scope?
[03:32:50] <LeBlaaanc> Ahh... so it's pretty much module based (components)
[03:32:51] <numenor> there arent many working/live examples to demonstrate some actual usage.
[03:33:04] <deweydb> oh, i need to inject $parent?
[03:33:04] <numenor> LeBlaaanc : Yes ...
[03:33:32] *** syzygy_ has quit IRC
[03:33:45] *** conan_the_destro has quit IRC
[03:33:45] *** michaelSharpe has joined #angularjs
[03:34:18] <numenor> deweydb : I am not sure but I read somewhere bout ^controllerName to referenve parent.
[03:34:27] <LeBlaaanc> states is kinda like a module.
[03:35:20] *** gnrlbzik has quit IRC
[03:35:20] *** loverajoel has joined #angularjs
[03:35:21] <numenor> yes
[03:35:31] *** frkout has joined #angularjs
[03:36:20] *** RobinBAwesome has quit IRC
[03:37:18] *** nemothekid has quit IRC
[03:38:28] <numenor> Good bye guys... Need to do some chores in the real world.
[03:38:33] *** numenor has left #angularjs
[03:38:42] *** mven has joined #angularjs
[03:38:46] *** jamto11 has quit IRC
[03:39:05] *** draconis-chomp has quit IRC
[03:39:19] <deweydb> ahhh: This doesn't work for views. The child view cannot access the non-root scope properties of the parent that contains the view. They just don't exist and aren't exposed properly.
[03:39:30] <deweydb> you can't inherit a views controller's scope?
[03:39:31] <deweydb> wtf
[03:40:32] *** mchung has joined #angularjs
[03:40:35] *** whitebook has joined #angularjs
[03:41:13] *** Aliks has quit IRC
[03:41:18] *** mikehaas763_ has quit IRC
[03:41:28] *** matthoiland has quit IRC
[03:41:55] *** matthoiland has joined #angularjs
[03:42:21] *** elrabin has quit IRC
[03:42:30] *** dylang has quit IRC
[03:43:15] *** Guest29 has joined #angularjs
[03:43:20] *** justinobney has joined #angularjs
[03:43:39] *** bmac has joined #angularjs
[03:44:32] *** shaisnir has quit IRC
[03:45:27] *** Guest29 has quit IRC
[03:45:35] *** whitebook has quit IRC
[03:46:07] *** matthoiland has quit IRC
[03:46:21] *** Guest29 has joined #angularjs
[03:48:11] *** MrBaboon has joined #angularjs
[03:48:22] *** browles has joined #angularjs
[03:48:31] *** moritzs has quit IRC
[03:49:13] *** josh-k_ has quit IRC
[03:49:22] *** whunt has quit IRC
[03:49:41] *** ManBearPixel has quit IRC
[03:49:50] *** DrJae is now known as Jae
[03:49:52] *** Jae has joined #angularjs
[03:49:54] *** marcjs has quit IRC
[03:49:55] *** rashidkpc has quit IRC
[03:50:13] *** lw has quit IRC
[03:50:26] *** draconis-chomp has joined #angularjs
[03:50:47] *** lw has joined #angularjs
[03:50:49] <pofc> This really cleared up the differences between normal controllers and controllers in directives for me: http://teropa.info/blog/2014/10/24/how-ive-improved-my-angular-apps-by-banning-ng-controller.html
[03:51:00] <pofc> But I'm still confused about "route controllers"
[03:51:07] *** michaelfavia has quit IRC
[03:51:27] <pofc> It seems like controllers in AngularJS aren't controllers at all.
[03:51:34] <pofc> $scope is the ViewModel.
[03:51:52] <s3shs> The model should really be in a service.
[03:51:52] *** mchung_ has joined #angularjs
[03:51:56] *** hello has joined #angularjs
[03:52:17] <hello> hi guys
[03:52:24] *** rashidkpc has joined #angularjs
[03:52:29] <hello> I have a question
[03:52:44] *** danflies has joined #angularjs
[03:52:54] <s3shs> hello hello
[03:53:12] *** mchung has quit IRC
[03:53:12] *** mchung_ is now known as mchung
[03:53:23] <LeBlaaanc> Is there a goto solution for compiling angular modules with grunt?
[03:53:42] <TheAceOfHearts> grunt is out, gulp is in~
[03:54:15] <hello> Did anyone know about good angular form e.g
[03:54:34] *** hello has left #angularjs
[03:56:20] *** mary5030_ has quit IRC
[03:56:41] *** codeman has joined #angularjs
[03:56:53] *** edrocks has joined #angularjs
[03:57:11] <edrocks> anyone try ngMaterial yet?
[03:57:17] *** Guest29 has quit IRC
[03:57:33] <dllama> ur the 2nd person to mention that in last 18hrs, what is it?
[03:57:54] <edrocks> o im trying to use it with webpack was wondering if anyone knew how to get hammerjs working
[03:58:10] <dllama> i dont think it was you asking about it early this morning
[03:58:16] <edrocks> no i didnt
[03:58:22] <edrocks> i just got this idea an hour ago
[03:58:33] *** sammysounder has joined #angularjs
[03:58:36] <dllama> right, thats what i'm saying, someone was asking about it earlier as well.
[03:58:40] *** Reskp has joined #angularjs
[03:59:03] <dllama> google says its something interesting to look into :)
[03:59:03] <edrocks> well thats good the interest is growing
[03:59:04] <sammysounder> So I've heard there's a major change with 2.0.... does anyone know much about that?
[03:59:08] *** TinkerTyper has joined #angularjs
[03:59:52] <edrocks> sammysounder: they are changing alot of the html syntax and simplifying directives controllers services factories into one func iirc
[03:59:55] *** mven has quit IRC
[03:59:58] <TheAceOfHearts> sammysounder: ABANDON SHIP~
[04:00:13] *** jonr22 has joined #angularjs
[04:00:40] *** mven has joined #angularjs
[04:00:45] <sammysounder> edrocks: That doesn't sound too bad. The insinuation I read was that nothing would be backwards compatible.
[04:00:47] <dllama> edrocks: actually i could be wrong, it was google material design,
[04:01:02] <sammysounder> Directives are a bit of a cluge IMHO and could probably do with a rewrite.
[04:01:04] <deweydb> i want to pass a small string from my dom markup to a controller on instantiation, is this possible? like <ng-controller="myCtrl" unique-id="iLikeTurtles">
[04:01:20] <edrocks> dllama: im trying to use the angular wrapper for it
[04:01:25] <sammysounder> @dewey. Don't do that. What's the goal?
[04:01:29] <dllama> ahh, so its the same thing
[04:01:30] <dllama> ok :)
[04:01:31] *** ccohn has joined #angularjs
[04:01:37] <dllama> didn't want to come out of left field with that lol
[04:01:42] <dllama> looks pretty great though
[04:01:44] <deweydb> sammysounder: reusing the controller in several places, only difference is that one thing.
[04:01:54] <sammysounder> Cool.
[04:02:06] <sammysounder> You probably want to inject the value into the controller then.
[04:02:11] <pofc> deweydb: Directives
[04:02:20] <sammysounder> Can you put it in via ng-route? Or via a state?
[04:02:23] *** mruzekw has joined #angularjs
[04:02:29] <deweydb> i thought directives were for manipulating the dom
[04:02:38] <deweydb> im really only looking for a unique id
[04:02:47] <deweydb> oh, ng-route
[04:02:48] *** monir has quit IRC
[04:02:49] <deweydb> nice
[04:02:51] <sammysounder> That should be part of a route then.
[04:02:51] <deweydb> fuck yeah
[04:02:53] <edrocks> are they still keeping js support or dart only for angular 2.0?
[04:02:56] <sammysounder> ;)
[04:02:58] <deweydb> thanks
[04:03:04] <sammysounder> no worries.
[04:03:06] *** Reskp has quit IRC
[04:03:53] <Shai-Tan> this works -> var phpro = angular.module('phpro', ['ngRoute']); but if I add var phpro = angular.module('phpro', ['ngRoute','ngCookies','ngResource','ngSanitize']); it fails with Error: [$injector:moduler for ngCookies?
[04:03:56] <Shai-Tan> why is this?
[04:04:08] *** KernelCurry has quit IRC
[04:04:22] *** pfc has joined #angularjs
[04:04:33] *** pfc has quit IRC
[04:04:37] <sammysounder> @Shai, you probably don't have ngCookies referenced properly.
[04:04:43] <sammysounder> Look into local storage though.
[04:04:52] *** jonr22 has quit IRC
[04:05:03] <sammysounder> There's some modules out there that are much easier to use than cookies.
[04:05:27] *** lw has quit IRC
[04:05:28] <Shai-Tan> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular-cookies.min.js"></script>
[04:05:51] *** scythe__ has quit IRC
[04:05:54] *** ccohn has quit IRC
[04:06:12] <Shai-Tan> sammysounder: you mean local storage instead of cookie?
[04:06:22] *** lianimator has joined #angularjs
[04:06:22] <sammysounder> @Shai. Yes.
[04:06:29] *** browles has quit IRC
[04:06:34] <Shai-Tan> ok, I am new to this..
[04:06:42] *** MistahKurtz has quit IRC
[04:06:47] <Shai-Tan> you can tell, cant you :(
[04:06:54] *** rho has quit IRC
[04:06:58] <sammysounder> No worries.
[04:07:05] <sammysounder> Everyone's new... until you aren't.
[04:07:10] <sammysounder> Check this out. https://github.com/grevory/angular-local-storage
[04:07:15] *** jaydubya has joined #angularjs
[04:07:45] *** wallerdev has joined #angularjs
[04:07:55] <sammysounder> I don't know your goal, but I'm doing a bunch of cross-platform phonegap using angular, so I can leverage HTML5. Local Storage is awesome.
[04:08:00] *** asher^ has joined #angularjs
[04:08:51] <edrocks> sammysounder: you using ionic?
[04:09:10] *** asher^ has joined #angularjs
[04:09:29] <sammysounder> I haven't. I want to check it out, but I'm slowly moving full native. Have you used ionic? What's your take?
[04:09:41] <Shai-Tan> well, my goal is to build a simple auth. ie: login page shows unless logged in
[04:09:56] <edrocks> I like it but I wish the lists were a bit faster
[04:10:07] <edrocks> some things are also a pain since its still beta
[04:10:30] <sammysounder> I've been looking into lua, too. Its a bit obscure, but looks powerful.
[04:10:42] <nicksloan> when I go to http://mydomain.com/mypath#something, it gets rewritten to http://mydomain.com/mypath/something. I'm using ui-router and html5 mode. Is there a way to stop that behavior?
[04:10:46] *** mven has quit IRC
[04:11:11] <sammysounder> I like playing around with beta, but I'm always reluctant to put anything beta into a client's project, and the clients pay...
[04:11:22] *** mven has joined #angularjs
[04:11:23] *** nemothekid has joined #angularjs
[04:11:34] *** TyrfingMjolnir has quit IRC
[04:11:43] <edrocks> its good enough to make a decent app
[04:11:50] <edrocks> hardest thing for me is getting users though
[04:12:10] *** discgo has quit IRC
[04:12:26] *** wallerdev has quit IRC
[04:12:26] *** Oddman has quit IRC
[04:12:27] <Shai-Tan> maybe this will do http://gregpike.net/demos/angular-local-storage/src/angular-local-storage.js
[04:12:36] <sammysounder> That's always the tough part.
[04:12:48] *** jaydubya has quit IRC
[04:13:31] *** Guest29 has joined #angularjs
[04:13:31] *** ctanga has quit IRC
[04:13:54] <sammysounder> Shai: that looks solid. Try that. You'll be happier then trying to mess around with cookies.
[04:14:10] <Shai-Tan> will do, thanks
[04:14:40] <sammysounder> ed: I usually end up in the B2B space. Making money off end users is tough. You have to get a ton of ads. Corporations have money.
[04:14:43] *** TinkerTyper has quit IRC
[04:15:03] *** edrocks has quit IRC
[04:15:24] *** edrocks has joined #angularjs
[04:15:29] <edrocks> woops cmd q is dangerous
[04:15:36] *** Gabriel403 has quit IRC
[04:15:46] *** Gabriel403 has joined #angularjs
[04:15:46] *** Gabriel403 has joined #angularjs
[04:15:47] *** rburns has quit IRC
[04:15:51] <sammysounder> LOL!
[04:15:59] *** rburns has joined #angularjs
[04:16:01] *** michaelSharpe has quit IRC
[04:16:02] <sammysounder> Later all!
[04:16:04] <edrocks> sammysounder: yea i learned that fast
[04:16:11] *** sammysounder has quit IRC
[04:16:29] <edrocks> now im making shipping software which is guaranteed money just because of how much it saves companies
[04:17:24] *** firelinks has quit IRC
[04:18:32] *** RastaqWhere has joined #angularjs
[04:18:46] *** DV8_ has joined #angularjs
[04:19:40] *** RastaqWhere has quit IRC
[04:20:02] *** cthrax has quit IRC
[04:20:40] *** TinkerTyper has joined #angularjs
[04:21:31] *** Skrypter has joined #angularjs
[04:21:54] *** subr0utine has quit IRC
[04:22:10] *** {DV8} has quit IRC
[04:22:56] *** phuh has quit IRC
[04:23:21] *** phuh has joined #angularjs
[04:23:33] *** annlewis has quit IRC
[04:23:48] *** cam_y_ has joined #angularjs
[04:24:57] <snurfery> anyone have issues with ui-router, absolute states and resolves?
[04:25:05] *** livingstn has quit IRC
[04:25:19] *** rhodesjason has quit IRC
[04:25:28] <snurfery> I have a deep child state that I want to override practically the whole page
[04:26:01] *** gordroidJS has quit IRC
[04:26:08] *** RastaqWhere has joined #angularjs
[04:26:30] *** grantfunke_ has joined #angularjs
[04:26:38] <snurfery> but using absolute named views seems to rearrange the scope inheritance,
[04:26:46] *** RastaqWhere has quit IRC
[04:26:47] *** rhodesjason has joined #angularjs
[04:27:20] <snurfery> oh damn that's exactly the warning from here: https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views#scope-inheritance-by-view-hierarchy-only
[04:27:28] *** diegoaguilar has joined #angularjs
[04:27:41] <LeBlaaanc> can templateUrl be relative to the app.js file somehow?
[04:27:54] *** cam_y has quit IRC
[04:28:02] *** nicholaswyoung has quit IRC
[04:28:08] *** mrits has quit IRC
[04:29:18] *** mandric has quit IRC
[04:29:49] *** Hackwar1 has joined #angularjs
[04:30:18] *** mandric has joined #angularjs
[04:31:35] *** iribarne has joined #angularjs
[04:31:36] *** syzygy_ has joined #angularjs
[04:31:41] *** Hackwar has quit IRC
[04:32:27] *** woah has joined #angularjs
[04:32:45] *** Guest29 has quit IRC
[04:32:55] *** Shrooms has quit IRC
[04:33:22] *** woah has quit IRC
[04:36:11] *** gnrlbzik has joined #angularjs
[04:37:11] <s3shs> I'm looking for nice layouts for a features list. Anybody got any they particularly like?
[04:38:14] *** mubi has joined #angularjs
[04:38:47] *** frkout has quit IRC
[04:38:55] <mubi> hey all, so I’m using ng-style={{style1}} where I’m updating style1 with $scope.style1 = "{'border-bottom':'3px solid #008AC8'}";
[04:39:06] <mubi> why isn’t my style being applied?
[04:39:07] *** alinou has quit IRC
[04:39:14] *** frkout has joined #angularjs
[04:39:17] *** Yahkob has joined #angularjs
[04:39:24] <mubi> style1 gets updated in the controller through a ng-click event
[04:39:25] <s3shs> ng-style expects you to pass it an object, right?
[04:39:29] <mubi> yes
[04:39:41] *** josh-k_ has joined #angularjs
[04:39:41] <mubi> am i not doing that?
[04:40:55] *** narutimateum has joined #angularjs
[04:40:56] *** gnrlbzik has quit IRC
[04:41:03] <mubi> if I wrap "{'border-bottom':'3px solid #008AC8'}" in {}; I get an unexepected identifier error
[04:41:17] <s3shs> ng-style="theStyle()" and scope.theStyle = function() { return { 'color' : '#000' }; }, right??
[04:41:56] *** nemothekid has quit IRC
[04:42:12] <mubi> hmm lemme try that
[04:42:13] *** Guest29 has joined #angularjs
[04:42:20] *** dejanr has quit IRC
[04:42:47] <s3shs> or ng-style="theStyle" and scope.theStyle = { 'color' : '#000' };
[04:43:15] <s3shs> Angular ng-style code will walk your object and add the styles to the style attribute of the tag.
[04:45:42] *** Sontakey has quit IRC
[04:46:28] *** stirlingw has quit IRC
[04:46:54] *** mahomaho has quit IRC
[04:47:35] <edrocks> I found out how to use hammerjs with webpack if anyone was wondering
[04:47:48] <mubi> s3shs: awesome dude, it works, I could swear I tried this, but it didn’t work…hmm, must have missing a close bracket or something, thanks!
[04:47:51] *** Yahkob has quit IRC
[04:47:59] <s3shs> np
[04:48:07] *** apertoire has quit IRC
[04:50:36] *** pipoo has joined #angularjs
[04:51:20] *** rtpg has quit IRC
[04:51:52] *** subr0utine has joined #angularjs
[04:51:53] *** eBureau has joined #angularjs
[04:52:09] *** rtpg has joined #angularjs
[04:52:34] *** rchavik has joined #angularjs
[04:52:41] *** matthoiland has joined #angularjs
[04:52:43] *** gnrlbzik has joined #angularjs
[04:53:00] *** davesidious_ has joined #angularjs
[04:53:40] *** pofc has quit IRC
[04:54:01] *** boneskull has joined #angularjs
[04:54:18] *** _ritchie_ has joined #angularjs
[04:54:36] *** annlewis has joined #angularjs
[04:54:36] <s3shs> LeBlaaanc, what templateUrl? ng-include?
[04:54:47] <LeBlaaanc> s3shs: ui-router I suppose
[04:54:55] <LeBlaaanc> Under views
[04:55:02] *** prbc has quit IRC
[04:55:14] <s3shs> It should fetch from the same place relative to your app.html.
[04:55:15] *** pipoo has quit IRC
[04:55:46] *** optikalmouse has quit IRC
[04:56:03] *** annlewis has quit IRC
[04:56:14] *** annlewis has joined #angularjs
[04:56:16] *** Grokling_ has joined #angularjs
[04:56:28] <LeBlaaanc> yea... hrmmm that's not all that helpful.
[04:56:36] *** ruchira has joined #angularjs
[04:56:49] <ruchira> hi
[04:56:50] *** rtpg has quit IRC
[04:57:01] *** ruchira has quit IRC
[04:57:10] *** davesidious has quit IRC
[04:57:12] *** Una has joined #angularjs
[04:57:16] *** matthoiland has quit IRC
[04:57:19] *** chromatome has joined #angularjs
[04:57:48] <s3shs> hello
[04:58:03] *** iribarne has quit IRC
[04:58:19] *** Mjuxo has joined #angularjs
[04:58:45] *** mikhailvs has joined #angularjs
[04:58:50] *** motionman has quit IRC
[04:59:10] <mikhailvs> hey is there a way to write an inline template (in html file) that isnt inside a script tag?
[04:59:12] *** fatshark has quit IRC
[04:59:29] *** Reskp has joined #angularjs
[04:59:49] <davek> mikhailvs, no because then its rendered as HTML.
[04:59:50] <Mjuxo> I've been trying to use AngularJS inside a Chrome Extension page. The data does not seem to be updated in HTML but the data is fetched. Thoughts? http://pastebin.com/ccg6d7zm
[05:00:08] <mikhailvs> davek, thats lame...
[05:00:23] *** bmac has quit IRC
[05:00:24] *** whitebook has joined #angularjs
[05:00:33] *** marcjs has joined #angularjs
[05:00:43] *** junmin has quit IRC
[05:00:56] *** annlewis has quit IRC
[05:01:19] <s3shs> mikhailvs, if you want your template in a separate file you can just use a url with ng-include instead.
[05:01:19] <davek> mikhailvs, there's no legitimate reason to NOT use a script tag...
[05:01:29] <davek> s3shs, he specified he wanted it inline.
[05:01:38] <mikhailvs> davek, i will show you one good reason
[05:02:01] <s3shs> mikhailvs, at some point you're gonna have to differentiate your template from actual HTML.
[05:02:05] *** ccohn has joined #angularjs
[05:02:15] *** BillCriswell has quit IRC
[05:02:23] *** jsheely|ltop has quit IRC
[05:02:29] <mikhailvs> davek, s3shs have a look http://i.imgur.com/yaAEkQ0.png
[05:02:42] *** motionman has joined #angularjs
[05:02:52] <mikhailvs> cloud9 is being mean to me =\
[05:03:01] <s3shs> <div ng-bind="contentForThistage"></div>
[05:03:09] <s3shs> Tag.
[05:03:26] *** mrits has joined #angularjs
[05:03:27] <mikhailvs> i get that i could put it in a seperate file, but i am using it to achieve a recursive ng-repeat
[05:03:35] <mikhailvs> so it seems like it should stay in the same file
[05:03:43] *** gunn has quit IRC
[05:03:58] *** DV8_ is now known as {DV8}
[05:04:05] *** Grokling_ has quit IRC
[05:04:16] *** Reskp has quit IRC
[05:04:27] <mikhailvs> i suppose i will just suffer through it
[05:04:52] *** marcjs has quit IRC
[05:04:56] *** lianimator1 has joined #angularjs
[05:04:57] <davek> mikhailvs, that's not a good reason at all.
[05:05:10] <mikhailvs> davek, it was kind of a joke
[05:05:17] *** whitebook has quit IRC
[05:05:35] *** syzygy_ has quit IRC
[05:05:56] <davek> mikhailvs, what exactly do you mean by "template"? Why can you not simply nest your template body in your ng-repeat statement?
[05:06:01] <davek> element*
[05:06:30] *** TinkerTyper has quit IRC
[05:06:32] *** ccohn has quit IRC
[05:06:33] *** bmac has joined #angularjs
[05:06:38] <mikhailvs> the problem is that my ide says anything inside a <script type="template"> is an error
[05:06:53] *** mary5030 has joined #angularjs
[05:06:59] <mikhailvs> i cannot nest it because it is recursive
[05:07:04] <mikhailvs> here is the exact code
[05:07:17] *** Lakario has joined #angularjs
[05:07:21] <davek> mikhailvs, so did you check the docs at all for this?
[05:07:24] <davek> https://docs.angularjs.org/api/ng/directive/script
[05:07:37] <davek> Type "Must be set to 'text/ng-template'.
[05:08:05] *** wallerdev has joined #angularjs
[05:08:09] *** lianimator has quit IRC
[05:08:23] *** daed has quit IRC
[05:10:03] *** Yahkob has joined #angularjs
[05:11:07] * mikhailvs sigh
[05:11:12] <mikhailvs> davek, yes i read the docs
[05:11:32] <s3shs> I've done recursive ng-repeats with ng-includes and script tags. Works fine.
[05:11:48] <mikhailvs> im not saying it's not working!
[05:11:58] <davek> mikhailvs, you're clearly not doing that.
[05:12:04] <davek> you just said <script type="template">
[05:12:06] <mikhailvs> my editor just cannot handle anything other than javascript in a script tag
[05:12:09] <davek> Which is not at all what I just told you was acceptable.
[05:12:14] <mikhailvs> davek, i said that to save typing time
[05:12:17] <davek> mikhailvs, then your text editor sucks.
[05:12:19] <mikhailvs> http://i.imgur.com/0Hf4Jhj.png
[05:12:22] <mikhailvs> look
[05:12:25] <s3shs> I was gonna say that... but thought "no, he wouldn't be complaining about that."
[05:12:32] <s3shs> mikhailvs, this is a bug in your IDE, not angualr.
[05:12:43] <mikhailvs> I DIDNT SAY IT WAS A BUG IN ANGULAR
[05:12:49] <s3shs> Get a better editor.
[05:12:53] *** wallerdev has quit IRC
[05:12:54] *** Left_Turn has quit IRC
[05:12:56] <mikhailvs> i was asking for an angular work-around for a lame editor
[05:12:56] <mikhailvs> =(
[05:13:02] <davek> Specifically your syntax highlighting, its not even affecting anything functionally...
[05:13:10] * mikhailvs sigh
[05:13:11] *** bmac has quit IRC
[05:13:14] <s3shs> Dude, don't ask how to workaround problems in editors. GET A BETTER EDITOR.
[05:13:14] <mikhailvs> have you used cloud9 in the past?
[05:14:09] *** dharmit has joined #angularjs
[05:14:10] <edrocks> just use sublime?
[05:14:29] *** red_horned_rihno has joined #angularjs
[05:14:30] <mikhailvs> cloud9 has a lot of featurees that makes other parts of the project nice
[05:14:53] <mikhailvs> its not a huge deal i guess, but i was just wondering if angular has this ability... apparently it does not
[05:14:57] <s3shs> I like BBEdit.
[05:15:16] *** red_horned_rihno has quit IRC
[05:15:22] <mikhailvs> thats nice s3shs
[05:15:45] *** TinkerTyper has joined #angularjs
[05:15:49] <s3shs> We're just trying to help. No need to get testy.
[05:16:03] *** red_horned_rihno has joined #angularjs
[05:16:15] <mikhailvs> didnt mean to offend
[05:16:16] *** rburns has quit IRC
[05:16:22] <s3shs> Me neither. :-)
[05:17:01] *** joshontheweb has quit IRC
[05:17:05] <edrocks> wow sass is really stupid sometimes
[05:17:08] *** rburns has joined #angularjs
[05:17:39] <davek> mikhailvs, nor should it. Angular shouldn't have to implement workarounds for individual text editors :P.
[05:18:09] <mikhailvs> im not asking it to =\ i was juuuust asking if <some other tag type="text/ng-template"> works
[05:18:12] *** red_horned_rihno has quit IRC
[05:18:13] <mikhailvs> because it would make me happy
[05:18:31] <mikhailvs> if the answer is no, which it seems to be, that is okay
[05:18:37] <davek> <davek> mikhailvs, no because then its rendered as HTML.
[05:18:57] <mikhailvs> lol. after you said that i asked if there was another way
[05:19:02] *** red_horned_rihno has joined #angularjs
[05:19:11] <mikhailvs> all my questions are about whether or not angular has the ability to do something
[05:19:24] <mikhailvs> nevermind.... forget i mentioned anything
[05:19:53] *** dejanr has joined #angularjs
[05:20:19] <s3shs> The only way I can think to workaround your script issue in your editor is by putting the template code in a separate html file that does not require script tags.
[05:20:21] *** TyrfingMjolnir has joined #angularjs
[05:20:38] *** red_horned_rihno has quit IRC
[05:21:10] <s3shs> You should file a bug against your editor.
[05:21:16] <mikhailvs> i suppose i should
[05:21:31] <s3shs> Script tags are allowed to hold languages besides JS per the spec.
[05:21:33] *** eephillip has joined #angularjs
[05:21:34] *** cthrax has joined #angularjs
[05:21:44] <s3shs> Does your editor know your file is html5?
[05:22:01] *** red_horned_rihno has joined #angularjs
[05:22:06] *** niop has joined #angularjs
[05:22:15] <mikhailvs> it doesnt make a distinction between html
[05:22:26] *** jeffisabelle has quit IRC
[05:22:35] *** ludkiller is now known as lud
[05:22:55] <s3shs> What editor is this?
[05:22:56] <Mjuxo> Why would this http://pastebin.com/2MwYwktn NOT update $scope.items in HTML? When the method is executing via ng-click it all works but not as is.
[05:22:58] *** TinkerTyper has quit IRC
[05:22:59] *** grantfunke_ has quit IRC
[05:23:14] *** mubi has quit IRC
[05:23:37] *** mubi has joined #angularjs
[05:23:44] <davek> s3shs, I think its a web-based one from cloud9?
[05:23:48] <niop> hi, is there any standard way at present to provide a cms in angular? or better to use something like hippo and rely on rest by the sound of it for interaction?
[05:24:02] <s3shs> davek, I don't know cloud9. Fair 'nuf.
[05:24:12] <davek> s3shs, yeah neither did I just gave it a quick googles.
[05:24:24] *** rchavik has quit IRC
[05:24:27] <s3shs> You win. :-)
[05:24:32] *** lianimator has joined #angularjs
[05:24:33] <davek> Seems like most of the other "DERVELOP IN THA CLOWD" gimmicks.
[05:24:43] <davek> s3shs, oh boy.
[05:25:01] <s3shs> I couldn't imagine developing an app > 20 lines in an on-line editor.
[05:25:02] *** josh-k has joined #angularjs
[05:25:06] <davek> Seriously.
[05:25:11] <s3shs> Mjuxo, so I see what you're doing there.
[05:25:30] *** cam_y has joined #angularjs
[05:25:31] *** justinobney has quit IRC
[05:25:55] <s3shs> So, what you're doing is mixing paradigms. You're calling code outside of angular from controller code. Generally you're supposed to do this from directives. It's one of their primary purposes. HOWEVER...
[05:26:11] <s3shs> you need to tell angular you've updated stuff. Look in to "Apply()"
[05:26:16] *** advy has joined #angularjs
[05:26:41] <s3shs> Normally when you fetch data you use stuff like $http.get()... and it calls apply for you. As does stuff like $timeout, etc.
[05:27:01] *** josh-k_ has quit IRC
[05:27:18] <s3shs> You should move that to a directive. But if you need to finish and sleep, try $scope.apply
[05:27:29] <s3shs> (Well, calling it.)
[05:27:30] *** lianimator1 has quit IRC
[05:27:35] *** mven has quit IRC
[05:27:40] *** mchung has quit IRC
[05:27:44] <mikhailvs> sent a ticket
[05:27:57] *** grantfunke_ has joined #angularjs
[05:28:18] *** subr0utine has quit IRC
[05:28:18] <s3shs> mikhailvs, I believe languages like coffeescript pull tricks with script tags too.
[05:28:22] <mikhailvs> yeah
[05:28:32] <s3shs> Anyway, you should get a local editor and use that and then just upload your files to cloud9 if possible.
[05:28:44] *** TinkerTyper has joined #angularjs
[05:28:45] <mikhailvs> for the record, i was skeptical of cloud9, but it is remarkably easy to use and the collaboration tools are very nice
[05:29:04] <mikhailvs> the text editor is basically a straightup clone of sublime
[05:29:11] <mikhailvs> (not all functionality, but most)
[05:29:17] *** cam_y_ has quit IRC
[05:29:51] *** josh-k has quit IRC
[05:30:00] *** brian__ has joined #angularjs
[05:30:53] *** josh-k_ has joined #angularjs
[05:31:28] <Mjuxo> Thanks s3shs! I'll look into custom directives and $apply :-)
[05:31:36] <s3shs> np
[05:32:08] *** mmealling has quit IRC
[05:32:17] *** numenor has joined #angularjs
[05:32:28] *** grantfunke_ has quit IRC
[05:33:11] *** bkuberek has joined #angularjs
[05:33:57] *** bayousoft has quit IRC
[05:34:07] *** edrocks has quit IRC
[05:34:41] *** mikhailvs has left #angularjs
[05:34:50] *** gnrlbzik has quit IRC
[05:35:26] *** mattblang_ has quit IRC
[05:35:33] *** lvegerano-home has joined #angularjs
[05:35:58] <niop> cms for angular?
[05:37:40] *** zanea is now known as zanea|away
[05:38:32] *** mattblang_ has joined #angularjs
[05:39:32] *** umib0zu has quit IRC
[05:39:33] *** goodenough has joined #angularjs
[05:39:35] *** bayousoft has joined #angularjs
[05:40:19] *** onats has quit IRC
[05:40:26] *** dc_ has joined #angularjs
[05:41:20] *** mennea has joined #angularjs
[05:42:07] *** bayousoft has quit IRC
[05:42:31] *** eephillip has quit IRC
[05:43:11] *** Yahkob has quit IRC
[05:43:32] *** ManBearPixel has joined #angularjs
[05:43:49] *** {DV8} has quit IRC
[05:43:58] *** goodenough has quit IRC
[05:45:20] *** mmealling has joined #angularjs
[05:45:28] *** phuh has quit IRC
[05:45:54] *** phuh has joined #angularjs
[05:45:56] *** kalehv has quit IRC
[05:46:26] *** rchavik has joined #angularjs
[05:46:50] <s3shs> That's all server-side stuff.
[05:46:54] <s3shs> (Niop)
[05:47:12] *** rtpg has joined #angularjs
[05:47:22] *** rburns has quit IRC
[05:47:53] *** codeman has quit IRC
[05:48:04] *** rburns has joined #angularjs
[05:48:04] *** mrits has quit IRC
[05:48:27] *** monir has joined #angularjs
[05:48:43] *** rtpg has quit IRC
[05:49:07] *** sinequanon has joined #angularjs
[05:49:14] *** jonr22 has joined #angularjs
[05:49:28] *** mubi has quit IRC
[05:50:28] *** kba has joined #angularjs
[05:51:04] *** SimpleGuy has joined #angularjs
[05:51:14] *** chromatome has quit IRC
[05:51:46] *** TheAceOfHearts has quit IRC
[05:51:46] *** rtpg has joined #angularjs
[05:51:50] *** pipoo has joined #angularjs
[05:52:00] *** loverajoel has quit IRC
[05:53:03] *** alexw has joined #angularjs
[05:53:17] <alexw> Is it possible to specifically set a scope?
[05:54:07] *** danflies has quit IRC
[05:54:10] *** jonr22 has quit IRC
[05:54:54] <SimpleGuy> anyone else get confused by having your build on .12 and your client on .11? Heh...
[05:55:11] *** tkimmel has joined #angularjs
[05:55:13] <SimpleGuy> Oops
[05:55:55] *** mogaj has joined #angularjs
[05:56:18] *** jaydubya has joined #angularjs
[05:56:24] *** annlewis has joined #angularjs
[05:56:25] <SimpleGuy> react-tools .12 builds with createElement, and this errors pretty immediately on a .11 client. Was pretty confused until I guessed the problem was versions :)
[05:56:37] *** jonathanpglick has joined #angularjs
[05:56:41] *** pipoo has quit IRC
[05:58:00] *** discgo has joined #angularjs
[05:58:37] <SimpleGuy> ...and this is the wrong room. haha. Man. that's it for me tonight.
[05:59:51] *** tkimmel has quit IRC
[06:00:15] *** Reskp has joined #angularjs
[06:00:43] *** annlewis has quit IRC
[06:00:56] *** jaydubya has quit IRC
[06:01:07] *** mogaj has quit IRC
[06:01:45] *** AngularUI has joined #angularjs
[06:01:45] <AngularUI> [ng-grid] PaulL1 opened pull request #2001: Fix #1933(columnMenu): don't delete .col, it removes col menu items duri... (master...1933_col_menu) http://git.io/lqAgvA
[06:01:45] *** AngularUI has left #angularjs
[06:02:34] <alexw> Is it possible to copy a model through a directive
[06:02:36] *** Sontakey has joined #angularjs
[06:02:50] <Shai-Tan> is there a roadmap for angular 2.0?
[06:02:55] *** Anton_ has quit IRC
[06:02:57] *** ccohn has joined #angularjs
[06:03:21] *** Guest29 has quit IRC
[06:03:26] <kba> Shai-Tan: https://drive.google.com/a/derfor.dk/?pli=1#folders/0B7Ovm8bUYiUDR29iSkEyMk5pVUk
[06:03:37] *** goodenough has joined #angularjs
[06:03:48] *** Anton_ has joined #angularjs
[06:03:59] *** jrowny has joined #angularjs
[06:04:04] <Shai-Tan> kba: thank you kind sir
[06:04:54] *** Reskp has quit IRC
[06:04:57] *** lvegerano-home has left #angularjs
[06:05:16] *** cthrax has quit IRC
[06:06:37] *** Sontakey has quit IRC
[06:06:39] *** Sontakey1 has joined #angularjs
[06:06:52] *** Guest29 has joined #angularjs
[06:07:07] *** Aliks has joined #angularjs
[06:07:12] *** loverajoel has joined #angularjs
[06:07:19] *** jtimon has quit IRC
[06:07:28] *** ccohn has quit IRC
[06:07:29] *** Sontakey has joined #angularjs
[06:08:11] *** AngularUI has joined #angularjs
[06:08:11] <AngularUI> [ng-grid] PaulL1 pushed 2 new commits to master: http://git.io/NtIRxQ
[06:08:11] <AngularUI> ng-grid/master 74a48f3 Paul Lambert: Fix #1933(columnMenu): don't delete .col, it removes col menu items during animation
[06:08:11] <AngularUI> ng-grid/master 49a62f8 Paul: Merge pull request #2001 from PaulL1/1933_col_menu...
[06:08:12] *** AngularUI has left #angularjs
[06:08:51] *** wallerdev has joined #angularjs
[06:09:05] *** asher^ has quit IRC
[06:10:45] *** mennea has quit IRC
[06:11:04] *** whitebook has joined #angularjs
[06:11:07] *** Sontakey1 has quit IRC
[06:11:25] *** mennea has joined #angularjs
[06:11:35] *** loverajoel has quit IRC
[06:12:37] *** TheAceOfHearts has joined #angularjs
[06:12:48] *** gnrlbzik has joined #angularjs
[06:13:25] *** Sontakey1 has joined #angularjs
[06:13:26] *** Sontakey has quit IRC
[06:13:39] *** iribarne has joined #angularjs
[06:13:46] *** wallerdev has quit IRC
[06:14:11] *** cacts has joined #angularjs
[06:14:27] *** iribarne has quit IRC
[06:14:34] *** charuru_ has joined #angularjs
[06:14:40] *** brian__ is now known as bgerami
[06:15:12] *** ckboii89 has quit IRC
[06:15:30] *** charuru has quit IRC
[06:15:31] *** charuru_ is now known as charuru
[06:15:41] *** whitebook has quit IRC
[06:15:43] *** asher^ has joined #angularjs
[06:15:48] *** Jdubs has quit IRC
[06:16:06] *** Jdubs has joined #angularjs
[06:16:33] *** josh-k_ has quit IRC
[06:16:52] *** KernelCurry has joined #angularjs
[06:17:01] *** asher^ has joined #angularjs
[06:17:05] *** josh-k has joined #angularjs
[06:17:17] *** asher^ has quit IRC
[06:17:25] *** threesixes has quit IRC
[06:17:29] *** KernelCurry has quit IRC
[06:17:53] *** asher^ has joined #angularjs
[06:18:21] *** sinequanon has quit IRC
[06:18:21] *** rburns has quit IRC
[06:18:42] *** rburns has joined #angularjs
[06:19:10] *** Guest29 has quit IRC
[06:19:23] *** bkuberek has quit IRC
[06:19:45] *** grantfunke_ has joined #angularjs
[06:20:16] <niop> s3shs: thanks
[06:20:58] *** monir has quit IRC
[06:21:19] *** P1RATEZ has joined #angularjs
[06:21:54] *** josh-k has quit IRC
[06:23:21] *** mmealling has quit IRC
[06:23:27] *** gnrlbzik has quit IRC
[06:23:42] *** gnrlbzik has joined #angularjs
[06:24:31] *** Sontakey1 has quit IRC
[06:24:52] *** Sontakey has joined #angularjs
[06:25:22] *** niop has quit IRC
[06:25:31] *** sinequanon has joined #angularjs
[06:25:55] *** asher^ has joined #angularjs
[06:25:58] *** ckboii89 has joined #angularjs
[06:26:38] *** mjs2600 has joined #angularjs
[06:27:52] *** junmin has joined #angularjs
[06:28:51] *** Sontakey1 has joined #angularjs
[06:29:16] *** knownasilya has quit IRC
[06:30:03] *** jonathanpglick has quit IRC
[06:30:07] *** diegoviola has joined #angularjs
[06:30:08] *** Sgeo has quit IRC
[06:30:22] *** Sgeo has joined #angularjs
[06:30:26] *** diegoviola has left #angularjs
[06:30:30] *** discgo_ has joined #angularjs
[06:30:32] *** Aliks has quit IRC
[06:30:33] *** e0ipso is now known as e0ipso|away
[06:30:52] *** e0ipso|away is now known as e0ipso
[06:31:07] *** Aliks has joined #angularjs
[06:31:13] *** mjs2600 has quit IRC
[06:31:53] *** chromatome has joined #angularjs
[06:32:09] *** jonathanpglick has joined #angularjs
[06:32:13] *** TheAceOfHearts has quit IRC
[06:32:42] *** Sontakey has quit IRC
[06:34:05] *** Alina-malina has joined #angularjs
[06:34:08] *** onats has joined #angularjs
[06:34:45] *** lianimator1 has joined #angularjs
[06:35:25] *** Aliks has quit IRC
[06:36:18] *** wd40s has quit IRC
[06:36:45] *** onats has quit IRC
[06:37:21] *** klaut has joined #angularjs
[06:37:48] *** Sontakey2 has joined #angularjs
[06:38:17] *** dharmit has quit IRC
[06:39:07] *** lianimator has quit IRC
[06:39:15] *** iamvfl has joined #angularjs
[06:40:02] *** Sontakey1 has quit IRC
[06:40:20] *** monir has joined #angularjs
[06:40:47] *** mennea has quit IRC
[06:40:55] *** wa5ted has quit IRC
[06:40:58] *** dharmit has joined #angularjs
[06:41:24] *** mennea has joined #angularjs
[06:41:37] *** matthoiland has joined #angularjs
[06:41:59] *** Alok_ has joined #angularjs
[06:42:32] *** gunn has joined #angularjs
[06:42:44] *** SimpleGuy has quit IRC
[06:42:59] *** Aliks has joined #angularjs
[06:43:19] *** Grokling_ has joined #angularjs
[06:43:39] *** Alok_ has quit IRC
[06:43:48] *** {DV8} has joined #angularjs
[06:44:09] *** DV8_ has joined #angularjs
[06:45:24] <deebo> whats the easiest way to have a Date() in an input but a number (unix time) in the model?
[06:45:26] *** jonathanpglick has quit IRC
[06:45:30] *** phuh has quit IRC
[06:45:48] <deebo> i can transform the data before posting it with $http but im thinking thas has to have been thought about by someone
[06:45:54] *** mennea has quit IRC
[06:46:05] *** phuh has joined #angularjs
[06:46:08] *** matthoiland has quit IRC
[06:46:20] *** wallerdev has joined #angularjs
[06:46:27] *** mandric has quit IRC
[06:46:49] *** mupkoo has joined #angularjs
[06:48:18] *** {DV8} has quit IRC
[06:48:40] *** narutimateum has quit IRC
[06:48:45] *** TheAceOfHearts has joined #angularjs
[06:48:49] *** onats has joined #angularjs
[06:48:50] *** onats has joined #angularjs
[06:49:02] *** rburns has quit IRC
[06:49:14] *** rburns has joined #angularjs
[06:49:53] *** narutimateum has joined #angularjs
[06:50:16] *** dandv has joined #angularjs
[06:50:37] <numenor> deebo: It sounds like there has to be mapper/converter between the view and a model
[06:50:40] *** ahmetkapikiran has quit IRC
[06:50:47] *** cornerma1 has joined #angularjs
[06:51:11] <dandv> Does anyone have an example of using ui-router-extras to preserve state between routes? I have a Google Map in one view and when the user navigates to another route, the map position, zoom etc. are lost. There are also some form controls beneath the map, and I want to preserve their values.
[06:51:14] *** wallerdev has quit IRC
[06:51:33] <numenor> deebo : You could use a directive for the text field and convert the value in its controller ?
[06:52:04] *** tomzx is now known as tomzx`afk
[06:53:52] *** nuizzy has joined #angularjs
[06:54:18] *** cornerman has quit IRC
[06:54:18] *** TripTastic is now known as JBreit
[06:54:29] *** cornerma1 is now known as cornerman
[06:54:38] *** annlewis has joined #angularjs
[06:56:06] *** Rahul_Roy_ has joined #angularjs
[06:56:11] *** dnull has joined #angularjs
[06:57:07] *** TuRnaD0 has joined #angularjs
[06:57:32] *** themime has joined #angularjs
[06:58:12] *** eBureau has quit IRC
[06:58:18] *** goodenough has quit IRC
[06:58:23] *** Grokling_ has quit IRC
[06:58:45] *** drej has quit IRC
[06:59:02] *** NormySan has joined #angularjs
[06:59:10] *** annlewis has quit IRC
[06:59:26] *** Iravan has joined #angularjs
[07:00:04] <wafflej0ck> deebo: probably want $parsers and/or $formatters https://docs.angularjs.org/api/ng/type/ngModel.NgModelController
[07:00:05] *** BahamutWC has joined #angularjs
[07:00:22] *** frkout_ has joined #angularjs
[07:00:37] *** DV8_ has quit IRC
[07:00:53] *** Reskp has joined #angularjs
[07:01:15] *** wd40s has joined #angularjs
[07:02:22] *** edrocks has joined #angularjs
[07:02:45] *** Yahkob has joined #angularjs
[07:03:04] *** mary5030 has quit IRC
[07:03:41] *** ccohn has joined #angularjs
[07:03:48] *** frkout has quit IRC
[07:04:17] *** josh-k has joined #angularjs
[07:04:47] <numenor> wafflej0ck : Okay
[07:05:32] *** Reskp has quit IRC
[07:06:06] *** wd40s has quit IRC
[07:06:19] *** SoulBlade has quit IRC
[07:07:01] *** sribabu has joined #angularjs
[07:07:17] *** SoulBlade has joined #angularjs
[07:08:12] *** ccohn has quit IRC
[07:08:41] *** nuizzy has quit IRC
[07:09:01] *** nuizzy has joined #angularjs
[07:09:44] *** wallerdev has joined #angularjs
[07:10:10] *** edrocks_ has joined #angularjs
[07:10:17] *** klaut_ has joined #angularjs
[07:10:22] *** Yahkob has quit IRC
[07:10:22] *** moeko has joined #angularjs
[07:10:28] *** grantfunke__ has joined #angularjs
[07:10:43] *** BahamutWC_ has joined #angularjs
[07:10:54] *** jsheely has joined #angularjs
[07:11:01] *** lianimator has joined #angularjs
[07:11:03] <moeko> hi
[07:11:29] *** nuizzy has quit IRC
[07:11:41] *** nuizzy has joined #angularjs
[07:11:47] <dandv> does anyone else feel that angular is needlessly complicated?
[07:11:49] *** SoulBlade has quit IRC
[07:11:50] *** moeko has quit IRC
[07:12:29] *** joshontheweb has joined #angularjs
[07:12:47] *** MistahKurtz has joined #angularjs
[07:12:54] *** lianimator1 has quit IRC
[07:13:22] *** numenor has quit IRC
[07:13:24] *** MrBaboon has quit IRC
[07:13:34] *** VeeWee has joined #angularjs
[07:13:36] *** JBreit has quit IRC
[07:13:42] *** jonathanpglick has joined #angularjs
[07:13:53] *** boubbin_ has joined #angularjs
[07:14:02] *** emmesswhy has joined #angularjs
[07:14:03] *** MrBaboon has joined #angularjs
[07:14:18] *** MistahKurtz has quit IRC
[07:14:24] *** wallerdev has quit IRC
[07:14:44] *** MrBaboon has quit IRC
[07:15:23] *** MrBaboon has joined #angularjs
[07:15:50] *** dan2k3k4 has joined #angularjs
[07:16:04] *** glaksmono_ has joined #angularjs
[07:17:07] *** onats has quit IRC
[07:17:39] *** PDogJr_ has joined #angularjs
[07:18:29] *** Jae has quit IRC
[07:18:37] *** DrJae has joined #angularjs
[07:18:56] *** edrocks has quit IRC
[07:18:56] *** BahamutWC has quit IRC
[07:18:57] *** klaut has quit IRC
[07:18:57] *** grantfunke_ has quit IRC
[07:18:58] *** Skrypter has quit IRC
[07:18:58] *** glaksmono has quit IRC
[07:18:59] *** jsheely|2 has quit IRC
[07:19:00] *** PDogJr has quit IRC
[07:19:01] *** aboudreault has quit IRC
[07:19:02] *** boubbin has quit IRC
[07:19:04] *** ajk27 has quit IRC
[07:19:04] *** PDogJr_ is now known as PDogJr
[07:19:05] *** JBreit has joined #angularjs
[07:19:41] *** thirdknife has joined #angularjs
[07:19:45] *** MrBaboon has quit IRC
[07:20:19] *** Skrypter has joined #angularjs
[07:20:40] *** dan2k3k4 has quit IRC
[07:21:18] *** dan2k3k4 has joined #angularjs
[07:21:21] *** mupkoo has quit IRC
[07:21:26] *** edrocks_ has quit IRC
[07:21:29] *** DrJae is now known as Jae
[07:21:32] *** Jae has joined #angularjs
[07:22:06] *** sinequanon has quit IRC
[07:22:51] *** Yahkob has joined #angularjs
[07:22:52] *** P1RATEZ has quit IRC
[07:23:03] *** sigurding has joined #angularjs
[07:23:04] *** dan2k3k4 has quit IRC
[07:23:55] *** narutimateum has quit IRC
[07:24:15] *** narutimateum has joined #angularjs
[07:24:27] *** aboudreault has joined #angularjs
[07:24:44] *** narutimateum has quit IRC
[07:25:06] *** narutimateum has joined #angularjs
[07:26:09] <narutimateum> A + B +C = ABC how in angular do i do that ABC changed anytime a or b or c changed??
[07:26:19] *** numenor has joined #angularjs
[07:26:42] <TheAceOfHearts> dandv: I thought so at first, and then I stopped thinking it, but since I've been trying out other things I do agree that angular does add some needless layers
[07:26:52] *** NormySan has quit IRC
[07:27:01] *** teufelChiCoder has joined #angularjs
[07:27:12] *** diegoaguilar has quit IRC
[07:27:24] *** teufelChiCoder is now known as Guest17540
[07:28:43] *** discgo has quit IRC
[07:28:44] *** discgo_ is now known as discgo
[07:30:13] *** firelinks has joined #angularjs
[07:30:19] *** sinequanon has joined #angularjs
[07:30:23] *** Guest17540 has left #angularjs
[07:31:01] *** Alina-malina has quit IRC
[07:31:10] *** Alina-malina has joined #angularjs
[07:31:37] *** Raging_Hog has joined #angularjs
[07:32:25] *** onats has joined #angularjs
[07:33:11] *** mruzekw has quit IRC
[07:33:28] *** zwacky has joined #angularjs
[07:34:13] *** ril has joined #angularjs
[07:34:22] <ril> hello world
[07:34:47] <dandv> TheAceOfHearts: and I've read that 2.0 will radically break compatibility with Angular 1.x, so much of what we learn will be partially rendered useless. And there's no migration path. http://jaxenter.com/angular-2-0-112094.html
[07:35:37] <ril> my earnest attempt to quit my job after discovering the horrible state of the codebase has lead to my bosses telling me to just stay on a month and do whatever I want
[07:36:15] *** sinequanon has quit IRC
[07:36:27] <ril> which I have decided is, a ground-up rewrite built around religious TDD
[07:36:48] *** kurylo has joined #angularjs
[07:37:24] *** Leon has joined #angularjs
[07:37:30] *** lianimator has quit IRC
[07:37:44] *** oktapodi has quit IRC
[07:37:46] <ril> so I'm trying to get the lay of the land
[07:37:57] *** e0ipso is now known as e0ipso|away
[07:38:08] <ril> it seems like CI is relatively possible in angular compared to other frameworks
[07:38:15] *** jonr22 has joined #angularjs
[07:38:20] *** Alina-malina has quit IRC
[07:38:30] *** lorem has joined #angularjs
[07:38:50] *** lorem has left #angularjs
[07:38:54] *** rho has joined #angularjs
[07:39:17] <ril> does anyone have experience with that that they'd be willing to share?
[07:40:08] *** alexw has quit IRC
[07:40:10] <wafflej0ck> ril: yup using Jenkins CI with angular and it works out fine
[07:40:47] *** lianimator has joined #angularjs
[07:41:18] *** _ritchie_ has quit IRC
[07:41:21] <wafflej0ck> ril: Jenkins itself is kinda heavy weight on resources but does the job, used this extra config http://karma-runner.github.io/0.8/plus/Jenkins-CI.html on top of a modified version of the yo angular (yeoman generator)
[07:41:22] *** numenor has quit IRC
[07:42:15] <ril> that's very cool. do I need to budget $$ for it?
[07:42:21] <wafflej0ck> ril: basically when I push a commit every minute Jenkins checks for new commits on projects, if it sees a change it runs a few commands (npm install, bower install, grunt test, grunt build) if it succeeds I have it run a few commands in a makefile
[07:42:56] *** jonr22 has quit IRC
[07:43:05] <wafflej0ck> ril: I'm using an AWS server I think a DO server would be fine too you'll want at least 1.5GB of RAM on the machine doing though and a fair amount of space for the build workspaces and the artifacts (saving the dist folder for previous 10 builds or whatever)
[07:43:26] *** discgo has quit IRC
[07:43:38] *** e0ipso|away is now known as e0ipso
[07:43:54] <wafflej0ck> ril: you could run it locally too on a development machine just to get familiar with how it works but nice to have it on the server for myself to take care of the deployment to staging too
[07:44:04] *** tkimmel has joined #angularjs
[07:44:04] *** gurke_ has joined #angularjs
[07:44:14] <gurke_> good morning. :)
[07:44:33] <wafflej0ck> mornin' gurke_
[07:44:44] <gurke_> hi wafflej0ck :)
[07:44:52] *** platonic has quit IRC
[07:44:53] <narutimateum> wafflej0ck: help me T.T
[07:45:05] <wafflej0ck> 12:44AM here but not as late as I usually see you come on :) suppose dailight saving time is nice sometimes
[07:45:12] <wafflej0ck> narutimateum: what's up
[07:45:15] <narutimateum> A + B +C = ABC how in angular do i do that ABC changed anytime a or b or c changed??
[07:45:15] *** jaydubya has joined #angularjs
[07:45:19] *** platonic has joined #angularjs
[07:45:31] <wafflej0ck> are A B and C on the scope?
[07:45:31] *** phuh has quit IRC
[07:45:40] <narutimateum> yes
[07:45:42] <wafflej0ck> er are they all variables in some context where you can have a $watch
[07:45:47] *** stirlingw has joined #angularjs
[07:45:56] <narutimateum> so i have to use watch?
[07:46:03] <narutimateum> there is no auto stuff?
[07:46:08] *** oste has quit IRC
[07:46:08] *** phuh has joined #angularjs
[07:46:32] *** mupkoo has joined #angularjs
[07:46:35] <wafflej0ck> if so $scope.$watch(function(){return a + b + c; /*where plus is concatenating*/}, function(newVal,oldVal){console.log('something changed',newVal,oldVal)})
[07:46:43] *** oste has joined #angularjs
[07:46:49] *** TuRnaD0 has quit IRC
[07:47:02] <narutimateum> oh wait.. so i can put scope watch inside the variable?.. like so total:
[07:47:05] *** oste has quit IRC
[07:47:18] <wafflej0ck> narutimateum: would probably have to see the code to say for sure
[07:48:01] <narutimateum> wafflej0ck: currently im doing it like this but it calculates only on insert http://i.imgur.com/aczJBqu.png
[07:48:22] *** oktapodi has joined #angularjs
[07:48:44] *** MistahKurtz has joined #angularjs
[07:48:54] *** tkimmel has quit IRC
[07:49:04] <wafflej0ck> narutimateum: yeah typically I've just used ng-change to call an updateTotal function or the like
[07:49:20] *** MistahKurtz has quit IRC
[07:49:33] <wafflej0ck> it's more code on the view but it's clear what's going on and no extra watches
[07:49:33] <narutimateum> hmm..so 2 choice watch or ng change
[07:49:40] *** Reskp has joined #angularjs
[07:49:55] *** platonic has quit IRC
[07:49:55] *** rburns has quit IRC
[07:49:57] *** MistahKurtz has joined #angularjs
[07:50:11] *** emmesswhy has quit IRC
[07:50:13] *** rburns has joined #angularjs
[07:50:14] *** iqbalkhan has joined #angularjs
[07:50:15] *** frkout_ has quit IRC
[07:50:30] *** Reskp has quit IRC
[07:50:30] *** frkout has joined #angularjs
[07:50:36] *** goodenough has joined #angularjs
[07:50:41] *** stirlingw has quit IRC
[07:50:42] *** jaydubya has quit IRC
[07:50:43] <narutimateum> wafflej0ck: sooo....how are ya... i havent been here for long time XD
[07:50:47] <wafflej0ck> yeah generally speaking it's good to reduce the amount of watches where you can
[07:51:03] <wafflej0ck> narutimateum: yeah I'm more on and off lately too, busy but pretty good
[07:51:13] *** favetelinguis has joined #angularjs
[07:51:18] <dandv> ril: have you looked at Meteor?
[07:51:29] <wafflej0ck> just got through some serious refactoring in the backend code
[07:51:29] *** rho has quit IRC
[07:51:35] *** AndreiCurelaru has joined #angularjs
[07:51:41] <narutimateum> ooh
[07:51:56] <narutimateum> i had to do some gay mixup with angular and laravel
[07:51:57] <dandv> Meteor has built-in testing, CI (save & code re-tests automatically) and a bunch of SaaS that provide CI if you don't want to do it yourself
[07:52:03] <wafflej0ck> it's really in a lot better shape now
[07:52:04] *** jdj_dk has joined #angularjs
[07:52:06] <narutimateum> the client want some forms interaction
[07:52:35] <dandv> narutimateum: http://autoform.meteor.com
[07:52:36] <narutimateum> what do you think of this wafflej0ck http://i.imgur.com/Ql8cdEL.png
[07:53:01] *** pipoo has joined #angularjs
[07:53:16] *** powaa has quit IRC
[07:53:19] <wafflej0ck> narutimateum: looks familiar, I'm using similar UI setups for quite a few things.... using ng-table in a lot of them
[07:53:28] <wafflej0ck> narutimateum: also angular-x-editable
[07:53:33] *** jdj_dk has quit IRC
[07:53:36] <narutimateum> not using either XD
[07:53:42] *** dandv has quit IRC
[07:53:48] <wafflej0ck> yeah you should check them out though both useful for this stuff
[07:53:55] <wafflej0ck> ng-table for the sorting/column headers
[07:54:04] <wafflej0ck> x-editable for the row editing and cancellation
[07:54:27] *** chromatome has quit IRC
[07:54:35] *** thirdknife_ has joined #angularjs
[07:54:38] *** annlewis has joined #angularjs
[07:54:40] <narutimateum> i tried ng table..got some weird error cant quite solved
[07:54:45] *** gunn has quit IRC
[07:55:07] <wafflej0ck> yeah both took a bit of fiddling around with em but now I've tamed them and all is well :)
[07:55:13] <narutimateum> haha
[07:55:18] *** jdj_dk has joined #angularjs
[07:55:47] *** dandv has joined #angularjs
[07:55:56] *** thirdknife has quit IRC
[07:57:38] *** gunn has joined #angularjs
[07:57:39] *** pipoo has quit IRC
[07:57:46] *** gunn has quit IRC
[07:58:25] *** gunn has joined #angularjs
[07:58:32] *** onats has quit IRC
[07:59:09] *** dreambox has joined #angularjs
[07:59:13] *** annlewis has quit IRC
[08:00:37] *** Mjuxo has quit IRC
[08:00:43] <deweydb> man ng-click directive is weird
[08:00:46] *** jstroem has joined #angularjs
[08:00:48] <deweydb> sometimes it just randomly stops working
[08:00:50] <deweydb> what the hell
[08:02:34] <wafflej0ck> did you bury the toenail of a blue dragon from the forest of Azeroth before you started coding, or check for CMEs in the local cluster?.... gotta check for those CMEs and the quantum tunneling effect
[08:02:54] <deweydb> lol
[08:03:09] *** zwacky has quit IRC
[08:03:21] <deweydb> man i must be tired, i've even tested doing something really simple like binding ng-click to a scope function that only console logs.
[08:03:22] *** Una has quit IRC
[08:03:23] <deweydb> nothing
[08:03:42] *** Jdubs has quit IRC
[08:03:43] <wafflej0ck> must be the controller isn't defined or referenced correctly I imagine
[08:04:00] *** Alina-malina has joined #angularjs
[08:04:00] *** Alina-malina has joined #angularjs
[08:04:05] <wafflej0ck> have you tried dropping debugger; statements in the controller def and before it and everywhere else to see if it gets to defining and calling that function
[08:04:21] *** wd40s has joined #angularjs
[08:04:24] *** ccohn has joined #angularjs
[08:05:05] <deweydb> yup
[08:05:09] <deweydb> its definitely defined
[08:05:15] <deweydb> i had this problem with another controller recently
[08:05:25] <deweydb> in the end the only way i got ng-click to work again was putting ng-ifs on the same element
[08:05:30] <deweydb> i still don't get why
[08:05:33] <deweydb> that even worked
[08:05:38] <wafflej0ck> hmm
[08:05:49] *** Xethron has joined #angularjs
[08:05:53] <wafflej0ck> can you reproduce in a plunkr by chance?
[08:06:09] <deweydb> hmm maybe
[08:06:40] *** bgerami has quit IRC
[08:07:08] <deweydb> ughh app so big hard to plnkr
[08:07:09] <deweydb> hah
[08:07:11] *** caitp- has quit IRC
[08:07:51] <wafflej0ck> yeah you just want to try to take the smallest piece of your code possible to reproduce the problem really
[08:08:10] *** Aliks has quit IRC
[08:08:11] <wafflej0ck> leave everything else behind will make it easier to see what works and what breaks it
[08:08:36] *** mityaz has joined #angularjs
[08:08:46] *** Aliks has joined #angularjs
[08:08:51] <wafflej0ck> typically I haven't had a lot of problems with ng-click but who knows
[08:08:59] *** ccohn has quit IRC
[08:08:59] *** BlinkyBill has quit IRC
[08:09:15] <wafflej0ck> usually I screw up on the name of the function or the controller being used for that scope or something like that
[08:10:38] *** wallerdev has joined #angularjs
[08:11:57] <deweydb> weird, put it in a plnkrr and it works
[08:11:58] <deweydb> hah
[08:12:03] *** ggrzybek has joined #angularjs
[08:12:31] <deweydb> ohhhhh shit
[08:12:36] <deweydb> dumbass
[08:12:45] <deweydb> thanks
[08:12:51] *** rtpg has quit IRC
[08:12:51] <wafflej0ck> heh np what was it?
[08:13:00] <deweydb> i had copy pasted an ng-include line
[08:13:09] <deweydb> and the ng-include line had a directive on that was
[08:13:12] <deweydb> include-replace
[08:13:25] <deweydb> basically replaces the element wiht the contents
[08:13:33] *** Aliks has quit IRC
[08:13:36] <deweydb> and that was screwing up my controller definition
[08:13:44] *** soee has joined #angularjs
[08:13:53] *** Aliks has joined #angularjs
[08:13:54] <deweydb> what threw me off was the controller was still running at first
[08:14:05] *** rhp2 has joined #angularjs
[08:14:07] <deweydb> but once the directive did the replace it probably got garbage collected
[08:14:38] *** Yahkob has quit IRC
[08:14:53] *** wallerdev has quit IRC
[08:14:53] <soee> good morning
[08:15:29] <wafflej0ck> deweydb: gotcha
[08:15:39] *** Reskp has joined #angularjs
[08:16:41] *** rhp has quit IRC
[08:16:42] *** rhp2 is now known as rhp
[08:16:52] *** e0ipso is now known as e0ipso|away
[08:17:00] *** dnull has quit IRC
[08:17:11] *** e0ipso|away is now known as e0ipso
[08:18:01] *** Reskp has quit IRC
[08:19:56] *** caitp has joined #angularjs
[08:20:06] *** cacts has quit IRC
[08:20:10] *** frkout has quit IRC
[08:20:14] *** Ch4rAss has joined #angularjs
[08:20:36] *** frkout has joined #angularjs
[08:20:36] *** rburns has quit IRC
[08:20:45] *** Huevos has joined #angularjs
[08:20:49] *** rburns has joined #angularjs
[08:21:08] *** Orbitrix has quit IRC
[08:21:09] *** Sontakey2 has quit IRC
[08:21:16] *** MaxV has joined #angularjs
[08:21:57] *** jonathanpglick has quit IRC
[08:24:27] *** monir has quit IRC
[08:24:52] *** monir has joined #angularjs
[08:24:55] *** Sontakey has joined #angularjs
[08:25:34] *** Miphe has joined #angularjs
[08:25:52] *** asher^ has quit IRC
[08:26:04] *** svycka has joined #angularjs
[08:26:44] *** lianimator1 has joined #angularjs
[08:27:42] *** ClarusCogitatio has quit IRC
[08:27:52] <opus_> is it possible to test out Push notifications with parse.com? Anyone done that
[08:28:06] *** rtpg has joined #angularjs
[08:28:26] *** asher^ has joined #angularjs
[08:28:33] *** tech2 has joined #angularjs
[08:29:13] *** monir has quit IRC
[08:29:20] *** lianimator has quit IRC
[08:30:31] *** matthoiland has joined #angularjs
[08:30:40] *** ClarusCogitatio has joined #angularjs
[08:31:01] *** foofoobar has joined #angularjs
[08:31:10] *** shampine has joined #angularjs
[08:32:08] *** shampine has joined #angularjs
[08:33:42] <davek> opus_, why would you need to do that?
[08:34:06] *** Click66 has joined #angularjs
[08:35:02] *** matthoiland has quit IRC
[08:35:12] <opus_> I need to tell a mobile app to reload a table
[08:35:21] <opus_> via receiving a push update
[08:36:14] <davek> Yes you mock the push service and generate fake push messages.
[08:36:22] <opus_> ahh
[08:36:27] <opus_> how do I go about doing that?
[08:36:31] *** mattblang_ has quit IRC
[08:36:36] <opus_> when I use Parse.Push.send() I'm getting a 400 error
[08:36:36] <davek> Refer to the docs on testing and mocks.
[08:36:49] <opus_> oh... i need this to be live
[08:36:54] <opus_> not in jasmine
[08:37:02] *** e0ipso is now known as e0ipso|away
[08:37:02] *** Evoratec has joined #angularjs
[08:37:04] <opus_> because it triggers cloudcode
[08:38:20] *** rosieres has joined #angularjs
[08:38:53] *** ClarusCogitatio has quit IRC
[08:39:45] *** ClarusCogitatio has joined #angularjs
[08:39:51] *** e0ipso|away is now known as e0ipso
[08:39:59] *** Aliks has quit IRC
[08:40:50] <opus_> Oh
[08:40:51] <opus_> I figured it out
[08:41:01] <opus_> "Enable client created push notifications" on their dashboard
[08:42:28] *** shampine has quit IRC
[08:43:54] *** Sjimi has joined #angularjs
[08:45:02] *** rtpg has quit IRC
[08:45:30] *** platonic has joined #angularjs
[08:45:34] *** phuh has quit IRC
[08:46:02] *** phuh has joined #angularjs
[08:46:09] *** AndreasLutro has joined #angularjs
[08:46:24] *** klaut_ has quit IRC
[08:46:25] *** draconis-chomp has quit IRC
[08:47:05] *** Reskp has joined #angularjs
[08:47:06] <opus_> great, how do I receive push notifications in angular?
[08:47:10] <Mordecai> hmm
[08:48:13] <Mordecai> for some reason a scope of mine doesn't update
[08:49:09] *** motionman has quit IRC
[08:49:12] *** jacuqesdancona has joined #angularjs
[08:49:28] *** motionman has joined #angularjs
[08:49:38] *** motionman has joined #angularjs
[08:49:55] *** platonic has quit IRC
[08:51:27] *** blomman has joined #angularjs
[08:51:33] *** Aliks has joined #angularjs
[08:51:36] <Mordecai> do I need to do a $rootScope.$digest
[08:51:50] <Mordecai> to propagate this across multiple directives?
[08:52:25] *** onats has joined #angularjs
[08:52:30] *** nuizzy has quit IRC
[08:52:30] *** anapitupulu has quit IRC
[08:52:58] *** dreambox has quit IRC
[08:53:30] *** rtpg has joined #angularjs
[08:54:39] *** annlewis has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:47] *** TyrfingMjolnir has quit IRC
[08:56:07] <opus_> this is crap. there is no easily explained way to send a push notification to a web app
[08:56:23] *** MalteJ has joined #angularjs
[08:56:31] <Logicgate> opus_, sockets?
[08:56:32] *** TyrfingMjolnir has joined #angularjs
[08:56:34] <elmcrest> Good morning (from Germany) ... I have a menu with submenu (toggled with ng-click). can someone tell me some thoughts? ... there are some issues left with closing the menu (f.e. scrolling or clicking somewhere) but that's not too important for now. But if someone can give me some feedback I'd move forward to the routing... https://dpaste.de/ER1j
[08:58:28] *** lexek_ has joined #angularjs
[08:59:10] *** Sontakey has quit IRC
[08:59:22] *** annlewis has quit IRC
[09:00:18] <opus_> I either fundamentally misunderstand something, or i've reach the limit of technologies
[09:00:23] <opus_> Logicgate: yeah I
[09:00:34] *** Reskp has quit IRC
[09:00:45] <opus_> Logicgate: yeah I'm tempted to throw up a node.js micro instance with scoket.io just to send "reload table"
[09:01:10] *** one0one has quit IRC
[09:01:18] *** frkout_ has joined #angularjs
[09:01:31] <Logicgate> Do not use Socket.io.
[09:01:36] <opus_> I can send push notifications, from the chrome dev tools w/ parse.com, but i can't subscribe to anything. apparently pushover.net allows you to dthis with a 5 day trial. i was looking for something to git clone
[09:01:37] <Logicgate> Use SockJS if you're going to do that.
[09:01:46] *** josh-k_ has joined #angularjs
[09:02:13] <opus_> Whats the pro/con SockJS vs socket.io?
[09:02:48] *** lianimator1 has quit IRC
[09:03:27] <Logicgate> Socket.IO is not reliable and very bulky. Resource hungry.
[09:03:27] *** lianimator has joined #angularjs
[09:03:45] <Logicgate> The differences is that Socket.IO has an event emitting system built on top of it and SockJS doesn't.
[09:03:56] <Logicgate> But if you're simply transporting JSON data, who cares.
[09:03:58] <opus_> All I need to do is to tell the "admin" user (currently logged in) to "refresh" the order pages.
[09:04:13] <Logicgate> That's simple enough.
[09:04:14] <opus_> and I need to "push" notify to "reload" when an order is submitted
[09:04:32] <Logicgate> Yeah, easy.
[09:04:36] <opus_> when an order is completed, send the "tell admin to reload orders page"
[09:04:44] *** jagga__ has joined #angularjs
[09:05:03] *** frkout has quit IRC
[09:05:06] *** josh-k has quit IRC
[09:05:11] <opus_> then there is a countdown clock, and reject order, etc functionality on the admin page but thats above my problem
[09:05:14] *** ccohn has joined #angularjs
[09:05:53] <opus_> So investigate SockJS, throw up a small node.js server and subscribe/publish to it via a REST call that upgrades to a websocket?
[09:06:13] <opus_> this only has to scale to 1 admin user
[09:06:15] <Mordecai> this is dumb
[09:06:17] <Logicgate> No need for that opus_
[09:06:31] <Logicgate> Why REST call?
[09:06:39] <gurke_> opus_, why dont you send the new order with the socket?
[09:06:45] <opus_> emit event "reload orders !"
[09:06:47] <Mordecai> how can I propagate factory changes throughout all directives that use it?
[09:06:55] <gurke_> thats gay
[09:06:59] <Mordecai> it should happen already if it's watching it
[09:07:01] <gurke_> why not incoming them instantly
[09:07:02] <opus_> gurke_ , because the data goes to parse.com.
[09:07:03] <Mordecai> what the fudge
[09:07:12] *** ClarusCogitatio has quit IRC
[09:07:13] <opus_> this is a backend free webapp
[09:07:21] <opus_> (except for the SockJS part apparently)
[09:07:32] <Mordecai> heh
[09:07:32] *** fbenoit has joined #angularjs
[09:07:44] <opus_> I'm willing to throw up a small node.js instance to handle just notifications
[09:08:02] <opus_> hell, i guess it would be a great startup idea. i can't believe this isn't a common problem
[09:08:06] <Mordecai> can someone please tell me how to propagate factory changes throughout multiple directives?
[09:08:13] *** SoulBlade has joined #angularjs
[09:08:25] *** mtsr has joined #angularjs
[09:08:33] <opus_> factory changes should be singleton throughout your app? it should "just work"?
[09:08:40] <Mordecai> it "doesn't"
[09:09:05] <Mordecai> on an event fired in one directive (note i'm not using angular events, flash player event)
[09:09:20] <Mordecai> it calls a method on the factory, the factory updates itself everything in the background works as intended
[09:09:26] <Mordecai> however, the UI is NEVER updated
[09:09:35] <opus_> the controller is messed up then
[09:09:39] <Mordecai> no controller.
[09:09:48] *** ccohn has quit IRC
[09:09:48] <Logicgate> ?
[09:09:50] *** rosieres has quit IRC
[09:10:01] <opus_> your probably coping by value and not by reference somehow
[09:10:08] *** ManBearPixel has quit IRC
[09:10:14] <opus_> and its decoupling from your service
[09:10:15] <Mordecai> it's mostly just reliant on directives.
[09:10:23] *** junmin has quit IRC
[09:10:44] *** ClarusCogitatio has joined #angularjs
[09:10:47] *** ManBearPixel has joined #angularjs
[09:11:18] <Logicgate> opus_, you need a SockJS example?
[09:11:22] *** wallerdev has joined #angularjs
[09:11:23] <Logicgate> client server?
[09:11:37] <Mordecai> opus_, factory.property = factory.list[factory.listIndex];
[09:11:38] <Mordecai> nah
[09:11:51] <opus_> Logicgate, just doing some research. thanks a lot btw
[09:11:59] <Logicgate> SockJS is horizontally scallable too.
[09:12:09] *** HelperW has joined #angularjs
[09:12:22] <Logicgate> I've had it running on 40 clusters handling upwards of 20k connections not even sweating.
[09:12:22] *** mchammer has joined #angularjs
[09:12:25] <narutimateum> A + B + C = ABC when a changes ABC changes too..how ?
[09:12:38] *** laurensclaessen has joined #angularjs
[09:12:47] *** patricka_ has joined #angularjs
[09:12:53] <narutimateum> A + B + C = X when A changes X changes too..how ?
[09:13:00] *** patrickarlt has quit IRC
[09:13:05] *** SoulBlade has quit IRC
[09:13:09] *** edy has joined #angularjs
[09:13:21] *** gazbond has joined #angularjs
[09:13:22] <Mordecai> narutimateum, depends on what you're doing
[09:13:30] *** ssawickik has joined #angularjs
[09:13:38] *** ril has quit IRC
[09:14:17] <narutimateum> Mordecai: how?
[09:14:47] <narutimateum> Mordecai: http://i.imgur.com/88EItK3.png
[09:14:47] <Mordecai> well, how you're setting A + B + C = X and where
[09:15:17] *** thomastuts has joined #angularjs
[09:15:20] <opus_> Logicgate it'd be freakin awesome if I could load the server into a browser.
[09:15:26] <Mordecai> onChange(a,b,c, function () { do rendering })
[09:15:31] <Mordecai> is mostly how i can explain it easiest
[09:15:31] <opus_> Logicgate I'm trying to be 100% serverless
[09:15:53] <Mordecai> narutimateum, hopefully that helps you understand in the most simplest of ways xD
[09:15:59] <narutimateum> hmm
[09:16:10] *** Grokling_ has joined #angularjs
[09:16:17] <Mordecai> however it's not what is happening but only a way to explain it in simple terms
[09:16:52] <opus_> Logicgate: HA! I just typed all the demo stuff into chrome dev tools and got it to work
[09:17:18] *** MaxV has quit IRC
[09:17:50] *** wallerdev has quit IRC
[09:17:58] *** iamvfl has left #angularjs
[09:18:40] *** categoryzero has joined #angularjs
[09:19:51] *** StryKaizer has joined #angularjs
[09:20:48] <opus_> now I just need to wrap sockjs into a service, throw up some bootstrap template and charge $4.99/month for push notification to the browser
[09:21:12] *** sk87 has joined #angularjs
[09:21:20] *** saucey has joined #angularjs
[09:21:58] *** rosieres has joined #angularjs
[09:22:00] <Logicgate> opus_, nice lol.
[09:22:29] *** ckboii89 has quit IRC
[09:22:37] *** numenor has joined #angularjs
[09:24:37] *** asher^ has quit IRC
[09:24:46] *** fbenoit has quit IRC
[09:26:02] *** jstroem has quit IRC
[09:26:36] *** jstroem has joined #angularjs
[09:26:59] <saucey> hey
[09:27:10] <saucey> need a lil help with an api i kind of built
[09:27:14] *** monir has joined #angularjs
[09:27:14] *** jonr22 has joined #angularjs
[09:27:31] <opus_> whats the issue
[09:27:35] <saucey> ive done user auth but i need to do some validation checks on every page across my app
[09:27:45] <saucey> il paste my code
[09:27:49] <opus_> field validation?
[09:28:06] <saucey> well auth checks
[09:28:07] *** jstroem_ has joined #angularjs
[09:28:29] <narutimateum> i have ng repeats that each row have day and quantity... these numbers results in total.. how do i change day or quantity in these rows and recalculate the total?
[09:28:36] <saucey> i already post a token to the headers and getting my server to check if the token exists with the database
[09:28:51] *** jstroem has quit IRC
[09:29:04] *** nattonerd has joined #angularjs
[09:29:08] <saucey> but i need to check across the app as the users goes through the routes that he actually has access
[09:29:25] *** fbenoit has joined #angularjs
[09:29:48] <opus_> $rootScope.isUserValid = true on login
[09:30:01] *** jsheely|2 has joined #angularjs
[09:30:09] <opus_> then each page that requires userisvalid is checked or re-directed $state.go('login');
[09:30:15] <opus_> for ui-router
[09:30:36] <saucey> heres my request script
[09:30:37] *** marshall_ has joined #angularjs
[09:30:39] <opus_> i could be wrong, my brain is toasted
[09:30:47] <saucey> http://laravel.io/bin/0e4m4
[09:30:53] *** nuizzy has joined #angularjs
[09:31:26] <saucey> heres my controller http://laravel.io/bin/jQyzk
[09:31:39] *** avree has joined #angularjs
[09:31:42] *** rhp has quit IRC
[09:31:47] *** avree has quit IRC
[09:32:02] <saucey> im not quiet sure how to enhance on this, like where do i create the $rootScope... etc....
[09:32:29] *** TyrfingMjolnir has quit IRC
[09:32:39] *** jonr22 has quit IRC
[09:32:48] <deebo> hmm when setting request and response transformers via properties on $http, do they completely override everything?
[09:32:57] *** tkimmel has joined #angularjs
[09:33:04] *** canthugeverycat has joined #angularjs
[09:33:18] *** Evanion has joined #angularjs
[09:33:52] *** jsheely has quit IRC
[09:34:01] *** kurylo has quit IRC
[09:34:21] *** jaydubya has joined #angularjs
[09:34:25] <canthugeverycat> Hello guys. I have an issue with $resource PUT requests. I am making calls to an api, both GET and POST calls work, but the PUT(update) gives me a 404 with an OPTIONS method sent. Here's a plunk in case somebody wants to see http://plnkr.co/edit/gJV4otD0XGKoQWOq3PdK
[09:34:26] *** TyrfingMjolnir has joined #angularjs
[09:35:06] *** joshontheweb has quit IRC
[09:35:13] <saucey> opus, can you see what ive done?
[09:35:23] *** cam_y has quit IRC
[09:35:48] *** nuizzy has quit IRC
[09:36:05] *** goodenough has quit IRC
[09:36:08] *** instence has joined #angularjs
[09:36:47] *** quarnstro has joined #angularjs
[09:36:52] *** goodenough has joined #angularjs
[09:37:08] *** carlosmantilla has joined #angularjs
[09:37:37] *** instence_ has quit IRC
[09:38:06] *** tkimmel has quit IRC
[09:38:20] <deebo> hmm, is $httpProvider per module since the suggestion is to configure it in module.config?
[09:38:38] *** tech2 has quit IRC
[09:38:41] *** lianimator1 has joined #angularjs
[09:38:58] *** jaydubya has quit IRC
[09:39:00] *** josh-k_ has quit IRC
[09:39:32] *** josh-k has joined #angularjs
[09:39:41] <saucey> excuse me ?
[09:40:23] *** favetelinguis has quit IRC
[09:40:29] *** AciD`` has joined #angularjs
[09:40:37] <canthugeverycat> I dont understand the question
[09:40:50] *** favetelinguis has joined #angularjs
[09:40:53] *** Miphe has quit IRC
[09:41:14] *** MrBaboon has joined #angularjs
[09:41:28] <saucey> the provider get injected into the module/controller, is that the right logic
[09:41:37] *** canthugallthecat has joined #angularjs
[09:41:40] *** lianimator has quit IRC
[09:41:47] *** MaxV has joined #angularjs
[09:42:29] <saucey> is this my provider http://laravel.io/bin/yGEJL
[09:42:31] <saucey> ?
[09:42:58] <canthugallthecat> Hey guys, I have an issue with sending PUT requests via $resource. I am able to send GET and POST properly, but PUT gives me a 404 with an OPTIONS method being sent. Could anyone spare some time to check it out please ? http://plnkr.co/edit/gJV4otD0XGKoQWOq3PdK
[09:42:59] <saucey> and this here in my module http://laravel.io/bin/jQyzk ?
[09:43:06] <saucey> is that correct?
[09:43:27] <saucey> and the provider injects the module, is that the right logic?
[09:43:42] *** jillesme has joined #angularjs
[09:43:42] *** jillesme has joined #angularjs
[09:43:48] *** josh-k has quit IRC
[09:44:30] *** ssawickik has quit IRC
[09:44:46] *** red_horned_rihno has joined #angularjs
[09:45:12] *** CamonZ has joined #angularjs
[09:45:14] *** favetelinguis has quit IRC
[09:45:35] *** phuh has quit IRC
[09:45:54] *** favetelinguis has joined #angularjs
[09:46:04] *** lianimator1 has quit IRC
[09:46:08] *** phuh has joined #angularjs
[09:46:37] *** frkout_ has quit IRC
[09:46:41] *** sikor_sxe has joined #angularjs
[09:47:04] *** frkout has joined #angularjs
[09:47:17] <canthugallthecat> Hey guys, I have an issue with sending PUT requests via $resource. I am able to send GET and POST properly, but PUT gives me a 404 with an OPTIONS method being sent. Could anyone spare some time to check it out please ? http://plnkr.co/edit/gJV4otD0XGKoQWOq3PdK
[09:47:34] *** kas84 has joined #angularjs
[09:47:46] *** mbenadda_ has joined #angularjs
[09:48:49] *** dazziola has joined #angularjs
[09:48:58] *** iqbalkhan has quit IRC
[09:49:05] *** marshall_ has quit IRC
[09:49:09] <dazziola> Hi all, does anyone know how to pass a variable through to a resource in a service?
[09:49:46] <dazziola> Eg, I have an API end point that accepts offset as a parameter and need to step by 15 to carry out server side pagination
[09:49:47] *** TheAceOfHearts has quit IRC
[09:49:55] *** MaxV has quit IRC
[09:53:22] *** dreambox has joined #angularjs
[09:54:19] *** night-owl is now known as zz_night-owl
[09:54:22] *** pipoo has joined #angularjs
[09:54:30] *** thirdknife_ has quit IRC
[09:54:38] *** annlewis has joined #angularjs
[09:55:52] *** powaa has joined #angularjs
[09:55:52] *** intellix has joined #angularjs
[09:56:07] *** Miphe has joined #angularjs
[09:56:16] *** ozooner__ has joined #angularjs
[09:56:42] *** darrin has joined #angularjs
[09:56:43] *** gurke_ has quit IRC
[09:57:07] *** gazbond has quit IRC
[09:57:57] *** dreambox has quit IRC
[09:58:36] *** monir has quit IRC
[09:58:56] *** pipoo has quit IRC
[09:59:21] *** annlewis has quit IRC
[10:00:39] *** grantfunke__ has quit IRC
[10:01:11] *** m8 has joined #angularjs
[10:02:00] *** sigurding has quit IRC
[10:02:25] *** azyr has quit IRC
[10:03:25] *** grantfunke__ has joined #angularjs
[10:03:43] *** ozooner__ has quit IRC
[10:03:44] *** ozooner has joined #angularjs
[10:03:47] *** m8 has quit IRC
[10:03:59] *** Sjimi has quit IRC
[10:04:33] *** noiserocker has joined #angularjs
[10:05:33] *** Alina-malina has quit IRC
[10:05:54] *** Alina-malina has joined #angularjs
[10:06:02] *** ccohn has joined #angularjs
[10:06:21] *** Skrypter has quit IRC
[10:06:49] *** Sjimi has joined #angularjs
[10:07:19] *** motionman has quit IRC
[10:07:29] *** m8 has joined #angularjs
[10:07:53] *** klaut has joined #angularjs
[10:08:00] *** grantfunke__ has quit IRC
[10:08:53] *** TyrfingMjolnir has quit IRC
[10:09:18] *** shaisnir has joined #angularjs
[10:09:50] *** Juanchito has joined #angularjs
[10:09:52] *** TyrfingMjolnir has joined #angularjs
[10:10:02] *** shaisnir has quit IRC
[10:10:18] <m8> In angular make sense use an other template engine for template to string compilation? or is better to render an angular template in the dom and put the html in a string?
[10:10:18] *** DLSteve has joined #angularjs
[10:10:28] *** Xethron has quit IRC
[10:10:32] *** red_horned_rihno has quit IRC
[10:10:32] *** ccohn has quit IRC
[10:11:17] *** powaa has quit IRC
[10:11:23] *** iqbalkhan has joined #angularjs
[10:11:38] *** Skrypter has joined #angularjs
[10:11:46] *** TyrfingMjolnir has quit IRC
[10:12:05] *** lolmaus has joined #angularjs
[10:12:16] *** powaa has joined #angularjs
[10:12:31] *** Xethron has joined #angularjs
[10:12:35] *** s3shs_ has joined #angularjs
[10:12:39] *** TyrfingMjolnir has joined #angularjs
[10:12:48] <lolmaus> I've got jQuery 2.11 included before Angular, but `$element.find()` produces `undefined is not a function`. How do i resolve this?
[10:13:04] <noiserocker> somebody here who has used PhoneGap before?
[10:13:44] *** AndreiCurelaru has quit IRC
[10:14:00] *** wallerdev has joined #angularjs
[10:15:16] *** dazziola has quit IRC
[10:15:22] *** s3shs has quit IRC
[10:16:02] *** arkin has joined #angularjs
[10:16:02] *** arkin has joined #angularjs
[10:16:31] *** edy has quit IRC
[10:17:39] *** josh-k has joined #angularjs
[10:18:09] *** LeBlaaanc has quit IRC
[10:18:42] *** tangorri has joined #angularjs
[10:18:50] <numenor> lolmaus : should it be angular.element ?
[10:18:57] *** wallerdev has quit IRC
[10:19:07] *** s3shs has joined #angularjs
[10:19:24] *** thirdknife_ has joined #angularjs
[10:19:25] *** matthoiland has joined #angularjs
[10:19:28] <numenor> lolmaus : try angular.element.find()
[10:19:50] *** sigurding has joined #angularjs
[10:19:54] <lolmaus> numenor: $element is an argument from a callback. It currently seems to be a jqLite object. Docs say that if i include jQuery, it will be a jQuery object, but it's not.
[10:20:10] <numenor> lolmaus : Ok
[10:21:40] *** gurke_ has joined #angularjs
[10:22:00] <lolmaus> numenor: nevermind, i found a bug in my code. Now it works fine.
[10:22:41] *** s3shs_ has quit IRC
[10:22:42] *** rburns has quit IRC
[10:23:00] *** rburns has joined #angularjs
[10:23:00] *** fedenunez has joined #angularjs
[10:23:34] *** matthoiland has quit IRC
[10:23:53] *** ClarusCogitatio has quit IRC
[10:24:06] *** StryKaizer has quit IRC
[10:24:21] *** ClarusCogitatio has joined #angularjs
[10:24:26] *** ssawickik has joined #angularjs
[10:26:37] <saucey> what do you guy user app.run() for?
[10:26:48] <saucey> is this like some kind of filter for controllers
[10:27:06] *** alexw has joined #angularjs
[10:27:16] *** uru|away is now known as uru
[10:27:56] *** moritzs has joined #angularjs
[10:28:02] *** rburns_ has joined #angularjs
[10:28:07] *** charuru has quit IRC
[10:29:07] *** thirdknife_ has quit IRC
[10:29:16] *** rburns has quit IRC
[10:29:16] *** Alina-malina has quit IRC
[10:29:32] *** Alina-malina has joined #angularjs
[10:29:38] *** Alina-malina has joined #angularjs
[10:30:46] *** ingsoc has joined #angularjs
[10:31:35] *** alexw has quit IRC
[10:32:38] *** Somatt_wrk_ has quit IRC
[10:32:44] *** jtimon has joined #angularjs
[10:32:44] *** Somatt_wrk has joined #angularjs
[10:32:55] *** Yankie has joined #angularjs
[10:33:11] *** molik has joined #angularjs
[10:33:30] *** emmesswhy has joined #angularjs
[10:33:57] *** powaa has quit IRC
[10:34:12] <elmcrest> Can I detect the history.back() event somehow?
[10:34:15] *** platonic has joined #angularjs
[10:34:16] *** bengillies has joined #angularjs
[10:34:28] *** JohnBat26 has joined #angularjs
[10:34:31] <elmcrest> I'd like to change a class before back() get's called ... because of a different animation
[10:34:32] *** lite_ has joined #angularjs
[10:34:45] *** molikas has quit IRC
[10:35:00] <elmcrest> or actually I should say when back() gets called but before it gets executed
[10:35:02] <arkin> elmcrest: bind the click event on the element, and trigger the back in javascript
[10:35:13] <arkin> or you mean the actual browser back button?
[10:35:21] <elmcrest> arkin: yes browser
[10:35:46] <arkin> elmcrest: well an angular app does use html5 pushstate's so i'd imagine its not too complicated
[10:35:50] <elmcrest> arkin: I found several solutions how to bind the back function to some element, but that doesn't help
[10:35:52] *** dharmit has quit IRC
[10:35:53] *** dharmit has joined #angularjs
[10:35:59] <arkin> elmcrest: http://stackoverflow.com/questions/15813850/detect-history-back-using-angular
[10:36:02] *** edy has joined #angularjs
[10:36:17] <elmcrest> arkin: nice, thx
[10:36:29] *** MalteJ has quit IRC
[10:36:29] *** MalteJ has joined #angularjs
[10:36:42] *** numenor has quit IRC
[10:36:42] *** numenor has joined #angularjs
[10:36:43] <deweydb> lol dafuck, somehow i've managed to make my app crash chrome reliably
[10:36:45] <elmcrest> yeah the "detect" word came to my mind while writing here ... didn't google that before :D ... rubber duck strikes again ^^
[10:36:46] <arkin> elmcrest: its a strating point but basically you'll have to keep a list of the locations browsed, then if the new location is the old location, change the animation... ?
[10:37:04] *** noiserocker has quit IRC
[10:37:04] *** noiserocker has joined #angularjs
[10:37:08] *** Juanchito has quit IRC
[10:37:08] *** Juanchito has joined #angularjs
[10:37:16] <elmcrest> arkin: ok I'll try my luck, thx
[10:38:22] <saucey> hey guys what method do i use to check for user auth on ever $routeProvider
[10:38:23] *** Guest70 has joined #angularjs
[10:38:24] <saucey> ?
[10:38:52] <arkin> saucey: I use ui-router so it may be different but.. $rootScope.$on("$stateChangeStart", function(event, toState, toParams, fromState, fromParams){
[10:39:02] *** intellix has quit IRC
[10:39:06] *** platonic has quit IRC
[10:39:10] <arkin> it is different to normal angular*
[10:39:24] <saucey> arkin ok fill me a little
[10:39:32] <saucey> i have this ...
[10:39:46] *** juampy has joined #angularjs
[10:39:53] <saucey> http://laravel.io/bin/xKNn3
[10:40:04] <deebo> i have a number (unix timestamp) in my scope, i use it via ng-model, is there a way i can automatically transform it into a Date()? (server sends unix time, javascript should use dates)
[10:40:20] <deebo> adding a $formatter didnt seem to help
[10:40:21] <saucey> how would i initalize my check within this please could you have a look
[10:40:22] *** lite_ has quit IRC
[10:40:27] *** JohnBat26 has quit IRC
[10:41:21] <jagga__> I have an ngDisabled directive on a glyphicon button
[10:41:23] <jagga__> ng-disabled="offset < 1"
[10:41:26] <arkin> saucey: the first answer covers it, http://stackoverflow.com/questions/20969835/angularjs-login-and-authentication-in-each-route-and-controller
[10:41:27] *** juampy_ has joined #angularjs
[10:41:31] <jagga__> now $scope.offset is definetly less than 1
[10:41:36] <jagga__> but the button does not get disabled
[10:41:40] <jagga__> It is still perfectly clickable
[10:41:40] *** Alina-malina has quit IRC
[10:41:50] <jagga__> this is the full button declaration : <a ng-click="prevPage()" ng-disabled="offset < 1" class="glyphicon glyphicon-arrow-left btn-lg"></a>
[10:41:52] *** Iravan has quit IRC
[10:42:05] <arkin> jagga__: 1 or '1' ?
[10:42:06] <jagga__> Is there something wrong I'm doing? Am I not declaring the control as a proper button on which ngDisabled works on.?
[10:42:12] *** Alina-malina has joined #angularjs
[10:42:14] <jagga__> I've set it to 1
[10:42:18] <jagga__> should it be '1'?
[10:42:21] <arkin> no no
[10:42:37] <arkin> keep is as an integer, sec let me try what you have
[10:42:51] <jagga__> hmm actually... the offset is being set from a $route.current.params
[10:42:54] <jagga__> and that's not returning an int
[10:42:56] <jagga__> that's probably why
[10:43:01] <jagga__> I probably need to parseInt it
[10:43:02] <jagga__> :E
[10:43:21] <arkin> jagga__: hehe, there you go. your logic works for me ng-disabled="test < 1")
[10:43:44] <jagga__> Ok, it's not that
[10:43:47] <jagga__> it still doesn't work :E
[10:43:52] *** tarnus has joined #angularjs
[10:44:32] <arkin> jagga__: tried displaying offset??
[10:44:34] *** sheerun has joined #angularjs
[10:44:37] *** juampy has quit IRC
[10:44:39] <jagga__> will do that now
[10:44:47] <arkin> plonker thats the first thing you do
[10:44:48] <arkin> :D
[10:45:02] <jagga__> Displays perfectly wel
[10:45:09] *** azizur has joined #angularjs
[10:45:14] <jagga__> well I didn't display it {{offset}} because I was already checking it in the debugger
[10:45:20] <jagga__> the debugger shows the correct value
[10:45:21] <arkin> ah ok
[10:45:36] *** phuh has quit IRC
[10:45:42] *** klaut has quit IRC
[10:45:44] <arkin> jagga__: thinking about it more, turn the <a> into a <button>
[10:45:46] <jagga__> I think it must be the type of button or something
[10:45:47] <jagga__> ye
[10:45:59] <arkin> lol
[10:46:10] *** phuh has joined #angularjs
[10:46:16] <jagga__> yep
[10:46:17] <jagga__> that fixes it
[10:46:22] <jagga__> that's what I originally thought
[10:46:26] <jagga__> oh well, we got there in the end
[10:47:20] *** intellix has joined #angularjs
[10:47:23] <arkin> yea
[10:47:24] <jagga__> current styling makes em look proper ugly though :p http://i.imgur.com/U1A6yDj.png
[10:47:27] *** juampy_ is now known as juampy
[10:47:44] *** Grokling_ has quit IRC
[10:47:47] <jagga__> that's the reason I didn't have <button> but <a>
[10:47:55] <jagga__> but it's okay, this is just a prototype
[10:47:59] <jagga__> I'll worry about styling later :E
[10:48:42] *** tripu has quit IRC
[10:48:43] *** tarnus has quit IRC
[10:49:06] *** marr has joined #angularjs
[10:49:12] <saucey> arkin thanks for the link very helpful
[10:49:14] *** tech2 has joined #angularjs
[10:49:24] *** josh-k_ has joined #angularjs
[10:50:18] *** Alina-malina has quit IRC
[10:50:42] *** jmverges has quit IRC
[10:51:59] *** azyr has joined #angularjs
[10:52:05] *** TyrfingMjolnir has quit IRC
[10:52:06] *** Sebastien-L has joined #angularjs
[10:52:27] *** AngularUI has joined #angularjs
[10:52:27] <AngularUI> [ng-grid] freein opened pull request #2003: Correct demo beacuse of exception (master...demoPatch) http://git.io/bxqfEQ
[10:52:27] *** AngularUI has left #angularjs
[10:52:44] *** josh-k has quit IRC
[10:53:17] *** DLSteve has quit IRC
[10:54:34] *** Guest70 has quit IRC
[10:54:38] *** annlewis has joined #angularjs
[10:54:39] *** molik has quit IRC
[10:54:59] *** molik has joined #angularjs
[10:55:15] *** Sjimi has quit IRC
[10:56:22] *** jmverges has joined #angularjs
[10:56:42] *** aendrew has joined #angularjs
[10:58:02] *** MaxV has joined #angularjs
[10:58:02] *** rburns_ has quit IRC
[10:58:14] *** rburns has joined #angularjs
[10:58:34] *** MaxV has quit IRC
[10:59:02] *** annlewis has quit IRC
[10:59:23] *** ozooner_ has joined #angularjs
[10:59:34] *** rtpg has quit IRC
[10:59:48] *** dreambox has joined #angularjs
[11:00:11] *** frkout_ has joined #angularjs
[11:00:30] *** ozooner has quit IRC
[11:00:47] *** cannap has joined #angularjs
[11:01:17] *** otisZart has joined #angularjs
[11:01:20] *** Click66 has quit IRC
[11:01:38] *** Click66 has joined #angularjs
[11:02:02] *** goodenough has quit IRC
[11:02:28] <arkin> saucey: no problem :)
[11:02:39] *** ipalaus has joined #angularjs
[11:02:54] <arkin> jagga__: you can use ng-class to add a disabled class to the link i think its just "disabled"
[11:03:04] *** __djo__ has joined #angularjs
[11:03:09] *** anjumkaiser has quit IRC
[11:03:24] *** cebor has quit IRC
[11:03:45] *** frkout has quit IRC
[11:04:03] *** grantfunke__ has joined #angularjs
[11:04:30] *** MaxV has joined #angularjs
[11:04:41] *** dreambox has quit IRC
[11:05:21] *** grantfunke__ has quit IRC
[11:05:22] *** D-Boy has quit IRC
[11:05:24] *** cebor has joined #angularjs
[11:05:24] *** ssawickik has quit IRC
[11:05:28] *** D-Boy has joined #angularjs
[11:05:34] <jagga__> o
[11:05:34] <jagga__> h
[11:05:57] *** grantfunke__ has joined #angularjs
[11:06:09] <jagga__> so it would be like <a class="bla" ng-class="disabled" ...
[11:06:16] <jagga__> and it should still allow the ng-disabled to work
[11:06:50] *** ccohn has joined #angularjs
[11:07:37] *** MaxV has quit IRC
[11:08:12] *** MaxV has joined #angularjs
[11:08:36] *** iqbalkhan has quit IRC
[11:09:04] *** SoulBlade has joined #angularjs
[11:09:51] *** sk87 has quit IRC
[11:10:23] *** grantfunke__ has quit IRC
[11:10:42] *** powaa has joined #angularjs
[11:11:15] <arkin> jagga__: I think its more like ng-class="{'ng-disabled': offset < 1}"
[11:11:27] <jagga__> alright
[11:11:31] <jagga__> i'll give that a try cheers
[11:11:35] *** MaxV has quit IRC
[11:11:46] <arkin> jagga__: np, more documentation @ https://docs.angularjs.org/api/ng/directive/ngClass
[11:11:53] *** ccohn has quit IRC
[11:12:02] <arkin> jagga__: and shit, I meant just disabled not ng-disabled
[11:12:07] *** greengriminal has joined #angularjs
[11:12:07] *** callmekatootie has joined #angularjs
[11:12:17] *** sk87 has joined #angularjs
[11:12:39] <jagga__> so ng-class="{'disabled' : offset < 1}"
[11:12:40] *** MaxV has joined #angularjs
[11:12:49] <jagga__> only reason I tried using the ng-disabled because of IE8
[11:12:58] <jagga__> but that's not aproblem, I dont think we need to support IE8 anymore
[11:13:11] *** SoulBlade has quit IRC
[11:13:37] *** jdj_dk has quit IRC
[11:14:09] *** MaxV has quit IRC
[11:14:09] *** __djo__ has left #angularjs
[11:14:28] <arkin> yea
[11:14:45] *** wallerdev has joined #angularjs
[11:15:29] *** tangorri has quit IRC
[11:15:42] *** tangorri has joined #angularjs
[11:15:52] *** Jae has quit IRC
[11:15:57] *** laurensclaessen has quit IRC
[11:17:01] *** jdj_dk has joined #angularjs
[11:17:53] *** laurensclaessen has joined #angularjs
[11:18:38] *** iamvfl has joined #angularjs
[11:19:31] *** wallerdev has quit IRC
[11:20:24] *** nattonerd has quit IRC
[11:20:52] *** ozooner__ has joined #angularjs
[11:20:53] *** ozooner_ has quit IRC
[11:21:38] *** frankblizzar has joined #angularjs
[11:21:52] *** tkimmel has joined #angularjs
[11:23:22] *** jaydubya has joined #angularjs
[11:23:25] *** motionman has joined #angularjs
[11:25:37] *** klaut has joined #angularjs
[11:26:31] *** tkimmel has quit IRC
[11:27:29] *** SmartYii has joined #angularjs
[11:27:39] *** rburns has quit IRC
[11:27:54] *** jaydubya has quit IRC
[11:28:02] *** Manaus has joined #angularjs
[11:29:05] *** speakingcode has quit IRC
[11:29:16] *** Sjimi has joined #angularjs
[11:29:34] <SmartYii> Hello everyone
[11:30:05] *** hugofirth has joined #angularjs
[11:30:52] *** linus_ has joined #angularjs
[11:31:14] <linus_> Hey guys, I'm having a problem with watches and was wondering if any of you could help me out
[11:31:17] <SmartYii> I'm new to Angular and I've been trying to find a way that when a input becomes valid to call an ngClick or an angular-ui-state (go to the next state) like behavior. My googeling has been unsuccessful
[11:31:20] <linus_> i've outlined it here:
[11:31:27] <linus_> https://stackoverflow.com/questions/26732785/angular-watch-doesnt-get-triggered
[11:31:54] *** foofoobar has quit IRC
[11:33:20] *** iamvfl has quit IRC
[11:33:28] *** Zeioth has joined #angularjs
[11:34:59] *** intellix has quit IRC
[11:35:02] *** powaa has quit IRC
[11:35:44] <tangorri> hmm in yo angular by default, imaginemin is supposed to change the img src automatically ?
[11:36:25] *** rtpg has joined #angularjs
[11:39:00] *** anjumkaiser has joined #angularjs
[11:39:11] *** DLSteve has joined #angularjs
[11:40:10] *** calmbird has joined #angularjs
[11:40:17] *** phzon has joined #angularjs
[11:40:54] *** monir has joined #angularjs
[11:40:55] *** Aliks has quit IRC
[11:41:00] *** rtpg has quit IRC
[11:42:09] *** nerder has joined #angularjs
[11:42:19] <nerder> hello
[11:42:46] *** Left_Turn has joined #angularjs
[11:43:44] <SmartYii> hi
[11:45:38] *** phuh has quit IRC
[11:45:49] <nerder> https://gist.github.com/anonymous/83156789ee1a6a8c5ab2 anybody can help me with this?
[11:45:59] *** klaut has quit IRC
[11:46:11] *** phuh has joined #angularjs
[11:46:15] <nerder> i have to question, the first one is something like a curiosity
[11:46:39] <nerder> the code that i'm writing is "angularjs style"?
[11:47:04] <nerder> or i can do better to use the power of angular
[11:47:17] *** azizur has quit IRC
[11:47:26] *** intellix has joined #angularjs
[11:47:50] *** gurke_ has quit IRC
[11:47:56] *** speakingcode has joined #angularjs
[11:47:57] *** sk87 has quit IRC
[11:48:19] <nerder> the second question is that this dosent work as expected because, i got an "undefined" when i use "var craftedUrl = "http://127.0.0.1/tamtam-rest-dev/api/geocode/?address="+$scope.newTrips[0];"
[11:48:39] *** StryKaizer has joined #angularjs
[11:51:17] *** lite_ has joined #angularjs
[11:51:19] *** basiclaser_ has joined #angularjs
[11:52:35] *** azyr has quit IRC
[11:53:24] *** klaut has joined #angularjs
[11:54:03] *** favetelinguis has quit IRC
[11:54:29] *** favetelinguis has joined #angularjs
[11:54:40] *** rburns has joined #angularjs
[11:55:17] *** sk87 has joined #angularjs
[11:55:20] *** lite_ has quit IRC
[11:55:29] *** azyr has joined #angularjs
[11:56:23] *** ansu has quit IRC
[11:56:42] *** ansu has joined #angularjs
[11:56:47] *** AngularUI has joined #angularjs
[11:56:47] <AngularUI> [ng-grid] sickan90 opened pull request #2004: Update doc on registerRowBuilder (master...doc-update) http://git.io/3Ooctw
[11:56:47] *** AngularUI has left #angularjs
[11:57:09] *** instence_ has joined #angularjs
[11:57:27] *** blomman has quit IRC
[11:57:33] *** MrBaboon has quit IRC
[11:57:39] *** Helzibah has joined #angularjs
[11:58:01] *** instence has quit IRC
[11:58:07] *** klaut has quit IRC
[11:58:11] *** narutimateum2 has joined #angularjs
[11:58:45] *** hugofirth is now known as hugofirth|away
[11:59:02] *** ThomasBeauvais has joined #angularjs
[11:59:04] *** favetelinguis has quit IRC
[11:59:20] *** narutimateum has quit IRC
[11:59:36] *** hugofirth|away has quit IRC
[12:00:00] *** hugofirth has joined #angularjs
[12:00:25] *** ome has joined #angularjs
[12:00:28] *** ThomasBeauvais has quit IRC
[12:00:32] *** hugofirth has quit IRC
[12:01:12] *** Noeble has quit IRC
[12:01:37] *** frkout_ has quit IRC
[12:01:38] *** ThomasBeauvais has joined #angularjs
[12:02:26] *** ozooner has joined #angularjs
[12:02:39] *** ozooner__ has quit IRC
[12:02:43] *** frkout has joined #angularjs
[12:02:47] *** frkout has quit IRC
[12:02:54] *** frkout has joined #angularjs
[12:03:34] *** kephu has joined #angularjs
[12:03:38] <kephu> hi
[12:03:57] *** davi has joined #angularjs
[12:03:58] *** davi has joined #angularjs
[12:04:02] *** jaznow has joined #angularjs
[12:04:04] *** frkout has quit IRC
[12:04:25] <kephu> is there any way I can use $http to get a file? More specifically, I'm trying to access an url that provides a file for download. I see it's in the response, but it doesn't get downloaded
[12:04:35] *** Fire-Dragon-DoL has joined #angularjs
[12:05:24] *** juampy has quit IRC
[12:05:43] *** juampy has joined #angularjs
[12:05:49] *** jtimon has quit IRC
[12:06:22] *** Will_ has joined #angularjs
[12:06:29] *** sheerun has quit IRC
[12:06:48] *** sheerun has joined #angularjs
[12:06:55] <Will_> hey can anyone explain me two way binding???
[12:06:57] *** carlosmantilla has quit IRC
[12:07:03] *** grantfunke__ has joined #angularjs
[12:07:12] *** Will_ has left #angularjs
[12:07:34] *** ccohn has joined #angularjs
[12:07:52] *** fedenunez1 has joined #angularjs
[12:08:19] *** matthoiland has joined #angularjs
[12:08:23] *** Sjimi has quit IRC
[12:08:23] *** jaydubya has joined #angularjs
[12:08:35] *** MrBaboon has joined #angularjs
[12:08:49] *** dmra has joined #angularjs
[12:09:18] *** hugofirth has joined #angularjs
[12:09:27] <frankblizzar> Is there a good reason why everyone inclunding myself seems to be using factories instead of services. asking for a friend .. :D
[12:10:00] *** prem has joined #angularjs
[12:10:03] *** Foxandxss has joined #angularjs
[12:10:28] *** foofoobar has joined #angularjs
[12:10:44] *** fedenunez has quit IRC
[12:10:50] *** sigurding has quit IRC
[12:11:20] *** laurensclaessen has quit IRC
[12:11:31] *** grantfunke__ has quit IRC
[12:12:10] *** laurensclaessen has joined #angularjs
[12:12:19] *** prem has left #angularjs
[12:12:21] *** ccohn has quit IRC
[12:12:52] *** matthoiland has quit IRC
[12:13:29] <otisZart> Hello, I am learning angular so please dont stub me ... I'd like to know why to use ng-src instead of src in a <img> tag?
[12:13:51] *** laurensclaessen has quit IRC
[12:13:58] *** edzez_ has joined #angularjs
[12:14:17] *** monir has quit IRC
[12:14:26] <frankblizzar> otisZart: because your image url properly is dynamic
[12:14:33] <frankblizzar> probably
[12:14:34] *** intellix has quit IRC
[12:14:36] <frankblizzar> i mean
[12:14:37] *** odg has joined #angularjs
[12:14:55] <otisZart> yes frankblizzar , what do you mean, that if (For example) image does not exist, angular deletes the <img> ?
[12:15:10] *** muhammadn has joined #angularjs
[12:15:16] <Foxandxss> otisZart: putting it simple
[12:15:17] <muhammadn> Hi. i have a general question.
[12:15:25] *** odg has quit IRC
[12:15:32] <Foxandxss> if you have an static URL like http://example.com/foo.jpg
[12:15:34] <Foxandxss> you use src
[12:15:38] *** wallerdev has joined #angularjs
[12:15:44] <Foxandxss> but what if you have that URL inside a variable (dynamic)
[12:15:49] <Foxandxss> what you put on src?
[12:15:56] *** siddart has quit IRC
[12:16:01] *** mjs2600 has joined #angularjs
[12:16:01] *** davi has quit IRC
[12:16:08] <muhammadn> I am using booklet.js jquery library and i wanted to extract out the element information via JSON.. can angular be used for data binding?
[12:16:15] <otisZart> Foxandxss and couldnt I do <img src="{{ variable.url }}"> ?
[12:16:23] *** preben_ has joined #angularjs
[12:16:25] <muhammadn> i mean extract out the element information to json
[12:17:13] <Foxandxss> otisZart: yeah, I explained myself badly
[12:17:18] <Foxandxss> you can do that, it will resolve correctly
[12:17:21] *** favetelinguis has joined #angularjs
[12:17:45] <frankblizzar> otisZart: it didn't work reliably for me, better go with ng-src
[12:17:47] *** cbennett has joined #angularjs
[12:17:52] *** juampy has quit IRC
[12:17:57] *** edzez has quit IRC
[12:18:05] *** juampy has joined #angularjs
[12:18:06] * Foxandxss checks the source
[12:18:20] <otisZart> ok its like .. if static use src, if dynamic go with ng-src, otherwise you could have problem?
[12:18:30] *** zly has quit IRC
[12:18:30] *** zly has joined #angularjs
[12:18:34] *** klaut has joined #angularjs
[12:18:38] *** zly has quit IRC
[12:18:45] *** zly has joined #angularjs
[12:18:47] *** arek_at_work has joined #angularjs
[12:18:50] *** zly has quit IRC
[12:18:51] *** zly has joined #angularjs
[12:19:07] *** klaut has quit IRC
[12:19:07] <Foxandxss> the thing is
[12:19:16] <Foxandxss> when you put <img src="{{foo}}">
[12:19:24] *** molik has quit IRC
[12:19:24] <Foxandxss> the browser will load the {{foo}} (literally) image
[12:19:37] <Foxandxss> which obviously it doesn't exist
[12:19:49] *** dalguete has joined #angularjs
[12:19:52] <Foxandxss> then angular loads up, sees that, interpolates that to your correct path
[12:19:56] <Foxandxss> and then load the image
[12:20:17] <otisZart> ah
[12:20:34] <otisZart> Im just reading what you said: Replace the ng-src directive with a plain old src attribute. Using tools such as Firebug, or Chrome's Web Inspector, or inspecting the webserver access logs, confirm that the app is indeed making an extraneous request to /app/%7B%7Bphone.imageUrl%7D%7D (or /app/{{phone.imageUrl}}).
[12:20:39] *** wallerdev has quit IRC
[12:20:50] <Foxandxss> so with ngSrc, the browser won't try to render an image with a invalid value, it will wait to interpolate the value to show the image
[12:21:01] *** molik has joined #angularjs
[12:21:01] <otisZart> thats why they made a ng-src... it was useless instead .. there should have been a reason for :-)
[12:21:03] *** molik has quit IRC
[12:21:07] *** apertoire has joined #angularjs
[12:21:13] <Foxandxss> yeah, does double request, one bad, then one good
[12:21:21] <Foxandxss> with ngSrc, it only does one
[12:21:41] <otisZart> ok thanks... I'm really enjoying angular :-) I'll continue reading
[12:21:59] <Foxandxss> basically, if you're curious enough
[12:22:01] *** siddart has joined #angularjs
[12:22:08] <Foxandxss> ngSrc will observe that expression
[12:22:13] *** MrBaboon has quit IRC
[12:22:14] *** hugofirth has quit IRC
[12:22:18] <Foxandxss> when it gets resolved, it will create the "src" attr for you
[12:22:42] *** katsuki has joined #angularjs
[12:22:43] *** rtpg has joined #angularjs
[12:22:45] <otisZart> ok, kind-of it 'replaces' dom after loading
[12:22:52] <Foxandxss> yeah
[12:22:54] *** katsuki has quit IRC
[12:22:59] <Foxandxss> to let the browser load its stuff
[12:22:59] *** platonic has joined #angularjs
[12:23:13] <Foxandxss> have in mind that Angular replaces a lot of "common" tags
[12:23:21] <Foxandxss> like input, a
[12:23:32] <frankblizzar> hey Foxandxss, now you are I repeat my question: Is there a good reason why everyone inclunding myself seems to be using factories instead of services. asking for a friend .. :D
[12:23:43] *** c00ljs has quit IRC
[12:23:49] <Foxandxss> so you can use them as expected in HTML but behind the scenes, it does angular stuff
[12:23:53] *** anjumkaiser has quit IRC
[12:23:55] *** Click66 has quit IRC
[12:24:08] <Foxandxss> frankblizzar: personal preference
[12:24:20] <Foxandxss> and we are more used to the module pattern (what the factory uses)
[12:24:30] <frankblizzar> Ok I thought its kind of best practice to use factories for singletons
[12:24:42] <Foxandxss> than playing with "this" which can be cumbersome with the scopes
[12:24:50] <Foxandxss> both are singleton frankblizzar
[12:25:02] <frankblizzar> yeah I know hence the question
[12:25:14] <frankblizzar> alright makes sense
[12:25:22] *** moritzs has quit IRC
[12:25:32] <Foxandxss> frankblizzar: a service IS a factory
[12:25:40] *** zbzzn has quit IRC
[12:25:46] <otisZart> ok thanks for your time Foxandxss, I'll sure have to read more about
[12:25:51] *** MaxV has joined #angularjs
[12:25:53] <frankblizzar> in service I would just publish methods on this, while in factory I explicitely return them module like?
[12:25:55] <Foxandxss> when you do .service('foo', ....)
[12:26:03] <Foxandxss> that behind the scenes, creates a new factory
[12:26:24] <Foxandxss> a factory that returns a instantiates a constructor
[12:26:29] *** kephu has quit IRC
[12:26:36] <Foxandxss> otisZart: anytime
[12:26:52] *** darrin has quit IRC
[12:26:57] *** RangerRick has quit IRC
[12:27:15] *** RangerRick has joined #angularjs
[12:27:19] *** platonic has quit IRC
[12:28:15] <frankblizzar> ok, thanks for clarification and background info :D
[12:28:45] <numenor> Oh, I just used a service , I am dumb.
[12:28:48] *** glaksmono_ has quit IRC
[12:28:53] <Foxandxss> frankblizzar: http://angular-tips.com/blog/2013/08/understanding-service-types/
[12:30:45] <frankblizzar> bookmarked in case of future confusion;)
[12:31:10] <Foxandxss> worth the read, took me a while to write (wrote it twice :P)
[12:32:49] *** tarnus has joined #angularjs
[12:33:32] *** MaxV has quit IRC
[12:34:47] <ClearsTheScreen> oh sweet i didn't know ng came natively with decorators.
[12:35:09] *** MaxV has joined #angularjs
[12:35:22] *** rchavik has quit IRC
[12:35:38] *** Latros-OS has quit IRC
[12:35:46] *** aditya_vy has joined #angularjs
[12:36:03] <Foxandxss> ClearsTheScreen: you can decorate directives as well
[12:36:09] *** Sjimi has joined #angularjs
[12:36:22] *** MaxV has quit IRC
[12:36:49] <ClearsTheScreen> nice! that is useful to know. well, thanks for sharing, for the article. :)
[12:37:02] *** advy has quit IRC
[12:37:04] *** marcjs has joined #angularjs
[12:37:10] <Foxandxss> http://angular-tips.com/blog/2013/09/experiment-decorating-directives/
[12:37:27] *** tarnus has quit IRC
[12:37:29] *** Rejected has joined #angularjs
[12:38:29] *** canthugallthecat has quit IRC
[12:38:29] *** canthugeverycat has quit IRC
[12:38:41] *** mmealling has joined #angularjs
[12:39:11] *** Latros-OS has joined #angularjs
[12:40:38] *** mahomaho has joined #angularjs
[12:41:14] *** azizur has joined #angularjs
[12:42:55] *** \du has joined #angularjs
[12:42:55] *** \du has joined #angularjs
[12:42:55] *** Miphe has quit IRC
[12:43:10] *** mokush has joined #angularjs
[12:45:04] *** rchavik has joined #angularjs
[12:45:11] <ClearsTheScreen> nice. :D i like. that'll come in quite handy some day, i'm sure.
[12:45:17] *** blomman has joined #angularjs
[12:45:39] *** phuh has quit IRC
[12:45:48] *** jillesme has quit IRC
[12:46:04] *** phuh has joined #angularjs
[12:46:04] <arek_at_work> Foxandxss: for me more usefull is decoration of controllers
[12:46:58] *** spatialbrew has joined #angularjs
[12:47:03] <arek_at_work> but this blog is really good though
[12:47:40] <Foxandxss> never had the need of doing that, so I never thought about it
[12:47:48] *** qdk has quit IRC
[12:47:53] *** rtpg has quit IRC
[12:48:35] *** dreambox has joined #angularjs
[12:49:01] <arek_at_work> Foxandxss: not sure if its good idea too :)
[12:49:09] <Foxandxss> me either
[12:49:10] <Foxandxss> :P
[12:49:25] *** Owner__ has joined #angularjs
[12:49:47] *** laurensclaessen has joined #angularjs
[12:49:49] *** Owner__ is now known as Guest51567
[12:49:59] <arek_at_work> recently i read complaints on reddit about how often angular break compat :D
[12:50:56] <arek_at_work> Foxandxss: when You think ng2 is to be usable?
[12:51:01] *** cotko has joined #angularjs
[12:51:22] <ClearsTheScreen> yeah, never had the need to decorate controllers. but having persistence decorators around data services sounds like a useful abstraction.
[12:51:38] *** jillesme has joined #angularjs
[12:51:51] <Foxandxss> arek_at_work: reddit is not serious
[12:51:57] <Foxandxss> ng2 well, 2016 I say
[12:51:57] *** intellix has joined #angularjs
[12:52:09] *** mrogne_afk has joined #angularjs
[12:52:22] *** PrinceAMD has joined #angularjs
[12:52:40] *** jillesme has quit IRC
[12:53:00] <arek_at_work> maybe at that time they start to support es6
[12:53:07] *** dreambox has quit IRC
[12:53:09] <arek_at_work> i mean browsers
[12:53:36] *** tangorri has quit IRC
[12:53:50] <Foxandxss> yes
[12:54:07] *** c00ljs has joined #angularjs
[12:54:38] *** annlewis has joined #angularjs
[12:55:36] *** Yankie has quit IRC
[12:55:36] *** shaisnir has joined #angularjs
[12:55:37] *** rchavik has quit IRC
[12:55:53] <nerder> ng-submit is triggered before than ng-click?
[12:55:53] *** rchavik_ has joined #angularjs
[12:55:56] *** sigurding has joined #angularjs
[12:56:11] *** DLSteve has quit IRC
[12:56:28] *** DLSteve has joined #angularjs
[12:56:43] *** pipoo has joined #angularjs
[12:56:50] *** mrogne_afk has left #angularjs
[12:57:04] <greengriminal> Can you make a direct function call like this in angular => <b>{{isAdmin()}}</b> ? the value returned is a boolean.
[12:58:00] <greengriminal> I mean for now in the controller i did => $scope.admin = $scope.isAdmin() and then in the view i call it like <b>{{admin}}</b> but it's just a generic question.
[12:58:23] *** dalguete has quit IRC
[12:59:08] *** annlewis has quit IRC
[12:59:53] *** mmealling has quit IRC
[13:00:00] *** tripu has joined #angularjs
[13:00:52] *** frankblizzar has quit IRC
[13:01:11] *** emmesswhy has quit IRC
[13:01:24] *** pipoo has quit IRC
[13:02:06] *** RedOrangeZ has joined #angularjs
[13:02:15] *** Jae has joined #angularjs
[13:02:44] *** sk87 has quit IRC
[13:02:53] *** pdillinger has joined #angularjs
[13:02:54] *** mostr has joined #angularjs
[13:03:38] <Foxandxss> greengriminal: have you tried?
[13:03:45] *** cheef has joined #angularjs
[13:03:48] *** dsdeiz has quit IRC
[13:04:00] <cheef> hey guys im in a bit of a mess trying to mock a dependency that uses promises
[13:04:11] <cheef> all the examples use jasmine, and im using mocha
[13:04:40] *** gurke_ has joined #angularjs
[13:04:41] <cheef> i need to be able to customise the resolve inside it(...) in order to assert on some logic
[13:04:49] <greengriminal> Foxandxss: Yes i have
[13:04:50] <cheef> how do i go about it?
[13:04:56] <greengriminal> you cannot do {{isAdmin()}}
[13:05:18] *** anjumkaiser has joined #angularjs
[13:05:33] *** jonr22 has joined #angularjs
[13:05:46] <Foxandxss> greengriminal: try harder
[13:06:01] <Foxandxss> cheef: need to see code
[13:06:05] *** quantax- has quit IRC
[13:06:40] <cheef> i'd have to write something psuedo like it
[13:07:05] <Foxandxss> reproduce it
[13:07:13] <cheef> give me a few minutes
[13:07:16] <ClearsTheScreen> plunkr ftw. :)
[13:07:21] *** ankit5990 has joined #angularjs
[13:07:26] *** arek_at_work has quit IRC
[13:07:33] <ankit5990> hello
[13:07:47] *** grantfunke__ has joined #angularjs
[13:07:55] *** sk87 has joined #angularjs
[13:08:11] <greengriminal> Foxandxss: it's okay i will assign it to a scoped variable in my controller.
[13:08:21] *** pipoo has joined #angularjs
[13:08:22] *** ccohn has joined #angularjs
[13:08:23] <Foxandxss> greengriminal: it works
[13:08:26] <Foxandxss> you're doing it wrong then
[13:08:37] *** oktapodi has quit IRC
[13:09:01] *** rosieres has quit IRC
[13:09:06] *** oktapodi has joined #angularjs
[13:09:51] *** SoulBlade has joined #angularjs
[13:10:12] *** Guest51567 has quit IRC
[13:10:19] *** jonr22 has quit IRC
[13:10:31] <gurke_> can i POST an XML to an API and fetch a result?
[13:10:48] *** tkimmel has joined #angularjs
[13:11:08] <ClearsTheScreen> gurke_: what makes you doubt you can?
[13:11:11] *** DanielKarp has joined #angularjs
[13:11:41] *** monir has joined #angularjs
[13:11:58] <gurke_> hmm let me think about it... ill choose nodejs to do that for security
[13:12:02] *** drej has joined #angularjs
[13:12:10] *** grantfunke__ has quit IRC
[13:12:10] <gurke_> i think that might be better
[13:12:29] <gurke_> and give the result via socket.io to angular
[13:12:37] *** ccohn has quit IRC
[13:12:39] *** Txandy has joined #angularjs
[13:12:53] *** kp666 has joined #angularjs
[13:12:55] <gurke_> would be almost the same for speed i think
[13:12:58] *** ajk27 has joined #angularjs
[13:13:25] *** callmekatootie has left #angularjs
[13:14:44] *** SoulBlade has quit IRC
[13:14:58] *** ozooner has quit IRC
[13:15:00] *** pipoo has quit IRC
[13:15:00] <ClearsTheScreen> i think that answers the question. :)
[13:15:07] *** ozooner has joined #angularjs
[13:15:23] *** tkimmel has quit IRC
[13:15:42] *** prbc has joined #angularjs
[13:15:47] *** Khruu has joined #angularjs
[13:16:13] *** anapitupulu has joined #angularjs
[13:16:55] *** pdillinger has quit IRC
[13:17:03] *** pdillinger has joined #angularjs
[13:17:15] *** Miphe has joined #angularjs
[13:17:40] *** wallerdev has joined #angularjs
[13:17:41] *** ThomasBeauvais has quit IRC
[13:18:04] *** DanielKarp has quit IRC
[13:18:21] *** danflies has joined #angularjs
[13:19:22] *** intellix has quit IRC
[13:20:34] *** akrikos has joined #angularjs
[13:21:04] <cheef> Foxandxss: http://plnkr.co/edit/tD7VGnTSq4CiFdWEshxC?p=preview
[13:21:12] <cheef> thats basically my starting point
[13:21:22] *** GeertV has joined #angularjs
[13:21:32] <cheef> ive got a controller im testing, a service it consumes, and one of the service methods returns a promise
[13:21:55] <Foxandxss> okey, let me read
[13:21:55] *** dalguete has joined #angularjs
[13:22:00] *** CamonZ has quit IRC
[13:22:00] <gurke_> ClearsTheScreen, sounds good?
[13:22:14] *** wallerdev has quit IRC
[13:22:29] *** ThomasBeauvais has joined #angularjs
[13:23:08] <Foxandxss> cheef: but your code is wrong
[13:23:09] <cheef> i'd like to mock the service method somehow so that it always resolves
[13:23:20] <Foxandxss> you can't inject $scope into a service
[13:23:36] <narutimateum2> i have ng repeats that each row have day and quantity... these numbers results in total.. how do i change day or quantity in these rows and recalculate the total?
[13:24:07] <cheef> Foxandxss: i dont think i am in that example
[13:24:16] <cheef> im instantiating the controller with its dependencies
[13:24:16] <greengriminal> yes i can did the following in my controller $scope.isAdmin = isAdmin() and then in my view i did <b>isAdmin</b> which works.
[13:24:22] <cheef> some of which need to be mocked
[13:24:26] <greengriminal> Foxandxss: Sorry for the late response
[13:25:02] *** rtpg has joined #angularjs
[13:25:05] *** rburns has quit IRC
[13:25:15] <Foxandxss> cheef: yes, but first, you have a controller which injects movieService (which doesn't exist), on the tests you also injects a movieService which again, doesn't exist
[13:25:23] *** numenor_ has joined #angularjs
[13:25:25] *** numenor has quit IRC
[13:25:33] <Foxandxss> your service is using PascalCase injecting $scope
[13:25:42] *** DanielKarp has joined #angularjs
[13:25:52] <Foxandxss> I mean, you are not even in the step of mocking anything :P
[13:25:57] <ClearsTheScreen> gurke_: it'd quite probably work :) due to lack of familiarity with node i'm not sure about corroborating "chosen for security" (i'd say that's closer to a developer thing than a tech thing). and unless you need socket.io's "bi-directional realtime comms", just using $http might get you there faster and simpler. afterall, what language you send back and forth doesn't really matter. (xml is just a bit clunkier to use in JS, but ...
[13:26:01] *** qdk has joined #angularjs
[13:26:03] <ClearsTheScreen> ... that's not a question of "can i send/receive $language".)
[13:26:20] *** sk87 has quit IRC
[13:26:42] *** FunnyLookinHat has joined #angularjs
[13:27:21] <cheef> so first issue is to create movie service mock yes?
[13:27:48] *** anapitupulu has quit IRC
[13:27:54] <Foxandxss> first issue on that plunk is fix what I told you
[13:27:56] *** kp666 has quit IRC
[13:28:01] <Foxandxss> then, we can explore two solutions for the mocking
[13:29:21] <gurke_> ClearsTheScreen, well the API just works with XML POST
[13:29:49] *** danflies has quit IRC
[13:30:17] *** mahomaho has quit IRC
[13:30:21] <cheef> ok let me have a look
[13:30:32] *** slopjong has joined #angularjs
[13:30:41] *** mahomaho has joined #angularjs
[13:31:43] *** nerder has quit IRC
[13:32:48] <narutimateum2> [{A + B + C = X},{A + B + C = X},{A + B + C = X}] how do i make x changes when a or b or c changes ?
[13:33:35] <cheef> Foxandxss:im a bit stuck there - ive just ripped a plunk that had tests and adapted it to show my needs
[13:33:45] *** shaisnir has quit IRC
[13:33:56] *** dalguete has quit IRC
[13:34:10] *** arkin has quit IRC
[13:34:14] <Foxandxss> dont rip stuff
[13:34:15] <Foxandxss> learn
[13:34:30] *** steinbeck has quit IRC
[13:35:11] *** arkin has joined #angularjs
[13:35:11] *** arkin has joined #angularjs
[13:35:14] <numenor_> RIP
[13:35:36] <ClearsTheScreen> gurke_: great! go and POST XML :) (I'm not sure what you expect of me now)
[13:35:49] <gurke_> lol :D
[13:35:57] <gurke_> thats okay.. thanks for your help :)
[13:36:06] <ClearsTheScreen> you're welcome, for what little i did XD
[13:36:07] <cheef> Foxandxss: ive got the test running and failing
[13:37:04] *** ingsoc has quit IRC
[13:37:13] <Foxandxss> fix them
[13:37:23] <Foxandxss> if you don't know how, you shouldn't be copy and pasting :P
[13:37:30] *** travm has joined #angularjs
[13:38:12] *** shaisnir has joined #angularjs
[13:38:52] <ClearsTheScreen> gurke_: http://rabidgadfly.com/2013/02/angular-and-xml-no-problem/ might be of interest (even if it's almost 2 years old; never personally tried to use XML with JS/ng, i'm afraid)
[13:39:02] *** scythe__ has joined #angularjs
[13:39:21] *** anjumkaiser has quit IRC
[13:39:56] *** pdillinger has quit IRC
[13:41:07] *** travm has quit IRC
[13:41:45] *** tangorri has joined #angularjs
[13:41:57] <deebo> is there a way to derive a value from another model value? e.g. i have a checkbox and under it a field with text, i want the checkbox to be checked if the input field has text
[13:42:22] *** shaisnir has quit IRC
[13:42:35] <deebo> the way it works is you click the checkbox and the input appears via ng-if, if you reload the page the input has content but the checkbox is not checked
[13:42:54] *** scythe__ has quit IRC
[13:43:03] <narutimateum2> nobody have a clue?
[13:43:03] <cheef> Foxandxss: i cant fix it, if i dont know how to deal with the promises bit!
[13:43:14] *** anderskristo has quit IRC
[13:43:33] <Foxandxss> cheef: http://angular-tips.com/blog/2014/06/introduction-to-unit-test-controllers/
[13:43:40] *** sk87 has joined #angularjs
[13:44:13] <ClearsTheScreen> narutimateum2: the question doesn't really compute for me, i'm afraid.
[13:44:13] *** monir has quit IRC
[13:44:16] <cheef> ill have a read
[13:44:53] <ClearsTheScreen> deebo: uh, sure, the checkbox state is bound to a scope variable anyways, isn't it? so ... put the right data there on reload, would be my initial approach
[13:45:26] <narutimateum2> ClearsTheScreen: i have ng-repeat of items... each item have value day and quantity... i want to make that when any of those changes it recalculate the total for each of the items
[13:45:27] *** mokush has quit IRC
[13:45:38] *** phuh has quit IRC
[13:45:46] *** anderskristo has joined #angularjs
[13:45:52] *** arkin has quit IRC
[13:45:59] *** mrits has joined #angularjs
[13:46:07] *** phuh has joined #angularjs
[13:47:04] *** ulkesh has quit IRC
[13:47:13] <deebo> ClearsTheScreen: yeah id want to avoid code that just checks my scope and sets another scope variable, thats the way it currently works
[13:47:39] <numenor_> Going a bit off topic but, can anyone tell me how can I make a permanent ID in freenode and use a desktop client to connect to this forum? I am now online through the webchat
[13:47:41] *** arkin has joined #angularjs
[13:48:07] *** ulkesh has joined #angularjs
[13:48:22] <Helzibah> numenor_: /msg nickserv help register
[13:48:23] <Helzibah> iirc
[13:48:34] <numenor_> Okay
[13:48:38] <Helzibah> numenor_: I'd recommend hexchat as an IRC client, it should be easy enough to set up
[13:48:53] <numenor_> Ok
[13:49:04] *** nicholaswyoung has joined #angularjs
[13:49:14] <Helzibah> numenor_: https://freenode.net/faq.shtml#nicksetup
[13:49:15] <numenor_> and where do I put "/msg nickserv help register"
[13:49:24] *** ahtik has joined #angularjs
[13:50:17] <Helzibah> numenor_: all IRC commands start with /, you should be able to just type that here as you would type normal text
[13:50:46] *** nemothekid has joined #angularjs
[13:51:20] *** frankbli_ has joined #angularjs
[13:51:25] *** shaisnir has joined #angularjs
[13:51:46] *** klaut has joined #angularjs
[13:52:06] <gurke_> ClearsTheScreen, thanks for the link, but iam fetching plain stuff like prices and dates
[13:52:17] *** jtimon has joined #angularjs
[13:52:26] <gurke_> ClearsTheScreen, no need to display them like rss
[13:53:08] *** jillesme has joined #angularjs
[13:53:15] *** anjumkaiser has joined #angularjs
[13:53:35] *** Fishy has joined #angularjs
[13:53:43] <numenor_> Helzibah : Ok
[13:53:56] *** kasapa has joined #angularjs
[13:54:11] *** jlebrech_ has joined #angularjs
[13:54:18] *** Raging_Hog has quit IRC
[13:54:38] *** annlewis has joined #angularjs
[13:56:17] *** kasapa has quit IRC
[13:56:44] *** loverajoel has joined #angularjs
[13:57:02] *** shaisnir has quit IRC
[13:57:06] *** phzon has quit IRC
[13:57:14] *** matthoiland has joined #angularjs
[13:57:21] *** nicholaswyoung has quit IRC
[13:57:46] *** aendrew has quit IRC
[13:57:47] *** jillesme has quit IRC
[13:58:40] *** akkare has quit IRC
[13:59:12] *** annlewis has quit IRC
[13:59:20] *** Latros-OS has quit IRC
[13:59:30] *** Sebastien-L has quit IRC
[14:00:04] *** pdillinger has joined #angularjs
[14:00:22] *** tarnus has joined #angularjs
[14:01:37] *** numenor_ has quit IRC
[14:01:47] *** numenor has joined #angularjs
[14:02:01] <numenor> Hello
[14:02:02] *** matthoiland has quit IRC
[14:02:13] *** MaxV_ has joined #angularjs
[14:02:22] *** GeertV has quit IRC
[14:02:46] *** Efrem has joined #angularjs
[14:03:11] *** jdcasey has joined #angularjs
[14:03:30] <numenor> Helzibah : Thanks for recommending hexchat.. I am using it now
[14:03:35] *** jillesme has joined #angularjs
[14:04:12] <Helzibah> numenor: you're welcome, glad you got it sorted :)
[14:04:39] <numenor> Helzibah : Yep ..
[14:05:03] *** drej has quit IRC
[14:06:00] *** rchavik_ has quit IRC
[14:06:46] *** akrikos has quit IRC
[14:07:14] *** danflies has joined #angularjs
[14:07:32] *** bkuberek has joined #angularjs
[14:07:51] *** rburns has joined #angularjs
[14:08:26] *** akrikos has joined #angularjs
[14:08:32] *** grantfunke__ has joined #angularjs
[14:08:57] *** numenor has left #angularjs
[14:08:58] *** mike_ has joined #angularjs
[14:08:59] *** mike_ is now known as Guest3468
[14:09:04] <Guest3468> Hi
[14:09:24] *** bkuberek_ has joined #angularjs
[14:10:10] <Guest3468> I use protractor for e2e testing. In my tests i need some random data like random emails, string. I want to use http://chancejs.com/ for it. How to load this library in my specs files?
[14:10:57] *** bolbat has joined #angularjs
[14:11:46] *** platonic has joined #angularjs
[14:11:53] *** azizur has quit IRC
[14:12:22] *** bkuberek has quit IRC
[14:12:30] <ClearsTheScreen> my instincts point me at "in the same way you load libraries elsewhere"
[14:12:56] <ClearsTheScreen> gurke_: the point was the "how to transparently convert XML" thing in there, as you mentioned it expects / speaks XML
[14:12:59] *** grantfunke__ has quit IRC
[14:13:01] *** intellix has joined #angularjs
[14:13:25] <gurke_> ClearsTheScreen, ahh okay
[14:13:52] <ClearsTheScreen> narutimateum2: sounds like $watch might be your friend, resp. using a setter function on the rows that'll update the total behind the scenes.
[14:14:17] *** Latros-OS has joined #angularjs
[14:14:25] *** walden|afk is now known as walden
[14:14:32] *** phzon has joined #angularjs
[14:14:38] *** bayousoft has joined #angularjs
[14:14:41] *** aditya_vy has quit IRC
[14:14:55] *** frankbli_ has quit IRC
[14:15:13] *** dsdeiz has joined #angularjs
[14:15:28] *** anjumkaiser has quit IRC
[14:15:43] *** cbennett has quit IRC
[14:15:59] *** cbennett has joined #angularjs
[14:16:24] *** gordroidJS has joined #angularjs
[14:16:29] *** platonic has quit IRC
[14:17:47] *** rosieres has joined #angularjs
[14:18:15] *** mmealling has joined #angularjs
[14:18:16] *** whitebook has joined #angularjs
[14:18:20] *** wallerdev has joined #angularjs
[14:18:35] *** frankblizzar has joined #angularjs
[14:18:58] *** DannyCallaghan has joined #angularjs
[14:18:59] *** DannyCallaghan is now known as dannyc
[14:19:35] <dannyc> any reason why formName.$invalid wouldn't work in 1.3? my form buttons used to be disabled, now - after upgrading - they're not.
[14:20:09] *** gordroidJS1 has joined #angularjs
[14:20:16] *** klaut has quit IRC
[14:20:18] *** rburns has quit IRC
[14:20:20] *** rchavik has joined #angularjs
[14:20:45] *** gordroidJS has quit IRC
[14:20:53] <dannyc> any ideas?
[14:21:08] *** Latros-OS has quit IRC
[14:21:33] *** frankblizzar has quit IRC
[14:21:38] *** danecando has quit IRC
[14:21:51] *** nemothekid has quit IRC
[14:22:01] *** Guest3468 has quit IRC
[14:22:10] *** rburns has joined #angularjs
[14:22:44] *** wallerdev has quit IRC
[14:23:42] *** aendrew has joined #angularjs
[14:23:44] <dannyc> *tumbleweed*
[14:24:48] *** cbennett has quit IRC
[14:26:06] *** darrin has joined #angularjs
[14:26:23] *** Latros-OS has joined #angularjs
[14:26:27] *** tripu has quit IRC
[14:27:05] *** gnrlbzik has quit IRC
[14:28:14] *** drej has joined #angularjs
[14:28:17] *** Sebastien-L has joined #angularjs
[14:29:01] *** CamonZ has joined #angularjs
[14:29:09] *** travm has joined #angularjs
[14:29:18] *** drej has quit IRC
[14:30:05] *** josh-k_ has quit IRC
[14:30:18] *** dannyc has left #angularjs
[14:30:26] *** dannyc has joined #angularjs
[14:30:38] *** josh-k has joined #angularjs
[14:31:56] <dannyc> anyone here today?
[14:32:12] <phzon> is it possible to split the dependencies in different files?
[14:32:19] <Foxandxss> yes
[14:32:27] <dannyc> any reason why formName.$invalid wouldn't work in 1.3? my form buttons used to be disabled, now - after upgrading - they're not.
[14:32:30] <phzon> so that if I don't load a script the dep won't be loaded
[14:32:34] <cheef> Foxandxss:i think ive figured it out
[14:32:39] *** klaut has joined #angularjs
[14:32:45] <Foxandxss> phzon: THAT is not that easy tho
[14:32:53] *** hswolff has quit IRC
[14:32:54] <Foxandxss> because there is no official support for that
[14:33:15] <cheef> i can now do service.somePromise().then(function(some resolved value){ /*assertions */)
[14:33:22] *** discgo has joined #angularjs
[14:33:32] <cheef> as an alternative to a sput
[14:33:35] <cheef> spy*
[14:33:44] <phzon> Foxandxss: specifically I need httpbackend to be loaded or not on purpose
[14:33:44] *** dsdeiz has quit IRC
[14:33:46] <Foxandxss> cheef: yes, but that is not necessarily good
[14:33:53] *** frankblizzar has joined #angularjs
[14:34:00] <Foxandxss> phzon: still hard to do
[14:34:01] <phzon> so I moved all httpbackend code in one file, and I need to move the dependency too
[14:34:09] <cheef> how do you mean?
[14:34:18] *** hswolff has joined #angularjs
[14:34:33] *** blackjid_ has joined #angularjs
[14:34:42] *** Sebastien-L has quit IRC
[14:35:12] *** josh-k has quit IRC
[14:36:07] *** Tobius has joined #angularjs
[14:37:09] *** Sebastien-L has joined #angularjs
[14:37:10] *** muhammadn has quit IRC
[14:37:18] *** dreambox has joined #angularjs
[14:37:49] *** livingstn has joined #angularjs
[14:37:56] <cheef> seems i can still spy in the cases where i want to assert the service wasnt called too
[14:37:57] <cheef> tidy
[14:38:02] *** fixl has quit IRC
[14:38:18] *** nerder has joined #angularjs
[14:38:35] <nerder> hello
[14:38:39] *** cboden has joined #angularjs
[14:38:47] <nerder> anybody can help me understand the bug of this?
[14:38:48] <nerder> https://gist.github.com/anonymous/cd2c0de449d8f57de136
[14:38:59] *** sigurding has quit IRC
[14:39:17] *** advy has joined #angularjs
[14:39:31] <nerder> my problem is on line 17
[14:39:35] <nerder> because i get undefined
[14:40:10] <nerder> $scope.newTrips[0];
[14:40:21] *** nemothekid has joined #angularjs
[14:40:40] *** simplyshipley has joined #angularjs
[14:41:38] *** rosieres has quit IRC
[14:41:39] *** ome has quit IRC
[14:42:09] *** dreambox has quit IRC
[14:42:29] *** rho_ has joined #angularjs
[14:42:59] *** Alina-malina has joined #angularjs
[14:43:00] *** Alina-malina has joined #angularjs
[14:43:16] <mahomaho> nerder: $scope.newTrips is undefined or $scope.newTrips[0] ?
[14:43:20] *** rho_ is now known as rho
[14:43:21] *** MANCHUCK has joined #angularjs
[14:43:38] <noiserocker> nerder: why do you use jQuery selector to get the value from the 2 inputs?
[14:44:29] *** jstroem_ has quit IRC
[14:44:31] *** nerder has quit IRC
[14:44:57] *** sk87 has quit IRC
[14:45:02] *** crnd has joined #angularjs
[14:45:03] *** jstroem has joined #angularjs
[14:45:06] *** quantax- has joined #angularjs
[14:45:22] *** Onkarraj has joined #angularjs
[14:45:29] <Onkarraj> hi
[14:45:40] *** phuh has quit IRC
[14:45:45] *** danecando has joined #angularjs
[14:45:52] *** fedenunez1 has quit IRC
[14:46:09] *** phuh has joined #angularjs
[14:46:35] *** evilaliv3 has joined #angularjs
[14:46:38] *** jaydubya has quit IRC
[14:46:52] *** shinnya has joined #angularjs
[14:46:59] <Onkarraj> Hi Guys, I am recently started working on Angular and i want to implement a 'excel read' functionality
[14:47:15] *** jaydubya has joined #angularjs
[14:47:32] *** motionman has quit IRC
[14:47:49] *** Raging_Hog has joined #angularjs
[14:49:24] *** dharmit has quit IRC
[14:49:24] *** jstroem has quit IRC
[14:49:32] *** darrin has quit IRC
[14:49:39] *** Onkarraj has left #angularjs
[14:49:46] *** gordroidJS1 has quit IRC
[14:50:10] *** oktapodi has quit IRC
[14:50:19] *** oktapodi has joined #angularjs
[14:51:00] *** advy has quit IRC
[14:51:24] *** sk87 has joined #angularjs
[14:51:26] *** Anton_ has quit IRC
[14:51:31] *** jaydubya has quit IRC
[14:51:44] *** kuadrosx has joined #angularjs
[14:51:52] *** rburns has quit IRC
[14:52:04] *** gordroidJS has joined #angularjs
[14:52:46] *** g3funk is now known as braidn
[14:53:35] *** favetelinguis has quit IRC
[14:53:41] *** jr3 has joined #angularjs
[14:54:03] *** sigurding has joined #angularjs
[14:54:03] *** favetelinguis has joined #angularjs
[14:54:23] *** jonr22 has joined #angularjs
[14:54:37] *** kuadrosx has quit IRC
[14:54:52] *** moritzs has joined #angularjs
[14:54:54] *** ClarusCogitatio has quit IRC
[14:55:25] *** Fistful_of_coins has joined #angularjs
[14:56:15] *** monir has joined #angularjs
[14:56:54] *** snurfery has quit IRC
[14:57:34] *** rtpg has quit IRC
[14:57:46] *** ClarusCogitatio has joined #angularjs
[14:57:54] *** MaxV_ has quit IRC
[14:58:23] *** Anton_ has joined #angularjs
[14:58:28] *** favetelinguis has quit IRC
[14:58:35] *** bayousoft has quit IRC
[14:58:47] *** Guest29 has joined #angularjs
[14:58:53] *** Snugug has joined #angularjs
[14:59:02] *** jonr22 has quit IRC
[14:59:10] *** bayousoft has joined #angularjs
[14:59:40] *** edrocks has joined #angularjs
[14:59:43] <calmbird> Hurray google is indexing my angular webpage.
[14:59:44] *** tkimmel has joined #angularjs
[14:59:56] <calmbird> I will put GIT on how to do it easy way soon
[15:00:28] *** annlewis has joined #angularjs
[15:01:01] *** elrabin has joined #angularjs
[15:01:37] *** aendrew has quit IRC
[15:01:43] *** azizur has joined #angularjs
[15:01:57] *** guilbep has quit IRC
[15:01:59] *** rchavik has quit IRC
[15:02:40] *** edzez_ is now known as edzez
[15:02:48] *** mostr has quit IRC
[15:03:07] *** rho has quit IRC
[15:03:16] *** linojon has joined #angularjs
[15:03:29] *** guilbep has joined #angularjs
[15:03:46] *** thirdknife_ has joined #angularjs
[15:04:04] *** ahtik has quit IRC
[15:04:27] *** tkimmel has quit IRC
[15:04:35] *** ahtik has joined #angularjs
[15:04:50] *** rtpg has joined #angularjs
[15:04:58] *** tomzx`afk is now known as tomzx
[15:05:04] *** rtpg has quit IRC
[15:05:11] *** BahamutWC_ is now known as BahamutWC
[15:05:12] *** rtpg has joined #angularjs
[15:05:18] *** tkimmel has joined #angularjs
[15:05:58] *** CamonZ has quit IRC
[15:07:02] *** mccarrontr1ck has joined #angularjs
[15:07:39] *** bayousoft has quit IRC
[15:08:07] *** bayousoft has joined #angularjs
[15:08:28] *** aendrew has joined #angularjs
[15:08:58] *** mrits has quit IRC
[15:09:19] *** grantfunke__ has joined #angularjs
[15:09:41] *** Guest29 has quit IRC
[15:09:41] *** MaxV has joined #angularjs
[15:09:49] *** phzon has quit IRC
[15:09:59] *** mityaz has quit IRC
[15:10:08] *** phzon has joined #angularjs
[15:10:10] *** cbennett has joined #angularjs
[15:10:12] *** FIFOd[a] has joined #angularjs
[15:10:26] *** cbennett has quit IRC
[15:10:43] *** jlebrech_ has quit IRC
[15:10:48] *** SoulBlade has joined #angularjs
[15:11:19] *** cbennett has joined #angularjs
[15:12:18] *** fedenunez has joined #angularjs
[15:12:41] *** ozooner_ has joined #angularjs
[15:12:48] *** pipoo has joined #angularjs
[15:13:12] *** elrabin has quit IRC
[15:13:42] *** grantfunke__ has quit IRC
[15:14:06] *** ozooner has quit IRC
[15:14:24] *** rchavik has joined #angularjs
[15:15:20] *** SoulBlade has quit IRC
[15:15:53] *** dan2k3k4 has joined #angularjs
[15:15:55] *** ccohn has joined #angularjs
[15:16:54] *** pipoo has quit IRC
[15:18:32] *** TyrfingMjolnir has joined #angularjs
[15:18:36] *** mfunkie has joined #angularjs
[15:19:06] *** wallerdev has joined #angularjs
[15:19:09] *** Jimu has joined #angularjs
[15:19:22] *** macbroadcast has joined #angularjs
[15:19:27] *** mahomaho is now known as everyone
[15:19:33] *** everyone is now known as mahomaho
[15:19:34] <Jimu> anyone have experience getting chrome remote debugging working on a windows 8.1 machine?
[15:19:46] *** mattblang has joined #angularjs
[15:19:53] *** nagappan_ has quit IRC
[15:20:13] *** macbroadcast has quit IRC
[15:20:24] *** dsdeiz has joined #angularjs
[15:20:28] *** nagappan_ has joined #angularjs
[15:20:48] *** cbennett has quit IRC
[15:21:38] *** _ritchie_ has joined #angularjs
[15:21:56] *** sigurding has quit IRC
[15:22:27] *** mupkoo has quit IRC
[15:22:28] *** sigurding has joined #angularjs
[15:23:07] *** ozooner__ has joined #angularjs
[15:23:13] *** ozooner_ has quit IRC
[15:23:31] *** qstrahl has joined #angularjs
[15:23:34] *** wallerdev has quit IRC
[15:23:50] *** arthas has joined #angularjs
[15:23:51] *** arthas has joined #angularjs
[15:24:47] *** melter has joined #angularjs
[15:25:21] *** juanpablo_ has joined #angularjs
[15:25:42] *** vassagus has joined #angularjs
[15:25:45] *** richiebkr has joined #angularjs
[15:26:18] *** red_horned_rihno has joined #angularjs
[15:26:43] *** IvailoStoianov has joined #angularjs
[15:26:47] *** onats has quit IRC
[15:27:03] <tkdaj> anyone know why a value passed in via attribute to a directive prints out the correct value but would be evaluated incorrectly? My example: I send var showEnds = tAttrs.showEnds; This is set to false, if I console.log() it shows false right before an if statement, but then the if(showEnds) if evaluated as true...
[15:27:03] *** klaut has quit IRC
[15:27:03] *** jstroem has joined #angularjs
[15:27:27] <tkdaj> It's in the compile: section
[15:27:30] <tkdaj> if that means anything
[15:27:43] *** jillesme has quit IRC
[15:28:04] *** mven has joined #angularjs
[15:28:10] <ClearsTheScreen> Jimu: only "by proxy"; friend of mine does that with phpstorm
[15:28:20] *** linus_ has quit IRC
[15:29:23] *** hilefoks has joined #angularjs
[15:29:27] *** monir has quit IRC
[15:29:58] *** FunnyLookinHat has quit IRC
[15:30:18] *** BillCriswell has joined #angularjs
[15:30:21] *** foofoobar has quit IRC
[15:30:24] *** travm is now known as travm-afk
[15:30:41] *** richiebkr has quit IRC
[15:31:05] *** VeeWee has quit IRC
[15:31:24] *** travm-afk has quit IRC
[15:31:25] <Foxandxss> tkdaj: give examples
[15:31:41] *** bayousoft has quit IRC
[15:32:12] *** bayousoft has joined #angularjs
[15:32:30] *** MaxV has quit IRC
[15:32:33] *** ggrzybek has quit IRC
[15:33:50] *** whiteboo_ has joined #angularjs
[15:34:19] *** MaxV has joined #angularjs
[15:34:24] *** evilaliv3 has quit IRC
[15:34:24] <tkdaj> I'll send a plunkr
[15:34:38] *** mary5030 has joined #angularjs
[15:34:45] <tkdaj> http://plnkr.co/edit/RBBZXd1EZpKzcsq5SilV?p=catalogue
[15:34:52] *** mary5030 has quit IRC
[15:34:52] *** aendrew has quit IRC
[15:35:15] *** mrits has joined #angularjs
[15:35:27] <tkdaj> hmm
[15:35:29] *** mary5030 has joined #angularjs
[15:35:37] *** whitebook has quit IRC
[15:36:01] *** klaut has joined #angularjs
[15:36:02] <tkdaj> I messed around with that code testing it so it isn't showing what I said originally. Here is a better one:
[15:36:02] <tkdaj> http://plnkr.co/edit/RBBZXd1EZpKzcsq5SilV?p=catalogue
[15:36:10] *** moritzs has quit IRC
[15:36:15] *** oktapodi has quit IRC
[15:36:39] <Foxandxss> nice, but I need it on a working state
[15:36:42] <Foxandxss> not as a pastebin
[15:36:43] *** prbc has quit IRC
[15:36:50] *** freeman42 has quit IRC
[15:37:05] *** oktapodi has joined #angularjs
[15:37:09] *** Ajans has quit IRC
[15:37:36] *** Ajans has joined #angularjs
[15:37:38] <dannyc> any reason why formName.$invalid wouldn't work in 1.3? my form buttons used to be disabled, now - after upgrading - they're not.
[15:37:47] *** AngularUI has joined #angularjs
[15:37:47] <AngularUI> [ng-grid] mathiasdose opened pull request #2006: Fix #1955 (expandable): Left panel features coexistance (master...issue#1955) http://git.io/yVR1Pw
[15:37:47] *** AngularUI has left #angularjs
[15:37:55] *** s3shs has quit IRC
[15:38:01] *** moritzs has joined #angularjs
[15:38:28] <roqo> So I have a tooltip that I created by inserting a directive where I want it to show up (on hover).
[15:38:41] <roqo> The data it shows is from a d3 graph.
[15:38:42] *** MaxV has quit IRC
[15:39:27] <roqo> Is there anyway to pass data to this tooltip using it's factory or controller via non angular js
[15:40:29] *** elrabin has joined #angularjs
[15:40:36] *** klaut has quit IRC
[15:40:42] *** juampy has quit IRC
[15:41:04] *** oktapodi has quit IRC
[15:41:14] *** oktapodi has joined #angularjs
[15:41:48] *** preben_ has quit IRC
[15:42:42] *** rburns has joined #angularjs
[15:43:33] *** categoryzero has quit IRC
[15:43:42] *** ASUchander1 has joined #angularjs
[15:44:26] <tkdaj> foxandxss: http://plnkr.co/edit/AwpwqYZnos2wOFfNeB9B?p=preview
[15:44:42] *** edy has quit IRC
[15:44:43] *** bayousoft has quit IRC
[15:45:01] <tkdaj> I got it in a working state but for some reason now my page numbers aren't showing up even though it's the same code I have...
[15:45:16] *** bayousoft has joined #angularjs
[15:45:18] *** travm has joined #angularjs
[15:45:20] *** edy has joined #angularjs
[15:45:26] *** anivemin has joined #angularjs
[15:45:38] *** travm is now known as travm-afk
[15:45:41] *** travm-afk is now known as travm
[15:45:42] *** phuh has quit IRC
[15:46:10] *** phuh has joined #angularjs
[15:46:21] *** matthoiland has joined #angularjs
[15:46:34] *** Siecje has joined #angularjs
[15:46:50] *** edy has quit IRC
[15:46:57] *** gurke_ has quit IRC
[15:47:18] *** ASUChander has quit IRC
[15:47:26] *** eBureau has joined #angularjs
[15:48:00] <Foxandxss> the tAttrs works fine there
[15:48:03] *** ASUchander1 has quit IRC
[15:48:14] *** AngularUI has joined #angularjs
[15:48:15] <AngularUI> [ng-grid] nclsHart opened pull request #2007: Patch french translations (master...patch-french-translations) http://git.io/z7wsrg
[15:48:15] *** AngularUI has left #angularjs
[15:48:15] *** bolloga has joined #angularjs
[15:48:20] *** bengillies has quit IRC
[15:48:39] *** freeman42 has joined #angularjs
[15:48:44] <tkdaj> I know it prints out like it should, but the first and last buttons should not show up unless tAttrs.showEnds is true
[15:48:50] <tkdaj> when i set it to false they show up anyway
[15:49:15] *** MaxV has joined #angularjs
[15:49:24] *** Marble68 has joined #angularjs
[15:49:58] *** whitebook has joined #angularjs
[15:50:07] *** Efrem is now known as Efrem-Away
[15:50:15] <Foxandxss> tkdaj: so why it enters on the if?
[15:50:28] <tkdaj> I have no idea. That's my probl;em
[15:50:43] <tkdaj> if you console.log the value of showEnds before that if statement it is false
[15:50:45] *** matthoiland has quit IRC
[15:50:47] <tkdaj> but it enters it anyway??
[15:50:54] <Foxandxss> it is false or "false"?
[15:51:00] <tkdaj> hmm...
[15:51:01] <tkdaj> good point
[15:51:10] <Foxandxss> :)
[15:51:12] *** mbildner has joined #angularjs
[15:51:15] <Foxandxss> attributes are NEVER boolean
[15:51:19] <Foxandxss> always string
[15:51:19] *** jdj_dk has quit IRC
[15:51:23] *** Jae has quit IRC
[15:51:38] *** oktapodi has quit IRC
[15:51:40] *** az7ar_away is now known as az7ar
[15:52:11] *** jillesme has joined #angularjs
[15:52:16] <tkdaj> aha
[15:52:18] *** whiteboo_ has quit IRC
[15:52:23] <tkdaj> yeah, i printed typeof
[15:52:25] <tkdaj> and it is string
[15:52:26] *** ctanga has joined #angularjs
[15:52:28] *** oktapodi has joined #angularjs
[15:52:30] <tkdaj> thanks! :)
[15:52:52] *** oste has joined #angularjs
[15:52:54] *** bmac has joined #angularjs
[15:52:59] *** michaelSharpe has joined #angularjs
[15:53:24] *** soee has quit IRC
[15:53:58] *** gnrlbzik has joined #angularjs
[15:54:31] *** cthrax has joined #angularjs
[15:55:17] *** mandric has joined #angularjs
[15:55:19] *** darrin has joined #angularjs
[15:56:10] *** Sebastien-L has quit IRC
[15:56:19] *** bengillies has joined #angularjs
[15:56:26] *** dalguete has joined #angularjs
[15:56:39] <dannyc> is anyone using 1.3?
[15:57:04] *** mrded has joined #angularjs
[15:57:08] <tkdaj> Does anyone know why I would use $compile in a directive controller over just using compile: in the directive?
[15:57:12] <tkdaj> I don't understand the difference
[15:57:27] *** oste has quit IRC
[15:57:36] *** rchavik has quit IRC
[15:57:59] *** juristr has joined #angularjs
[15:57:59] *** hilefoks has quit IRC
[15:58:37] <juristr> Just came across this same problem (http://stackoverflow.com/questions/19962965/how-do-i-check-whether-an-expression-attribute-has-been-provided-to-a-directive). Is this really the only approach for verifying whether an expression on a directive has been defined??
[15:58:53] *** balr0g has joined #angularjs
[15:59:00] *** mandric has quit IRC
[15:59:16] <dannyc> tkdaj: no difference. compile maps to $compile in the directive definition object.
[15:59:35] <tkdaj> oh... So why would someone use $compile over compile, then?
[15:59:52] *** Sebastien-L has joined #angularjs
[16:00:30] *** platonic has joined #angularjs
[16:00:32] <dannyc> tkdaj: in the same way that scope maps to $scope. there are lots of reasons to use $compile. the directive definition object compile is specifically for compile HTML for use within that directive.
[16:00:39] <ClearsTheScreen> tkdaj: when making decisions on data only known in the compiler, e.g. when pulled from dependencies. (though i can't come up with an example that cant be writen cleanly without $compile)
[16:00:57] *** FIFOd[a] has quit IRC
[16:01:03] <tkdaj> oh, okay. Thanks :)
[16:01:05] <dannyc> so is no one using 1.3?
[16:01:18] *** jaydubya has joined #angularjs
[16:01:23] *** loverajoel has quit IRC
[16:01:27] <tkdaj> And I take it whenever you are making a directive which directly edits the DOM and you want it to update you have to use compile for that, right?
[16:02:01] <Foxandxss> tkdaj: compile is not data bound
[16:02:04] <dannyc> tkdaj: if you need it to happen before the linking function, then yes
[16:02:14] <balr0g> hello, please help. im working a ChromeApp with angularjs with nested routes (https://github.com/artch/angular-route-segment), i have 2 items with the same route (because they have the same fields), but when i click in these 2 links the controller doesnt reload so the data doesnt change... how to reload this nested controller to query my data service and
[16:02:14] <balr0g> bring the new data? thanks in advance...
[16:02:16] <Foxandxss> dannyc: what? compile maps to $scopE?
[16:02:18] <Foxandxss> errr
[16:02:18] <dannyc> tkdaj: sorry, functionS
[16:02:21] *** ASUChander has joined #angularjs
[16:02:23] <Foxandxss> compile maps to $compile?
[16:02:33] *** krawek has joined #angularjs
[16:02:33] *** krawek has joined #angularjs
[16:02:50] <dannyc> Foxandxss: i didn't say that. i said compile maps to $compile in the same way scope maps to $scope.
[16:02:51] *** mrits has quit IRC
[16:03:00] <Foxandxss> that makes no sense
[16:03:04] *** prbc has joined #angularjs
[16:04:06] <Foxandxss> tkdaj: there is no core directive this days that uses compile for anything
[16:04:21] *** intellix has quit IRC
[16:04:26] *** Ch4rAss has quit IRC
[16:04:27] *** frkout has joined #angularjs
[16:04:35] <dannyc> Foxandxss: really? in the directive definition object, scope : {} is essentially mapping to the $scope of that directive (the directives scope). that's all i was saying. in the same way that when you write compile : function () {...} it's essentailly mapping to the $compile method.
[16:04:35] <tkdaj> what does that mean?
[16:04:59] <Foxandxss> tkdaj: that no one is using compile for that anymore
[16:05:12] <Foxandxss> dannyc: $compile calls directive compile to compile it
[16:05:12] *** ASUchander1 has joined #angularjs
[16:05:13] *** amphetamines has joined #angularjs
[16:05:21] *** platonic has quit IRC
[16:05:29] <tkdaj> Foxandxss so, people use $compile instead?
[16:05:40] <dannyc> Foxandxss: yes. i think we're saying the same thing.
[16:05:41] <Foxandxss> no, link function
[16:05:57] <Foxandxss> tkdaj: forget about $compile
[16:06:00] *** Owner has joined #angularjs
[16:06:01] <Foxandxss> it is a complete different thing
[16:06:14] <tkdaj> Well, I need a bunch of stuff to be calculated before I add the page numbers for my paginated table... when i did it just using link it didn't work
[16:06:24] *** Owner is now known as Guest95201
[16:06:25] *** AndreasLutro has quit IRC
[16:06:30] *** Manaus has quit IRC
[16:06:31] <Foxandxss> I am writing a book about directives, I cover that
[16:06:32] *** jaydubya has quit IRC
[16:06:33] <Foxandxss> but so far
[16:06:36] <Foxandxss> the idea is
[16:06:40] *** CamonZ has joined #angularjs
[16:06:45] <Foxandxss> in compile you DONT have access to $scope
[16:06:48] *** ASUChand_ has joined #angularjs
[16:06:55] <Foxandxss> so if you have an attribute like foo="{{bar}}"
[16:07:06] <Foxandxss> tAttrs.foo will be {{bar}}
[16:07:12] *** CamonZ has quit IRC
[16:07:17] <Foxandxss> it is not interpolated at that step
[16:07:27] *** lena_ has joined #angularjs
[16:07:27] *** ishan has joined #angularjs
[16:07:36] <Foxandxss> you can modify the DOM there but you can't acess to the scope
[16:07:39] <Foxandxss> on the link function
[16:07:40] *** ASUChan__ has joined #angularjs
[16:07:41] *** ASUChander has quit IRC
[16:07:47] <Foxandxss> you have access to the scope
[16:07:52] *** ishan has quit IRC
[16:07:56] <Foxandxss> so attrs.foo will contain what bar is interpolated to
[16:08:03] *** Snugug has quit IRC
[16:08:12] *** opiates has quit IRC
[16:08:20] *** jeffszusz has joined #angularjs
[16:08:25] <Foxandxss> but if you modify the DOM adding / removing directives, you need to compile it by hand
[16:08:26] <tkdaj> So, if I change stuff in link it should also update the DOM?
[16:08:43] <dannyc> tkdaj: you won't find a better or clearer explanation that this --> http://www.jvandemo.com/the-nitty-gritty-of-compile-and-link-functions-inside-angularjs-directives/
[16:08:56] <Foxandxss> dannyc: thanks for telling me I don't explain correctly
[16:09:02] *** Snugug has joined #angularjs
[16:09:02] *** soj has joined #angularjs
[16:09:11] *** ASUChander has joined #angularjs
[16:09:13] *** AngularUI has joined #angularjs
[16:09:13] <AngularUI> [ng-grid] c0bra created fix-tests-1.3.0 (+2 new commits): http://git.io/9vJZBw
[16:09:13] <AngularUI> ng-grid/fix-tests-1.3.0 b963185 c0bra: fix(Tests): Disable date validation test...
[16:09:13] <AngularUI> ng-grid/fix-tests-1.3.0 eec03bb c0bra: WIP: trying to fix grid menu with angular 1.3
[16:09:13] *** AngularUI has left #angularjs
[16:09:14] *** frkout has quit IRC
[16:09:17] <tkdaj> I have actually been to that site
[16:09:32] <Foxandxss> tkdaj: let me explain more complete, when you have an HTML page
[16:09:34] <Foxandxss> angular will read it
[16:09:40] *** ASUchander1 has quit IRC
[16:09:41] <Foxandxss> grab all those directives
[16:09:53] <Foxandxss> and thanks to the $compile service, will call every directive's compile function
[16:10:05] <Foxandxss> which will eventually call the link function with the scope
[16:10:06] *** grantfunke__ has joined #angularjs
[16:10:06] <dannyc> Foxandxss: whoa there. you explained it very well, but what works better, a clear and concise article that the guy can read over a few times and bookmark, or you typing several sentences, over several lines on here?
[16:10:18] <Foxandxss> me
[16:10:22] *** ASUchander1 has joined #angularjs
[16:10:25] <Foxandxss> because I explain it for him
[16:10:29] <Foxandxss> with it doubts and questions
[16:10:32] <Foxandxss> non generic
[16:10:33] *** Efrem-Away is now known as Efrem
[16:10:49] *** dalguete is now known as [dalguete]
[16:10:49] <Foxandxss> tkdaj: let me try a easy simil (need to think it)
[16:11:00] <dannyc> Foxandxss: wow, fine. we're here to massage your ego, not to help. i get it now.
[16:11:09] <Foxandxss> dannyc: fuck you
[16:11:11] <Foxandxss> simply as that
[16:11:13] *** intellix has joined #angularjs
[16:11:14] *** ASUChand_ has quit IRC
[16:11:19] <Foxandxss> don't fuck my mood, it is early today
[16:11:21] <dannyc> Foxandxss: really not sure what your problem is.
[16:11:28] <tkdaj> umm..
[16:11:32] <tkdaj> sorry guys
[16:11:38] <Foxandxss> tkdaj: not your problem
[16:11:40] *** devinandrews has joined #angularjs
[16:11:52] *** the-anconia has joined #angularjs
[16:11:57] <Foxandxss> dannyc: I HATE when someone interrupts when I am helping someone
[16:12:04] <dannyc> tkdaj: he's right, it's not your problem. it's his. simply trying to help. i must learn my place.
[16:12:07] *** whitebook has quit IRC
[16:12:09] <Foxandxss> that is rude
[16:12:16] *** whitebook has joined #angularjs
[16:12:19] <sweeper> asdf guys
[16:12:21] <sweeper> it's irc
[16:12:29] <sweeper> multithread, and don't get butthurt
[16:12:33] <dannyc> Foxandxss: this is an IRC channel. if you don't like that PM him.
[16:12:40] *** dcherman has joined #angularjs
[16:12:48] <Foxandxss> dannyc: I do what I please
[16:12:56] <Foxandxss> not what you want
[16:12:56] <dannyc> Foxandxss: good for you.
[16:13:03] <the-anconia> I have two modals in an application that both post form data. Is it possible for both of these modals to use the same controller and share data tied to $scope?
[16:13:04] <Foxandxss> anyway, I had enough
[16:13:06] <sweeper> euphoria abounds
[16:13:07] *** ASUChan__ has quit IRC
[16:13:08] <Foxandxss> so the chat is over
[16:13:12] *** tomzx is now known as tomzx`afk
[16:13:21] *** cthrax has quit IRC
[16:13:22] *** ASUChander has quit IRC
[16:13:22] <dannyc> Foxandxss: yes sir.
[16:13:24] *** ahtik has quit IRC
[16:13:24] <Foxandxss> the-anconia: better to share via service, it is more sane
[16:13:49] *** obs has joined #angularjs
[16:14:09] <the-anconia> Foxandxss: Is there any way to do it within a controller though? This is a hacked together project I was thrown on that will only live online for a month.
[16:14:14] <jcool> How to update view after deleting, adding or editing data?
[16:14:22] *** grantfunke__ has quit IRC
[16:14:23] *** otisZart has quit IRC
[16:14:23] <jcool> My view gets updated but it takes 10s to do so. But json that gives repsonse to view gets updated immediaetly.
[16:14:24] *** pipoo has joined #angularjs
[16:14:45] *** FunnyLookinHat has joined #angularjs
[16:14:50] <obs> jcool, you use ng-repeat in your view?
[16:15:13] <jcool> obs, yes
[16:15:25] *** icfantv has joined #angularjs
[16:15:39] *** iamvfl has joined #angularjs
[16:15:46] *** otisZart has joined #angularjs
[16:15:50] <jcool> obs, is that root cause of issue?
[16:15:54] *** michaelfavia has joined #angularjs
[16:16:17] <sweeper> no, ng-repeat should be pretty much magical
[16:16:20] *** dman777_alter has joined #angularjs
[16:16:28] *** cacts has joined #angularjs
[16:16:29] *** blomman has quit IRC
[16:16:34] *** oste has joined #angularjs
[16:16:40] <obs> jcool, in my experience ng-repeat have a limit of 800 to 2000 items (depend of array/object) for heavy ng-repeat is better use react.js
[16:17:02] <jcool> sweeper, Then something else causing dealy.
[16:17:03] *** blomman has joined #angularjs
[16:17:04] <jcool> obs, Its just 15 daya
[16:17:05] <sweeper> jcool: pastebin, probably the json loading stuff isn't triggering a digest (unless you've got a lot of items)
[16:17:06] <jcool> data*
[16:17:07] *** freeman42 has quit IRC
[16:17:24] <Foxandxss> obs: virtualization works fine on those ng-repeats
[16:17:25] <obs> http://www.williambrownstreet.net/blog/2014/04/faster-angularjs-rendering-angularjs-and-reactjs/
[16:17:26] <jcool> sweeper, sure. I will pastebin view and controller
[16:17:29] *** pootpoot has joined #angularjs
[16:17:36] *** iamvfl has left #angularjs
[16:17:59] *** gnrlbzik has quit IRC
[16:18:25] <jcool> sweeper, http://www.hastebin.com/cisureviwa.django view file
[16:18:31] *** pipoo has quit IRC
[16:18:44] <jcool> sweeper, http://www.hastebin.com/omekeqezuv.lua js file.
[16:18:58] *** rho has joined #angularjs
[16:19:15] *** freeman42 has joined #angularjs
[16:19:16] <obs> i read more of this post, personally in the present i don't have the need of use react.js but maybe in the future could be interesting http://www.mono-software.com/blog/post/Mono/242/Improving-AngularJS-long-list-rendering-performance-using-ReactJS/
[16:19:23] <jcool> obs, looking
[16:19:47] *** arkin has quit IRC
[16:19:56] *** wallerdev has joined #angularjs
[16:20:32] *** nickBek has joined #angularjs
[16:20:58] <jcool> Initially I thought it to be backend issue, but as soon as I add data, json updates itself, I checked through url
[16:20:58] <sweeper> jcool: which of these $http calls isn't updating properly?
[16:21:08] <jcool> sweeper, viewcontroller one
[16:21:21] <sweeper> viewportscontroller?
[16:21:30] <jcool> sweeper, yeah line no 4
[16:21:32] <jcool> 40*
[16:21:34] *** cboden has quit IRC
[16:21:41] *** ASUchander1 has quit IRC
[16:21:49] <jcool> When I am firing request to ports.json to fetch all my data
[16:21:50] *** AngularUI has joined #angularjs
[16:21:51] <AngularUI> [ng-grid] c0bra pushed 1 new commit to 2.x: http://git.io/5DnT3Q
[16:21:51] <AngularUI> ng-grid/2.x b371a48 c0bra: Release v2.0.14
[16:21:51] *** AngularUI has left #angularjs
[16:22:13] *** mfunkie has quit IRC
[16:22:31] *** kas84 has quit IRC
[16:22:56] <sweeper> jcool: tried $scope.$apply in there? I forget if $http resolves inside a promise or not
[16:23:04] <sweeper> err
[16:23:10] <Foxandxss> tkdaj: sorry, lost my inspiration. $compile is a service used to ""instantiate"" the directives, nothing to do with compile function
[16:23:22] *** mbildner has quit IRC
[16:23:30] <sweeper> I forget if $http promises resolve inside an $apply or not
[16:23:39] *** ThomasBeauvais has quit IRC
[16:23:40] <jcool> sweeper, Last night I tried understanding how to use $apply but was unsuccessful. Can you help me lil to understand at which place it is to be used?
[16:23:47] *** numenor has joined #angularjs
[16:23:57] <sweeper> jcool: after line 41 is where I would try it
[16:24:09] <jcool> sweeper, How will that help with list?
[16:24:20] *** _ritchie_ has quit IRC
[16:24:25] <sweeper> $apply triggers a digest, i.e. update of the view
[16:24:35] <jcool> sweeper, yeah read that.
[16:24:49] *** klaut has joined #angularjs
[16:25:05] *** wallerdev has quit IRC
[16:25:09] *** ctanga has quit IRC
[16:25:27] *** m8 has quit IRC
[16:25:42] *** arkin has joined #angularjs
[16:25:55] *** dreambox has joined #angularjs
[16:26:06] <jcool> sweeper, $http callbacks are all wrapped in $scope.$apply()
[16:26:24] <jcool> Its written like this so It does call apply I suppose.
[16:26:41] *** mbildner has joined #angularjs
[16:26:45] <sweeper> jcool: mkay, so you get "digest already in progress" if you try $apply there?
[16:26:48] *** junmin has joined #angularjs
[16:26:53] *** dejanr has quit IRC
[16:27:07] *** mokush has joined #angularjs
[16:27:21] *** m8 has joined #angularjs
[16:27:45] <jcool> sweeper, I am little new to angular. But not able to understand how are you telling me to apply. I can read some docs if you point me too
[16:27:51] <dannyc> can anyone explain why formName.$invalid doesn't work to disable a form button anymore? by "anymore" i mean it doesn't now work in 1.3 http://plnkr.co/edit/1ppXJoJKcTnz9BKdIq1X?p=preview
[16:29:07] *** naneau has joined #angularjs
[16:29:14] *** mrits has joined #angularjs
[16:29:17] <sweeper> jcool: just, after line 41, in that same closure, put $scope.$apply();
[16:29:19] *** numenor has quit IRC
[16:29:26] *** cboden has joined #angularjs
[16:29:39] *** cthrax has joined #angularjs
[16:29:46] <sweeper> either it will work, or you will get an "already in progress" error
[16:29:49] *** mubi has joined #angularjs
[16:29:57] <jcool> sweeper, cool.trying
[16:30:06] *** [dalguete] is now known as dalguete
[16:30:14] *** sk87 has quit IRC
[16:30:17] *** dreambox has quit IRC
[16:30:18] <dannyc> ah, found it.
[16:30:31] *** Versuchen_ has joined #angularjs
[16:31:06] <Foxandxss> you were missing a ng-repeat
[16:31:08] <Foxandxss> err
[16:31:11] <Foxandxss> ng-model
[16:31:12] <Foxandxss> and a name
[16:31:17] *** mubi has quit IRC
[16:31:28] *** numenor has joined #angularjs
[16:31:52] <dannyc> Foxandxss: yeah, exactly. cheers. still doesn't fix my problem, just shows that i typed the plunkr too fast :) will try again.
[16:31:55] *** jshultz has joined #angularjs
[16:32:05] <Foxandxss> http://plnkr.co/edit/92UcnqYPSpNefOzkbf3i?p=preview
[16:32:08] <Foxandxss> dannyc: ^
[16:33:01] *** gnrlbzik has joined #angularjs
[16:33:14] *** sk87 has joined #angularjs
[16:33:38] *** jeffisabelle has joined #angularjs
[16:33:41] *** TinkerTyper has quit IRC
[16:33:52] *** eBureau has quit IRC
[16:34:08] <jcool> sweeper, error.
[16:34:14] <jcool> digest already in progress
[16:34:18] *** numenor has quit IRC
[16:34:22] *** mbildner has quit IRC
[16:34:23] *** optikalmouse has joined #angularjs
[16:34:45] *** numenor has joined #angularjs
[16:35:12] *** mnngfltg has joined #angularjs
[16:35:13] <sweeper> jcool: so that top binding is updating as expected ({{ports}}) but the ng-repeat isn't?
[16:35:33] <jcool> sweeper, I am printing out {{ports}} too
[16:35:41] *** rtpg has quit IRC
[16:35:41] <jcool> but even that doesnt update.
[16:35:53] <sweeper> oh, ok, that's a bit more sane at least...
[16:36:00] <jcool> yeah
[16:36:11] <sweeper> oh
[16:36:22] <sweeper> I think it's cause you didn't initialize $scope.ports
[16:36:44] <jcool> sweeper, I will try taht also :)
[16:36:52] <sweeper> put $scope.ports = []; after line 38
[16:37:02] <jcool> yeah
[16:37:09] *** xavia has joined #angularjs
[16:37:13] *** blomman has quit IRC
[16:37:25] <jcool> sweeper, amazing :)
[16:37:28] *** grantfunke__ has joined #angularjs
[16:37:31] <jcool> it works
[16:37:36] <sweeper> yea it's cause the bindings
[16:37:36] <calmbird> If I have routing .when('/page/subpage') .otherwise() ,on /page/noExistingSubpage, how to do something like next()
[16:37:46] *** Snugug has quit IRC
[16:37:55] <jcool> sweeper, new thing to learn
[16:38:04] <sweeper> bindings set up a watch on whatever vairable
[16:38:10] <sweeper> *variable
[16:38:11] *** ThomasBeauvais has joined #angularjs
[16:38:20] <jcool> ah
[16:38:26] <numenor> Clambird , what ?
[16:38:31] <sweeper> and then the digest processes changes by going through a list of watches
[16:38:33] <jcool> getting things slowly now into head
[16:38:40] *** blomman has joined #angularjs
[16:38:42] <juristr> Anyone having a sec?
[16:38:46] *** az7ar is now known as az7ar_away
[16:38:48] <calmbird> I have 404 page on .otherwise() and if there is no subpage on .when('/page/:subpage') I want to go to .otherwise()404
[16:38:54] <sweeper> but since originally it was undefined, they had nothing to watch
[16:38:55] *** Miphe has quit IRC
[16:39:00] <Helzibah> I have at least 3 seconds, and I shall spend them eating biscuits
[16:39:18] <numenor> Helzibah , lol
[16:39:18] <sweeper> Helzibah: with gravy I hope
[16:39:28] * Helzibah is british
[16:39:34] *** grantfunke__ has quit IRC
[16:39:37] <juristr> Helzibah: :)
[16:39:45] <Helzibah> these are cinnamon/ginger biscuits
[16:39:52] <juristr> Well I just came across this issue (http://stackoverflow.com/questions/19962965/how-do-i-check-whether-an-expression-attribute-has-been-provided-to-a-directive) and was wondering whether this is really the only way of doing it
[16:40:05] *** grantfunke__ has joined #angularjs
[16:40:05] *** icfantv has quit IRC
[16:40:07] <juristr> so to use the link function and verify there whether a scope property is set or not
[16:40:09] *** sk87 has quit IRC
[16:40:10] *** jtimon has quit IRC
[16:40:20] *** az7ar_away is now known as az7ar
[16:40:41] *** CodeFriar has joined #angularjs
[16:40:51] *** conan_the_destro has joined #angularjs
[16:41:25] *** Snugug has joined #angularjs
[16:41:25] *** DLSteve has quit IRC
[16:41:47] *** danflies has quit IRC
[16:42:03] *** dsdeiz has quit IRC
[16:42:25] *** mjs2600 has quit IRC
[16:42:37] *** firelinks has quit IRC
[16:42:59] *** smswz has joined #angularjs
[16:43:11] *** thirdknife_ has quit IRC
[16:43:16] *** jonr22 has joined #angularjs
[16:43:22] *** mruzekw has joined #angularjs
[16:43:24] *** FIFOd[a] has joined #angularjs
[16:43:41] *** ozooner has joined #angularjs
[16:43:44] <smswz> I have a question about testing a controller in angular.
[16:43:59] *** Beatzebub has quit IRC
[16:44:10] <devinandrews> How come when I share an angular service between two controllers, and directly overwrite a property in the service, the other controller still has the old value?
[16:44:11] *** Guest29 has joined #angularjs
[16:44:15] <smswz> I'm using a controller with ui.router and I would like to test certain parts of the controller constructor separate
[16:44:18] *** ozooner__ has quit IRC
[16:44:29] <jaawerth> devinandrews: sounds like you need (wait for it) MOAR DOTS
[16:44:43] <dannyc> jaawerth: :D
[16:44:46] *** Beatzebub has joined #angularjs
[16:44:57] *** mjs2600 has joined #angularjs
[16:44:59] *** grantfunke__ has quit IRC
[16:45:01] <smswz> I would like to spy on methods in the constructor, to test some some of the functionality separate
[16:45:02] * jaawerth bows
[16:45:06] <oniijin> MOARDAWTS
[16:45:34] <smswz> Or is there a better way to have set up data in a controller used by ui.router?
[16:45:39] <devinandrews> lol I think that unfortunately went right over my head
[16:45:58] <numenor> What's moar dawts ?
[16:46:06] <oniijin> you're getting hit by inheritance issues
[16:46:07] <jaawerth> smswz: if it's data that's coming in for that particular state, a resolve is the best way to go, IMO
[16:46:14] <oniijin> use objects, not primitives
[16:46:22] <juristr> devinandrews: It's probably because you completely overwrite the object reference with a new one
[16:46:22] *** grantfunke__ has joined #angularjs
[16:46:37] <oniijin> jaawerth we really need faq up, easier for them to just read explanation
[16:46:38] <jaawerth> devinandrews: How are you accessing the service in your respective controllers? Are you copying the value of the property or accessing it as YourService.property?
[16:46:39] *** bbankes has joined #angularjs
[16:46:50] <jaawerth> oniijin: I know, I'm going to start a blog this week I swear to god
[16:47:04] <oniijin> lol I have one! just need to put up info
[16:47:10] *** SeeThruHead has joined #angularjs
[16:47:12] <jaawerth> that's the same as not having a blog!
[16:47:15] <devinandrews> http://jsbin.com/hecewuqiha/1/edit?html,js,output
[16:47:18] *** acmehandle has joined #angularjs
[16:47:19] <oniijin> haha
[16:47:37] <acmehandle> Is $parse an angular function or javascript?
[16:48:00] *** jonr22 has quit IRC
[16:48:32] <smswz> jaawerth: There is a large amount of processing that needs to be done, should I abstract my controller to a service and then call the function from within the resolve of the state?
[16:48:53] *** shubhu has joined #angularjs
[16:49:02] <oniijin> yes?
[16:49:13] <jaawerth> yep, that is a good way to go
[16:49:16] <calmbird> Anyone knows, how can I pass .when('/page/:subpage') to .otherwise() when there is no subpage?
[16:49:28] <jaawerth> devinandrews: yeah, your problem there is that you're putting a primitive directly on scope
[16:49:30] <smswz> jaawerth: thanks!
[16:49:34] <calmbird> i mean skip no pass :P
[16:49:59] <arkin> calmbird: put it in your controller
[16:50:13] <devinandrews> jaawerth so if I understand correctly, should I also have a getter or something?
[16:50:13] <calmbird> arkin: What to put in controller?
[16:50:14] *** drugs has joined #angularjs
[16:50:16] <jaawerth> devinandrews: You always need to wrap your primitives in an object on scope if you want scope inheritance to play nice with data binding. It's a javascript thing - scope inheritance works via JS's prototypical inheritance
[16:50:39] <juristr> devinandrews: jaawerth exactly. devinandrews you should try to bind like "$scope.something = SS.something" and then access the right property from the template
[16:50:47] <jaawerth> devinandrews: nah, getters aren't really necessary in angular most of the time. It's purely the scope inheritance issue - primitives = values, passed by value, objects = references
[16:50:49] *** mbildner has joined #angularjs
[16:51:13] <arkin> calmbird: if ( ! $routeParams.subpage ) $location.path('/otherwise');
[16:51:17] <jaawerth> devinandrews: the easiest way to do this is using "controller as" syntax, this saves you from having to come up with arbitrary objects to wrap your primitives in
[16:51:30] *** Guest29 has quit IRC
[16:51:54] <numenor> Can you elaborate on controller as syntax?
[16:51:59] *** icfantv has joined #angularjs
[16:52:09] *** MaxV has quit IRC
[16:52:22] *** shinnya has quit IRC
[16:52:27] <oniijin> google bro
[16:52:28] <calmbird> arkin: Oh I get it. Well I have 404 page in .otherwise, I would like to show 404 page without changing $location.path
[16:52:31] *** cthrax has quit IRC
[16:52:40] <calmbird> $locationpath
[16:52:50] <jaawerth> devinandrews: also the line where you'er doing "$scope.something = $scope.thing.str" - that's going to copy the value of str on a one-time basis and not stay bound ,because it's a primitive
[16:52:51] *** ASUChander has joined #angularjs
[16:53:16] *** tomzx`afk is now known as tomzx
[16:53:19] <juristr> numenor: You're basically not injecting $scope into your controller, but rather you assign all variables you'd like to have bound to your scope to "this" inside your controller. Then in your HTML you bind the controller like ng-controller="MainCtrl as variableName". Then using variableName.someProp etc to access your variables
[16:53:19] <calmbird> If someone will write /page/noexistingsubpage, I would like adress to remain unchanged, and show 404
[16:53:33] *** Guest29 has joined #angularjs
[16:53:37] *** amphetamines has quit IRC
[16:53:38] <jaawerth> numenor: it's literally the equivalent of doing $scope.ctrlAlias = this; at the beginning of your controller. Then you stick properties on your controller and use it as an object to de-factor wrap your controller variables by using this.foo instead of $scope.foo
[16:53:54] <devinandrews> jaawerth: juristr ahhh thank you very much
[16:53:55] <juristr> numenor: This is quite a good article: http://toddmotto.com/digging-into-angulars-controller-as-syntax/
[16:53:55] *** AngularUI has joined #angularjs
[16:53:55] <AngularUI> [ng-grid] jiggak opened pull request #2008: include header,footer,scrollbar when calculating initial grid height (master...master) http://git.io/DjfO-Q
[16:53:55] *** AngularUI has left #angularjs
[16:53:56] <jaawerth> it greatly, GREATLY simplifies scope inheritance because of how much it cleans up your scopes
[16:54:57] *** favetelinguis has joined #angularjs
[16:55:33] *** crackerzNcheez has joined #angularjs
[16:55:36] <devinandrews> MOARDAWTS it is
[16:55:40] <numenor> Jaawerth , thanks,
[16:55:54] *** thomastuts has quit IRC
[16:56:04] *** sarath has joined #angularjs
[16:57:16] *** sacho has joined #angularjs
[16:57:29] *** bolbat has quit IRC
[16:57:42] *** gnrlbzik has quit IRC
[16:58:05] *** umib0zu has joined #angularjs
[16:58:46] *** jiskiras has joined #angularjs
[16:59:16] *** thedodd has joined #angularjs
[16:59:52] *** lexek_ has quit IRC
[17:00:23] *** MaxV has joined #angularjs
[17:00:24] <jaawerth> juristr: it's alright, but he's doing a pretty tortured workaround for using $scope.$watch (all he has to do is use the controllerAs alias instead of 'this')
[17:00:32] <jaawerth> juristr: good article other than that, though
[17:00:48] <oniijin> sounds awful
[17:00:51] *** Guest29 has quit IRC
[17:00:51] *** discgo has quit IRC
[17:01:01] <jaawerth> what does?
[17:01:21] <oniijin> scopewatch to workaround using this
[17:01:54] *** loverajoel has joined #angularjs
[17:02:14] <juristr> jaawerth: Well, I'm mostly using John Papa's "controllerAs with vm" suggestion on his styleguide (https://github.com/johnpapa/angularjs-styleguide#controllers). Works out fine and looks clean. But I guess it mostly boils down to preferences
[17:02:38] <jaawerth> oniijin: oh, no - he wanted to show an example of using watch on a controller property, and he's doing the function(){return someValue;} trick instead of just using the aliased controller name...
[17:02:46] *** shubhu has quit IRC
[17:02:50] *** shredjs has joined #angularjs
[17:03:07] *** conan_the_destro has quit IRC
[17:03:31] *** ctanga has joined #angularjs
[17:03:48] <shredjs> Hey i have a question... i have a startup with 4 friends and im kinda founder and im making a business card any idea what my title should be.... like ceo feels very pretentious... president is kind fine and founder for me sounds too amateur as we are quoting for big project $500k +
[17:03:51] *** emmesswhy has joined #angularjs
[17:04:04] <shredjs> i know its not totally related to angular but i know some of you guys are into business too
[17:04:04] <jaawerth> Emperor?
[17:04:05] <oniijin> founder
[17:04:07] *** matisoffn has joined #angularjs
[17:04:13] <oniijin> motherfuckin ceo
[17:04:14] <jaawerth> sorry, God-Emperor
[17:04:17] <sacho> god-emperor of dune
[17:04:22] *** conan_the_destro has joined #angularjs
[17:04:22] <jaawerth> Warrior King
[17:04:27] <shredjs> lol god emeperor of the spice
[17:04:28] <oniijin> pedro
[17:04:33] <numenor> Can't stop lolling !!
[17:04:49] <sacho> The God-Emperor of the Imperium?
[17:04:51] *** grantfunke__ has quit IRC
[17:04:57] <jaawerth> Philosopher King
[17:05:00] <oniijin> he with the biggest stick
[17:05:01] <shredjs> founder dont you find this too startupish ?
[17:05:02] *** emmesswhy has quit IRC
[17:05:07] <jaawerth> Chief Cook & Bottle-Washer
[17:05:09] <jaawerth> Chef*
[17:05:13] <oniijin> didnt u just say you're a startup
[17:05:23] <shredjs> yes but we want to appear big
[17:05:24] <acmehandle> First learn to use the word 'as' correctly
[17:05:26] <ctanga> UI-Router users: I want your opinion on this RFC related to optional parameters: https://github.com/angular-ui/ui-router/issues/1501
[17:05:29] <jaawerth> Chief Chef or Chief Cook? Hmm
[17:05:34] *** cthrax has joined #angularjs
[17:05:41] *** juristr has quit IRC
[17:05:44] <oniijin> y do u want to appear big
[17:05:54] <oniijin> unless investors are idiots they're going to easily see you're not big
[17:05:55] <acmehandle> to impress the ladies
[17:05:55] *** Guest29 has joined #angularjs
[17:05:56] <sweeper> shredjs: if you want to appear big, then you want CEO
[17:06:06] <oniijin> in which case they're just going to think you're full of shit
[17:06:07] <jaawerth> ctanga: is this the same one you sent the other day? I didn't see it until too late
[17:06:08] <acmehandle> Who says investors arent idiots?
[17:06:12] <numenor> Major kong
[17:06:13] <ctanga> jaawerth: it is
[17:06:14] <shredjs> because we are tryin to work with company worth millions... and last quote they said we were too noobish
[17:06:16] *** Guest29 has quit IRC
[17:06:16] *** araujo has quit IRC
[17:06:34] <oniijin> I dont think changing your title is going to fix that
[17:06:46] *** loverajoel has quit IRC
[17:06:47] *** knownasilya has joined #angularjs
[17:06:47] *** Evanion has quit IRC
[17:06:48] <acmehandle> Sensei?
[17:06:48] <shredjs> thats probably the case
[17:06:51] <acmehandle> Sifu.
[17:07:05] <acmehandle> Maybe give it some old world wisdom?
[17:07:11] *** Guest29 has joined #angularjs
[17:07:18] <shredjs> i guesss i could use foudner
[17:07:20] <shredjs> founder
[17:07:24] *** dejanr has joined #angularjs
[17:07:27] <sweeper> Partner?
[17:07:29] <shredjs> ceo in my language is ugly :P
[17:07:32] *** MaxV has quit IRC
[17:07:33] *** conan_the_destro has quit IRC
[17:07:34] *** Guest29 has quit IRC
[17:07:39] *** StryKaizer has quit IRC
[17:07:43] <sweeper> what's your language?
[17:07:45] <oniijin> Big Pooba
[17:07:59] <ctanga> feel free to use my title: http://i.imgur.com/sknYHxN.png
[17:07:59] *** laurensclaessen has quit IRC
[17:08:06] <acmehandle> Wait a minute. Youre serious?
[17:08:07] *** Guest29 has joined #angularjs
[17:08:11] <shredjs> hahha nice
[17:08:11] *** araujo has joined #angularjs
[17:08:15] <jaawerth> ctanga: is this currently the only way to hide the params from the url?
[17:08:19] *** phuh has quit IRC
[17:08:23] <shredjs> I guess i could use co-founder
[17:08:40] <acmehandle> Dude. You have business cards?! That alone is worth its weight in gold Forget about titles
[17:08:41] *** phuh has joined #angularjs
[17:08:44] <ctanga> jaawerth: you can have non-url parameters but those do not survive a browser refresh
[17:08:56] <lena_> hi
[17:09:11] <jaawerth> ctanga: what about, as we discussed before, object params? Are those hidden automatically, or does it do a strict/referential comparison to determine whether what you pass is the "default"?
[17:09:17] <jaawerth> oh,
[17:09:18] <shredjs> what do you mean acmehandle
[17:09:19] *** conan_the_destro has joined #angularjs
[17:09:19] <jaawerth> nevermind
[17:09:21] *** mubi has joined #angularjs
[17:09:25] <lena_> any idea how can I stop event bubbling in case like that: http://jsfiddle.net/2m9ozge5/22/ ?
[17:09:39] <acmehandle> Sorry, I guess I'm just naive. I thought you were joking
[17:09:40] <numenor> How does director sound?
[17:09:42] <ctanga> jaawerth: it uses Type.equals() to determine if it’s the default value
[17:09:46] <jaawerth> ctanga: I don't think I like this feature - it would complicate deep linking
[17:09:53] <oniijin> director is pretentious full of shit
[17:09:57] <numenor> Shredjs , the director
[17:10:02] <oniijin> unless you're at a legit large company with directors
[17:10:06] <numenor> Oh
[17:10:15] <ctanga> jaawerth: the question we’re trying to answer is “what is the preferred default behavior”
[17:10:19] <numenor> Eeww
[17:10:19] <shredjs> hmmm director is an option too
[17:10:21] <oniijin> dont fucking call yourself director of a 4 man startup
[17:10:25] <jaawerth> like, what if your default parameter for /user/foo depends on who's logged in?
[17:10:28] <ctanga> jaawerth: all 3 options are available to you
[17:10:31] <jaawerth> ahh okay
[17:10:41] <shredjs> i would rather use technical director or something to show what is my role in the compagny
[17:10:46] <ctanga> so if you prefer no squashing *at all*, please comment in the RFC
[17:10:55] <jaawerth> in that case, I think unsquashed should be the default. People should only use squashed when they know the potential consequences
[17:10:56] *** chromatome has joined #angularjs
[17:11:00] <jaawerth> will do
[17:11:04] <shredjs> lol oniijin the shit cray bro :P
[17:11:16] *** stirlingw has joined #angularjs
[17:11:17] <jaawerth> Yeah, Philosopher King is way better
[17:11:27] <shredjs> i think im just gonna go with foudner
[17:11:28] <jcool> My certain part of url is fixed as in : xyz + "/file". Now xyz may change if Change my backend to some other place. better to define it globally and use in all?
[17:11:35] <oniijin> track record, dress the part, have pretty cards
[17:11:37] <shredjs> founder ... i wanted president first but ... too old
[17:11:39] <acmehandle> What does Silicon Valley say?
[17:11:41] *** SoulBlade has joined #angularjs
[17:11:45] <oniijin> dont call yourself something pretentious, thta just makes you look nub
[17:11:50] <numenor> Oniijin has some real bad experience with directors..
[17:12:00] <acmehandle> Surely there must be a quote from there that can be used
[17:12:01] <oniijin> ?
[17:12:01] *** klaut has quit IRC
[17:12:02] <ctanga> jaawerth: in many cases you might want the default value to be the logged-in-user
[17:12:13] *** calmbird has quit IRC
[17:12:15] <ctanga> I mean: you might want the default value to depend on the logged-in-user
[17:12:19] <oniijin> numenor not really, I've worked at companies that have legit directors
[17:12:20] <jaawerth> yeah
[17:12:28] <jaawerth> but you'd have to be careful how you use that if you want deep linking
[17:12:32] <ctanga> right
[17:12:40] *** JGibbs has joined #angularjs
[17:12:42] <numenor> Technical partner ?
[17:12:44] *** noiserocker has quit IRC
[17:12:46] *** svycka has quit IRC
[17:12:52] <oniijin> that doesn't even make sense
[17:12:56] <jaawerth> hmm on the other hand....
[17:12:59] <ctanga> you’d be linking to /dashboard and that would always be *my dashboard*, while /dashboard/johndoe would be johndoe’s dashboard
[17:12:59] <jaawerth> I can see it both ways
[17:13:03] <JGibbs> anyone have any good resources on factories?
[17:13:08] <jaawerth> that's true
[17:13:09] <oniijin> the internet
[17:13:12] <numenor> Humm ...
[17:13:21] *** ozooner has quit IRC
[17:13:30] <jaawerth> but what if it's /user/bob/home and you're linking to like a file you own?
[17:13:32] <jaawerth> depends on context
[17:13:42] <ctanga> yeah
[17:13:49] <ctanga> should be up to the dev in the end
[17:13:53] *** laurensclaessen has joined #angularjs
[17:14:03] <ctanga> and this is only for params *with default values*
[17:14:03] *** sonofdirt has joined #angularjs
[17:14:04] <oniijin> jaawerth what are u talking about sounds important
[17:14:07] <oniijin> missed it
[17:14:22] <jaawerth> it's a good feature, but because it takes a long time for users to become comfortable with ui-router's features I'd say the most self-explanatory default mode is best
[17:14:23] <ctanga> UI-Router users: I want your opinion on this RFC related to optional parameters: https://github.com/angular-ui/ui-router/issues/1501
[17:14:27] *** mubi has left #angularjs
[17:14:32] <ctanga> ^ oniijin
[17:14:33] <jaawerth> oniijin: ^ that
[17:14:36] *** dan2k3k4 has quit IRC
[17:14:39] <oniijin> oniijin ^ ok
[17:14:43] <jaawerth> haha
[17:14:49] *** monir has joined #angularjs
[17:15:08] <ctanga> jaawerth: That’s a reasonable argument for no-squash as default
[17:15:12] <shredjs> anyway guys thanks a lot on that brain storm !!
[17:15:18] *** blomman has quit IRC
[17:15:21] <jaawerth> ctanga: Yeah, that's what I'm gonna post
[17:15:25] <ctanga> do it
[17:15:33] <ctanga> i want opinions
[17:15:36] <ctanga> preferably non-biased
[17:15:38] <ctanga> :)
[17:15:45] <devinandrews> Are there any downsides to using controller as syntax?
[17:15:56] *** blomman has joined #angularjs
[17:15:59] <ctanga> devinandrews: yeah, it causes your code to be cleaner :(
[17:16:04] <devinandrews> oh no :(
[17:16:09] *** SoulBlade has quit IRC
[17:16:10] *** jonathanpglick has joined #angularjs
[17:16:13] <oniijin> u dont get to hear us shout MOARDOTS
[17:16:19] <ctanga> haha
[17:16:21] <BahamutWC|Work> in short ,3
[17:16:23] <oniijin> that's the biggest downside
[17:16:25] <BahamutWC|Work> in short, use it*
[17:16:27] <devinandrews> So, less job security. lol
[17:16:28] <jaawerth> ctanga: I assume in either case you'll be able to override the default behavior both on a single-state basis AND in the config block
[17:16:29] <numenor> Lol ...
[17:16:34] <ctanga> jaawerth: correct
[17:16:43] <oniijin> ok reading this dealymajigger
[17:16:47] <ctanga> $urlMatcherFactory.setDefaultSquashPolicy(“nosquash”)
[17:17:08] <jaawerth> ctanga: wait, I'm confused. the RFC doesn't even seem to have a no-squash option
[17:17:15] <jaawerth> I guess I'm going for the unlisted option C
[17:17:29] <jaawerth> oh wait
[17:17:32] <ctanga> 3 Parameter Squashing options
[17:17:33] <jaawerth> yeah
[17:17:46] *** _ritchie_ has joined #angularjs
[17:17:55] <ctanga> and .state(‘mystate’, { url: ‘/foo/:param’, params: { foo: { squash: false, value: ‘defaultvalue’ } } })
[17:18:08] <oniijin> how does that affect linking and refreshes?
[17:18:14] <jaawerth> A - squash default parameter *value* and *one slash*, B - squash *values* only
[17:18:27] <ctanga> oniijin: that’s what the RFC is discussing
[17:18:38] *** Efrem is now known as Efrem-Away
[17:18:41] <ctanga> nosquash will put the *default value* into the URL
[17:18:47] <ctanga> value will eliminate the value
[17:18:57] <ctanga> slash will eliminate the value *and one slash*
[17:18:57] *** Sjimi has quit IRC
[17:18:59] <jaawerth> haha I'm just saying they didn't keep that listed as an option C :p
[17:19:07] <ctanga> ok :)’
[17:19:13] <jaawerth> they/you/whatever
[17:19:33] <oniijin> is there a purpose other than pretty url?
[17:19:45] <ctanga> oniijin: not really
[17:19:48] *** az7ar is now known as az7ar_away
[17:19:49] <jaawerth> as ctanga mentioned, it would actually help deep linking in some cases
[17:20:03] <ctanga> oniijin: really ^
[17:20:08] <jaawerth> like a link to a user-dependent profile page
[17:20:12] <oniijin> by generating numbers?
[17:20:14] *** blomman has quit IRC
[17:20:22] <jaawerth> though honestly I don't even know if I'd use a param for that in the first place
[17:20:40] <jaawerth> I'd probably just use /your/profile and have it figure out the rest with a resolve/user service
[17:20:44] <oniijin> in the user profile page, I'd assume u'd get user from auth service
[17:20:46] <oniijin> not param
[17:21:29] *** mica has joined #angularjs
[17:21:30] <jaawerth> hmmm on the other hand...
[17:21:45] *** kas84 has joined #angularjs
[17:21:48] <oniijin> i like option B just so I can see that something is supposed to be there
[17:21:58] <oniijin> but it kinda defeats the pretty url goal
[17:21:58] *** mica has left #angularjs
[17:22:09] <jaawerth> I think that will just confuse non-coders
[17:22:22] *** JiGGaK has joined #angularjs
[17:22:23] <oniijin> right, users looking at url will think there's an error
[17:22:26] *** wallerdev has joined #angularjs
[17:22:28] *** juampy has joined #angularjs
[17:22:38] <oniijin> from user standpoint, A would be less confusing
[17:22:47] *** az7ar_away is now known as az7ar
[17:22:57] *** olivvv has joined #angularjs
[17:23:31] <jaawerth> in most cases, I imagine the optional parameters' default value will be undefined anyway
[17:23:32] *** phpxadmin has joined #angularjs
[17:23:39] <oniijin> so option C is to add shit to the end, but not squash?
[17:23:40] <ctanga> A is prettiest. A can be ambiguous if not used carefully. C is very verbose. C is not error prone. B has weird extra slashes and is also not error prone.
[17:24:02] *** ccohn has quit IRC
[17:24:03] *** sigurding has quit IRC
[17:24:09] *** rosieres has joined #angularjs
[17:24:12] <oniijin> in terms of usability I would think not squashing by default
[17:24:22] <ctanga> please add your comment to the RFC
[17:24:23] <oniijin> that would get crazy confusing for people
[17:24:28] <jaawerth> like, my primary use-case for this would be to have a state both with and without a param without having to create a whole child state for the added param
[17:24:31] *** scythe__ has joined #angularjs
[17:24:37] *** az7ar is now known as az7ar_away
[17:24:40] *** ccohn has joined #angularjs
[17:24:41] *** MaxV has joined #angularjs
[17:24:42] <themime> ctanga: i was just looking at the ui-router default param stuff, is that live, like can you easily remove params now and still use state.go?
[17:24:43] *** ffs82defxp has quit IRC
[17:24:48] *** JGibbs has left #angularjs
[17:24:48] <jaawerth> ctanga: just thinking out loud
[17:24:52] <jaawerth> I'll definitely add a comment
[17:25:04] *** cheef has quit IRC
[17:25:11] *** DLSteve has joined #angularjs
[17:26:00] <oniijin> commented
[17:26:08] <ctanga> themime: optional params are sorta somewhat working in 0.2.12-pre1
[17:26:27] <ctanga> themime: once we decide on this last item, I’m adding the full implementation to `master`
[17:26:28] <olivvv> hi. I am writing a directive which is collecting child nodes that are within a ng-include. When the directive is running (controller and link), those childs nodes are not available yet. Changing priority does not help.
[17:26:50] <ctanga> optional params sorta somewhat work in 0.2.11 too
[17:27:04] <ctanga> 0.2.11 uses option (A) by the way
[17:27:05] <themime> ctanga: hm ill have to check what version im using. i tried messing with it a bit ago and just had my team use a shared service instead
[17:27:10] *** wallerdev has quit IRC
[17:27:10] *** shubhu has joined #angularjs
[17:27:11] <ctanga> but only sorta somewhat kinda
[17:27:13] *** jpstone has joined #angularjs
[17:27:28] <ctanga> thanks oniijin
[17:27:30] *** arabot has joined #angularjs
[17:27:31] <olivvv> I there a way to make sure the directive can grab those node hidden behind the ng-include ?
[17:27:33] *** arabot has quit IRC
[17:27:33] *** Lynxium has quit IRC
[17:27:52] *** Efrem-Away has quit IRC
[17:27:56] *** jillesme has quit IRC
[17:28:00] *** Lynxium has joined #angularjs
[17:28:14] <jpstone> Why does an angularjs factory return old data, even if I'm passing new data as an argument to it?
[17:28:19] <oniijin> ctanga I think sample use cases, etc would def help too.
[17:28:25] <jpstone> It only updates if I hit refresh on the page
[17:28:40] *** ccohn has quit IRC
[17:28:41] <oniijin> like I might think one way about it now, but if I see a use case of aonther way it might change my mind
[17:28:46] *** cigarshark has joined #angularjs
[17:28:58] <ctanga> oniijin: you dont like my gallery example? ;)
[17:28:58] <oniijin> jpstone not digesting probly
[17:29:07] *** ccohn has joined #angularjs
[17:29:11] *** jillesme has joined #angularjs
[17:29:13] <oniijin> ctanga my eyes glaze over at seas of text =p
[17:29:37] <ctanga> yes i am verbose
[17:29:40] <jpstone> where do I force the digest? in the service or controller?
[17:30:00] <ctanga> just pretend that it’s a lovely novel
[17:30:04] <ctanga> print it out and sit by the fire
[17:30:06] <oniijin> depending on what you're doing, u can try wrapping your assignment in apply
[17:30:06] *** Efrem has joined #angularjs
[17:30:07] <numenor> Olivvv .. Can timeout help?
[17:30:14] <oniijin> ctanga i dont read novels
[17:30:20] *** nerder has joined #angularjs
[17:30:31] <nerder> hello
[17:30:39] *** moritzs has quit IRC
[17:30:41] *** obs has quit IRC
[17:30:51] <ctanga> then a series of memes, perhaps?
[17:31:07] <ctanga> I can put pictures of ducks on the RFC if it helps
[17:31:45] <oniijin> yeah
[17:31:48] <oniijin> def
[17:31:56] <oniijin> need some boobs up in there
[17:31:59] <oniijin> liven the place up
[17:32:06] <ctanga> RFCs gone wild
[17:32:14] <oniijin> now that'd I'd read
[17:32:23] <oniijin> that*
[17:32:25] *** mahomaho has quit IRC
[17:32:30] <oniijin> got too excited with the double Ds
[17:32:31] <nerder> can u help me understand this issue : https://gist.github.com/anonymous/2f7d8b7b61674be8053d
[17:32:39] *** mchammer has quit IRC
[17:32:47] <ctanga> haha, clever :P
[17:33:09] <ctanga> nerder, that’s not an issue, that’s just some pasted code
[17:33:10] <oniijin> ctanga do u have live examples of each option up
[17:33:14] *** ccohn has quit IRC
[17:33:18] <oniijin> ctanga that IS an issue
[17:33:20] <lena_> I don't want to be that inpatient user but anyone looked on my issue? how can I intercept and block events from directive: http://jsfiddle.net/2m9ozge5/22/ ?
[17:33:21] <nerder> debugging my app i can see that loadData() is lunched first than getDetails() that's why i get an "undefined" at line 17
[17:33:28] <nerder> ctanga: yep sorry i was typing
[17:33:31] *** kas84 has quit IRC
[17:33:34] *** whiteboo_ has joined #angularjs
[17:33:42] *** cpk has joined #angularjs
[17:33:44] <oniijin> sounds like async issues
[17:33:45] <ctanga> oniijin: i do not, but that’s an idea
[17:33:50] <oniijin> (without looking at code)
[17:33:53] <nerder> is that why ng-submit go first than ng-click?
[17:34:06] *** red_horned_rihno has quit IRC
[17:34:07] <oniijin> ctanga if I can play around with each option that'd make it way easier for me to see the differences
[17:34:07] *** danflies has joined #angularjs
[17:34:14] *** soee has joined #angularjs
[17:34:17] <olivvv> numenor: probably, but I doubt this would be the correct way, no ?
[17:34:29] <oniijin> nerder no idea, but usually if ur running two things and one thing is getting undefined, that sounds like async issues
[17:34:31] *** mruzekw has quit IRC
[17:34:42] *** HelperW has quit IRC
[17:34:50] <JiGGaK> ne1 here work on/maintain the angular-ui/ui-grid project?
[17:35:04] *** matthoiland has joined #angularjs
[17:35:16] *** Taobitz has joined #angularjs
[17:35:17] *** cacts has quit IRC
[17:35:39] <nerder> oniijin: that's what i think, but i mean how can i force angular to run getDetails first then loadData()
[17:35:39] *** whitebook has quit IRC
[17:35:44] *** mtsr has quit IRC
[17:35:46] <numenor> It wouldn't be the correct way.. But just for debugging purposes..
[17:35:56] <oniijin> use promises around your async calls
[17:35:59] *** Taobitz has quit IRC
[17:36:02] <ctanga> promises
[17:36:05] <themime> ^
[17:36:08] <oniijin> ^
[17:36:08] <ctanga> it’s the answer
[17:36:08] <themime> promises are so sexy
[17:36:10] <themime> haha
[17:36:13] <oniijin> ^ ^
[17:36:16] <themime> ^^^
[17:36:16] <ctanga> ^_^
[17:36:24] <oniijin> ^_____-
[17:36:28] <themime> tuesday you so cray
[17:36:30] <ctanga> ._____.
[17:36:36] <oniijin> <___<
[17:36:38] <jpstone> so if I log the returned data in the service, it's updated. but the controller, in my .then(function (data) in my controller (from a deferred.promise), the data is a step behind. even though 'data' should be the same thing that just showed up dated in the service
[17:36:39] *** rtpg has joined #angularjs
[17:36:53] <ctanga> ◕ ◡ ◕
[17:36:55] <numenor> Olivvv , it just add a script tag in the html template, set a variable in the tag, when the ng-include loads the template the variable will be available,, you can test if variable available or not.
[17:37:01] <oniijin> winnerwinner
[17:37:14] <shubhu> my jquery post request to google docs works fine but angular post request turns into options request which fails
[17:37:26] <oniijin> ¢∞¢
[17:37:31] *** Guest95201 has quit IRC
[17:37:35] <shubhu> do i need to add any thing else to make it work
[17:37:37] <ctanga> ⊙﹏⊙
[17:37:40] <jpstone> wrapping it in an $apply doesn't do anything
[17:37:54] <oniijin> then it prob wasnt a digest issue
[17:38:01] *** bkuberek has joined #angularjs
[17:38:05] <oniijin> tho it really does sound like a digest issue
[17:38:28] <themime> jpstone: have a plunker?
[17:38:39] <jpstone> i s'pose i will throw one together
[17:39:07] *** azizur has quit IRC
[17:39:27] *** jonathanpglick has quit IRC
[17:39:39] *** matthoiland has quit IRC
[17:39:42] *** CROS_ has left #angularjs
[17:40:45] *** bayousoft has quit IRC
[17:40:47] <olivvv> numenor: basically you siggest pooling for the content of the ng-include. Yes that would always work, but thats not really the angular way of solving stuff, isn't it ?
[17:40:59] *** klaut has joined #angularjs
[17:41:16] <numenor> Olivvv ... Yes, it isn't
[17:41:19] *** bayousoft has joined #angularjs
[17:41:20] *** prbc has quit IRC
[17:41:25] *** JohnFree has joined #angularjs
[17:41:28] *** rtpg has quit IRC
[17:41:38] *** prbc has joined #angularjs
[17:41:43] *** bkuberek_ has quit IRC
[17:41:47] <numenor> But i wonder how to know that the html has loaded.
[17:41:59] <JohnFree> Hi guys. I have a bunch of <script>-Tags in my index.html which include all the AngularJS-Modules and Controllers. It looks very messy. Isn't there a way to solve this betterß
[17:41:59] <JohnFree> ?
[17:42:09] *** MaxV has quit IRC
[17:42:10] <themime> JohnFree: a minifier/builder like gulp
[17:42:14] <themime> or grunt
[17:42:20] *** jillesme has quit IRC
[17:42:31] *** arkin has quit IRC
[17:42:45] <numenor> Olivvv, But i wonder how to know that the html has loaded.
[17:42:46] <themime> JohnFree: the group i work for has it all in the default though and thats all that file does - it has an empty ui-view linked to a layout in a nother file
[17:42:47] *** soj has quit IRC
[17:42:48] <JohnFree> themime: But I want a clean code.
[17:43:18] <JohnFree> themime: Some guys combine AngularJS with RequireJS but that looks to overexaggerated to me
[17:43:19] <themime> JohnFree: the minifier is for production only, the client won't see your code, just that it loads a little bit faster - plus its harder to steal it
[17:43:24] *** cam_y has joined #angularjs
[17:43:42] <themime> JohnFree: i agree, angular already has dependency injection, requirejs is too much
[17:43:44] <JohnFree> themime: I know. But I want a fellow worker to ready my code
[17:43:52] <themime> JohnFree: you give them an unminified version
[17:43:54] <JohnFree> themime: Yeah.
[17:43:54] *** tristanp has joined #angularjs
[17:43:54] <ctanga> the correct answer IMHO is: it depends
[17:44:02] <themime> JohnFree: oh i see
[17:44:15] <tristanp> which editor is he using in this talk? https://www.youtube.com/watch?v=Mk2WwSxK218&feature=youtu.be
[17:44:17] *** MANCHUCK has quit IRC
[17:44:22] <tristanp> this is totally angular related btw
[17:44:44] *** rburns has quit IRC
[17:44:48] <themime> tristanp: looks like sublime maybe
[17:44:56] <JohnFree> themime: Yeah. For this reason I wanted to make it more beautiful.
[17:45:07] *** s3shs has joined #angularjs
[17:45:08] <jpstone> eh...i don't know how i fixed it, but I did :D
[17:45:08] <Helzibah> yeah, looks like Sublime to me
[17:45:21] <numenor> Johnfree .. Have a look at kibana .. It's angular js.. Using require js... But i feel it's confusing
[17:45:24] <themime> JohnFree: well do you just have them all together in one place? i have them sorted by service, feature, etc with html <!-- comment tags -->
[17:45:37] *** toad-br has joined #angularjs
[17:45:56] <JohnFree> numenor: The combination of requirejs and angularjs is really too much spaghetti
[17:45:59] <jpstone> basically the $scope var I was watching, I had to create it as 'null' before assigning it in my api promise...then watch it
[17:45:59] *** bkuberek_ has joined #angularjs
[17:46:06] <themime> it doesn't feel very cluttered or messy to me. we're at like 5-8 features right now
[17:46:08] *** jillesme has joined #angularjs
[17:46:13] <themime> several filters and directives
[17:46:29] *** antons__ has quit IRC
[17:46:30] <JohnFree> themime: Ok, so it's not a problem to have multiple <script> include directives in index.html?
[17:46:46] <numenor> Johnfree , right.. I say don't go that way.. That's why i say it's confusing
[17:46:47] *** slopjong has quit IRC
[17:46:50] <JohnFree> I have 13 <script> includes
[17:46:50] <themime> JohnFree: no. not for testing
[17:47:00] *** brian____ has joined #angularjs
[17:47:05] <themime> JohnFree: i have 30 i think
[17:47:11] <JohnFree> themime: Ok. That helps me :)
[17:47:19] <jaawerth> lena_: think about the DOM - a click on a child element (one of your li/a tags) bubbles up to the parent directive (the one with your directive). As a result, your stopPropagation isn't goign to work because it already would ahve triggered your ng-clicks and bubbled up past them to reach your directive
[17:47:26] *** jillesme has quit IRC
[17:48:04] *** matthoiland has joined #angularjs
[17:48:10] <themime> JohnFree: organized by <!-- services -->, globals features like directives, then features. i have links related to the feature pages above. before you send it to a client though you can use a minifer to make one JS and CSS file so you only have to send them two files
[17:48:14] *** DoubleAW has quit IRC
[17:48:26] *** favetelinguis has quit IRC
[17:48:30] *** brian____ is now known as bgerami
[17:48:32] *** mahomaho has joined #angularjs
[17:48:33] <lena_> jaawerth, heh right - I made a dirty click with a ng-click="canClick && action()" but it doesn't seems to be very elegant :(
[17:48:42] <lena_> dirty fix*
[17:48:42] *** bkuberek has quit IRC
[17:48:45] *** DoubleAW has joined #angularjs
[17:48:49] <themime> JohnFree: but if youre sending it to another coding having a lot of scripts is not a problem as long as its readable to you and other people. sometimes what we are concerned about being an issue ends up not mattering at all in the "real world"
[17:48:56] <themime> sending it to another coder*
[17:48:59] *** favetelinguis has joined #angularjs
[17:49:14] *** threesixes has joined #angularjs
[17:49:19] <olivvv> numeror: this would be the best pattern around : http://stackoverflow.com/questions/15207788/calling-a-function-when-ng-repeat-has-finished
[17:49:20] *** platonic has joined #angularjs
[17:49:23] <JohnFree> themime: Aha. So I minify all 13 javascript-files to one file and only have one <script>-include-Directive when deliver the product
[17:49:30] *** narutimateum2 has quit IRC
[17:49:53] <JohnFree> themime: Ok.
[17:49:54] <jaawerth> lena_: better to wrap that in a function, yeah. As a thought experiment awhile back I wrote a conditional ng-click that unregisters/reregisters a click listener based on an observed attribute. This would likely be the most performant way to do it - I can dig up the plunk if you'd like
[17:49:54] *** narutimateum2 has joined #angularjs
[17:49:55] <themime> JohnFree: exactly
[17:49:56] <numenor> Olivvv .. Will have a look
[17:50:20] *** jaydubya has joined #angularjs
[17:50:29] <olivvv> numeror: but that's not crazily elegant. Here angularjs doesn't scale well imo...
[17:51:27] *** marduke182 has joined #angularjs
[17:51:30] <numenor> Olivvv .. Yes, just another elegant hack
[17:51:32] *** oktapodi has quit IRC
[17:51:36] *** jmverges has quit IRC
[17:51:37] *** subsonic has joined #angularjs
[17:51:41] *** oktapodi has joined #angularjs
[17:51:51] *** subsonic has quit IRC
[17:52:02] *** snurfery has joined #angularjs
[17:52:04] <lena_> jaawerth, there will be any elements with that ng-click and I'm afraid about performance - I'm working with closed hardware and quite old WebKit
[17:52:31] *** apertoire has quit IRC
[17:52:54] *** Guest29 has quit IRC
[17:53:01] *** walden is now known as walden|lunch
[17:53:08] *** jmverges has joined #angularjs
[17:53:09] *** favetelinguis has quit IRC
[17:53:32] *** t_smith has joined #angularjs
[17:53:37] *** platonic has quit IRC
[17:53:58] *** thedodd has quit IRC
[17:54:03] <shubhu> my cross domain ajax post request using angular turns into options request while jquery works fine why is that happening
[17:54:04] <olivvv> numenor: "elegant hack" sounds like "sophisticated duct-tape"
[17:54:04] <lena_> jaawerth, what do you think about idea of adding overlay that will intercept all events ? but then getting the right target element for click might be tricky
[17:54:06] *** AngularUI has joined #angularjs
[17:54:07] <AngularUI> [ng-grid] jcompagner opened pull request #2009: scrollbars can be enabled per instance in 3 modes: always,never or when_needed (master...scrollbars2) http://git.io/U18i_A
[17:54:07] *** AngularUI has left #angularjs
[17:54:07] <jaawerth> lena_: obligatory "beware of premature optimization" but check this out then, this would help you keep your number of active listeners to a minimum, and attrs.$observe is pretty good performance-wise http://plnkr.co/edit/FxhxeO1lYys92uAPWlQA?p=preview
[17:54:10] <themime> JohnFree: i just counted i think i have 40 script tags haha
[17:54:14] <shubhu> anyone?
[17:54:29] *** favetelinguis has joined #angularjs
[17:54:37] *** jacuqesdancona has quit IRC
[17:54:47] *** moritzs has joined #angularjs
[17:54:50] <jaawerth> lena_: code in that plunk will actually unregister the click listeners and reregister them depending on the attr value
[17:54:52] <numenor> Olivvv ... Good synonym for that !
[17:54:56] *** robdubya has joined #angularjs
[17:54:56] *** jaydubya has quit IRC
[17:55:06] <lena_> jaawerth, well this is a custom scroll container that will have to handle up to 50k records (of course not all in DOM at once!)
[17:55:10] *** dmra has quit IRC
[17:55:15] *** azizur has joined #angularjs
[17:55:26] *** frankblizzar has quit IRC
[17:56:05] <lena_> jaawerth, will give it a try! thanks a lot :)
[17:56:08] *** juanpablo__ has joined #angularjs
[17:56:09] <icfantv> i need a CSS expert. anyone?
[17:56:27] *** AngularUI has joined #angularjs
[17:56:27] <AngularUI> [ng-grid] jcompagner closed pull request #1883: support for scrollbars only visible if they are needed (master...scrollbarsondemand) http://git.io/j5ecYw
[17:56:27] *** AngularUI has left #angularjs
[17:56:46] <chromatome> For an app I'm working on, we've got the api living at api.example.com but will be hosting the app under the standard www. Will I still encounter issues with cross domain requests?
[17:56:51] *** jonathanpglick has joined #angularjs
[17:56:58] *** marduke182 has quit IRC
[17:57:23] *** kreiggers has joined #angularjs
[17:57:27] *** AngularUI has joined #angularjs
[17:57:27] <AngularUI> [ng-grid] jcompagner closed pull request #1880: an option to enable only horizontal or vertical scrollbars (master...scrollbars) http://git.io/mZI2LQ
[17:57:27] *** AngularUI has left #angularjs
[17:57:33] <themime> icfantv: try #css?
[17:57:38] *** Raging_Hog has quit IRC
[17:57:39] <jaawerth> shubhu: it would help a lot if we saw your code. Also, when you say it turns into an options request, how is that showing itself? Does it actually look different in your outgoing browser header?
[17:57:46] <jaawerth> via dev tools?
[17:57:52] <themime> icfantv: we're pretty open here but just seems odd you'd ask here i guess
[17:57:57] <jaawerth> icfantv: ask, don't ask to ask ;-)
[17:58:05] <icfantv> oooo, thanks themime. i didn't know there was a channel. though, in retrospect.
[17:58:05] <themime> ^
[17:58:11] <themime> np :)
[17:58:15] <icfantv> jaawerth: technically, i didn't
[17:58:15] *** laurensclaessen has quit IRC
[17:58:16] *** mbildner has quit IRC
[17:58:18] *** jillesme has joined #angularjs
[17:58:22] <jaawerth> lol
[17:58:31] <icfantv> jaawerth: can i ask a question?
[17:58:38] <icfantv> now i did.
[17:58:39] *** gnrlbzik has joined #angularjs
[17:58:41] <themime> icfantv: i didn't either, i did /j css before i told you :)
[17:58:47] *** glaksmono has joined #angularjs
[17:58:49] <icfantv> heh
[17:58:50] <icfantv> nice
[17:59:00] *** gnrlbzik has quit IRC
[17:59:05] *** intellix has quit IRC
[17:59:32] *** dandv has left #angularjs
[17:59:35] *** juanpablo_ has quit IRC
[17:59:38] *** gnrlbzik has joined #angularjs
[17:59:52] *** subsonic has joined #angularjs
[17:59:57] *** richiebkr has joined #angularjs
[18:00:05] *** mven has quit IRC
[18:00:06] <shubhu> jaawerth: both are simple post request $.post() and $http.post
[18:00:28] *** mbildner has joined #angularjs
[18:00:29] *** nemothekid has quit IRC
[18:00:43] *** sk87 has joined #angularjs
[18:01:23] *** saucey has quit IRC
[18:01:27] <shubhu> on dev tools i see post request to the url if using jquery but in angular i see options request
[18:01:51] *** basiclaser_ has quit IRC
[18:02:01] *** toad-br has quit IRC
[18:02:23] *** sk87 has quit IRC
[18:02:42] <numenor> Shubhu .. Are you using ng-submit?
[18:03:20] *** ChadStrat has joined #angularjs
[18:03:23] *** loverajoel has joined #angularjs
[18:03:37] <shubhu> numenor: ng-click
[18:03:50] *** klaut has quit IRC
[18:04:03] <numenor> Ok
[18:04:06] *** grantfunke__ has joined #angularjs
[18:04:29] <jaawerth> shubhu: http://stackoverflow.com/questions/22372045/angularjs-http-post-server-doesnt-allow-a-request-with-method-options
[18:04:53] *** mzabriskie has joined #angularjs
[18:05:10] <jaawerth> shubhu: as for why the jquery one works, I imagine it may be bypassing this preflight "options" request. I would try specifying the content-type manually and see if that helps. Is this an https request or regular?
[18:05:26] *** tilgovi has joined #angularjs
[18:06:20] <jaawerth> shubhu: anyway, basically the browser is sending out an initial "probe" to the server to see if it will allow CORS. Have you already made sure CORS is enabled on the server side using Allow-Origin?
[18:06:26] *** cam_y has quit IRC
[18:06:29] <shubhu> jaawerth: since its google url so i can't configure it
[18:06:44] <shubhu> jaawerth: its https
[18:06:45] *** Ro has joined #angularjs
[18:06:46] <dannyc> so, ui-router. anyone know how to load a state into a nested view?
[18:06:57] <jaawerth> shubhu: alright, but have you checked hte server responses to see if that header is set?
[18:07:07] <dannyc> so load something into view2 from view1?
[18:07:28] *** cswelin has quit IRC
[18:07:31] *** fbenoit has quit IRC
[18:07:37] <ctanga> anyone have any thoughts on invalidating a JWT?
[18:07:45] *** mrded has quit IRC
[18:07:57] *** cthrax has quit IRC
[18:08:00] *** SmartYii has quit IRC
[18:08:07] *** loverajoel has quit IRC
[18:08:16] *** phuh has quit IRC
[18:08:37] <shubhu> jaawerth: getting 405 method not allowed
[18:08:42] *** phuh has joined #angularjs
[18:08:52] <dannyc> ctanga: how do you mean 'invalidate'?
[18:09:02] <ctanga> I mean “revoke"
[18:09:19] <jaawerth> shubhu: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Simple_requests this is probably why the jquery one is working. You could try configuring your http call to also be a simple request
[18:09:25] <ctanga> I think we’re going to take a “blacklist” approach like this guy: http://www.kdelemme.com/2014/05/12/use-redis-to-revoke-tokens-generated-from-jsonwebtoken/
[18:10:01] <dannyc> on the client? you'd just remove it. an inform your auth service that it's been done, probably resetting a user object or something.
[18:10:07] <ctanga> no, not on the client
[18:10:25] *** ozooner has joined #angularjs
[18:10:30] <ctanga> if a token is compromised by a man-in-the-middle removing it from the client doesn’t help
[18:10:38] <jaawerth> um can't you just configure how expiration works on the server?
[18:10:39] *** Leon has quit IRC
[18:11:00] *** loverajoel has joined #angularjs
[18:11:06] <shubhu> jaawerth: thanks a lot going to try that
[18:11:13] <ctanga> what if it’s an hour expiration, the attacker can use it for an hour (and probably get a refreshed one by the auth service too)
[18:11:28] <the-anconia> Before displaying a modal, I call a get method from a service and set it to a variable on scope - $scope.team = Service.getTeam(); After that, I show a modal but for some reason that scope variable is rendering in the view. Any ideas?
[18:11:40] <jaawerth> shouldn't you be able to just configure your use of jwt? maybe listen for a 'logout' request that clears the jwt?
[18:11:41] <numenor> Refreshtokens
[18:12:05] <jaawerth> ctanga: which jwt module are you using?
[18:12:19] <ctanga> jwt works by being a signed piece of information… it’s ephemeral and not stored anywhere in normal use
[18:12:31] *** Aliks has joined #angularjs
[18:12:33] <ctanga> I use roll-your-own-jwt
[18:12:35] <jaawerth> depends on how you set it up, I thought
[18:13:05] *** sk87 has joined #angularjs
[18:13:34] *** Beg has quit IRC
[18:13:48] <jaawerth> ctanga: .. is that real or is that a cute way of saying you've implemented it manually?
[18:13:53] <ctanga> hah
[18:13:59] <ctanga> i implemented it manually
[18:14:04] *** bolbat has joined #angularjs
[18:14:06] *** tangorri has quit IRC
[18:14:18] *** Ephemeral has quit IRC
[18:14:26] <ctanga> I used Auth0 java-jwt on the server to encode/decode
[18:14:52] *** sk87 has quit IRC
[18:15:11] <JohnFree> Hi guys. I'm getting a bunch of JSON-Data from server. Now I want to show the data groupwise grouped by a special property. How can I do this in AngularJS?
[18:15:24] *** Sky[x] has joined #angularjs
[18:15:34] *** pipoo has joined #angularjs
[18:15:35] <sacho> _.groupBy()
[18:15:37] <ctanga> JohnFree: you can map the data then display it
[18:15:41] <ctanga> what sacho said
[18:15:48] *** sonofdirt has quit IRC
[18:15:51] *** Jdubs has joined #angularjs
[18:15:57] <jaawerth> hmm well
[18:16:05] *** joshontheweb has joined #angularjs
[18:16:10] <jaawerth> I guess you could do the blacklist instead of caching all the active jwts in redis
[18:16:25] <jaawerth> (which would allow for easy removal)
[18:16:26] *** sonofdirt has joined #angularjs
[18:16:27] <JohnFree> ctanga: How can I do this efficiently with angularJS?
[18:16:48] <jaawerth> you'd still want to set an expiration, though, so that you can set an expiration date on the blacklist item
[18:17:00] <ctanga> jaawerth: yes, fo sho
[18:17:07] <jaawerth> seems like you're limiting your options on configurability that way, though
[18:17:30] <jaawerth> like, what if you DO want the jwt token to be able to persist for longer?
[18:17:39] <jaawerth> unless the user explicitly logs out?
[18:17:41] *** saucey has joined #angularjs
[18:18:03] *** NormySan has joined #angularjs
[18:18:47] *** cam_y has joined #angularjs
[18:18:50] *** thedodd has joined #angularjs
[18:18:51] <ClearsTheScreen> is http://stackoverflow.com/questions/14800862/how-can-i-group-data-with-an-angular-filter a naive approach?
[18:19:20] *** delphicokami has joined #angularjs
[18:19:51] *** pipoo has quit IRC
[18:19:52] <JohnFree> Wow that looks very good
[18:19:52] *** iksik has quit IRC
[18:19:58] <JohnFree> Is that a good approach?
[18:20:34] <ClearsTheScreen> and it was only on the first SERP for "angularjs group by"
[18:20:35] <ctanga> oh, I thik I have an idea
[18:20:46] *** Ephemeral has joined #angularjs
[18:20:46] *** sonofdirt has quit IRC
[18:20:47] <JohnFree> ClearsTheScreen: Thank you buddy
[18:21:04] *** Xethron has quit IRC
[18:21:04] *** jmverges has quit IRC
[18:21:09] <ClearsTheScreen> yw
[18:21:28] *** iksik has joined #angularjs
[18:21:44] *** mbildner has quit IRC
[18:22:02] *** gurke_ has joined #angularjs
[18:22:04] *** cam_y has quit IRC
[18:22:08] *** gurke_ has quit IRC
[18:22:14] *** cthrax has joined #angularjs
[18:22:31] *** jmverges has joined #angularjs
[18:22:39] *** cam_y has joined #angularjs
[18:22:51] *** fatshark has joined #angularjs
[18:22:54] *** gurke_ has joined #angularjs
[18:23:13] *** wallerdev has joined #angularjs
[18:23:26] *** sonofdirt has joined #angularjs
[18:24:03] <jaawerth> JohnFree, ClearsTheScreen: looking at the code for the groupBy in that module, it's doing some potentially-expensive code (indexOf) to search the array for each group for an item before adding it. Which is fine if you want to include only unique items in each group, but I would avoid using this in a template
[18:24:41] <jaawerth> array.indexOf aint cheap
[18:24:53] *** mokush has quit IRC
[18:24:57] *** kas84 has joined #angularjs
[18:24:59] <ctanga> how bout this: the token includes a claim (let’s say logoutcount) which gets signed. When the user clicks log out, I increment the user.logoutcount on the server. JWT are only validated on the server if the logoutcount matches the claim. This means, of course, that all server endpoints must have access to the user entity.
[18:25:01] *** DanielKarp has quit IRC
[18:25:02] *** speakingcode has quit IRC
[18:25:04] *** jillesme has quit IRC
[18:25:10] <ClearsTheScreen> ah; makes sense. admittedly didn't look closely :(
[18:25:16] <ctanga> jaawerth: i think we’re doing token refreshing
[18:25:18] <ClearsTheScreen> ... just close enough to snicker at "immigration notes".
[18:25:27] *** ayesian has joined #angularjs
[18:25:32] <ctanga> so like, if the token is halfway through, auto-generate a new token and send to the client
[18:25:46] <ctanga> halfway through meaning halfway to expired
[18:25:46] *** grantfunke__ has quit IRC
[18:26:04] *** TinkerTyper has joined #angularjs
[18:26:11] *** shubhu has quit IRC
[18:26:28] *** jjasonclark has joined #angularjs
[18:26:39] <ctanga> all this to mimic the behavior of serverside sessions...
[18:26:47] *** m8 has quit IRC
[18:26:52] *** eBureau has joined #angularjs
[18:27:02] <themime> haha
[18:27:12] *** kwd has quit IRC
[18:27:25] *** happyface_ is now known as happyface
[18:28:30] *** wallerdev has quit IRC
[18:28:46] <JohnFree> jaawerth: So what shall I do?
[18:28:55] *** Jdubs has quit IRC
[18:29:28] <ClearsTheScreen> well there are ~5 approaches on that page
[18:29:58] <jaawerth> personally I'd either use lodash or use the code for lodash's groupBy in a custom filter https://github.com/lodash/lodash/blob/master/lodash.js#L5333-L5339
[18:30:04] *** numenor has quit IRC
[18:30:06] <jaawerth> simple and performant
[18:30:14] *** nemothekid has joined #angularjs
[18:30:36] <jaawerth> true, it won't dedupe stuff in your groupBy, but that shouldn't matter in a filter anyway since dupes will break in an ng-repeat and you can always add a track by or something to dedupe if necessary
[18:30:37] *** toad-br has joined #angularjs
[18:30:45] *** Jdubs has joined #angularjs
[18:31:20] *** jamieshepherd has joined #angularjs
[18:31:33] <ClearsTheScreen> ( http://stackoverflow.com/a/23882699 for the underscore approach)
[18:31:34] *** Ajans has quit IRC
[18:32:04] <jaawerth> lodash > underscore :p
[18:32:16] <jaawerth> (though I would probably take that same approach, only using lodash instead of underscore)
[18:32:17] *** jonr22 has joined #angularjs
[18:32:18] *** speakingcode has joined #angularjs
[18:32:22] *** smswz has quit IRC
[18:32:38] *** whunt has joined #angularjs
[18:32:39] <jaawerth> generally in here when someone refers to _.foo, we're talking about lodash ;-)
[18:32:52] <JohnFree> Now I'm confused. What's the problem with native AngularJS solution?
[18:32:59] *** a3gis has joined #angularjs
[18:33:22] <jaawerth> nothing, lodash is just a very popular library to include because of its very useful and efficient/backwards compatible array of utilities
[18:33:36] *** bolbat_ has joined #angularjs
[18:33:42] <jaawerth> it's a question of "do I want to reimplement x optimal solution for some common thing, or include this small library that will give me that and so much more?"
[18:33:48] <ClearsTheScreen> JohnFree: ... that angular has no native group by.
[18:34:05] *** artisangoose has joined #angularjs
[18:34:09] *** tristanp has quit IRC
[18:34:13] *** optikalmouse has quit IRC
[18:34:14] *** Aliks has quit IRC
[18:34:21] <JohnFree> Yeah I mean angular.filter module
[18:34:26] <themime> ctanga: is there a way to use ui-router to switch views within an element based on some event (a click) - states don't seem to apply since my "main" state is the same - the page doesn't change its just a slide out that can vary
[18:34:35] <JohnFree> From a8m
[18:34:39] <ClearsTheScreen> by all means use a filter :) and use lodash in the filter ;3
[18:34:41] *** charuru has joined #angularjs
[18:34:43] *** mnngfltg has quit IRC
[18:34:47] <ClearsTheScreen> ah; jaawerth told you the problem with that one :)
[18:34:49] *** bayousoft has quit IRC
[18:34:49] *** Aliks has joined #angularjs
[18:35:02] *** phzon has quit IRC
[18:35:04] <jaawerth> yeah. I wouldn't use their module because it isn't coded very efficiently judging by how they did groupBy
[18:35:17] *** stirlingw has quit IRC
[18:35:18] *** bayousoft has joined #angularjs
[18:35:29] *** moritzs has quit IRC
[18:35:48] <jaawerth> taking a similar approach - wrapping logic (either your own, or one provided by a library like lodash) in a custom filter - would be fine
[18:35:53] *** stirlingw has joined #angularjs
[18:36:13] *** krawek has quit IRC
[18:36:13] <jaawerth> but as a rule it's bad practice to use indexOf in anything that's going to be run often on an unsorted array
[18:36:16] *** bolbat has quit IRC
[18:36:24] <the-anconia> If I log a method call from a Service I’ve written, it logs the correct value. However, this value isn’t shown in the view when I tie it to $scope. Any ideas?
[18:36:35] <jaawerth> or even on a sorted array, unless the indexOf is passed a "sorted" flag (and compatible with doing that)
[18:36:44] *** toad-br has quit IRC
[18:36:52] *** nerder has quit IRC
[18:36:54] <jaawerth> the-anconia: probably a MOAR DOTS issue
[18:37:28] * jaawerth is going to write a MOAR DOTS plunk
[18:37:28] *** rawc has joined #angularjs
[18:37:30] *** jonr22 has quit IRC
[18:37:39] <the-anconia> jaawerth: I’m lost
[18:37:47] <jaawerth> actually I already have two of them, but they're a little case-specific
[18:37:55] <jaawerth> the-anconia: can you post your code in a gist or, better, a plunk?
[18:38:05] * ClearsTheScreen finally lightbulbs on what "MOAR DOTS" implies. no replacey object, replacey values.
[18:38:27] <oniijin> lol
[18:38:42] <oniijin> come on jaawerth guest post
[18:38:48] <JohnFree> So to wrap it up: Lo-Dash is a javascript library which I should use for grouping of data?
[18:38:54] *** azizur has quit IRC
[18:38:55] <oniijin> no
[18:38:59] *** jaydubya has joined #angularjs
[18:39:10] *** Aliks has quit IRC
[18:39:16] <the-anconia> jaawerth: workgin on it now
[18:39:30] <jaawerth> oniijin: if I start guest-posting before I have my own, I'll never have enough material for my own! really we should cross-post or form a unified "nerds of #angularjs" blog
[18:39:33] *** TheAceOfHearts has joined #angularjs
[18:39:37] *** AngularUI has joined #angularjs
[18:39:37] <AngularUI> [ng-grid] c0bra pushed 2 new commits to master: http://git.io/dV98cg
[18:39:37] <AngularUI> ng-grid/master f20ccb8 Nicolas Hart: patch french translations
[18:39:37] <AngularUI> ng-grid/master afff777 Brian Hann: Merge pull request #2007 from Hexanet/patch-french-translations...
[18:39:38] *** AngularUI has left #angularjs
[18:39:42] <ClearsTheScreen> JohnFree: to wrap it up, use a filter that does $magic; e.g. by the use of lodash.
[18:39:47] *** thomastuts has joined #angularjs
[18:40:00] *** jheady has joined #angularjs
[18:40:02] <oniijin> jaawerth i was thinkin guest post, then it's your material that u can stick up on ur blog once u set it up
[18:40:10] *** jheady has left #angularjs
[18:40:24] <JohnFree> ClearsTheScreen: You said I would have to use lodash-wrapper, did you mean "rockabox/ng-lodash"?
[18:40:38] <ClearsTheScreen> i didn't, no. i showed you a SO answer that used lodash
[18:40:56] <jaawerth> yeah, you'd just use lodash for the logic and stick it in your own custom filter
[18:40:58] <ClearsTheScreen> (never touched lodash)
[18:40:59] *** joelmbell has joined #angularjs
[18:41:03] <oniijin> lodash/underscore helps u deal with common iterable wrangling
[18:41:06] *** ChadStrat has quit IRC
[18:41:10] <Siecje> oniijin: Guest post where?
[18:41:27] *** RobinBAwesome has joined #angularjs
[18:41:36] <JohnFree> what?
[18:41:48] <JohnFree> lodash or underscore. Which one?
[18:42:01] <oniijin> lodash. it's a superset of underscore
[18:42:10] <oniijin> but for what you're doing, basically the same thing
[18:42:28] <jaawerth> in general lodash is just better-coded, but yeah, groupBy won't be that different between the two
[18:42:28] <JohnFree> oniijin: There are wrappers for lodash. Can't I use it directly?
[18:42:29] *** nairys has joined #angularjs
[18:42:37] <jaawerth> that's what we're suggesting
[18:42:42] *** TheAceOfHearts has quit IRC
[18:43:12] <JohnFree> E. g. there is "rockabox/ng-lodash
[18:43:12] <JohnFree> "
[18:43:23] <the-anconia> jaawerth: http://plnkr.co/edit/QWUv4Zb1meGwU8ZBIBqv?p=catalogue
[18:43:24] <oniijin> USE WHATEVER
[18:43:34] *** coffey has joined #angularjs
[18:43:42] <JohnFree> oniijin: Ok, but without a wrapper I can't use lodash out of Angular?
[18:43:53] <tkdaj> Is this a normal error to get if you type an attribute variable but don't give it a value (like you are passing it to a directive: Error: Out of memory <table class="table" .....
[18:43:53] <oniijin> wtf are u talking about
[18:44:13] <oniijin> if u want to use straight up lodash.js, u just wrap it in a service that u DI where u need
[18:44:37] *** tsalb has joined #angularjs
[18:44:38] <JohnFree> ok :)
[18:45:01] <jaawerth> the-anconia: your getter there - it's returning the VALUE of your getTeam variable once, within your controller. Primitives copy by value, objects copy by reference - as a result, no binding for you
[18:45:49] <the-anconia> jaawerth: So just change those return values to objects?
[18:46:00] <jaawerth> I also wouldn't bother using a getter
[18:46:01] <jaawerth> one sec
[18:46:21] <oniijin> jaawerth i think we're goin for record MOARDOTS today
[18:46:41] <jaawerth> actually I don't really need to fork the plunk - basically, I'd either access the value directly from the service and stick the service on scope, or I'd crate a 'data' object within your service to contain the properties
[18:46:43] *** Sebastien-L has quit IRC
[18:47:06] *** glaksmono has quit IRC
[18:47:23] *** ngbot has joined #angularjs
[18:47:23] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/ji_CYA
[18:47:23] <ngbot> angular.js/master 0c19482 Tobias Gesellchen: chore(.gitignore): ignore IntelliJ IDEA module files...
[18:47:23] *** ngbot has left #angularjs
[18:47:37] *** pdillinger has quit IRC
[18:47:39] *** moritzs has joined #angularjs
[18:47:44] *** ngbot has joined #angularjs
[18:47:44] <ngbot> [angular.js] caitp pushed 1 new commit to v1.2.x: http://git.io/7gxiAQ
[18:47:44] <ngbot> angular.js/v1.2.x 5f9a112 Tobias Gesellchen: chore(.gitignore): ignore IntelliJ IDEA module files...
[18:47:44] *** ngbot has left #angularjs
[18:47:45] *** Jdubs has quit IRC
[18:47:49] <jaawerth> that way you can just do $scope.rData = RegisterService.data and then rData.team will be two-way bound
[18:48:12] *** linojon has quit IRC
[18:48:42] *** KernelCurry has joined #angularjs
[18:49:06] <the-anconia> jaawerth: I’ll give that a try
[18:49:36] *** Sebastien-L has joined #angularjs
[18:49:47] *** joelmbell has quit IRC
[18:50:33] <jaawerth> hey gulp mavens, how do I get a gulp module added to the $. alias if I don't want to explicitly require it?
[18:51:29] <caitp> "gulp" and "maven" in the same sentence, i see what you did there
[18:51:39] <jaawerth> guilty
[18:52:47] *** Johnny13371337 has joined #angularjs
[18:52:48] <jaawerth> ahh okay, gotta configure gulpLoadplugins I guess
[18:52:51] *** Johnny13371337 has left #angularjs
[18:53:14] <jaawerth> or rather, gotta add crap to my package.json to make it so
[18:53:25] *** linojon has joined #angularjs
[18:53:32] <jaawerth> it likely just didn't work because I didn't --save-dev the plugin (on purpose)
[18:54:20] <the-anconia> jaawerth: Your suggestions don’t seem to be working
[18:54:23] *** deweydb has quit IRC
[18:54:34] *** glosoli has joined #angularjs
[18:54:38] *** glosoli has joined #angularjs
[18:54:53] *** kas84 has left #angularjs
[18:55:10] *** joshontheweb has quit IRC
[18:55:39] *** glosoli has quit IRC
[18:55:54] *** samcfc has joined #angularjs
[18:56:22] *** glosoli has joined #angularjs
[18:56:56] *** therealmark has joined #angularjs
[18:57:00] <samcfc> hi there i am looking to get synchronously a GET param in my main Controller but $routeParams is not initialised yet, and $route.current is empty on very first line of ths MainEntryController
[18:57:05] *** mityaz has joined #angularjs
[18:57:13] <samcfc> any idea :(
[18:57:31] *** glosoli has quit IRC
[18:58:08] <ClearsTheScreen> worst-case approach: grab it from the current location
[18:58:09] *** glosoli has joined #angularjs
[18:58:47] *** krawchyk has joined #angularjs
[18:59:16] *** marshall_ has joined #angularjs
[18:59:17] *** sikor_sxe has quit IRC
[18:59:26] *** AndyFTP has joined #angularjs
[18:59:41] *** Guest29 has joined #angularjs
[18:59:47] *** basiclaser_ has joined #angularjs
[19:00:04] *** richiebkr has quit IRC
[19:00:06] <merpnderp> Is there any point in using browserify and commonjs to build angular apps?
[19:00:06] *** ccohn has joined #angularjs
[19:00:10] *** sonofdirt has quit IRC
[19:00:30] <merpnderp> there doesn't seem to be a good way to use a module system with angualr that doesnt' involve duplicating effort for including modules.
[19:00:41] *** bolbat_ has quit IRC
[19:00:51] *** sonofdirt has joined #angularjs
[19:00:56] *** artisangoose has quit IRC
[19:01:21] *** artisangoose has joined #angularjs
[19:01:25] <merpnderp> For instance, what's the point of var myModule = require('./mymodule'); when mymodule already did angular.module('mymodule', mymoduledef);
[19:01:54] *** Jdubs has joined #angularjs
[19:01:56] *** robdubya has quit IRC
[19:02:01] *** loverajoel has quit IRC
[19:02:11] *** sonofdirt has quit IRC
[19:02:29] *** sonofdirt has joined #angularjs
[19:02:57] *** richiebkr has joined #angularjs
[19:03:29] *** mandric has joined #angularjs
[19:03:37] *** Guest29 has quit IRC
[19:03:49] *** lancer229 has joined #angularjs
[19:03:56] *** dreambox has joined #angularjs
[19:04:13] <jaawerth> the-anconia: here's both approaches (sticking the service on scope and use a 'data' object within the service). I like using a data object because it makes the service more flexible. One thing I'm NOT doing here which I prefer to do is use "controller as" syntax, but I didn't want to complicate things for you
[19:04:35] *** travm is now known as travm-afk
[19:05:35] *** travm-afk has quit IRC
[19:05:38] *** tech2 has quit IRC
[19:05:59] *** cswelin has joined #angularjs
[19:06:00] *** therealmark has quit IRC
[19:06:04] *** zorch_ has quit IRC
[19:06:22] <jaawerth> merpnderp: a lot of people will use it as a workaround/hack for lazy-loading modules
[19:06:33] *** surreal has joined #angularjs
[19:06:56] *** mbildner has joined #angularjs
[19:07:16] *** dhcar_AFK has quit IRC
[19:07:18] *** Latros-OS has quit IRC
[19:07:21] *** therealmark has joined #angularjs
[19:07:38] *** Latros-OS has joined #angularjs
[19:07:44] <merpnderp> jaawerth: It actually wouldn't be that big of a deal because I would never need to export anything from a module. Just need to remember to require all the dependencies.
[19:07:47] *** gnarMatix has joined #angularjs
[19:07:57] *** robdubya has joined #angularjs
[19:08:12] *** ahmetkapikiran has joined #angularjs
[19:08:18] *** phuh has quit IRC
[19:08:22] <merpnderp> But uglify will do all this and I don't have to add in a new build dep
[19:08:37] <gnarMatix> Hey guys, does anyone know if a $http request using "cache: true" will still hit http interceptors?
[19:08:45] *** phuh has joined #angularjs
[19:08:47] <gnarMatix> (assuming a cache hit)
[19:08:49] *** AngularUI has joined #angularjs
[19:08:49] <AngularUI> [ng-grid] c0bra created rewrite-cellnav (+1 new commit): http://git.io/uNPeKw
[19:08:50] <AngularUI> ng-grid/rewrite-cellnav b3b7ee9 c0bra: WIP: cell-nav works, but is a bit ugly
[19:08:50] *** AngularUI has left #angularjs
[19:08:55] *** dhcar_AFK has joined #angularjs
[19:08:57] *** AWAW has joined #angularjs
[19:09:04] *** zz_zorch_ has joined #angularjs
[19:09:06] *** zz_zorch_ is now known as zorch_
[19:09:10] *** saucey has quit IRC
[19:09:32] *** apertoire has joined #angularjs
[19:10:16] *** wallerdev has joined #angularjs
[19:10:22] <jaawerth> gnarMatix: it should be pretty easy to test ;-)
[19:10:28] *** cswelin has quit IRC
[19:10:29] *** surreal has quit IRC
[19:11:57] <merpnderp> what about using node supervisor -x sh myUglifyShellScript.sh -w js
[19:12:20] *** DoubleAW has quit IRC
[19:12:23] *** arthas has quit IRC
[19:12:30] *** SoulBlade has joined #angularjs
[19:12:31] *** d4rklit3 has joined #angularjs
[19:12:38] *** dreambox has quit IRC
[19:12:40] *** TheAceOfHearts has joined #angularjs
[19:12:50] <jaawerth> I have no idea what you're actually trying to do here
[19:13:16] *** JohnFree has quit IRC
[19:13:20] *** dreambox has joined #angularjs
[19:13:27] *** dannyc has quit IRC
[19:13:33] *** drugs has quit IRC
[19:13:34] *** richiebkr has quit IRC
[19:13:43] <gnarMatix> jaawerth: lol you're right
[19:13:55] *** AtomicCookie has joined #angularjs
[19:13:56] <gnarMatix> merpnderp: why are you using shell scripts :(
[19:14:06] *** apertoire has quit IRC
[19:14:32] <ClearsTheScreen> "what the shell?!"
[19:14:51] *** Reskp has joined #angularjs
[19:15:03] <davek> Queue terrible laugh track.
[19:15:20] *** _ritchie_ has quit IRC
[19:15:20] *** bengillies has quit IRC
[19:15:57] *** _ritchie_ has joined #angularjs
[19:16:35] *** lancer229 has quit IRC
[19:16:47] *** SoulBlade has quit IRC
[19:17:03] *** richiebkr has joined #angularjs
[19:17:03] *** zzing has quit IRC
[19:17:06] *** Sebastien-L has quit IRC
[19:17:09] *** samcfc has quit IRC
[19:18:13] *** olivvv has quit IRC
[19:18:17] *** juampy has quit IRC
[19:19:28] *** rhp has joined #angularjs
[19:19:43] *** richiebkr has quit IRC
[19:20:03] *** shpoont has joined #angularjs
[19:20:04] *** RobinBAwesome has quit IRC
[19:20:08] *** grantfunke_ has joined #angularjs
[19:21:00] *** patrick99e99 has joined #angularjs
[19:21:49] *** GreenJello has joined #angularjs
[19:22:09] *** Reskp has quit IRC
[19:22:42] *** Sebastien-L has joined #angularjs
[19:22:46] <GreenJello> any ideas on how to debug this? https://bpaste.net/show/a15df06a7b59
[19:23:20] *** shoerain has quit IRC
[19:23:38] <GreenJello> it happens when I load the application, and no code runs; all of my scripts are loaded correctly; no templates are loaded
[19:24:02] *** shoerain has joined #angularjs
[19:24:10] *** TheAceOfHearts has quit IRC
[19:24:22] *** TheAceOfHearts has joined #angularjs
[19:24:29] *** bolloga has quit IRC
[19:25:03] *** sheplu has quit IRC
[19:25:14] <ClearsTheScreen> looks like some circular dependency
[19:25:19] <jaawerth> GreenJello: sounds like you've got a watcher/something in a template that changes the scope on every run (aka it isn't idempotent)
[19:25:42] *** tristanp has joined #angularjs
[19:25:51] <GreenJello> jaawerth, yeah I've run into this a few times when there was less code in play, and just went over every file until I found it
[19:25:53] <jaawerth> for example, if you did {{$scope.foo++}} in a template (where $scope.foo = 0 in a controller), you'd get taht error
[19:26:10] <GreenJello> but I was wondering if I could figure out what caused the digest to happen again?
[19:26:34] <jaawerth> that's where unit testing comes in handy
[19:26:37] *** cswelin has joined #angularjs
[19:26:50] <GreenJello> darn okay
[19:26:50] <GreenJello> thanks
[19:27:06] <jaawerth> trying to think if there's an easy way to catch it...
[19:27:56] *** Latros-OS has quit IRC
[19:28:09] <Blackshark> (join #pods
[19:28:28] *** marshall_ has quit IRC
[19:28:36] *** prbc has quit IRC
[19:28:45] *** RobinBAwesome has joined #angularjs
[19:29:26] *** cornerma1 has joined #angularjs
[19:29:26] *** FIFOd[a] has quit IRC
[19:29:36] *** Latros-OS has joined #angularjs
[19:30:34] *** FIFOd[a] has joined #angularjs
[19:30:55] *** jareddlc has joined #angularjs
[19:30:57] *** cohitre has joined #angularjs
[19:31:35] *** richiebkr has joined #angularjs
[19:31:59] *** gnrlbzik has quit IRC
[19:32:07] *** MrBaboon has joined #angularjs
[19:32:21] *** jiskiras has quit IRC
[19:32:24] *** travm has joined #angularjs
[19:32:46] *** Aliks has joined #angularjs
[19:32:54] *** walden|lunch is now known as walden
[19:32:59] *** tilgovi has quit IRC
[19:33:07] *** cornerman has quit IRC
[19:33:12] *** cornerma1 is now known as cornerman
[19:33:16] *** thomastuts has quit IRC
[19:33:43] *** dreambox_ghost has joined #angularjs
[19:34:17] *** tilgovi has joined #angularjs
[19:34:19] *** cswelin has quit IRC
[19:34:29] <KernelCurry> Question: For some reason when I put an anchor tag into my code, it will change the URL in the browser, but it will not actually go there ... thoughts ?
[19:34:35] <KernelCurry> Anyone come accross this ?
[19:34:36] *** kwd has joined #angularjs
[19:34:37] *** mbildner has quit IRC
[19:35:49] *** darrin has quit IRC
[19:35:55] *** optikalmouse has joined #angularjs
[19:36:08] *** a3gis has quit IRC
[19:36:11] <GreenJello> jaawerth, I managed to fix it... I had a bad <base> tag lol
[19:36:13] *** darrin has joined #angularjs
[19:36:17] <jaawerth> ahh
[19:36:20] *** mbenadda__ has joined #angularjs
[19:36:29] <GreenJello> no idea why that'd cause that error
[19:36:30] <jaawerth> KernelCurry: if your browser is precaching urls, you may need to use ng-href instead of href
[19:36:31] *** jiskiras has joined #angularjs
[19:36:56] <KernelCurry> hummmm ok i will look into that ! :) jaawerth
[19:37:13] *** jiskiras has joined #angularjs
[19:37:13] *** thomastuts has joined #angularjs
[19:37:21] *** therealmark has quit IRC
[19:37:27] *** eslaron has joined #angularjs
[19:37:30] *** dreambox has quit IRC
[19:37:43] *** thomastuts has quit IRC
[19:37:46] <eslaron> Hello :)
[19:38:00] *** platonic has joined #angularjs
[19:38:07] <jaawerth> KernelCurry: if it isn't that, we might need more context. Like, is this an absolute url or a relative url?
[19:38:14] *** shpoont has quit IRC
[19:38:15] *** therealmark has joined #angularjs
[19:38:16] <eslaron> How to do role based access in ui-router when I have my role info stored in a cookie?
[19:38:18] <jaawerth> KernelCurry: if it's to another location in your app, are you using a router? Which one?
[19:38:44] *** mbenadda____ has joined #angularjs
[19:38:49] *** pdillinger has joined #angularjs
[19:39:09] *** ayesian has quit IRC
[19:39:12] <KernelCurry> that did not work :)
[19:39:15] <KernelCurry> :(( **
[19:39:16] *** cswelin has joined #angularjs
[19:39:18] *** mbenadda has quit IRC
[19:39:43] *** jiskiras has quit IRC
[19:39:49] *** goodenough has joined #angularjs
[19:39:55] <KernelCurry> So, I am not using a Router. the link is in format : "http://example.com/another/path"
[19:39:56] *** ipalaus has quit IRC
[19:40:32] <GreenJello> KernelCurry, if your site isn't example.com then you can't for security reasons
[19:40:53] *** MaxV has joined #angularjs
[19:40:54] *** ayesian has joined #angularjs
[19:40:57] <jaawerth> KernelCurry: what do you mean "put an anchor tag into my code?"
[19:41:06] *** frankblizzar has joined #angularjs
[19:41:12] <ClearsTheScreen> just to cover all the bases, we're talking about an ng app and there's nothing like a link click handler (thing: jquery-lke $(a).click()) that does event.preventDefault(), right?
[19:41:13] <jaawerth> a pure html <a> tag, are you usinge {{ }} somewhere, ..?
[19:41:18] *** lolmaus has quit IRC
[19:41:20] *** whiteboo_ has quit IRC
[19:41:23] <KernelCurry> <a class="btn" href="{{ route('route.name', $account->guid) }}">back to opportunities</a>
[19:41:34] *** lolmaus has joined #angularjs
[19:41:35] <eslaron> How to do role based access in ui-router when I have my role info stored in a cookie?
[19:41:46] <KernelCurry> In this Case, {{ }} is BLADE not Angular
[19:41:49] <jaawerth> ClearsTheScreen: ng-click="$event.preventDefault()" (or pass $event into a function
[19:42:06] <ClearsTheScreen> jaawerth: yes; that kind of stuff. making sure that KernelCurry doesn't have something like that in their code
[19:42:21] <jaawerth> eslaron: well I'd use a service to handle your role logic and inject that into a resolve block that would handle the access stuff
[19:42:23] <KernelCurry> ya it is not calling anything :-/
[19:42:30] *** mbenadda_ has quit IRC
[19:42:37] *** platonic has quit IRC
[19:42:46] <eslaron> jaawerth, how do I do that? :)
[19:42:55] <jaawerth> which part?
[19:43:10] *** mbenadda____ has quit IRC
[19:43:11] <jaawerth> the resolve part or the service part?
[19:43:12] *** stirlingw has quit IRC
[19:43:19] *** naneau has quit IRC
[19:43:56] <jieryn> hello :) i am using angular-1.3.0, thank you; using a form with a list of checkboxes all have the same name="list"; how can i do $dirty and $valid checking on each element?
[19:44:03] *** stirlingw has joined #angularjs
[19:44:03] *** baweaver has joined #angularjs
[19:44:25] <jieryn> angular right now is only $dirty and $valid checking the final $scope.form.list element
[19:44:49] <jieryn> e.g. i want $dirty to be true if user changes any of the checkboxes
[19:45:01] <eslaron> jaawerth, I have a service and a resolve block but something is wrong
[19:45:25] <KernelCurry> jaawerth: Solution target="_self"
[19:45:58] *** marshall_ has joined #angularjs
[19:46:19] <eslaron> Here is my services.js http://pastebin.com/Tq2RpEku
[19:46:32] *** joshontheweb has joined #angularjs
[19:46:38] *** fedenunez has quit IRC
[19:46:49] <GreenJello> jieryn, use a different name for checkboxes
[19:47:06] <jieryn> that doesn't make sense in my application because the list of checkboxes are dynamic
[19:47:11] <GreenJello> jieryn, names must be unique within a form, so what you're doing is invalid
[19:47:18] <jaawerth> or do the validation via a directive so you can use ngModelController without referring to stuff by name
[19:47:40] *** lite_ has joined #angularjs
[19:47:41] <eslaron> And here's my App.js http://pastebin.com/6M39s3AK
[19:47:43] <GreenJello> (except for radio, of course)
[19:47:59] <jieryn> hm
[19:48:49] <jaawerth> eslaron: Sorry, I don't really have time to mentally debug your static app... ui-router stuff can have a few possible issues. If you can get it into a plunk I can take a look though.
[19:49:03] *** t_smith has quit IRC
[19:49:06] <eslaron> Okay
[19:49:14] <jaawerth> also if you're using ui-router I'd use $state.go instead of $location to do a redirect
[19:49:31] <jieryn> my api takes a @QueryParam("list") List<String> list
[19:49:52] *** MistahKurtz has quit IRC
[19:49:53] *** Sebastien-L has quit IRC
[19:50:01] <jieryn> it's very convenient to have redundant query parameters for multiple options
[19:50:19] <ctanga> does anyone use UI-Router Extras? I just tagged 0.0.11-pre1 last night. this release is mostly oriented around Future States bug fixes and features.
[19:50:45] <themime> ctanga: found them through your github earlier today, was intrigued
[19:50:59] *** surreal has joined #angularjs
[19:51:41] *** jmverges has quit IRC
[19:53:04] *** goodenough has quit IRC
[19:53:58] *** MistahKurtz has joined #angularjs
[19:53:59] *** marr has quit IRC
[19:54:19] *** cthrax has quit IRC
[19:54:36] *** wafflej0ck has quit IRC
[19:54:37] *** Ro has quit IRC
[19:54:56] *** disorder20 has joined #angularjs
[19:55:05] *** jiskiras has joined #angularjs
[19:55:19] *** wafflej0ck has joined #angularjs
[19:55:56] <surreal> I'm running into a (fun!) IE11 exception with digest. Anybody else encountered one of these?
[19:56:49] *** goodenough has joined #angularjs
[19:57:22] *** Snugug has quit IRC
[19:57:45] *** s00pcan has joined #angularjs
[19:58:19] *** MANCHUCK has joined #angularjs
[19:58:25] *** thedodd has quit IRC
[19:58:45] <surreal> I get a 'Maximum iteration limit exceeded.' exception.
[19:58:50] *** dcbarans has joined #angularjs
[19:59:01] *** Owner__ has joined #angularjs
[19:59:09] *** MANCHUCK has quit IRC
[19:59:13] *** esk4nd4r has joined #angularjs
[19:59:18] *** woah has joined #angularjs
[19:59:32] <surreal> Is there a way to catch this and move on? All the other browsers I've tested do just fine without encountering this problem.
[19:59:38] *** Owner__ is now known as Guest73915
[20:00:03] *** cotko has quit IRC
[20:00:09] <dcbarans> Hey all, i'm looking for a simple CMS backend to use with angular.. can't seem to find any good ones out there (i'm really just looking for simple API access so i can pull data from angular app)
[20:00:15] <gnarMatix> anyone have any links to credible resources describing how crawlable angular is these days?
[20:00:18] *** elrabin_ has joined #angularjs
[20:00:29] <gnarMatix> (crawlable by google)
[20:00:43] *** FIFOd[a] has quit IRC
[20:01:20] *** jiskiras has quit IRC
[20:01:40] <grizzm0> dcbarans, Apigility?
[20:01:40] *** dsont_bubbles has joined #angularjs
[20:01:46] <grizzm0> Built on top of Zend Framework 2
[20:01:56] <grizzm0> API builder with auth, versioning and docs
[20:01:58] <dsont_bubbles> hello angularlings
[20:02:12] *** dsont_bubbles is now known as metagen
[20:02:15] <dcbarans> grizzm0: Hmm, i'll check that out
[20:02:29] *** FIFOd[a] has joined #angularjs
[20:02:30] *** loverajoel has joined #angularjs
[20:03:23] *** coffey has quit IRC
[20:03:28] *** elrabin has quit IRC
[20:03:28] *** the-anconia has quit IRC
[20:03:34] *** darrin has quit IRC
[20:03:52] <acmehandle> Can anyone tell me if $parse is an angular or javascript function
[20:04:08] <eslaron> I tried using this https://github.com/Narzerus/angular-permission for role based access, but when the use clicks 'Refresh' the route doesn't reload. Anybody has an idea how to fix that?
[20:04:20] <eslaron> *user
[20:04:40] *** Sky[x] has quit IRC
[20:05:08] <ctanga> eslaron: you tend to ask unanswerable questions
[20:05:18] <eslaron> I know :<
[20:05:24] <ctanga> like “I’m using some library, it doesn’t work. how do I fix it?” is not answerable
[20:05:29] *** klaut has joined #angularjs
[20:05:39] <eslaron> Well, let me try to be precise.
[20:05:48] <ctanga> need to know what you’ve tried and what exactly is the problem
[20:05:53] *** elrabin_ has quit IRC
[20:05:55] *** neoadventist has joined #angularjs
[20:06:28] *** elrabin has joined #angularjs
[20:06:38] *** Una has joined #angularjs
[20:06:57] *** one0one has joined #angularjs
[20:06:57] *** loverajoel has quit IRC
[20:07:07] *** platonic has joined #angularjs
[20:07:11] *** elrabin has joined #angularjs
[20:07:18] *** ahtik has joined #angularjs
[20:07:18] *** baweaver has quit IRC
[20:07:54] *** baweaver has joined #angularjs
[20:08:06] *** MistahKurtz has quit IRC
[20:08:09] *** glosoli has quit IRC
[20:08:14] *** glosoli_ has joined #angularjs
[20:08:21] *** phuh has quit IRC
[20:08:25] *** gnarMatix has quit IRC
[20:08:44] *** phuh has joined #angularjs
[20:08:47] *** baweaver has quit IRC
[20:09:02] <eslaron> When I don't to anything to restrict access ui-router, the user can freely refresh the state. For example /#/register. This routes reloads when the user while not knowing how this works hits F5. But when I use the angular-permission module, the state doesn't reload when the user hits F5 or clicks Refresh.
[20:09:03] *** baweaver has joined #angularjs
[20:09:11] *** the-anconia has joined #angularjs
[20:09:13] *** Latros-OS has quit IRC
[20:09:36] *** soee_ has joined #angularjs
[20:09:40] *** woebtz has joined #angularjs
[20:09:47] <eslaron> Sorry... this is unreadable, let me rephrase xD
[20:10:15] <oniijin> more than 4 lines of text, ignore
[20:10:46] <ctanga> O
[20:10:57] <ctanga> I’d click a plunk if one was pasted
[20:11:29] *** sonofdirt has quit IRC
[20:11:45] *** Reskp has joined #angularjs
[20:12:15] *** amargherio has joined #angularjs
[20:12:47] *** soee has quit IRC
[20:13:06] *** stirlingw has quit IRC
[20:13:39] *** stirlingw has joined #angularjs
[20:13:48] *** sonofdir_ has joined #angularjs
[20:14:12] <eslaron> When I don't do any access restricting in ui-router by using the angular-permission module the user can freely refresh the state. For example /#/register. This state reloads when F5 is pressed or 'Refresh' clicked. But when I use the angular-permission module, the state doesn't reload when the user refreshes the state. You shouldn't use refresh on SPA. But most of the users just don't know/care about how it works. So I am wondering
[20:14:45] *** ggrzybek has joined #angularjs
[20:14:46] *** tech2 has joined #angularjs
[20:14:50] <eslaron> xD xD
[20:14:54] <eslaron> too long to post xD
[20:15:27] *** cheef has joined #angularjs
[20:15:34] *** rhp2 has joined #angularjs
[20:15:53] *** moritzs has quit IRC
[20:16:18] *** jbeaudry has joined #angularjs
[20:16:37] <ctanga> what happens when you put a breakpoint and step through? https://github.com/Narzerus/angular-permission/blob/master/src/permission.mdl.js#L10
[20:17:06] *** pipoo has joined #angularjs
[20:17:09] *** Raging_Hog has joined #angularjs
[20:17:41] *** rhp has quit IRC
[20:18:00] <ctanga> https://i.imgur.com/mE4PX7v.jpg
[20:18:02] <eslaron> before or after the line you marked?
[20:18:03] *** SeeThruHead has quit IRC
[20:18:20] <ctanga> just step through and the problem should show itself
[20:18:21] *** blomman has joined #angularjs
[20:18:29] <the-anconia> jaawerth: Did you post a link for me earlier? Stepped out for lunch and scrolling up looks like I missed someething
[20:18:30] *** cheef has quit IRC
[20:18:32] *** rhp has joined #angularjs
[20:18:36] *** krawek has joined #angularjs
[20:18:38] <ctanga> the-anconia: https://i.imgur.com/mE4PX7v.jpg
[20:18:39] *** metagen has left #angularjs
[20:18:40] *** cheef has joined #angularjs
[20:18:46] *** junmin_ has joined #angularjs
[20:19:00] <eslaron> ctange, where I should do the breakpoint?
[20:19:15] <the-anconia> ctanga ?
[20:19:51] *** rhp2 has quit IRC
[20:20:23] *** loverajoel has joined #angularjs
[20:20:26] *** cheef has quit IRC
[20:20:38] *** cheef has joined #angularjs
[20:21:08] *** mbildner has joined #angularjs
[20:21:17] *** jonr22 has joined #angularjs
[20:21:17] *** Guest73915 has quit IRC
[20:21:23] *** pipoo has quit IRC
[20:21:31] *** junmin has quit IRC
[20:21:56] *** cheef has quit IRC
[20:22:11] *** sacho has quit IRC
[20:22:39] *** davi has joined #angularjs
[20:22:39] *** davi has joined #angularjs
[20:22:43] <jaawerth> the-anconia: just a quick sample plunk of how you should use MOAR DOTS to keep the binding working. One thing I'm not making sure of here is "controller as", which I left out so as not to further confuse things. But in general I always use controller as syntax
[20:22:51] <jaawerth> the-anconia: http://plnkr.co/edit/HLTZ7sk5F8QqKUp2iGRd?p=preview
[20:23:06] <oniijin> lolol
[20:23:08] *** loverajoel has quit IRC
[20:23:15] <oniijin> man jaawerth MOARDOTS overload today
[20:23:20] <oniijin> sheeez
[20:23:29] <ctanga> http://bit.ly/MOARDOTS
[20:23:40] *** phzon has joined #angularjs
[20:23:46] *** saucey has joined #angularjs
[20:23:51] <jaawerth> it's always about MOARDOTS
[20:23:57] *** jaawerth has left #angularjs
[20:24:04] *** jaawerth has joined #angularjs
[20:24:09] *** mven has joined #angularjs
[20:24:18] *** favetelinguis has quit IRC
[20:24:42] *** amargherio has quit IRC
[20:24:46] *** cheef has joined #angularjs
[20:25:00] <dllama> how do i append an object with more data?
[20:25:06] <dllama> i can't push as its not an array,
[20:25:13] *** travm is now known as travm-afk
[20:25:26] <ctanga> http://plnkr.co/edit/0sk9BxPXMLx7klQpkN9M?p=preview
[20:25:44] *** dcbarans has quit IRC
[20:25:54] *** coffey has joined #angularjs
[20:26:00] *** cam_y has quit IRC
[20:26:03] <ctanga> dllama: do what now?
[20:26:05] *** jonr22 has quit IRC
[20:26:18] *** coffey is now known as Guest96237
[20:26:23] <dllama> i have a hash, i need to add to it
[20:26:27] *** cam_y has joined #angularjs
[20:26:30] <ctanga> a map?
[20:26:30] *** cheef has quit IRC
[20:26:35] *** mclenithan has joined #angularjs
[20:26:36] <dllama> {monday: {foo: bar} } , and i need to add tuesday to that
[20:26:41] *** cheef has joined #angularjs
[20:26:42] <ctanga> so do it
[20:26:47] <the-anconia> oniijin: great intro to the angular community
[20:27:14] <ctanga> myMap.tuesday = { baz: “qux” }
[20:27:17] <oniijin> use ur damn dots
[20:27:38] <dllama> oh crap
[20:27:41] *** siddart has quit IRC
[20:27:44] <dllama> i knew it was something stupid i was overlooking ;
[20:27:47] <dllama> thank you
[20:27:47] *** phzon has quit IRC
[20:27:50] <ctanga> heh
[20:27:57] *** siddart has joined #angularjs
[20:27:57] <ctanga> yw
[20:28:05] <opus_> https://cloud.google.com/events/google-cloud-platform-live/stream
[20:28:05] <dllama> been staring @ same code for hours, its to a point where things no longer make any sense
[20:28:21] *** MistahKurtz has joined #angularjs
[20:28:29] <mattblang> could I use a shared cache to keep several controllers' $scope.list in sync?
[20:28:35] *** drej has joined #angularjs
[20:28:52] *** cheef has quit IRC
[20:29:00] <ctanga> mattblang: yes, and you would call it a service
[20:29:03] *** cheef has joined #angularjs
[20:29:37] <mattblang> ctanga so I have a service defined, with shared caches created using $cacheFactory. I'm just not sure how to set a list on several controllers scope that will stay in sync
[20:29:37] *** ccohn has quit IRC
[20:29:47] *** TrevDev has quit IRC
[20:30:03] *** TrevDev has joined #angularjs
[20:30:13] *** ccohn has joined #angularjs
[20:30:18] <ctanga> mattblang: make sure each controller has a list var that points to the same instance. i.e., the same references
[20:30:53] *** cam_y has quit IRC
[20:30:58] <ctanga> make sense?
[20:31:03] <mattblang> ctanga which reference though. i couldn't seem to find a getAll function or anything like that. only a get for a particular item. maybe I should also keep a list of IDs?
[20:31:21] <ctanga> do you define the service API or somebody else?
[20:31:21] *** cam_y has joined #angularjs
[20:31:22] *** Sebastien-L has joined #angularjs
[20:31:23] *** whitebook has joined #angularjs
[20:31:35] *** Raging_Hog has quit IRC
[20:31:59] <mattblang> ctanga me
[20:32:05] *** zwacky has joined #angularjs
[20:32:11] *** whitebook has quit IRC
[20:32:11] *** joshontheweb has quit IRC
[20:32:11] *** siddart has quit IRC
[20:32:19] <merpnderp> What did gnarMatix mean about using shell scripts? Why is that a bad idea to use that with node-supervisor?
[20:32:27] *** siddart has joined #angularjs
[20:32:29] *** TrevDev has quit IRC
[20:32:38] <mattblang> ctanga I understand how I could set multiple scope variables equal to the return list of a service. just not sure how to get it to work with a cache
[20:32:42] *** whitebook has joined #angularjs
[20:32:45] *** TrevDev has joined #angularjs
[20:32:53] <ctanga> I guess I don’t understand then
[20:33:09] *** Tobius has quit IRC
[20:33:30] *** cheef has quit IRC
[20:33:41] *** cheef has joined #angularjs
[20:34:01] *** quarnstro has quit IRC
[20:34:30] <mattblang> ctanga the caches themselves I am maintaining in a service. I will constantly have things inserted and taken out of the cache, but I can't seem to figure out in my head how I will keep corresponding $scope.list variables in sync as well. not sure if that makes any sense
[20:34:37] *** ccohn has quit IRC
[20:34:44] <ctanga> mattblang: show me an example of the cache service
[20:35:06] *** josh-k has joined #angularjs
[20:35:49] *** ccohn has joined #angularjs
[20:35:52] *** cheef has quit IRC
[20:36:02] *** cheef has joined #angularjs
[20:36:03] *** siddart has quit IRC
[20:36:18] *** siddart has joined #angularjs
[20:36:23] *** Skrypter has quit IRC
[20:36:38] *** dc_ has quit IRC
[20:36:49] *** loverajoel has joined #angularjs
[20:36:49] *** favetelinguis has joined #angularjs
[20:36:51] *** blomman has quit IRC
[20:36:57] *** tech2 has quit IRC
[20:36:59] *** a3gis has joined #angularjs
[20:38:04] *** siddart has quit IRC
[20:38:08] *** lolmaus has quit IRC
[20:38:20] *** siddart has joined #angularjs
[20:38:22] *** lolmaus has joined #angularjs
[20:38:39] *** walbert has joined #angularjs
[20:39:26] *** travm-afk is now known as travm
[20:39:32] *** cheef has quit IRC
[20:39:45] *** cheef has joined #angularjs
[20:39:57] <maraneta> so i'm making a view where there are many different objects with form fields that can be edited and submitted for each object. should i make the entire view one form, or have separate forms for each object?
[20:40:17] *** cheef has quit IRC
[20:40:36] *** prbc has joined #angularjs
[20:40:59] <TheAceOfHearts> oh man, this angular material grid actually looks fucking awesome
[20:41:29] *** a3gis has quit IRC
[20:41:37] *** rtpg has joined #angularjs
[20:41:57] *** nezt has joined #angularjs
[20:41:57] *** prbc_ has joined #angularjs
[20:42:00] *** savantgarde has joined #angularjs
[20:42:31] <savantgarde> I am unable to use ngShow due to an exception within ngAnimate: TypeError: object is not a function
[20:42:32] <TheAceOfHearts> https://material.angularjs.org/#/layout/alignment
[20:42:34] *** linojon has quit IRC
[20:42:38] <savantgarde> known issue?
[20:42:56] <savantgarde> line 992 of angular-animate.js
[20:43:12] <nezt> Hi all, right now I have external html fragments using ng-include inside bootstrap columns. the column/grid changes are not applied to the fragments even though the ng-include is placed within the column html in my index. any ideas?
[20:43:30] *** lite_ has quit IRC
[20:43:35] *** junmin has joined #angularjs
[20:44:27] <mattblang> ctanga I don't have my code handy, but I am thinking maybe I could use $filter instead to keep shared lists in sync. I'm mainly using cache to provide an easy way for adding / removing / updating elements of the list when new data comes in
[20:44:37] *** junmin_ has quit IRC
[20:44:49] *** braidn has quit IRC
[20:45:00] *** g3funk has joined #angularjs
[20:45:03] *** SeeThruHead has joined #angularjs
[20:45:04] <surreal> nezt: Do you have a plnkr or jsfiddle with the applicable code? That will make it easier to understand the problem.
[20:45:18] *** prbc has quit IRC
[20:45:49] <ctanga> $filter? that seems odd, I’m not sure where you’re going with that though. I think you can figure out a way to make all the controllers share the same list reference
[20:45:56] *** walden is now known as walden|brb
[20:46:03] *** mbildner has quit IRC
[20:46:06] <nezt> surreal: i always seem to notice what i did wrong as soon as i ask questions on here, lmao
[20:46:09] *** rtpg has quit IRC
[20:46:18] <nezt> surreal: ty though m8 :)
[20:46:30] <surreal> Sometimes the best way to figure stuff out is to formulate the question.
[20:46:54] <surreal> It's similar to "rubber ducking".
[20:47:14] *** Owner__ has joined #angularjs
[20:47:28] *** Owner__ has quit IRC
[20:47:36] *** sacho has joined #angularjs
[20:47:52] *** Owner__ has joined #angularjs
[20:48:24] *** Owner__ has joined #angularjs
[20:48:28] *** yelvert has joined #angularjs
[20:48:49] *** Guest27771 has joined #angularjs
[20:48:54] *** jbeaudry has quit IRC
[20:48:56] <snurfery> sup yall
[20:49:01] <ctanga> oy
[20:49:06] <oniijin> howdy
[20:49:15] *** linojon has joined #angularjs
[20:49:19] *** Guest27771 has joined #angularjs
[20:49:21] <ctanga> snurf you should comment on ui-router RFC: https://github.com/angular-ui/ui-router/issues/1501
[20:49:26] <mattblang> ctanga so say several controllers are sharing a list foo. the server emits to me, with a WebSocket, that a new Foo was created (or deleted, etc). I'd like to update that list, but without having to write methods that just loop through the entire thing
[20:49:41] *** sheerun has quit IRC
[20:49:47] *** Guest27771 has joined #angularjs
[20:49:52] *** nuizzy has joined #angularjs
[20:50:25] <ctanga> right, so you have a cache service that keeps track of that list foo, yes? and you want that new Foo to appear in all the controllers’ scopes?
[20:50:34] *** whitenexx has joined #angularjs
[20:50:34] <mattblang> ctanga yeah, exactly
[20:50:45] <whitenexx> Hey guys, i'm new to angularJS. What's the preferred way to build an angularjs app? Best practises? I used https://github.com/Swiip/generator-gulp-angular to generate a project. Is this a good choice?
[20:50:51] <ctanga> oh, question: are you using routing?
[20:51:03] <mattblang> ctanga but cache only seems to have a get for one item, not a get all function or anything
[20:51:10] <mattblang> ctanga I am, it is a full SPA
[20:51:12] *** Guest27771 has quit IRC
[20:51:22] <snurfery> ctanga: interesting, yeah I'll take a look
[20:51:32] <snurfery> sup oniijin
[20:51:36] <ctanga> but you wrote the cache service yourslef, I thought?
[20:51:40] *** Guest96237 has left #angularjs
[20:51:50] <oniijin> snurfery not much. dealing with stupid ebay
[20:51:57] <snurfery> did you acquire the 7854302.5 required forms of ID to vote in your state?
[20:52:02] <snurfery> heh
[20:52:10] *** cam_y has quit IRC
[20:52:11] <oniijin> u mean, my dirvers license?
[20:52:23] *** avree has joined #angularjs
[20:52:25] <mattblang> ctanga oh sorry, I am using Angular's cacheFactory
[20:52:29] <snurfery> 1 down, 7854301.5 to go
[20:52:41] <ctanga> oic I am not familiar with that cacheFactory
[20:52:45] <oniijin> ur one of those anti voterID people eh
[20:52:57] <oniijin> i see
[20:53:11] *** favetelinguis has quit IRC
[20:53:45] *** favetelinguis has joined #angularjs
[20:53:52] <snurfery> yeah not a big fan
[20:54:08] *** marshall_ has quit IRC
[20:54:10] <oniijin> meh. most peoplet hink it's reasonable
[20:54:26] *** lolmaus_ has joined #angularjs
[20:54:38] <snurfery> if they aren't affected, yeah
[20:54:42] <themime> ^
[20:54:51] *** Makpoc has joined #angularjs
[20:54:54] <oniijin> lol don't wanna get into poltics argument
[20:55:00] <themime> lol
[20:55:03] <oniijin> cuz generally views can't be changed, and just leads to flaming
[20:55:04] <oniijin> =]
[20:55:09] <themime> so how does cachefactory work?
[20:55:50] *** znst has joined #angularjs
[20:55:57] *** scythe__ has quit IRC
[20:56:13] *** goodenough has quit IRC
[20:56:22] <themime> cause im just using $q and checking if my data already exists
[20:56:51] <ctanga> mattblang: not sure I see the value in cacheFactory
[20:56:53] *** lolmaus has quit IRC
[20:56:57] <snurfery> trudat
[20:57:00] *** danecando has quit IRC
[20:57:23] *** znst has left #angularjs
[20:57:36] <oniijin> need dem cacheSweatshops
[20:57:42] <themime> haha
[20:57:52] *** Aliks has quit IRC
[20:58:01] *** baweaver has quit IRC
[20:58:03] *** favetelinguis has quit IRC
[20:58:04] *** zanea|away is now known as zanea
[20:58:36] <ctanga> I should say, cachefactory use case looks to be LRU cache for single key/value pairs, but you want to manipulate lists of items
[20:58:37] *** baweaver has joined #angularjs
[20:58:38] *** RobinBAwesome has quit IRC
[20:58:45] <ctanga> so I don’t see the value of cacheFactory for your use case
[20:59:24] *** SeeThruHead has quit IRC
[20:59:24] *** krawek has quit IRC
[20:59:28] *** tech2 has joined #angularjs
[20:59:29] *** nezt has quit IRC
[20:59:44] *** e0ipso is now known as e0ipso|away
[20:59:52] *** thomastuts has joined #angularjs
[21:00:02] <davek> oniijin, snurfery, either of you California voters?
[21:00:12] <oniijin> snurfery is
[21:00:31] *** cthrax has joined #angularjs
[21:00:51] <davek> snurfery, where'd you come down on 46? I seriously can't get a straight assessment from anywhere so I'm just curious what your reasoning was.
[21:00:56] *** Sontakey has joined #angularjs
[21:01:01] <davek> Sorry 45*
[21:01:06] *** ahmetkapikiran has quit IRC
[21:01:28] *** matisoffn has quit IRC
[21:01:48] *** krawek has joined #angularjs
[21:01:48] *** krawek has joined #angularjs
[21:01:59] <mattblang> ctanga is there anything else you might recommend that would ease the pain of adding, removing, altering items in a list?
[21:02:02] *** fedenunez has joined #angularjs
[21:02:03] *** dannyc has joined #angularjs
[21:02:17] *** walden|brb is now known as walden
[21:02:23] *** fedenunez has quit IRC
[21:02:28] <themime> mattblang: im doing something similar im curious what options you've already explored and what issues youve had. im a little late to the party
[21:02:34] *** Una has quit IRC
[21:02:36] <ctanga> honestly, I use array.push and slice
[21:02:37] *** richiebkr has quit IRC
[21:02:54] *** ahmetkapikiran has joined #angularjs
[21:02:58] *** baweaver has quit IRC
[21:03:06] *** glosoli_ has quit IRC
[21:03:18] <themime> i think the only thing is to avoid ...is it splice? cause it makes a whole new array or something
[21:03:19] *** Expi1 has joined #angularjs
[21:03:19] <ctanga> unless I need whizbang stuff, in the end it’s just standard javascript lists
[21:03:29] *** glosoli has joined #angularjs
[21:03:45] *** savantgarde has quit IRC
[21:03:53] *** tech2 has quit IRC
[21:03:56] <ctanga> themime: ah true that, mattblang needs to do the edits in-place if the list is being shared
[21:04:14] *** e0ipso|away is now known as e0ipso
[21:04:15] <ctanga> splice is the correct one
[21:04:16] *** Jason___ has joined #angularjs
[21:04:19] *** prbc_ has quit IRC
[21:04:21] <themime> to avoid or to use?
[21:04:36] <ctanga> to use, it adds/removes elements in-place
[21:04:37] <themime> wait don't they have different uses but youre supposed to avoid one
[21:04:49] *** Sebastien-L has quit IRC
[21:04:52] *** prbc has joined #angularjs
[21:05:12] *** thomastuts has quit IRC
[21:05:12] *** moritzs has joined #angularjs
[21:05:13] <mattblang> hey themime! so yeah, I have some shared lists that represent lists of data from my server. I will constantly have creates, deletes, and updates sent to me from the server via websockets, and I would like to update the lists accordingly. I was hoping maybe there was a better way then manually finding the index by looping
[21:05:14] *** mtsr has joined #angularjs
[21:05:33] *** woah has quit IRC
[21:05:42] <snurfery> davek: hmm that one is tricky. pretty sure we had the fastest-growing premiums in the country or near it
[21:06:32] *** slopjong has joined #angularjs
[21:06:41] *** dannyc has quit IRC
[21:06:41] <themime> mattblang: does order matter?
[21:06:41] <ctanga> you can use indexOf and push and splice etc and it’s pretty easy. are you concerned about performance? Switch from a list to an assoc-array and key by object id
[21:06:42] <mattblang> themime so for example, I get a message that foo with id 25 was deleted. I was hoping I wouldn't have to just loop the list until I find 25 and splice it
[21:07:01] <themime> a map by id?
[21:07:11] <themime> aka dictionary
[21:07:16] <mattblang> themime it does, but was thinking I might could handle that in the ng-repeat with a filter. I would definitely prefer the list iteself to stay in order though
[21:07:17] <themime> aka associative array in JS
[21:07:31] *** cam_y has joined #angularjs
[21:07:40] *** kewark has joined #angularjs
[21:07:40] *** kewark has joined #angularjs
[21:07:52] <mattblang> themime I would still need to loop the id array though to find which oen to delete right
[21:08:20] *** phuh has quit IRC
[21:08:22] <ctanga> well you’d make a function that does that
[21:08:34] *** richiebkr has joined #angularjs
[21:08:40] <themime> i think you can just do: del list[key]
[21:08:46] *** phuh has joined #angularjs
[21:08:57] <themime> not from an array cause it leaves it undefined, but for an object/assoc array
[21:09:18] *** krawek has quit IRC
[21:09:19] *** esk4nd4r has quit IRC
[21:09:22] *** prbc has quit IRC
[21:10:17] <themime> oh its "delete list[key]" and as long as typeof list === "object" you should be okay
[21:10:28] <merpnderp> So what do people use to build their angular projects into a single JS file?
[21:10:38] <themime> merpnderp: gulp and grunt i think
[21:10:38] <ctanga> I’d just use an array and splice it by index for deletes
[21:10:49] <davek> snurfery, right but the voter guide raises some points about the prop: there's already an insurance commission in CA, it just lacks the same authority to veto rate hikes. The prop also suggests giving this authority to a single commissioner, which I have some issues with.
[21:11:07] <themime> ctanga: hed have to loop to find the index though. i guess i don't know how fast delete lost[x] is though
[21:11:13] <themime> thoughthough
[21:11:19] *** favetelinguis has joined #angularjs
[21:11:23] <themime> oh god 3 day old gas station sandwhich
[21:11:32] <snurfery> davek hmm yeah, I'm reading up on it now, seems like good intentions with crap implementation
[21:11:36] <merpnderp> themime: I'm barely familiar with gulp and grunt. Aren't they jsut automation tools? They'd still just be calling some other process to do the work, right?
[21:11:37] *** yelvert has quit IRC
[21:11:54] *** kewark has quit IRC
[21:11:58] *** cam_y has quit IRC
[21:11:58] *** davi has quit IRC
[21:12:06] *** yelvert has joined #angularjs
[21:12:27] <themime> merpnderp: i JUST started getting into gulp, and from what i see you use JS like syntax to start "tasks" such as minifying. id specify where the place is and the output directory and it does its thing. i haven't gotten past that but im guess i can just chain them together
[21:12:33] *** sheplu has joined #angularjs
[21:12:34] *** krawek has joined #angularjs
[21:12:34] *** krawek has joined #angularjs
[21:13:17] *** armitage7 has joined #angularjs
[21:13:21] <davek> snurfery, yeah exactly. Just give that authority to the existing board...
[21:13:26] *** SoulBlade has joined #angularjs
[21:13:28] <themime> merpnderp: by automation do you mean testing? they can be hooked to jasmine/etc i believe for that as well. it seems like they have a lot of uses. this is just info gained from lurking, maybe someone can confirm better
[21:13:29] *** moritzs has quit IRC
[21:13:41] *** richiebkr has quit IRC
[21:14:02] *** ThomasBeauvais has quit IRC
[21:14:07] *** favetelinguis has quit IRC
[21:14:24] <merpnderp> themime: I just want to build my files into a single one. I was thinking of using node-supervisor to execute a shell script that ran uglify on all my files whenever a file was updated. But someone (who left) said that was bad without syaing why.
[21:14:49] <merpnderp> Seems a lot less work and hassle than setting up grunt/gulp and configuring them.
[21:14:50] <themime> merpnderp: i think gulp is that shell script
[21:14:54] *** mchapman has joined #angularjs
[21:14:59] <themime> well its the shell and you write a script
[21:15:11] *** bkuberek has joined #angularjs
[21:15:13] <merpnderp> grunt seems much more popular than gulp, so why gulp?
[21:15:27] *** danecando has joined #angularjs
[21:15:34] *** Juanchito has quit IRC
[21:15:39] <TheAceOfHearts> gulp is better
[21:15:48] *** bayousoft has quit IRC
[21:15:50] *** edy has joined #angularjs
[21:15:55] <TheAceOfHearts> it's faster and the code is obvious
[21:16:02] *** threesixes has quit IRC
[21:16:04] *** ahmetkapikiran has quit IRC
[21:16:07] <TheAceOfHearts> grunt is great for simpler things
[21:16:10] <drej> eh
[21:16:17] *** bayousoft has joined #angularjs
[21:16:17] <TheAceOfHearts> but gulp is better when you have very intricate build processes
[21:16:20] <drej> to each their own
[21:16:23] *** yelvert has quit IRC
[21:16:23] <themime> i was going to use grunt because of its integration with my IDE i /was/ using but now im using node+express as my backend, and gulp is written in JS so now all my code will be in JS and like TheAceOfHearts said it seems more expandable
[21:16:24] <masscrx> does anybody know if multiple level nested views can cause some performance issues?
[21:16:37] *** richiebkr has joined #angularjs
[21:16:40] <drej> also both are severely bloated and neither are true to their roots any more
[21:16:42] <masscrx> so for example customers.show.invoices.new
[21:16:43] <BahamutWC|Work> TheAceOfHearts: I think I’m finding the opposite actually
[21:16:51] <drej> i'd tend to agree with that BahamutWC|Work
[21:16:59] *** glosoli has quit IRC
[21:17:00] <drej> grunt is more mature (even if it is just a little bit so)
[21:17:01] <themime> masscrx: ui-router i assume?
[21:17:04] *** Foxandxss has quit IRC
[21:17:09] <masscrx> themime: exactly
[21:17:09] <drej> gulp is a bit of amateur hour
[21:17:11] <BahamutWC|Work> but I’m at the growing pains portion of gulp usage atm
[21:17:21] <TheAceOfHearts> really?
[21:17:25] <Jason___> hello? i'm new to angular and am having troubles with a particular problem.... did I stumble into the wrong place to look for help?
[21:17:25] <TheAceOfHearts> I've found gulp to be a breeze
[21:17:30] <TheAceOfHearts> it's just streams
[21:17:32] <drej> http://getprismatic.com/story/1414678225069
[21:17:35] <drej> TheAceOfHearts: BahamutWC|Work ^
[21:17:36] *** ahtik has quit IRC
[21:17:37] <themime> Jason___: right place, you can just ask your question from now on though :)
[21:17:38] <drej> really good read
[21:17:43] *** Foxandxss has joined #angularjs
[21:17:48] <merpnderp> Yikes and I'm thinking what I need are easy one liner shell scripts
[21:18:02] *** SoulBlade has quit IRC
[21:18:19] <merpnderp> growing pains? amateur hour? not true to their roots? That is way more drama than I want for concating my files.
[21:18:20] <TheAceOfHearts> drej: gulp is actually fairly small
[21:18:23] *** pipoo has joined #angularjs
[21:18:29] *** bkuberek_ has quit IRC
[21:18:31] *** dalguete is now known as [dalguete]
[21:18:35] <drej> TheAceOfHearts: gulp itself is, all the tools for it arent
[21:18:42] <TheAceOfHearts> and it does push towards using native modules rather than relying on plugins
[21:18:56] <masscrx> themime: I'm asking because when I'm switching between states I have some lags 1-2s
[21:18:59] *** icfantv has quit IRC
[21:19:00] <drej> im not a grunt fan boy
[21:19:02] <themime> drej: interesting hes only using NPM, that sounds familiar i feel like ive seen that before
[21:19:03] <drej> and im not hating on gulp
[21:19:10] *** sigurding has joined #angularjs
[21:19:10] <drej> i think they both suffer from the same problems
[21:19:14] <drej> and that each one has its place
[21:19:27] <masscrx> so I have customers.show.invoices and now when I go to customers.show.invoices.new I have lag
[21:19:30] <masscrx> and so on
[21:19:42] <themime> merpnderp: did you see that prismatic link? it looks kinda like what you may be suggesting - using node to run scripts
[21:19:51] <themime> stupid gulp
[21:19:51] *** jjasonclark has quit IRC
[21:19:53] <themime> and grunt
[21:20:04] <themime> maybe i just won't minify anything
[21:20:26] <TheAceOfHearts> I use node to run scripts, but if you have a lot of intricate interactions it's a lot simpler to have it as a gulp task
[21:20:31] *** cswelin has quit IRC
[21:20:34] <davek> drej, this article is bullshit.
[21:20:49] <drej> id agree with you if you elaborate a little
[21:20:54] <drej> i found a few holes in his thinking as well
[21:21:07] <Jason___> cannot wrap my head around how to get button selection to translate into displaying correct json: http://plnkr.co/edit/Un3ZCPtkQ73ZyEzsPdjb?p=preview
[21:21:08] <davek> It just rails on grunt/gulp for his improper use thereof and then presents an exceedingly simple use case where npm is applicable.
[21:21:11] <themime> we don't really know how big his project actually was
[21:21:27] <drej> davek: just like any tool, there's a right way to use it and a wrong way
[21:21:37] <themime> masscrx: i don't think it has any inherent issue, maybe you have a new filter/controller thing thats causing a separate delay
[21:21:39] <merpnderp> themime: I think I'll just user node-supervisor to run uglify on file changes.
[21:21:46] <TheAceOfHearts> that's such a lame answer, you can pretty much say that about anything
[21:21:53] <drej> i agree with that, i think that grutn and gulp are really powerful but there's an immediate tendency to use them for stupid things and just install n dependencies
[21:21:59] *** marr has joined #angularjs
[21:22:04] <drej> it feels like jquery plugins ecosystem all over again
[21:22:20] *** richiebkr has quit IRC
[21:22:21] <davek> Very few of my tasks are one-off executions of a single binary/script, they're permutations of various pipeline steps working in conjunction.
[21:22:22] *** linojon has quit IRC
[21:22:23] *** pipoo has quit IRC
[21:22:25] <themime> drej: which worked until i found require and then angular. maybe gulp/grunt is what works for now
[21:22:35] <themime> until something better comes
[21:22:37] <masscrx> themime: so it doesnt mather how many levels I have in nested states?
[21:23:20] *** ggrzybek has quit IRC
[21:23:26] <themime> masscrx: where are you experiencing lag?
[21:23:55] <Grokling> Jason___: What are you wanting to happen? I can't quite make it out?
[21:23:57] <TheAceOfHearts> something that I think gulp is missing is better support for pipelining
[21:24:04] <merpnderp> davek: can you give me an example of some of your pipeline steps?
[21:24:09] <themime> TheAceOfHearts: i thought thats what gulp was good at
[21:24:23] *** Fishy has quit IRC
[21:24:31] <TheAceOfHearts> erm
[21:24:45] <TheAceOfHearts> I meant more along the lines of building directed graphs of dependencies
[21:24:46] <masscrx> themime: https://gist.github.com/masscrx/a1cfa14626b6316bb00e
[21:25:03] *** ahtik has joined #angularjs
[21:25:18] *** neoadventist has quit IRC
[21:25:21] <TheAceOfHearts> which can be represented as a tree
[21:25:25] <Jason___> Grokling: User selects a radio button. Table displays appropriate "settings" based on button selection.
[21:25:28] *** yelvert has joined #angularjs
[21:25:30] <masscrx> themime: so for example when I'm switching between customers.show.invoices to customers.show.customers
[21:25:31] *** alexw has joined #angularjs
[21:25:47] *** freeman42 has quit IRC
[21:25:53] *** shpoont has joined #angularjs
[21:25:55] <TheAceOfHearts> so you usually wanna compile images and do revisioning, then update references in your html and css, but you have to compile and minify your html, you wanna compile, concat, and minify your css, etc.
[21:26:03] <vanseverk> Anyone here who uses grunt + autoreload for their angular app? The livereloading works, but when I do a "real" reload, I get a blank screen instead of my app
[21:26:07] <drej> for what its worth, i work at agencies and we dont necessarily have the luxury of jumping on the latest and greatest all the time
[21:26:07] *** krawek has quit IRC
[21:26:10] <TheAceOfHearts> if you wanna do that all together, it gets tricky
[21:26:15] *** SeeThruHead has joined #angularjs
[21:26:20] <drej> so our considerations extend way further than what a tool does specifically from a functional standpoint
[21:26:30] <themime> ctanga: do you know if switching between substates has some inherent lag? masscrx do you have a plunker?
[21:26:31] <drej> but more the community support, accountability, development tracts etc
[21:26:34] <Grokling> Jason___: So, you want to filter the JSON based on the button selection. Okay - give me a second and I'll tweak your plunker a bit for you.
[21:26:46] <themime> ctanga: masscrx deeply nested states
[21:26:56] *** freeman42 has joined #angularjs
[21:27:01] <ctanga> nothing inherent
[21:27:06] *** emmesswhy has joined #angularjs
[21:27:13] <merpnderp> wtf: gulp.watch('src/**/*.js', ['test', 'compile']); OMGBBQ!!1!!11!
[21:27:25] <davek> drej, the buzzword is strong with you.
[21:27:41] *** kreiggers has quit IRC
[21:27:46] <themime> ctanga: thats what i thought thanks, masscrx make a plunker and we might be able to help you further, its hard to say based on the gist - only thing i can think of is your resolve slowing things down because the page doesn't load until that resolve finishes
[21:27:51] <Jason___> Grokling: thank you.
[21:27:52] <masscrx> themime: I dont have a plunker but I;m thinking now how to change logic
[21:28:15] *** kreiggers has joined #angularjs
[21:28:20] *** linojon has joined #angularjs
[21:28:30] *** wallerdev has quit IRC
[21:28:39] <masscrx> but I'm curios if such deeply states are usually ok
[21:29:23] <drej> davek: yup
[21:29:40] <masscrx> maybe should I make one state with named views
[21:29:41] *** Skrypter has joined #angularjs
[21:29:51] <themime> masscrx: ctanga is a ui-router dev i think so he would know and he said theres nothing inherent, so id look at your resolve and make a plunker (plunkers mostly help you compartmentalize the issue and you end up solving it on your own >50% the time)
[21:29:53] *** whunt has quit IRC
[21:30:02] *** IvailoStoianov has quit IRC
[21:30:07] <themime> masscrx: depends on what your needs are. im working with a large system that has both
[21:30:55] <masscrx> I have a page with customer info /customers/show/1 and tabs with his invoices, customers files etc
[21:31:05] <themime> masscrx: the deepness shouldn't matter because at the base they're really just labels
[21:31:36] *** krawek has joined #angularjs
[21:31:36] *** krawek has joined #angularjs
[21:31:40] *** speakingcode has quit IRC
[21:31:58] *** speakingcode has joined #angularjs
[21:32:01] <reduce> i have a controller in angularjs that along with its template is used to create a new customer, i need this on another page except it needs to call a different rest api (with some minor template changes). Im considering having a child (or parent) controller that supplies the correct rest api call in each case. Does this sound like a reasonable solution?
[21:32:08] *** tech2 has joined #angularjs
[21:32:37] <themime> masscrx: having a hard time picturing your tabs without using named views
[21:32:49] <Grokling> Jason___: http://plnkr.co/edit/15oqcfQK3WoybuGLUaAY?p=preview
[21:32:56] *** simplyshipley has quit IRC
[21:33:05] *** marshall_ has joined #angularjs
[21:33:20] *** dc has joined #angularjs
[21:34:17] <masscrx> ok so another question, what way is more efficient and best practices, have one big controller for creating and editing customer's stuff, or divide to smallest controller and repeating code, so one controller for index action, one for editing only personal infos another for managing customer's files etc ?
[21:34:27] <themime> masscrx: oh i understand now, you have substates each time you change the tabs, it could be because its loading the template each time, im not sure if angular caches the template
[21:34:39] <themime> masscrx: always smaller controllers
[21:34:39] <ctanga> themime: it does
[21:34:56] <masscrx> yep, I have substate for each tab
[21:34:58] <ClearsTheScreen> masscrx: neither -- have a controller per meaningful action and abstracting away shared code in reusable modules. (i.e. not "repeating code")
[21:34:59] *** woah has joined #angularjs
[21:35:03] <themime> ^
[21:35:13] *** nicksloan has left #angularjs
[21:35:15] <Jason___> Grokling: many thanks, I've been banging my head against this on and off for hours. Somehow I just haven't grasped how to use filters yet.
[21:35:23] *** JohnBat26 has joined #angularjs
[21:35:30] *** amortimer has joined #angularjs
[21:35:41] *** hiptobecubic has joined #angularjs
[21:36:12] <hiptobecubic> Why does angular use JSON post instead xxx-www-form-encoded like the rest of the entire world?
[21:36:16] <masscrx> ClearsTheScreen: so I should have for example EditController for invoices and customers instead InvoiceEditController CustomerEditController
[21:36:17] <themime> ctanga: thanks
[21:36:17] *** MistahKurtz has quit IRC
[21:36:32] *** MistahKurtz has joined #angularjs
[21:36:33] <ClearsTheScreen> "meaningful action" like in "Things should be as simple as possible, but not simpler". having a NameInputFieldController is taking it too far. </aside>
[21:36:34] <hiptobecubic> 'x-www-form-urlencoded' rather
[21:36:35] <themime> masscrx: depends on how much functionality they share
[21:36:39] <Grokling> Jason___: np. You could probably use the builtin 'filter' filter to do this too.
[21:36:58] <hiptobecubic> and is the only way to POST correct to seriously hack the $httpProviders defaults?
[21:37:00] <hiptobecubic> correctly*
[21:37:20] <ClearsTheScreen> masscrx: if a thing is a seperate concept, it should be a separate thing, give or take. i'd likely make a controller for customers, another for invoices. i'd gather it unlikely i need to edit both as one thing.
[21:37:43] <ClearsTheScreen> and i'd say it's not much abotu functionality (that can be hidden in services and directives), but how much meaning they share.
[21:37:48] <themime> ClearsTheScreen: you keep saying what i want to say haha. i think i need to take a break
[21:38:05] <themime> masscrx: im stepping away for a bit good luck
[21:38:11] <ClearsTheScreen> hehe well i am still "fresh" from the bike ride i suppose :D
[21:38:18] *** woah has quit IRC
[21:38:18] *** cam_y has joined #angularjs
[21:38:34] <cpk> hey all. has anyone built a map application that re-plots new markers based on the center of the map.
[21:38:50] *** Grokling_ has joined #angularjs
[21:38:51] <ClearsTheScreen> one thing to remember about programs: a program is not a way to tell a computer what to do; it's a way to tell another programmer what a computer should do. so organize around meaning, around making understandable what's going on.
[21:39:10] <cpk> using angular-ui google maps
[21:39:27] *** mjs2600 has quit IRC
[21:39:32] <themime> ClearsTheScreen: thats a great description, young me could have used that understanding a lot more. i wasted so much time organizing for the wrong reasons haha
[21:40:33] *** mjs2600 has joined #angularjs
[21:41:02] *** fourq_ is now known as fourq
[21:41:30] <masscrx> ClearsTheScreen: I follow this way I think, but now my controller for editing customers for example has a 160 lines and will be around 200 I think, I have some background in ruby where controllers should be thiny, model can be 'fat' so I'm thinking all the time how to refactor controllers to be more light
[21:41:44] <ClearsTheScreen> hehe well, "experience is what you have just after you need it". took me long enough to get that kind of stuff, too. #oldcoders #takeovertheworld ... or something
[21:41:46] *** cswelin has joined #angularjs
[21:42:14] <ClearsTheScreen> masscrx: services, factories, directives.
[21:42:59] <ClearsTheScreen> while in my experience ng controllers tend to be a bit heavier (because they have to "populate the model^Wscope"), they can be made functionally rather thin as well. abstraction ftw :) (evne if i personally am not a fan of fat models either, but ymmv there)
[21:43:28] <reduce> is using $controller('whateverCtrl', {$scope: $scope}); to have controller inheritence against best practices?
[21:43:34] *** Snugug has joined #angularjs
[21:43:56] *** frankblizzar has quit IRC
[21:43:57] *** B1x1t0 has joined #angularjs
[21:44:04] *** hell_razer has joined #angularjs
[21:44:04] <reduce> it would be a nice solution to my problem but we want to follow best practices at this stage of our angular development
[21:44:21] *** lite_ has joined #angularjs
[21:45:14] *** cam_y has quit IRC
[21:45:18] *** hell_razer has quit IRC
[21:45:42] *** esk4nd4r has joined #angularjs
[21:45:46] *** ahtik has quit IRC
[21:46:56] *** cliluw has quit IRC
[21:47:22] *** jjasonclark has joined #angularjs
[21:48:27] *** Owner__ has joined #angularjs
[21:48:50] *** Owner__ is now known as Guest94319
[21:48:54] <ctanga> UI-Router users: please leave a comment with your opinion on RFC: https://github.com/angular-ui/ui-router/issues/1501
[21:49:05] *** lite_ has quit IRC
[21:49:45] *** hell_razer has joined #angularjs
[21:49:50] *** jiskiras has joined #angularjs
[21:50:19] <jcool> how can we bind calendar with a button event? I have several calendar and I need to bind to button next to them in order to fetch their value
[21:50:25] *** bbankes_ has joined #angularjs
[21:50:37] *** hell_razer has quit IRC
[21:50:56] *** MistahKurtz has quit IRC
[21:51:16] *** jMyles has joined #angularjs
[21:51:24] *** emmesswhy has quit IRC
[21:52:04] <themime> reduce: probably, have you tried using nested controllers?
[21:52:10] *** quetzakubica has joined #angularjs
[21:52:39] <themime> <div ng-controller="ParentController"><div ng-controller="AChildController"></div></div>
[21:52:40] <reduce> thats the other solution that im looking at
[21:53:31] <reduce> themime: but then, is it bad practice to access $parent from within a controller function?
[21:53:31] *** bbankes has quit IRC
[21:54:02] <quetzakubica> Guys, I don't get Dependency Injection. In this article http://www.yusufaytas.com/dependency-injection-in-javascript/ there is described DI example, but I don't know how should I get instance of my class. Should I always call Injector.get() which means that I couple my app with Injector?
[21:54:05] <themime> reduce: we're actually in territory im not familiar with so im not going to comment further, i don't want to steer you in the wrong direction
[21:54:06] *** JSON_voorheez has joined #angularjs
[21:54:09] <reduce> themime: is it bad practice to have a controller that depends on a parent or a nested controller?
[21:54:22] *** Jason___ has quit IRC
[21:54:44] *** snurfery has quit IRC
[21:54:45] <JSON_voorheez> Is there a way for me to tell ng-repeat that I want the $index to be calculated on the actual item index, instead of the item.key?
[21:55:11] <themime> quetzakubica: that is not angular DI
[21:55:22] *** whunt has joined #angularjs
[21:55:33] *** jdcasey has quit IRC
[21:55:36] <quetzakubica> themime: I know, I needed simpler example
[21:55:48] <GreenJello> JSON_voorheez, you would convert it to an array first
[21:55:48] <JSON_voorheez> when using something like :: obj as obj.name for obj in availableObjs
[21:55:58] *** elxa has quit IRC
[21:56:00] *** woah has joined #angularjs
[21:56:05] *** Expi1 has quit IRC
[21:56:32] <themime> JSON_voorheez: you might be needing track by?
[21:56:33] <JSON_voorheez> GreenJello: The thing is, it is in an array
[21:56:46] *** robdubya has quit IRC
[21:56:50] <JSON_voorheez> ahh that sounds promising, thanks themime
[21:57:03] <GreenJello> oh I see
[21:57:06] *** jiskiras has joined #angularjs
[21:57:14] <GreenJello> JSON_voorheez, why not pluck the name property ahead of time?
[21:57:15] <themime> JSON_voorheez: it probably wont' do exactly what you want but it might let you solve your problem still, if that makes sense
[21:57:29] *** whitebook has quit IRC
[21:57:32] *** Efrem has quit IRC
[21:57:40] <GreenJello> $scope.names = $scope.availableObjs.map(function(o){ return o.name })
[21:57:57] *** bluejade has joined #angularjs
[21:57:57] <GreenJello> and ng-repeat="name in names track by $index"
[21:58:04] *** cthrax has quit IRC
[21:58:11] *** \du has quit IRC
[21:58:11] *** Skrypter has quit IRC
[21:58:14] <devinandrews> is there a good reason to not make pretty much everything a directive? cause it seems to me that most things *should* be..
[21:58:17] *** foofoobar has joined #angularjs
[21:58:25] <themime> quetzakubica: the one you posted looks more complicated haha. what about it do you not understand? for instance given someModule.controller('MyController', ['$scope', 'dep1', 'dep2', function($scope, dep1, dep2) { <--- this is injecting $scope, dep1, and dep2 as dependencies and in the controller function you can then acces $scope,dep1, etc as actual
[21:58:26] <themime> objects. it prevents things from having to be on the "global" scope
[21:58:27] *** Aliks has joined #angularjs
[21:58:33] *** sacho_ has joined #angularjs
[21:58:35] *** Skrypter has joined #angularjs
[21:58:51] *** goodenough has joined #angularjs
[21:59:28] <bluejade> http://wiredcraft.com/posts/2014/08/20/why-we-may-ditch-angularjs-for-react.html claims that “With AngularJS, data that is binded to the DOM will trigger a full render of the page whenever it changes.” That isn’t correct is it? Doesn’t Angular just update any elements that changed?
[21:59:34] *** [dalguete] is now known as dalguete
[21:59:37] *** jheady has joined #angularjs
[21:59:52] *** mrits has quit IRC
[22:00:22] <themime> bluejade: itll render the part of the page
[22:00:25] *** woah has quit IRC
[22:00:36] <quetzakubica> themime: I just need to know if coupling of Injector and your app is a common solution
[22:01:06] <themime> quetzakubica: you don't generally directly access the injector
[22:01:18] *** mbildner has joined #angularjs
[22:01:26] <themime> you can but most cases i see dont. it automatically does it
[22:01:32] <quetzakubica> in example I have var MyService = require('myservice'); var myService = MyService();
[22:01:43] <quetzakubica> how angular knows what to inject there
[22:01:55] *** sacho has quit IRC
[22:01:58] <bluejade> themime: do you mean the part of the page corresponding to what changed? Or if an element in an ng-repeat changed, does it re-render the entire ng-repeat?
[22:02:05] *** soee_ is now known as soee
[22:02:26] <JSON_voorheez> thanks GreenJello that looks like the solution, I think the overarching library I'm using is interfering
[22:02:42] <JSON_voorheez> But I just didn't know what to call it
[22:02:45] <quetzakubica> or do I have to instantiate it by calling to Injector.get(MyService)/
[22:02:46] *** dc has quit IRC
[22:03:01] <themime> bluejade: i thought it rerendered the whole section and with track by only changes specific items but im not 100% sure
[22:03:03] *** PrinceAMD has quit IRC
[22:03:05] *** dannyc has joined #angularjs
[22:03:18] *** CHC has quit IRC
[22:03:23] *** whunt_ has joined #angularjs
[22:03:24] *** TweedleDee has joined #angularjs
[22:03:36] <bluejade> themime: thanks
[22:03:51] *** otisZart has quit IRC
[22:04:22] *** jheady has left #angularjs
[22:04:24] <themime> bluejade: to be clear, it rerenders just the ng-repeat
[22:04:28] <themime> at the worst
[22:04:31] <themime> not the whole page
[22:04:43] <bluejade> themime: ok. good to know. thanks
[22:04:43] <themime> im pretty confident about that part at least
[22:04:47] <themime> np
[22:04:50] *** spatialbrew has quit IRC
[22:04:59] *** robdubya has joined #angularjs
[22:05:31] *** whunt has quit IRC
[22:05:41] *** woebtz has quit IRC
[22:05:58] *** woebtz has joined #angularjs
[22:06:10] *** bolloga has joined #angularjs
[22:06:13] <saucey> hey guys
[22:06:25] <saucey> http://laravel.io/bin/Jx3Ny
[22:06:51] *** cthrax has joined #angularjs
[22:07:23] *** dannyc has quit IRC
[22:07:23] *** ivaldi has quit IRC
[22:07:37] *** mityaz has quit IRC
[22:07:39] <saucey> how would i pass the location into this functionality?
[22:08:21] *** phuh has quit IRC
[22:08:26] *** shpoont has quit IRC
[22:08:35] *** mtsr has quit IRC
[22:08:50] *** phuh has joined #angularjs
[22:08:53] *** jbeaudry has joined #angularjs
[22:08:56] *** shpoont has joined #angularjs
[22:09:08] *** toad-br has joined #angularjs
[22:09:08] *** edy has quit IRC
[22:09:09] *** toad-br has quit IRC
[22:09:14] *** jiskiras has quit IRC
[22:09:29] *** whunt_ is now known as whunt
[22:09:44] *** ivaldi has joined #angularjs
[22:09:48] *** Nijikokun has quit IRC
[22:10:03] *** Nijikokun has joined #angularjs
[22:10:26] *** jbeaudry has quit IRC
[22:10:35] <themime> saucey: probably a service
[22:10:37] *** oktapodi has quit IRC
[22:10:37] *** whitebook has joined #angularjs
[22:10:55] *** frankblizzar has joined #angularjs
[22:10:58] <themime> saucey: didn't look at it closely but broadcasting and $rootscope are generally frowned upon, just aheads up
[22:10:59] <saucey> ive created a service
[22:11:01] *** Nijikokun has joined #angularjs
[22:11:07] <themime> oh its for routing
[22:11:24] *** evilaliv3 has joined #angularjs
[22:11:25] <themime> i use ui-router so it was kinda new to me. but yea use a service. what issue with it are you having?
[22:11:37] *** oktapodi has joined #angularjs
[22:11:46] <saucey> il show you what ive got its almost there
[22:12:12] *** sirkitree|afk has quit IRC
[22:12:14] *** mbildner has quit IRC
[22:12:39] *** esk4nd4r has quit IRC
[22:12:47] <saucey> http://laravel.io/bin/QN9nm
[22:12:51] <TweedleDee> I have ( to me ) the wierdest little issue... when I remove an item from the Subscriptions table, it removes it instantly, when I remove an item from the Matches table, it only removes it after a rep.saveChanges() here is the paste-bin and they both use the same method... essentially.. DataServices.deleteItem(item) which is a call to item.entityAspect.setDeleted(); Here is a pastebin:
[22:12:51] <TweedleDee> http://pastebin.com/M04mz8dF
[22:13:03] *** drej has quit IRC
[22:13:53] *** alexw has quit IRC
[22:14:03] <Aliks> what do you guys think is better... explicit registerEventListener method on a controller, or emit the event?
[22:14:07] *** tskaggs has joined #angularjs
[22:14:11] <Aliks> or alternatively some pub/sub service
[22:14:13] *** woebtz has quit IRC
[22:14:14] <themime> saucey: i have no idea what best practice for ngroute is so i can't say, sorry. if you switch to ui-router let me know!
[22:14:38] <saucey> whats the diff?
[22:15:23] *** sirkitree|afk has joined #angularjs
[22:15:30] *** Fishy has joined #angularjs
[22:15:43] <themime> saucey: ui-router is state based and has multiple/nested/named views in addition to a lot of other fun things. it was written by the angular team, ive seen people call it the "unofficial official angular router"
[22:16:14] <ctanga> skip ngroute unless you’re building a toy app
[22:16:30] <ctanga> but thats just MHO
[22:16:42] <themime> Aliks: depends on what youre doing but $watch, broadcast, or just linkin a controller to data are preferred
[22:17:05] <themime> saucey: and you have awesome devs like ctanga that answer your questions
[22:17:08] *** baweaver has joined #angularjs
[22:17:09] <Aliks> $watch is preferred to a callback?
[22:17:20] <saucey> basically im trying to build a api with Auth and sessions to start with
[22:17:21] <themime> Aliks: do you have a plunker? you may be able to avoid it all together
[22:17:32] <Aliks> themime: just asking as a theoretical, best-practices type question
[22:17:49] <ctanga> I just put everything on $rootScope
[22:18:00] <themime> Aliks: ah. you can generally avoid $watch, almost always avoid broadcast
[22:18:15] <themime> because of the two way binding most of the time you can just get a copy of the data
[22:18:26] *** B1x1t0 has quit IRC
[22:18:28] *** jasonp has joined #angularjs
[22:18:42] *** stodan has joined #angularjs
[22:18:43] <themime> and angular handles its own $watchers
[22:18:45] <Aliks> themime: the issue was I needed to notify a central source when selections changed, so it would fire off a new query
[22:18:51] *** sekyms has joined #angularjs
[22:18:53] *** gordroidJS has quit IRC
[22:18:54] <Aliks> so I could either $watch the whole collection, which is rather large and expensive
[22:19:06] <Aliks> or I could just fire a callback in the few times that I knew a selection changed
[22:19:13] <Aliks> and pass in callback="handler"
[22:19:25] <sekyms> Can someone take a look at this rather simple example and tell me why when I click on the "Created" header I don't get the console log im looking for?
[22:19:26] <sekyms> http://embed.plnkr.co/i7WCxQwc5qm2RvY5f6Kp/preview
[22:19:33] <ctanga> yay a plunk!
[22:19:36] <themime> oh does it create a watch for each item in the collection?
[22:19:42] *** dc has joined #angularjs
[22:19:47] <themime> ctanga: hahah
[22:19:47] <ctanga> and “what’s wrong” exactly worded
[22:19:50] <ctanga> love you sekyms
[22:19:52] *** slopjong has quit IRC
[22:20:16] <ctanga> sekyms: did you know that Bootstrap's JavaScript requires jQuery
[22:20:21] <sekyms> lol
[22:20:23] <sekyms> tell me about it
[22:20:26] *** Fishy has quit IRC
[22:20:37] <sekyms> probably should have loaded it first
[22:20:37] *** jjasonclark has quit IRC
[22:20:41] <ctanga> my console says SORTBY
[22:20:41] <themime> Aliks: ng-change on select, tells a service. the service is the central source. am i missing something?
[22:20:48] <sekyms> Really?
[22:20:49] <sekyms> wtf
[22:21:06] <Aliks> themime: sounds reasonable
[22:21:12] <ctanga> the more times I click “Created”, the more times it says SORTBY
[22:21:25] <themime> Aliks: so in a sense you "subscribe" a controller merely by using dep injection and calling it when you want haha
[22:21:26] <sekyms> ctanga just as I planned it!
[22:21:35] *** jmstout has joined #angularjs
[22:21:40] *** NormySan has quit IRC
[22:21:41] <sekyms> ctanga: Im a QA recruiter! (not really)
[22:21:49] <ctanga> lul
[22:22:06] *** jmstout has joined #angularjs
[22:22:10] <sekyms> Could I interest you in a position in the fast moving industry of Quality Assurance?
[22:22:25] <ctanga> hells 2 tha no
[22:22:27] <themime> haha. "we have packages you can sell starting at $100"
[22:22:28] <ClearsTheScreen> .oO(running away screaming in 3... 2..)
[22:22:39] <themime> QA pyramid
[22:22:55] *** bayousoft has quit IRC
[22:23:04] <sekyms> ctanga am I going about this right if I'm going to change the service endpoint for sorting?
[22:23:15] *** bayousoft has joined #angularjs
[22:23:15] <ctanga> ?/
[22:23:23] *** cthrax has quit IRC
[22:23:37] <masscrx> if I change state from state.substateA to state.substateB and both have the same controller, controller will be reloaded ?
[22:23:40] *** shpoont has quit IRC
[22:23:53] <ctanga> masscrx: yes
[22:24:01] *** shpoont has joined #angularjs
[22:24:06] <sekyms> ctanga: all of the examples I see for table sorting in angular use sortBy, which is great if you have one page of data
[22:24:12] <themime> masscrx: if you need data to persist consider a factory
[22:24:19] <ctanga> one very important thing to understand about controllers: controllers are NOT loaded. They are *invoked*.
[22:24:29] *** Una has joined #angularjs
[22:24:31] <ctanga> the lifecycle of a controller is synchronous, and very short
[22:24:37] <themime> masscrx: or with the new url squashing you could even use $state.go params
[22:24:45] <themime> depending on the nature of the data
[22:24:52] <ctanga> sekyms: have you looked at smarttable?
[22:25:07] *** linojon has quit IRC
[22:25:10] <jaawerth> ctanga: they're instantiated, no?
[22:25:10] <ctanga> sekyms: smart table is neat. I implemented server paging/sorting in about an hour
[22:25:23] <sekyms> ctanga: would like to understand it first before i use a 3rd party dependency
[22:25:32] <ctanga> jaawerth: oh damn you’re right
[22:25:41] *** whunt has quit IRC
[22:25:46] *** simsketch has joined #angularjs
[22:25:47] *** a3gis has joined #angularjs
[22:26:23] *** lolmaus_ has quit IRC
[22:26:23] <masscrx> themime: I think that my lag is caused because I have .show state which loads data such countries (about 200) then .show.invoices load another data, show.customers load customers so in browser is a lot of data, I think that more efficient will be making divided controller and between states make query to backend for data, then will be more queries but less in browser memory
[22:26:50] *** wallerdev has joined #angularjs
[22:26:57] <themime> masscrx: you can also cache data too
[22:27:07] <masscrx> on the backend
[22:27:09] <themime> masscrx: but it sounds like you found it at least
[22:27:14] <themime> masscrx: nah in the service
[22:27:16] *** frankblizzar has quit IRC
[22:27:20] *** e0ipso is now known as e0ipso|away
[22:27:21] <ctanga> sekyms: understand what exactly?
[22:27:27] *** xBajci has joined #angularjs
[22:27:36] <themime> so if you reload the controller it won't call the backend again, itll just use the data it just pulled
[22:27:37] *** frankblizzar has joined #angularjs
[22:27:39] *** tech2 has quit IRC
[22:27:39] <ctanga> sekyms: serverside paging? or multi-paging where the data is client-side?
[22:27:49] *** marcospgp has joined #angularjs
[22:27:52] <masscrx> themime: how can I do that ?
[22:27:54] <sekyms> ctanga: serverside in angular and making the requests
[22:27:54] *** rawc has quit IRC
[22:28:03] <marcospgp> oh my, there is no reference to the value "true" for directive scopes in the angular documentation
[22:28:06] <themime> masscrx: are you familiar with $q or the concept of promises?
[22:28:10] <sekyms> ctanaga i like to think my javascript is pretty solid, but I;m new to angular
[22:28:10] *** goodenough has quit IRC
[22:28:13] <masscrx> themime: yes
[22:28:16] <sekyms> i did the code school course
[22:28:18] *** jumpman has joined #angularjs
[22:28:21] *** whunt has joined #angularjs
[22:28:24] <sekyms> but that only scratched the surface
[22:28:34] <ctanga> sekyms: so you want to implement serverside paging manually
[22:28:41] <sekyms> no
[22:28:44] *** johnnyfive has joined #angularjs
[22:28:51] <marcospgp> oh wait it's the same as {}. they could at least have referenced the alternative aha
[22:28:57] <ctanga> maybes i should re-read your question
[22:29:04] <sekyms> i want to manipulate the $http.get url based on clicks in the ui
[22:29:04] <themime> masscrx: you store your data on a variable in the service and then before you make your $http call you check to see if data exists - if it does you make the call and then resolve a deferred object, otherwise you resolve the deferred object with your existing data and return the promise from the service
[22:29:18] <themime> masscrx: the new deferred you make not the default $http promise
[22:29:20] *** linojon has joined #angularjs
[22:29:26] *** Lui_ has joined #angularjs
[22:29:27] <marcospgp> oh wait it's not.
[22:29:37] <masscrx> themime: sounds good
[22:29:53] <themime> masscrx: ive been using that technique to great effect
[22:30:00] <sekyms> i guess this would be best done changing the urlquery parameters
[22:30:06] <sekyms> i suppose i can do that with route?
[22:30:06] *** d0ngz has joined #angularjs
[22:30:12] *** klaut_ has joined #angularjs
[22:30:13] <jcool> I was trying to bind each date picker with a button. I succeeded doing that but for that I had to write 7 different add functions due to different ng models by each date picker. It makes code look messy
[22:30:14] <masscrx> but if controller is reloaded there will be always null data
[22:30:14] *** a3gis has quit IRC
[22:30:14] <themime> masscrx: you could even add $intervals to check against a timestamp to refresh the data every X period
[22:30:18] <jcool> any soln to that?
[22:30:19] <ctanga> probably can, not sure
[22:30:40] *** cam_y has joined #angularjs
[22:30:57] <the-anconia> Does anybody have experience conditionally showing a Bootstrap modal on a route change?
[22:30:59] <themime> jcool: would require looking at patterns in your data
[22:31:10] <ctanga> i hate bootstrap modal on route change
[22:31:22] <jumpman> Does ng-bind-html not support video tags, maybe? xD -> <video controls><source src="url"></video> doesn't work, <h1>Hello, world!</h1> does
[22:31:24] <ctanga> I only use the modal markup, not the $modal service
[22:31:30] <jumpman> I don't think my video tag is malformed
[22:31:40] <the-anconia> ctanga: I’m not using $modal either
[22:31:40] *** sigurding has quit IRC
[22:31:42] *** moafoca has joined #angularjs
[22:31:42] *** ozooner_ has joined #angularjs
[22:31:52] <jcool> themime, sure.just a sec.
[22:31:53] *** whiteboo_ has joined #angularjs
[22:32:02] <the-anconia> ctanga: But there’s one page that either shows a modal or doesn’t based on how they reach that page
[22:32:03] *** klaut has quit IRC
[22:32:09] *** whiteboo_ has quit IRC
[22:32:14] *** ozooner has quit IRC
[22:32:33] <moafoca> Hello, I'm working with a simple OPA. With some "Class definition and extension". Did I use app.factory?
[22:32:37] <moafoca> for creating Class?
[22:32:46] <moafoca> and for extending class, ng.extend?
[22:33:36] *** jsheely has joined #angularjs
[22:33:37] *** whitebook has quit IRC
[22:33:53] <Lui_> Anbody worked with Restangular and waiting on a few promises to be fulfilled before doing an action?
[22:34:23] <ctanga> $q.all()
[22:34:27] *** Una has quit IRC
[22:34:36] <Grokling> moafoca: Have a rummage here for some ideas: http://plnkr.co/edit/KghXVJkE0gLL7IqYBvc0?p=info
[22:34:54] <sekyms> ctanga: what version of angular do most people currently use in production? 1.2.26?
[22:35:10] <ctanga> i use 1.2.whateveritwas6monthsago
[22:35:13] *** jsheely|2 has quit IRC
[22:35:20] <sekyms> ty
[22:35:33] *** Evoratec has quit IRC
[22:35:36] *** Jdubs has quit IRC
[22:35:40] *** dsdeiz has joined #angularjs
[22:35:43] *** alexw has joined #angularjs
[22:35:49] <jcool> themime, http://plnkr.co/edit/ppZ8sxJjjUmlWHCX5S0D?p=preview
[22:36:01] <alexw> I'm trying to monitor when a form is dirty and then uncomplete the step
[22:36:06] <Lui_> ctanga: http://www.codeshare.io/XYcar this isn't working for me, any ideas?
[22:36:21] <themime> sekyms: i just updated to 1.3 with no issue
[22:36:27] <alexw> Is it possible to watch form.$dirty from a controller?
[22:36:29] *** scythe__ has joined #angularjs
[22:36:47] <alexw> i.e. if(form.$dirty and step is in completeSteps) { pop(step); }
[22:36:56] *** dracan has joined #angularjs
[22:37:32] *** marcospgp has quit IRC
[22:37:50] <themime> jcool: easiest thing to do is break it up into multiple controllers i think
[22:37:56] <ctanga> Lui_: $q.all parameter should be an array of promises, or a map of promises
[22:37:59] *** JohnBat26 has quit IRC
[22:38:36] *** rosieres has quit IRC
[22:38:40] <themime> jcool: also youre storing raw data on the scope, if you move that to a service it would not only clean it up but make it more extendable in the future, say if you wanted to hook a backend to it
[22:38:52] *** shpoont has quit IRC
[22:38:53] <Lui_> ctanga: How do I get those promises from Restangular?
[22:39:03] *** rosieres has joined #angularjs
[22:39:11] *** shpoont has joined #angularjs
[22:39:15] <ctanga> .get() returns a promise
[22:39:16] *** tilgovi has quit IRC
[22:39:25] <ctanga> .then() also returns a promise
[22:39:29] <ctanga> holy shit you’re typing on my screen
[22:39:30] <jcool> themime, yeah agreed
[22:39:52] *** jjasonclark has joined #angularjs
[22:40:11] <Lui_> ctanga: haha yeah
[22:40:16] <ctanga> that’s fucking pimp
[22:40:17] <themime> jcool: you could even turn the separate parts into directives and reuse them!
[22:40:23] <jcool> themime, but if I break it into controllers, then it will be better to create service of those events and call them from each controller right?
[22:40:26] <themime> ctanga: Lui_ wut im intrigued
[22:40:34] <ctanga> themime: http://www.codeshare.io/XYcar
[22:40:44] <Lui_> codeshare http://www.codeshare.io/XYcar
[22:40:45] *** Jdubs has joined #angularjs
[22:41:08] <themime> oh i missed that link that is fucking crisp as shit. we use joinme at work because google hangout is blurry
[22:41:26] <jcool> themime, good idea I suppose. In that way I will be able to use it at more places.
[22:41:38] <themime> jcool: yep! and that's what angular is all about :)
[22:41:46] <jcool> themime, agreed :)
[22:42:09] *** zB0hs has joined #angularjs
[22:42:14] *** sekyms has quit IRC
[22:42:26] *** dracan has quit IRC
[22:42:50] *** cthrax has joined #angularjs
[22:44:04] *** RobinBAwesome has joined #angularjs
[22:44:19] *** xBajci has quit IRC
[22:45:03] *** Snugug has quit IRC
[22:45:33] *** reported has joined #angularjs
[22:45:35] *** richiebkr has joined #angularjs
[22:45:58] *** dhcar_AFK is now known as dhcar
[22:46:29] <jcool> themime, a question.
[22:46:44] *** foofoobar has quit IRC
[22:46:45] *** Reskp_ has joined #angularjs
[22:46:47] <themime> jcool: sup
[22:47:07] <jcool> themime, as per your explanation. Separating controller would limit scope. Which will result in to creation of different controllers.
[22:47:20] <themime> jcool: yes
[22:47:21] <jcool> Each controller will have date picker and button associated with it.
[22:47:44] <themime> jcool: maybe i didn't look at the code close enough, give me a few
[22:47:52] <jcool> themime, and that controller will then call service which will ease my task of handling them.right?
[22:47:54] *** BlinkyBill has joined #angularjs
[22:48:18] *** lite_ has joined #angularjs
[22:48:49] *** jbeaudry has joined #angularjs
[22:48:53] <jcool> themime, Now instead of writing that controller 7 times, I can convert that controller into directive which I can include with name and everything will be binded then?
[22:49:02] *** Reskp has quit IRC
[22:49:10] <ctanga> wow, codeshare.io is super pimp
[22:49:19] <themime> ctanga: haha i know i just sent the link to my boss
[22:49:33] <themime> and was like wut fuck joinme
[22:50:14] <Lui_> isnt it!
[22:50:31] *** sheplu has quit IRC
[22:50:51] <themime> ooh its not a screenshare though its actual shared code. thats awesome though
[22:51:00] *** afuggini has joined #angularjs
[22:52:08] *** whunt has quit IRC
[22:52:20] *** whunt has joined #angularjs
[22:52:46] *** lite_ has quit IRC
[22:53:08] *** umib0zu has quit IRC
[22:53:53] *** frankblizzar has quit IRC
[22:54:15] *** e0ipso|away has quit IRC
[22:54:22] *** baweaver has quit IRC
[22:54:54] *** baweaver has joined #angularjs
[22:54:57] *** jstroem has quit IRC
[22:55:53] *** bayousoft has quit IRC
[22:56:21] *** bayousoft has joined #angularjs
[22:56:23] *** B1x1t0 has joined #angularjs
[22:56:27] *** e0ipso|away has joined #angularjs
[22:56:30] *** nicholes has joined #angularjs
[22:56:37] *** e0ipso|away is now known as e0ipso
[22:57:10] *** Rahul_Roy_ has quit IRC
[22:58:06] <nicholes> What was the name of the guy that got all pissed off at Logicgate yesterday for not understanding what he was asking?
[22:58:41] <Lui_> ctanga: Thank you! starting to make sense and is working for me
[22:58:47] <nicholes> I found out that he needs to look up "collection filters"
[22:58:52] <Grokling> nicholes: there have been a few pissed off devs in here the last couple of days!
[22:58:53] <ctanga> Lui_: that’ll be 1$ plz
[22:59:11] <Lui_> ctanga: haha how do I pay ya?
[22:59:15] *** baweaver has quit IRC
[22:59:18] <ctanga> j/k
[22:59:22] <Lui_> ctanga: your cheep by the way lol
[22:59:43] *** zumba_addict has joined #angularjs
[22:59:43] *** JiGGaK has quit IRC
[22:59:50] *** tristanp has quit IRC
[23:00:03] <Lui_> ctanga: btw hope on codeshare again
[23:00:27] <zumba_addict> pissed off at work! Other folks got approved for flying to other states for training. Now, I need to find a training too. Any suggestions?
[23:00:42] *** Walex has joined #angularjs
[23:00:46] *** devinandrews has quit IRC
[23:00:50] <Grokling> zumba_addict: Got to be something in Hawaii?
[23:00:55] <zumba_addict> i want to attend a hacking frontend applications. Do you think it's related to frontend development?
[23:01:08] <zumba_addict> doesnt' matter if it's Hawaii or not
[23:01:23] <nicholes> Does the training involve zumba?
[23:01:31] <zumba_addict> lol
[23:01:53] *** bkuberek_ has joined #angularjs
[23:02:08] *** xBajci has joined #angularjs
[23:02:11] <zumba_addict> do you think if I request for hacking web applications, it can be somewhat related to my angularjs development in terms of making it secure?
[23:02:27] *** cboden has quit IRC
[23:03:05] *** acmehandle has quit IRC
[23:03:09] *** a3gis has joined #angularjs
[23:03:09] *** whitebook has joined #angularjs
[23:03:45] <themime> jcool: i got distracted and closed your plunker could you send it to me again?
[23:03:54] <jcool> themime, sure
[23:04:05] *** bkuberek has quit IRC
[23:04:12] <jcool> themime, http://plnkr.co/edit/ppZ8sxJjjUmlWHCX5S0D?p=preview
[23:04:16] *** dannyc has joined #angularjs
[23:04:20] *** whunt has quit IRC
[23:04:36] *** xBajci has quit IRC
[23:04:44] *** tschundeee has joined #angularjs
[23:05:20] *** FIFOd[a] has quit IRC
[23:06:06] *** mbildner has joined #angularjs
[23:06:38] *** whunt has joined #angularjs
[23:06:41] <tschundeee> for starting a new project I like to keep things simple and compact. I hate to switch between thousands of files. Would you recommend the angular-boilerplate or a simple app.js file with all related stuff in it. I don't want to overcomplicate things
[23:06:55] *** baweaver has joined #angularjs
[23:07:19] *** cliluw has joined #angularjs
[23:07:31] *** mahomaho has quit IRC
[23:07:33] *** Reskp_ has quit IRC
[23:07:35] *** blomman has joined #angularjs
[23:07:40] *** whitebook has quit IRC
[23:08:23] *** Reskp has joined #angularjs
[23:08:26] *** phuh has quit IRC
[23:08:37] *** dannyc has quit IRC
[23:08:46] *** rosieres has quit IRC
[23:08:50] *** phuh has joined #angularjs
[23:08:57] *** kodierkroete has joined #angularjs
[23:09:47] *** eBureau has quit IRC
[23:09:56] <kodierkroete> Good [inject daytime here] ... could anybody give me a poke in the right direction to test an http interceptor?
[23:10:09] *** shpoont_ has joined #angularjs
[23:10:13] *** drej has joined #angularjs
[23:10:19] *** dhcar is now known as dhcar_AFK
[23:10:22] *** shpoont has quit IRC
[23:10:41] *** nuizzy has quit IRC
[23:11:17] *** antons__ has joined #angularjs
[23:11:32] *** Tobius has joined #angularjs
[23:11:45] *** juanpablo__ has quit IRC
[23:12:46] *** Walex has quit IRC
[23:13:09] *** juanpablo_ has joined #angularjs
[23:13:17] <eslaron> When desiging urls in a restful api should I make a different url for every role or should I go for a single url and child states?
[23:14:04] *** dc has quit IRC
[23:14:17] *** SoulBlade has joined #angularjs
[23:15:04] *** mjs2600 has quit IRC
[23:16:19] *** d10n-work has joined #angularjs
[23:16:25] *** alexw has quit IRC
[23:16:36] *** michaelfavia has quit IRC
[23:16:48] *** mbildner has quit IRC
[23:16:51] *** alexw has joined #angularjs
[23:17:06] <kodierkroete> by role you mean something like "user" role?
[23:17:08] <nairys> can anyone tell me why angular isn't processing any DOM insertions made by angular-datatables?
[23:17:08] *** BillCriswell has quit IRC
[23:17:13] <nairys> DTColumnBuilder.newColumn('Date').withTitle('Date').renderWith(function (data, type, full) {return "{{full.date | date:'shortDate'}}";
[23:17:34] *** zumba_addict has quit IRC
[23:17:40] <nairys> it just displays {{full.date | date:'shortDate'}}
[23:17:49] *** Snugug has joined #angularjs
[23:18:35] *** SoulBlade has quit IRC
[23:19:07] <Grokling> nairys: Possibly your date filter is borking when you pass it that string which isn't a date?
[23:19:23] *** pipoo has joined #angularjs
[23:19:37] *** jeffszusz has quit IRC
[23:19:37] <Grokling> Possibly not too.
[23:19:49] <nairys> even when i take out the filter, it just returns {{full.date}}
[23:20:05] <nairys> it works if i just do return full.date instead of return "{{full.date}}
[23:20:10] <nairys> "
[23:20:16] <ClearsTheScreen> eslaron: what is a "role" w.r.t. ReSTful services?
[23:20:32] *** Lui_ has quit IRC
[23:20:55] <ClearsTheScreen> (also, arguably, all $foo have different "URLs", as things like fragments and query particles are part of an URL; you mean 'resource' perhaps? just for clarity.)
[23:20:57] <eslaron> By role I mean admin/user itc
[23:21:19] <kodierkroete> then probably not
[23:21:20] <ClearsTheScreen> hm ... then it depends, do they represent different "things", different entities?
[23:21:40] *** dhcar_AFK is now known as dhcar
[23:21:57] *** bluejade has quit IRC
[23:23:22] *** pipoo has quit IRC
[23:23:29] <nicholes> I wouldn't put roles into the url
[23:23:56] <kodierkroete> should be part of the security layer of your app.. not the api i guess
[23:24:06] *** shpoont_ has quit IRC
[23:24:08] <ClearsTheScreen> most likely. :) depends on what the app is, tho.
[23:24:09] <eslaron> They represent different view sections. While moderator panel will be similar to admin panel, the user page will be completely different
[23:24:10] <nicholes> Maybe a userid, sure, and then your server can determine which values to return
[23:24:11] *** woah has joined #angularjs
[23:24:19] *** pipoo has joined #angularjs
[23:24:23] *** shpoont_ has joined #angularjs
[23:24:29] <mitchdotpro> Hey guys, what’s the most “angular” way to add a variable to the window location string after a successful form post? Essentially I want ?page=add-exercise to become ?page=add-exercise&id=677 for example, where the 677 is returned from the successful post.
[23:24:43] <ClearsTheScreen> eslaron: then you most likely need not encode their role as some form of parameters, and most certainly don't need to encode it in different resources
[23:24:46] *** bluejade has joined #angularjs
[23:25:05] *** qstrahl has quit IRC
[23:25:13] *** nickBek has quit IRC
[23:25:15] <eslaron> What about a single url for every role? like /#/dashboard?
[23:25:58] <kodierkroete> So your in for routing or rest? *confused
[23:25:59] <nicholes> eslaron: I'd just detect what privileges a user has outside of your views and display things conditionally based on some user object returned by some user service.
[23:26:04] <eslaron> I have an entity Users but will serve as a resource.
[23:26:15] *** danecando has quit IRC
[23:26:20] *** travm is now known as travm-afk
[23:26:22] *** g3funk has quit IRC
[23:26:24] *** travm-afk has quit IRC
[23:26:43] <ClearsTheScreen> that's not a url for a "role". that is a url for a "user" ... and your app is likely to be not restful anyways, so i'd not call your webapp's url structure "restful"
[23:26:54] *** g3funk has joined #angularjs
[23:27:35] *** whitebook has joined #angularjs
[23:27:39] *** giupo has joined #angularjs
[23:28:03] <eslaron> kodierkroete, I doing routing atm. I'll ask restful resrouces can have uri idependent from the front-end? I mean I don't have to have the same structure for a resource and frontend route?
[23:28:08] *** sheplu has joined #angularjs
[23:28:18] *** nattonerd has joined #angularjs
[23:28:19] <nicholes> eslaron: If it's a dashboard that ONLY admins can access, I'd do something like /#/admin, sure, but it sounds to me like you're using the same templates but you want to display things differently based on the user's permissions.
[23:28:53] <elnur> Anyone looking for a job?
[23:29:01] <elnur> Ping me in private if you are.
[23:29:12] <nicholes> Also ping me. This is for Adobe.
[23:29:20] <nicholes> I don't know what elnur is hiring for
[23:29:33] <elnur> Meh, Adobe. I'm hiring for a startup. :P
[23:29:47] <nicholes> Man, why does everyone hate Adobe?! :D
[23:30:04] <nicholes> Blah blah monolithic blah blah uninnovative...
[23:30:18] <elnur> I personally don't give a shit about Adobe, so I dunno. Ask the haters. :P
[23:30:25] <ClearsTheScreen> eslaron: the whole point of an API is to provide "seams" where things can develop independently.
[23:30:33] *** alexw has quit IRC
[23:30:39] *** B1x1t0 has quit IRC
[23:31:34] <eslaron> ClearsTheScreen, I see. I tried to do a parent state and 2 child states but insted I got a infinite digest loop. So I have to name those sections differently.
[23:31:53] *** marshall_ has quit IRC
[23:33:16] *** simsketch has quit IRC
[23:33:31] *** Tobius has quit IRC
[23:33:47] <kodierkroete> eslaron: i usually to an prefix to me restful api like "/api/v1/" from there on i do not have any troubles of taking care, that thes routes from my api do collite with my frontend routes... if you do the long in synchronously you could render different sources for the user.
[23:33:50] <ClearsTheScreen> possibly; but that is -- most likely -- almost 100% independent of how your data types are organized or the shape of their delivering API
[23:33:55] *** alexw has joined #angularjs
[23:33:59] <kodierkroete> So a normal user does not load the ton of admin stuff
[23:34:12] <ClearsTheScreen> yeah that is one, decent, way to go about it. :)
[23:34:13] *** drej has quit IRC
[23:34:22] <nicholes> I think he's confusing the restful API with the app's APIs
[23:34:30] <nicholes> like the routes
[23:34:52] <ClearsTheScreen> most likely.
[23:34:56] <eslaron> Yes
[23:35:06] <eslaron> I think that this is the case.
[23:35:12] *** shpoont_ has quit IRC
[23:35:15] <ClearsTheScreen> i'd be careful calling routes etc. an "api" altogether, but that might be just me :)
[23:36:02] <eslaron> So I get that front-end routes/states are a separate matter and don'
[23:36:15] *** michaelSharpe has quit IRC
[23:36:15] <eslaron> don't have to be a mirror of the rest api, correct?
[23:36:36] <nicholes> eslaron: You're going to be defining services that access your (hopefully) RESTful API using ngResource, $http, or whatever else you're using to consume that API. Your routes are going to set up which controllers/templates are shown (or which states are used if using angular ui router).
[23:36:40] *** shpoont_ has joined #angularjs
[23:36:57] *** the-anconia has quit IRC
[23:36:58] <nicholes> eslaron: And they are definitely going to be different.
[23:37:25] <kodierkroete> And as a little helper... if you think about states, the last thing which has something to do with it should be your rest api
[23:37:41] *** Sky[x] has joined #angularjs
[23:37:46] <ClearsTheScreen> there's a high likelihood, yeah. "admin panels" probably tend to be closer to the structure of the data they administer, but generally your app turns resources into shiny :3
[23:38:26] <ClearsTheScreen> hehe yeah the point of ReST is being state free. :3 (well, REpresenting the State in the data Transferred, so it need not be stored across requests)
[23:38:27] *** threesixes has joined #angularjs
[23:38:52] <eslaron> I see :) Then I'll just go with generic states like /#/admin/dashboard. It should be fine.
[23:39:23] *** annlewis has quit IRC
[23:39:45] *** gunn has quit IRC
[23:40:12] <eslaron> but when doing something like /#/user/users/list, will look funny xd
[23:40:16] *** ryancole has joined #angularjs
[23:40:22] <ClearsTheScreen> then don't do that :)
[23:40:25] *** loverajoel has quit IRC
[23:40:32] <ClearsTheScreen> call it `/#/yomomma/rules`.
[23:40:43] *** whitebook has quit IRC
[23:40:43] *** dhcar is now known as dhcar_AFK
[23:41:01] *** shpoont__ has joined #angularjs
[23:41:12] <eslaron> I think that putting the user name as a state is better
[23:41:47] *** zB0hs has quit IRC
[23:41:49] <nicholes> If you want a list of users, you'd make a GET request to something like /api/v1.0/users/. Where you display it is up to you. Could be something like /#/users/list
[23:42:11] *** Aliks has quit IRC
[23:42:22] <themime> jcool: i took another look, i see event related stuff in the bottom half and some controls in the top half, is it possible to separate it into the two?
[23:42:39] <ClearsTheScreen> yes; the point was: whatever you call the url doesn't really matter, from a technology point of view. it should matter from a semantic point of view, should make sense for who is using the structure (i.e. the programmer)
[23:42:41] <jcool> themime, which ones are you reffering to?
[23:42:53] *** shpoont_ has quit IRC
[23:43:03] <themime> jcool: OH! i see a $http in the controller too, all that should be in a service
[23:43:11] *** nattonerd has quit IRC
[23:43:42] <jcool> themime, I am a new bie and trying to learn. Which part of $http are you refering to?
[23:44:58] *** Shrooms has joined #angularjs
[23:45:04] <kodierkroete> if one (currently me) would have written a httpInterceptor... to prefix some url's (too lazy to type the whole path) how could that poor lazy beeing test that? ... $httpBackend.whenGET $http.get $httpBackend.flush ... and then? How do i get the request url?
[23:45:20] *** mruzekw has joined #angularjs
[23:45:35] *** tschundeee has quit IRC
[23:46:13] <eslaron> Did any one try to make different states with same url?
[23:46:40] *** Aliks has joined #angularjs
[23:46:46] <eslaron> Or a parent state with 2 or more child states?
[23:47:07] *** baweaver has quit IRC
[23:47:08] <themime> eslaron: whats your issue?
[23:47:36] *** moafoca has quit IRC
[23:47:38] *** shpoont___ has joined #angularjs
[23:47:40] *** Sky[x] has quit IRC
[23:47:43] *** baweaver has joined #angularjs
[23:47:54] *** krawchyk has quit IRC
[23:47:55] <themime> jcool: $http calls should be in a service to separate the behavior from the controller - the controller doesn't care where data comes from, only that its there
[23:48:16] <themime> jcool: likewise it doesn't need to know how its saved
[23:48:18] *** yts has joined #angularjs
[23:48:19] *** dsdeiz has quit IRC
[23:48:22] *** shpoont___ has quit IRC
[23:48:23] *** lite_ has joined #angularjs
[23:48:24] *** cthrax has quit IRC
[23:48:29] *** Snugug has quit IRC
[23:48:33] <themime> jcool: so you should be calling SomeService.save(data); and in that service call $http
[23:48:35] *** AngularUI has joined #angularjs
[23:48:35] <AngularUI> [ng-grid] brianchance opened pull request #2010: callDataChangeCallbacks passing window to callbacks instead of grid (master...master) http://git.io/4nKAYw
[23:48:35] *** AngularUI has left #angularjs
[23:48:36] *** shpoont___ has joined #angularjs
[23:48:37] *** xavia has quit IRC
[23:48:39] <eslaron> themime, http://pastebin.com/ih5TuxAF it get a infinite digest loop when doing something like this.
[23:48:43] *** jpstone has quit IRC
[23:48:44] <jcool> themime, got taht :)
[23:49:00] *** mjs2600 has joined #angularjs
[23:49:04] *** shpoont__ has quit IRC
[23:49:14] *** mjs2600 has quit IRC
[23:49:14] *** biowo has joined #angularjs
[23:49:20] *** Jdubs has quit IRC
[23:49:20] <themime> jcool: i think moving some stuff into services will alone clean it up a lot, you may be able to keep it as one controller
[23:49:53] <jcool> themime, I was learning how to make custom directive
[23:50:07] *** whitebook has joined #angularjs
[23:50:09] <themime> oh yea or that
[23:50:27] <jcool> themime,is there a way to set a base_path or some thing like that as api call url changes frequently
[23:50:34] *** bolloga has quit IRC
[23:50:37] <jcool> so I set some base_path and then use it all places
[23:50:39] *** shinnya has joined #angularjs
[23:50:50] *** bayousoft has quit IRC
[23:51:21] *** baweaver has quit IRC
[23:51:34] *** baweaver has joined #angularjs
[23:51:57] *** MistahKurtz has joined #angularjs
[23:52:04] <themime> jcool: could separate out your $http call even further, some kind of CustomRequest that takes in an action you hook onto a url that the CustomRequest service stores - alternatively you can just have some kind of Session service that has it
[23:52:10] *** whitebook has quit IRC
[23:52:26] *** yelvert has quit IRC
[23:52:26] <nicholes> jcool: Sounds like you could use an angularjs 'constant', too.
[23:52:39] *** ccohn has quit IRC
[23:52:41] <themime> ah ive seen that once i should look into that
[23:52:46] <biowo> hello all, im new user on angular. during training i got a problem about using $http.post to insert a object into local json file.($http.get can get all data crrectly)
[23:52:53] *** ccohn has joined #angularjs
[23:52:53] *** yelvert has joined #angularjs
[23:53:27] <biowo> in chrome console shows "Failed to load resource: the server responded with a status of 404 (Not Found)"
[23:53:31] *** dcherman2 has joined #angularjs
[23:53:40] *** dhcar_AFK is now known as dhcar
[23:53:55] <themime> biowo: your path is wrong
[23:54:04] *** Grokling_ has quit IRC
[23:54:10] <eslaron> http://pastebin.com/ih5TuxAF I have a parent state with 2 child states. When I do $state.go('dashboard.admin') I get a inifinite digest loop error. Is this a bug or I am missing something?
[23:54:28] *** bolloga has joined #angularjs
[23:54:30] *** dhcar is now known as dhcar_AFK
[23:54:35] <themime> eslaron: sorry doing several things at once
[23:54:46] *** Aliks has quit IRC
[23:54:49] *** nattonerd has joined #angularjs
[23:55:02] <biowo> $http.post('api/books.json', newBook).success(function(){
[23:55:03] <eslaron> No problem, themime, I'll wait ^^
[23:55:12] *** Aliks has joined #angularjs
[23:55:42] *** njbair has quit IRC
[23:56:02] <biowo> 'api/books.json' is the address where i put the json file
[23:56:14] *** whitebook has joined #angularjs
[23:56:32] *** dcherman has quit IRC
[23:56:55] *** pipoo has quit IRC
[23:56:56] *** matisoffn has joined #angularjs
[23:57:06] <nicholes> biowo: Can you just straight-up post to a json file and have your server write to the file? I'd think you'd need to post your json to some other endpoint and have your server write the contents to your json file?
[23:57:09] *** cthrax has joined #angularjs
[23:57:12] <alexw> Is it possible to bind a form to ngModel?
[23:57:12] *** freeman42 has quit IRC
[23:57:17] <jcool> themime, noting all that points down
[23:57:29] <alexw> I'm looking to resolve a child's states form from the parent state
[23:57:30] *** dhcar_AFK is now known as dhcar
[23:57:34] <alexw> so I can check form.$dirty
[23:57:46] *** ctanga has quit IRC
[23:57:47] *** yelvert has quit IRC
[23:57:50] *** freeman42 has joined #angularjs
[23:57:53] <themime> eslaron: where are your controllers
[23:57:57] <alexw> I'm using ui router
[23:57:58] <themime> eslaron: can you make a plunker
[23:58:01] <nicholes> alexw: From the angularjs.org documentation on form, the first line says "If the name attribute is specified, the form controller is published onto the current scope under this name."
[23:58:01] *** Siecje has left #angularjs
[23:58:06] *** dcherman2 has quit IRC
[23:58:24] <alexw> nicholes it works within the ui-view
[23:58:32] <alexw> {{ companyForm.$dirty }}
[23:58:38] <biowo> i didn't put it in a server. but i have to say, that $http.get() work correctly
[23:58:58] *** lw has joined #angularjs
[23:59:09] *** lw has quit IRC
[23:59:23] *** WoffMeow has joined #angularjs
[23:59:36] *** juanpablo_ has quit IRC
[23:59:46] *** jonr22 has joined #angularjs
[23:59:49] *** lw has joined #angularjs
[23:59:57] *** bade has joined #angularjs
top

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