[00:01:35] *** IsraelOrtuno has quit IRC
[00:01:42] *** IsraelOrtuno has joined #angularjs
[00:02:07] *** Solid1 is now known as Solid1_afk
[00:02:14] *** duellsy has joined #angularjs
[00:02:42] *** juanpablo_ has quit IRC
[00:02:59] *** weems|mac has quit IRC
[00:03:11] *** juanpablo_ has joined #angularjs
[00:03:14] <fotoflo> thanks!
[00:03:16] *** silo- has quit IRC
[00:03:40] *** dcherman has quit IRC
[00:03:44] <jdummy> seems to be consistent with the examples I've found, but it throws an error
[00:04:34] *** josh-k_ has joined #angularjs
[00:05:18] *** macobo has quit IRC
[00:05:28] *** d0ngz has joined #angularjs
[00:05:32] <d0ngz> hello, good afternoon.
[00:06:30] *** crewshin_ has joined #angularjs
[00:07:13] *** RobinBAwesome has quit IRC
[00:07:28] *** juanpablo_ has quit IRC
[00:07:32] <morenoh149> what can I do if I think $routeProvider isn't working right?
[00:07:37] *** oste has quit IRC
[00:07:41] <fotoflo> OK i got the old batarang working! I have scopes that i created models on but the models are gone
[00:08:12] *** apertoire has joined #angularjs
[00:08:12] *** drag0nius has quit IRC
[00:08:13] *** josh-k has quit IRC
[00:08:40] <fotoflo> perhaps i’m wiping out the scope somewhere?
[00:08:46] *** mary5030 has quit IRC
[00:08:49] *** MalfaitRobin has joined #angularjs
[00:09:21] <jaawerth> scopes only stick around as long as their relevant directives do
[00:09:21] *** mary5030 has joined #angularjs
[00:09:43] <fotoflo> jaawerth: i have a simple controller and it’s scope is gone
[00:09:55] <fotoflo> no data in the {{
[00:10:13] *** MalfaitRobin has quit IRC
[00:10:13] *** MalfaitRobin has joined #angularjs
[00:10:25] *** patrick99e99 has joined #angularjs
[00:10:37] *** shaisnir_ has joined #angularjs
[00:10:42] *** MuffinMan` has joined #angularjs
[00:12:06] *** jstroem has quit IRC
[00:12:22] *** dotsspwe has quit IRC
[00:12:31] *** dcherman has joined #angularjs
[00:12:53] *** neilff has quit IRC
[00:13:19] *** shaisnir has quit IRC
[00:13:25] <d0ngz> sorry, i suck my script file was before angular files.
[00:13:33] *** sbellina has joined #angularjs
[00:13:37] *** mary5030 has quit IRC
[00:14:24] *** MalfaitRobin has quit IRC
[00:14:48] *** tskaggs has quit IRC
[00:15:00] *** kesshi has joined #angularjs
[00:15:05] *** MalfaitRobin has joined #angularjs
[00:15:14] *** knoopx has joined #angularjs
[00:16:05] *** wmbutler has quit IRC
[00:16:13] *** kroogs has joined #angularjs
[00:16:21] *** BrianTheAss has quit IRC
[00:16:36] *** wmbutler has joined #angularjs
[00:16:51] *** MalfaitRobin has quit IRC
[00:16:51] *** MalfaitRobin has joined #angularjs
[00:17:03] *** doodlehaus has quit IRC
[00:17:06] *** Linell has quit IRC
[00:17:32] <wafflej0ck> morenoh149: add listeners for the route change events
[00:17:46] <wafflej0ck> morenoh149: route error events too
[00:18:22] *** ctanga has quit IRC
[00:18:23] *** Oxynum has quit IRC
[00:18:28] *** jdivock has quit IRC
[00:18:32] <helen_> @jdummy u can switch the arguments u have for angular.extend, it wont copy prototype properties which is why its failing
[00:19:08] *** leolrrj has joined #angularjs
[00:19:32] *** baweaver has joined #angularjs
[00:19:33] *** jdivock has joined #angularjs
[00:19:56] <wafflej0ck> fotoflo: best if you create a plunkr to show the problem or drop a gist with your code
[00:20:44] <jdummy> tada!!! thanks helen_, that did the trick!
[00:20:46] <fotoflo> wafflej0ck: Solved. - really strange, i commented out 90% of the code and the controller came back in action. I then uncommented lnine by line, eventually everything, and it all worked again.
[00:20:51] <fotoflo> wafflej0ck: thanks though
[00:21:08] <wafflej0ck> fotoflo: sure glad you got it sorted
[00:21:24] *** wmbutler has quit IRC
[00:21:24] *** kroogs has quit IRC
[00:21:36] *** FunnyLookinHat has quit IRC
[00:22:58] *** stylemistake has quit IRC
[00:23:17] *** stylemistake has joined #angularjs
[00:23:18] *** sbellina has quit IRC
[00:23:22] *** boxmein has quit IRC
[00:23:29] *** IanOlson has quit IRC
[00:23:46] *** g33k5z has quit IRC
[00:23:55] *** cannap has quit IRC
[00:23:58] *** Johnny13371337 has quit IRC
[00:24:49] *** qdk has joined #angularjs
[00:25:06] *** cacts|works has quit IRC
[00:27:15] *** cannap has joined #angularjs
[00:27:15] *** codeman has joined #angularjs
[00:27:31] *** zwacky_ has quit IRC
[00:27:48] *** whunt_ is now known as whunt
[00:28:06] *** Superhard has joined #angularjs
[00:29:21] *** richiebk_ has joined #angularjs
[00:29:32] *** jstroem has joined #angularjs
[00:30:35] *** recurrence has joined #angularjs
[00:30:40] *** gladely has quit IRC
[00:31:02] *** gladely has joined #angularjs
[00:32:13] *** tsalb has quit IRC
[00:32:27] *** opiates_ has quit IRC
[00:32:30] *** Superhard has quit IRC
[00:32:52] *** knoopx1 has joined #angularjs
[00:33:02] *** jdivock has quit IRC
[00:33:26] *** richiebkr has quit IRC
[00:33:28] *** codeman has quit IRC
[00:33:36] *** codeman has joined #angularjs
[00:34:38] *** pknordic_ has joined #angularjs
[00:35:16] *** codeman has quit IRC
[00:35:46] *** codeman has joined #angularjs
[00:36:10] *** paralle21_ is now known as parallel21
[00:36:23] *** joshontheweb has quit IRC
[00:37:29] *** leolrrj has quit IRC
[00:37:32] <jiverson> working for me
[00:37:54] *** Sawbones has quit IRC
[00:38:04] *** diosney has quit IRC
[00:38:54] *** IsraelOrtuno has quit IRC
[00:38:59] *** pknordic_ has quit IRC
[00:39:23] *** g33k5z has joined #angularjs
[00:39:25] *** aychan has joined #angularjs
[00:39:35] *** gunn has quit IRC
[00:39:40] *** sk87 has joined #angularjs
[00:40:01] *** zwacky_ has joined #angularjs
[00:40:12] <aychan> anyone there?
[00:40:46] *** aychan has quit IRC
[00:40:57] *** stormbytes has quit IRC
[00:41:19] *** sk87 has quit IRC
[00:41:27] *** yts has quit IRC
[00:41:49] *** code-ninja{io} has joined #angularjs
[00:42:35] *** g-nom3 has quit IRC
[00:42:52] *** leolrrj has joined #angularjs
[00:43:13] *** jeffscottward has quit IRC
[00:44:03] *** joshontheweb has joined #angularjs
[00:44:44] *** dotsspwe has joined #angularjs
[00:44:58] *** shackleford has quit IRC
[00:45:53] *** dotsspwe has quit IRC
[00:46:04] *** caitp has joined #angularjs
[00:46:16] *** code-ninja{io} has quit IRC
[00:46:43] *** Aerospark has quit IRC
[00:47:05] *** drej has joined #angularjs
[00:48:06] *** ries has quit IRC
[00:48:07] *** mikerrrrrr has joined #angularjs
[00:48:15] *** tfennelly has quit IRC
[00:48:29] *** jiverson has quit IRC
[00:48:32] *** Sawbones has joined #angularjs
[00:49:04] <Sawbones> Has anyone used angular for it's directives in multiple page environments?
[00:49:06] *** baweaver has quit IRC
[00:49:27] <Sawbones> I used it today to make a form builder for out shop's website and it seems to be pretty fast and nice
[00:49:42] *** tilgovi has quit IRC
[00:50:01] *** tripu has joined #angularjs
[00:51:52] *** Sawbones has quit IRC
[00:51:58] *** shaisnir has joined #angularjs
[00:52:11] *** macabre has quit IRC
[00:52:35] <Foxandxss> angular can be used in many ways
[00:53:48] <jdummy> my opinion is that angular is suited mainly for single page applications
[00:53:49] *** dcherman has quit IRC
[00:54:05] <Foxandxss> that is true as well
[00:54:05] <Foxandxss> :P
[00:54:06] *** tilgovi has joined #angularjs
[00:55:04] *** shaisnir_ has quit IRC
[00:55:11] <jdummy> I recently came across a multi-page site that was using angular + some pagination directive to paginate ecommerce products
[00:55:27] *** RobinBAwesome has joined #angularjs
[00:55:39] <jdummy> not a fan of that solution.
[00:55:46] <jdummy> seems too heavy for the task
[00:55:50] <BahamutWC|Work> we have to exit our SPA to allow users to log in to another site for oauth :(
[00:55:51] <jdummy> BUT... just my opinion
[00:55:55] *** CanyonMan has quit IRC
[00:55:58] <BahamutWC|Work> but they do get redirected back afterwards
[00:56:10] <areologist> I use angular for single-page or hybrid apps; others tend to be server-side mvc apps with relatively little going on on the client-side
[00:57:44] <morenoh149> should you put dom elements for a directive in the template or add them dynamically in the link function?
[00:57:47] *** sgen__ has joined #angularjs
[00:58:02] <jdummy> morenoh149: either?
[00:58:35] *** tschundeee has joined #angularjs
[00:58:46] *** davek_ has quit IRC
[00:58:56] *** doginal has quit IRC
[00:58:56] *** kentaro0919 has quit IRC
[00:59:13]
<jdummy> Anyone know what I'm doing wrong here with $compile? http://jsfiddle.net/9tyfjwf0/1/ I thought I was on the right track, but apparently not. Why is {{string}} not being rendered?
[00:59:41] <jdummy> twice. Why is {{string}} not being rendered twice? (string in strings)
[00:59:41] *** babykosh has joined #angularjs
[00:59:47] *** walden is now known as walden|afk
[01:00:07] *** SargoDarya has joined #angularjs
[01:00:13] *** cannap has quit IRC
[01:00:13] *** SargoDarya has quit IRC
[01:00:14] *** SargoDarya has joined #angularjs
[01:00:23] *** PDogJr has quit IRC
[01:01:47] <jdummy> morenoh149: I would say... if your directive has a template, use the template... but if there's only one or two nodes and you don't want to use a template, append them in link()
[01:01:57] *** swist has joined #angularjs
[01:02:07] *** antons_ has joined #angularjs
[01:02:12] *** SoulBlade has joined #angularjs
[01:02:22] *** asher^ has joined #angularjs
[01:02:22] <morenoh149> can't seem to do ' element.append('<textarea></textarea>');
[01:02:28] <morenoh149> ' in my linker function
[01:02:43] *** doginal has joined #angularjs
[01:02:57] *** tschundeee has quit IRC
[01:03:10] <morenoh149> err I can do it with no errors but I don't see a textarea
[01:03:16] <jdummy> morenoh149: is there an error?
[01:03:24] <jdummy> hmm
[01:03:47] <jdummy> have you confirmed with the dom inspector that it's really not there?
[01:04:02] *** rtpg has joined #angularjs
[01:04:12] *** Lewix has joined #angularjs
[01:04:33] <morenoh149> ah I see I had a function running that destroyed the textarea before I could see it
[01:04:39] <helen_> jdummy: u want to append the result of the compile
[01:04:44] *** SargoDarya has quit IRC
[01:05:32] *** davek_ has joined #angularjs
[01:05:33] *** davek_ has joined #angularjs
[01:05:51] *** elrabin has quit IRC
[01:05:55] <Lewix> can someone kindly clarify for me what does ng-show use for equality, ng-show="foo" (foo being declared on the fly) is true
[01:06:12] *** swist has joined #angularjs
[01:06:13] <Lewix> "foo" === true is obviously false
[01:06:16] *** tschundeee has joined #angularjs
[01:06:17] *** elrabin has joined #angularjs
[01:06:31]
<sinious> While this works, this is very similar to a view binding updating properly ( ex: http://plnkr.co/edit/FWqFdVERIKRgFcz2Uvl6 ).. that works, but can anyone think of a situation where setting the $scope.nums from a factory method work (the var has data) but the view REFUSES to update with the data?
[01:06:32] *** SoulBlade has quit IRC
[01:06:55] <jdummy> I guess I'm not as cool as Fox
[01:07:10] *** mzabriskie has joined #angularjs
[01:07:19] <Foxandxss> not sure if that is worth anmyway :P
[01:07:20] *** areologist has quit IRC
[01:07:45] <helen_> ur html is refering to the string, his is to the element
[01:07:58] <Foxandxss> let me check the fiddle, but really asleep
[01:08:53] <jdummy> in one iteration I initialized var html = angular.element('<blah blah>'); that didn't seem to work. I must be sleep working again :)
[01:09:01] <Foxandxss> jdummy: it is easy
[01:09:11] <Foxandxss> $compile returns an angular.element
[01:09:23] *** dshap has joined #angularjs
[01:09:32] *** AciD`` has quit IRC
[01:09:32] <Foxandxss> if you pass in an angular.element it returns it again but also modifies yours in place
[01:09:42] <Foxandxss> errr
[01:09:49] <Foxandxss> if you send a string, get what it returns
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:08] <Foxandxss> if you send an angular.element, it will modify it in place, so you don't need what it returns
[01:10:37] *** elrabin has quit IRC
[01:11:02] *** jtimon has quit IRC
[01:11:17] *** doginal has quit IRC
[01:11:19] <jdummy> ahh... I think I was trying to console.log the markup... so I had something like html = $compile(html)(scope); console.log(html.html()); and was getting undefined
[01:11:37] <Foxandxss> html is still a string
[01:11:42] *** safani has joined #angularjs
[01:11:48] <Foxandxss> IIRC
[01:12:04] <morenoh149> for a directive What triggers functions in your linker? what can trigger those functions?
[01:12:36] <Foxandxss> ng-click for example
[01:13:09] *** soee has quit IRC
[01:13:31] <jdummy> if $compile returns an angular.element, why can't I call .html() on the returned element? I is so confused
[01:13:47] <morenoh149> ah i see you can use event listeners
[01:14:42] *** Lewix has quit IRC
[01:14:55] *** Lewix has joined #angularjs
[01:15:13] *** Lewix has quit IRC
[01:15:14] *** Lewix has joined #angularjs
[01:15:37] *** earthquake has joined #angularjs
[01:16:01] <d0ngz> do i need to have a server to make XMLHttpRequest ??
[01:16:10] <morenoh149> how do you grab an element's first child?
[01:16:21] <morenoh149> d0ngz: there needs to be A server yes
[01:16:22] *** swist has quit IRC
[01:16:23] <d0ngz> my partials are not loading locally
[01:16:36] <d0ngz> o
[01:16:37] <morenoh149> where you're running it or not is another issue
[01:16:52] <d0ngz> so this XMLHttpRequest cannot load file:///home/overl0rd/Dev/angular-tutos/inicio.html. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https
[01:17:06] <d0ngz> will be fixed using a server
[01:17:20] <morenoh149> d0ngz: start developing locally with a server
[01:17:50] <jdummy> or if you have jquery there's .first()
[01:18:27] *** johnkevinmbasco has joined #angularjs
[01:18:40] *** snapwich has quit IRC
[01:18:57] <morenoh149> now if you're 'element' is a template like: '<a></a><div></div>' what is the value of element in the linker function?
[01:19:07] <morenoh149> both nodes?
[01:19:47] *** sahbeewah has quit IRC
[01:19:57] *** mary5030 has joined #angularjs
[01:19:58] <jdummy> morenoh149: hmmm... doesn't there need to be a single parent node?
[01:20:26] <morenoh149> jdummy: if not then it should be enforced somehow
[01:20:36] <jdummy> yeah, templates will throw an error if there's more than one root node
[01:20:38] *** herbyme has quit IRC
[01:20:39] <jdummy> pretty sure
[01:21:00] <jdummy> and a directive by it's nature is only a single node
[01:21:50] <jdummy> so how does one get html back from $compile?
[01:22:12] *** fairuz has quit IRC
[01:22:12] *** chrisbirk has joined #angularjs
[01:24:31] <Lewix> helen_: ?
[01:24:44] *** doginal has joined #angularjs
[01:24:45] *** mary5030 has quit IRC
[01:25:19] *** fedenunez has joined #angularjs
[01:26:41] *** stormbytes has joined #angularjs
[01:27:31] <jdummy> and here I thought using angular's templating for user modifiable templates would be *simple* :)
[01:28:17] *** sbellina has joined #angularjs
[01:28:49] *** russellm has quit IRC
[01:28:50] *** RobinBAwesome has quit IRC
[01:29:29] *** Fishy has joined #angularjs
[01:29:45] *** babykosh has quit IRC
[01:31:13] *** ron_frown has joined #angularjs
[01:31:14] *** AngularUI has joined #angularjs
[01:31:14]
<AngularUI> [bootstrap] oleduc opened pull request #3116: Fix datepicker event (master...fix-datepicker-event) http://git.io/gy3FDA
[01:31:14] *** AngularUI has left #angularjs
[01:31:45] <morenoh149> returns a link function which is used to bind template (a DOM element/tree) to a scope
[01:32:06] <morenoh149> so you want to extract the template from the link function produced by $compile
[01:32:12] <tga0> in ui-router if I have a big abstract AppController and a loaded state with its own controller, can I redirect to a different state from my AppController?
[01:32:21] *** Sawbones has joined #angularjs
[01:33:20] *** shaisnir_ has joined #angularjs
[01:33:39] *** mdedetrich has joined #angularjs
[01:33:46] <helen_> Lewix: ? ;o
[01:33:55] *** seriema has joined #angularjs
[01:34:00] <tga0> my AppController seems to be executing, but the state change just doesn't happen
[01:34:09] *** RobinBAwesome has joined #angularjs
[01:34:40] *** sonofdirt has joined #angularjs
[01:34:43] *** leolrrj has quit IRC
[01:35:18] *** fotoflo has quit IRC
[01:35:45] *** mven has joined #angularjs
[01:35:52]
<jdummy> morenoh149: hmm... I'm not sure my brain can make sense of those docs... and the object returned doesn't include link() http://jsfiddle.net/9tyfjwf0/2/
[01:35:57] *** shaisnir has quit IRC
[01:35:57] *** codeman has quit IRC
[01:35:59] *** startupality has joined #angularjs
[01:36:28] <jdummy> maybe I'm trying to achieve the impossible
[01:36:48] *** Sawbones has quit IRC
[01:36:55] *** jbeaudry has left #angularjs
[01:37:25] *** MistahKurtz has joined #angularjs
[01:37:35] <jdummy> at least... not what $compile was made for. I actually want the resultant html string
[01:38:04] <MistahKurtz> is it possible to pass a callback to a state with ui-router
[01:38:12] *** seriema has quit IRC
[01:38:17] *** doodlehaus has joined #angularjs
[01:38:21] <MistahKurtz> e.g., go to "create-resource" with this `onSubmit` callback handler
[01:38:26] <morenoh149> jdummy: should be able to get it from the linker. the complicated stuff is because the DOM can change if the scope is whatever state in combination with the original element
[01:38:29] *** leolrrj has joined #angularjs
[01:38:34] <Lewix> can someone kindly clarify for me what does ng-show use for equality, ng-show="foo" (foo being declared on the fly) is true , helen_
[01:39:06] *** knoopx1 has left #angularjs
[01:39:19] <jdummy> morenoh149: yeah but I'm cheating in that regard... I'm calling it in a service, and passing it a $new() scope.
[01:39:20] *** vassagus has quit IRC
[01:39:42] *** zwacky_ has quit IRC
[01:39:56] <tga0> Lewix: if foo doesn't exist that shouldn't show
[01:39:59] <helen_> Lewix um its pretty much just normal equality?
[01:40:09] *** alpha080 has joined #angularjs
[01:40:19] <Foxandxss> jdummy: cant really read too much, but whats the issue?
[01:40:27] <Foxandxss> well, your goal
[01:41:09] <jdummy> thanks Foxandxss. I'm trying to use $compile to render a user modifiable template. Outside of an angular controller
[01:41:29] *** CanyonMan has joined #angularjs
[01:41:38] <Foxandxss> jdummy: dynamic templates?
[01:42:00] <jdummy> Foxandxss: mmm... I guess.
[01:42:08] <Foxandxss> that is feasible
[01:42:21] *** sinious has quit IRC
[01:42:38] <jdummy> I really just want to provide the user with the ability to throw some {{tags}} in an editor. I'll then render the input and window.print() it
[01:43:11] <jdummy> this is isolated from the app, just as proof of concept. but nothing I've done seem to allow me to get the rendered html
[01:43:24] *** disorder20 has quit IRC
[01:43:38] <helen_> Lewix: what about that plunkr?
[01:44:45] <tga0> that's what I was going to ask
[01:44:45] <Lewix> helen_: the variable in my ng-show is undefined
[01:44:52] <Lewix> yet "Hello" show
[01:44:55] <tga0> Lewix: you have a ng-hide, not a ng-show
[01:45:12] <tga0> no variable, no hiding
[01:45:14] *** AngularUI has joined #angularjs
[01:45:14]
<AngularUI> [ng-grid] PaulL1 opened pull request #2369: Fix #2360 (gridCol): build column only copies sort if new col (master...2356_column_hiding) http://git.io/zQlj5A
[01:45:15] *** AngularUI has left #angularjs
[01:45:35] *** MuffinMan` has quit IRC
[01:45:40] <Lewix> tg0: thank you
[01:45:49] <Lewix> tga0: long day
[01:45:58] *** CodeFriar has quit IRC
[01:46:10] *** fedenunez has quit IRC
[01:46:13] *** deanclkclk has quit IRC
[01:46:23] <tga0> np
[01:46:29] *** Aliks has quit IRC
[01:46:31] <helen_> heheh lol
[01:46:37] *** evotuned has joined #angularjs
[01:47:03] *** Aliks has joined #angularjs
[01:47:05] *** joshontheweb has quit IRC
[01:47:46] *** jrist is now known as jrist-afk
[01:47:47] <morenoh149> jdummy: whats comment?
[01:47:55] *** Aliks has quit IRC
[01:48:06] *** startupality has quit IRC
[01:48:08] *** Aliks has joined #angularjs
[01:48:13] *** Txandy has quit IRC
[01:48:22] <jdummy> morenoh149: huh?
[01:48:35] *** snurfery has quit IRC
[01:49:38] <jdummy> *comment
[01:51:06] *** glitch-hat has joined #angularjs
[01:51:35] *** startupality has joined #angularjs
[01:52:11] *** ome has joined #angularjs
[01:52:22] <morenoh149> seems like the $compile isn't doing much to the template
[01:52:30] *** emmesswhy has joined #angularjs
[01:52:34] <morenoh149> you scope probably needs more stuff
[01:53:20] <jdummy> morenoh149: I must be missing something. the console output shows only <!-- ngRepeat: string in strings -->
[01:54:03] <morenoh149> jdummy: exactly. something is missing to achieve your desired effect
[01:54:45] <morenoh149> you can also munge through the object printed in the console for 'html'. it's first key value pair is 'comment' hence my question
[01:55:52] <jdummy> oh... I think "comment" is part of the scope object. I didn't add it
[01:55:58] *** glitch-hat has quit IRC
[01:56:58] <jdummy> and navigating that object for "innerHTML" strings seems really painful
[01:57:07] *** garbanzio has quit IRC
[01:57:09] *** fotoflo has joined #angularjs
[01:57:28] *** TommyO has quit IRC
[01:57:51] *** safani has quit IRC
[01:58:08] *** cthrax has quit IRC
[01:58:45] *** AngularUI has joined #angularjs
[01:58:45]
<AngularUI> [ng-grid] PaulL1 closed pull request #2369: Fix #2360 (gridCol): build column only copies sort if new col (master...2356_column_hiding) http://git.io/zQlj5A
[01:58:45] *** AngularUI has left #angularjs
[02:00:47] *** illume has joined #angularjs
[02:01:58] *** rtpg has quit IRC
[02:02:11] <morenoh149> jdummy: its also circular as JSON.stringify() failed
[02:02:27] *** rtpg has joined #angularjs
[02:02:59] *** OddDuck has quit IRC
[02:04:48] *** Dido has joined #angularjs
[02:05:25] *** AimerPaddle has quit IRC
[02:05:42] *** rho has quit IRC
[02:06:02] *** mven has quit IRC
[02:06:42] *** mven has joined #angularjs
[02:06:55] *** rtpg has quit IRC
[02:06:59] *** Dido has quit IRC
[02:07:05] *** tga0 has quit IRC
[02:08:11] *** shinnya has quit IRC
[02:08:59] *** tomphp has quit IRC
[02:09:37] *** gladely has quit IRC
[02:10:01] *** Aerospark has joined #angularjs
[02:10:20] *** richiebk_ has quit IRC
[02:10:49] <jdummy> yeah, it seems $rootScope contains circular references
[02:10:51] *** rchavik has joined #angularjs
[02:11:58] <helen_> jdummy: soo u want to get the html that renders and output it ?
[02:12:19] <jdummy> helen_: and pass it to some other process that does REALLY nasty things :)
[02:12:22] *** mzabriskie has quit IRC
[02:12:25] <helen_> i think ud have to wait for a digest cycle
[02:12:31] *** doginal has quit IRC
[02:12:53] *** doginal has joined #angularjs
[02:12:55] *** phzon has joined #angularjs
[02:13:05] <jdummy> helen_: whoa. huh? now I'm really lost
[02:13:22] <helen_> uhh
[02:13:32] <jdummy> if the $compile'd template is already rendered to the dom, doesn't that suggest a digest cycle?
[02:13:34] <helen_> lemme try something, does it matter if i use output?
[02:13:49] <jdummy> do whatever
[02:14:00] *** crewshin_ has quit IRC
[02:14:12] *** PigDude has joined #angularjs
[02:14:21] *** oste has joined #angularjs
[02:14:22] <jdummy> I'd simply like to understand it. Ultimately, I'd rather not push the html to the dom at all.
[02:14:23] *** ChadStrat has quit IRC
[02:14:32] <jdummy> but maybe it needs to be dom attached for the angular magic
[02:14:35] <jdummy> not sure
[02:14:40] *** shaisnir has joined #angularjs
[02:15:28] *** mven has quit IRC
[02:16:04] *** sbellina has quit IRC
[02:16:08] *** g33k5z has quit IRC
[02:16:45] *** g33k5z has joined #angularjs
[02:16:55] *** Superhard has joined #angularjs
[02:17:07] *** startupality has quit IRC
[02:17:44] *** shaisnir_ has quit IRC
[02:17:56] *** phzon has quit IRC
[02:18:07] <helen_> i feel like it should actually digest b4 that =.=
[02:18:24] *** mzabriskie has joined #angularjs
[02:18:25] *** motionman has joined #angularjs
[02:18:26] *** D9 has quit IRC
[02:18:55] <jdummy> hmmm... you were right though... the digest cycle solves the problem
[02:19:17] *** jMyles has quit IRC
[02:19:23] *** g33k5z has quit IRC
[02:19:27] *** doginal has quit IRC
[02:19:30] <helen_> but now i feel like it shoulda digested ><
[02:19:33] <helen_> grr
[02:19:33] *** g33k5z has joined #angularjs
[02:19:38] <helen_> but uh it works... :P? lol
[02:19:39] *** annlewis has quit IRC
[02:20:12] <helen_> there is a digest cycle
[02:20:12] <morenoh149> jdummy: I give up >:(
[02:20:17] <helen_> i just waited till it finished rendering
[02:20:27] <helen_> which is what the timeout is for, put it at the end of the javascript q
[02:20:43] *** MJD has quit IRC
[02:20:46] <jdummy> append() ?
[02:20:55] *** recurrence has quit IRC
[02:21:05] *** doginal has joined #angularjs
[02:21:15] <jdummy> must be
[02:21:15] <MistahKurtz> is it possible to navigate to a state, and provide a callback?
[02:21:25] *** Superhard has quit IRC
[02:21:35] *** wallerdev has quit IRC
[02:21:43] *** RobinBAwesome has quit IRC
[02:21:45] <MistahKurtz> e.g., $state.go('state', { onSuccess: function(){ do stuff } })
[02:22:38] *** MJD has joined #angularjs
[02:22:57] *** Foxandxss has quit IRC
[02:23:07] <fotoflo> hmm. I have a list = $http.get(‘/url).success(funciton(data){ transformData() }) return list; is it possible to return the results of the transformData in the list promise?
[02:23:10] *** RobinBAwesome has joined #angularjs
[02:23:23] *** pknordic_ has joined #angularjs
[02:24:05] <helen_> maybe its bc of "After linking the view is not updated until after a call to $digest which typically is done by Angular automatically."
[02:24:29] <helen_> oo maybe this will help, gimme a min
[02:24:56] *** ChadStrat has joined #angularjs
[02:25:52] *** leolrrj has quit IRC
[02:26:20] <jdummy> fotoflo: in your then() handler for $http.get(), just return a value
[02:26:21] *** illume has quit IRC
[02:26:26] <helen_> oh nope nvm :(
[02:26:31] *** jstroem has quit IRC
[02:26:34] *** Sawbones has joined #angularjs
[02:26:47] <fotoflo> jdummy: you mean in the success?
[02:26:52] <jdummy> that will cause an then() handlers further down the chain to be resolved with your value
[02:26:54] *** morenoh149 has quit IRC
[02:26:54] *** leolrrj has joined #angularjs
[02:27:04] *** jstroem has joined #angularjs
[02:27:19] *** ron1 has joined #angularjs
[02:27:20] *** darrin has joined #angularjs
[02:27:28] <jdummy> fotoflo: I think it shouldn't matter, but it's possible that success() behaves differently
[02:27:28] *** ron_frown has quit IRC
[02:27:33] <jdummy> *any
[02:27:47] *** debunk has quit IRC
[02:27:51] <helen_> and prob the intiial digest cycle?
[02:27:57] *** pknordic_ has quit IRC
[02:28:38] *** marr has quit IRC
[02:28:46] <fotoflo> jdummy: if i return data in the success, i still get the whole promise when i resolve
[02:29:02] <jdummy> I'm guessing the initial digest cycle is just standardly happening... there's nothing async here, so the controller needs to be run, and I would expect a $digest
[02:29:16] <jdummy> fotoflo: oh yeah, you'll always get a promise
[02:29:28] <jdummy> fotoflo: otherwise you'd be handling asynchronous requests synchronously
[02:29:40] <fotoflo> i mean, i still get a promise with status codes and what not
[02:29:49] *** mikerrrrrr has quit IRC
[02:30:01] <jdummy> fotoflo: I remember a conversation before about automatically unwrapping promises, but it didn't happen... or it was removed
[02:30:20] *** wallerdev has joined #angularjs
[02:30:38] <helen_> jdummy: im kinda confused why the element itself is so hard to use xD i had to wrap it =.= i guess ive never really had to play with the html returned itself
[02:30:39] *** neilff has joined #angularjs
[02:30:43] *** SergioFilhow_ has quit IRC
[02:31:09] <fotoflo> jdummy: i would like to hanndle it in my success function and then pass on the result to the promise (does that make sense?)
[02:31:21] *** mzabriskie has quit IRC
[02:31:23] <jdummy> fotoflo: I don't exactly understand what you're after. Why not just do this: $http.get(‘/url).success(function(data){ list = transformData() })
[02:31:28] *** Sawbones has quit IRC
[02:31:32] <helen_> jdummy: im kinda curious, what does the process that does really nasty things do heheh
[02:31:36] <helen_> if u dont mind me asking
[02:31:37] *** jstroem has quit IRC
[02:31:40] *** dacuca has quit IRC
[02:31:41] <helen_> kinda off topic xD
[02:31:44] *** JeffBuhrt has quit IRC
[02:32:00] <jdummy> helen_: that markup gets passed to a node.js module I wrote...
[02:32:18] <jdummy> it sticks the markup into a page for phantomjs to take a screenshot of and output as pdf
[02:32:45] <jdummy> then I exec() the pdf file to foxit pdf reader for command-line printing
[02:32:50] <jdummy> :)
[02:32:55] *** Dido has joined #angularjs
[02:33:33] <jdummy> I spent a lot of time teaching my web app to be able to silently print on windows to any printer that it wants to on the machine
[02:33:37] <jdummy> and it's not pretty
[02:33:48] <jdummy> but it works
[02:33:55] <helen_> hahaha that is nasty xd
[02:34:01] *** ctanga has joined #angularjs
[02:34:04] <davek_> You disgust me.
[02:34:04] <jdummy> yeah, srsly
[02:34:07] <fotoflo> jdummy: so i have a service.list() = function(){ var LIST = $http.get(‘url’).success( DATA = transformData(data); return DATA; ) return LIST; } and when service.list i get LIST, not DATA;
[02:34:09] <jdummy> hahaha! :)
[02:34:11] <helen_> what do u print out ;o
[02:34:13] *** leolrrj has quit IRC
[02:34:24] *** UniBot has joined #angularjs
[02:34:26] <helen_> the text the html shows?
[02:34:31] <fotoflo> seems like that internal return function isnt doing anything
[02:35:10] <jdummy> fotoflo: can you provide a fiddle or something? jsfiddle.net
[02:35:11] *** seriema has joined #angularjs
[02:35:15] <jdummy> that pasted code looks mighty wrong
[02:35:30] *** darrin has quit IRC
[02:35:41] *** Lewix has quit IRC
[02:35:47] <jdummy> helen_: me? various things. receipts mainly
[02:35:55] <helen_> fotoflo: u need to use and return a promise if u want to get data
[02:36:05] <jdummy> in the case of this templating, it'll be something like a "work order" or whatever
[02:36:16] *** Cronoh has quit IRC
[02:36:22] *** sbellina has joined #angularjs
[02:36:57] <helen_> oh :P so its not just the html text inside the elements?
[02:36:58] <jdummy> helen_: you've helped me greatly today. I really appreciate you. thanks.
[02:37:23] <helen_> np :)
[02:37:24] *** Aerospark has quit IRC
[02:37:41] <jdummy> no... that's just a proof of concept. I have a handy dandy editor things with guides and rulers
[02:37:44] <jdummy> like a page layout editing thing
[02:38:03] *** Lewix has joined #angularjs
[02:38:16] <jdummy> alright, I need to go sleep and cement the new concepts I've learned today :)
[02:38:21] <fotoflo> hmmm
[02:38:24] <jdummy> 'night all
[02:38:25] <helen_> gn ^^
[02:38:29] *** jdummy has quit IRC
[02:38:58] *** nemothekid has quit IRC
[02:39:17] *** seriema has quit IRC
[02:39:24] <helen_> function(){ var deferred = $q.defer() var LIST = $http.get(‘url’).success( deferred,resolve(transformData(data)); ) return deferred.promise; }
[02:39:25] <helen_> something like that
[02:40:08] *** charuru has joined #angularjs
[02:40:20] *** ngbot has joined #angularjs
[02:40:21]
<ngbot> [angular.js] jesselpalmer pushed 6 new commits to materialize: http://git.io/Z7nLpw
[02:40:21] <ngbot> angular.js/materialize a3762ec Palmer: docs(app): adds roboto font
[02:40:21] <ngbot> angular.js/materialize 704e61e Palmer: docs(app): updates typography
[02:40:21] <ngbot> angular.js/materialize f8ee9b7 Palmer: docs(app): merges with old changes
[02:40:21] *** ngbot has left #angularjs
[02:40:41] *** denysonique has quit IRC
[02:40:52] *** Aerospark has joined #angularjs
[02:41:23] *** ChadStrat has quit IRC
[02:41:44] *** jareddlc has quit IRC
[02:41:57] *** scythe__ has quit IRC
[02:42:09] *** Fishy has quit IRC
[02:42:19] *** TheAceOfHearts has quit IRC
[02:43:15] *** motionman has quit IRC
[02:43:30] *** sk87 has joined #angularjs
[02:43:47] *** MuffinMan` has joined #angularjs
[02:44:23] <MistahKurtz> hm
[02:44:38] <MistahKurtz> nobody's taken a nibble at my dilemmas :(
[02:46:00] <MistahKurtz> I need to navigate to a state (to edit a resource) from multiple entry points, and provide callbacks for extra bits of logic
[02:46:50] <MistahKurtz> like, `$state.go 'edit-foo', onSuccess: function() { /* do some extra stuff */ }`
[02:47:01] *** Fishy has joined #angularjs
[02:47:44] *** denysonique has joined #angularjs
[02:47:45] *** denysonique has joined #angularjs
[02:47:45] *** antons has joined #angularjs
[02:47:48] *** Lewix has quit IRC
[02:48:32] *** shaisnir has quit IRC
[02:48:41] *** SargoDarya has joined #angularjs
[02:49:19] *** MalfaitRobin has quit IRC
[02:49:31] *** kesshi has quit IRC
[02:49:35] *** JeffBuhrt has joined #angularjs
[02:49:47] *** MalfaitRobin has joined #angularjs
[02:50:45] *** AngularUI has joined #angularjs
[02:50:45]
<AngularUI> [ng-grid] PaulL1 opened pull request #2370: Fix #2285 (tut, e2e): fixed e2e and extended tut for external sort (master...2285_external_sort) http://git.io/5PzCgA
[02:50:46] *** AngularUI has left #angularjs
[02:51:07] *** SoulBlade has joined #angularjs
[02:51:55] <helen_> MistahKurtz: theres not really a question in there ;p
[02:52:00] *** dllama has joined #angularjs
[02:52:04] <MistahKurtz> haha
[02:52:11] <MistahKurtz> I suppose you're right
[02:52:23] <MistahKurtz> i'm faced with...an architectural dilemma
[02:52:26] *** MalfaitRobin has quit IRC
[02:52:26] *** MalfaitRobin has joined #angularjs
[02:52:30] *** doodlehaus has quit IRC
[02:52:32] <MistahKurtz> and left wishing that I could provide callbacks to a state in that manner.
[02:52:47] *** SargoDarya has quit IRC
[02:53:03] *** fairuz has joined #angularjs
[02:53:07] <MistahKurtz> a user might enter `edit-foo` from multiple places... and tiny bits of differing logic need to happen depending on where they came from.
[02:53:14] *** chrisbirk has quit IRC
[02:54:00] <helen_> um what do u want to do in the callback?
[02:54:07] <helen_> oh
[02:54:48] *** mspier is now known as mspier|away
[02:54:48] <MistahKurtz> like one of them needs to add the resource (that's edited in `edit-foo`) and then return back to the previous state
[02:54:58] <MistahKurtz> sorry, add the resource to a local storage bucket*
[02:55:25] *** motionman has joined #angularjs
[02:55:29] <MistahKurtz> I started trying to encapsulate the form in its own directive, and plop that directive in different controllers
[02:55:40] <MistahKurtz> but it feels pretty clunky
[02:55:55] *** SoulBlade has quit IRC
[02:56:04] <MistahKurtz> when one state with one controller would do just fine, if only I could provide it callbacks
[02:56:55] *** joshontheweb has joined #angularjs
[02:57:03] <helen_> hmm i dont think u can pass data with states unless its thru route params tho, i might b wrong
[02:57:28] <MistahKurtz> yeah that's correct
[02:58:38] *** themime has quit IRC
[02:58:50] *** pulpfree has joined #angularjs
[02:59:26] <helen_> why does the directie seem clunky? it does seem like a repeated control to me
[02:59:53] *** bkuberek_ has joined #angularjs
[03:00:53] <MistahKurtz> so in that scenario, I would have multiple states+controllers, which would still require a bit of duplicated logic
[03:01:08] <MistahKurtz> although the majority of the form logic could then be encapsulated in the directive
[03:01:49] *** CodeFriar has joined #angularjs
[03:01:56] *** AngularUI has joined #angularjs
[03:01:56]
<AngularUI> [ng-grid] PaulL1 closed pull request #2370: Fix #2285 (tut, e2e): fixed e2e and extended tut for external sort (master...2285_external_sort) http://git.io/5PzCgA
[03:01:56] *** AngularUI has left #angularjs
[03:02:10] *** __danimal__ has joined #angularjs
[03:02:16] *** asher^ has quit IRC
[03:03:02] <helen_> hmm idk, maybe u could use a combination of resolve, service, and onExit but that sounds nasty too
[03:03:12] <MistahKurtz> yep
[03:03:14] *** bkuberek has quit IRC
[03:04:01] *** sonofdirt has quit IRC
[03:04:17] *** {DV8} has joined #angularjs
[03:04:28] *** Iravan has joined #angularjs
[03:04:37] *** sonofdirt has joined #angularjs
[03:05:10] *** Emerald214 has joined #angularjs
[03:05:11] *** Fuzzy has quit IRC
[03:05:20] <Emerald214> can anybody give me a hand?
[03:05:25] *** Iravan has quit IRC
[03:05:30] *** axsuul has quit IRC
[03:05:56] *** Iravan has joined #angularjs
[03:06:00] *** hunley has joined #angularjs
[03:06:08] <Emerald214> can anybody give me a hand?
[03:06:22] *** Iravan has quit IRC
[03:06:25] <MistahKurtz> no hands here
[03:06:33] <Emerald214> :D
[03:06:56] <Emerald214> So what do we stay for?
[03:07:15] *** AngularUI has joined #angularjs
[03:07:15]
<AngularUI> [ng-grid] PaulL1 opened pull request #2371: Fix #2256 (menu): position absolute rather than fixed, fixes safari (master...2256_grid_menu_safari) http://git.io/D5z6Fg
[03:07:15] *** AngularUI has left #angularjs
[03:07:45] *** japhar81 has joined #angularjs
[03:08:02] <MistahKurtz> Emerald214 for the feet, of course
[03:08:37] *** Aerospark has quit IRC
[03:08:54] *** sonofdirt has quit IRC
[03:09:01] *** davek_ has quit IRC
[03:09:05] <caitp> are you guys excited
[03:09:15] *** MalfaitRobin has quit IRC
[03:09:42] <Emerald214> lol
[03:09:49] <MistahKurtz> caitp well now that you're here
[03:09:51] <MistahKurtz> yes
[03:09:57] <caitp> :O!!
[03:10:32] *** MalfaitRobin has joined #angularjs
[03:10:33] *** ziggurat81 has joined #angularjs
[03:10:51] *** scriptThis has joined #angularjs
[03:11:07] *** MalfaitRobin has quit IRC
[03:11:07] *** MalfaitRobin has joined #angularjs
[03:11:32] <MistahKurtz> caitp, maybe you can offer me some advice. I have a form with multiple entry points, and I need extra bits of logic performed depending on which entry point it came from. I'm using ui-router. The most elegant solution I could wish for would be if ui-router states could accept callbacks, e.g. `$state.go('edit-foo', { onSuccess: function() { /*do stuff */ });
[03:12:13] *** nemothekid has joined #angularjs
[03:12:18] <MistahKurtz> but alas it can't, and the next best thing I've come up with is encapsulating as much as i can in a `fooForm` directive, which is used in multiple states/controllers
[03:12:35] <caitp> the new router might do something like that
[03:12:39] *** drej has quit IRC
[03:12:45] <caitp> i believe that was the plan
[03:12:48] <MistahKurtz> or alternatively, try to decorate ui-router with such functionality
[03:13:01] <MistahKurtz> I'm surprised i couldn't find any discussion of such a feature in the github issues
[03:13:21] *** evotuned has quit IRC
[03:13:38] *** gunn has joined #angularjs
[03:13:39] *** ctanga has quit IRC
[03:13:40] *** MalfaitR_ has joined #angularjs
[03:13:41] *** davek_ has joined #angularjs
[03:13:55] *** AngularUI has joined #angularjs
[03:13:55] <AngularUI> ng-grid/master e195629 Paul Lambert: Fix #2256 (menu): position absolute rather than fixed, fixes safari
[03:13:56] <AngularUI> ng-grid/master d1abe4c Paul: Merge pull request #2371 from PaulL1/2256_grid_menu_safari...
[03:13:56] *** AngularUI has left #angularjs
[03:14:38] *** dobladez has joined #angularjs
[03:15:05] *** MalfaitRobin has quit IRC
[03:15:08] *** bbankes has quit IRC
[03:15:14] *** MalfaitR_ is now known as MalfaitRobin
[03:15:25] *** patrick99e99 has quit IRC
[03:15:28] *** sk87 has quit IRC
[03:16:13] *** glaksmono has joined #angularjs
[03:16:13] *** dcherman has joined #angularjs
[03:17:53] *** jonathanpglick has quit IRC
[03:18:08] *** tilgovi has quit IRC
[03:18:36] *** rtpg has joined #angularjs
[03:19:06] *** kuadrosx has quit IRC
[03:19:16] *** rtpg has joined #angularjs
[03:19:43] *** night-owl is now known as zz_night-owl
[03:19:55] *** doginal has quit IRC
[03:20:07] *** dnewkerk has quit IRC
[03:20:28] *** TheAceOfHearts has joined #angularjs
[03:20:49] *** woah has quit IRC
[03:21:01] *** Sawbones has joined #angularjs
[03:21:49] *** sabrehagen has left #angularjs
[03:22:07] *** bayousoft has joined #angularjs
[03:22:10] *** CrashHD has quit IRC
[03:22:39] *** josh-k_ has quit IRC
[03:23:09] *** CrashHD has joined #angularjs
[03:23:38] *** ziggurat81 has quit IRC
[03:23:47] *** tripu has quit IRC
[03:25:06] *** shampine has quit IRC
[03:25:17] *** Sawbones has quit IRC
[03:25:28] *** BahamutWC has quit IRC
[03:25:59] *** RobinBAwesome has quit IRC
[03:26:02] *** herbyme has joined #angularjs
[03:27:18] <jaawerth> MistahKurtz: hrm, maybe I'm misunderstanding. entry point? like, previous state or..?
[03:27:30] <MistahKurtz> yeah, a previous state
[03:27:30] *** plex0r has joined #angularjs
[03:28:46] *** neilff has quit IRC
[03:28:46] *** robdubya has quit IRC
[03:28:50] <ProLoser> anyone have a preferred method of watching an object’s keys?
[03:28:54] *** Z3R0 has joined #angularjs
[03:29:22] *** ctanga has joined #angularjs
[03:29:43] <jaawerth> MistahKurtz: hrm, well, couldn't you just pass the function in as custom data?
[03:29:46] *** darrin has joined #angularjs
[03:30:11] <MistahKurtz> jaawerth yeah I tried that, turns out you can only pass in params that are defined the url
[03:30:20] *** recurrence has joined #angularjs
[03:30:21] <jaawerth> not params
[03:30:31] *** busticated has quit IRC
[03:30:43] <MistahKurtz> oh, you mean in the state definition object?
[03:30:44] *** Aerospark has joined #angularjs
[03:30:49] *** deanclkclk has joined #angularjs
[03:30:56] *** Aerospark has quit IRC
[03:31:11] *** Aerospark has joined #angularjs
[03:31:31] *** ron_frown has joined #angularjs
[03:31:32] *** SergioFilhow_ has joined #angularjs
[03:31:49] *** neilff has joined #angularjs
[03:32:08] *** Iravan has joined #angularjs
[03:32:17] <jaawerth> IIRC there's a way you can pass in arbitrary custom data.. trying it out real quick in a plunk to make sure I'm remembering right
[03:32:36] <MistahKurtz> yeah you can specify arbitrary data in your state definition object
[03:33:10] *** Fuzzy has joined #angularjs
[03:33:20] <MistahKurtz> that feels clunky though because it's not really a concern of your state definition...it's more a concern of the controller that's initiating the transition to that state
[03:33:53] *** Iravan has quit IRC
[03:34:09] *** Iravan has joined #angularjs
[03:34:34] *** ctanga has quit IRC
[03:35:12] *** platonic has quit IRC
[03:35:29] *** helen_ has quit IRC
[03:35:35] *** webbananaboy has joined #angularjs
[03:35:56] *** BahamutWC has joined #angularjs
[03:36:06] *** SergioFilhow_ has quit IRC
[03:36:18] *** joshontheweb has quit IRC
[03:36:25] *** seriema has joined #angularjs
[03:37:09] *** ron1 has quit IRC
[03:38:06] *** dobladez has quit IRC
[03:38:25] *** dcherman2 has joined #angularjs
[03:38:28] *** merobertsjr has quit IRC
[03:39:32] *** bmac has joined #angularjs
[03:40:37] *** seriema has quit IRC
[03:40:55] *** bkuberek has joined #angularjs
[03:41:14] *** herbyme has quit IRC
[03:41:18] *** platonic has joined #angularjs
[03:41:59] *** dcherman has quit IRC
[03:42:25] *** MalfaitRobin has quit IRC
[03:42:58] *** RobinBAwesome has joined #angularjs
[03:43:06] *** frkout_ has joined #angularjs
[03:43:26] *** alpha080 has quit IRC
[03:43:42] *** bkuberek_ has quit IRC
[03:43:42] <jaawerth> no, I swear you can just.. pass it
[03:44:14] *** dcherman2 has quit IRC
[03:44:30] <jaawerth> ctanga showed me once and it surprised me.. wish I'd written it down
[03:44:44] *** RobinBAwesome has quit IRC
[03:44:46] *** alpha080 has joined #angularjs
[03:44:57] *** dcherman2 has joined #angularjs
[03:46:17] *** frkout has quit IRC
[03:47:35] *** Guest22 has quit IRC
[03:49:45] *** Shrooms has joined #angularjs
[03:49:55] *** herbyme has joined #angularjs
[03:50:21] *** stanier has joined #angularjs
[03:50:50] *** darrin has quit IRC
[03:51:07] *** wallerdev has quit IRC
[03:51:08] *** tga0 has joined #angularjs
[03:52:37] <stanier> how would I display an variable from scope as unescaped HTML?
[03:52:50] *** dc_ has quit IRC
[03:52:50] *** bzitzow has quit IRC
[03:53:11] <BahamutWC> stanier: use the ng-bind-html directive
[03:53:18] *** alpha080 has quit IRC
[03:53:53] <stanier> BahamuitWC: awesome, thanks
[03:53:57] *** stanier has quit IRC
[03:54:11] <lebster> how come i keep getting Error: [$injector:unpr] Unknown provider: $filter
[03:54:36] *** alpha080 has joined #angularjs
[03:54:39] <BahamutWC> lebster: how are you trying to inject it?
[03:55:03] <BahamutWC> lebster: you cannot inject $filter in a config block
[03:55:08] <lebster> oh =(
[03:55:11] *** neilff has quit IRC
[03:55:17] *** tga0 has quit IRC
[03:56:51] *** chrisbirk has joined #angularjs
[03:56:56] *** bbankes has joined #angularjs
[03:58:09] *** dnewkerk has joined #angularjs
[03:58:38] *** kakashiAL has joined #angularjs
[03:59:25] <jaawerth> MistahKurtz: hrm, it maybe have been as simple as attaching it right on the state object as you call $state.go
[03:59:48] <MistahKurtz> jaawerth figured it out?
[03:59:55] <MistahKurtz> oh
[03:59:58] <MistahKurtz> you mean, like
[04:00:00] <jaawerth> just picking at my memory
[04:00:06] <jaawerth> MistahKurtz: however, it strikes me you could also achieve what you're looking for using a common service and a resolve block
[04:00:09] *** oste has quit IRC
[04:00:33] <jaawerth> you could basically have the service act as a stack, and empty the stack as part of the resolve
[04:01:00] <jaawerth> or a hash or stuff, and similarly clear the service and inject
[04:01:19] <MistahKurtz> yeah, I thought about having a service to go alongside `$stateParams`
[04:01:22] <MistahKurtz> like `$stateCallbacks`
[04:01:32] *** kakashiA1 has quit IRC
[04:01:33] *** zz_night-owl is now known as night-owl
[04:01:36] *** alpha080 has quit IRC
[04:01:51] *** woah has joined #angularjs
[04:02:30] <jaawerth> I wish ctanga were here - I coded up a "flash data" service once for exactly this kind of purpose, and he lightly mocked me and told about this undocumented data thing you can do that I simply can't remember
[04:03:20] *** alpha080 has joined #angularjs
[04:03:55] * BahamutWC opens up the ui router source code
[04:04:26] *** dmrs has quit IRC
[04:05:20] <BahamutWC> oh hey there are state filters
[04:05:28] *** WalterJr has joined #angularjs
[04:05:28] *** bmac has quit IRC
[04:05:29] <BahamutWC> isState and includedByState
[04:05:43] *** Superhard has joined #angularjs
[04:06:05] *** webbananaboy has quit IRC
[04:06:06] *** dc_ has joined #angularjs
[04:06:07] <CanyonMan> var rc = { someObj: $scope.someValue } ; deferred.resolve(rc);
[04:06:14] <CanyonMan> that should work right shouldn't it!? I don't get why it doesn't.
[04:06:38] <CanyonMan> I don't get rc back or any value for that matter
[04:06:57] *** pulpfree has quit IRC
[04:07:14] <BahamutWC> there's a $resolve service
[04:08:26] *** bmac has joined #angularjs
[04:10:01] *** Superhard has quit IRC
[04:10:06] *** platonic has quit IRC
[04:10:39] *** neilff has joined #angularjs
[04:10:46] *** mikerrrrrr has joined #angularjs
[04:10:53] *** lemur has joined #angularjs
[04:11:40] *** Shai-Tan has quit IRC
[04:11:56] *** dmrs has joined #angularjs
[04:12:03] *** tilgovi has joined #angularjs
[04:12:11] *** pknordic_ has joined #angularjs
[04:12:29] *** Iravan has joined #angularjs
[04:13:11] *** tfennelly has joined #angularjs
[04:13:20] *** plex0r has quit IRC
[04:13:51] *** evotuned has joined #angularjs
[04:15:14] *** Skrypter has quit IRC
[04:15:14] *** whunt has quit IRC
[04:15:19] *** Sawbones has joined #angularjs
[04:16:07] *** bmac has quit IRC
[04:16:07] *** chachan has left #angularjs
[04:16:08] *** platonic has joined #angularjs
[04:16:09] *** AngularUI has joined #angularjs
[04:16:09]
<AngularUI> [ng-grid] PaulL1 opened pull request #2372: Fix #2161 #2120 (cellClass): watch that notices changed cell, update cel... (master...2161_cell_class) http://git.io/3nrguA
[04:16:09] *** AngularUI has left #angularjs
[04:16:22] *** fairuz has quit IRC
[04:16:27] *** pknordic_ has quit IRC
[04:16:36] *** Shai-Tan has joined #angularjs
[04:16:38] *** Skrypter_ has joined #angularjs
[04:17:20] *** sgen__ has quit IRC
[04:17:40] *** tfennelly has quit IRC
[04:17:44] *** sheplu has quit IRC
[04:18:28] *** bmac has joined #angularjs
[04:19:04] *** merpnderp has left #angularjs
[04:19:14] <jaawerth> MistahKurtz: ah, got it..
[04:19:32] *** TheAceOfHearts1 has joined #angularjs
[04:19:38] <jaawerth> MistahKurtz: there might be a more direct way that I'm forgetting, but if you define an empty data object you can pass whatever you want into it
[04:19:47] <MistahKurtz> hm, interesting
[04:19:49] <MistahKurtz> thanks jaawerth
[04:19:55] *** Sawbones has quit IRC
[04:20:10] <MistahKurtz> i'll look into that
[04:20:12] <MistahKurtz> I gotta take off for now, but i'll leave IRC open if any other ideas come to you
[04:20:20] <MistahKurtz> appreciate the help!
[04:20:23] <rtpg> is batarang still broken?
[04:20:31] <jaawerth> MistahKurtz: I was able to do it using a .then on the promise
[04:20:34] *** jak124124 has joined #angularjs
[04:20:54] *** AngularUI has joined #angularjs
[04:20:54]
<AngularUI> [ng-grid] PaulL1 closed pull request #2372: Fix #2161 #2120 (cellClass): watch that notices changed cell, update cel... (master...2161_cell_class) http://git.io/3nrguA
[04:20:54] *** AngularUI has left #angularjs
[04:20:58] *** TheAceOfHearts has quit IRC
[04:21:03] <jaawerth> MistahKurtz: $state.go('someState').then(function(st) { st.data = {callback: myFunc}; })
[04:21:11] <fotoflo> hmm, i have a three col layout and I want to update the $location when someone clicks on a link, and then redraw the middle col with a partial… what’s the proper way to do that?
[04:21:21] *** renlo has joined #angularjs
[04:21:21] <jaawerth> MistahKurtz: I'm guessing you could just as easily do it with options or ui-sref-opts though, now that I think about it
[04:22:20] *** AngularUI has joined #angularjs
[04:22:20]
<AngularUI> [ng-grid] PaulL1 opened pull request #2373: Fix #2161 #2120 (cellClass): watch that notices changed cell, update cel... (master...2161_cell_class) http://git.io/YpR1pg
[04:22:20] *** AngularUI has left #angularjs
[04:22:37] *** evotuned has quit IRC
[04:22:44] *** TyrfingMjolnir has joined #angularjs
[04:22:58] <Grokling_> fotoflo: Sounds like an ideal use case for ui-router's nested states
[04:23:41] *** Z3R0 has quit IRC
[04:24:03] *** Iravan has quit IRC
[04:24:09] *** Lewix has joined #angularjs
[04:24:19] *** Iravan has joined #angularjs
[04:25:41] *** ninkotech has quit IRC
[04:25:46] *** schimmi has quit IRC
[04:25:48] *** Sadin has quit IRC
[04:25:52] *** MuffinMan` has quit IRC
[04:26:00] *** cornerma1 has joined #angularjs
[04:26:13] *** hendricius has quit IRC
[04:26:28] *** schimmi has joined #angularjs
[04:26:28] *** prbc has joined #angularjs
[04:26:34] *** kotyy has joined #angularjs
[04:26:54] *** hendricius has joined #angularjs
[04:26:56] <jaawerth> ProLoser: watching how?
[04:27:21] <ProLoser> like you can’t do object.length
[04:27:23] *** tschunde_ has joined #angularjs
[04:27:24] <jaawerth> ah
[04:27:34] *** axsuul has joined #angularjs
[04:27:47] <ProLoser> and it takes more overhead to do Object.keys(myObj).length
[04:27:48] *** axsuul has quit IRC
[04:27:50] <jaawerth> I once played around and managed to get it to inherit enough from array that I managed to give it a length property
[04:28:05] <jaawerth> I feel like there's a reason not to do that - likely unpredictability
[04:28:26] *** axsuul has joined #angularjs
[04:28:30] <fotoflo> oy- i remember futzing with ui-router for hours without getting it to work
[04:28:34] *** Iravan has quit IRC
[04:28:36] *** Iravan_ has joined #angularjs
[04:28:42] *** axsuul has quit IRC
[04:28:59] *** cornerman has quit IRC
[04:29:07] *** cornerma1 is now known as cornerman
[04:29:20] *** axsuul has joined #angularjs
[04:29:35] <fotoflo> Grokling_: the same thing cant be accomplished with ng-route?
[04:29:49] <Grokling_> fotoflo: Lots of people in the channel know how to make it work - there's even a core developer who knows it inside out.
[04:30:25] <BahamutWC> jaawerth: I've done var state = $state.get(foo); state.data = { ... }; and in the controller of the state do ctrl.thing = $state.current.data.myProp;
[04:30:37] <BahamutWC> not the greatest thing in the world but it's simple
[04:30:41] <jaawerth> ProLoser: ahh, right, it relies on __proto__ and supposedly has compatibility issues. Seemed to work fine using lodash when I played with it, but I didn't push the compatibility
[04:30:41] *** ninkotech has joined #angularjs
[04:30:50] <Grokling_> fotoflo: You could probably do the same thing with ngRoute, but my experience has been that those hours of futzing are far more painful and less rewarding with ngRoute to achieve a similar outcome.
[04:30:55] <prbc> I have a directive that conditionally display html content depending user role. Is there a way that I can check all directive elements again?
[04:30:57] *** deanclkclk has quit IRC
[04:31:01] *** tschundeee has quit IRC
[04:31:04] *** jaydubya has quit IRC
[04:31:07] <fotoflo> Grokling_: haha ok
[04:31:30] *** moogey has quit IRC
[04:31:50] *** deanclkclk has joined #angularjs
[04:31:51] *** Sadin has joined #angularjs
[04:32:03] <Grokling_> fotoflo: nested states are easy - you'll find plenty of help on that topic if you need it.
[04:32:16] *** SergioFilhow_ has joined #angularjs
[04:32:45] <fotoflo> i have to rip out my existing routes
[04:32:47] <fotoflo> ...
[04:32:56] *** CodeFriar has quit IRC
[04:33:03] <Grokling_> nah - just change the syntax a little. Shouldn't be that painful.
[04:33:24] <fotoflo> ok ill give it a shot
[04:33:46] <Grokling_> prbc: Is the problem that if the roles change, the view isn't updating?
[04:33:56] <prbc> Grokling_: yes!
[04:34:07] <prbc> Grokling_: Im getting user roles with a request after page loads
[04:34:23] *** jaydubya has joined #angularjs
[04:34:36] <Grokling_> pbrc: What does that ngShow look like?
[04:35:27] *** oste has joined #angularjs
[04:35:36] *** fairuz has joined #angularjs
[04:35:50] *** Left_Turn has quit IRC
[04:35:51] *** bkuberek_ has joined #angularjs
[04:36:54] *** jak124124 has quit IRC
[04:36:55] *** SergioFilhow_ has quit IRC
[04:37:06] *** Hackwar has joined #angularjs
[04:37:10] *** seriema has joined #angularjs
[04:37:17] *** JesseH has joined #angularjs
[04:37:32] *** SargoDarya has joined #angularjs
[04:37:57] *** recurrence has quit IRC
[04:38:00] <Lewix> oops a typo
[04:38:15] <CanyonMan> oh it's not a string, but it really is a string
[04:38:17] <CanyonMan> but it's a string of digits
[04:38:25] <CanyonMan> I coerced it with item.id + '' and now .search works
[04:38:29] <CanyonMan> that's really weird
[04:38:41] *** jaydubya_ has joined #angularjs
[04:38:57] *** jaydubya has quit IRC
[04:39:30] *** bkuberek has quit IRC
[04:39:47] *** Hackwar1 has quit IRC
[04:39:52] <CanyonMan> it really is a string, but it's an object I parsed out of a result from $resource
[04:39:58] <CanyonMan> so maybe it's really NOT a string, it's something else??
[04:40:00] *** SoulBlade has joined #angularjs
[04:40:45] <CanyonMan> Is there something I need to do from the result of a $resource get() to turn the resulting objects back into normal type slike strings and numbers?
[04:41:25] *** recidive has quit IRC
[04:41:30] *** tschunde_ has quit IRC
[04:41:36] <Lewix> CanyonMan: what data does your api send
[04:41:46] *** SargoDarya has quit IRC
[04:41:54] *** seriema has quit IRC
[04:42:05] *** tschundeee has joined #angularjs
[04:42:05] <CanyonMan> it sends back a json object of many levels, including arrays and stuff, but ultimately every real value is a string or a number
[04:43:42] *** DanSkaggs_ has joined #angularjs
[04:44:34] *** nya has quit IRC
[04:44:36] <CanyonMan> the debugger makes it look like all the properties are strings
[04:44:40] *** SoulBlade has quit IRC
[04:44:48] <CanyonMan> the object has a __proto__ though which has a __get__ and a __set__
[04:45:14] *** DanSkaggs has quit IRC
[04:45:15] *** DanSkaggs_ is now known as DanSkaggs
[04:45:39] <Grokling_> Lewix your directive name doesn't match your html.
[04:45:40] <CanyonMan> i'm going to make a plain old javascript object and $log.log() that too and compare
[04:46:04] <Lewix> CanyonMan: I'm confused - isn't all the properties supposed to be strings coming from a json.
[04:46:13] <CanyonMan> yeah, whatever comes back from the json parser is not really a POJO
[04:46:18] <CanyonMan> it's something else
[04:46:31] <CanyonMan> so for this to work i have to coerce all those fields to real strings
[04:46:34] *** chrisshattuck has joined #angularjs
[04:46:35] *** tschundeee has quit IRC
[04:46:37] <Lewix> CanyonMan: it's a promise
[04:46:39] *** cacts has joined #angularjs
[04:46:45] <CanyonMan> it is? huh
[04:46:54] <fotoflo> Grokling_: lookes like I wired it up, but my default template isnt getting injected
[04:46:58] <CanyonMan> Is there a convenient way to make it into a real object?
[04:47:03] <Lewix> CanyonMan: no I mean it's an object that can be used for a promise
[04:47:09] <fotoflo> Grokling_: and no error
[04:47:16] <Lewix> s/for/with
[04:47:27] <Grokling_> fotoflo: do you have a plunker?
[04:47:39] *** tilgovi has quit IRC
[04:48:03] <fotoflo> Grokling_: no
[04:48:33] <shyshy> anyone have any experience working with iframes to embed another javascript project into a site?
[04:48:41] *** g33k5z has quit IRC
[04:48:43] *** scorphus has joined #angularjs
[04:48:49] <CanyonMan> Lewix: so when I get back this object from my API: { crap1: "crap2" }
[04:48:57] <Lewix> Grokling_: thanks - good catch but it doesnt seem to be the issue
[04:49:09] <CanyonMan> how do I make it so that I can do normal stringy stuff like: crap1.search("ap") and have it return 2
[04:49:48] <Lewix> CanyonMan: how does your service or wherever you use $resource look like?
[04:49:52] <fotoflo> Grokling_: any way to track down why its not injecting my template?
[04:50:13] *** hunley has quit IRC
[04:50:14] *** webster has quit IRC
[04:50:38] <CanyonMan> Yep it's a service. My service actually returns a promise like you said, so I do like this
[04:50:41] <jaawerth> ProLoser: ah that's right, i was able to push and pop the object but the length wouldn't adjust if I just assigned stuff to it as normal
[04:50:44] *** renlo has quit IRC
[04:50:45] *** __danimal__ has quit IRC
[04:51:02] <CanyonMan> myService.getSomething(params).then( function(item) { do something with the item } ):
[04:51:06] <Grokling_> fotoflo: sure - temporarily hard code the templates, console.log()'s in the controllers, and see what comes out the other end.
[04:51:07] *** macabre has joined #angularjs
[04:51:12] <CanyonMan> so inside that it's using $resource
[04:51:43] <CanyonMan> is the problem not with the resource but with the fact that 'item' is being passed in as a result of a promise i.e. a then() ?
[04:51:47] *** jdcasey has quit IRC
[04:51:47] <Lewix> Grokling_: yup it was another naming issue- thanks
[04:52:10] *** g33k5z has joined #angularjs
[04:52:43] <Lewix> CanyonMan: what do you get when you do console.log(item);
[04:52:46] *** webster has joined #angularjs
[04:52:56] <Lewix> CanyonMan: yes
[04:52:59] <Lewix> that's the problem
[04:53:08] <CanyonMan> okay I never knew this about then ( x )
[04:53:36] <Lewix> I actually need to review on that myself - hold on
[04:54:05] *** D9 has joined #angularjs
[04:54:41] <fotoflo> Grokling_: does this look right?
[04:54:47] <fotoflo> at least for the first one?
[04:55:49] *** jeffisabelle has joined #angularjs
[04:56:14] *** AngularUI has joined #angularjs
[04:56:14]
<AngularUI> [ng-grid] PaulL1 closed pull request #2373: Fix #2161 #2120 (cellClass): watch that notices changed cell, update cel... (master...2161_cell_class) http://git.io/YpR1pg
[04:56:14] *** AngularUI has left #angularjs
[04:56:19] *** elrabin has joined #angularjs
[04:56:48] *** hungdp has joined #angularjs
[04:56:49] *** g33k5z has quit IRC
[04:56:56] <prbc> Grokling_: do u have any idea?
[04:57:00] *** AngularUI has joined #angularjs
[04:57:01]
<AngularUI> [ng-grid] PaulL1 opened pull request #2374: Fix #2161 #2120 (cellClass): watch that notices changed cell, update cel... (master...2161_cell_class) http://git.io/NWlLdA
[04:57:01] *** AngularUI has left #angularjs
[04:57:09] <Lewix> CanyonMan: you might need a second argument: myService.getSomething(params).then( function success(data, status,header) { do something with the item } , function error(data, status,header) {} )
[04:57:12] *** ron1 has joined #angularjs
[04:57:54] <CanyonMan> Would that somehow let me get the real object?
[04:57:59] <hungdp> why angular-seo doesn't render the ui-view content :(
[04:58:40] <Grokling_> fotoflo: I don't think you need the url on your first state.
[04:58:55] *** zoite_ has joined #angularjs
[04:59:07] *** dllama has left #angularjs
[04:59:24] *** davek_ has quit IRC
[04:59:38] <fotoflo> Grokling_: didnt work either way
[04:59:42] *** rtpg has quit IRC
[04:59:55] <Grokling_> prbc: Nope. Haven't dug into that directive - I wondered initially if you might be basing your roles on a primitive, or destroying the reference somehow. I can't tell though.
[04:59:59] *** rtpg has joined #angularjs
[05:00:16] *** frkout_ has quit IRC
[05:00:42] *** frkout has joined #angularjs
[05:01:36] *** zoite has quit IRC
[05:01:39] *** lahwran has quit IRC
[05:01:43] *** gunn has quit IRC
[05:01:45] *** lemur has quit IRC
[05:01:53] *** Limix has joined #angularjs
[05:02:27] *** lemur has joined #angularjs
[05:02:51] <jaydubya_> anyone use ng-grid?
[05:03:03] <CanyonMan> Sure, LOTS of people use ng-grid!
[05:03:05] *** bkuberek_ has quit IRC
[05:03:30] *** TommyO has joined #angularjs
[05:03:55] <jaydubya_> is there a way to hide the column automatically when it is dragged to the grouping header. It doesn't make sense to remain in the table if it is used for grouping.'
[05:04:21] <CanyonMan> there's an ng-grid and an angular-grid project in bower, which one are you supposed to use nowadays?
[05:04:33] *** gunn has joined #angularjs
[05:04:34] *** kp666 has joined #angularjs
[05:05:30] <jaydubya_> ui-grid is the "new" ng-grid but it is not stable and still beta. Also, the grouping feature has been removed ... I, for one, am sticking with ng-grid
[05:05:55] *** recurrence has joined #angularjs
[05:05:56] <Lewix> CanyonMan: well sometimes being explicit help me debug better...what do you get when you do console.log(item);
[05:06:07] <CanyonMan> one sec
[05:06:27] *** Superhard has joined #angularjs
[05:06:32] <CanyonMan> sure, one second, i'll get it for you
[05:06:38] <Lewix> doesn't work for all of us^^ but i like to write each argument, and what's not
[05:06:39] <fotoflo> Grokling_: looks like i did everything right….. I have a <div ui-view></div> and a state for ’’
[05:07:03] <fotoflo> and im not getting any errors
[05:07:04] <ProLoser> Hi
[05:07:05] *** lemur has quit IRC
[05:07:33] *** Iravan_ has quit IRC
[05:07:49] <ProLoser> fotoflo: I have no idea what you guys are talking about
[05:07:51] *** mven has joined #angularjs
[05:07:56] *** tfennelly has joined #angularjs
[05:09:01] <ProLoser> But 5$ says you forgot to add a template to a parent state
[05:09:01] <ProLoser> Or you should subscribe to $stateChangeSuccess
[05:09:18] <fotoflo> ProLoser: how do you do that?
[05:09:29] *** Sawbones has joined #angularjs
[05:09:52] <fotoflo> im talking about the root state right now
[05:10:01] *** gauravsaini03 has joined #angularjs
[05:10:32] <ProLoser> $scope.$on
[05:10:40] <fotoflo> ProLoser: ?
[05:10:40] *** tskaggs has joined #angularjs
[05:11:07] *** Iravan has joined #angularjs
[05:11:10] *** DanSkaggs has quit IRC
[05:11:25] <CanyonMan> line 23 of what, app.js ?
[05:11:28] *** Superhard has quit IRC
[05:11:44] *** tskaggs has quit IRC
[05:11:52] *** mikerrrrrr has quit IRC
[05:11:59] *** Raging_Hog has joined #angularjs
[05:12:02] *** JeffBuhrt has quit IRC
[05:12:23] <Lewix> yup
[05:12:28] *** JeffBuhrt has joined #angularjs
[05:12:45] <Lewix> CanyonMan: did you console.log(stringify(item)); ?
[05:12:46] *** morenoh149 has joined #angularjs
[05:12:58] <CanyonMan> I didn't specifically stringify it but i can
[05:13:04] <CanyonMan> i use angular's $log service though
[05:13:09] <CanyonMan> but same thing
[05:13:22] *** tfennelly has quit IRC
[05:13:22] <Lewix> oh sweet
[05:13:28] <Lewix> it stringify for you?
[05:13:43] *** candy____ has joined #angularjs
[05:13:55] <Lewix> yea line 23 and 42, im not sure why the two way data binding is not working
[05:13:57] *** bzitzow has joined #angularjs
[05:13:57] <candy____> yo any online
[05:13:58] <CanyonMan> well I mean I do: $log.info( someObject ) and it does it just like console.log does ... it comes out in the js debugger as a collapse
[05:14:15] <Lewix> CanyonMan: so thats normal
[05:14:22] *** Sawbones has quit IRC
[05:14:49] <Lewix> try $log.info(stringify(someObject)) if you want it in json
[05:15:13] *** nemothekid has quit IRC
[05:15:19] *** sheplu has joined #angularjs
[05:15:20] <Lewix> JSON.stringify()*
[05:15:33] <prbc> I have a directive that conditionally display html content depending user role. Is there a way that I can check all directive elements again?
[05:15:37] <Lewix> Grokling_: can you take another look
[05:15:58] <fotoflo> ProLoser: sorry, i dont get your meaning
[05:15:59] *** frkout_ has joined #angularjs
[05:16:05] <CanyonMan> lewix that looks exactly the same
[05:16:16] <CanyonMan> either way all of a sudden my object isn't jus ta plain old object any more
[05:16:21] <CanyonMan> it has a __proto__ element
[05:16:25] <CanyonMan> with tons of stuff in it
[05:16:30] <candy____> I am setting my locale using dropdown, any suggestions?
[05:16:45] <CanyonMan> stuff like: hasOwnProperty a constructor set() get() etc
[05:17:00] *** sk87 has joined #angularjs
[05:17:12] <CanyonMan> one second though
[05:17:13] *** webbananaboy has joined #angularjs
[05:17:51] *** instence has joined #angularjs
[05:18:04] <CanyonMan> so yep it's definitely the promise that's doing this. When I look at the object right after it's gotten from the $resource it looks like a totally normal object.
[05:18:44] *** evotuned has joined #angularjs
[05:18:49] <fotoflo> ProLoser: haha! you were right
[05:18:51] *** frkout has quit IRC
[05:19:21] *** instence_ has quit IRC
[05:19:44] *** frkout_ has quit IRC
[05:20:08] <Grokling_> Lewix: !primitives
[05:20:08] <UniBot> Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes.
[05:20:10] *** frkout has joined #angularjs
[05:20:47] *** bmac has quit IRC
[05:20:53] *** ivanskie has joined #angularjs
[05:20:54] <Grokling_> Hey - Johnny 2 bots... nice job!
[05:21:39] *** webbananaboy has quit IRC
[05:21:54] *** ciwolsey has quit IRC
[05:21:55] <Grokling_> ProLoser: How'd you kill off the second bot in the end?
[05:22:37] <Lewix> error msgs
[05:22:42] *** iamaregee2 has joined #angularjs
[05:23:08] *** scythe__ has joined #angularjs
[05:23:22] *** hungdp has quit IRC
[05:23:49] *** evotuned has quit IRC
[05:24:06] *** mdedetrich has quit IRC
[05:24:24] *** mdedetrich has joined #angularjs
[05:24:36] *** gunn has quit IRC
[05:25:10] *** MistahKurtz has quit IRC
[05:25:14] *** kotyy has quit IRC
[05:25:53] <Grokling_> Lewix: your controller isn't loading either.. that won't be helping things much.
[05:26:10] *** mdedetrich has quit IRC
[05:26:16] *** macabre has quit IRC
[05:26:45] <Lewix> Grokling_: that sucks - you can only use ng-init if a controller is present?
[05:26:52] *** mdedetrich has joined #angularjs
[05:27:05] *** gunn has joined #angularjs
[05:27:05] *** dcherman2 has quit IRC
[05:28:06] <Grokling_> Lewix, hit F12. Fix that error first. Then fix your primitives (index.html line 23). Then you'll start to see the actual problem if there still is one!
[05:28:40] *** bzitzow has quit IRC
[05:29:00] *** Iravan has quit IRC
[05:29:11] *** Iravan has joined #angularjs
[05:29:12] <Lewix> Grokling_: i fixed 23 the primitives as on my last post
[05:29:16] *** Iravan has quit IRC
[05:29:24] <Lewix> Grokling_: and i use mac, is F12 the console?
[05:29:24] *** platonic has quit IRC
[05:29:40] <Grokling_> F12 is dev tools in Chrome.
[05:29:53] *** Iravan has joined #angularjs
[05:29:59] <Grokling_> Yes, console (in dev tools)
[05:30:04] *** mven has quit IRC
[05:30:04] *** davek_ has joined #angularjs
[05:30:10] *** Iravan has quit IRC
[05:30:15] *** davek_ has quit IRC
[05:30:15] *** davek_ has joined #angularjs
[05:30:24] *** AngularUI has joined #angularjs
[05:30:24]
<AngularUI> [ng-grid] PaulL1 opened pull request #2375: 2221 scroll to focus (master...2221_scrollToFocus) http://git.io/3pV-7w
[05:30:24] *** AngularUI has left #angularjs
[05:30:32] *** woah has quit IRC
[05:30:47] <Lewix> Grokling_: oh crap, blame it on plnkr
[05:30:50] *** bmac has joined #angularjs
[05:31:04] <Lewix> Grokling_: the autogenerated angular line made me miss their MyCtrl
[05:31:11] <Lewix> that was added
[05:31:16] *** AngularUI has joined #angularjs
[05:31:16]
<AngularUI> [ng-grid] PaulL1 closed pull request #2375: 2221 scroll to focus (master...2221_scrollToFocus) http://git.io/3pV-7w
[05:31:16] *** AngularUI has left #angularjs
[05:31:21] <Lewix> Grokling_: thanks
[05:31:43] *** kotyy has joined #angularjs
[05:31:46] <Grokling_> primitives next..
[05:32:10] <Lewix> i certainly dont need ng-init
[05:32:16] *** woah has joined #angularjs
[05:32:19] <Lewix> Grokling_: primitives has been fix, hasnt it
[05:32:32] *** AngularUI has joined #angularjs
[05:32:32]
<AngularUI> [ng-grid] PaulL1 opened pull request #2376: Fix #2221 (cellNav): Add scrollToFocus method (master...2221_scrollToFocus) http://git.io/0E4q6w
[05:32:32] *** AngularUI has left #angularjs
[05:32:46] *** bmac has quit IRC
[05:32:50] *** bmac_ has joined #angularjs
[05:33:05] *** JesseH has quit IRC
[05:33:15] *** SoulBlade has joined #angularjs
[05:33:26] <Grokling_> Lewix: Nope: <h1 ng-show="!booleanSpinner">Hello</h1>
[05:33:35] *** Iravan has joined #angularjs
[05:33:38] <Lewix> Grokling_: crap old version
[05:34:06] *** JBreit has joined #angularjs
[05:34:11] <Grokling_> saved about a minute ago - so it can't be that old ;-)
[05:34:40] <Lewix> Grokling_: it is..i changed it like 5-10minutes ago
[05:34:44] <grizzm0> :o
[05:34:46] <Lewix> when you mentioned it
[05:34:49] *** ron1 has quit IRC
[05:35:07] <Lewix> i think i had to freeze
[05:35:10] <Lewix> before sharing
[05:35:44] *** platonic has joined #angularjs
[05:35:54] <Lewix> now you see what i meant by ng-init =) , Grokling_
[05:36:18] <Grokling_> Is it just me, or do you also see:"Error: [ng:areq] Argument 'MainCtrl' is not a function, got undefined"?
[05:36:25] *** gunn has quit IRC
[05:36:52] <Lewix> oh my god
[05:36:57] <Lewix> im gonna stop using plnkr
[05:37:00] <Lewix> sharing it is hell
[05:37:01] *** candy____ has quit IRC
[05:37:10] <Lewix> Grokling_: i don't see it, i fixed it when you brought it up
[05:37:27] <Grokling_> collaboration mode is the way to go.
[05:37:36] *** earthquake has quit IRC
[05:38:01] *** GreenJello has quit IRC
[05:38:14] <Lewix> Grokling_: how?
[05:38:18] *** GreenJello has joined #angularjs
[05:38:26] *** seriema has joined #angularjs
[05:38:31] *** Iravan has quit IRC
[05:38:38] *** EoN has joined #angularjs
[05:38:47] <Grokling_> Lewix: Second to bottom icon, right hand toolbar. Two arrows in a square.
[05:39:13] *** night-owl is now known as zz_night-owl
[05:39:28] <Lewix> Grokling_: awesome!
[05:39:30] *** numenor has joined #angularjs
[05:39:35] <Lewix> im sticking to plnkr =)
[05:39:48] *** gunn has joined #angularjs
[05:40:02] <CanyonMan> <3 plnkr
[05:40:44] *** dsdeiz has joined #angularjs
[05:40:46] <Grokling_> Lewix: Hah. That error is still there..
[05:41:04] <Grokling_> Guess you didn't fix it as well as you thought ;-)
[05:41:50] *** rho has joined #angularjs
[05:42:13] *** boneskul_ has joined #angularjs
[05:42:15] *** farski has joined #angularjs
[05:42:16] <Lewix> Grokling_: cannot set property val of undefined?
[05:42:43] <Lewix> thats a bad news, i still had an error :/
[05:42:44] *** seriema has quit IRC
[05:42:44] *** boneskull has quit IRC
[05:42:54] *** neilff has quit IRC
[05:44:20] *** farski has quit IRC
[05:44:31] *** farski has joined #angularjs
[05:44:44] *** afuggini has quit IRC
[05:45:18] *** afuggini has joined #angularjs
[05:46:01] <numenor> hello , I have implemented an httpInterceptor for the outgoing requests which adds a header on conditional basis, Now I want to cancel out the call if the condition fails, can anyoune please give me an idea on how to do it?
[05:47:11] *** Cronoh has joined #angularjs
[05:47:40] *** farski has quit IRC
[05:47:41] *** windsurf_ has joined #angularjs
[05:48:12] *** bbankes has quit IRC
[05:48:31] *** sk87 has quit IRC
[05:48:32] <windsurf_> for my $resource I’ve been using the default path convention like foo/bar/:foo_id rather than something like foo/bar.php?foo_id=n
[05:48:50] <numenor> Grokling_ , can you please ?
[05:49:01] *** Shai-Tan has quit IRC
[05:49:13] *** akar has joined #angularjs
[05:49:13] <windsurf_> can I configure resource to use the latter if need be? I need to interface with a new 3rd party service soon and it might be like the ? & one
[05:49:26] *** asher^ has joined #angularjs
[05:49:30] *** williamtdr has quit IRC
[05:49:32] <windsurf_> i just need to know if I can for now, not how to
[05:49:33] *** ko3t has joined #angularjs
[05:49:37] *** sk87 has joined #angularjs
[05:50:16] *** elrabin has quit IRC
[05:50:31] *** ron_frown has quit IRC
[05:50:42] *** ron_frown has joined #angularjs
[05:50:42] *** elrabin has joined #angularjs
[05:50:47] *** AngularUI has joined #angularjs
[05:50:48] <AngularUI> ng-grid/master 1194558 Paul Lambert: Fix #2221 (cellNav): Add scrollToFocus method
[05:50:48] <AngularUI> ng-grid/master f113977 Paul: Merge pull request #2376 from PaulL1/2221_scrollToFocus...
[05:50:48] *** AngularUI has left #angularjs
[05:51:51] *** sinclair_ has joined #angularjs
[05:52:28] *** Shai-Tan has joined #angularjs
[05:52:32] <Lewix> Grokling_: apperently i have no idea what's wrong - i thought it was working fine with ng-init
[05:52:46] <Lewix> or what im doing rather ^^
[05:52:59] *** g33k5z_ has joined #angularjs
[05:53:05] *** sinclair has quit IRC
[05:53:11] *** reynierpm1 has joined #angularjs
[05:53:11] *** sinclair_ is now known as sinclair
[05:53:15] <Grokling_> ng-init is evil. That's what I learned last week.
[05:53:21] *** reynierpm1 has left #angularjs
[05:53:51] *** wdgreg has quit IRC
[05:54:08] *** bzitzow has joined #angularjs
[05:54:14] *** artee_ has quit IRC
[05:54:15] *** TrafficMan has quit IRC
[05:54:25] <Grokling_> Better go and feed my small monsters. Happy hacking.
[05:54:33] <davek_> I learned like the best freaking express application structure ever.
[05:54:37] *** lucasjones has quit IRC
[05:54:54] *** elrabin has quit IRC
[05:55:09] *** advy has joined #angularjs
[05:55:09] *** artee_ has joined #angularjs
[05:55:46] *** fizbani_ has quit IRC
[05:55:53] *** fizbani has joined #angularjs
[05:56:30] *** JesseH has joined #angularjs
[05:56:32] *** scorphus has quit IRC
[05:56:33] *** hendricius has quit IRC
[05:56:45] *** kroogs has joined #angularjs
[05:56:48] *** burzum2 has joined #angularjs
[05:57:00] *** hendricius has joined #angularjs
[05:57:22] *** oniijin has quit IRC
[05:57:29] *** TrafficMan has joined #angularjs
[05:57:30] *** wdgreg has joined #angularjs
[05:57:31] *** bmac_ has quit IRC
[05:57:34] *** g33k5z_ has quit IRC
[05:57:41] *** atomical has quit IRC
[05:57:56] *** burzum has quit IRC
[05:58:38] *** jonn has joined #angularjs
[05:58:50] *** jeffisabelle has quit IRC
[05:58:55] *** lucasjones has joined #angularjs
[05:59:16] <Lewix> Grokling_: how would you do it without controller
[05:59:38] <jonn> Anybody using pace.js with angularjs ? I need to know how to integrate the loader for partials.
[06:00:45] *** edzez__ has quit IRC
[06:00:45] *** d0nk` has quit IRC
[06:00:54] *** Sadin has quit IRC
[06:00:59] *** pknordic_ has joined #angularjs
[06:01:01] *** bc_ has quit IRC
[06:01:02] *** d0nk` has joined #angularjs
[06:01:04] *** kapil__ has joined #angularjs
[06:01:12] *** edzez__ has joined #angularjs
[06:01:37] *** JR___ has joined #angularjs
[06:01:57] *** kroogs has quit IRC
[06:02:38] *** D9 has quit IRC
[06:02:51] <Lewix> ahhhhhhhhhhhhhhhhhhhhhhh
[06:02:55] *** jeffisabelle has joined #angularjs
[06:03:07] <Lewix> my head is gonna explode, and im sure the answer is something ridiculous
[06:03:09] <Lewix> as always
[06:03:11] *** tfennelly has joined #angularjs
[06:03:19] *** conan_the_destro has quit IRC
[06:03:39] *** bc_ has joined #angularjs
[06:03:50] *** Sawbones has joined #angularjs
[06:04:06] *** cthrax has joined #angularjs
[06:04:08] *** atomical has joined #angularjs
[06:04:13] *** nya has joined #angularjs
[06:05:16] *** Una has quit IRC
[06:05:28] *** pknordic_ has quit IRC
[06:05:39] *** scythe__ has quit IRC
[06:06:30] *** Zariel has quit IRC
[06:06:32] *** recurrence has quit IRC
[06:06:34] *** Raging_Hog has quit IRC
[06:08:12] *** afuggini has quit IRC
[06:08:13] *** tfennelly has quit IRC
[06:08:22] *** Zariel has joined #angularjs
[06:08:45] *** Sawbones has quit IRC
[06:09:14] *** afuggini has joined #angularjs
[06:10:04] *** atomical has quit IRC
[06:11:04] *** aurumzx has quit IRC
[06:11:22] *** atomical has joined #angularjs
[06:11:28] *** Sadin has joined #angularjs
[06:11:43] *** TommyO has quit IRC
[06:12:43] <Lewix> Grokling_: did you actually know the issue?
[06:12:50] *** steeze has joined #angularjs
[06:13:44] *** afuggini has quit IRC
[06:13:58] *** bayousoft has quit IRC
[06:14:53] *** sugoi has joined #angularjs
[06:14:57] *** zwischenzug3 has joined #angularjs
[06:15:16] *** mzabriskie has joined #angularjs
[06:15:32] *** sugoi is now known as Guest20873
[06:15:35] *** tilgovi has joined #angularjs
[06:16:09] <Guest20873> I am looking for a developer for next year building a social platform , just need the backend done , anyone interested
[06:17:13] *** dsdeiz has quit IRC
[06:17:28] *** hawa has joined #angularjs
[06:17:55] <caitp> a social platform
[06:18:06] <Guest20873> that is correct
[06:18:27] *** zz_night-owl is now known as night-owl
[06:18:45] <SexualRickshaw> A social platform
[06:18:54] *** zwischenzug2 has quit IRC
[06:19:06] <Guest20873> where user's can make post's , review's, earn points
[06:19:28] *** evotuned has joined #angularjs
[06:19:42] <Guest20873> it's nothing like facebook or twitter in term's of work let's call it a lite social platform
[06:20:36] *** Iravan has joined #angularjs
[06:20:45] *** bisch1 has left #angularjs
[06:20:52] *** tyfighter has joined #angularjs
[06:21:02] <SexualRickshaw> So Reddit
[06:21:06] *** SergioFilhow_ has joined #angularjs
[06:21:14] *** sk87 has quit IRC
[06:22:40] <Guest20873> not really
[06:23:54] *** Hestil has joined #angularjs
[06:24:07] *** BobbieBarker_ has joined #angularjs
[06:24:18] *** evotuned has quit IRC
[06:24:28] <BobbieBarker_> brothers
[06:24:40] <BobbieBarker_> I need a protip on my CSS with angular-material
[06:24:53] <BobbieBarker_> i'm noticing any time i throw a sidebar or a toaster that it triggers my x/y axis scroll bars
[06:25:02] <BobbieBarker_> i need this janky shit to stop
[06:25:18] *** jaydubya_ has quit IRC
[06:25:42] *** Iravan has quit IRC
[06:25:52] *** jaydubya has joined #angularjs
[06:25:52] *** evotuned has joined #angularjs
[06:25:58] *** Iravan has joined #angularjs
[06:26:11] *** SergioFilhow_ has quit IRC
[06:26:23] *** SargoDarya has joined #angularjs
[06:26:24] *** Iravan has quit IRC
[06:26:49] *** Iravan has joined #angularjs
[06:27:36] *** Iravan has quit IRC
[06:27:54] *** Iravan has joined #angularjs
[06:27:58] *** rikko has quit IRC
[06:28:05] *** JBreit has quit IRC
[06:28:21] *** Iravan has quit IRC
[06:28:36] *** m0n4m33 has joined #angularjs
[06:28:45] *** Iravan has joined #angularjs
[06:29:07] *** morenoh149 has quit IRC
[06:29:12] *** glitch-hat has joined #angularjs
[06:29:48] *** windsurf_ has quit IRC
[06:30:04] *** jaydubya has quit IRC
[06:30:17] *** Iravan has quit IRC
[06:30:37] *** phoenixw has joined #angularjs
[06:30:42] *** SargoDarya has quit IRC
[06:30:42] *** Iravan has joined #angularjs
[06:31:00] *** m0n4m33 has quit IRC
[06:31:54] *** jMyles has joined #angularjs
[06:32:29] *** ron_frown has quit IRC
[06:32:44] *** {DV8} has quit IRC
[06:32:50] *** Iravan has quit IRC
[06:33:18] *** Guest20873 has quit IRC
[06:33:58] *** Iravan has joined #angularjs
[06:34:02] *** glitch-hat has quit IRC
[06:34:28] *** Iravan has joined #angularjs
[06:34:55] *** phoenixw has quit IRC
[06:35:05] *** Lewix has quit IRC
[06:35:18] *** Iravan has quit IRC
[06:35:19] *** Hestil has quit IRC
[06:35:32] *** Iravan has joined #angularjs
[06:35:46] <hawa> is it better to do a webcall from controller or decouple it to services???
[06:35:55] *** Iravan has quit IRC
[06:36:06] *** Iravan has joined #angularjs
[06:36:27] *** prbc has quit IRC
[06:36:50] *** Iravan has quit IRC
[06:37:16] *** Shrooms has quit IRC
[06:37:26] *** Iravan has joined #angularjs
[06:38:47] <fotoflo> in ui router — : Could not resolve '/channels/061ddc79-886c-48b8-b2b0-880eda8279d6' from state '/'
[06:39:06] <fotoflo> does that mean it doesnt know where to go?
[06:39:23] *** afuggini has joined #angularjs
[06:39:55] *** thomasreggi has joined #angularjs
[06:39:59] *** Iravan has quit IRC
[06:41:11] *** Iravan has joined #angularjs
[06:43:35] *** morenoh149 has joined #angularjs
[06:43:56] *** Iravan has quit IRC
[06:44:48] *** Lewix has joined #angularjs
[06:44:53] *** mzabriskie has quit IRC
[06:45:14] *** Lewix has quit IRC
[06:45:20] *** johnkevinmbasco has quit IRC
[06:45:21] *** Iravan has joined #angularjs
[06:45:34] *** mzabriskie has joined #angularjs
[06:45:41] *** Iravan has joined #angularjs
[06:45:59] *** Iravan has joined #angularjs
[06:46:14] *** dcherman has joined #angularjs
[06:46:25] *** Iravan has quit IRC
[06:46:35] *** Iravan has joined #angularjs
[06:47:02] *** afuggini has quit IRC
[06:47:06] *** d4rklit3 has quit IRC
[06:47:38] *** renlo has joined #angularjs
[06:47:44] *** EoN has quit IRC
[06:48:30] *** Iravan has quit IRC
[06:48:36] *** dcherman2 has joined #angularjs
[06:48:41] *** Iravan has joined #angularjs
[06:49:25] *** Sawbones has joined #angularjs
[06:49:50] *** rhp has joined #angularjs
[06:52:01] *** dcherman has quit IRC
[06:53:08] *** NormySan has joined #angularjs
[06:53:09] *** platonic has quit IRC
[06:53:42] *** VeeWee has joined #angularjs
[06:54:00] *** knownasilya has quit IRC
[06:54:29] *** night-owl is now known as zz_night-owl
[06:55:00] *** D9 has joined #angularjs
[06:55:09] *** Lewix has joined #angularjs
[06:55:11] *** Superhard has joined #angularjs
[06:55:13] *** Lewix has quit IRC
[06:55:13] *** Lewix has joined #angularjs
[06:55:24] *** Iravan has joined #angularjs
[06:55:28] *** mdedetri_ has joined #angularjs
[06:56:49] *** mdedetrich has quit IRC
[06:57:00] *** Iravan has joined #angularjs
[06:57:06] *** aurumzx has joined #angularjs
[06:57:35] *** Iravan has joined #angularjs
[06:57:55] *** doginal has joined #angularjs
[06:58:17] *** Iravan has quit IRC
[06:58:21] *** mdedetri_ has quit IRC
[06:58:42] *** Iravan has joined #angularjs
[06:58:59] *** bzitzow has quit IRC
[06:59:11] *** Hounddog has joined #angularjs
[06:59:11] *** ivan_ has joined #angularjs
[06:59:24] *** Superhard has quit IRC
[06:59:26] *** platonic has joined #angularjs
[06:59:31] *** ivan_ has left #angularjs
[06:59:33] *** Iravan has quit IRC
[06:59:49] *** Iravan has joined #angularjs
[06:59:50] *** recurrence has joined #angularjs
[07:00:23] *** kagitingan has joined #angularjs
[07:00:26] *** Iravan has quit IRC
[07:00:38] *** Iravan has joined #angularjs
[07:01:29] *** Lewix has quit IRC
[07:01:41] *** ron_frown has joined #angularjs
[07:02:20] *** zz_night-owl is now known as night-owl
[07:02:31] *** renlo has quit IRC
[07:02:44] *** jhon has joined #angularjs
[07:02:46] *** Aliks has quit IRC
[07:03:19] <jhon> hey guys i need ur help plz ..my question is i want to dump or view the uploaded file data on html
[07:03:23] *** Aliks has joined #angularjs
[07:03:31] <jhon> whaterver ill be data
[07:03:45] *** Aliks has joined #angularjs
[07:03:55] <iShortBus> fotoflo: It's been a little since i've used ui-router. But, I did run into a similar issue. There is a lazy load feature for states that should fix this issue.
[07:04:30] <fotoflo> now im having crazy problems with bower
[07:04:32] <fotoflo> uggh
[07:04:39] *** wmbutler has joined #angularjs
[07:04:41] <Hounddog> $elem.on("click", flipClick); i am using this inside a directive to call a function. However when moving the mouse i actually want to prevent the click functionality. I have a drag event also on the same element
[07:04:45] <Hounddog> hmmm got an idea
[07:05:23] <iShortBus> fotoflo: trying clearing the bower cache.
[07:05:23] *** hellobro has joined #angularjs
[07:05:28] <iShortBus> bower cache clean
[07:05:39] *** hellobro has quit IRC
[07:05:51] *** MistahKurtz has joined #angularjs
[07:05:53] *** Iravan has quit IRC
[07:06:00] *** renlo has joined #angularjs
[07:06:33] <fotoflo> no it seems angular-ui-bootstrap was not injected in your file.
[07:06:54] *** hawa has quit IRC
[07:07:21] *** ggrzybek has joined #angularjs
[07:08:16] *** D9 has quit IRC
[07:08:23] *** thomasreggi has quit IRC
[07:09:08] *** TeddyMurray has joined #angularjs
[07:09:31] <fotoflo> somehow my bower.json got jumbled
[07:09:38] *** jak124124 has joined #angularjs
[07:10:18] <Hounddog> Hmm ok, have no clue...
[07:10:18] *** Limix has quit IRC
[07:10:32] *** hawa has joined #angularjs
[07:10:34] *** jieryn_ has quit IRC
[07:10:35] *** jhon has quit IRC
[07:10:50] <Hounddog> $elem.on("click", flipClick); how could i prevent this function beeing execute when the mouse is beeing moved?
[07:10:53] <fotoflo> and when i install packages they’re not getting persisted to my bower.json
[07:11:37] *** ali has joined #angularjs
[07:11:38] *** zoite_ has quit IRC
[07:12:01] *** ali is now known as Guest69000
[07:12:06] *** zoite_ has joined #angularjs
[07:12:16] *** jieryn has joined #angularjs
[07:12:17] *** jieryn has joined #angularjs
[07:12:30] *** Guest69000 is now known as alinou
[07:12:53] *** wmbutler has quit IRC
[07:12:54] *** tilgovi has quit IRC
[07:13:34] *** platonic has quit IRC
[07:13:40] *** defaultdict has quit IRC
[07:13:41] *** SoulBlade has quit IRC
[07:15:37] *** renlo has quit IRC
[07:17:49] *** chrisshattuck has quit IRC
[07:17:54] *** doginal has quit IRC
[07:18:11] *** fotoflo has quit IRC
[07:18:17] *** Sawbones has quit IRC
[07:20:07] *** iksik has joined #angularjs
[07:20:18] *** platonic has joined #angularjs
[07:20:20] *** tilgovi has joined #angularjs
[07:21:41] <steeze> when using $routeProvider, that passes the $scope of whatever controller is defined on the route, right? for some reason, I can't get it to work
[07:22:03] *** Raging_Hog has joined #angularjs
[07:22:42] *** cthrax has quit IRC
[07:23:40] *** bzitzow has joined #angularjs
[07:23:49] *** Alina-malina has quit IRC
[07:24:47] *** NormySan has quit IRC
[07:25:35] *** gunn has quit IRC
[07:25:45] *** Aliks has quit IRC
[07:26:11] *** t0rrieri has quit IRC
[07:26:19] *** gunn has joined #angularjs
[07:26:37] *** Aliks has joined #angularjs
[07:26:43] *** gunn has joined #angularjs
[07:28:11] *** tga0 has joined #angularjs
[07:28:14] *** herbyme has quit IRC
[07:28:59] *** dc_ has quit IRC
[07:30:57] *** Aliks has quit IRC
[07:32:15] <steeze> Whenever I add the controller to my module, it screws everything up. I'm so lost though because I have other controllers in the module and they're written the same way and they work fine.
[07:32:43] <iShortBus> Are you getting any errors?
[07:32:45] *** alpha080 has quit IRC
[07:32:51] *** brodul has quit IRC
[07:32:58] *** tga0 has quit IRC
[07:34:12] *** brodul has joined #angularjs
[07:35:22] <steeze> sometihng about my controller not being a function?
[07:35:39] <steeze> but like i said, it's the exact same as my other controllers, just changed name and changed one $scope.variable
[07:36:13] <steeze> i'm working on a gist right now
[07:36:14] *** dshap has quit IRC
[07:36:44] *** Aerospark has quit IRC
[07:37:14] *** xiaolin has joined #angularjs
[07:37:29] <steeze> iShortBus,
[07:38:55] *** jak124124 has quit IRC
[07:39:23] <steeze> it's just really weird how 2 controllers work, but i include a third one, and nothing seems to be working
[07:40:32] *** bzitzow has quit IRC
[07:40:46] *** jak124124 has joined #angularjs
[07:41:41] *** g33k5z has joined #angularjs
[07:43:21] <Hounddog> Ok, i dont understand how to make 2 directives communicate with each other :/
[07:43:47] <iShortBus> Hounddog: service
[07:43:50] <Hounddog> I have given the parent directive a controller
[07:43:57] <numenor> steeze , check for a missing ","
[07:44:11] *** herbyme has joined #angularjs
[07:44:15] <numenor> steeze , check for a missing "," between the DI and the start of function
[07:44:22] <numenor> in the controller
[07:44:31] <Hounddog> iShortBus: should a controller not also work? as the examples seem to state this.
[07:44:32] *** MattWelch has quit IRC
[07:45:43] <steeze> numenor, there's no missing comma
[07:46:01] *** g33k5z has quit IRC
[07:46:16] <numenor> Well, I get the same error when I miss one.
[07:46:32] <steeze> what's in the gist is c/p from my code. it's the exact same. im so confused right now haha
[07:46:34] *** Sawbones has joined #angularjs
[07:46:38] <iShortBus> steeze: that's rather strange, i'm not seeing any erros
[07:47:08] <steeze> iShortBus, i know. i'm pulling my hair out over here
[07:47:30] *** hari__ has joined #angularjs
[07:47:39] <numenor> steeze, for example : angular.module('app').controller('ctrl', ['one', 'two'// missing comma here//
[07:47:40] <numenor> function(one, two) {}
[07:47:41] <hari__> hi
[07:47:55] <steeze> numenor, did you see my gist?
[07:48:01] <numenor> Nope
[07:48:14] <numenor> Looking at it now
[07:48:28] <iShortBus> Hounddog: the best method for which to communicate between two controllers is a service. If you have a controller for each directive, and you want to grab something that chages. Set it in a service, then you can consume the service and modify the item to your liking or view it in both places
[07:49:12] <Hounddog> iShortBus: its not 2 controllers, its a parent and subdirective. My problem with using a service is, i have n elements using the directive
[07:49:21] *** asher^ has quit IRC
[07:49:27] <steeze> everything works fine as long as 'LobbyCtrl' is not in the module container, but if i add it, none of the controllers work
[07:49:36] <numenor> steeze, So you must have DI the "LobbyCtrl" module in your main app module ,
[07:49:41] *** pknordic_ has joined #angularjs
[07:49:56] <steeze> numenor, right. when i add it, none of the controllers work
[07:50:00] <numenor> ok
[07:50:24] *** plekplek has joined #angularjs
[07:50:52] *** Sawbones has quit IRC
[07:51:09] <Hounddog> iShortBus: so if i have like 10 parent and subdirectives but i only want to modify the actuall parent directive i have to somehow also keep track which parent corresponds to which child
[07:51:19] *** Alina-malina has joined #angularjs
[07:51:20] *** Alina-malina has joined #angularjs
[07:51:41] *** woah has quit IRC
[07:51:46] <Hounddog> I this case i just want to actually call a functionality and see if the item is currently beeing dragged
[07:51:46] <numenor> Ok
[07:53:18] *** oste has quit IRC
[07:53:39] *** Aerospark has joined #angularjs
[07:54:13] *** pknordic_ has quit IRC
[07:55:02] <iShortBus> Hounddog: have you tired using an emit?
[07:55:09] <numenor> steeze, I think I cant find LobbyCtrl.js in your index
[07:55:17] *** tfennelly has joined #angularjs
[07:55:21] <steeze> numenor, OMG
[07:55:32] <iShortBus> was that the problem?
[07:55:42] <iShortBus> that's the only other thing i could think of.
[07:55:44] <steeze> yes
[07:55:50] <steeze> ugh i feel sick. i just wasted so much time
[07:55:56] <numenor> steeze, Yep , the script isnt there
[07:55:59] <iShortBus> dude, we've all been there
[07:56:09] <steeze> thank you though. ill never miss something like that again
[07:56:17] <steeze> back on track! haha
[07:56:32] <iShortBus> stack trace is friend :)
[07:56:32] *** TyrfingMjolnir has quit IRC
[07:56:34] <Hounddog> iShortBus: actually looking at this, i am supposed to create a controller in the parent directive and then just require:"ctrl" in the child but the controller is not found
[07:56:38] <numenor> steeze, happy to help !
[07:56:45] *** Aerospark has quit IRC
[07:56:56] *** JesseH has quit IRC
[07:57:58] <jaawerth> I just wrote a neat little Object.observe polyfill - it's IE9 and up, so as polyfills go it isn't THAT effective, but I'm quite fond of it
[07:58:40] <iShortBus> Hounddog: require the parent directive
[07:58:48] <Hounddog> iShortBus: i did
[07:58:50] <iShortBus> then pass in the ctrl in your link function
[07:59:00] <Hounddog> iShortBus: look at the code i just pasted
[07:59:10] <Hounddog> i am requiring the parent directive
[07:59:31] *** Aerospark has joined #angularjs
[07:59:52] *** tfennelly has quit IRC
[08:00:19] *** herbyme has quit IRC
[08:00:43] <Hounddog> Controller 'interactDrag', required by directive 'flippy', can't be found!
[08:00:55] *** woah has joined #angularjs
[08:01:15] *** t0rrieri has joined #angularjs
[08:01:56] *** fotoflo has joined #angularjs
[08:02:28] *** rtpg has quit IRC
[08:02:38] <steeze> i guess not all that time was wasted now that i think about it, because i looked up and read about so many things angular related even though i was on the wrong path.
[08:02:53] <steeze> i have a much better understanding of controllers now haha
[08:02:58] <iShortBus> require: "^interactDrag"
[08:03:36] <iShortBus> Hounddog:
[08:04:37] *** Aerospark has quit IRC
[08:04:53] *** robdubya has joined #angularjs
[08:05:17] *** t0rrieri has quit IRC
[08:05:27] <Hounddog> iShortBus: thx, checking out what the ^ stands for actually
[08:05:46] *** rho has quit IRC
[08:06:30] <iShortBus> The ^ prefix means that this directive searches for the controller on its parents (without the ^ prefix, the directive would look for the controller on just its own element).
[08:06:44] *** herbyme has joined #angularjs
[08:06:45] <iShortBus> Hounddog:
[08:06:59] <Hounddog> ahh get it
[08:07:06] *** dcherman2 has quit IRC
[08:07:15] <Hounddog> so yeah, that was the issue then there. Thx for the help on that
[08:07:18] <iShortBus> I just learned something new myself. lol
[08:07:32] <Hounddog> lets see if i can prevent flip now when dragging
[08:07:41] *** AngularUI has joined #angularjs
[08:07:41]
<AngularUI> [bootstrap] maxisam opened pull request #3117: Update modal.js (master...patch-5) http://git.io/SzNUBw
[08:07:41] *** AngularUI has left #angularjs
[08:08:00] *** platonic has quit IRC
[08:08:06] *** JR___ has quit IRC
[08:08:57] *** renlo has joined #angularjs
[08:09:28] *** rtpg has joined #angularjs
[08:09:51] *** SergioFilhow_ has joined #angularjs
[08:10:08] *** platonic has joined #angularjs
[08:10:30] *** vectra has quit IRC
[08:11:10] *** kirfu has joined #angularjs
[08:11:20] *** kakashiAL has quit IRC
[08:11:54] *** kakashiAL has joined #angularjs
[08:11:57] *** AngularUI has joined #angularjs
[08:11:57]
<AngularUI> [bootstrap] maxisam closed pull request #3117: Update modal.js to handle backdrop issue in bootstrap 3.3.1 (master...patch-5) http://git.io/SzNUBw
[08:11:57] *** AngularUI has left #angularjs
[08:12:04] *** bzitzow has joined #angularjs
[08:12:14] *** SargoDarya has joined #angularjs
[08:12:25] *** knoopx has quit IRC
[08:12:36] *** ahtik has joined #angularjs
[08:13:40] *** AngularUI has joined #angularjs
[08:13:41]
<AngularUI> [bootstrap] maxisam reopened pull request #3117: Update modal.js to handle backdrop issue in bootstrap 3.3.1 (master...patch-5) http://git.io/SzNUBw
[08:13:41] *** AngularUI has left #angularjs
[08:13:51] *** jaydubya has joined #angularjs
[08:14:00] *** soee has joined #angularjs
[08:14:28] *** kesshi has joined #angularjs
[08:14:30] *** SergioFilhow_ has quit IRC
[08:14:34] *** nabdev has joined #angularjs
[08:14:57] <Hounddog> meh
[08:15:02] <Hounddog> not working as it should
[08:15:06] <soee> good morning
[08:16:21] *** rikko has joined #angularjs
[08:16:23] *** Lingo_____ has joined #angularjs
[08:16:28] *** emmesswhy has quit IRC
[08:16:50] *** SargoDarya has quit IRC
[08:17:19] *** Skrypter_ has quit IRC
[08:17:35] *** robdubya has quit IRC
[08:17:45] *** Skrypter has joined #angularjs
[08:18:05] *** sgen__ has joined #angularjs
[08:18:09] *** hari__ has quit IRC
[08:18:22] *** jaydubya has quit IRC
[08:19:08] *** uru|away is now known as uru
[08:19:30] *** m0n4m33 has joined #angularjs
[08:20:01] *** caitp has quit IRC
[08:20:44] *** WalterJr has quit IRC
[08:21:30] *** rikko has quit IRC
[08:22:14] *** Skrypter has quit IRC
[08:22:38] *** sk87 has joined #angularjs
[08:23:58] *** Zaran has quit IRC
[08:24:00] *** jak124124 has quit IRC
[08:26:00] *** evilaliv3 has joined #angularjs
[08:26:06] *** jonn has quit IRC
[08:26:40] *** fbenoit has joined #angularjs
[08:27:15] *** tyfighter has quit IRC
[08:27:26] *** ahtik has quit IRC
[08:28:27] *** asher^ has joined #angularjs
[08:28:39]
<Hounddog> iShortBus: you maybee have another second? http://pastebin.com/83KQNL5G in this i just want to set a flag "isDragged" in the controller as doing on line 29. However, in the child isDragged is always false
[08:28:48] *** SargoDarya has joined #angularjs
[08:29:09] *** s00pcan has quit IRC
[08:29:39] <iShortBus> reviewing
[08:30:25] *** Sadin has quit IRC
[08:30:43] *** IsraelOrtuno has joined #angularjs
[08:30:47] *** Lingo______ has joined #angularjs
[08:30:50] *** kotyy has quit IRC
[08:30:55] *** IJNX has joined #angularjs
[08:30:55] *** Lingo_____ has quit IRC
[08:32:45] *** chrisbirk has quit IRC
[08:32:53] *** numenor has quit IRC
[08:32:53] *** DrMabuse has joined #angularjs
[08:33:30] *** mtree has quit IRC
[08:33:30] *** shyshy has quit IRC
[08:33:45] <iShortBus> This is what i've done with draggable stuff. cheated a little with jquery, but you may want to create a function for checking the movement, from there setting the dragged function and then prevent the default of flipped when dragged = true
[08:33:46] <Hounddog> iShortBus: i dont understnad
[08:33:55] <Hounddog> yes
[08:34:03] *** platonic has quit IRC
[08:34:05] <Hounddog> thats what i am trying to get to do
[08:34:05] *** JohnBat26 has joined #angularjs
[08:34:57] <Hounddog> iShortBus: is that not what i am exactly trying to do as you describe?
[08:35:02] *** jmverges has joined #angularjs
[08:35:24] <dagingaa_> what happened to batarang? o0
[08:35:24] <Hounddog> oh well actually
[08:35:24] *** Click66 has joined #angularjs
[08:35:31] <dagingaa_> it's pretty much unusable now
[08:35:37] *** jieryn has quit IRC
[08:35:41] *** Lingo______ has quit IRC
[08:35:44] <Hounddog> i am using onclik you are using onmousedown
[08:35:45] <dagingaa_> half the features are gone, and I can't even see scopes anymore
[08:35:55] <Hounddog> iShortBus: that mught work as is
[08:36:11] *** sixr420 has joined #angularjs
[08:36:13] *** mrru has joined #angularjs
[08:36:37] *** zwacky_ has joined #angularjs
[08:37:24] *** DrMabuse has quit IRC
[08:38:06] *** sixr420- has quit IRC
[08:38:16] <iShortBus> if you move to onmousedown, and then within the callback function, set a timeout of like 300ms for your flip and listen for a mousemove that should prevent the flip long enough to see if the user will move the object.
[08:38:24] *** Skrypter has joined #angularjs
[08:38:34] *** chrisbirk has joined #angularjs
[08:39:40] *** Alina-malina has quit IRC
[08:40:42] *** DoubleAW has joined #angularjs
[08:40:46] *** Sawbones has joined #angularjs
[08:41:01] *** Superhard has joined #angularjs
[08:41:05] <Hounddog> iShortBus: perfect, works
[08:41:23] <iShortBus> nice :). Glad I couldhlep
[08:41:28] *** craigp has joined #angularjs
[08:41:45] *** axsuul has quit IRC
[08:42:03] *** amol has joined #angularjs
[08:42:25] *** Aliks has joined #angularjs
[08:42:40] *** tga0 has joined #angularjs
[08:42:44] *** duellsy has quit IRC
[08:42:46] *** seriema has joined #angularjs
[08:42:52] <iShortBus> nice.
[08:42:57] *** doginal has joined #angularjs
[08:43:10] *** AWAW has quit IRC
[08:44:13] *** sheplu has quit IRC
[08:44:17] *** pknordic_ has joined #angularjs
[08:45:03] *** sh4zzb0t has joined #angularjs
[08:45:07] *** Sawbones has quit IRC
[08:45:12] *** siovene has joined #angularjs
[08:45:24] *** s00pcan has joined #angularjs
[08:46:10] *** Superhard has quit IRC
[08:46:21] *** threesixes has quit IRC
[08:46:41] *** mtree has joined #angularjs
[08:46:49] *** s00pcan has quit IRC
[08:46:52] *** Alina-malina has joined #angularjs
[08:47:11] *** seriema has quit IRC
[08:47:19] *** macobo has joined #angularjs
[08:48:24] *** vectra has joined #angularjs
[08:48:56] *** tobmaster has quit IRC
[08:49:53] *** sebhoss has joined #angularjs
[08:50:05] <Hounddog> now i guess the interesting part will actually be to be able to move data between the drop zones
[08:50:25] *** amol has quit IRC
[08:50:34] *** ron_frown has quit IRC
[08:51:31] <iShortBus> multi-dimensional array, based on the number of drop zones?
[08:51:55] *** tfennelly has joined #angularjs
[08:52:52] *** boneskul_ has quit IRC
[08:53:05] *** e0ipso|away is now known as e0ipso
[08:53:22] *** jieryn has joined #angularjs
[08:53:23] *** jieryn has joined #angularjs
[08:54:17] *** SargoDarya has quit IRC
[08:54:38] *** sk87 has quit IRC
[08:54:44] *** SargoDarya has joined #angularjs
[08:54:53] *** snurfery has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:12] *** Aliks has quit IRC
[08:55:31] *** tarnus has joined #angularjs
[08:55:32] *** shaisnir has joined #angularjs
[08:55:44] *** sk87 has joined #angularjs
[08:55:54] *** robdubya has joined #angularjs
[08:56:03] *** Aliks has joined #angularjs
[08:56:49] *** tfennelly has quit IRC
[08:57:31] *** andrew9183 has quit IRC
[08:57:47] *** jonasliljestrand has joined #angularjs
[08:58:08] *** threesixes has joined #angularjs
[08:58:23] *** Click66 has quit IRC
[08:58:33] *** robdubya has quit IRC
[08:58:37] *** Click66 has joined #angularjs
[08:59:36] *** josh-k has joined #angularjs
[08:59:57] *** chrisbirk has quit IRC
[09:00:14] *** Aliks has quit IRC
[09:00:21] *** boneskull has joined #angularjs
[09:00:44] *** zwacky_ has quit IRC
[09:00:50] *** one0one has quit IRC
[09:02:15] *** t0rrieri has joined #angularjs
[09:02:58] *** BobbieBarker_ has quit IRC
[09:03:33] *** mtsr has joined #angularjs
[09:03:52] *** lite_ has joined #angularjs
[09:04:11] *** josh-k has quit IRC
[09:04:34] *** dylan9o4 has quit IRC
[09:04:37] *** MistahKurtz has quit IRC
[09:04:40] *** jagga has joined #angularjs
[09:05:54] *** kirfu has quit IRC
[09:06:40] *** t0rrieri has quit IRC
[09:06:52] *** kirfu has joined #angularjs
[09:07:02] *** scorphus has joined #angularjs
[09:07:35] *** robdubya has joined #angularjs
[09:09:21] *** evilaliv3 has quit IRC
[09:09:31] <Hounddog> iShortBus: i can show you what i mean basically
[09:09:34] *** evilaliv3 has joined #angularjs
[09:09:53] <Hounddog> iShortBus: maybee you got an idea
[09:10:38] *** uru is now known as uru|away
[09:10:59] *** night-owl is now known as zz_night-owl
[09:11:07] *** kirfu has quit IRC
[09:11:35]
<Hounddog> http://pastebin.com/AG3LfC3r in this i have ratings "dropzone" and cards "draggable elements". Once i place a card on a rating i need to fill the rating.cards array with the data from the draggable element
[09:12:08] *** fbe has quit IRC
[09:12:18] *** frkout_ has joined #angularjs
[09:12:25] <Hounddog> i would guess using a service for this now is suitable
[09:12:28] *** fbe has joined #angularjs
[09:12:51] *** robdubya has quit IRC
[09:13:00] <Hounddog> And i am thinking to just communicate the indexes
[09:13:09] *** zwacky_ has joined #angularjs
[09:13:32] *** DoubleAW has quit IRC
[09:13:47] *** rtpg has quit IRC
[09:13:50] *** asher^ has quit IRC
[09:13:51] *** DoubleAW has joined #angularjs
[09:13:53] *** rtpg has joined #angularjs
[09:14:41] *** jacuqesdancona__ has joined #angularjs
[09:15:27] *** chrisbirk has joined #angularjs
[09:15:29] *** peldan has joined #angularjs
[09:15:32] *** frkout has quit IRC
[09:15:48] *** patricka_ has joined #angularjs
[09:16:27] *** patrickarlt has quit IRC
[09:17:30] *** frkout_ has quit IRC
[09:17:49] *** krotine has joined #angularjs
[09:17:57] *** frkout has joined #angularjs
[09:18:07] *** evotuned has quit IRC
[09:18:33] *** tobmaster has joined #angularjs
[09:19:23] *** craigp has quit IRC
[09:19:27] *** jonasliljestrand has quit IRC
[09:20:17] *** craigp has joined #angularjs
[09:20:17] *** MistahKurtz has joined #angularjs
[09:20:31] *** StryKaizer has joined #angularjs
[09:20:52] *** nfroidure has joined #angularjs
[09:20:57] *** rhp has quit IRC
[09:21:48] *** illume has joined #angularjs
[09:22:23] *** krotine has quit IRC
[09:23:27] *** e0ipso is now known as e0ipso|away
[09:23:49] *** glitch-hat has joined #angularjs
[09:23:51] *** shaisnir has quit IRC
[09:24:27] *** shaisnir has joined #angularjs
[09:24:56] *** fotoflo has quit IRC
[09:25:15] *** shaisnir has quit IRC
[09:25:41] *** shaisnir has joined #angularjs
[09:26:28] *** sandelius has joined #angularjs
[09:26:43] *** chr1stopher has joined #angularjs
[09:26:44] *** mylord has joined #angularjs
[09:27:42] *** sk87 has quit IRC
[09:27:57] *** glitch-hat has quit IRC
[09:28:09] *** ivanskie has quit IRC
[09:28:28] *** guilbep has joined #angularjs
[09:28:31] *** Sjimi has joined #angularjs
[09:28:34] *** cacts has quit IRC
[09:28:40] *** sahbeewah has joined #angularjs
[09:29:19] *** phzon has joined #angularjs
[09:29:40] *** shaisnir has quit IRC
[09:29:52] *** shaisnir has joined #angularjs
[09:30:20] *** mzabriskie has quit IRC
[09:30:26] *** Seich has quit IRC
[09:30:29] *** g33k5z has joined #angularjs
[09:32:07] *** Seich has joined #angularjs
[09:32:37] *** sheplu has joined #angularjs
[09:32:44] *** jstroem has joined #angularjs
[09:32:52] *** craigp has quit IRC
[09:33:18] <stormbytes> Ticket.admitOne().then( success(), error() ); does that look like ok syntax for a promise/resolve/reject?
[09:33:21] *** frankblizzar has joined #angularjs
[09:34:03] *** JR___ has joined #angularjs
[09:34:12] *** MistahKurtz has quit IRC
[09:34:41] *** evanjs has quit IRC
[09:34:55] *** g33k5z has quit IRC
[09:35:03] *** Sawbones has joined #angularjs
[09:35:26] *** evanjs has joined #angularjs
[09:35:36] *** sk87 has joined #angularjs
[09:36:07] *** kesshi has quit IRC
[09:37:46] *** jstroem has quit IRC
[09:38:18] *** Sjimi has quit IRC
[09:38:20] *** jstroem has joined #angularjs
[09:38:45] *** craigp has joined #angularjs
[09:39:29] *** DrMabuse has joined #angularjs
[09:39:48] *** Sawbones has quit IRC
[09:40:38] *** swirlycheetah has joined #angularjs
[09:41:20] *** zanea is now known as zanea|away
[09:42:03] *** MattWelch has joined #angularjs
[09:42:16] *** DrMabuse has quit IRC
[09:42:26] *** DrMabuse has joined #angularjs
[09:43:06] *** jstroem has quit IRC
[09:43:50] *** JR___ has quit IRC
[09:43:55] *** alinou has quit IRC
[09:44:17] *** seriema has joined #angularjs
[09:44:30] *** recurrence has quit IRC
[09:44:51] *** platonic has joined #angularjs
[09:46:29] *** chr1stopher has quit IRC
[09:46:29] *** MattWelch has quit IRC
[09:46:30] *** glitch-hat has joined #angularjs
[09:46:37] *** steeze has quit IRC
[09:46:54] *** Guest__ has joined #angularjs
[09:47:04] *** s00pcan has joined #angularjs
[09:47:25] <wafflej0ck> stormbytes: get rid of () after success and error just pass the function not the result of the function
[09:47:41] *** deanclkclk has quit IRC
[09:47:50] <stormbytes> thanks wafflej0ck , just got that
[09:48:00] <stormbytes> was wondering why both functions were tripping
[09:48:10] *** MattWelch has joined #angularjs
[09:48:19] *** tfennelly has joined #angularjs
[09:48:43] <wafflej0ck> stormbytes: yup could see that being confusing
[09:48:51] *** seriema has quit IRC
[09:49:11] *** platonic has quit IRC
[09:49:14] <stormbytes> little bit... though i think i'm about mid-ways through the curve now hehe
[09:49:26] <stormbytes> 6 straight week of ng
[09:49:35] *** Sky[x] has joined #angularjs
[09:49:51] <wafflej0ck> yeah took me about 2 months before I started to feel like things were starting to settle in and I wasn't just constantly wrong :P
[09:49:56] *** Zdomb has joined #angularjs
[09:52:45] *** ogdabou has joined #angularjs
[09:52:48] *** RangerRick has quit IRC
[09:52:48] *** tfennelly has quit IRC
[09:52:50] *** peldan has quit IRC
[09:53:08] *** herbyme has quit IRC
[09:53:19] *** qdk has quit IRC
[09:53:21] <soee> what woudl be the best way to call preventDefault() on an anchor inside directive ? this anchor is used to execute function in ng-click
[09:53:29] *** peldan has joined #angularjs
[09:53:46] *** doug64k has quit IRC
[09:55:29] <wafflej0ck> soee: I imagine just add another directive, you could really just take over the ng-click functionality in your custom directive too, check out the ngClick source it's pretty simple (aside from the fact that it uses the one directive definition for a ton of stuff)
[09:55:31] *** RangerRick has joined #angularjs
[09:55:46] *** shaisnir_ has joined #angularjs
[09:56:13] *** mchammer has joined #angularjs
[09:56:36] *** qdk has joined #angularjs
[09:56:50] *** alinou has joined #angularjs
[09:56:58] *** doug64k has joined #angularjs
[09:57:21] *** Sepho has joined #angularjs
[09:58:32] *** SergioFilhow_ has joined #angularjs
[09:58:43] *** jackc7 has joined #angularjs
[09:58:47] *** jackc7 has left #angularjs
[09:58:53] *** ki0 has joined #angularjs
[09:59:10] *** shaisnir has quit IRC
[09:59:51] *** jlebrech has joined #angularjs
[10:00:11] *** doginal has quit IRC
[10:00:22] *** kuzz0 has joined #angularjs
[10:01:30] *** Cydmax has joined #angularjs
[10:01:46] *** swirlycheetah has quit IRC
[10:01:49] *** b1rkh0ff has joined #angularjs
[10:03:07] *** jaydubya has joined #angularjs
[10:03:25] *** SergioFilhow_ has quit IRC
[10:03:28] *** t0rrieri has joined #angularjs
[10:03:38] *** chr1stopher has joined #angularjs
[10:03:39] *** zwacky_ has quit IRC
[10:03:40] *** xxMatiasFCxx has quit IRC
[10:03:59] *** Aerospark has joined #angularjs
[10:04:16] *** Oxynum has joined #angularjs
[10:04:45] <hawa> is it better practice to do async webcalls from controller or provide it from a service?
[10:05:16] *** peldan_ has joined #angularjs
[10:05:20] *** jstroem has joined #angularjs
[10:05:24] *** rikko has joined #angularjs
[10:05:41] *** artee_1 has joined #angularjs
[10:05:49] *** Sebastien-L has joined #angularjs
[10:06:01] *** alpha080 has joined #angularjs
[10:06:26] <Grokling_> hawa: service.
[10:06:48] <Grokling_> hawa: Thin controllers, fat services.
[10:06:52] <Zdomb> @wafflej0ck ty
[10:07:01] *** artee_ has quit IRC
[10:07:28] *** b1rkh0ff1 has joined #angularjs
[10:07:34] *** Aerospar_ has joined #angularjs
[10:07:37] *** jaydubya has quit IRC
[10:07:47] *** t0rrieri has quit IRC
[10:07:54] *** jaznow has joined #angularjs
[10:07:54] *** Aerospar_ has quit IRC
[10:08:05] *** tommyjam has joined #angularjs
[10:08:08] <hawa> Grokling_, so is factory function call from controller async?
[10:08:28] *** fotoflo has joined #angularjs
[10:08:34] *** peldan has quit IRC
[10:09:19] *** Hounddog_ has joined #angularjs
[10:09:25] *** SomeKittens has quit IRC
[10:09:25] *** Hounddog has quit IRC
[10:09:37] <Grokling_> hawa: Depends what it does. I don't do factory calls from my controllers. Only from resolves or other factories.
[10:10:14] *** rikko has quit IRC
[10:10:46] <hawa> Grokling_, i am taking reference from here. I need to do similar task.
[10:10:48] *** Txandy has joined #angularjs
[10:10:55] *** MaxV has joined #angularjs
[10:11:01] *** b1rkh0ff has quit IRC
[10:11:03] <Grokling_> hawa mostly anyway. I can think of a handful of cases where I have factory calls passed through. Searching for people is one.
[10:11:32] *** CrashHD has quit IRC
[10:11:44] *** Skrypter has quit IRC
[10:11:59] *** sandelius has quit IRC
[10:12:18] *** Oxynum has quit IRC
[10:12:25] *** marr has joined #angularjs
[10:12:31] <hawa> Grokling_, i did a factory call. and it returned the required object asynchronously. which is not my intent.
[10:13:04] *** b1rkh0ff has joined #angularjs
[10:13:07] *** jstroem has quit IRC
[10:13:13] *** DarrenCraig has joined #angularjs
[10:13:43] *** tschundeee has joined #angularjs
[10:13:44] <Grokling_> hawa: In that case, you can bind an object to your scope, and manipulate that object from your factory call independently. Whether the factory method is sync or not, it will still work.
[10:13:49] *** jstroem has joined #angularjs
[10:13:57] *** b1rkh0ff1 has quit IRC
[10:14:52] *** bengillies has joined #angularjs
[10:14:58] <hawa> Grokling_, thanks...
[10:15:33] *** Aerospark has joined #angularjs
[10:15:38] *** xxMatiasFCxx has joined #angularjs
[10:16:08] *** dan2k3k4 has joined #angularjs
[10:16:30] *** zwacky_ has joined #angularjs
[10:16:50] *** Aerospark has quit IRC
[10:16:52] *** goodenough has joined #angularjs
[10:17:00] *** CrashHD has joined #angularjs
[10:17:35] *** Christer has joined #angularjs
[10:17:35] *** ngbot has joined #angularjs
[10:17:36] <ngbot> angular.js/master bd28c74 Georgios Kalpakas: fix(filterFilter): make `$` match properties on deeper levels as well...
[10:17:36] *** ngbot has left #angularjs
[10:17:56] *** sixr420 has quit IRC
[10:18:12] *** jstroem has quit IRC
[10:18:13] *** lostInParadise has joined #angularjs
[10:18:40] *** evotuned has joined #angularjs
[10:19:04] *** hell_razer has joined #angularjs
[10:19:06] *** peldan_ has quit IRC
[10:19:10] *** adben has joined #angularjs
[10:19:40] *** peldan has joined #angularjs
[10:19:42] *** sixr420 has joined #angularjs
[10:19:46] *** xdissent has joined #angularjs
[10:20:29] *** sandelius has joined #angularjs
[10:21:05] *** illume has quit IRC
[10:21:48] *** lostInParadise has left #angularjs
[10:22:34] *** uru|away is now known as uru
[10:23:28] *** MattWelch has quit IRC
[10:23:49] *** elliotstokes has joined #angularjs
[10:24:08] *** woah has quit IRC
[10:24:12] *** m8 has joined #angularjs
[10:24:49] *** JeffBuhrt has quit IRC
[10:27:30] *** evotuned has quit IRC
[10:27:53] *** leolrrj has joined #angularjs
[10:28:13] *** azizur has joined #angularjs
[10:29:17] *** ycodr has quit IRC
[10:29:20] *** AlSquirrel has joined #angularjs
[10:29:29] *** ycodr has joined #angularjs
[10:29:38] *** Sawbones has joined #angularjs
[10:29:48] *** Superhard has joined #angularjs
[10:29:51] *** qdk has quit IRC
[10:30:22] *** b1rkh0ff1 has joined #angularjs
[10:31:38] *** SargoDarya has joined #angularjs
[10:31:38] *** b1rkh0ff has quit IRC
[10:31:44] *** Usuario_ has joined #angularjs
[10:31:53] *** peldan_ has joined #angularjs
[10:33:21] *** jstroem has joined #angularjs
[10:33:43] *** plekplek has quit IRC
[10:33:50] *** Aerospark has joined #angularjs
[10:33:53] *** Sawbones has quit IRC
[10:34:05] *** startupality has joined #angularjs
[10:34:09] *** frkout_ has joined #angularjs
[10:34:19] *** Superhard has quit IRC
[10:34:32] *** illume has joined #angularjs
[10:34:39] *** peldan has quit IRC
[10:35:07] *** gr33nw00_ has joined #angularjs
[10:35:44] *** mchammer has quit IRC
[10:36:26] *** Aerospark has quit IRC
[10:36:35] *** illume has quit IRC
[10:37:10] *** shaisnir has joined #angularjs
[10:37:20] *** ingsoc has joined #angularjs
[10:37:23] *** Aerospark has joined #angularjs
[10:37:28] *** frkout has quit IRC
[10:37:58] *** lexek_ has joined #angularjs
[10:38:07] *** herbyme has joined #angularjs
[10:38:16] *** frkout_ has quit IRC
[10:38:26] *** Guest__ has quit IRC
[10:38:56] *** Usuario_ is now known as frobs
[10:39:37] *** JeffBuhrt has joined #angularjs
[10:39:49] *** shaisnir_ has quit IRC
[10:39:50] *** dnewkerk has left #angularjs
[10:40:40] *** ninjaparade has quit IRC
[10:41:43] *** Sepho has quit IRC
[10:41:44] *** katsh has quit IRC
[10:43:05] <arkin> do I need to use $scope.apply/$timeout when using $q .then() or is it done already?
[10:43:31] *** fernandojsg has joined #angularjs
[10:43:50] <fernandojsg> hi everyone!
[10:43:58] <dagingaa_> arkin: that's done already
[10:44:06] *** illume has joined #angularjs
[10:44:07] <arkin> awesome cheers
[10:44:54] *** Aerospark has quit IRC
[10:44:56] *** seriema has joined #angularjs
[10:45:14] *** Nivag_ has quit IRC
[10:45:24] *** illume has quit IRC
[10:45:40] *** siovene has quit IRC
[10:45:44] *** kevinxu has joined #angularjs
[10:46:06] *** kevinxu is now known as Guest94783
[10:46:10] *** pilva has joined #angularjs
[10:47:06] *** mak`` has joined #angularjs
[10:47:41] <wafflej0ck> dagingaa_: don't think that's true actually
[10:47:49] *** JR___ has joined #angularjs
[10:47:54] *** alpha080 has quit IRC
[10:48:02] <wafflej0ck> dagingaa_: but $timeout and $http do so most of the cases where you get an existing promise are going to be triggering $apply
[10:48:08] *** broberson has joined #angularjs
[10:48:26] <dagingaa_> and if you create the promise yourself
[10:48:32] *** gr33nw00_ has left #angularjs
[10:48:35] <dagingaa_> as in use $q.defer(
[10:49:04] *** gr33nw00d has joined #angularjs
[10:49:11] <dagingaa_> however, if there are som promise-based APIs that use promises, but doesn't use $q, and you use .then, then (snigger) you ahve to use $apply
[10:49:23] *** craigp has quit IRC
[10:49:26] <dagingaa_> but for the large part, in almost all cases we've come across, you don't have to
[10:49:33] <wafflej0ck> dagingaa_: right
[10:49:37] *** seriema has quit IRC
[10:49:52] <wafflej0ck> well if you use $q.defer() think you still need to call $apply
[10:50:01] <wafflej0ck> I don't think resolving or rejecting the promise calls that automatically
[10:50:27] <dagingaa_> you don't :) (or, resolving from inside something that DOESN'T work inside the angular $scope is perhaps different
[10:50:53] <dagingaa_> like $rootScope.$broadcast outside $apply means you have to use $apply inside $on
[10:51:03] <dagingaa_> has bitten me quite a few times
[10:51:25] *** alex_zhou has joined #angularjs
[10:51:33] <dagingaa_> ofcourse, the correct way of doing stuff like that is to wrap with $apply as soon as you enter an event loop outside the angular scope if you plan do do anything angular-y
[10:52:25] *** gunn has quit IRC
[10:52:35] *** rtpg has quit IRC
[10:52:41] <broberson> You can use livereload on the device, refreshing it from your dev machine
[10:52:54] *** sandelius has quit IRC
[10:52:55] *** seriema has joined #angularjs
[10:52:58] <broberson> sorry, wrong channel :(
[10:53:14] <aven1> never let it happen again :P
[10:53:18] *** glitch-hat has quit IRC
[10:53:24] <alex_zhou> ....
[10:53:44] <Grokling_> Not that we have anything against livereload though you understand..
[10:54:05] <broberson> lol
[10:54:34] <Grokling_> Just don't be talking about jQuery in here by accident..
[10:54:44] <broberson> i'm trying to adjust to a terminal-based irc client. a small amount of stupidity is inevitable.
[10:55:05] <Grokling_> It's IRC. We expect stupidity.
[10:55:22] <broberson> At least its not Usenet.
[10:55:32] *** sharkcat has joined #angularjs
[10:56:02] *** broberson has quit IRC
[10:56:30] *** kagitingan has quit IRC
[10:56:35] *** tilgovi has quit IRC
[10:56:49] *** zwacky_ has quit IRC
[10:57:23] *** frkout has joined #angularjs
[10:57:34] <wafflej0ck> dagingaa_: hmm yeah I might be completely wrong on that just tried with a test and it does seem to $apply after the resolve even in a setTimeout callback so apparently the docs just aren't clear about it
[10:58:08] <dagingaa_> oh, coolio ^^
[10:58:22] *** ries has joined #angularjs
[10:58:30] <dagingaa_> that's good then, angular has had a tendency to be a little confusing at times wrt that
[10:58:34] *** gunn has joined #angularjs
[10:58:51] *** mchammer has joined #angularjs
[10:59:05] <wafflej0ck> dagingaa_: yeah I'm still not sure... I'm looking at the src for $q and don't see $apply anywhere
[10:59:11] <wafflej0ck> dagingaa_: but in a test on plunkr it does seem to update
[10:59:39] *** m0n4m33 has quit IRC
[11:00:05] *** frkout has quit IRC
[11:00:19] *** freelyfred has quit IRC
[11:00:28] *** leolrrj has quit IRC
[11:00:40] <dagingaa_> wafflej0ck: right you are, hmm
[11:00:49] *** frkout has joined #angularjs
[11:01:29] *** tschundeee has quit IRC
[11:02:05] <arkin> how do i check if a promise has already been resolved (part of a timeout thing)
[11:02:05] *** tschundeee has joined #angularjs
[11:02:08] <dagingaa_> in other ugly hacks I've done lately: element.parent().html($compile(element.parent().html())(scope));
[11:02:26] <dagingaa_> I don't even it hurts so much
[11:02:27] *** ries has quit IRC
[11:02:41] *** mchapman has joined #angularjs
[11:02:45] *** evilaliv3 has quit IRC
[11:02:59] <dagingaa_> had to doublecompile the parent html to get my second directive working which was added dynamically
[11:03:27] *** daGrevis has joined #angularjs
[11:03:31] <wafflej0ck> dagingaa_: ah think it's the call to $evalAsync in here that triggers it, but I'm not too clear on how that works
[11:03:35] *** juampy has joined #angularjs
[11:03:44] <daGrevis> hey! am I correct that whenever I change $scope, template is rerendered?
[11:04:11] <dagingaa_> daGrevis: not the entire template, no
[11:04:14] *** t0rrieri has joined #angularjs
[11:04:16] <dagingaa_> just the bound value
[11:04:40] <ProLoser> hallo
[11:04:47] <arkin> thanks wafflej0ck, I am being lazy
[11:04:50] <ProLoser> what’s everyone up to?
[11:05:00] <daGrevis> dagingaa_, something like the difference?
[11:05:11] <arkin> that seems a crap solution though, surely it should exist on the promise itself :(
[11:05:13] *** craigp has joined #angularjs
[11:05:19] <arkin> promise.resolved !
[11:05:20] <wafflej0ck> arkin: it does in the original implementation
[11:05:24] <dagingaa_> daGrevis: depends on the directive really, but ususally stuff like ng-model does value changes
[11:05:32] *** goranradulovic has joined #angularjs
[11:05:34] <wafflej0ck> arkin: I think there are internals too you can check but really cleaner to DIY
[11:05:41] <dagingaa_> so .innerHTML or similar
[11:05:42] <arkin> cleaner???
[11:05:42] <arkin> lol
[11:05:49] <arkin> thanks
[11:05:51] <wafflej0ck> arkin: well I mean cleaner than using $$
[11:06:00] *** nfroidure has quit IRC
[11:06:04] <wafflej0ck> arkin: shouldn't use the internals
[11:06:10] *** tschundeee has quit IRC
[11:06:27] <wafflej0ck> arkin: agree it would be nice if it was just in there
[11:06:45] *** lgk has joined #angularjs
[11:06:48] <arkin> at the moment the timeout works fine, it doesnt cause any problems
[11:06:54] *** lgk is now known as larsgk
[11:06:59] *** Guest94783 has quit IRC
[11:07:01] *** jaznow has quit IRC
[11:07:17] <daGrevis> I'll just tell you where the problem is. i set $scope.x to true and I expect a HTML block to show in template because there is this ng-show="x" in template. then, after like a second I set $scope.x to false and I expect the block to get hidden. the problem is that I don't see the block like ever. seems that template doesn't know about changed $scope.x.
[11:07:50] *** shaisnir has quit IRC
[11:07:55] *** evilaliv3 has joined #angularjs
[11:08:34] *** kevinxu has joined #angularjs
[11:08:34] *** frkout has quit IRC
[11:08:38] *** t0rrieri has quit IRC
[11:08:44] <Grokling_> daGrevis: !primitives
[11:08:45] <UniBot> Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes.
[11:08:45] <arkin> daGrevis: wrap it in a $timeout
[11:08:57] *** kevinxu is now known as Guest72142
[11:09:17] *** jaznow has joined #angularjs
[11:09:29] <Grokling_> daGrevis: !moar
[11:09:29]
<UniBot> daGrevis, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them) More reading here: http://www.codelord.net/2014/05/10/understanding-angulars-magic-dont-bind-to-primitives/
[11:09:33] <daGrevis> arkin, how is wrapping it into timeout helping?
[11:09:43] *** zwacky_ has joined #angularjs
[11:10:05] <Grokling_> daGrevis: It won't. Primitives are the issue here from what you've said.
[11:10:20] *** motionman has quit IRC
[11:10:21] <daGrevis> okay. are there other ways except using moar dots to fix it?
[11:10:24] *** ngbot has joined #angularjs
[11:10:24] <ngbot> angular.js/v1.2.x 9845cee Peter Bacon Darwin: fix($browser): prevent infinite digests when clearing the hash of a url...
[11:10:24] <ngbot> angular.js/v1.2.x 97a9119 Jeff Cross: test(browser): change mock location definition to use defineProperty...
[11:10:24] *** ngbot has left #angularjs
[11:10:29] <daGrevis> something like explicit passing by value maybe?
[11:10:42] *** mrru has quit IRC
[11:10:52] <Grokling_> daGrevis: No. It's a fundamental feature of the javascript language (and many/most others besides)
[11:11:04] *** Zdomb has quit IRC
[11:11:16] *** fernandojsg has quit IRC
[11:11:19] <daGrevis> too bad
[11:11:22] <daGrevis> well, okay. thanks
[11:11:38] <dagingaa_> Grokling_: you are right for the most case, but this works for string and booleans as I remember
[11:11:39] *** zoite__ has joined #angularjs
[11:11:45] <dagingaa_> however, do that to an objet and angular gets sad
[11:11:54] <dagingaa_> it SHOULD work like you describe though, imo
[11:12:07] <dagingaa_> (it might in 1.3, I've been stuck on 1.2 until recently)
[11:12:26] <Grokling_> $scope.x where x is a primitive will copy x to scope. There's no connection to the original, so if you change it, it'll never be reflected.
[11:12:35] *** aortmann has joined #angularjs
[11:13:00] <daGrevis> if I make a function and return x from it, will it work then?
[11:13:01] *** lugzer has joined #angularjs
[11:13:23] <Grokling_> Only if x ends up as a property of an object.
[11:13:25] *** Aerospark has joined #angularjs
[11:13:39] *** jonasliljestrand has joined #angularjs
[11:14:01] *** Aerospark has quit IRC
[11:14:11] *** zoite_ has quit IRC
[11:14:14] <Grokling_> ng-show="myObject.x"
[11:14:15] <arkin> He's changing $scope.x in both cases though, not 'x' ?
[11:14:20] *** SergioFilhow_ has joined #angularjs
[11:14:21] <wafflej0ck> daGrevis: you really shouldn't fight this just make an object that is your model that you make a reference to on the scope
[11:14:33] <wafflej0ck> daGrevis: it'll make your life easier
[11:14:37] <Hounddog_> I am trying to integrate interactjs with a directive. Interact accepts for example interact('.selector') or interact(document.getElementById('someid')), how could i use this now to use the $element from the directive?
[11:14:53] <wafflej0ck> you'll lose 10 lbs and all the ladies will swoon
[11:15:01] <daGrevis> wafflej0ck, i'm doing it already. im embracing javascript :D
[11:15:12] <daGrevis> wafflej0ck, yay for ladies
[11:15:35] <Grokling_> tl;dr: If you haven't got a dot, you're doing it wrong.
[11:15:54] *** jaznow has quit IRC
[11:16:06] <wafflej0ck> Hounddog_: is $element like link:function(scope, $element) ?
[11:16:22] <Hounddog_> wafflej0ck: lemme show u what i mean
[11:16:24] <wafflej0ck> Hounddog_: if so you probably want $element[0] to get the original DOM element without the angular wrapper
[11:16:42] *** Aerospark has joined #angularjs
[11:16:51] <Hounddog_> wafflej0ck: that sounds about right
[11:17:02] <wafflej0ck> Hounddog_: yeah think so
[11:17:07] <wafflej0ck> element[0]
[11:17:17] *** gr33nw00d has quit IRC
[11:18:01] *** gr33nw00d has joined #angularjs
[11:18:07] <Hounddog_> wafflej0ck: cool, getting it scoped now properly is awesoe
[11:18:10] <Hounddog_> wafflej0ck: cool, getting it scoped now properly is awesome
[11:18:37] <wafflej0ck> daGrevis: regarding your problem too though if you just take off the ng-show temporarily you can be sure you template loading is working out first then deal with any other issues
[11:18:43] <wafflej0ck> Hounddog_: cool
[11:19:10] *** illume has joined #angularjs
[11:19:12] *** g33k5z has joined #angularjs
[11:19:26] *** SergioFilhow_ has quit IRC
[11:19:27] *** tfennelly has joined #angularjs
[11:21:02] *** Aerospark has quit IRC
[11:21:08] *** stacker has joined #angularjs
[11:21:19] <stacker> hi someone there ?
[11:21:28] *** TheAceOfHearts1 has quit IRC
[11:21:52] <wafflej0ck> is there anybody out there... is there anybody home
[11:22:01] <daGrevis> yes
[11:22:05] <stacker> i encountred a problem with angular
[11:22:10] <daGrevis> except everything is terrible.
[11:22:14] <stacker> hello :)
[11:22:24] <Grokling_> jQuery. That's the answer for everything so I hear.
[11:22:29] <wafflej0ck> haha
[11:22:31] <daGrevis> hey, people, I changed to be y.x but it doesn't show anyway
[11:22:37] *** gr33nw00d has quit IRC
[11:22:48] <daGrevis> if I remove ng-show as wafflej0ck suggested, it shows up
[11:22:49] *** SahanH has joined #angularjs
[11:22:50] <wafflej0ck> daGrevis: take off the ng-show deal with the template loading part first... also drop us some codes
[11:22:54] <wafflej0ck> ah k
[11:23:01] <wafflej0ck> daGrevis: show some codes
[11:23:04] <Grokling_> Yeah.. Plunk that!
[11:23:24] *** fernandojsg has joined #angularjs
[11:23:35] <daGrevis> codes are precious :(
[11:23:40] <daGrevis> can't show
[11:23:42] <Hounddog_> wafflej0ck: got any idea if i could retrieve ng-model from an element by only having its dom?
[11:23:44] *** evotuned has joined #angularjs
[11:23:45] *** Sawbones has joined #angularjs
[11:23:49] <wafflej0ck> daGrevis: not your broken codes :P
[11:23:49] *** tfennelly has quit IRC
[11:23:49] *** g33k5z has quit IRC
[11:23:57] <Hounddog_> i need to explain that better i guess :p
[11:24:11] <daGrevis> wafflej0ck, what has never worked can't be broken :P
[11:24:28] <wafflej0ck> daGrevis: no one is gonna make their next million off your broken angular code I assure you, and if they do, pat that man on the back
[11:24:49] <wafflej0ck> Hounddog_: typically you probably want to just write a directive that uses ngModelController
[11:24:52] <Grokling_> daGrevis: Make a plunker that shows the structure of the bit that doesn't work.. We don't want your sucky business idea.. we all have our own ;-)
[11:24:54] <stacker> i'm face to a problem: I would like to use a Element directive to describe an common element called "tile". but in one case, this tile got extra behaviour that i'm tryin' to add with an Attribute directive attached to it
[11:24:54] *** jonasliljestrand has quit IRC
[11:24:55] *** ngbot has joined #angularjs
[11:24:56]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from 37310e0 to a0f8a4b: http://git.io/U0S3Xw
[11:24:56] *** ngbot has left #angularjs
[11:24:56] <wafflej0ck> Hounddog_: if you need to hook into the ng-model
[11:25:19] <Hounddog_> wafflej0ck: yeah, this is actually drag and drop that i am doing.
[11:25:37] *** fairuz has quit IRC
[11:25:39] *** sk87 has quit IRC
[11:25:42] *** ngbot has joined #angularjs
[11:25:42]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from a0f8a4b to efd0490: http://git.io/a6JKUQ
[11:25:42] *** ngbot has left #angularjs
[11:25:42] <Hounddog_> so if i hook into it i dont have the data from the actual element
[11:26:11] *** stacker has quit IRC
[11:26:23] *** juampy is now known as juampy_coffee
[11:26:32] *** ngbot has joined #angularjs
[11:26:32]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from efd0490 to f2c8767: http://git.io/dj4cCw
[11:26:32] *** ngbot has left #angularjs
[11:27:08] *** Caroga_afk is now known as Caroga
[11:27:09] <wafflej0ck> Hounddog_: hmm yeah will have to brew on that for a minute, haven't implemented any drag and drop stuff myself I think I see what you're saying though, so you want to get info from the element that's being dropped in from the place it's being dropped to I imagine?
[11:27:23] *** ngbot has joined #angularjs
[11:27:23]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from f2c8767 to 8802d51: http://git.io/d57zEg
[11:27:23] *** ngbot has left #angularjs
[11:27:35] <Hounddog_> wafflej0ck: if you see here i can get element.relatedTarget
[11:27:47] <Hounddog_> let me just pull what that would give me
[11:28:11] *** ki0 has quit IRC
[11:28:11] *** ngbot has joined #angularjs
[11:28:11]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from 8802d51 to d8a95a9: http://git.io/3ZPI3Q
[11:28:11] *** ngbot has left #angularjs
[11:28:23] *** Sawbones has quit IRC
[11:28:23] *** evotuned has quit IRC
[11:28:36] <Hounddog_> too bad i couldnt use existing stuff cause i need inertia and such
[11:28:59] *** ngbot has joined #angularjs
[11:28:59]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from d8a95a9 to 5bc09b6: http://git.io/NJlyuA
[11:28:59] *** ngbot has left #angularjs
[11:29:08] *** Nivag_ has joined #angularjs
[11:29:17] <Hounddog_> wafflej0ck: element.relatedTarget gives me the dom from the dropped element
[11:29:32] *** Greed is now known as FlamingDemon
[11:29:49] *** ngbot has joined #angularjs
[11:29:50]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from 5bc09b6 to bfafdd2: http://git.io/FBhp0w
[11:29:50] *** ngbot has left #angularjs
[11:29:58] <Hounddog_> wafflej0ck: i am thinking the simplest might be to use a service and put the index as attribute
[11:30:24] *** spaceonline has joined #angularjs
[11:30:31] *** Superhard has joined #angularjs
[11:30:37] *** ngbot has joined #angularjs
[11:30:37]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from bfafdd2 to 5f52957: http://git.io/BkBlPg
[11:30:37] *** ngbot has left #angularjs
[11:30:45] <Grokling_> gah coffee sccript. daGrevis: looks like it should work I think. Not that I'm fluent in reading coffeescript..
[11:31:02] *** g-nom3 has joined #angularjs
[11:31:03] <daGrevis> Grokling, actually it is pseudocode :P
[11:31:13] <daGrevis> the only problem is that it's not working
[11:31:27] *** SexualRickshaw has quit IRC
[11:31:28] *** FlamingDemon is now known as Greed
[11:31:29] *** ngbot has joined #angularjs
[11:31:29]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_2 from 5f52957 to 9845cee: http://git.io/aR9J1A
[11:31:29] *** ngbot has left #angularjs
[11:31:30] <Grokling_> daGrevis: Ah. Pseudo code never works ;-)
[11:31:38] <daGrevis> totally looks like template's ng-show is ignoring change for x.y
[11:31:42] <wafflej0ck> Hounddog_: yeah I was thinking some sort of parent directive that the droppable stuff requires and registers itself with when it's dropped somewhere else but not sure a service might work out well too
[11:31:47] <Grokling_> Break it down - take out the ng-show, and make sure that works, then add in each piece one by one until it breaks.
[11:32:11] <daGrevis> Grokling_, I'll try
[11:32:12] <Grokling_> daGrevis: Try {{x | json }} in your view and confirm that it is changing like you thought.
[11:32:37] *** ngbot has joined #angularjs
[11:32:37] *** ngbot has left #angularjs
[11:33:05] <Hounddog_> wafflej0ck: just looking at angular dragDrop how they solved it... they directly manipulate the ng-model
[11:34:15] *** Guest72142 has quit IRC
[11:35:06] *** Superhard has quit IRC
[11:35:07] *** Nivag_ has quit IRC
[11:35:19] *** Foxandxss has joined #angularjs
[11:35:34] <daGrevis> Grokling, nice trick, didn't know about it
[11:35:42] <daGrevis> Grokling, looks like it's not changing
[11:35:58] <wafflej0ck> daGrevis: are you making the change in ng-click or ?
[11:36:18] <Grokling_> Okay, so now add in some logging (or use the debugger) to make sure your functions are actually running, and having the desired effect.
[11:36:36] <soee> someone using ng-infinite-scroll and is abel to make load next portion untill it filles whole visible page height ??
[11:36:38] <daGrevis> wafflej0ck, there is this function in parent controller that sets $scope.x.y to true. that function is called by child controller
[11:36:43] *** basiclaser_ has joined #angularjs
[11:36:59] <daGrevis> Grokling_, did that. they are called in right order.
[11:37:09] *** jonatas_oliveira has quit IRC
[11:37:42] *** boneskull has quit IRC
[11:37:48] *** glitch-hat has joined #angularjs
[11:37:48] <wafflej0ck> daGrevis: sort of
[11:37:59] <wafflej0ck> daGrevis: so if you do async stuff without angular
[11:38:12] *** alex_zhou is now known as AlexZhou
[11:38:13] <wafflej0ck> daGrevis: like not using $timeout or $http you need to call $scope.$apply
[11:38:23] <wafflej0ck> $scope.$apply() that is
[11:38:27] <daGrevis> aha!
[11:38:27] *** sharkcat has quit IRC
[11:38:51] <daGrevis> omg it works <3 eureka!
[11:38:53] *** plekplek has joined #angularjs
[11:39:00] <daGrevis> apply kind of forces render, right?
[11:39:12] <Grokling_> daGrevis: Forces a digest cycle.
[11:39:16] <dagingaa_> it forces a digest cycle atleast, which checks for cahnges to all values
[11:39:19] <wafflej0ck> daGrevis: yeah basically causes it to check for any changes for watchers
[11:39:25] <daGrevis> \o/
[11:39:28] <arkin> so what I said earlier..
[11:39:30] <arkin> :D
[11:39:39] <daGrevis> can you quote urself? i might have missed it
[11:39:48] *** Mer|inDMC is now known as MerlinDMC
[11:39:49] <wafflej0ck> eh well $timeout is a hack to trigger an $apply
[11:39:56] <wafflej0ck> but why not just call $apply
[11:40:00] <dagingaa_> it WILL save you a lot of time and pain
[11:40:03] <arkin> $apply doesnt always work
[11:40:06] <daGrevis> dagingaa_, will do.
[11:40:13] <arkin> something to do with $digest
[11:40:19] <wafflej0ck> arkin: sure it does it just depends on you calling it in the correct context
[11:40:42] <arkin> I let $timeout worry about the context, should I not ?
[11:41:15]
<fernandojsg> Grokling_: I was playing with the OOP can you please have a look at the function on line 9 http://pastebin.com/NiVteneG ?
[11:41:42] *** sandelius has joined #angularjs
[11:41:42] <wafflej0ck> arkin: eh just saying once you pretty much know what's going on you can generally use $apply safely and not be depending on adding in delays that are unnecessary
[11:42:00] <wafflej0ck> arkin: sometimes I have used $timeout to hack around stuff where I need a delay but it's almost always some dirty hack :P
[11:42:24] <arkin> There was a scenario $apply didn't work, so I swapped to $timeout with no delay per someones advice
[11:42:29] <fernandojsg> Grokling_: something like this is what you meant when you convert the hierarchy from the json response from the serve into OO classes ?
[11:42:30] <arkin> and I see it as quite common
[11:42:30] *** ki0 has joined #angularjs
[11:42:51] <Grokling_> fernandojsg: Very similar, yes.
[11:43:13] *** AlexZhou has quit IRC
[11:43:38] <wafflej0ck> arkin: yeah it's used as a terrible hack in many cases though too, seen some people write some really terrible fragile code with $timeout
[11:43:39] *** drag0nius has joined #angularjs
[11:43:46] *** JERE has quit IRC
[11:44:28] *** Ch4rAss has joined #angularjs
[11:44:29] *** boneskull has joined #angularjs
[11:44:44] *** k_eed has joined #angularjs
[11:44:59] <wafflej0ck> arkin: I'm not saying you're doing this but was stuff like delay for 300ms while some jQuery runs and resorts a bunch of stuff in the DOM then execute some stuff in a directive... just aweful and caused a ton of bugs the "solution" to which was developers adding more time to that timeout :(
[11:45:18] <drag0nius> how do i force evaluation of factory?
[11:45:29] <arkin> wafflej0ck: I use it to trigger an update when I have some data so the view updates ng-repeat or ng-model for example
[11:45:33] <Grokling_> fernandojsg: I avoid doing 'new myClass' calls directly as it removes the ability to use potentially already cached myClass records. I do myClass.findOrCreate(someJson) instead.
[11:45:40] <arkin> my applications dont use jQuery
[11:45:57] *** glitch-hat has quit IRC
[11:46:16] <wafflej0ck> arkin: yeah really though in most cases you're using $http which will call $apply for you or $resource or something like that and if you do some async stuff outside of the context of an angular call then you can just call $scope.$apply() to trigger the watchers
[11:47:04] *** k_eed has left #angularjs
[11:47:25] <wafflej0ck> the only problem is if you call $scope.$apply() in some function that is used by another function that is already in a call to $apply but you can fix this easily by separating the function that does the work and the on that calls $apply
[11:47:39] <wafflej0ck> one*
[11:47:41] <ericbutters> how to do a ng-repeat in horizontal?
[11:47:46] <arkin> as I said, $apply failed on something - doing a lot of SQLite/bluetooth stuff so no $http or $resource
[11:47:57] <wafflej0ck> ericbutters: horizontal and vertical just have to do with your CSS
[11:47:59] <fernandojsg> Grokling_: okok
[11:48:14] <Grokling_> ericbutters: <span ng-repeat="..."> is the cheap and nasty way.
[11:48:22] <wafflej0ck> arkin: $timeout just internally does a setTimeout then a $apply
[11:48:32] <fernandojsg> Grokling_: also if you notice after every operation i need to be in sync with the server so I do a reload, and basically it's a "angular.extend(this, json);" from the json
[11:48:32] *** AciD`` has joined #angularjs
[11:48:59] *** Ch4rAss has quit IRC
[11:49:08] <fernandojsg> Grokling_: what you do is basically the same? instead of using .extend, do a foreach and replace every parameter right?
[11:50:13] <Grokling_> fernandojsg: I saw that. Basically the same, but using a forEach gives you the option to intervene in the values as they come across (like turn a json string into a date for example)
[11:50:53] <wafflej0ck> arkin: perhaps you had some issue with getting lots of data and triggering many calls to $apply at once in which case you may need to debounce the call or something, and really it's cool do what works... just saying I wouldn't always use $timeouts everywhere, they have their purpose as does $apply
[11:50:56] <fernandojsg> ok
[11:51:06] <Grokling_> Also the ability to make sure that the values you get are ones you expected - otherwise you could be adding properties you weren't expecting.
[11:51:16] <arkin> Yea I'm just reading into it, it was a $digest error something already running
[11:51:37] <ericbutters> Grokling_: lets say i have a directive as a div with buttons, i want to repeat that div horizontal.. how to do with span? sorry for that..
[11:51:37] *** jaydubya has joined #angularjs
[11:51:40] <arkin> I'll look at switching to $apply when I have extra time
[11:52:10] *** SahanH has quit IRC
[11:53:12] <wafflej0ck> arkin: cool yup, it's not a big deal if it isn't stopping anything from working or causing performance problems and it sounds like you aren't doing anything terrible with it, but always good to look at alternatives when you've got the time
[11:53:14] <Grokling_> ericbutters: Fundamentally, it's a CSS question. You either need to use a non block element, or use some CSS rules to make it go horizontal. Flexbox is nice for this kind of thing.
[11:53:25] <fernandojsg> does anyone here uses $resource ?
[11:53:46] <wafflej0ck> fernandojsg: yeah I use it a fair amount
[11:54:17] *** rikko has joined #angularjs
[11:54:27] <Grokling_> I feel like I'm missing out on this whole $resource thing.. I see a lot of noise around it, and yet robdubya stays away from it.
[11:54:36] <Grokling_> There must be a reason.
[11:54:44] *** Sebastien-L has quit IRC
[11:54:55] *** cho2 has joined #angularjs
[11:55:21] <fernandojsg> Grokling_: sorry for my ignorance but who is robdubya?
[11:55:21] <wafflej0ck> there's definitely a fair amount of funkiness to it but once you get it sorted once I think it's less code overall to deal with... but depends on how much you abstract things yourself too
[11:55:46] *** cho2 has quit IRC
[11:56:06] *** jaydubya has quit IRC
[11:56:57] <Grokling_> fernandojsg: robdubya is a bleeding edge ninja. He knows heaps about almost everything.
[11:57:08] <fernandojsg> ok :D
[11:57:36] <Grokling_> Actually, I wouldn't be at all surprised to find out that he can read the matrix code.
[11:57:36] <wafflej0ck> yeah a trusted "voice" in the chat
[11:57:55] <fernandojsg> the point is that i started using $resource just from reading my first tutorials and books, and I thought it was a more OOP approach
[11:57:57] *** Left_Turn has joined #angularjs
[11:57:57] *** juampy_coffee is now known as juampy
[11:58:13] <wafflej0ck> fernandojsg: it's not more OOP it's more RESTful based
[11:58:34] <wafflej0ck> fernandojsg: it's really just using $http under the hood to make it easier to interact with RESTful based endpoints
[11:58:42] <wafflej0ck> "easier" I should say :P
[11:59:02] *** rikko has quit IRC
[11:59:21] *** djam90 has joined #angularjs
[11:59:33] <wafflej0ck> well I guess REST is resource/object based so it's sort of OOP in that way but not what I typically think of as OOP (extension/inheritence etc.)
[11:59:46] *** mtsr has quit IRC
[11:59:54]
<fernandojsg> the point is that then I needed a OOP to lead with the UI on this resource, not to mix data & ui, that's why I created the code I've paste before http://pastebin.com/NiVteneG
[12:00:18] <fernandojsg> so now it seems I'm redoing the same thing in different factories :D
[12:00:19] <djam90> Is it possible to have a custom sorting in Angular ng-repeat? I have my data array of cars, each car has a price and offer_price property. I want to sort by price but by the lowest of the two prices.
[12:00:22] *** frkout has joined #angularjs
[12:00:43] *** jonasliljestrand has joined #angularjs
[12:00:44] *** lmatl has joined #angularjs
[12:00:45] <Grokling_> djam90: Sure - custom filter.
[12:00:56] <fernandojsg> and I dont know if it will be better to have just one APIFactory as Grokling_ exposed and then a lot of Factoires with my own classes that convert the Json from server to OOP classes i created myself
[12:01:10] <djam90> Grokling, I want to sort it by the lowest price though, not filter them
[12:01:11] <fernandojsg> or if there's a way to extend the $resource to add my own UI classes in a fancy way
[12:01:26] <Grokling_> Sort is a filter ;-) confusing I know..
[12:01:41] <wafflej0ck> fernandojsg: well so UI shouldn't really have to do with the underlying $resource parts and API calls
[12:01:56] <wafflej0ck> fernandojsg: UI should be concerned with dealing with some chunk of data that it needs to display stuff for insert data
[12:02:17] <lmatl> Hi Guys, don't you know if someone is providing on-site Angularjs trainings?
[12:02:20] <fernandojsg> wafflej0ck: yes, I mean for example, I've a resource that has a .delete() that calls the restapi to delete it
[12:02:38] <fernandojsg> wafflej0ck: but then in my UI I want that everytiime i do a .delete() it shows a modal to confirm and then show a notification or whatever
[12:02:40] <drag0nius> any idea how can i add custom actions column to ngTable?
[12:02:47] <fernandojsg> wafflej0ck: so that's why I created that wrapper around the resource
[12:02:51] <GreenJello> lmatl, most consulting companies offer training, so look around for angular consulting companies
[12:02:56] <djam90> Grokling, thanks. I am on the orderBy docs but unsure how to proceed. Do I use a function instead of a string predicate?
[12:03:02] <wafflej0ck> fernandojsg: well the wrapper around the resource was good to separate the data from the UI
[12:03:08] <drag0nius> like 3 buttons: details/edit/delete
[12:03:23] *** kroogs has joined #angularjs
[12:03:24] *** goodenough has quit IRC
[12:03:33] <wafflej0ck> fernandojsg: but on the UI side you should just make a directive that works like ngClick to make a callback when the delete has been confirmed and deals with showing the delete modal and checking the OK/Cancel value
[12:04:18] *** SargoDarya has quit IRC
[12:04:51] <Grokling_> djam90: You'll need to write a custom function to evaluate which is the lower of the two prices. Not sure if you can do it within the context of orderBy, you might need a complete filter of your own. wafflejock might know off the top of his head..
[12:04:58] *** t0rrieri has joined #angularjs
[12:05:15] <fernandojsg> wafflej0ck: instead of calling assignpatient from the resource directly I call a modalService that will return a promise with the data
[12:05:24] <fernandojsg> wafflej0ck: this kind of abstraction is what you meann?
[12:05:45] *** Ch4rAss has joined #angularjs
[12:05:49] <lmatl> GreenJello: Thanks for that I will have a look, I was just thinking if the Google by itself is providing support of any kind
[12:06:04] *** zwacky_ has quit IRC
[12:06:29] <GreenJello> lmatl, not that I've heard of
[12:06:34] <wafflej0ck> lmatl: don't think so Google doesn't really get into the direct service business type stuff it seems you may also want to check out airpair
[12:06:51] <GreenJello> usually just misc groups of developers with pretty websites (consulting companies)
[12:07:13] <djam90> wafflej0ck, any ideas? (relating to Grokling last comment)
[12:07:17] *** frkout has quit IRC
[12:07:18] *** cannap has joined #angularjs
[12:07:24] <ericbutters> Grokling_: thanks, i fixed it by: display: inline-block;
[12:07:34] *** elliotst_ has joined #angularjs
[12:07:39] *** bzitzow has quit IRC
[12:07:40] <wafflej0ck> djam90: sorry wasn't really following you can pipe through multiple filters if that's the question
[12:07:55] *** sk87 has joined #angularjs
[12:08:16] *** akar has left #angularjs
[12:08:21] *** tfennelly has joined #angularjs
[12:08:21] <lmatl> Thank for information
[12:08:21] *** kroogs has quit IRC
[12:08:22] *** SargoDarya has joined #angularjs
[12:09:04] *** kuzz0 has quit IRC
[12:09:10] <wafflej0ck> fernandojsg: hmm not sure if I follow the last bit of what you were saying there, I'm basically just sayin' you typically want your directives to handle the UI stuff, keep your data in factories/services (and data fetching/manipulation stuff) and keep your controllers as the slim glue between the services/factories and the view/directives
[12:09:17] *** t0rrieri has quit IRC
[12:09:23] <djam90> wafflej0ck, instead of passing a string into predicate, I can use a function that calculates the lower value out of my two prices (price and offer_price)?
[12:09:47] <wafflej0ck> djam90: ah yeah believe that should work
[12:09:52] <djam90> cool
[12:10:17] *** elliotstokes has quit IRC
[12:10:29] <wafflej0ck> djam90: yeah only issue is the filters can get triggered a lot so if it's a big set you may want to precompute the stuff sometime when it's fetched or whenever it needs to be recomputed instead of in a filter, but optimize later
[12:11:16] *** Guest23661 has quit IRC
[12:11:24] <djam90> yeah that makes sense, thanks
[12:11:29] *** pknordic_ has quit IRC
[12:12:21] *** Nurbs has joined #angularjs
[12:13:06] *** tfennelly has quit IRC
[12:13:16] <fernandojsg> wafflej0ck: yeah, that's right. I've my directives leading with the UI, and some services that exposed those directives to the user, as could be a ModalService that I could just call to open a dialog or shows a notification, in my controller I use to have almost nothing in my controller as you commented
[12:14:27] <fernandojsg> wafflej0ck: my question is, if you have a Factory let's say User that returns a $resource from a RESTful api, you can call the factory to get, delete, save or create new resource and act like it's an OOP class instance
[12:15:02] *** sandelius has quit IRC
[12:15:09] <fernandojsg> wafflej0ck: is you want to include business logic inside this User do you include it on the same factory? or create a new Factory that extend the previous one to leave the original factory as "just data"
[12:15:34] *** edy has joined #angularjs
[12:15:44] *** shaisnir has joined #angularjs
[12:15:45] *** ngbot has joined #angularjs
[12:15:45] <ngbot> angular.js/master 9e6161e Todd Skinner: docs($httpBackend): correct grammar...
[12:15:45] *** ngbot has left #angularjs
[12:16:22] *** orbsio has joined #angularjs
[12:16:29] *** orbsio is now known as Guest60222
[12:16:32] <soee> if in response i have array with objects, what would be the best way to get value of a property of last object in this array ?
[12:16:42] <wafflej0ck> fernandojsg: yeah personally I typically use "service" for things that are fetching the data and "factory" for things that are just data manipulation or wrapping up the raw data that came back from the "service" but I've also seen articles that say the exact opposite, think the main point is it's good to have both objects that are used to do the CRUD and objects that do further manipulation
[12:16:47] *** swist has joined #angularjs
[12:16:47] *** elyssonmr has joined #angularjs
[12:16:58] <wafflej0ck> soee: using lodash?
[12:17:29] <soee> wafflej0ck: nope,m what is it ?
[12:17:31] <wafflej0ck> soee: myArray[mArray.length-1].prop //without lodash
[12:17:43] <wafflej0ck> soee: lodash is a library for doing stuff on arrays makes it cleaner most of the time
[12:17:50] <wafflej0ck> soee: very handy tool really
[12:18:01] <soee> ah good to know, than you wafflej0ck
[12:18:02] *** Sawbones has joined #angularjs
[12:18:15] *** lmatl has quit IRC
[12:18:23] <wafflej0ck> yeah with lodash would be _.last(myArray).prop
[12:19:40] *** tfennelly has joined #angularjs
[12:20:13] *** webguynow has quit IRC
[12:21:01] *** cakirke has joined #angularjs
[12:22:38] *** Sawbones has quit IRC
[12:22:42] *** mchapman has quit IRC
[12:23:03] *** sebhoss has quit IRC
[12:23:36] *** tty has joined #angularjs
[12:24:01] *** SargoDarya has quit IRC
[12:24:02] *** tfennelly has quit IRC
[12:24:19] <tty> bonjour! i am using angular-leaflet-directive and i want to use greyscale osm. how can i set this?
[12:24:24] *** hawa has quit IRC
[12:24:30] *** evotuned has joined #angularjs
[12:25:17] *** tfennelly has joined #angularjs
[12:26:11] <tty> wafflej0ck: yes.
[12:26:20] *** RangerRick has quit IRC
[12:26:38] *** RangerRick has joined #angularjs
[12:26:48] *** glitch-hat has joined #angularjs
[12:26:52] *** kas84 has joined #angularjs
[12:27:20] <tty> i tried using layerParams as the example says but no luck.
[12:27:36] *** swist has quit IRC
[12:27:42] *** mchapman has joined #angularjs
[12:27:43] *** sandelius has joined #angularjs
[12:28:48] <wafflej0ck> tty: are you just linking to a different map layer via URL like in the example?
[12:28:55] *** apertoire has quit IRC
[12:29:04] *** evotuned has quit IRC
[12:30:17]
<tty> wafflej0ck: i am using only one layer (osm - open street maps) but i want to have the greyscale view by default. it will look like this (http://zverik.github.io/leaflet-grayscale/) which is nopt using angualr.
[12:31:16] *** Christer_ has joined #angularjs
[12:32:03] <tty> maybe i should change the “defaults: { tileLayer: ….” to something else.
[12:32:37] *** Grokling_ has quit IRC
[12:32:40] *** jonasliljestrand has quit IRC
[12:33:13] *** qdk has joined #angularjs
[12:33:42] <wafflej0ck> tty: yeah well so from what I'm seeing here this grayscale one is actually running code on the element to grab the tiles and shift the color out of them
[12:33:52] *** Ch4rAss has quit IRC
[12:33:57] <wafflej0ck> tty: so it's not really one to one with the examples for leaflet where a URL is being used
[12:34:05] *** theoziran has joined #angularjs
[12:34:14] *** SargoDarya has joined #angularjs
[12:34:48] *** glitch-hat has quit IRC
[12:34:48] *** Christer has quit IRC
[12:34:49] *** Christer_ is now known as Christer
[12:34:55] <fernandojsg> wafflej0ck: right, so I'm using the same approach that you use
[12:35:13] *** sk87 has quit IRC
[12:35:22] *** ericbutters has quit IRC
[12:35:29] <wafflej0ck> tty: you likely need to dig into the leaflet source and implement something to let you use this kind of dynamic layer where it manipulates the tiles after load
[12:35:39] <fernandojsg> wafflej0ck: I was just wondering if someone uses the "transformresponse" callback in the $resource to convert the JSON data to actual OOP class instance instead of just returning the plain json :D
[12:35:44] <wafflej0ck> tty: or need to find some "precomputed" version of this map layer with URL
[12:35:51] *** ericbutters has joined #angularjs
[12:36:01] <wafflej0ck> fernandojsg: yeah you see that github link I dropped you above?
[12:36:03] <tty> wafflej0ck: i think the second one should do.
[12:36:08] *** ogdabou has quit IRC
[12:36:23] *** rafagomes has joined #angularjs
[12:36:35] *** glitch-hat has joined #angularjs
[12:36:55] <fernandojsg> wafflej0ck: yes I was checking it right now
[12:37:12] <fernandojsg> wafflej0ck: is similar to what I do in my (2nd level) factory
[12:37:16] <wafflej0ck> fernandojsg: yeah I haven't really used it myself but they have the concept there of models and actions for beforeSave or afterSave
[12:37:47] <fernandojsg> wafflej0ck: extend the model with the attributes from json, and then call "afterLoad" if you need to do any special treatment like following creating intances in hierarchy or whatever
[12:38:00] <wafflej0ck> right
[12:38:15] <fernandojsg> looks nice, I'll give a try later :) thank u
[12:39:03] <ericbutters> why there is no floating action button in angular?
[12:39:33] *** nabdev has quit IRC
[12:39:39] *** crised has joined #angularjs
[12:39:46] <wafflej0ck> ericbutters: not sure what you mean but angular itself doesn't really seek to provide the UI layer
[12:40:00] <wafflej0ck> ericbutters: that kind of stuff is handled by things like uibootstrap and ionic
[12:40:12] <ericbutters> afflej0ck: sorry i meant angular-material
[12:40:15] *** theoziran has left #angularjs
[12:40:16] <wafflej0ck> ah
[12:40:25] <wafflej0ck> that I do not know
[12:40:35] *** startupality has quit IRC
[12:42:01] *** cavallari has joined #angularjs
[12:43:10] <fernandojsg> ericbutters: angular-material is somehow wrapper of polymer? or has something to do with it?
[12:43:18] *** edy has quit IRC
[12:44:39] *** manoz has joined #angularjs
[12:44:44] *** glaksmono has quit IRC
[12:44:56] <ericbutters> fernandojsg: i thought "floating action button" is "material design" so i was wondering why it is not in "angular-material"
[12:45:03] <manoz> download
[12:45:30] *** craigp has quit IRC
[12:45:42] <manoz> hi
[12:46:07] *** manoz has quit IRC
[12:46:16] <fernandojsg> ericbutters: I think polymer has those buttons, and maybe you could find some wrapper for angular to use it
[12:46:23] <fernandojsg> polymer-project.org
[12:46:35] *** Ch4rAss has joined #angularjs
[12:46:39] <fernandojsg> ericbutters: check the examples there maybe is what you're looking for?
[12:46:49] *** SargoDarya has quit IRC
[12:47:57] *** cheef has joined #angularjs
[12:48:06] <ericbutters> fernandojsg: yes i know that, and i used polymer as a test.. i just wondered why that action button is missing, because it is part of polymer, and we see it with android (and we see it with inbox)..
[12:48:09] *** jonasliljestrand has joined #angularjs
[12:48:23] *** eirikb has joined #angularjs
[12:48:23] *** doodlehaus has joined #angularjs
[12:48:28] <fernandojsg> yep
[12:48:36] <fernandojsg> so i'm sorry i don't know i didnt use angularmaterial
[12:48:49] <ericbutters> thanks anyway
[12:49:58] <eirikb> If I want my app with ui-router to depend on some configuration/setup with layout, loaded through $http, would it be possible to have my app module depend on a config-module, which could load this, and then in .config in my app I can have the configuration data ready at hand?
[12:50:46] *** shaisnir has quit IRC
[12:51:36] *** Cronoh has quit IRC
[12:51:41] *** ogdabou has joined #angularjs
[12:52:08] *** dsdeiz has joined #angularjs
[12:53:01] *** craigp has joined #angularjs
[12:53:12] *** SargoDarya has joined #angularjs
[12:53:34] *** craigp has quit IRC
[12:53:41] *** craigp has joined #angularjs
[12:53:59] *** leehambley has joined #angularjs
[12:54:03] *** bullicon has joined #angularjs
[12:54:37] <drag0nius> eirikb: it might not be perfect approach, but i have 'is_loaded' property on my primary controller, then ng-if="ctrl.is_loaded" everywhere in templates
[12:54:57] *** fairuz has joined #angularjs
[12:55:06] <eirikb> drag0nius: The problem is before the templates. I can't call $http in app.config
[12:55:13] *** fairuz has quit IRC
[12:55:13] *** fairuz has joined #angularjs
[12:55:28] <drag0nius> eirikb: can you do that in run?
[12:55:49] <eirikb> Can I set up ui-router in run?
[12:56:04] <drag0nius> hmm...
[12:56:13] <drag0nius> i see, you want to dynamically load whole router configuration?
[12:56:39] <drag0nius> but honestly, it doesn't make much sense, ui-router is angular-local
[12:56:58] <eirikb> Yes that is what I want. I think it makes sense
[12:57:00] <drag0nius> you shouldn't try access external urls in it and i don't think it's possible at all
[12:57:14] <drag0nius> i've separate .value() for external urls
[12:57:24] *** phoenixw has joined #angularjs
[12:58:00] <drag0nius> then you can load external urls into that .value()
[12:58:18] <eirikb> What is .value()?
[12:58:35] *** leolrrj has joined #angularjs
[12:59:08] <drag0nius> it's like .factory, but primitive
[12:59:18] <drag0nius> check angular docs on providers
[12:59:53] <eirikb> Oh app.value, yes
[12:59:55] <drag0nius> you can create it like .value('urls', {admin:'example.com/admin', index:'example.com'})
[13:00:06] <drag0nius> and then load it dynamically without any issues
[13:00:31] *** cheef has quit IRC
[13:00:54] <drag0nius> or actually you can't reasign value itself
[13:01:00] *** sandelius has quit IRC
[13:01:14] <drag0nius> i've like .value('user', {data:{}}) and then load user.data from server
[13:01:16] *** imjoshholloway has joined #angularjs
[13:01:20] *** Superhard has joined #angularjs
[13:01:36] <drag0nius> in .run()
[13:01:38] *** tommyjam has quit IRC
[13:02:00] *** phoenixw has quit IRC
[13:03:00] *** katsh has joined #angularjs
[13:03:06] *** SergioFilhow_ has joined #angularjs
[13:03:14] *** pknordic_ has joined #angularjs
[13:03:43] *** jonatas_oliveira has joined #angularjs
[13:04:34] *** simplyshipley has joined #angularjs
[13:04:43] <drag0nius> idk if it's my net or plunker, but it loads for like a minute already and didn't load yet
[13:05:37] *** Superhard has quit IRC
[13:05:41] *** t0rrieri has joined #angularjs
[13:05:46] <drag0nius> just tell me if those urls are to external website or within website
[13:05:56] <eirikb> Normal state urls
[13:06:05] <drag0nius> then don't load them from server
[13:06:13] <drag0nius> it makes absolutely no sense
[13:06:21] <eirikb> I don't load urls from server
[13:06:32] <drag0nius> then what are you loading from server?
[13:06:46] <eirikb> States, I guess
[13:06:55] <drag0nius> either way it makes no sense
[13:06:55] *** gr33nw00d has joined #angularjs
[13:06:59] <drag0nius> states are angular-internal
[13:07:35] <drag0nius> what happens if you change states on server
[13:07:41] <crised> jaawerth: Hi there, Learning from your code
[13:07:44] *** SergioFilhow_ has quit IRC
[13:07:48] <drag0nius> but angular app still depends on old states?
[13:07:52] <eirikb> A dynamic menu? Ordering of the menu, one state can occur twice
[13:07:52] <drag0nius> your app stops working
[13:08:02] *** g33k5z has joined #angularjs
[13:08:09] *** pknordic_ has quit IRC
[13:08:28] <drag0nius> so what you want is load menu config, not state config from server
[13:08:32] <eirikb> drag0nius: The state is defined in the angular app, but the links to the states (ui-sref etc) is settings from server
[13:08:44] *** pknordic_ has joined #angularjs
[13:08:48] *** threesixes has quit IRC
[13:09:48] <drag0nius> you should make /menu endpoint on your server
[13:09:55] <drag0nius> which returns JSON list of menu options
[13:09:58] *** t0rrieri has quit IRC
[13:10:02] *** Akufen has quit IRC
[13:10:03] <drag0nius> and then handle that list with ng-repeat
[13:10:10] <drag0nius> for rendering proper menu
[13:10:11] *** tschundeee has joined #angularjs
[13:10:12] <eirikb> drag0nius: Yes that is what I got so far
[13:10:24] <drag0nius> then what is the problem?
[13:10:35] <eirikb> drag0nius: How do I load that menu data?
[13:10:45] *** JR___ has quit IRC
[13:11:12] *** gr33nw00d has quit IRC
[13:11:33] *** mmealling has quit IRC
[13:11:37] *** aslate has quit IRC
[13:11:55] <eirikb> drag0nius: What I do today is to load it two places, once in the first state, and the other in $urlRouterProvider.when. This works, and it is actually only loaded once because it's a factory, but it is a hack nevertheless
[13:11:55] *** ulkesh has quit IRC
[13:11:56] <drag0nius> someController($http){var that = this; $http(<do_magic>).then(function(menuList){that.menu = menuList});
[13:12:16] *** edy has joined #angularjs
[13:12:17] *** Sawbones has joined #angularjs
[13:12:19] <eirikb> I don't have a controller, I want to load the config before I configure ui-router
[13:12:26] <drag0nius> what for?
[13:12:40] *** ulkesh has joined #angularjs
[13:12:43] *** g33k5z has quit IRC
[13:12:47] *** bengillies has quit IRC
[13:12:48] <eirikb> Because I need it in $urlRouterProvider.when
[13:12:48] <drag0nius> why exactly do you need it loaded before configuration, if you are rendering it after?
[13:12:52] *** japhar81 has quit IRC
[13:13:25] *** sandelius has joined #angularjs
[13:13:32] <crised> How is this service being created: angular.module('yourModule').service('pollSvc', function($interval) {
[13:13:48] *** rafagomes has quit IRC
[13:13:48] <crised> it it via provider,factory,service?
[13:14:05] *** rafagomes has joined #angularjs
[13:14:29] *** mlpug has joined #angularjs
[13:14:34] *** sebhoss has joined #angularjs
[13:14:56] *** glitch-h_ has joined #angularjs
[13:15:01] *** Pamu has joined #angularjs
[13:15:06] <drag0nius> eirikb: why do you need it in $urlRouterProvider.when? you just said you need it for rendering menu
[13:15:21] <eirikb> drag0nius: I want to select the first menu item by default
[13:15:26] *** jaeming1 has joined #angularjs
[13:15:52] <drag0nius> eirikb: then i bet there is some goToState function in ui-router
[13:16:13] <drag0nius> which you could use right after loading menu list
[13:16:13] <eirikb> drag0nius: There is a $state.go, yes. That does not help me though
[13:16:28] *** Pamu has left #angularjs
[13:16:35] <imjoshholloway> Guys, I have a directive this contains a form.. from the parent controller I need to reset the form and reset the pristine state of the form - any ideas on how I could do this?
[13:16:46] <drag0nius> eirikb: what is the problem with it?
[13:16:49] *** glitch-hat has quit IRC
[13:17:13] *** Sawbones has quit IRC
[13:17:24] <eirikb> drag0nius: If I go to the second menu, and hit F5 I want the normal routing to take me to the second item, if I have a $state.go in there the first one will be selected instead
[13:17:41] *** cheef has joined #angularjs
[13:18:03] <drag0nius> eirikb: check location, if it's empty then go to first item
[13:18:07] *** leehamble has joined #angularjs
[13:18:19] <drag0nius> eirikb: otherwise dont
[13:18:58] <eirikb> drag0nius: I'm not sure if that will work? I don't think $stateParams of the parent state will know what the child state parameter is at least. I must admit I didn't check $location
[13:19:06] *** omsmith_ has quit IRC
[13:19:28] <cheef> guys with ui-router can i prevent a state transition using onexit?
[13:19:28] *** dnull has joined #angularjs
[13:19:32] <drag0nius> eirikb: if (!$location.path()) {$state.go(...)}
[13:19:35] *** shaisnir has joined #angularjs
[13:19:56] *** jaeming1 has quit IRC
[13:20:01] *** mdcox has quit IRC
[13:20:10] <drag0nius> eirikb: then it won't go to default if it's already in some state
[13:21:04] *** jmverges has quit IRC
[13:21:13] *** leehamble has joined #angularjs
[13:22:18] *** leehambley has quit IRC
[13:22:42] *** jlebrech has quit IRC
[13:22:48] *** glitch-hat has joined #angularjs
[13:23:03] <eirikb> drag0nius: So similar to just checking location.hash then. I'm actually not sure what is more hacky, regexing $location or using my factory :P
[13:23:19] <fernandojsg> Does anyone know any good starting point for animate transitions between ngviews? I dont need so much eyecandy, just a simple slides or so between them
[13:23:28] *** jmverges has joined #angularjs
[13:23:29] <eirikb> drag0nius: What if I don't want sub-states to load thier own menu, but instead have everything preloaded so the app is more "snappy" once loaded?
[13:23:52] *** doodlehaus has quit IRC
[13:23:52] *** jaydubya has joined #angularjs
[13:24:02] *** sss2500_ has quit IRC
[13:24:25] <wafflej0ck> eirikb: haven't been following the whole conversation but preloading stuff is usually a good plan
[13:24:52] *** glitch-h_ has quit IRC
[13:24:53] <eirikb> wafflej0ck: Good as in something I should do?
[13:25:16] *** evotuned has joined #angularjs
[13:25:19] <wafflej0ck> eirikb: yeah if you aren't dealing with a huge payload you are better off just transferring what you'll likely need up front
[13:25:39] *** glitch-h_ has joined #angularjs
[13:26:14] <eirikb> wafflej0ck: I need this data in app.config, is that possible? Considering that $http is not directly available in app.config. Perhaps in a factory from another module?
[13:26:24] *** omsmith has joined #angularjs
[13:26:48] <drag0nius> eirikb: i still don't get why you insist on loading it in app.config
[13:26:51] <wafflej0ck> eirikb: nope unfortunately you can't use any services/factories in config
[13:27:01] *** bberry_ has quit IRC
[13:27:04] *** Zdomb has joined #angularjs
[13:27:09] *** tangorri has joined #angularjs
[13:27:09] <drag0nius> eirikb: you definitely do not need it during config
[13:27:33] <cheef> guys with ui-router can i prevent a state transition using onexit?
[13:27:33] <tangorri> hey nobody notices a openssl certificate error while gem install ?
[13:27:34] <eirikb> drag0nius: What if I consider using $location as a hack?
[13:27:35] *** denny009 has joined #angularjs
[13:27:42] <cheef> want to present a model before state transition
[13:27:46] <cheef> modal*
[13:27:52] <eirikb> Perhaps I feel that regex on $location is a bit brittle
[13:27:59] <denny009> hello all somenone has familiarity with jasmine or it's the wrong place?
[13:28:09] <drag0nius> eirikb: you don't need regex, $location.path() returns current ui.route path
[13:28:11] <eirikb> wafflej0ck: Ok. Thanks
[13:28:30] <drag0nius> eirikb: if it's not present it means you should load your defaults
[13:28:38] *** glitch-hat has quit IRC
[13:28:38] <eirikb> drag0nius: As a nested object with the path, or as .. a string?
[13:28:38] *** zeknox has quit IRC
[13:28:56] <drag0nius> eirikb: as a string, everything after # sign
[13:28:57] <wafflej0ck> denny009: not the worst place
[13:29:05] *** lexek_ has quit IRC
[13:29:08] *** __danimal__ has joined #angularjs
[13:29:16] *** glitch-h_ has quit IRC
[13:29:27] <eirikb> drag0nius: And if my menu structure is at least two levels deep, wouldn't that mean some good old regexing on that string?
[13:29:30] *** Valion_ has joined #angularjs
[13:29:32] *** lexek_ has joined #angularjs
[13:29:38] *** OhShazzbot has joined #angularjs
[13:29:43] *** Greed` has joined #angularjs
[13:29:44] *** MaxV_ has joined #angularjs
[13:29:47] <drag0nius> eirikb: so you want load defaults for every level of nesting?
[13:29:56] <eirikb> drag0nius: Sure
[13:30:01] *** tripu has joined #angularjs
[13:30:01] <denny009> ah ok wafflej0ck could I pastebin a piece of my controller and take a look one second? there's one thing that I'm not able to understand when I do async call
[13:30:04] <wafflej0ck> Zdomb: what are you actually trying to accomplish?
[13:30:26] *** goranradulovic has quit IRC
[13:30:26] <wafflej0ck> denny009: sure I can take a look not sure I'll have an answer though I only know basics of writing test code
[13:30:32] *** evotuned has quit IRC
[13:31:00] <drag0nius> eirikb: i see there is something like this in docs: $state.$current
[13:31:28] <Zdomb> wafflej0ck - i need to trigger some functions in scope after fileupload complete in iframe
[13:31:41] *** seriema has quit IRC
[13:31:51] <drag0nius> eirikb: but generally my knowledge of ui.router ends here, it's my 5th day with angular overally :P
[13:32:08] *** seriema has joined #angularjs
[13:32:25] *** MaxV has quit IRC
[13:32:34] <wafflej0ck> yeah between $state.current and $state.contains and maybe using a service/factory or .value or something you shouldn't really need to be parsing anything from the URL yourself
[13:32:40] *** DrMabuse_ has joined #angularjs
[13:32:52] <wafflej0ck> Zdomb: hmm k any reason you're not just using ngFileUpload or the like?
[13:32:55] *** sh4zzb0t has quit IRC
[13:32:55] *** Valion__ has quit IRC
[13:32:55] *** Greed has quit IRC
[13:33:02] <denny009> ok wafflej0ck this's the controller with the test
[13:33:16] *** Superhard has joined #angularjs
[13:33:41] *** jlebrech has joined #angularjs
[13:34:26] *** dannyc_ has joined #angularjs
[13:34:36] <denny009> wafflej0ck: the thing that I'm not able to understood is why in the first test I'm able to see the content of the reply and in the second not? or in other word with the first test I'm able to see line 25 with the second test nope
[13:34:58] *** Cydmax has quit IRC
[13:35:10] *** elliotst_ has quit IRC
[13:35:23] <drag0nius> i've some weird problem with restangular, i've Restangular.all('product-types').getList().then(...)
[13:35:32] *** Ch4rAss has quit IRC
[13:35:39] *** Cydmax has joined #angularjs
[13:35:41] <drag0nius> but value inside then is a list of 'undefined' instead of objects
[13:35:43] <denny009> wafflej0ck: so I must comment the last lines because when I put a brackpoint inside my controller It doesn't take the reply
[13:36:00] <drag0nius> server correctly returns a list
[13:36:19] *** DrMabuse has quit IRC
[13:36:43] *** Sbrun has joined #angularjs
[13:36:49] *** pknordic_ has quit IRC
[13:36:57] *** seriema has quit IRC
[13:37:08] *** djam90 has quit IRC
[13:37:56]
<dannyc_> hello all. i'm having some real problems using radio buttons in an ng-repeat. i kinda get that the issue is that each item in an ng-repeat creates it's own scope, but i can't find a solution. could any or all of you please take a look at this and tell me how i can have the 'Green' option selected? http://plnkr.co/edit/XtgcMmiEOvE6k2BITpSF?p=preview
[13:38:00] <dannyc_> many thanks in advance
[13:38:08] *** Nurbs has quit IRC
[13:38:46] <wafflej0ck> denny009: sorry coffeescript makes it harder for me to read really, but also only see the one test here?
[13:38:51] *** SahanH has joined #angularjs
[13:39:36] *** chr1stopher has quit IRC
[13:40:02] *** Hounddog_ has quit IRC
[13:40:07] *** vonnegut has joined #angularjs
[13:40:14] <eirikb> drag0nius: I think my current solution is not super, but it works. I was hoping a module dependency would help, but I see now it won't. I will keep to my current hack, as I feel it is the prettiest hack, yet not great. Thanks for input
[13:40:18] *** josh-k has joined #angularjs
[13:40:18] <denny009> wafflej0ck: yes sorry I've removed the test that work and leave the test that doesn't work...
[13:40:50] <denny009> wafflej0ck: but the question is the same...why I'm not able to see the reply of the server?
[13:40:54] *** bullicon has quit IRC
[13:41:04] *** elyssonmr has quit IRC
[13:41:14] <wafflej0ck> eirikb: yeah seems like the best way for now believe you can also modify the states outside the config if you need to as well
[13:41:18] <drag0nius> ok i found the issue with restangular, i did not return the element from within transformer
[13:41:23] *** pknordic_ has joined #angularjs
[13:41:42] *** elyssonmr has joined #angularjs
[13:42:17] *** dan2k3k4 has quit IRC
[13:42:25] *** Sbrun has quit IRC
[13:42:35] *** doodlehaus has joined #angularjs
[13:42:46] *** jstroem has quit IRC
[13:43:09] <wafflej0ck> denny009: typically you just need to setup your spys, setup any httpBackend mock handlers you want to have then you make calls on the controller or service functions or whatever and use $httpBackend.flush() to trigger all the $http based calls to resolve
[13:43:11] *** rikko has joined #angularjs
[13:43:14] *** phzon has quit IRC
[13:43:28] *** jlebrech has quit IRC
[13:43:31] *** leehamble has quit IRC
[13:43:37] <wafflej0ck> ah well setup expectations* I left out
[13:43:45] <denny009> wafflej0ck: is the same thing that i've done...spy and flush
[13:43:49] *** pilva has quit IRC
[13:44:15] *** sk87 has joined #angularjs
[13:44:31] *** leehambley has joined #angularjs
[13:44:41] *** bullicon has joined #angularjs
[13:46:15] *** kuzz0 has joined #angularjs
[13:47:15] <cheef> any ideas on how to use a modal on state transition using ui-router?
[13:47:22] *** frem has quit IRC
[13:47:40] *** rikko has quit IRC
[13:47:53] *** doodlehaus has quit IRC
[13:49:06] <wafflej0ck> cheef: check out onEnter
[13:49:06] *** akrikos has joined #angularjs
[13:49:31] <drag0nius> how can i output variable without escaping <br> ?
[13:49:36] <wafflej0ck> denny009: yeah sorry that's about where my knowledge of testing with angular ends
[13:50:11] <cheef> wafflej0ck: onexit works, but i cant prevent the state transition
[13:50:25] <cheef> $startChangeStart > onExit fired > $stateChangeSuccess
[13:50:26] *** sk87 has quit IRC
[13:50:31] *** IsraelOrtuno has quit IRC
[13:50:48] <wafflej0ck> cheef: maybe just don't handle the modal with a state
[13:51:19] <wafflej0ck> drag0nius: not sure what you're asking
[13:51:26] <cheef> how else could we do it? i dont want the state to transition unless the modal is clicked "yes"
[13:51:56] <cheef> ideally i dont even want it to start, but i need a trigger to show the modal on trying to click outside the state (nested state)
[13:51:59] *** dan2k3k4 has joined #angularjs
[13:52:14] <drag0nius> wafflej0ck: nvm, i'll just use white-space: pre with newlines in a string
[13:52:25] <wafflej0ck> you can just have the modal return something to the controller that uses it or triggers a callback when closed to then trigger the state change
[13:52:36] *** mchapman has quit IRC
[13:52:44] <wafflej0ck> cheef: ^
[13:53:07] <cheef> how would i trigger the modal though?
[13:53:18] <wafflej0ck> cheef: ui-bootstrap one you just use a service to open it
[13:53:22] <cheef> ye im using that
[13:53:24] <wafflej0ck> like $modal.open(options)
[13:53:36] *** lsiv568 has joined #angularjs
[13:53:57] *** evanjs has quit IRC
[13:53:58] <wafflej0ck> so the return from open has result
[13:54:02] *** alpha080 has joined #angularjs
[13:54:04] <wafflej0ck> result - a promise that is resolved when a modal is closed and rejected when a modal is dismissed
[13:54:04] <cheef> if ive got some [content][nav] and the user clicks in the nav (i.e. initiates a state transition) then i want to the modal to popup
[13:54:06] <crised> jaawerth: is it ok to call you service like this? pollSvc.startPolling(); $scope.markers = pollSvc.markers;
[13:54:29] *** evanjs has joined #angularjs
[13:54:36] *** azizur has quit IRC
[13:54:39] <wafflej0ck> cheef: yeah so I would just do that in a controller that handles the navigation instead of trying to hook into the state transitions
[13:54:41] <cheef> its tied to a state transition, rather than some user action inside a particaly state
[13:55:04] <cheef> oh i see
[13:55:07] *** mchapman has joined #angularjs
[13:55:20] <wafflej0ck> cheef: you can certainly try what you're doing too for something more generic but no doubt you'll be reading ui-router source :)
[13:55:30] <cheef> not bothered about generic at the mo :)
[13:56:04] <cheef> i just need to nav to update the state for the current view
[13:56:17] *** adben has quit IRC
[13:56:17] *** daivyk has joined #angularjs
[13:56:24] <cheef> ack, popping for lunch - think on a full stomach!
[13:56:57] *** chr1stopher has joined #angularjs
[13:57:07] *** evilaliv3 has quit IRC
[13:57:10] *** fernandojsg has quit IRC
[13:57:36] <dnull> Hey wafflej0ck, whats up man?
[13:57:37] *** imjoshholloway has quit IRC
[13:58:06] <wafflej0ck> dnull: not too much just been a bit busy so away from the chat for a few
[13:58:39] *** knoopx has joined #angularjs
[13:58:40] <dnull> wafflej0ck Ahh... must be getting ready for holidays. :)
[13:58:57] *** evanjs has quit IRC
[13:59:10] *** aslate has joined #angularjs
[13:59:51] *** johnnyfive has joined #angularjs
[13:59:59] *** tarnus has quit IRC
[14:00:12] *** tarnus has joined #angularjs
[14:00:14] *** elrabin has joined #angularjs
[14:01:01] *** MattWelch has joined #angularjs
[14:01:52] *** bin has joined #angularjs
[14:01:57] *** Txandy has quit IRC
[14:02:26] *** tschundeee has quit IRC
[14:02:54] *** Rebirth has quit IRC
[14:03:20] <bin> can i somehow make karma run particular file ?
[14:03:24] *** sixr420 has quit IRC
[14:03:29] *** elliotstokes has joined #angularjs
[14:03:36] <bin> i mean somehow to pass the file as an argument and karma run it ..
[14:03:44] *** sixr420 has joined #angularjs
[14:03:51] *** SergioFilhow_ has joined #angularjs
[14:04:07] *** jstroem has joined #angularjs
[14:04:30] *** Oxynum has joined #angularjs
[14:04:43] *** loverajoel has joined #angularjs
[14:04:56] *** tschunde_ has joined #angularjs
[14:04:57] *** defaultdict has joined #angularjs
[14:05:03] *** jdj_dk has joined #angularjs
[14:05:08] *** dnull has quit IRC
[14:05:08] *** Sebastien-L has joined #angularjs
[14:05:14] *** elrabin has quit IRC
[14:05:16] *** dgrebb has joined #angularjs
[14:05:20] *** doodlehaus has joined #angularjs
[14:05:46] *** evilaliv3 has joined #angularjs
[14:05:51] *** elrabin has joined #angularjs
[14:05:57] *** Rebirth has joined #angularjs
[14:06:02] *** knoopx has left #angularjs
[14:06:17] *** kalz has quit IRC
[14:06:26] *** t0rrieri has joined #angularjs
[14:06:49] <wafflej0ck> bin: usign grunt?
[14:06:51] *** boxmein has joined #angularjs
[14:06:52] <wafflej0ck> using*
[14:07:09] *** swist has joined #angularjs
[14:07:11] <bin> well yeah i have grunt
[14:07:17] <bin> but i can't imagine the karma config
[14:07:26] <bin> yeahhh how to use these client.args
[14:08:02] <bin> oook i will check it in details .. thanks wafflej0ck
[14:08:31] *** SergioFilhow_ has quit IRC
[14:08:45] *** denny009 has quit IRC
[14:08:59] *** dgrebb has left #angularjs
[14:09:14] <wafflej0ck> bin: yeah np not sure about the details let me know if that works out
[14:09:35] *** Ephemeral has quit IRC
[14:09:52] *** \du has joined #angularjs
[14:09:56] *** e0ipso|away is now known as e0ipso
[14:09:57] *** elrabin has quit IRC
[14:10:07] *** Sbrun has joined #angularjs
[14:10:09] *** cakirke has quit IRC
[14:10:13] *** \du has quit IRC
[14:10:13] *** \du has joined #angularjs
[14:10:18] *** CanyonMan has quit IRC
[14:10:28] *** doodlehaus has quit IRC
[14:10:33] *** b1rkh0ff1 has quit IRC
[14:10:37] *** t0rrieri has quit IRC
[14:10:49] *** b1rkh0ff has joined #angularjs
[14:10:49] *** zwacky_ has joined #angularjs
[14:10:51] *** eirikb has quit IRC
[14:11:04] *** bengillies has joined #angularjs
[14:12:17] *** jonasliljestrand has quit IRC
[14:12:53] *** cheef has quit IRC
[14:13:31] *** kaiserleo has joined #angularjs
[14:13:34] *** BahamutWC|Work has quit IRC
[14:13:57] *** BahamutWC|Work has joined #angularjs
[14:14:52] <kaiserleo> hello everyone. has somebody tried to load a local file as a result for an $httpbackend?
[14:15:04] *** kalz has joined #angularjs
[14:15:32] *** kas84 has quit IRC
[14:16:32] *** Ephemeral has joined #angularjs
[14:18:04] *** jheady has joined #angularjs
[14:18:30] *** pilva has joined #angularjs
[14:18:36] *** sk87 has joined #angularjs
[14:18:46] *** kp666 has quit IRC
[14:18:57] *** recidive has joined #angularjs
[14:19:08] *** atomical has quit IRC
[14:19:23] *** kuzzz0 has joined #angularjs
[14:19:25] *** dan2k3k4 has quit IRC
[14:19:32] *** sandelius has quit IRC
[14:19:38] <crised> jaawerth: the gist you sent me yesterday has errors according to my tests
[14:19:54] *** dan2k3k4 has joined #angularjs
[14:20:19] *** atomical has joined #angularjs
[14:21:00] *** kuzz0 has quit IRC
[14:21:16] *** dobladez has joined #angularjs
[14:21:31] *** jheady has left #angularjs
[14:22:22] *** marcjs has joined #angularjs
[14:22:44] *** Sbrun has quit IRC
[14:23:57] *** boneskull has quit IRC
[14:24:33] *** boneskull has joined #angularjs
[14:24:34] *** fedenunez has joined #angularjs
[14:25:55] *** phzon has joined #angularjs
[14:26:00] *** evotuned has joined #angularjs
[14:26:26] *** edzez__ is now known as edzez
[14:26:48] *** ahtik has joined #angularjs
[14:27:08] *** tschunde_ has quit IRC
[14:27:47] *** tschundeee has joined #angularjs
[14:34:59] *** Akufen has joined #angularjs
[14:35:02] *** boneskull has quit IRC
[14:35:04] *** JeffBuhrt has quit IRC
[14:35:05] *** ericbutters has quit IRC
[14:35:12] *** NanoArro1 has quit IRC
[14:35:15] *** evotuned has quit IRC
[14:35:16] *** peldan_ has quit IRC
[14:35:18] <tty> anyone can help?
[14:35:40] *** peldan has joined #angularjs
[14:35:50] *** tschundeee has quit IRC
[14:35:51] *** jaydubya has quit IRC
[14:35:52] *** NanoArro1 has joined #angularjs
[14:35:52] *** ingsoc has quit IRC
[14:35:52] *** Sbrun has joined #angularjs
[14:35:53] *** deanclkclk has joined #angularjs
[14:36:17] *** hozs has joined #angularjs
[14:36:22] *** htmelvis has joined #angularjs
[14:36:24] *** xxMatiasFCxx has quit IRC
[14:36:51] *** xxMatiasFCxx has joined #angularjs
[14:37:13] *** nabdev has joined #angularjs
[14:37:13] *** Sbrun is now known as Nurbs
[14:37:13] *** nabdev has quit IRC
[14:37:13] *** nabdev has joined #angularjs
[14:37:24] *** fairuz has quit IRC
[14:37:43] *** mccarrontr1ck has joined #angularjs
[14:37:51] *** fairuz has joined #angularjs
[14:38:11] *** sk87 has quit IRC
[14:39:02] *** kaiserleo has quit IRC
[14:39:37] <wafflej0ck> tty: personally I was trying to use the google maps directive that's out there and had a bunch of custom stuff I wanted to do that was pretty easy with Google maps itself so I just implemented my own directive to do the things I needed and work with the maps API directly, might be worth it for you too
[14:39:39] *** danecando has quit IRC
[14:40:23] *** bayousoft has joined #angularjs
[14:41:00] *** mmealling has joined #angularjs
[14:41:26] *** tga0 has quit IRC
[14:42:23] <Zdomb> wafflej0ck, hmmm... nice... thanks
[14:42:40] *** smurby has joined #angularjs
[14:42:53] <tty> wafflej0ck: sounds like a good practice. i am just exploring the capabilities of leaflet now that i am interested in. i will also probably go for a custom directive sooner or later. :)
[14:42:55] *** JeffBuhrt has joined #angularjs
[14:43:02] *** jdj_dk has quit IRC
[14:43:36] *** IJNX has quit IRC
[14:43:37] *** TeddyMurray has quit IRC
[14:44:26] *** ahtik has quit IRC
[14:45:37] *** davidreis has joined #angularjs
[14:45:38] *** g33k5z has joined #angularjs
[14:46:23] *** tga0 has joined #angularjs
[14:46:23] *** phoenixw has joined #angularjs
[14:46:24] *** caitp has joined #angularjs
[14:47:00] *** boneskull has joined #angularjs
[14:47:10] *** dan2k3k4k5 has joined #angularjs
[14:47:29] *** webbananaboy has joined #angularjs
[14:47:57] *** htmelvis has quit IRC
[14:48:07] *** g33k5z has quit IRC
[14:48:22] *** frobs has quit IRC
[14:48:27] *** g33k5z has joined #angularjs
[14:48:58] *** ingsoc has joined #angularjs
[14:49:57] *** dan2k3k4 has quit IRC
[14:50:36] *** webbananaboy has quit IRC
[14:50:36] *** KushS has joined #angularjs
[14:50:51] *** phoenixw has quit IRC
[14:51:08] *** dan2k3k4 has joined #angularjs
[14:51:11] *** webbananaboy has joined #angularjs
[14:52:23] *** jaredwilli has joined #angularjs
[14:52:25] <tga0> with ui-router if I have a controller for the whole page and then a view loaded with its own controller
[14:52:51] *** annlewis has joined #angularjs
[14:52:56] <tga0> can the main page controller redirect to another view, independently of what the child controller is doing?
[14:53:09] <tga0> I'm not too sure how multiple controllers interact on the same page
[14:53:17] *** SargoDarya has quit IRC
[14:53:38] *** Sbrun has joined #angularjs
[14:54:09] *** SoulBlade has joined #angularjs
[14:54:15] *** dmamillzzzzzzzz is now known as dmamills
[14:54:25] *** dan2k3k4k5 has quit IRC
[14:54:26] <zwacky_> tga0 yeah sure, that's possible
[14:54:32] *** zwacky_ is now known as zwacky
[14:54:34] *** redmagic has joined #angularjs
[14:54:56] <zwacky> tga0 it's all about scope. you start with the most inner controller and work your way up
[14:55:32] *** ortho has joined #angularjs
[14:55:34] *** SargoDarya has joined #angularjs
[14:55:43] *** gr33nw00d has joined #angularjs
[14:56:18] *** Nurbs has quit IRC
[14:56:34] *** b1rkh0ff has quit IRC
[14:56:58] <ortho> when submitting form via ajax, i use $setValidity if server side validation throws error, but it only updates $error array but field is still $valid
[14:56:58] *** Anton_ has quit IRC
[14:56:59] *** cbennett has joined #angularjs
[14:56:59] *** b1rkh0ff has joined #angularjs
[14:57:01] *** Nurbs has joined #angularjs
[14:57:09] *** cbennett has quit IRC
[14:57:30] <ortho> it doesn't update in my view (doesn't show error message)
[14:57:31] <redmagic> Hi, it seems that controller as is not working? e.g. in <div ng-controller="SomeController as ctrl"><botton ng-click="ctrl.do()">Do it</button></div>
[14:57:56] *** lolmaus has joined #angularjs
[14:58:22] <tga0> zwacky: so the innermost controller runs first?
[14:58:24] <lolmaus> Which part of Angular corresponds to the Model concept?
[14:58:30] <tga0> none, hah
[14:58:37] *** Sbrun has quit IRC
[14:58:44] *** SoulBlade has quit IRC
[14:58:45] *** knoopx1 has joined #angularjs
[14:58:58] <zwacky> tga0 yep
[14:59:01] <tga0> zwacky: I'm trying to redirect from my AppController and nothing happens, as far as I can tell my child controller still runs
[14:59:10] <lolmaus> tga0: huh?
[14:59:11] *** Zdomb has quit IRC
[14:59:21] <tga0> logic is AppController checks for login, data, etc, then tries to redirect to a login page
[14:59:21] <ortho> anyone?
[14:59:24] *** elliotst_ has joined #angularjs
[14:59:32] <tga0> and if that succeeds, then the actual view controller and the page should kick in
[14:59:45] <zwacky> why not putting that into a service?
[15:00:05] <tga0> I still need to redirect on missing data
[15:00:07] <ortho> anyone?
[15:00:27] *** gr33nw00d has quit IRC
[15:00:29] <tga0> what I see with some debug statements is that the app controller runs, tries to set $state to something else -- and nothing happens
[15:00:30] <zwacky> yeah, so you state.go(x)
[15:00:36] *** macabre has joined #angularjs
[15:00:37] <tga0> then the page controller runs and complains about missing data
[15:00:48] <zwacky> missing data?
[15:00:59] <tga0> no idea ortho sorry
[15:01:03] *** Sawbones has joined #angularjs
[15:01:06] <tga0> zwacky: logged in user
[15:01:13] *** rafagomes has quit IRC
[15:01:22] *** CodeFriar has joined #angularjs
[15:01:26] <tga0> structure is like /app/page1, where app is an abstract state with AppController
[15:01:29] *** rafagomes has joined #angularjs
[15:01:37] *** elliotstokes has quit IRC
[15:01:40] <tga0> I am trying to check for, say, a logged in user in AppController
[15:01:47] <tga0> the idea being that if I don't have one, then I redirect to /login
[15:01:53] *** rafagomes has quit IRC
[15:02:01] <tga0> and if I do have one, then I continue on with page1, Page1Controller
[15:02:13] <zwacky> you will only check that once when the webapp is loaded?
[15:02:15] <tga0> what I see though is that AppController does a $state.go('/login') -- and nothing happens
[15:02:18] *** danecando has joined #angularjs
[15:02:28] *** rafagomes has joined #angularjs
[15:02:38] <tga0> and then Page1Controller runs and can't find a user, all ajax fails, etc
[15:02:41] <zwacky> you mean more like $state.go('app.login')?
[15:02:58] <tga0> yes, 'outside.login'
[15:03:07] *** ciwolsey has joined #angularjs
[15:04:30] <zwacky> you fetched that logged in user in your AppController and you want to re-use it in Page1Controller tga0?
[15:04:58] *** Anton_ has joined #angularjs
[15:05:23] *** Sawbones has quit IRC
[15:05:51] *** ortho has quit IRC
[15:06:14] *** kroogs has joined #angularjs
[15:06:32] *** Hounddog has joined #angularjs
[15:06:57] *** tschundeee has joined #angularjs
[15:07:11] *** rafagomes has quit IRC
[15:07:12] *** t0rrieri has joined #angularjs
[15:07:17] *** redmagic has quit IRC
[15:07:26] *** tristanp has joined #angularjs
[15:07:39] *** goranradulovic has joined #angularjs
[15:09:02] *** Sawbones has joined #angularjs
[15:09:22] *** mlpug has quit IRC
[15:09:29] *** juanpablo_ has joined #angularjs
[15:09:34] *** jpstone has joined #angularjs
[15:09:49] *** b1rkh0ff1 has joined #angularjs
[15:10:08] *** goranrad_ has joined #angularjs
[15:10:40] *** leolrrj has quit IRC
[15:10:50] *** b1rkh0ff has quit IRC
[15:11:04] *** kroogs has quit IRC
[15:11:50] *** t0rrieri has quit IRC
[15:12:15] *** ggrzybek is now known as ggrzybek_brb
[15:12:25] *** BillCriswell has joined #angularjs
[15:12:30] *** goranradulovic has quit IRC
[15:12:39] *** japhar81 has joined #angularjs
[15:13:27] *** Anton_ has quit IRC
[15:14:23] *** g33k5z has quit IRC
[15:14:35] *** prosper_ has joined #angularjs
[15:14:56] *** Lewix has joined #angularjs
[15:15:14] *** Lewix has quit IRC
[15:15:14] *** Lewix has joined #angularjs
[15:16:05] *** bmac has joined #angularjs
[15:16:07] *** scythe__ has joined #angularjs
[15:16:10] *** mica has joined #angularjs
[15:16:27] *** mica has left #angularjs
[15:17:07] *** darrin has joined #angularjs
[15:17:13] *** tristanp has quit IRC
[15:17:35] *** knoopx1 has left #angularjs
[15:17:54] <zwacky> lewix, try using <div mydirective boolean-spinner="booleanSpinner">
[15:17:57] *** KushS has quit IRC
[15:18:12] *** KushS has joined #angularjs
[15:18:14] <drag0nius> what does ngInclude: undefined mean?
[15:19:03] <Lewix> zwacky: you're amazing
[15:19:04] <drag0nius> ohh, i didn't quote url
[15:19:05] *** doodlehaus has joined #angularjs
[15:19:09] *** deanclkclk has quit IRC
[15:19:10] *** Linell has joined #angularjs
[15:19:20] <zwacky> Lewix aww stawp it :>
[15:19:31] *** elrabin has joined #angularjs
[15:19:34] *** tripu has quit IRC
[15:21:20] <drag0nius> how can i pass values to child controller?
[15:21:25] *** SexualRickshaw has joined #angularjs
[15:21:35] *** Anton_ has joined #angularjs
[15:21:52] *** knownasilya has joined #angularjs
[15:22:37] *** tristanp has joined #angularjs
[15:22:38] *** KushS has quit IRC
[15:22:41] *** jaredwilli has quit IRC
[15:22:54] <zwacky> drag0nius a clean solution might be using services to talk with each other
[15:23:50] *** b1rkh0ff1 has quit IRC
[15:24:58] *** elrabin has quit IRC
[15:25:08] *** Sbrun has joined #angularjs
[15:25:13] *** frankbli_ has joined #angularjs
[15:25:26] *** naneau has joined #angularjs
[15:25:28] *** foofoobar has joined #angularjs
[15:25:37] *** richiebkr has joined #angularjs
[15:25:41] *** elrabin has joined #angularjs
[15:25:59] *** b1rkh0ff has joined #angularjs
[15:26:33] *** Seich has quit IRC
[15:26:46] *** evotuned has joined #angularjs
[15:26:47] *** ron1 has joined #angularjs
[15:26:54] *** Nurbs has quit IRC
[15:27:50] *** frankblizzar has quit IRC
[15:28:13] *** spatialbrew has joined #angularjs
[15:28:43] *** FIFOd[a] has joined #angularjs
[15:28:47] *** bayousoft has quit IRC
[15:29:00] *** wmbutler has joined #angularjs
[15:29:12] *** bayousoft has joined #angularjs
[15:29:25] *** Seich has joined #angularjs
[15:29:29] *** b1rkh0ff1 has joined #angularjs
[15:29:57] *** elrabin has quit IRC
[15:30:00] *** richiebkr has quit IRC
[15:30:20] <dannyc_> wafflej0ck: I think you may have replied to my message, but I was in a meeting, and now I can't see it! :/
[15:30:36] *** elrabin has joined #angularjs
[15:30:38] *** deanclkclk has joined #angularjs
[15:30:40] *** b1rkh0ff has quit IRC
[15:31:04] <dannyc_> dagingaa_: thank you
[15:31:28] <wafflej0ck> dannyc_: ah yeah just needed ng-value instead of value it seemed like
[15:31:42] *** evotuned has quit IRC
[15:31:49] *** annlewis has quit IRC
[15:32:02] *** rikko has joined #angularjs
[15:32:08] *** chr1stopher has quit IRC
[15:32:48] <dannyc_> wafflej0ck: Sacrebleu! thank you so much, been really banging my head against the wall with that. it's always the simplest things.
[15:33:11] *** elrabin has quit IRC
[15:33:24] *** gauravsaini03 has quit IRC
[15:33:43] *** jaredwilli has joined #angularjs
[15:33:44] *** elrabin has joined #angularjs
[15:34:09] *** g33k5z has joined #angularjs
[15:34:09] *** jmckind has joined #angularjs
[15:34:23] *** Una has joined #angularjs
[15:34:49] *** goranrad_ has quit IRC
[15:36:05] *** spaceonline has quit IRC
[15:36:47] *** rikko has quit IRC
[15:37:44] *** visualshock has joined #angularjs
[15:37:50] *** numenor has joined #angularjs
[15:38:02] *** elrabin has quit IRC
[15:38:08] *** nc90 has joined #angularjs
[15:38:14] *** rho_ has joined #angularjs
[15:38:14] *** rho_ has joined #angularjs
[15:38:15] *** numenor has quit IRC
[15:38:16] *** nc90 has quit IRC
[15:38:26] *** zwacky has quit IRC
[15:39:32] <wafflej0ck> dannyc_: np
[15:40:00] *** pxz has quit IRC
[15:40:18] *** Una has quit IRC
[15:42:11] *** shinnya has joined #angularjs
[15:42:25] *** b1rkh0ff1 has quit IRC
[15:42:33] *** pxz has joined #angularjs
[15:42:42] *** sahbeewah has quit IRC
[15:42:44] *** JohnBat26 has quit IRC
[15:43:30] *** mven has joined #angularjs
[15:43:35] *** beckyconning_ has joined #angularjs
[15:44:45] *** kas84 has joined #angularjs
[15:45:17] *** rho_ is now known as rho
[15:45:23] *** b1rkh0ff has joined #angularjs
[15:46:42] *** ggrzybek_brb is now known as ggrzybek
[15:47:00] *** Tak0r|Work has joined #angularjs
[15:47:11] *** neilff has joined #angularjs
[15:47:50] <Tak0r|Work> anyone here who is farmilliar with angular-gantt?
[15:47:54] *** alpha080 has quit IRC
[15:47:58] *** jstroem has quit IRC
[15:48:18] *** walden|afk is now known as walden
[15:48:19] *** evanjs has joined #angularjs
[15:48:20] <fixxxermet> Hey everyone. Looking for some help with submitting a form via angular. The submit technically works but the JSON data is in the wrong format.
[15:48:22] *** alex_zhou has joined #angularjs
[15:48:29] <fixxxermet> I'm able to submit data successfully with curl.
[15:48:35] *** dsdeiz has quit IRC
[15:48:48] *** alinou has quit IRC
[15:48:53] *** Txandy has joined #angularjs
[15:49:46] *** bayousoft has quit IRC
[15:50:11] *** mica has joined #angularjs
[15:50:23] *** nemothekid has joined #angularjs
[15:50:27] *** bayousoft has joined #angularjs
[15:50:51] *** mica has left #angularjs
[15:51:42] *** leehambley has quit IRC
[15:51:54] *** zwacky has joined #angularjs
[15:52:09] *** wmbutler has quit IRC
[15:52:33] *** SergioFilhow_ has joined #angularjs
[15:52:50] *** zwischenzug3 has quit IRC
[15:54:28] <lite_> how do I go about passing data to a parent scope through the '&' binding? basically I'd like to do ng-click="doFoo(keyChanged, valueChanged)" on a child scope
[15:54:44] <lite_> ive referenced doFoo through the '&' annotation
[15:55:57] *** Snugug has joined #angularjs
[15:56:11] *** sonofdirt has joined #angularjs
[15:56:44] *** Snugug has quit IRC
[15:56:50] *** yoshokatana has joined #angularjs
[15:56:58] *** SergioFilhow_ has quit IRC
[15:57:25] <drag0nius> is there some objects merge function?
[15:57:30] <drag0nius> in opposite to .copy
[15:57:32] *** soee has quit IRC
[15:58:02] *** mary5030 has joined #angularjs
[15:58:04] *** merb has joined #angularjs
[15:58:26] *** sonofdirt has quit IRC
[15:58:55] *** ninjaparade has joined #angularjs
[15:58:59] *** boxmein has quit IRC
[15:59:08] *** plex0r has joined #angularjs
[15:59:21] *** dannyc_ has quit IRC
[15:59:27] *** Snugug has joined #angularjs
[15:59:43] *** macobo has quit IRC
[15:59:50] *** macobo has joined #angularjs
[16:00:13] *** juampy has quit IRC
[16:00:16] *** rtpg has joined #angularjs
[16:00:23] *** peldan_ has joined #angularjs
[16:01:29] *** g33k5z has quit IRC
[16:01:42] *** rtpg has quit IRC
[16:01:48] *** bayousoft has quit IRC
[16:02:00] *** b1rkh0ff1 has joined #angularjs
[16:02:13] *** dman777 has quit IRC
[16:02:28] *** bayousoft has joined #angularjs
[16:02:39] *** davidreis has quit IRC
[16:03:02] *** Caroga is now known as Caroga_afk
[16:03:06] *** jdcasey has joined #angularjs
[16:03:16] *** b1rkh0ff has quit IRC
[16:03:51] <tty> i have managed to enable clustering but i don’t want it to happen below zoom level 17. anyone used leaflet’s disableClusteringAtZoom with angularjs?
[16:03:57] *** jstroem has joined #angularjs
[16:04:02] *** peldan has quit IRC
[16:04:22] *** tristanp has quit IRC
[16:04:30] *** Silne30 has quit IRC
[16:04:51] *** leehambley has joined #angularjs
[16:05:17] *** IvailoStoianov has joined #angularjs
[16:05:39] *** dsdeiz has joined #angularjs
[16:05:43] *** davidreis has joined #angularjs
[16:05:52] *** Marble68 has quit IRC
[16:06:04] *** dacuca has joined #angularjs
[16:06:13] *** foofoobar has quit IRC
[16:06:59] *** dmack has joined #angularjs
[16:07:12] *** hozs has quit IRC
[16:07:57] *** dman777 has joined #angularjs
[16:07:58] *** t0rrieri has joined #angularjs
[16:08:00] *** plekplek has quit IRC
[16:08:06] *** doodlehaus has quit IRC
[16:08:34] *** chrisbirk has quit IRC
[16:09:15] *** FunnyLookinHat has joined #angularjs
[16:09:21] *** kotyy has joined #angularjs
[16:09:30] *** chrisbirk has joined #angularjs
[16:09:52] *** lrvick has quit IRC
[16:10:03] *** shackleford has joined #angularjs
[16:10:07] <tty> ok. found that. i used layerOptions: { disableClusteringAtZoom: 18 } in each overlay in layers.
[16:10:09] *** lrvick has joined #angularjs
[16:10:22] *** ggrzybek has quit IRC
[16:10:36] *** ggrzybek has joined #angularjs
[16:10:45] *** yev has joined #angularjs
[16:10:49] <tty> now how can i force clustering in overlays after a X zoom level?
[16:10:51] *** bayousoft has quit IRC
[16:11:17] *** bayousoft has joined #angularjs
[16:11:38] *** sk87 has joined #angularjs
[16:11:49] *** ome has quit IRC
[16:11:53] *** chrisbirk has quit IRC
[16:11:59] <fixxxermet> I figurd it out. Needed $.params(myvar)
[16:12:22] *** t0rrieri has quit IRC
[16:12:56] *** elyssonmr has quit IRC
[16:13:48] *** kotyy has quit IRC
[16:13:55] *** tristanp has joined #angularjs
[16:14:27] *** shackleford has quit IRC
[16:15:08] *** dcherman has joined #angularjs
[16:15:15] *** elyssonmr has joined #angularjs
[16:16:37] *** g33k5z_ has joined #angularjs
[16:16:37] *** fairuz has quit IRC
[16:16:51] *** kas84 has quit IRC
[16:17:27] *** Una has joined #angularjs
[16:18:14] *** williamtdr has joined #angularjs
[16:18:29] *** annlewis has joined #angularjs
[16:19:08] *** prosper_ has quit IRC
[16:19:35] *** oste has joined #angularjs
[16:20:29] *** rikko has joined #angularjs
[16:20:40] *** cthrax has joined #angularjs
[16:20:51] *** cbeacock1 has joined #angularjs
[16:21:22] *** IanOlson has joined #angularjs
[16:21:26] *** yev has quit IRC
[16:21:28] *** intellix has joined #angularjs
[16:21:39] *** doodlehaus has joined #angularjs
[16:21:51] *** sk87 has quit IRC
[16:23:34] *** merb has quit IRC
[16:23:58] *** jdivock has joined #angularjs
[16:24:15] *** adben has joined #angularjs
[16:25:11] *** DrMabuse_ has quit IRC
[16:26:09] *** MistahKurtz has joined #angularjs
[16:26:20] *** fairuz has joined #angularjs
[16:26:38] *** prosper_ has joined #angularjs
[16:26:48] *** CanyonMan has joined #angularjs
[16:27:04] *** bostonaholic has joined #angularjs
[16:27:04] *** Sky[x] has quit IRC
[16:27:30] *** Click66 has quit IRC
[16:27:30] *** dotsspwe has joined #angularjs
[16:27:33] *** evotuned has joined #angularjs
[16:27:35] *** shackleford has joined #angularjs
[16:27:36] *** t0rrieri has joined #angularjs
[16:27:41] *** dotsspwe has quit IRC
[16:27:54] *** cavallari has quit IRC
[16:27:56] *** dotsspwe has joined #angularjs
[16:28:05] *** Lewix has quit IRC
[16:28:32] *** rtpg has joined #angularjs
[16:28:39] *** shackleford has quit IRC
[16:29:10] *** peldan_ has quit IRC
[16:29:16] *** shackleford has joined #angularjs
[16:29:47] *** peldan has joined #angularjs
[16:31:02] <lolmaus> ng-book constantly mentiones models and views. Where are those in Angular, exactly?
[16:31:37] *** rafagomes has joined #angularjs
[16:32:08] *** afuggini has joined #angularjs
[16:32:11] *** evotuned has quit IRC
[16:32:23] *** whatadewitt has joined #angularjs
[16:32:47] *** kotyy has joined #angularjs
[16:32:48] <whatadewitt> hey everyone... in unit-testing, is a mock basically just an interceptor?
[16:32:55] *** ggrzybek is now known as ggrzybek_afk
[16:32:58] <whatadewitt> i'm having trouble really figuring out the difference
[16:33:09] *** sharkcat has joined #angularjs
[16:33:10] *** cannap has quit IRC
[16:34:14] *** Mxyzpltk has joined #angularjs
[16:34:22] *** Oddman has joined #angularjs
[16:34:28] *** nemothekid has quit IRC
[16:34:30] *** ctanga has joined #angularjs
[16:34:37] *** advy has quit IRC
[16:34:42] *** sheplu has quit IRC
[16:35:01] *** wmbutler has joined #angularjs
[16:35:44] *** foofoobar has joined #angularjs
[16:36:00] *** cacts has joined #angularjs
[16:36:11] *** asheshambasta has joined #angularjs
[16:36:12] *** richiebkr has joined #angularjs
[16:36:13] *** DrMabuse has joined #angularjs
[16:36:57] *** kuadrosx has joined #angularjs
[16:36:58] *** kotyy has quit IRC
[16:37:18] *** merb has joined #angularjs
[16:37:58] *** Oxynum has quit IRC
[16:38:49] *** elliotst_ has quit IRC
[16:38:56] *** rho has quit IRC
[16:39:14] *** jonasliljestrand has joined #angularjs
[16:39:16] *** D-Boy has quit IRC
[16:39:23] *** afuggini has quit IRC
[16:39:24] *** lsiv568 has quit IRC
[16:40:12] <CanyonMan> so if $q's .then() returns a promise, is there any way to take that promise and turn it back into the original object?
[16:41:10] *** richiebkr has quit IRC
[16:42:15] *** alex_zhou has quit IRC
[16:42:17] *** cornerma1 has joined #angularjs
[16:42:58] *** mchapman has quit IRC
[16:42:59] *** Siecje has joined #angularjs
[16:43:08] *** rtpg has quit IRC
[16:43:12] *** lsiv568 has joined #angularjs
[16:43:14] *** PigDude_ has joined #angularjs
[16:43:37] *** craigp has quit IRC
[16:43:44] *** Raging_Hog has quit IRC
[16:43:45] *** elliotstokes has joined #angularjs
[16:43:46] *** jonasliljestrand has quit IRC
[16:44:13] *** scriptThis has quit IRC
[16:44:17] *** craigp has joined #angularjs
[16:44:37] *** AngularUI has joined #angularjs
[16:44:37]
<AngularUI> [ng-grid] jcompagner opened pull request #2379: regression fix for: #2357 scrolling with large amount of columns,columns disappear after sort (master...row_inserts_before_current_fix) http://git.io/Wn-dYg
[16:44:37] *** AngularUI has left #angularjs
[16:45:20] *** cornerman has quit IRC
[16:45:22] *** jonasliljestrand has joined #angularjs
[16:45:22] *** cornerma1 is now known as cornerman
[16:45:53] *** elrabin has joined #angularjs
[16:47:06] *** elrabin has quit IRC
[16:47:42] *** elrabin has joined #angularjs
[16:48:04] *** SargoDarya has quit IRC
[16:48:29] <whatadewitt> CanyonMan: what is the use case?
[16:48:48] <CanyonMan> so it's kinda weird
[16:49:05] <CanyonMan> I have a service that gets a plain old javascript object back (the api returns json)
[16:49:06] *** craigp has quit IRC
[16:49:13] <CanyonMan> I use a deferred
[16:49:30] <CanyonMan> if the response succeeds I do: deferred.resolve( myObj )
[16:49:46] <CanyonMan> but on the other side, in the then() that receives it, it's not a POJO any more, it has been wraqpped in a promise
[16:50:08] <CanyonMan> so if I try to do things like: myObj.someString.search() I get a type error ... because it's not REALLY a string (I hae no idea what it is)
[16:50:14] <CanyonMan> to work around the problem I do this:
[16:50:19] *** cavallari has joined #angularjs
[16:50:19] *** rikkipitt has joined #angularjs
[16:50:21] *** zB0hs has joined #angularjs
[16:50:24] <CanyonMan> var myString = myObj.someString + ""; /* coerce it */
[16:50:38] <CanyonMan> var index = myString.search("1234"); /* get the position of 1234 in the string; works fine */
[16:50:40] <CanyonMan> see what I mean?
[16:51:00] *** Oddman has quit IRC
[16:51:05] <CanyonMan> So I want a way to take what comes back in my .then( function( x ) {} ); and somehow turn 'x' from a promise back into the original POJO
[16:51:24] <CanyonMan> but $q / promise objects don't seem to have a way to do that, that I can find.
[16:51:34] *** Oddman has joined #angularjs
[16:51:57] *** elrabin has quit IRC
[16:52:25] *** b1rkh0ff has joined #angularjs
[16:52:27] *** webbananaboy has quit IRC
[16:53:03] *** webbananaboy has joined #angularjs
[16:53:10] <CanyonMan> let me make a plnkr
[16:53:18] *** VeeWee has quit IRC
[16:53:34] *** rho has joined #angularjs
[16:54:17] *** b1rkh0ff1 has quit IRC
[16:54:22] *** Oddman has quit IRC
[16:54:22] *** StryKaizer has quit IRC
[16:54:35] *** Oddman has joined #angularjs
[16:54:45] *** SargoDarya has joined #angularjs
[16:54:51] *** cavallari1 has joined #angularjs
[16:54:55] *** wmbutler_ has joined #angularjs
[16:55:14] *** jmverges has quit IRC
[16:55:18] <dmack> CanyonMan: I'm so confused.
[16:55:21] *** asley has joined #angularjs
[16:55:25] *** mrru has joined #angularjs
[16:55:29] *** DrMabuse has quit IRC
[16:55:40] *** wmbutler has quit IRC
[16:56:05] *** Oddman has quit IRC
[16:56:10] *** sharkcat has quit IRC
[16:56:22] *** jae has joined #angularjs
[16:56:31] *** peldan has quit IRC
[16:56:36] *** cavallari has quit IRC
[16:56:38] *** Oddman has joined #angularjs
[16:56:45] <tristanp> Is there a way to write come code that has to finish before the app "starts" itself? Like a run block that acts like a resolve sort of?
[16:56:46] *** jae has left #angularjs
[16:56:47] <asley> heloow..can any one tell me how to fix vertical scroll bar fix to buttom..i am creating a chat app using angularjs
[16:57:08] *** cmos_ has joined #angularjs
[16:57:12] *** busticated has joined #angularjs
[16:57:16] *** webbananaboy has quit IRC
[16:57:25] *** afuggini has joined #angularjs
[16:57:47] *** Andrew_S has joined #angularjs
[16:57:58] *** scythe__ has quit IRC
[16:58:07] <cmos_> yo
[16:58:38] *** cmos_ has quit IRC
[16:58:57] *** Limix has joined #angularjs
[16:59:00] *** Guest60222 has quit IRC
[16:59:08] *** oniijin has joined #angularjs
[16:59:09] *** Marble68 has joined #angularjs
[16:59:11] *** juampy has joined #angularjs
[16:59:16] <asley> can any body plz help me...how to fix the vertical scroll bar fix on buttom on my chat container
[16:59:58] *** Guest32741 has joined #angularjs
[17:00:03] *** boneskull is now known as boneskul_
[17:00:23] *** hiddentoken has joined #angularjs
[17:00:43] *** sebhoss has quit IRC
[17:00:44] <dmack> tristanp: use a manual bootstrap.
[17:00:48] *** garbanzio has joined #angularjs
[17:01:00] *** hasahm has joined #angularjs
[17:01:04] *** tschundeee has quit IRC
[17:01:07] <CanyonMan> now i'm worried i might be crazy because i made a plnkr and that worked as i expected
[17:01:14] *** Oddman has quit IRC
[17:01:28] *** kapil__ has quit IRC
[17:01:28] *** leehambley has quit IRC
[17:01:43] *** tschundeee has joined #angularjs
[17:02:01] *** basiclaser_ has quit IRC
[17:02:01] *** webbananaboy has joined #angularjs
[17:02:21] *** ron1 has quit IRC
[17:02:42] *** webbananaboy has quit IRC
[17:03:01] *** jdivock_ has joined #angularjs
[17:03:11] *** jmckind has quit IRC
[17:03:22] *** webbananaboy has joined #angularjs
[17:03:34] *** cbennett has joined #angularjs
[17:03:40] *** hasahm has quit IRC
[17:03:41] *** cbennett has quit IRC
[17:03:47] *** ronnyek has joined #angularjs
[17:04:11] <ronnyek> I've got angular directives for a rich editor
[17:04:12] *** evotuned has joined #angularjs
[17:04:23] <ronnyek> as a part of the configuration for that directive
[17:04:26] *** b1rkh0ff1 has joined #angularjs
[17:04:35] <ronnyek> I pass in a large a mount of data, and its apparently turning that all into observables or whatever
[17:04:58] *** jdivock__ has joined #angularjs
[17:05:01] <ronnyek> if I initialize that component outside of angular
[17:05:10] *** jdivock_ has quit IRC
[17:05:12] <ronnyek> and set the options the page is still fast as usual understandably
[17:05:17] <jaawerth> ronnyek: which version of angular are you using?
[17:05:55] *** Superhard has quit IRC
[17:05:57] *** jdivock has quit IRC
[17:05:59] <ronnyek> apparently 1.2.27
[17:06:01] <jaawerth> ronnyek: also, when you say you're passing in a lot of data, do you mean via angular expressions? Either {{ }} or attributes on directors that are evaluated as expressions?
[17:06:08] *** bbankes has joined #angularjs
[17:06:10] <jaawerth> er, directives*
[17:06:13] *** tschundeee has quit IRC
[17:06:18] *** ron1 has joined #angularjs
[17:06:22] <ronnyek> lets say this directive takes config in as a part of the scope
[17:06:29] *** b1rkh0ff has quit IRC
[17:06:39] <ronnyek> I'd get scope and do options.tables = [somelist]
[17:06:44] <jaawerth> got it
[17:06:50] *** dc_ has joined #angularjs
[17:07:09] <jaawerth> ronnyek: If you upgrade to 1.3.x, you can use one-time bindings to deal with that issue. All you have to do is prepend any property in an angular expression with ::
[17:07:25] <ronnyek> is that a beta?
[17:07:31] <ronnyek> and do you have reference to that?
[17:07:32] <jaawerth> no, it's been stable for a while
[17:07:35] <asley> no help here :-(
[17:08:05] <jaawerth> for example, if your property were $scope.foo and you were doing <some-directive options="foo"> it would be <some-directive options="::foo">. The functionality is called bindOnce
[17:08:06] <ronnyek> ?
[17:08:17] <jaawerth> yep
[17:08:19] <ronnyek> ahh
[17:08:21] <ronnyek> interesting
[17:08:35] <whatadewitt> CanyonMan: sorry got pulled away
[17:08:39] *** webbananaboy has quit IRC
[17:08:48] <whatadewitt> did you figure it out?
[17:08:54] *** tristanp has quit IRC
[17:09:05] *** SargoDarya has quit IRC
[17:09:12] *** Anton_ has quit IRC
[17:09:29] <jaawerth> asley: how are you adding content to your chat window? are the lines in an array that you're pushing to, or..?
[17:09:49] <jaawerth> basically you just need to write a directive that watches your content and scrolls to the bottom when it sees that new content has been added
[17:10:14] <asley> jaawerth: they are in wrap inside li tag
[17:10:29] <ronnyek> is there any reason to say with 1.2.27?
[17:10:35] <jaawerth> asley: yes, but are you ng-repeating that or what?
[17:10:51] *** conan_the_destro has joined #angularjs
[17:10:54] <ronnyek> asley: I build directive + react component to do that efficiently
[17:11:05] <jaawerth> ronnyek: well, theoretically the update could cause an incompatibility with your existing code, but I have had zero problems upgrading myself. still, I'd definitely make sure to do a git commit before you try the upgrade
[17:11:08] <ronnyek> I was scrolling messages at like 20-30/sec
[17:11:13] *** dc_ has quit IRC
[17:11:16] <ronnyek> ok
[17:11:23] <asley> jaawerth: yah correct ng-repeating
[17:12:46] <ronnyek> I keep scrollback buffer so like 1000, push new message, if length > threshold, shift, render chat log,
[17:12:49] <ronnyek> rinse/repeat
[17:12:53] *** Snugug has quit IRC
[17:12:54] <ronnyek> oh and the scroll to bottom bit
[17:13:07] *** diffalot has quit IRC
[17:13:15] *** boneskul_ has quit IRC
[17:13:57] *** boneskull has joined #angularjs
[17:14:14] *** boneskull has quit IRC
[17:14:55] *** diffalot has joined #angularjs
[17:15:11] *** wmbutler_ has quit IRC
[17:15:24] <MistahKurtz> morning
[17:15:33] <asley> ronnyek: can you share the directive
[17:16:20] <MistahKurtz> ctanga jaawerth said that you had suggested an elegant way to implement callbacks for states?
[17:16:36] *** mchapman has joined #angularjs
[17:16:40] *** visualshock has quit IRC
[17:16:56] *** leolrrj has joined #angularjs
[17:17:08] <ronnyek> well its a bit involved... I'll try and pull it apart
[17:17:19] <ronnyek> because of react, you have to use a reflux/flux framework etc
[17:17:19] *** Anton_ has joined #angularjs
[17:17:24] <ronnyek> but I dont mind
[17:17:26] *** wmbutler has joined #angularjs
[17:17:33] <ronnyek> I'd have to get it tonight though
[17:17:36] <ronnyek> dont have access atm
[17:17:59] *** wmbutler has joined #angularjs
[17:19:31] <asley> jaawerth: any suggestion with my problem
[17:20:42] <ronnyek> is there any way to do a bulk ng-enable or whatever?
[17:20:48] <ronnyek> eg, I have a bunch of compoentns I want to disable at once
[17:21:07] <ronnyek> I was thinking maybe throwing em in a div, and have that div apply to subdirectives or something
[17:21:10] *** larsgk has quit IRC
[17:21:42] <jaawerth> asley: just scope.$watch the array in a directive and call element.scrollTop(element.prop('scrollHeight') when it's changed
[17:22:22] *** chrisbirk has joined #angularjs
[17:22:30] *** dmack has quit IRC
[17:22:52] *** sharkcat has joined #angularjs
[17:23:08] <MistahKurtz> hm
[17:23:20] *** soup has joined #angularjs
[17:23:23] *** lite_ has quit IRC
[17:23:40] <asley> jaawerth: can you give me a example..m just learning angularjs...if u dnt mind can you give a example with list of li
[17:24:10] *** sharkcat has quit IRC
[17:24:13] <MistahKurtz> ctanga interesting, good to know. Unfortunately I don't think it'll work, I need a success handler that the navigated-to state can call
[17:24:21] *** mspier|away is now known as mspier
[17:24:24] *** dmack has joined #angularjs
[17:24:53] *** jeffscottward has joined #angularjs
[17:25:03] *** spaceonline has joined #angularjs
[17:25:31] *** g33k5z_ has quit IRC
[17:25:52] *** g33k5z_ has joined #angularjs
[17:26:07] <ctanga> it does what your example states though? “ e.g. `$state.go('edit-foo', { onSuccess: function() { /*do stuff */ });”
[17:26:07] <asley> jaawerth: where to add the directive?? in my repeating li list like <li some-directive>some value</li>
[17:26:33] <ctanga> $state.go('edit-foo’).then(function() { /* do stuff */ });
[17:26:54] *** arabot has joined #angularjs
[17:27:34] *** jagga has quit IRC
[17:27:41] *** Siecje has quit IRC
[17:27:59] *** Hounddog has quit IRC
[17:29:13] *** adben has quit IRC
[17:29:16] *** gauravsaini03 has joined #angularjs
[17:29:17] *** IvailoStoianov has quit IRC
[17:29:39] *** chrisbirk has quit IRC
[17:29:50] *** spaceonline has quit IRC
[17:29:56] *** chrisbirk has joined #angularjs
[17:30:26] *** jrist-afk is now known as jrist
[17:30:32] <jaawerth> asley: one sec, I'm writing up a plunk for you
[17:30:44] *** Sbrun has quit IRC
[17:30:52] <jaawerth> MistahKurtz, ctanga: I swear you had a more elegant way than that, but glad to know youd liked mine ;-)
[17:30:57] *** jdivock__ has quit IRC
[17:31:05] *** cacts|works has joined #angularjs
[17:31:07] <asley> jaawerth: ok
[17:31:12] *** ianpirro has joined #angularjs
[17:31:14] *** vassagus has joined #angularjs
[17:31:42] *** prosper_ has quit IRC
[17:31:42] *** TeddyMurray has joined #angularjs
[17:32:47] *** jaredwilli has quit IRC
[17:32:53] *** bostonaholic has quit IRC
[17:33:12] <jaawerth> ctanga, MistahKurtz: you could even call it in context of the new state: $state.go('foo').then(function(st) { callback.call(st); }); You COULD also attach data to "st" (the new state object) if necessary, but with the promise you don't really need to
[17:33:48] *** sonofdirt has joined #angularjs
[17:34:16] *** phoenixw has joined #angularjs
[17:34:47] <MistahKurtz> ctanga, sorry, i don't mean on state change success
[17:34:59] *** bostonaholic has joined #angularjs
[17:35:04] <MistahKurtz> I meant to define a handler passed to the new states controller, that it could call when it wants
[17:35:49] <MistahKurtz> I don't follow that exactly, jaawerth
[17:35:54] *** moogey has joined #angularjs
[17:36:08] <ronnyek> 1.3 fixed my problems jaawerth
[17:36:09] <ronnyek> thanks
[17:36:41] *** bzitzow has joined #angularjs
[17:37:29] *** larsgk has joined #angularjs
[17:37:43] *** g33k5z_ has quit IRC
[17:38:09] *** g33k5z has joined #angularjs
[17:38:09] *** richiebkr has joined #angularjs
[17:38:17] *** tehfedaykin has joined #angularjs
[17:38:18] *** mrru has quit IRC
[17:38:28] <ctanga> MistahKurtz: that’s not really a router concern, methinks
[17:38:40] *** AngularUI has joined #angularjs
[17:38:40]
<AngularUI> [bootstrap] mwinkels opened pull request #3119: Only resetMatches when showing matches. (master...patch-1) http://git.io/KMEPww
[17:38:40] *** AngularUI has left #angularjs
[17:38:41] *** jstroem has quit IRC
[17:38:45] <tehfedaykin> I’m testing a service in angular - the resource isn’t getting hit in the .get
[17:39:03] *** foofoobar has quit IRC
[17:39:11] <tehfedaykin> *factory, not service
[17:39:19] *** jstroem has joined #angularjs
[17:39:22] <MistahKurtz> hmm. It's something we very commonly do with our modals, and this modal has gotten to a size that it needs to be re-implemented as a full-view state
[17:39:45] <ctanga> sounds like the job for a service maybe?
[17:39:54] *** snapwich has joined #angularjs
[17:40:00] <ctanga> you could declare a non-url parameter
[17:40:25] *** g33k5z has quit IRC
[17:40:35] <ctanga> attach a callback to the parameter
[17:40:53] *** g33k5z has joined #angularjs
[17:41:04] <MistahKurtz> I tried that, I think all params must be URL params
[17:41:07] <MistahKurtz> b/c it didn't show up
[17:41:08] <ctanga> no
[17:41:16] <MistahKurtz> how would I do that then?
[17:41:21] *** SergioFilhow_ has joined #angularjs
[17:42:06] <CHC> so in my template i have {{ item[col.model] }} to display stuff, but when col.model is something like 'Test.Display' it won't render, but if i do item['Test']['Display'] it works, what should i do?
[17:42:11] *** sharkcat has joined #angularjs
[17:42:36] <ctanga> MistahKurtz: params: { mynonurlparam: null }
[17:43:17] <MistahKurtz> is `params` a special key? didn't see that in the docs anywhere
[17:43:21] <MistahKurtz> I know you could define arbitrary data
[17:43:23] <MistahKurtz> but that didn't work either
[17:43:58] <jaawerth> MistahKurtz: $state.go('newState').then(function(st) { st.foo = {data: someData, callback: someFunc} })
[17:44:04] <jaawerth> would work
[17:44:05] *** jaredwilli has joined #angularjs
[17:44:07] <jaawerth> anyway, be back in a few
[17:44:08] *** jlebrech has joined #angularjs
[17:44:14] <MistahKurtz> ooh
[17:44:17] *** Marble68 has quit IRC
[17:44:18] *** Anton_ has quit IRC
[17:44:19] *** sharkcat has left #angularjs
[17:44:20] <MistahKurtz> jaawerth best one so far
[17:44:42] *** tsalb has joined #angularjs
[17:44:49] *** cacts has quit IRC
[17:45:12] <asley> jaawerth: its not working
[17:45:18] *** weipeng has joined #angularjs
[17:45:33] *** SergioFilhow_ has quit IRC
[17:45:51] <jaawerth> asley: whoops I think I forgot to add something
[17:45:51] <jaawerth> haha
[17:46:12] <asley> jaawerth: ok
[17:46:26] <jaawerth> asley: question: are you going to put a buffer in the chat window so it holds a max of X messages at a time?
[17:46:50] <MistahKurtz> jesus that's exactly what I"ve been looking for ctanga
[17:46:51] *** Oddman has joined #angularjs
[17:46:53] <MistahKurtz> I can't believe I missed that
[17:46:58] *** bayousoft has quit IRC
[17:47:28] <weipeng> Hello
[17:47:38] *** bayousoft has joined #angularjs
[17:47:39] *** jdivock has joined #angularjs
[17:47:39] *** dsdeiz has quit IRC
[17:47:43] <jaawerth> asley: actually doesn't matter - I jsut forgot to do $watchCollection instead of $watch. If you refresh, it should work now.
[17:47:43] <asley> jaawerth: give ur opinion ..i just want to fix scroll bar to buttom when new li goes inside
[17:47:47] <weipeng> Can I ask my question?
[17:48:21] <dmamills> yes you may
[17:48:31] <jaawerth> Yes, but only one. You're welcome!
[17:48:34] *** jlebrech has quit IRC
[17:48:39] *** larsgk has quit IRC
[17:48:48] * jaawerth feels like he messed up that joke somehow
[17:49:06] <weipeng> When I use my custom directive, the ng-scope and ng-isolate-scope are both generated for that directive.
[17:49:13] <jaawerth> asley: I'd recommend you do a buffer thing so it isn't storing a billion messages, but you can always add that later
[17:49:32] *** tristanp has joined #angularjs
[17:49:43] <weipeng> I was hope that the only isolate-scope were generated, but now 2 generated.
[17:49:49] <asley> jaawerth: ok
[17:49:54] *** davidreis has quit IRC
[17:49:59] *** ChadStrat has joined #angularjs
[17:50:12] *** piippo_ is now known as piippo
[17:50:22] <jaawerth> asley: if you don't want to do it the way I did where the DIV has its own separate template, you can just get rid of the templateUrl bit and it should still work
[17:50:23] *** edy has quit IRC
[17:50:29] <weipeng> Can anybody teach me about my issue?
[17:51:31] <MistahKurtz> wow it works perfect
[17:51:33] <MistahKurtz> you made my day ctanga
[17:51:42] <MistahKurtz> and thank you for the help jaawerth
[17:51:44] <ctanga> MistahKurtz: what now?
[17:52:14] <jaawerth> weipeng: it probably just means you're using a built-in directive somewhere that generates its own isolate scope
[17:52:26] *** Anton_ has joined #angularjs
[17:52:29] <jaawerth> weipeng: er rather, its own non-isolate scope
[17:52:32] <MistahKurtz> I didn't realize there was a `params` config for non-URL params
[17:52:39] <ctanga> MistahKurtz: yeah, ngdocs kinda sucks
[17:52:59] *** jstroem has quit IRC
[17:53:01] <MistahKurtz> I've been over-complicating this whole scenario for days now
[17:53:05] <ctanga> :)
[17:53:12] <ctanga> so you’re using a param and passing a callback on it?
[17:53:12] <MistahKurtz> started implementing the form as a directive used in multiple states/controllers
[17:53:23] <weipeng> jaawerth: I have made my directive as isolate-scope.
[17:53:46] <jaawerth> sure, but are you using any other directives in either your outer template or your directive's template?
[17:54:00] <jaawerth> possibly a built-in angular directive?
[17:54:07] *** asley has quit IRC
[17:54:20] <weipeng> jaawerth: yes, ng-repeat
[17:54:26] <jaawerth> well that's it right there
[17:54:34] <jaawerth> ng-repeat generates an inherited child scope for each repeat iteration
[17:54:43] <MistahKurtz> ctanga, yep. State is defined like `$stateProvider('widget-create', { params: success: null });` and from my `campaign-create` state I call `$state.go('widget-create', { success: function() { /* do stuff */ });
[17:54:59] *** swist has quit IRC
[17:55:00] <MistahKurtz> flawless victory
[17:55:07] <ctanga> beans.
[17:55:11] *** afuggini has quit IRC
[17:55:17] *** Limix has quit IRC
[17:55:23] <MistahKurtz> the beans, they are cool
[17:55:40] *** davidreis has joined #angularjs
[17:55:49] <weipeng> jaawerth: Could you please kindly tell me more about it?
[17:55:49] *** asley has joined #angularjs
[17:55:58] *** steeze has joined #angularjs
[17:55:58] *** cacts|works has quit IRC
[17:56:03] *** jheady has joined #angularjs
[17:56:25] *** sel has joined #angularjs
[17:56:41] *** foofoobar has joined #angularjs
[17:56:53] <weipeng> jaawerth: where are u?
[17:57:14] *** jdivock has quit IRC
[17:57:20] <asley> jaawerth: thanks alot
[17:57:47] <weipeng> jaawerth: I want it to have only one ng-isolate-scope, but now it had the both ng-scope and ng-isolate-scope.
[17:58:07] <weipeng> jaawerth: How can I solve this problem?
[17:58:07] *** soup has quit IRC
[17:58:12] <jaawerth> weipeng: that's going to be unavoidable if you using ng-repeat
[17:58:12] *** tehfedaykin has quit IRC
[17:58:30] <jaawerth> ng-repeat is a directive with scope: true, so it generates a child scope of.. wherever scope you're using it
[17:58:40] *** jdivock has joined #angularjs
[17:58:40] *** whatadewitt has quit IRC
[17:58:49] *** lsiv568 has quit IRC
[17:58:54] <jaawerth> that's how ng-repeat works
[17:59:13] *** ivanskie has joined #angularjs
[17:59:26] <sel> jquery working in rootprovider but stateprovider not working
[17:59:27] <drag0nius> is there some nice tutorial on using ui-select?
[17:59:39] *** mlpug has joined #angularjs
[18:00:05] *** jheady has left #angularjs
[18:00:20] <jaawerth> weipeng: if you use the ng-repeat in your template's directive, those child scopes will be inheriting from the isolate scope, so it will still be cut off from the parent context
[18:00:30] *** Christer has quit IRC
[18:00:40] *** Christer has joined #angularjs
[18:00:56] *** lemur has joined #angularjs
[18:01:04] <weipeng> jaawerth: yeah, that is what I wanted.
[18:01:10] *** AlSquirrel has quit IRC
[18:01:29] <jaawerth> back in 10
[18:01:30] <weipeng> jaawerth: but now after rendering, it says that class="ng-scope ng-isolate-scope"
[18:01:39] <jaawerth> yes
[18:01:50] <sel> is anybuddy using angular+jqdatatable
[18:01:56] *** MistahKurtz has quit IRC
[18:01:57] <jaawerth> which signifies that there are both scopes and isolate scopes at work
[18:02:07] *** sonofdirt has quit IRC
[18:02:13] <weipeng> I'm very strange this, why does it have 2 scopes for a element at the same time?
[18:02:16] <jaawerth> the classes have no role in data-binding
[18:02:18] *** whatadewitt has joined #angularjs
[18:02:19] *** MistahKurtz has joined #angularjs
[18:02:34] *** mikerrrrrr has joined #angularjs
[18:02:44] *** sonofdirt has joined #angularjs
[18:03:24] *** sel has quit IRC
[18:03:25] <jaawerth> weipeng: I haven't seen your code, but... say you have a directive, <my-directive>, and you're ng-repeating it: <my-directive ng-repeat="foo in foos">
[18:03:34] *** lsiv568 has joined #angularjs
[18:03:36] *** AlSquirrel has joined #angularjs
[18:03:41] <weipeng> jaawerth: A scope is generated for each isolated-scopes.
[18:04:27] <jaawerth> weipeng: my-directive creates its isolate scope, so it gets the ng-isolate-scope class. But the element's also being ng-repeated, which means there is first a child scope being created that wraps each of the repeated elements.
[18:04:30] *** kuzzz0 has quit IRC
[18:05:03] <weipeng> jaawerth: my code looks like this ... <div menu>
[18:05:19] <weipeng> jaawerth: here, menu is my custom directive.
[18:05:19] *** sonofdir_ has joined #angularjs
[18:05:21] <jaawerth> weipeng: post a plunk and we can explain it
[18:05:52] <jaawerth> weipeng: I gotta go afk for a few minutes though, I'll be back in ~10. If you post a plunk and nobody else has explained while I'm gone, I'll explain
[18:05:55] <weipeng> jaawerth: menu directive template looks like this: <div ....> <div ...> <div ng-repeat ... >
[18:06:26] *** Superhard has joined #angularjs
[18:06:32] <jaawerth> that still doesn't help me/us understand what the issue actually is, or why it's an issue
[18:06:36] *** sonofdirt has quit IRC
[18:06:37] *** chrisbirk has quit IRC
[18:06:38] <weipeng> thanks jaawerth:
[18:07:46] *** jacuqesdancona__ has quit IRC
[18:07:48] *** hell_razer has quit IRC
[18:07:48] *** Superhard has quit IRC
[18:08:04] *** drag0nius has quit IRC
[18:08:20] *** jacuqesdancona__ has joined #angularjs
[18:08:22] *** lemur has quit IRC
[18:08:38] *** Superhard has joined #angularjs
[18:08:44] *** Limix has joined #angularjs
[18:08:57] *** lemur has joined #angularjs
[18:08:59] *** loverajoel has quit IRC
[18:09:12] *** Una has quit IRC
[18:09:15] *** tsunamie has quit IRC
[18:09:33] *** kroogs has joined #angularjs
[18:09:38] *** tsunamie has joined #angularjs
[18:09:43] *** SargoDarya has joined #angularjs
[18:09:43] *** tsunamie has quit IRC
[18:09:58] *** jdivock has quit IRC
[18:10:06] *** Anton_ has quit IRC
[18:10:34] *** tsunamie has joined #angularjs
[18:10:39] *** Una has joined #angularjs
[18:10:52] *** Guest22 has joined #angularjs
[18:10:55] *** tsunamie has quit IRC
[18:11:08] *** goodenough has joined #angularjs
[18:11:30] *** ivanskie has quit IRC
[18:11:35] *** tsunamie has joined #angularjs
[18:11:56] *** tsunamie has quit IRC
[18:12:23] *** shackleford has quit IRC
[18:12:26] *** spatialbrew has quit IRC
[18:12:35] *** tsunamie has joined #angularjs
[18:13:01] *** StoneCypher has joined #angularjs
[18:13:02] *** jacuqesdancona__ has quit IRC
[18:13:34] *** jonathanpglick has joined #angularjs
[18:13:37] *** MaxV_ has quit IRC
[18:13:41] *** lemur has quit IRC
[18:13:45] *** jaznow has joined #angularjs
[18:13:59] *** kroogs has quit IRC
[18:14:16] *** SargoDarya has quit IRC
[18:14:33] *** Pookz has quit IRC
[18:15:48] *** ron1 has quit IRC
[18:16:08] *** shackleford has joined #angularjs
[18:17:01] <burzum2> Any recommendation on how to dynamically add directives to the view? I have basically a list of data objects, each data object requires a different directive. I think I could do this by wrapping that collection of objects in a directive that then will iterate over them and detect the type, gets a template via http and then uses the $compile service. but is this a good approach?
[18:18:01] *** mchammer has quit IRC
[18:18:09] *** Anton_ has joined #angularjs
[18:19:07] *** merobertsjr has joined #angularjs
[18:19:29] *** chrisbirk has joined #angularjs
[18:19:42] *** sbellina has quit IRC
[18:20:14] *** illume has quit IRC
[18:20:16] *** jstroem has joined #angularjs
[18:20:19] *** phoenixw has quit IRC
[18:20:21] *** ronnyek has quit IRC
[18:20:40] *** shannonlucas has joined #angularjs
[18:21:12] *** ron1 has joined #angularjs
[18:21:32] *** jonasliljestrand has quit IRC
[18:22:38] <jaawerth> ctanga: hrm, I'll have to spend some time with this to understand the use-case
[18:22:56] <ctanga> jaawerth: talking about the issue i linked to?
[18:23:01] <jaawerth> yeah
[18:23:10] <jaawerth> burzum2: you could do it with a custom directive, or with ng-include
[18:23:24] <ctanga> yeah, it’s an interesting approach. nateabele wants this
[18:23:37] *** morenoh149 has quit IRC
[18:23:43] <burzum2> jaawerth using ng-repeat and inside include to include depending on the type?
[18:23:54] <jaawerth> <ng-include src="getTemplateUrl(foo)" ng-repeat="foo in foos">
[18:23:57] <ctanga> state parameter type becomes responsible for loading the typed resource, async
[18:24:01] <ctanga> i think it may be problematic though
[18:24:22] <jaawerth> yeah, that sounds like it could be potentially hard to debug
[18:24:27] *** seismo has joined #angularjs
[18:24:32] <seismo> hi there :)
[18:25:33] *** agrajag42 has joined #angularjs
[18:25:34] <seismo> but sometimes the controller does not get executed
[18:25:42] *** jaydubya has joined #angularjs
[18:25:45] *** jacuqesdancona__ has joined #angularjs
[18:25:56] *** rhp has joined #angularjs
[18:26:00] *** naneau has quit IRC
[18:26:01] *** cmenscher is now known as wintatime
[18:26:06] <seismo> half of the time "toasty toast" appears on the site, but sometimes it stays {{test}}
[18:26:22] *** PigDude_ has quit IRC
[18:27:14] *** lsiv568 has quit IRC
[18:27:37] *** DarrenCraig has quit IRC
[18:27:48] *** weipeng has quit IRC
[18:28:13] *** jdivock has joined #angularjs
[18:28:27] *** dmack has quit IRC
[18:28:35]
<jaydubya> I have a table filled with an ng-repeat of $scope.loanList. There is a select control where I want to determine which loans are listed. On the select in ng-change(), I trigger a scope function (see paste) but the list doesn't change. I tried $scope.$apply but that triggers an error that the $digest is already processing. Scope Function: https://gist.github.com/anonymous/9b120e40d4f7252dfe17
[18:29:05] *** naneau has joined #angularjs
[18:29:07] *** jdivock has quit IRC
[18:29:39] *** m8 has quit IRC
[18:29:47] *** Seich has quit IRC
[18:29:56] *** artisangoose has joined #angularjs
[18:31:01] <jaawerth> ctanga: actually looking at it, the code is fine - just from a work-flow perspective, it makes more sense to me to handle that kind of logic in the resolve block rather than abstracting it further to state types. It would be a useful feature, but I personally would use it sparingly I think
[18:31:01] *** ogdabou has quit IRC
[18:31:16] <jaawerth> (if I'm understanding correctly)
[18:31:19] *** dan2k3k4 has quit IRC
[18:31:25] *** uru has left #angularjs
[18:31:27] *** sk87 has joined #angularjs
[18:31:52] <ctanga> sure. I think it would be useful if you would re-use the typed param in lots of states
[18:32:09] *** jdivock has joined #angularjs
[18:32:17] *** zB0hs has quit IRC
[18:32:31] *** simplyshipley has quit IRC
[18:32:41] <ctanga> also, I’m considering an option to add all state params as resolves/injectables
[18:32:43] <seismo> does anybody know what i could be doing wrong?
[18:32:50] *** Seich has joined #angularjs
[18:32:52] <ctanga> thanks for your feedback
[18:33:05] <jaawerth> I think the bit I don't like about it is that it means more app configuration stuff to keep track of
[18:33:27] <jaawerth> I would rather type out the object data itself and let the async stuff happen using constructors
[18:33:30] *** dotsspwe has quit IRC
[18:33:39] *** dannyc has quit IRC
[18:33:54] *** patrick99e99 has joined #angularjs
[18:34:01] <jaawerth> if you create an object that gets async stuff and generates a promise, you could just pass that into your resolve
[18:34:21] <jaawerth> that way the data grabbing is data-driven and not adding more complexity
[18:34:24] *** dmack has joined #angularjs
[18:35:05] *** t0rrieri has quit IRC
[18:35:06] <ctanga> true
[18:35:08] *** Sawbones_ has joined #angularjs
[18:35:24] *** tangorri has quit IRC
[18:35:26] *** Sawbones has quit IRC
[18:35:26] <ctanga> I think the intention is to reduce boilerplate in the resolve declarations though
[18:35:32] *** lrvick has quit IRC
[18:35:39] <jaawerth> yeah, that makes sense
[18:35:39] *** t0rrieri has joined #angularjs
[18:35:50] *** lrvick has joined #angularjs
[18:35:50] *** fbenoit has quit IRC
[18:35:54] <jaawerth> but letting your objects handle what's going on to retrieve the data would also achieve that, no?
[18:36:13] *** jtimon has joined #angularjs
[18:36:25] *** JBreit has joined #angularjs
[18:36:30] <jaawerth> or something fundamental like a factory
[18:36:31] *** jtimon has quit IRC
[18:36:44] <ctanga> right, but you still need to hook it up using resolve:
[18:37:00] <ctanga> which, granted, isn’t much boilerplate
[18:37:08] <ctanga> just a passthrough to your factory fn
[18:37:22] *** ashah has joined #angularjs
[18:37:50] *** diffalot has quit IRC
[18:37:55] *** loverajoel has joined #angularjs
[18:37:56] *** jtimon has joined #angularjs
[18:37:59] *** windsurf_ has joined #angularjs
[18:38:10] *** wowa has joined #angularjs
[18:38:13] *** sbellina has joined #angularjs
[18:38:44] *** shaisnir has quit IRC
[18:38:46] <ashah> Hey guys! I'm working on a directive and am trying to write some tests for it, but am having problems. Anyone know how can I test the output of a function within my directive?
[18:39:04] *** diffalot has joined #angularjs
[18:39:22] *** Mosselman has joined #angularjs
[18:40:26] *** iksik has quit IRC
[18:40:30] *** yelvert has joined #angularjs
[18:40:47] <EdwardIII> hrm is there a nice, pleasant way to handle if-this-link-is-the-current-page-add-active-class in a little wizard-type view or normal nav?
[18:40:49] *** iksik has joined #angularjs
[18:40:54] <jaydubya> ctanga, is there a way to pause custom filters being applied to data? I am getting 268 console errors of "Cannot read property 'indexOf' of undefined" because the state is loading without the data after filtering.
[18:41:06] <jaydubya> ^in ui-router
[18:41:38] *** bullicon has quit IRC
[18:41:58] *** Mxyzpltk has quit IRC
[18:42:06] *** SergioFilhow_ has joined #angularjs
[18:42:51] *** iksik has quit IRC
[18:42:54] <jaydubya> EdwardIII: a ui-sref-active="active" is working for me automagically ... I don't do anything else
[18:43:07] *** iksik has joined #angularjs
[18:43:18] *** ivanskie has joined #angularjs
[18:43:43] *** Anton_ has quit IRC
[18:43:57] <ctanga> jaydubya: not sure what you mean?
[18:44:00] *** Mxyzpltk has joined #angularjs
[18:44:22] *** defaultdict has quit IRC
[18:44:26] *** tyfighter has joined #angularjs
[18:45:01] <EdwardIII> jaydubya: hrm not sure i have that heh
[18:45:04] *** xdissent has quit IRC
[18:45:05] *** jtimon has quit IRC
[18:45:06] * EdwardIII looks it up
[18:45:21] *** Mxyzpltk has quit IRC
[18:45:38] *** blirp has joined #angularjs
[18:46:17] *** SergioFilhow_ has quit IRC
[18:46:21] *** sinious has joined #angularjs
[18:46:22] <EdwardIII> hrm no it doens't seem to work here
[18:46:32] *** jtimon has joined #angularjs
[18:46:36] <jaydubya> ctanga: me either ... LOL. My home page is a listing of loans (an ng-repeat of $scope.loans) and I have several custom filters applied to the list ie., displayNullCurrency which sets the display based on a value in $scope.loan. The view is loading before $scope.loans arrives so I am getting 268 console errors. I was wondering if there was something I could do in ui-router to ensure $scope.loans is loaded before those
[18:46:36] <jaydubya> filters are applied.
[18:46:57] <ctanga> jaydubya: use a resolve
[18:47:19] *** Sadin has joined #angularjs
[18:47:36] <jaydubya> I was worried you would go there ... my resolves work about as well as Windows Millenium
[18:47:41] *** dacuca has quit IRC
[18:48:01] *** asheshambasta has quit IRC
[18:48:25] *** woah has joined #angularjs
[18:48:29] <jaydubya> EdwardIII: you are using ngRoute?
[18:48:51] <EdwardIII> jaydubya: i'm including it in my app.js
[18:49:07] *** intellix has quit IRC
[18:49:44] *** mrru has joined #angularjs
[18:49:45] <jaydubya> I am using ui-router (which is 10000% better) ... that's why. That active functionality must be built into ui-router. Sorry I couldn't help you.
[18:49:46] *** dacuca has joined #angularjs
[18:50:01] <EdwardIII> hmm maybe i can switch to that?
[18:50:21] <jaydubya> I would if I were you ... it's that much better
[18:50:34] *** dacuca has quit IRC
[18:50:37] <jaydubya> VERY easy transition too
[18:50:45] *** AngularUI has joined #angularjs
[18:50:46]
<AngularUI> [ng-grid] MattAtBT opened pull request #2381: Issue #2149 - override expandableRowHeaderColDef.displayName (master...2149) http://git.io/Tvwfaw
[18:50:46] *** AngularUI has left #angularjs
[18:50:49] *** emmesswhy has joined #angularjs
[18:51:03] *** TommyO has joined #angularjs
[18:51:05] *** phzon has quit IRC
[18:51:16] <jaydubya> just don't ask me about resolves ... LOL ... not my strength in ui-router
[18:51:31] * tga0 is still fighting ui-router _this.isError = true
[18:51:34] <tga0> _this.isLoading = false
[18:51:34] *** Johnny13371337 has joined #angularjs
[18:51:38] *** RobinBAwesome has joined #angularjs
[18:51:45] *** Anton_ has joined #angularjs
[18:51:45] *** Una has quit IRC
[18:51:49] *** JesseH has joined #angularjs
[18:51:54] *** PigDude_ has joined #angularjs
[18:52:00] <EdwardIII> ok, i'll not ask you about resolves... yet heh
[18:52:03] <EdwardIII> i'm very very new to angular
[18:52:09] *** doginal has joined #angularjs
[18:52:15] <EdwardIII> but i have quite a lot of exp with knockout so the 2 way binding stuff is fairly easy to grok
[18:52:25] <jaydubya> ctanga: could you recommend a resource for me to understand resolves at the like 3rd grade level?
[18:52:30] *** foofoobar has quit IRC
[18:52:40] <EdwardIII> haven't bothered to understand the multiple scopes yet, i'm just bunging stuff into $scope and being happy
[18:52:45] *** Una has joined #angularjs
[18:52:50] <macabre> has anyone worked with ui.calendar? i'm trying to use non standard fields inside the calendar object and the standard fields appear on the correct date but my non standard fields don't show up.
[18:53:31] <jaydubya> EdwardIII: ui-router sees routes as states which allows for nested views and named views and tons of sugar not available with ngRoute
[18:53:42] <EdwardIII> wonder if i can do drop-in replacement heh
[18:53:46] <jaawerth> ctanga: dude, that's like 5th grade at least ;-)
[18:54:01] <jaydubya> ctanga: yes
[18:54:03] *** jstroem has quit IRC
[18:54:29] *** kas84 has joined #angularjs
[18:54:45] <jaydubya> ctanga: when I resolve, the ui-view stays blank and the little "wait" icons spins and spins
[18:56:39] *** intellix has joined #angularjs
[18:56:46] *** swist has joined #angularjs
[18:57:04] *** ckng has joined #angularjs
[18:57:08] <jaawerth> ctanga: you might be interested with this - I've been toying around with a sort of mini-polyfill for Object.observe (compatible with IE9+) to potentially add some efficient model-watching to some projects. I haven't totally mimicked observe functionality yet (it's just executing a callback, not appending to a queue or providing a "change object" like Observe does), but the general concept is working
[18:57:37] *** g33k5z has quit IRC
[18:57:52] <ctanga> there isn’t an object.observe polyfill already?
[18:58:03] *** 64MABE4L1 has joined #angularjs
[18:58:05] <jaawerth> the only one I know of is polymer's
[18:58:07] <jaawerth> there might be others
[18:58:10] <jaawerth> but polymer's uses eval
[18:58:16] <ctanga> uffda
[18:58:18] *** iber has joined #angularjs
[18:58:31] <lolmaus> How do i pass a function as criteria to the filter filter in HTML?
[18:58:39] *** jdivock has quit IRC
[18:59:12] <ctanga> jaawerth: your purpose is to do your own limited watching ?
[18:59:14] *** alanp has quit IRC
[18:59:26] <ctanga> i.e., you’re not attempting to make angular 2.0 compatible with ie9? :)
[18:59:30] *** wallerdev has joined #angularjs
[18:59:50] <iber> Why wouldn’t form.$submitted variable be set to true on form submit?
[18:59:51] <jaawerth> ctanga: Well, to be able to watch models without adding watchers to digest, basically. this is less to solve a problem and more just tinkering with some neat underutilized ES5 features, but I think you'd be interested even if it ends up being of limited use:
[19:00:01] <ctanga> cool
[19:00:18] <iber> I’m trying to show error messages on submit, but $submitted is always false
[19:00:29] *** jaznow has quit IRC
[19:00:43] *** g33k5z_ has joined #angularjs
[19:01:08] <iber> i’ve got ng-click=submit(item) on a input type=“submit"
[19:01:29] <jaawerth> ctanga: though it COULD have that application.. if nothing else, it might be a performance hack that would take effect in a function that either uses $watch OR observe depending on compatibility
[19:01:33] *** 64MABE4L1 has quit IRC
[19:01:36] *** Una has quit IRC
[19:01:37] *** tristanp has quit IRC
[19:01:41] *** Mxyzpltk has joined #angularjs
[19:01:45] *** Oxynum has joined #angularjs
[19:02:01] *** bullicon has joined #angularjs
[19:02:05] *** Una has joined #angularjs
[19:02:09] *** jotaefe has joined #angularjs
[19:02:16] <EdwardIII> hrm is there a way to get a controller's name from inside itself? e.g. i want to be able to say something like this.controllerName == 'MainCtrl'
[19:02:35] *** g33k5z_ has quit IRC
[19:02:37] *** okdamn has joined #angularjs
[19:02:41] <okdamn> hi!
[19:02:47] *** cthrax has quit IRC
[19:02:49] *** ninjaparade has quit IRC
[19:03:13] <okdamn> Does anybody know how to recognize voice commands without the webkit recognition API ?
[19:03:19] <okdamn> in browsers like Safari
[19:03:21] *** 64MABE4O7 has joined #angularjs
[19:03:26] <ctanga> jaawerth: might be useful in ui-router actually
[19:04:09] *** htmelvis has joined #angularjs
[19:04:17] *** Nivag_ has joined #angularjs
[19:04:42] *** IanOlson has quit IRC
[19:04:56] *** ivanskie has quit IRC
[19:05:01] <jaydubya> ctanga: transition logging is cool
[19:05:07] *** shackleford has quit IRC
[19:05:08] <EdwardIII> is that even possible?
[19:05:24] *** guilbep has quit IRC
[19:05:39] *** tristanp has joined #angularjs
[19:05:52] *** htmelvis has quit IRC
[19:06:02] *** scythe__ has joined #angularjs
[19:06:25] *** alanp has joined #angularjs
[19:06:51] <lolmaus> How do i pass a comparator function to the filter filter? This won't work: {{arr | filter : function(e){return e === '10';} }}
[19:06:53] *** juampy is now known as juampy_backlater
[19:07:08] *** cthrax has joined #angularjs
[19:07:13] <EdwardIII> decided i'm not brave enough to jump to the ui state machine for nav yet until i understand the basics a bit better
[19:07:28] *** Una has quit IRC
[19:07:46] <EdwardIII> so i'd like to just be able to say isActive('viewName') and then have a function that reads something like: this.isActive = function(name){ return (this.viewName == name); }
[19:07:46] *** 64MABE4O7 has quit IRC
[19:07:46] *** AngularUI has joined #angularjs
[19:07:46]
<AngularUI> [ng-grid] MattAtBT opened pull request #2383: Issue #2382 - Disable resizing of expandable buttons column (master...2382) http://git.io/fKO4XQ
[19:07:47] *** AngularUI has left #angularjs
[19:07:48] *** asley has quit IRC
[19:07:48] <ctanga> EdwardIII: yeah, learn angular first. routing is a whole different topic (but an important one)
[19:07:50] *** ivanskie has joined #angularjs
[19:07:50] *** herbyme has quit IRC
[19:07:50] *** UncleHo has joined #angularjs
[19:07:51] *** d4rklit3 has joined #angularjs
[19:08:02] <EdwardIII> just so i can quickly get some nice active-class goodness
[19:08:04] *** ChadStrat has quit IRC
[19:08:08] *** UncleHo has left #angularjs
[19:08:09] <EdwardIII> this nav is fairly static so that will be fine
[19:08:12] *** sk87 has quit IRC
[19:08:20] *** Cydmax has quit IRC
[19:08:21] *** dc_ has joined #angularjs
[19:08:26] *** tty has left #angularjs
[19:08:34] *** ki0 has quit IRC
[19:08:45] *** whunt has joined #angularjs
[19:08:45] *** seismo has quit IRC
[19:09:39] <ctanga> EdwardIII: with ngRoute or no routing?
[19:10:06] *** sk__ has joined #angularjs
[19:10:12] *** Bodin- has joined #angularjs
[19:10:17] *** rikkipitt has quit IRC
[19:10:19] <EdwardIII> ctanga: with ngRoute
[19:10:25] <sk__> hi...need a quick help
[19:10:28] *** Bodin- has quit IRC
[19:10:57] <sk__> IS THERE ANY WAY TO ADD CUSTOM ATTRIBUTE TO OPTION TAG WITH NG-OPTIONS??
[19:11:23] <sk__> IS THERE ANY WAY TO ADD CUSTOM ATTRIBUTE TO OPTION TAG WITH NG-OPTIONS WITHOUT USING NG-REPEAT??
[19:11:46] <EdwardIII> ctanga: sure that's what i'm trying to do, i was thinking maybe just something like <li ng-css="isActive('MainCtrl')">
[19:12:26] <ctanga> EdwardIII: you’re going to have to code isActive yourself. you’re going to have to track what the most recent route change success was and test against that in the isActive fn
[19:12:31] *** ngbot has joined #angularjs
[19:12:31]
<ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_3 from cd77c08 to bd28c74: http://git.io/C4ArPw
[19:12:31] *** ngbot has left #angularjs
[19:12:51] <EdwardIII> ctanga: i was thinking about just doing $scope.isActive =... on each view
[19:12:52] *** dc_ has quit IRC
[19:12:56] <iShortBus> sk__: No you will have to use ng-repeat
[19:13:16] *** MalfaitRobin has joined #angularjs
[19:13:18] *** zz_night-owl is now known as night-owl
[19:13:23] <EdwardIII> hrm i guess i have to write my own directive
[19:13:27] *** ngbot has joined #angularjs
[19:13:28] *** ngbot has left #angularjs
[19:13:31] <EdwardIII> as ng-css doesn't ever seem to trigger that function
[19:13:39] <ctanga> ng-class
[19:13:42] *** spaceonline has joined #angularjs
[19:13:46] *** scythe__ has quit IRC
[19:13:55] *** elliotstokes has quit IRC
[19:14:04] <ctanga> you don’t necessarily need a directive, but that’s a great way to encapsulate that logic
[19:14:13] *** sk__ has quit IRC
[19:14:15] <EdwardIII> hrm neither does that heh
[19:14:21] *** AngularUI has joined #angularjs
[19:14:21]
<AngularUI> [ng-grid] PaulL1 closed pull request #2381: Issue #2149 - override expandableRowHeaderColDef.displayName (master...2149) http://git.io/Tvwfaw
[19:14:21] *** AngularUI has left #angularjs
[19:14:27] <EdwardIII> <li ng-class="isActive('MainCtrl')"> <!-- is that sane?
[19:14:33] <ctanga> no
[19:14:39] <ctanga> what class is it adding?
[19:14:44] <EdwardIII> right you are
[19:14:49] *** jareddlc has joined #angularjs
[19:14:52] *** scythe__ has joined #angularjs
[19:15:23] *** morenoh149 has joined #angularjs
[19:15:59] *** tristanp has quit IRC
[19:16:18] *** bradmaxs has joined #angularjs
[19:17:28] *** josh-k has quit IRC
[19:17:57] *** AimerPaddle has joined #angularjs
[19:18:07] *** spaceonline has quit IRC
[19:18:26] *** ingsoc has quit IRC
[19:18:46] *** jonasliljestrand has joined #angularjs
[19:18:59] *** wisew has joined #angularjs
[19:19:00] *** bayousoft has quit IRC
[19:19:36] *** bayousoft has joined #angularjs
[19:19:47] *** dotsspwe has joined #angularjs
[19:20:30] *** antons_ has quit IRC
[19:20:30] *** antons has quit IRC
[19:20:33] *** wisew has left #angularjs
[19:20:36] *** helen_ has joined #angularjs
[19:21:21] *** tfennelly has quit IRC
[19:22:02] *** zwacky has quit IRC
[19:22:12] *** crised has quit IRC
[19:22:42] *** sl33k_ has joined #angularjs
[19:22:58] *** Anton_ has quit IRC
[19:23:06] *** frem has joined #angularjs
[19:23:38] *** rafagomes has quit IRC
[19:24:46] *** RaghuRahut has joined #angularjs
[19:24:59] *** mohit has joined #angularjs
[19:24:59] *** garbanzio has quit IRC
[19:25:35] <mohit> hi everybody ...
[19:25:36] *** wallerdev has quit IRC
[19:25:38] *** mlpug has quit IRC
[19:25:47] *** RaghuRahut has left #angularjs
[19:26:14] *** windsurf_ has quit IRC
[19:26:21] <mohit> please guide me .. how to access nested ng-repeat scope in parent ng-repeat scope
[19:26:46] *** Oxynum has quit IRC
[19:26:54] *** ivanskie has quit IRC
[19:27:13] *** chrisbirk has quit IRC
[19:27:13] <mohit> in nested ng-repeat i have type box
[19:27:19] <mohit> i need to access that value
[19:27:24] *** jotaefe has quit IRC
[19:27:35] *** lolmaus has quit IRC
[19:27:58] *** jotaefe has joined #angularjs
[19:28:16] <mohit> anybody here
[19:28:22] *** rafagomes has joined #angularjs
[19:28:23] <jaawerth> ctanga: yeah, you could totally hack that in there when feature compatibility is detected
[19:28:54] *** yts has joined #angularjs
[19:29:04] *** baweaver has joined #angularjs
[19:29:30] <jaawerth> ctanga: the one bit I haven't added into my little experiment yet is the stack of observers and deferring the call to the observer callback so it works through the stack after the current callstack clears (like what real Object.observe does)
[19:29:30] *** mmealling has quit IRC
[19:29:38] *** jdivock has joined #angularjs
[19:29:52] *** scythe__ has quit IRC
[19:30:00] <mohit> HOW TO ACCESS NESTED NG-REPEAT SCOPE IN PARENT NG-REPEAT
[19:30:07] *** mmealling has joined #angularjs
[19:30:10] <mohit> Please Guide me
[19:30:26] *** scythe__ has joined #angularjs
[19:30:56] <jaawerth> ctanga: The only bit I'm not sure is doable in a clean way is the same issue your second link deals with. True Object.observe actually watches the whole object so it'll notice when you add a new property. Mine currently only observes individual properties
[19:31:02] *** Anton_ has joined #angularjs
[19:31:43] *** bkuberek has joined #angularjs
[19:31:51] <jaawerth> ctanga: You could do this with Object.keys().length (not unlike what ui-router is doing) so if the whole object is observed, it will add also track # of keys and then observe their individual values, but I was hoping to keep everything a little more passive than that if possible
[19:32:32] *** jotaefe has quit IRC
[19:33:00] *** jheady has joined #angularjs
[19:33:02] *** bullicon has quit IRC
[19:33:10] *** jheady has left #angularjs
[19:33:34] *** ivanskie has joined #angularjs
[19:33:38] *** illume has joined #angularjs
[19:34:00] *** dylang has joined #angularjs
[19:34:06] <sinious> Hi, (I'm new to angular) Are there any obvious pitfalls a newbie may encounter populating a view with bound data? It works perfect if I get data from $http and assign to the $scope.var, then I store that in localStorage. When I refresh the page, grab that same data in localStorage and assign to $scope.var, the view never updates
[19:34:19] *** wallerdev has joined #angularjs
[19:34:28] *** dannyc has joined #angularjs
[19:34:41] *** jdivock has quit IRC
[19:34:45] *** umib0zu has joined #angularjs
[19:34:46] *** tristanp has joined #angularjs
[19:34:48] *** __danima_ has joined #angularjs
[19:35:08] *** TheAceOfHearts has joined #angularjs
[19:35:20] <ctanga> yeah
[19:35:29] <ctanga> nate wrote that observe code quite a while ago
[19:35:49] *** foofoobar has joined #angularjs
[19:35:51] <sinious> Any known caveats with angular bound properties and localStorage? I've mercilessly iterated over the data being assigned to $scope.var from either source, both set identical values.. but localStorage kills angular *shrug*
[19:36:08] <ctanga> I’d almost consider delegating to angular’s observe code if it wasn’t so dependent on digest cycle
[19:36:21] <ctanga> for ui-router, that is, not for your experiment
[19:36:37] <iShortBus> sinious: how are you pulling it from local storage? I use localStorage in a large amount of my projects and have never had an issue
[19:37:12] *** OnkelTem has quit IRC
[19:37:19] <jaawerth> ctanga: yeah, that's why I did that little experiment - the digest cycle is great for what it is, but I want a way to "watch" things without it checking on every digest loop.
[19:37:22] <sinious> iShortBus: I use an angular addon called angular-local-storage by Gregory Pike
[19:37:29] <ctanga> roger that
[19:37:45] *** ninjaparade has joined #angularjs
[19:37:47] <jaawerth> ctanga: Object.defineProperty and the get/set stuff makes it possible to passively watch things, which is awesome, just a couple limitations to get around
[19:37:58] *** doginal has quit IRC
[19:38:03] <ctanga> yep
[19:38:09] *** OnkelTem has joined #angularjs
[19:38:18] *** __danimal__ has quit IRC
[19:38:26] <jaawerth> but for ui-router you could just check for defineProperty compatibility (IE8 has a broken one), and fallback to either that other code or to the digest watch
[19:38:31] <sl33k_> The way in which the team tests code is by uploading to SSH server. How would it be possible to test a functionality in isolation?
[19:38:42] *** dannyc has quit IRC
[19:38:59] <ctanga> ie8, bleh
[19:39:05] <ctanga> I’m dropping ie8 support soon
[19:39:15] <ctanga> soon-ish
[19:39:29] <jaawerth> that's how I feel
[19:39:30] *** cthrax has quit IRC
[19:39:34] *** mchapman has quit IRC
[19:39:36] <jaawerth> even Salesforce has dropped it
[19:39:57] *** erikruthven has joined #angularjs
[19:40:04] *** baweaver has quit IRC
[19:40:14] <sinious> iShortBus: dev tools are showing me identical proper data. I've even manually iterated over the data from localStorage and it's perfectly fine. I can console.log($scope.var) and it's populated. I have a ng-repeat that uses that var that never gets updated for some reason.. even $scope.$apply() won't get the ng-repeat to read the changed property
[19:40:16] <iShortBus> sinious: you may be having a digest issue. try adding $scope.$apply()
[19:40:30] <jaawerth> ctanga: ha, nice!
[19:40:33] <jaawerth> I like that
[19:40:35] *** mkusher has joined #angularjs
[19:40:46] <ctanga> it’s handy
[19:40:55] <ctanga> especially when it’s framework code modifying stuff
[19:40:56] *** illume has quit IRC
[19:40:58] <jaawerth> it's really an underutilized feature of ES5, I almost never see it in the wild
[19:41:23] <iShortBus> sinious: are you one-time binding by chance? can you give me a code sample
[19:41:28] <jaawerth> I wouldn't even know about it if I hadn't stumbled on it in.. I can't remember if it was the "Rhino Book" or devdocs
[19:41:31] <sinious> iShortBus: Tried it, even wrapped it in the controller like $scope.$apply(function() { $scope.var = service.getData(); }); and it has no effect
[19:41:33] <jaawerth> a while back
[19:41:42] <ctanga> yeah, nifty little trick
[19:41:45] <erikruthven> Hi is there a way to know when a directive is done/compiled/painted in link function, trying to set focus on search directive without using setTimeout()
[19:41:47] *** cacts|works has joined #angularjs
[19:42:02] <sinious> iShortBus: every code example I make works fine haha.. but I'll give you a jist, sec
[19:42:20] *** andy___ has joined #angularjs
[19:42:21] *** AlSquirrel has quit IRC
[19:42:43] *** andy___ is now known as Guest30325
[19:42:57] <jaawerth> erikruthven: you should just be able to set the focus in the link function itself
[19:43:01] *** intellix has quit IRC
[19:43:22] *** Guest30325 has left #angularjs
[19:43:31] *** JmZ_ is now known as JmZ
[19:43:42] *** vassagus has quit IRC
[19:44:05] *** jdivock has joined #angularjs
[19:44:09] *** deanclkclk has quit IRC
[19:44:18] <erikruthven> jaawerth: only way it works is if i do setTimeout
[19:44:46] *** davi has joined #angularjs
[19:44:46] *** davi has joined #angularjs
[19:44:56] *** Shai-Tan has quit IRC
[19:45:21] <jaawerth> erikruthven: is the directive on the element itself (on which you're setting focus) or a sub-element being added via a template?
[19:45:33] <sinious> iShortBus: by putting a timeout there I'm just giving 'an example' of async data delay, then I broadcast that I'm done from the service (which I do), and the controller requests/sets the data.. and in that example it works fine.. yet in mine, I can't get it to set and trigger ng-repeat
[19:45:35] *** intellix has joined #angularjs
[19:45:43] *** Seich has quit IRC
[19:46:04] <erikruthven> jaawerth: sub-element being added via template
[19:47:08] *** shpoont has joined #angularjs
[19:49:37] *** mchapman has joined #angularjs
[19:53:17] <steeze> i set socketio with app.set('socketio', io); but i'm having trouble using it in a controller. pretty sure i just need to bring in my express app somehow, just a little stuck
[19:53:18] <steeze> line 12 of the gist is pertinent
[19:53:18] *** lrvick has quit IRC
[19:53:19] *** Seich has joined #angularjs
[19:53:19] <iShortBus> sinious: that's really strange. Are you getting any sort of stack trace, or does it just sit?
[19:53:20] <jaawerth> erikruthven: ah, that'd do it then
[19:53:22] <erikruthven> jaawerth: ya kinda sucks, setTimeout just seems so hacky/unreliable
[19:53:22] *** lrvick has joined #angularjs
[19:53:23] <jaawerth> erikruthven: well, you could compile it manually, or you could use a directive in the template to do the focusing
[19:53:23] *** ivanskie has quit IRC
[19:53:24] *** baweaver has joined #angularjs
[19:53:26] *** scythe__ has quit IRC
[19:53:28] *** mohit has quit IRC
[19:53:28] <sinious> iShortBus: do you know the angular method I should expect to see in that controller to know the digest was triggered?
[19:53:30] *** chrisbirk has joined #angularjs
[19:53:31] *** tfennelly has joined #angularjs
[19:53:31] *** ninjaparade has quit IRC
[19:53:31] <iShortBus> i do not. sorry
[19:53:32] <erikruthven> jaawerth: hmm compiling manually ... could u explain further?...
[19:53:32] *** deanclkclk has joined #angularjs
[19:53:32] *** shackleford has joined #angularjs
[19:53:32] *** Sky[x] has joined #angularjs
[19:53:33] *** shackleford has quit IRC
[19:53:33] *** iber has left #angularjs
[19:53:33] *** avree has joined #angularjs
[19:53:36] <sinious> iShortBus: to my knowledge, just changing the property value should be enough, even though I'm $scope.$apply()ing.. on a breakpoint and in log I can see the property has the correct data. I don't see anything else happening :/
[19:53:40] *** shackleford has joined #angularjs
[19:54:04] *** jonasliljestrand has quit IRC
[19:54:47] *** dshap has joined #angularjs
[19:54:49] *** newswim has joined #angularjs
[19:55:19] <iShortBus> and this is within your $rootScope.$on() ?
[19:55:27] *** goodenough has quit IRC
[19:55:31] *** Cronoh has joined #angularjs
[19:55:34] *** okdamn has quit IRC
[19:55:39] <sinious> I do see $RootScopeProvider/this.$get</Scope.prototype.$eval..... angular.js line 14200, $digest angular line 14016, $apply line 14304..
[19:55:44] *** Una has joined #angularjs
[19:56:20] <jaawerth> erikruthven: sorry, I have a meeting - further research suggests it may be more of a rendering issue though
[19:56:24] *** JesseH has quit IRC
[19:56:25] <sinious> I use the $rootScope.$on to catch the event that data is loaded, then I fire off a function in $scope which asks the service that has the data for it
[19:56:27] <jaawerth> I'll play around with it if you're still working on it after my meeting though
[19:56:30] <dshap> Hey all — I have a controller’s scope with an ng-repeat, and for each repeated scope i’m using a child controller which does stuff with the repeated item. Problem is, seems dirty/not very explicit to just call the repeated item on the scope in the child controller’s code. What’s the best-practice way to access that variable in an explicit manner?
[19:56:50] *** Skrypter has joined #angularjs
[19:57:05] *** Snugug has joined #angularjs
[19:57:18] *** dacuca has joined #angularjs
[19:57:45] *** elyssonmr has quit IRC
[19:58:27] *** lsiv568 has joined #angularjs
[19:58:46] <whatadewitt> if a form has an input with value "Hello" and I change it to "Hello, World", it is "dirty", but if i change it back to "Hello", it is still "dity"?
[19:58:50] <whatadewitt> dirty*
[19:58:54] <dshap> to clarify, in my parent controller i have <div ng-repeat=“slot in slotList” ng-controller=“SlotCtrl”>, but it seems like a bad practice to just call $scope.slot within SlotCtrl, which is implicitly inheriting it from the parent
[19:58:59] *** Fry_ has joined #angularjs
[19:59:07] *** SargoDarya has joined #angularjs
[19:59:11] *** IanOlson has joined #angularjs
[19:59:20] *** jdj_dk_ has joined #angularjs
[19:59:49] *** soee has joined #angularjs
[19:59:49] *** tfennelly has quit IRC
[20:00:09] *** scriptThis has joined #angularjs
[20:00:23] *** btooth has joined #angularjs
[20:00:31] *** goodenough has joined #angularjs
[20:00:59] *** foofoobar has quit IRC
[20:00:59] *** platonic has joined #angularjs
[20:01:01] *** jaznow has joined #angularjs
[20:01:34] <btooth> hello. i try to use angular-ui-bootstrap (installed via bower) accordion, but it seems something with css is missing. it is not displayed (heading text is there)
[20:01:45] *** sl33k_ has quit IRC
[20:01:47] *** Skrypter has quit IRC
[20:01:51] *** jdivock_ has joined #angularjs
[20:01:57] *** Mxyzpltk has quit IRC
[20:02:05] <iShortBus> you need to include the bootrap css
[20:02:08] <iShortBus> it doesn't come with it
[20:02:16] <iShortBus> btooth:
[20:02:36] *** ashah has quit IRC
[20:02:44] *** lsiv568 has quit IRC
[20:02:45] <steeze> whatadewitt, i think it's dirty if it's been modified at all
[20:02:48] *** \du has quit IRC
[20:03:03] <whatadewitt> steeze: i thought that was what "pristine" was for
[20:03:03] *** jdivock_ has quit IRC
[20:03:17] *** g33k5z has joined #angularjs
[20:03:22] <steeze> whatadewitt, you might be right. you should be able to test that pretty quickly?
[20:03:22] *** SargoDarya has quit IRC
[20:03:36] <iShortBus> sinious: are you using the promises within the service?
[20:03:44] <whatadewitt> well, i am testing it, but i'm not getting the results i expect
[20:03:50] <whatadewitt> which is why i am asking! haha
[20:03:50] *** shackleford has quit IRC
[20:04:09] <steeze> whatadewitt, pristine tells you it has not been modified, dirty tells you it has. two sides to the same story
[20:04:11] <dmack> what's the quickest way to tell if an objects key is unique in a collection?
[20:04:21] <iShortBus> you need the bootstrap css
[20:04:21] <dmack> im assuming lodash has a method like this
[20:04:28] *** jdivock has quit IRC
[20:04:58] *** jonasliljestrand has joined #angularjs
[20:05:05] <iShortBus> you may be having some issues b/c your using angular-material and bootstrap. Angular material uses flexbox
[20:05:12] *** soup has joined #angularjs
[20:05:33] *** e0ipso is now known as e0ipso|away
[20:06:19] *** jaznow has quit IRC
[20:07:12]
<iShortBus> btooth: If you want the material look and feel, with some additional stuff that's currently missing in angulars implementation check out http://ui.lumapps.com/
[20:07:23] *** baweaver has quit IRC
[20:07:37] *** g33k5z has quit IRC
[20:07:58] *** foofoobar has joined #angularjs
[20:08:03] *** Oddman has quit IRC
[20:08:29] *** zoite__ has quit IRC
[20:08:33] *** Mxyzpltk has joined #angularjs
[20:09:32] *** shackleford has joined #angularjs
[20:09:44] *** ianpirro has quit IRC
[20:11:39] <EdwardIII> hrm the exceptions thrown on broken expressions in templates is much, much clearer in angular than ko
[20:13:01] <EdwardIII> so, is this sane? <li ng-class="{'active': isActive('MainCtrl')}"
[20:13:30] <patrick99e99> so why does angular'
[20:13:44] <patrick99e99> so why does angular's documentation say "service", yet all the examples say "factory"... ?
[20:13:53] *** vassagus has joined #angularjs
[20:13:56] *** tkh44 has joined #angularjs
[20:13:57] <patrick99e99> are the two really synonyms ?
[20:14:05] *** davidreis has quit IRC
[20:14:07] *** Fry_ has quit IRC
[20:14:16] *** daivyk_ has joined #angularjs
[20:14:27] <steeze> not quite
[20:14:52] <steeze> a service is just a constructor function, a factory returns and obecct
[20:15:00] <EdwardIII> that directive doesn't seem to be evaluating $scope.isActive = ... on the controller
[20:15:08] <ctanga> they are *almost* synonyms but not quite
[20:15:17] *** josh-k has joined #angularjs
[20:15:50] *** debunk has joined #angularjs
[20:16:23] *** chrisshattuck has joined #angularjs
[20:16:24] *** kas84 has quit IRC
[20:16:41] *** renlo has quit IRC
[20:16:48] *** avree has joined #angularjs
[20:16:56] *** davek_ has quit IRC
[20:16:57] <patrick99e99> steeze: yeah but you can do angular.module('foo').service and angular.module('foo').factory ?
[20:17:03] <patrick99e99> there is no documentation showing the use of .service
[20:17:04] *** daivyk has quit IRC
[20:18:09] <dmack> to answer my own question, var unique = !_.findWhere(vm.items, { id: newItem.id });
[20:18:39] *** Seich has quit IRC
[20:18:44] *** boxmein has joined #angularjs
[20:18:47] <EdwardIII> maybe my approach is duff
[20:18:47] *** josh-k has quit IRC
[20:18:58] <EdwardIII> can i get access to $requestProvider in a directive?
[20:19:10] *** dotsspwe has quit IRC
[20:19:13] *** doginal has joined #angularjs
[20:19:22] *** josh-k has joined #angularjs
[20:19:23] <EdwardIII> can i, and also, should i?
[20:19:36] <ctanga> EdwardIII: <li ng-class="{active: isActive('MainCtrl’)}”> works too
[20:19:43] <steeze> patrick99e99, i think you can create services with factories, but you cant make factories with services
[20:20:02] <EdwardIII> ctanga: it doesn't seem to be evaluating $scope.isActive though
[20:20:10] <EdwardIII> ctanga: i have a console.log in there that never gets evaluated
[20:20:11] *** josh-k__ has joined #angularjs
[20:20:41] *** naneau has quit IRC
[20:20:42] <ctanga> EdwardIII: you sure the scope you put isActive onto is accessible from that tag?
[20:20:42] *** night-owl is now known as zz_night-owl
[20:20:46] *** Guest22 has quit IRC
[20:20:55] *** ahtik has joined #angularjs
[20:21:03] *** TheAceOfHearts has quit IRC
[20:21:03] <ctanga> EdwardIII: sanity check using batarang
[20:21:04] *** Seich has joined #angularjs
[20:21:12] *** foofoobar has quit IRC
[20:21:23] <EdwardIII> ctanga: ah, it almost certainly isn't
[20:21:23] *** DoubleAW has quit IRC
[20:21:32] <EdwardIII> ctanga: my nav is within ng-app, but outside of ng-view
[20:22:15] <ctanga> are you making a directive?
[20:22:22] <EdwardIII> i would settle for { 'active': currentRouteEquals('#/') }
[20:22:22] *** AngularUI has joined #angularjs
[20:22:22]
<AngularUI> [ng-grid] gwin003 opened pull request #2386: 2.x (2.x...2.x) http://git.io/6gsvTg
[20:22:22] *** AngularUI has left #angularjs
[20:22:23] <EdwardIII> ctanga: not yet, no
[20:22:31] *** Sontakey has joined #angularjs
[20:22:32] <ctanga> where is your isActive defined?
[20:22:38] *** foofoobar has joined #angularjs
[20:23:12] <ctanga> you could a) add it to $rootScope (bad) or b) define a service which tracks the current route and exposes isActive (good)
[20:23:37] *** josh-k has quit IRC
[20:23:51] <EdwardIII> ctanga: define a service != create a directive, right?
[20:23:58] <ctanga> EdwardIII: correct
[20:24:22] <EdwardIII> ctanga: plus if my service has access to $routeProvider it can automatically know what the current view name is, it's more generic
[20:24:32] <ctanga> does $route expose the curent route?
[20:24:47] <ctanga> I know very little about ngroute
[20:24:51] <sinious> iShortBus: sorry stepped away. Well the $http service gives a promise so I use that, and that works. But on loadup if I detect localStorage that information is synchronously retrieved and parsed with angular.fromJson back to an array, then the controller is notified and the controller asks the service for the data (no promise), and that fails to update the view
[20:24:52] *** shackleford has quit IRC
[20:24:54] <EdwardIII> ctanga: it does
[20:24:57] *** Skrypter has joined #angularjs
[20:25:02] <EdwardIII> ctanga: $routeProvider does
[20:25:04] <patrick99e99> steeze: i guess my real quesiton is, why does angular not have documentation explaining this?
[20:25:28] *** jonasliljestrand has quit IRC
[20:25:30] <EdwardIII> ctanga: $route.current.scope.name contains the current controller name
[20:25:32] *** Sontakey has left #angularjs
[20:25:40] <steeze> patrick99e99, haha, now that i don't know.
[20:25:43] <btooth> iShortBus: thanks for information. but i can not find a css inside angular-ui-bootstrap..
[20:25:43] <EdwardIII> ctanga: actually that might be slightly wrong
[20:25:49] <ctanga> app.run(function($route, $rootScope) { $rootScope.$route = $route; });
[20:25:49] *** doginal has quit IRC
[20:26:09] <EdwardIII> ctanga: ah ok $route does
[20:26:12] *** doginal has joined #angularjs
[20:26:21] *** pilva has quit IRC
[20:26:24] <ctanga> <li ng-class=“{ active: $route.current.scope.name === ‘route1’ }”><a href=“/route1”>route 1</a></li>
[20:26:32] *** cavallari1 has quit IRC
[20:26:37] <EdwardIII> eh that's not gonna work heh
[20:26:37] <patrick99e99> according to angular docs, services are made with .factory, and that's that..
[20:26:39] *** daivyk_ has quit IRC
[20:26:50] <dmack> actually it's .provider
[20:27:06] *** TheAceOfHearts has joined #angularjs
[20:27:08] <EdwardIII> ctanga: that's the 'ugly' way right?
[20:27:13] <patrick99e99> but there's plenty of other articles by random people talking about myModule.service as well and the differences between it and .factory
[20:27:14] *** jdj_dk_ has quit IRC
[20:27:19] *** Christer has quit IRC
[20:27:21] *** dacuca has quit IRC
[20:27:40] <ctanga> EdwardIII: just encapsulate that comparison into a function, then choose how to expose it to your nav
[20:27:42] <iShortBus> that's because it does not exist
[20:27:43] *** dylang has quit IRC
[20:27:48] *** davi has quit IRC
[20:27:57] *** SergioFilhow_ has joined #angularjs
[20:28:03] <MistahKurtz> in case you're interested.
[20:28:11] <ctanga> of course I’m interested :)
[20:28:15] <EdwardIII> ctanga: and expose that function as a service?
[20:28:24] <iShortBus> btooth: you need to either pull it in from the cdn, bower install bootstrap and only include the css, or bowr install the less and then compile that.
[20:28:35] <ctanga> EdwardIII: your choice. that is the sort of stuff I’m ok with plopping on root scope
[20:28:52] <EdwardIII> ctanga: actually i don't have app.run anywhere
[20:28:53] <ctanga> in ui-router’s case, I tend to plop $state onto $rootScope
[20:29:04] *** robot443 has joined #angularjs
[20:29:05] *** baweaver has joined #angularjs
[20:29:37] *** nabdev has quit IRC
[20:29:52] <EdwardIII> ctanga: just plonk .run on the end of that?
[20:29:55] <ctanga> MistahKurtz: wrap your callback api as an object
[20:30:08] *** Oddman has joined #angularjs
[20:30:38] <MistahKurtz> ctanga you mean for the proposal?
[20:30:39] <ctanga> .go(‘foo’, { myParam: { success: successFn } });
[20:30:55] <MistahKurtz> ohhhh
[20:30:59] <MistahKurtz> so you mean give it a function reference
[20:31:02] <MistahKurtz> wait
[20:31:09] <ctanga> EdwardIII: yeah you can chain a .run block off that
[20:31:17] *** siovene has joined #angularjs
[20:32:06] <ctanga> MistahKurtz: you have this: .go(‘foo’, { myParam: successFn}); change it to this: .go(‘foo’, { myParam: { success: successFn } });
[20:32:20] *** Solid1_afk has quit IRC
[20:32:37] *** lsiv568 has joined #angularjs
[20:32:54] *** SergioFilhow_ has quit IRC
[20:33:03] *** mlpug has joined #angularjs
[20:33:28] *** Una has quit IRC
[20:33:40] *** ianpirro has joined #angularjs
[20:33:45] <MistahKurtz> I see. Well I mean it's working the first way ctanga
[20:33:49] <MistahKurtz> just had me worried whether it was a bug or not
[20:33:57] <ctanga> oh, gotcha
[20:34:29] *** shackleford has joined #angularjs
[20:34:33] <iShortBus> sinious: try wrapping that in a promise. It may fix your issue
[20:34:40] *** intellix has quit IRC
[20:34:57] *** yoshokatana has quit IRC
[20:35:15] <ctanga> I’d say it’s fine as-is. the function invocation is explicitly documented for params:, and passing functions as params is a corner case
[20:35:44] *** doodlehaus has quit IRC
[20:35:46] *** aton` has joined #angularjs
[20:35:50] <sinious> iShortBus: I'm fairly new to using those as well but I get the concept. But are you suggesting that just so I delay setting the property or is there some angular aspect that just works better with promises?
[20:36:19] *** foofoobar has quit IRC
[20:36:19] *** baweaver has quit IRC
[20:36:24] <EdwardIII> ctanga: hrm at that point $route has no attribute current
[20:37:16] *** swist has quit IRC
[20:37:29] *** staticinteger has joined #angularjs
[20:37:44] *** Una has joined #angularjs
[20:37:44] <staticinteger> Wassup guys :)
[20:37:52] *** swist has joined #angularjs
[20:38:01] <sinious> iShortBus: And just so I know where you intend me to add this, should the promise be in the controller where I request the data (after an event alerts me data is ready)?
[20:38:16] <EdwardIII> i'm not sure about matching on $location.path in case it gets messed up
[20:38:24] <EdwardIII> like by a querystring or a trailing slash or something
[20:38:39] <iShortBus> sinious: in your service
[20:39:24] <sinious> iShortBus: so refactor the methods that retrieve the data (either from $http or localStorage) to return a promise?
[20:39:33] *** tristanp has quit IRC
[20:39:38] *** phzon has joined #angularjs
[20:39:48] <EdwardIII> eh ok and every time i reload the page $location doesn't change if i do it in .run()
[20:40:02] *** leolrrj has quit IRC
[20:40:19] *** renlo has joined #angularjs
[20:40:19] <iShortBus> if you're just passing back return $http.get(), then that already has a promise that you can use .then on
[20:40:24] *** foofoobar has joined #angularjs
[20:40:25] *** doodleha_ has joined #angularjs
[20:41:00] *** gladely has joined #angularjs
[20:41:36] <jaawerth> oh yeah, stuff like that and creating tabs is some of the easiest stuff to do in angular ;-)
[20:41:45] <iShortBus> but if this is all being done in one place, where you pull from LS (cached data), then do a http.get then set within the service (and emit the update event). then you can make one promise as a kinda fallback.
[20:42:19] <jaawerth> I always hated ui-bootstrap's tab directives. it's so much boilerplate to do accomplish what you can do with a few built-in angular directives
[20:42:35] *** g33k5z has joined #angularjs
[20:42:42] *** Poppa has joined #angularjs
[20:42:53] <iShortBus> jaawerth: ?
[20:43:12] <iShortBus> can you explain that, cuz i use ui-bootstraps tabs for like every tab layout i have
[20:43:15] <jaawerth> iShortBus: the navbar activeclass link
[20:43:18] <jaawerth> oh
[20:43:25] *** sandelius has joined #angularjs
[20:43:35] *** doginal has quit IRC
[20:43:37] <jaawerth> which part? the criticism of ui-bootstrap or the "so easy to do?" bit?
[20:43:53] <iShortBus> the easy to do
[20:44:03] *** phzon has quit IRC
[20:44:13] <iShortBus> b/c if i'm missing somethng that'll make shit faster to develop, i'm always up for that. lol
[20:44:18] *** Solid1_afk has joined #angularjs
[20:44:29] *** Poppabear has quit IRC
[20:45:00] <jaawerth> well, if you think about the functionality of what tabs are actually doing
[20:45:15] *** tristanp has joined #angularjs
[20:45:51] <sinious> iShortBus: I'm asking the service to load the data (via an id parameter). The service method just one of 2 things. It looks in localStorage for valid existing data and if found it immediately grabs it and fires the event. Otherwise, it continues and does a $http(requestObj).success().error(), which upon success will parse and broadcast the same event. Only one of those two ever happen at once, each able to fire the event
[20:46:02] <EdwardIII> mmm that option works splendidly enough for now
[20:46:15] <jaawerth> all you really need is a series of ng-shows/hides (or ng-if if you want them created and destroyed, or ng-include or a custom directive if you want them to pull from templates), and some logic that handles state switching.. that and whatever styles you need applies
[20:46:19] <sinious> *service method does just one of those two things
[20:46:25] *** Laserbeak43 has joined #angularjs
[20:46:27] <EdwardIII> ctanga: thanks for all your pointers! i've learned more in the last 5 mins than i have from lots of documentation reading
[20:46:29] *** sandelius has left #angularjs
[20:46:38] <ctanga> EdwardIII: don’t go away just yet
[20:46:41] <ctanga> i have another option for you
[20:46:42] *** Laserbeak has quit IRC
[20:46:43] <ctanga> give me a minute
[20:46:49] <EdwardIII> ctanga: heh don't worry i'll be lurking longtime
[20:46:51] *** Guest22 has joined #angularjs
[20:47:03] <jaawerth> to make a really nice, reusable one I'll typically use a custom directive for specific purposes, but all of that can also be accomplished well enough with ng-class, ng-show/hide, and ng-click
[20:47:08] <EdwardIII> well less lurking, more asking daft questions
[20:47:09] *** ivanskie has joined #angularjs
[20:47:42] *** jdivock has joined #angularjs
[20:47:43] *** bkuberek has quit IRC
[20:47:57] <iShortBus> sinious: and when the event is called, it pulls the data from the service in the controller, but it's not updating in the view? correct?
[20:48:02] <jaawerth> the amount of boilerplate to do it with ui-bootstrap kills me. All that <tab> <tab-heading> <tabset> crap
[20:48:10] *** mak`` has quit IRC
[20:48:18] *** foofoobar has quit IRC
[20:48:19] *** Solid1_afk is now known as Solid1
[20:48:22] *** Solid1 is now known as Solid1_afk
[20:48:29] *** Solid1_afk is now known as Solid1
[20:48:38] <iShortBus> jaawerth: you can avoid a little of that with the custom attributes, but still.
[20:48:41] <iShortBus> I do see your point
[20:48:43] <sinious> iShortBus: Exactly.. if pulled from localStorage, no view updates.. if there is no localStorage and $http is used, the view works fine
[20:49:20] <iShortBus> sinious, pulling from localStorage is a 'slow' process in the grand scheme of things
[20:49:22] <jaawerth> yeah, the config options are.. okay
[20:49:27] <jaawerth> not ideal in my opinion, though
[20:49:27] *** blirp has quit IRC
[20:49:41] *** rafagomes has quit IRC
[20:49:41] <iShortBus> so what may be happening is that it's really not being saved yet
[20:50:03] <iShortBus> What happens if you just pass the data along with the event? does that update it?
[20:50:09] *** chr1stopher has joined #angularjs
[20:50:29] <jaawerth> I'd *much* rather pass in an array of tabs (each with a potential 'heading' property on its object, and whatever other options) and have it generate it all from one data object
[20:50:33] *** larsgk has joined #angularjs
[20:50:47] *** Poppa is now known as Poppabear
[20:50:50] *** chr1stopher has left #angularjs
[20:51:01] <iShortBus> jaawerth: it's all part of the, this does everything kinda for you, but if you wanna extend it. Good fucking luck problem
[20:51:13] <iShortBus> hence why we have 1000 charting libs in js and angular
[20:51:17] <EdwardIII> it's a lot better than jquery-ui
[20:51:25] <EdwardIII> anyone remember that widget library/framework from olden days?
[20:51:31] <iShortBus> i'm stuck using it
[20:51:34] <iShortBus> right now
[20:51:38] <EdwardIII> for real?
[20:51:39] <iShortBus> and i'm dying
[20:51:39] *** threesixes has joined #angularjs
[20:51:43] <iShortBus> and bootstrap 2.3.2
[20:51:47] <EdwardIII> it hurts so bad
[20:51:49] <EdwardIII> it's like trying to extend a walrus
[20:51:50] <iShortBus> it's pretty awesome
[20:51:52] *** chrisbirk has quit IRC
[20:52:01] <sinious> iShortBus: I'm just examining the localStorage with firebug and I see it, and in the same code where I request it I'm console.log()ing it and it's all proper.. that's why it's driving me nuts, the data is fine. I even set window.someVar = $scope.var (using fake names a'course) and I checked window.someVar in the console, and the data is there, valid, right out of localStorage..
[20:52:03] <jaawerth> haha yeah
[20:52:10] <sinious> I'll try the event returning the data
[20:52:15] *** gunn has quit IRC
[20:52:17] *** TheAceOfHearts has quit IRC
[20:52:19] <jaawerth> it took a while for people to figure out good ways to make reusable libraries in angular, and there are too many different philosophies on it
[20:52:24] *** chrisbirk has joined #angularjs
[20:52:38] <EdwardIII> that's one thing that's been pretty confusing
[20:52:39] <staticinteger> jaawerth: hahahaha so true
[20:52:41] *** jdivock has quit IRC
[20:52:46] *** nuizzy has joined #angularjs
[20:52:48] <iShortBus> Well this brings the grunt/gulp argument. Do you want extensible code or extensible configs
[20:52:53] <StoneCypher> what's the best starting point for an experienced dev who wants to get up and running in angular quickly, and doesn't want something like a why's guide
[20:52:55] <EdwardIII> trying to figure out how to do something simple at the start like laoding a view, i read 3 different tutorials, all seemed quite different, none explained the underlying principles
[20:53:06] <EdwardIII> speaking of angular now
[20:53:10] <iShortBus> and kinda finding your miss.
[20:53:46] <btooth> 0~0~<accordion-group heading="Neuer Stoff" is-open="$scope.newSopen" > <accordion-heading ng-click="toggleSOpen()">
[20:53:55] <btooth> sry
[20:54:01] *** PigDude_ has quit IRC
[20:54:16] *** tfennelly has joined #angularjs
[20:54:19] *** robdubya has joined #angularjs
[20:54:21] <iShortBus> sinious: passing it from the event, will guarantee that you get it
[20:54:32] *** gunn has joined #angularjs
[20:54:33] *** neilff has quit IRC
[20:55:04] <iShortBus> and if it doesn't update $scope.$apply() and it should no matter what. otherwise. scream on the top of your lungs in fury and throw your computer out the window. lol
[20:55:04] *** neilff has joined #angularjs
[20:55:28] *** Pookz has joined #angularjs
[20:56:02] *** btooth has quit IRC
[20:56:17] *** jpstone has quit IRC
[20:56:51] *** nickeddy has quit IRC
[20:57:03] *** xdissent has joined #angularjs
[20:57:27] *** nickeddy has joined #angularjs
[20:57:52] *** richiebkr has quit IRC
[20:58:18] *** richiebkr has joined #angularjs
[20:58:50] *** tfennelly has quit IRC
[20:58:52] *** whatadewitt has quit IRC
[20:59:04] *** TheAceOfHearts has joined #angularjs
[20:59:31] <sinious> never had more console.log firing off in my life.. I put the data in the event, I receive it in the controller, I console.log the events data, it's proper.. I assigned to $scope.var (console.log()d it too and it's proper), and ran $scope.$apply() right after.. I guess it's time to throw my computer out the window, no difference
[20:59:39] *** DoubleAW has joined #angularjs
[21:00:01] *** neilff has quit IRC
[21:00:01] *** mrru has quit IRC
[21:00:24] <sinious> stepping back.. is ng-repeat enough to properly bind data in a view? am I perhaps missing a ng directive that's somehow not binding it properly?
[21:00:24] *** zanea|away is now known as zanea
[21:00:37] <nickeddy> sinious: need to see code
[21:01:00] *** Snugug has quit IRC
[21:01:17] *** scriptThis has quit IRC
[21:01:18] *** lugzer has quit IRC
[21:01:41] *** rick_ has joined #angularjs
[21:02:00] *** baweaver has joined #angularjs
[21:02:00] *** Snugug has joined #angularjs
[21:02:19] <sinious> nickeddy: it's a task list. <section ng-controller="MyCon"><ul><li ng-repeat="task in tasks">{{task.taskName}}</li></ul></section>.. with the corresponding MyCon defined/included in scripts, trying to set $scope.tasks
[21:02:33] *** spaceonline has joined #angularjs
[21:02:56] *** jdivock has joined #angularjs
[21:03:14] *** rick_ has quit IRC
[21:04:11] <sinious> that works, and what I'm doing is almost identical, it's just.... not caring that I change the $scope property value I bound
[21:04:53] <oniijin> are u having out of ng async issues
[21:05:02] *** evanjs has quit IRC
[21:05:03] *** bayousoft has quit IRC
[21:05:34] *** JesseH has joined #angularjs
[21:05:38] *** bayousoft has joined #angularjs
[21:05:45] <sinious> I'm too new to angular to know if I'm having those.. I thought $scope.$apply() would ask it to re-read it all and digest.. I don't know how to be more in sync
[21:06:02] *** bengillies has quit IRC
[21:06:14] *** swist has quit IRC
[21:06:21] <sinious> all I absolutely do know is my controller has a property $scope.tasks that does have correct data. What I don't know is why ng-repeat doesn't care
[21:06:30] *** bengillies has joined #angularjs
[21:06:33] *** RobinBAwesome has quit IRC
[21:06:35] *** prosper_ has joined #angularjs
[21:06:55] *** evanjs has joined #angularjs
[21:06:57] *** threesixes has quit IRC
[21:07:04] *** spaceonline has quit IRC
[21:07:17] <nickeddy> yeah don't be calling $scope.$apply(0
[21:07:51] *** Andrew_S has quit IRC
[21:08:05] *** bayousoft has quit IRC
[21:08:09] <nickeddy> what in the hell
[21:08:10] <sinious> I only tried it from reading forums/stackoverflow/etc.. they mentioned it should help any stuck bindings.. but I never needed it if I use the $http service to get my data
[21:08:21] <nickeddy> you're using events to update the model :|
[21:08:22] <oniijin> $http is ng
[21:08:42] *** bayousoft has joined #angularjs
[21:08:48] *** h0ru5 has joined #angularjs
[21:08:50] <oniijin> if you use $apply but using non ng wrapped async call, that apply will get called before your async finishes.
[21:09:02] <sinious> I'm broadcasting events from a service (it's actually a factory) alerting anyone listening that data is ready
[21:09:21] *** ctanga has quit IRC
[21:09:29] *** michaelSharpe has joined #angularjs
[21:10:10] *** larsgk has quit IRC
[21:10:14] *** Sky[x] has quit IRC
[21:10:16] *** jaznow has joined #angularjs
[21:10:24] *** fedenunez has quit IRC
[21:10:25] *** ctanga has joined #angularjs
[21:10:30] <sinious> I could do as iShortBus mentioned and refactor the service data loading methods to a promise.. not sure why it'd help, but I'm out of ideas
[21:10:37] *** fedenunez has joined #angularjs
[21:10:42] *** wallerdev has quit IRC
[21:10:50] *** SargoDarya has joined #angularjs
[21:10:57] <oniijin> not really sure what you're doing. how are you gettin the data? what are you doing with the data?
[21:11:01] <monokrome> sinious: Having a scope in your services is a bit of an anti-pattern that causes a lot of weird issues like this
[21:11:08] <oniijin> this is y u should replicate in plnk
[21:11:18] *** bengillies has quit IRC
[21:11:31] *** Sky[x] has joined #angularjs
[21:11:33] *** RobinBAwesome has joined #angularjs
[21:11:34] <nickeddy> sinious: you should not be broadcasting events to update model. makes no sense.
[21:11:44] *** e0ipso|away is now known as e0ipso
[21:11:52] *** evanjs has quit IRC
[21:11:54] *** cthrax has joined #angularjs
[21:12:00] *** wallerdev has joined #angularjs
[21:12:01] <sinious> I'm all for a better solution, I'm very new :)
[21:12:05] *** kroogs has joined #angularjs
[21:12:08] <michaelSharpe> hey all. Im having a problem passing an object into a directive. I have one directive inside another directive, and I am passing in an object on the parent directives scope into the child directive, but all I get for it is undefined.
[21:12:13] *** devish has joined #angularjs
[21:12:15] *** evanjs has joined #angularjs
[21:12:15] <nickeddy> sinious: what's your background
[21:12:17] *** lsiv568_ has joined #angularjs
[21:12:20] *** AngularUI has joined #angularjs
[21:12:20]
<AngularUI> [ng-grid] PaulL1 closed pull request #2383: Issue #2382 - Disable resizing of expandable buttons column (master...2382) http://git.io/fKO4XQ
[21:12:20] *** AngularUI has left #angularjs
[21:12:39] *** lsiv568 has quit IRC
[21:12:49] <sinious> nickeddy: mostly actionscript, been around javascript a while but I use plain ole vanilla or jquery at most
[21:13:06] <oniijin> go read ng for jq devs
[21:13:18] <monokrome> Changing the view model from an event is fine imo
[21:13:21] <oniijin> you're trying to write ng app using common jq calback hell patterns
[21:13:27] <monokrome> service data from UI events is where things get weird
[21:13:49] <sinious> well I just use jq for the browser normalization.. I can code plain vanilla javascript.. I'm not stuck on any jquery conventions
[21:14:02] <sinious> I use it almost only for DOM manipulation, not data
[21:14:10] <nickeddy> sinious: you're stuck on "use events to mod DOM" = bad
[21:14:15] <nickeddy> well
[21:14:20] *** josh-k has joined #angularjs
[21:14:25] <nickeddy> using that pattern to update data in a controller... really bad
[21:14:32] <bealtine> in ng the dom manipulates you
[21:14:33] <monokrome> Events to modify DOM is literally what bindings allow, nickeddy.
[21:14:41] <monokrome> Not bad.
[21:14:42] <sinious> I haven't used promises very much but I like them.. are you getting at using them instead?
[21:14:43] *** ngbot has joined #angularjs
[21:14:44] <ngbot> angular.js/master 7d70dcd olexme: docs($animate): fix misleading $animate.cancel example...
[21:14:44] *** ngbot has left #angularjs
[21:14:50] *** jaznow has quit IRC
[21:15:07] <nickeddy> monokrome: go look at his plnkr and tell me that's not the wrong way to update a $scope variable.
[21:15:12] <monokrome> sinious: Can you please post your controller's code?
[21:15:18] *** SargoDarya has quit IRC
[21:15:27] *** sahbeewah has joined #angularjs
[21:15:51] <boxmein> hello, there's an angularjs $q.deferred that doesn't want to resolve itself with the variables I provide
[21:15:56] <sinious> monokrome: I'm looking at an example nickeddy gave me then I will
[21:15:57] <monokrome> nickeddy: It's not
[21:15:59] *** narutimateum has joined #angularjs
[21:16:02] *** PrinceAMD has joined #angularjs
[21:16:06] *** jonatas_oliveira has quit IRC
[21:16:12] <monokrome> I already read the plunkr, but it doesn't solve fixing the issue since it works and sinious' code doesn't wor
[21:16:13] <monokrome> work*
[21:16:53] <nickeddy> monokrome: so you recommend using $rootScope.broadcast('someevent') and $scope.$on('someevent') to update the model ?
[21:16:57] *** kroogs has quit IRC
[21:17:13] <nickeddy> sinious: yeah $http gives promises by default
[21:17:24] *** josh-k__ has quit IRC
[21:17:37] *** gunn has quit IRC
[21:17:47] <nickeddy> sinious: so you can do $http.get('/api/endpoint').then(function(data) { /* do stuff with data from api */ })
[21:17:53] *** nuizzy has quit IRC
[21:17:59] <monokrome> nickeddy: No, but you're not recommending not doing that. I don't recommend using $rootScope from services, but you said not to "use events to mod DOM" which implies that it's bad to update the scope when an event is received in the controller
[21:18:05] *** shackleford has quit IRC
[21:18:07] *** SexualRickshaw has quit IRC
[21:18:28] *** rikko has quit IRC
[21:18:30] *** soup has quit IRC
[21:18:32] <nickeddy> typo, i meant model
[21:18:37] <sinious> nickeddy: In the future, multiple controllers are going to be interested in knowing when data is available. That's why my factory is broadcasting, so anyone 'who cares' can listen if they want
[21:18:39] *** andrew9183 has joined #angularjs
[21:18:49] <nickeddy> sinious: then attach the data to the service
[21:19:03] *** shackleford has joined #angularjs
[21:19:03] <monokrome> but the problem here (if I understand correctly) is that the service response to something that is not a DOM event and the $digest cycle needs some way of knowing the data changed
[21:19:06] *** devish has quit IRC
[21:19:06] <monokrome> right?
[21:19:08] *** mzabriskie has joined #angularjs
[21:19:14] *** skyx_ has joined #angularjs
[21:19:16] *** andrew9183 has quit IRC
[21:19:18] <sinious> nickeddy: the data is saved in the service after it's loaded and I have a status to check that, with a getter to grab it
[21:19:23] *** Aliks has joined #angularjs
[21:19:34] *** gunn has joined #angularjs
[21:19:37] <iShortBus> sinious: like myService.data?
[21:19:46] *** threesixes has joined #angularjs
[21:20:15] <iShortBus> where myService.get() // get's the data from somewhere and stores it in myService.data?
[21:20:19] <monokrome> The $scope.newNumbers thing is more worrying to me. That function is going to get called whenever scope is dirty-checked...
[21:20:51] <Slim> Hi guys, I'm trying to get some data through to a link function in one of my directives and after passing the data through the directive, I have a variable in the link function called data. when I log data i get {"sent":10,"bounced":5} but when i try to do data.sent or data.bounced i get undefined
[21:21:00] <sinious> iShortBus: well yep but like if (MyService.status == DATA_EVENTS.DATA_LOADED) { $scope.theData = MyService.getData(); } else { MyService.loadData(); }
[21:21:02] <Slim> Has anyone had this issue before?
[21:21:17] *** Sky[x] has quit IRC
[21:21:27] *** jmverges has joined #angularjs
[21:21:31] <Slim> i.e. I've got a variable called data that logs as {"sent":10,"bounced":5} but data.sent and data.bounced are undefined
[21:21:31] *** ivanskie has quit IRC
[21:21:44] *** larsgk has joined #angularjs
[21:21:49] <sinious> kinda just extra padding to make sure the first controller requesting data asks the service to get it.. there's more checks, like load errors, etc.. the usual
[21:22:13] *** skyx_ has quit IRC
[21:22:33] *** Sky[x] has joined #angularjs
[21:22:45] *** nachinius has joined #angularjs
[21:22:54] <Slim> I need help! I've got a variable called data that logs as {"sent":10,"bounced":5} but data.sent and data.bounced are undefined. Any idea what the issue is?
[21:22:55] <sinious> so either the controller immediately gets the data saved in the (factory) service or it asks the service to load it and waits for the event, and then gets it when done
[21:23:13] <sinious> not unlike a promise
[21:23:14] *** bayousoft has quit IRC
[21:23:18] *** Mxyzpltk has quit IRC
[21:23:27] *** Sky[x] has quit IRC
[21:23:33] *** elrabin has joined #angularjs
[21:23:39] *** dannyc has joined #angularjs
[21:23:45] *** bayousoft has joined #angularjs
[21:23:47] *** soup has joined #angularjs
[21:23:53] *** jtimon has quit IRC
[21:24:05] *** Sky[x] has joined #angularjs
[21:24:18] *** jtimon has joined #angularjs
[21:24:50] *** ahtik has quit IRC
[21:25:45] *** lrvick has quit IRC
[21:25:49] <monokrome> How does $interval invoke a digest cycle?
[21:25:51] *** dmack has quit IRC
[21:26:06] *** soee_ has joined #angularjs
[21:26:10] *** hiddentoken has quit IRC
[21:26:36] *** tristanp has quit IRC
[21:26:46] *** smurby has quit IRC
[21:26:50] <michaelSharpe> hey all. Im having a problem passing an object into a directive. I have one directive inside another directive, and I am passing in an object on the parent directives scope into the child directive, but all I get for it is undefined.
[21:27:13] *** jhwhite has joined #angularjs
[21:27:15] *** foofoobar has joined #angularjs
[21:27:51] *** jmckind has joined #angularjs
[21:28:09] *** bayousoft has quit IRC
[21:28:09] *** dannyc has quit IRC
[21:28:10] *** soee has quit IRC
[21:28:21] <sinious> I'm not familiar with the $q service, I'll have to look that up
[21:28:42] *** jmckind has joined #angularjs
[21:28:47] *** bayousoft has joined #angularjs
[21:28:52] *** jmckind has quit IRC
[21:29:23] <sinious> oh it's a promise service, nice
[21:29:24] <monokrome> $q is for promises. Do they cause a digest?
[21:29:34] *** jmckind has joined #angularjs
[21:29:39] <monokrome> If so then you can use promises from your service to solve the problem
[21:29:44] *** jmckind has quit IRC
[21:29:47] <monokrome> but still seems like an awkward solution
[21:30:14] *** nachinius has quit IRC
[21:30:21] *** stormbytes has quit IRC
[21:30:21] *** wizard99 has joined #angularjs
[21:30:22] *** jmckind has joined #angularjs
[21:30:33] *** seismo has joined #angularjs
[21:30:44] <sinious> I'm willing to get weird to get it working ><
[21:30:48] *** lrvick has joined #angularjs
[21:30:53] <sinious> thanks nickeddy I'll give $q a shot
[21:31:00] <nickeddy> yep
[21:31:06] *** jmckind has joined #angularjs
[21:31:14] *** vectra has quit IRC
[21:31:15] <nickeddy> remember $http gives promises back natively so
[21:31:19] *** deanclkclk has quit IRC
[21:31:31] *** neilff has joined #angularjs
[21:31:50] *** foofoobar has quit IRC
[21:32:11] *** shannonlucas has quit IRC
[21:32:48] *** elrabin has quit IRC
[21:33:00] *** tristanp has joined #angularjs
[21:34:16] *** tfennelly has joined #angularjs
[21:36:18] *** katsh has quit IRC
[21:36:24] *** DanSkaggs has joined #angularjs
[21:36:42] <StoneCypher> what's the best starting point for an experienced dev who wants to get up and running in angular quickly, and doesn't want something like a why's guide
[21:36:46] *** ggrzybek_afk has quit IRC
[21:37:11] *** bayousoft has quit IRC
[21:37:44] *** lexek_ has quit IRC
[21:37:48] *** bayousoft has joined #angularjs
[21:38:17] *** staticinteger has quit IRC
[21:38:18] *** foofoobar has joined #angularjs
[21:38:26] *** prosper_ has quit IRC
[21:38:32] <michaelSharpe> hey! need some serious help. I am bashing my head against why something isn't working. I have two directives, one inside the template of the other. I am trying to pass in an object to the child directive, and all I get is 'undefined'. What am I doing wrong?
[21:38:49] *** hiddentoken has joined #angularjs
[21:38:59] *** d4rklit3 has quit IRC
[21:39:15] *** josh-k has quit IRC
[21:39:42] *** danecando has quit IRC
[21:39:56] <TheAceOfHearts> that's a bit vague
[21:40:17] *** gr33nw00d has joined #angularjs
[21:40:18] *** jmckind has quit IRC
[21:40:27] *** ckng has quit IRC
[21:41:34] *** cthrax has quit IRC
[21:41:53] *** tfennelly has quit IRC
[21:41:57] <michaelSharpe> I can be more specific. I have a directive, a toolbar for uploading. In its template is a directive for handling the uploads. I am trying to pass in a config object from the toolbar directive to the upload directive to pass data back and forth.
[21:42:53] <michaelSharpe> It seems however that when the link function of the upload directive is run, the object I am passing in is undefined. It is hooked up in the scope right, with a '=', and the names are all correct. I feel like there is something I don't understand about the order of operations going on.
[21:43:38] *** SergioFilhow_ has joined #angularjs
[21:44:00] <TheAceOfHearts> Hmm
[21:44:20] *** bostonaholic has quit IRC
[21:44:35] <TheAceOfHearts> well, first of all, check that the object in the parent directive is correctly accessible in the link function
[21:45:26] *** joshontheweb has joined #angularjs
[21:45:27] <TheAceOfHearts> are you certain you're passing the value correctly too :P?
[21:45:39] *** spatialbrew has joined #angularjs
[21:45:39] <TheAceOfHearts> you should make a small plunkr that reproduces your issue, and I can try to help you figure it out
[21:45:48] *** qdk has quit IRC
[21:45:52] <michaelSharpe> thanks! Ill get that up now.
[21:45:54] *** devish has joined #angularjs
[21:46:01] *** ximenean has joined #angularjs
[21:46:15] <TheAceOfHearts> sure thing :)
[21:47:33] *** mzabriskie has quit IRC
[21:47:52] *** SergioFilhow_ has quit IRC
[21:48:21] *** mzabriskie has joined #angularjs
[21:49:32] *** ximenean has quit IRC
[21:49:40] *** jdivock has quit IRC
[21:49:49] *** WeezeyD has quit IRC
[21:50:00] *** nuizzy has joined #angularjs
[21:50:07] *** Weezey has joined #angularjs
[21:50:07] *** baweaver has quit IRC
[21:50:34] *** foofoobar has quit IRC
[21:50:39] *** Sky[x] has quit IRC
[21:50:53] *** Snugug has quit IRC
[21:50:57] *** Sky[x] has joined #angularjs
[21:51:07] *** Tyler_ has joined #angularjs
[21:51:09] *** gr33nw00d has quit IRC
[21:51:17] *** Shai-Tan has joined #angularjs
[21:51:18] <Tyler_> Hello fellow angularans!
[21:51:28] *** jdivock has joined #angularjs
[21:51:40] <Tyler_> Does anyone know why adding a module (ng-infinite-scroll) would break a controller, and make it undefined?
[21:51:55] *** gr33nw00d has joined #angularjs
[21:52:23] *** Sky[x] has quit IRC
[21:53:07] *** adben has joined #angularjs
[21:53:19] *** Sky[x] has joined #angularjs
[21:53:28] *** ianpirro has quit IRC
[21:53:43] *** Seich has quit IRC
[21:54:49] *** PrinceAMD has quit IRC
[21:55:04] *** ianpirro has joined #angularjs
[21:55:26] *** gauravsaini03 has quit IRC
[21:55:59] <mikerrrrrr> I'm using $broadcast to tell a directive to print something...for some reason it always gets executed twice...can anyone point me in the right direction?
[21:56:05] *** gauravsaini03 has joined #angularjs
[21:56:08] *** gr33nw00d has quit IRC
[21:56:25] *** baweaver has joined #angularjs
[21:56:47] *** Seich has joined #angularjs
[21:56:50] *** ianpirro has quit IRC
[21:56:53] *** andrew9183 has joined #angularjs
[21:57:37] *** Snugug has joined #angularjs
[21:57:42] <michaelSharpe> TheAceOfHearts: Really lost as to why it is undefined.
[21:57:49] <TheAceOfHearts> lemme take a look
[21:58:29] *** foofoobar has joined #angularjs
[21:58:31] *** chrisbirk has quit IRC
[21:58:36] *** F1LT3R has joined #angularjs
[21:58:39] *** mzabriskie has quit IRC
[21:59:35] *** tristanp has quit IRC
[21:59:40] *** mokush has joined #angularjs
[21:59:49] <F1LT3R> Is anyone using ui.utils highlight? When I paste the example it doesn't seem to do anything. I added the angular.module('name', ['ui.utils']) part btw.
[21:59:53] *** RobinBAwesome has quit IRC
[22:00:49] *** mzabriskie has joined #angularjs
[22:01:00] *** Denis^ has quit IRC
[22:01:14] <TheAceOfHearts> so, michaelSharpe, I don't think you can have a template for an attribute, it needs to be an element
[22:02:18] *** wmbutler_ has joined #angularjs
[22:02:19] *** denis has joined #angularjs
[22:02:22] *** macabre has quit IRC
[22:02:23] *** josh-k has joined #angularjs
[22:02:51] *** mglvl has joined #angularjs
[22:03:23] <TheAceOfHearts> another issue is with compilation order
[22:03:33] <TheAceOfHearts> link is an alias to postLink
[22:03:39] <TheAceOfHearts> are you familiar with how compilation works?
[22:03:42] *** josh-k has quit IRC
[22:03:49] *** josh-k has joined #angularjs
[22:03:53] *** mzabriskie has quit IRC
[22:03:58] *** macabre has joined #angularjs
[22:04:05] <TheAceOfHearts> it's behaves like a stack
[22:04:16] *** elrabin has joined #angularjs
[22:04:25] *** Una has quit IRC
[22:04:27] *** Seich has quit IRC
[22:04:34] *** foofoobar has quit IRC
[22:04:48] *** ahtik has joined #angularjs
[22:04:49] <michaelSharpe> TheAceOfHearts: I havent gotten much yet into the depths of angular. I have only been developing in it for about a month now...
[22:04:52] *** bkuberek has joined #angularjs
[22:04:53] *** jhwhite has quit IRC
[22:04:54] *** bostonaholic has joined #angularjs
[22:05:17] *** marcjs has quit IRC
[22:05:25] *** foofoobar has joined #angularjs
[22:05:26] *** wmbutler has quit IRC
[22:05:28] <TheAceOfHearts> some comments: don't use replace, that's deprecated
[22:05:46] *** bostonaholic has quit IRC
[22:06:07] <TheAceOfHearts> you should be creating a scope for the uploadToolbar
[22:06:21] <TheAceOfHearts> I think it should be an element… I'm not sure if attributes can have templates
[22:06:25] <TheAceOfHearts> I've honestly never tried
[22:06:36] *** SomeKittens has joined #angularjs
[22:06:49] <F1LT3R> Ok so the Humanize code does work though. Hmmmm/
[22:06:51] *** bostonaholic has joined #angularjs
[22:06:53] *** vectra has joined #angularjs
[22:07:06] *** macobo has quit IRC
[22:07:18] *** Seich has joined #angularjs
[22:07:45] <jaawerth> you absolutely can have a template for an attribute directive - or even a class directive
[22:08:11] *** baweaver has quit IRC
[22:08:12] <TheAceOfHearts> that's weird to me :p, how does it work?
[22:08:13] <jaawerth> the template stuff gets appended as a child of the root element on which you have the class/attribute (unless you use replace: true)
[22:08:22] <TheAceOfHearts> I see
[22:08:22] <michaelSharpe> Thanks jaawerth, good to know that it isn't that...
[22:08:31] <jaawerth> it's a very common use-case, particularly on browsers that don't play well with custom elements
[22:08:38] <michaelSharpe> So perhaps my problem is in the compilation order that is going on?
[22:08:43] <TheAceOfHearts> michaelSharpe: your specific issue is the compilation order :p
[22:08:44] <TheAceOfHearts> yeah
[22:08:54] <TheAceOfHearts> if you set your link function to be the prelink function it works
[22:09:04] *** Guest22_ has joined #angularjs
[22:09:12] <jaawerth> that's what you're doing when you use <div ui-view></div>, for example, or <div ng-include="src"> instead of <ng-include src="src">
[22:09:19] <Spot__> jaawerth: e.g. IE8 ;)
[22:09:25] <jaawerth> yep
[22:09:32] <michaelSharpe> the link function for which directive? the 'upload-toolbar'?
[22:09:36] <Spot__> jaawerth: only thing eith
[22:09:37] <TheAceOfHearts> yeah
[22:09:39] *** chrisbirk has joined #angularjs
[22:09:40] *** Guest22 has quit IRC
[22:09:41] *** NemesisD has joined #angularjs
[22:09:46] <michaelSharpe> cool. and how do I set it to the prelink function?
[22:09:53] <jaawerth> michaelSharpe: also, angular.element.find isn't a real function
[22:10:00] <TheAceOfHearts> link: {pre: fn}
[22:10:10] <NemesisD> anyone know of a way for karma to not run multiple browsers in parallel when more than one is specified?
[22:10:13] *** elrabin has joined #angularjs
[22:10:26] <TheAceOfHearts> michaelSharpe: you should create a scope for the uploadToolbar too… because otherwise you're fucking with the parent scope
[22:10:28] <TheAceOfHearts> which is no good :p
[22:10:30] <jaawerth> and if it's a child element of your directive's root that you're looking for, you can just do element.find. The "element" argument in the link function already has angular.element wrapped around it
[22:10:46] <Spot__> Thing with IE8 which is very tricky is getting scope parameter through directive's attribute
[22:10:50] <michaelSharpe> aye aye!
[22:10:58] <TheAceOfHearts> jaawerth: good thing I don't have to support IE8 :D
[22:11:02] <jaawerth> heh
[22:11:10] <jaawerth> I honestly prefer using attributes a lot of the time
[22:11:26] *** jaznow has joined #angularjs
[22:11:30] <jaawerth> like, if I need a div in there anyway, why would I use a custom attribute when I could use a div?
[22:11:34] <michaelSharpe> awesome, thanks!
[22:11:52] *** josh-k_ has joined #angularjs
[22:11:54] <Spot__> Eg. <div foo bar="baz"> ... And where baz comes for example from ng repeat
[22:11:59] *** nuizzy has quit IRC
[22:12:12] *** gladely has quit IRC
[22:12:21] <jaawerth> why is that tricky? isolate scope!
[22:12:21] *** nuizzy has joined #angularjs
[22:12:26] *** wowa has quit IRC
[22:12:27] *** elrabin has quit IRC
[22:12:32] *** Laserbeak43 has quit IRC
[22:12:57] <Spot__> jaawerth: It works but needs lots of tricks and extra code
[22:12:59] *** chizbang has joined #angularjs
[22:13:00] *** swist has joined #angularjs
[22:13:10] *** Laserbeak has joined #angularjs
[22:13:10] <jaawerth> really? I've never encountered that
[22:13:19] <jaawerth> Spot__: you mean specifically for IE8?
[22:13:25] *** JohnBat26 has joined #angularjs
[22:13:33] <Spot__> Yes only for IE8
[22:13:37] <jaawerth> ah, yeah
[22:13:40] <TheAceOfHearts> I dunno, I find it a lot more intuitive to use custom elements; for me attributes are usually just applying modifications or something like that to the element itself
[22:13:44] <michaelSharpe> TheAceOfHearts: Thanks so much for the help! It would have taken me forever to figure out it was the prelink function. A great opportunity to learn more about the intricacies of directive compilation.
[22:13:48] *** gunn has quit IRC
[22:13:55] <TheAceOfHearts> there's a few good blog posts about it
[22:13:59] *** lexek_ has joined #angularjs
[22:14:00] <TheAceOfHearts> but I don't have any handy atm
[22:14:04] *** tga0 has quit IRC
[22:14:07] *** Aerospark has joined #angularjs
[22:14:08] <jaawerth> when it comes to prefixing the attributes and the like, I believe my gulp tools are already doing that
[22:14:14] *** TheDreamIsReal has quit IRC
[22:14:30] *** jdivock_ has joined #angularjs
[22:14:42] <TheAceOfHearts> actually, I just realized, I think the only time I use attributes that append stuff to the DOM is with popovers
[22:14:57] *** josh-k has quit IRC
[22:14:58] *** busticated has quit IRC
[22:14:59] *** jdivock_ has quit IRC
[22:15:04] *** gunn has joined #angularjs
[22:15:15] *** Aerospark has quit IRC
[22:15:21] *** zeroquake has joined #angularjs
[22:15:22] <TheAceOfHearts> speaking of which, I wanna rewrite ui-bootstrap's popovers, they're really expensive on the DOM
[22:15:30] <jaawerth> I use restrict: 'AE' with most of my directives I think that's the default anyway) so I can use whichever method makes the most sense at the time
[22:15:35] *** jdivock_ has joined #angularjs
[22:15:42] *** jaznow has quit IRC
[22:15:44] *** jdivock has quit IRC
[22:15:46] *** baweaver has joined #angularjs
[22:15:55] <jaawerth> heck, I'm even a fan of using restrict: 'AEC' so I can use a class
[22:16:33] <jaawerth> sometimes it makes sense for DOM/style-based stuff, plus it makes it easy to apply your styling and DOM logic in one fell swoop (I know you can use attribute selectors in CSS, but it isn't always ideal)
[22:16:43] *** Seich has quit IRC
[22:16:58] *** disorder20 has joined #angularjs
[22:17:06] <jaawerth> the only option I've never really touched are comment directives, though it's a neat idea
[22:17:16] <jaawerth> someday I'll have a good use for it
[22:17:22] *** __danima_ has quit IRC
[22:17:40] <TheAceOfHearts> honestly, I've been moving away from angular and playing with react a lot more lately
[22:17:55] <TheAceOfHearts> I'm using angular in my job, but for personal stuff I've been using react
[22:18:04] <TheAceOfHearts> once you get over the jsx stuff, it's amazing
[22:18:05] <jaawerth> react hasn't won me over yet
[22:18:18] <jaawerth> it might work well if mixed with some other tools out there though
[22:18:23] <TheAceOfHearts> so, I think angular is definitely faster to get something up and running
[22:18:33] *** dc_ has joined #angularjs
[22:18:34] <TheAceOfHearts> but once you get a big app, it's really hard to keep angular performant :(
[22:18:44] *** stormbytes has joined #angularjs
[22:18:50] <TheAceOfHearts> with react everything seems so fast
[22:18:54] <jaawerth> just gotta watch your bindings!
[22:18:55] *** cthrax has joined #angularjs
[22:18:56] <TheAceOfHearts> and I like the data flow with flux and such
[22:18:57] *** swist_ has joined #angularjs
[22:19:01] <TheAceOfHearts> that's the thing, though
[22:19:06] <TheAceOfHearts> I don't think one-time bindings do it for me
[22:19:12] <jaawerth> oh, me either
[22:19:15] <jaawerth> I want namespaced bindings
[22:19:19] <TheAceOfHearts> yess
[22:19:25] <TheAceOfHearts> I usually know exactly when some data changes
[22:19:27] <jaawerth> I think I'm going to take a crack at implementing it pretty soon
[22:19:37] <TheAceOfHearts> and I'd be happy if I could trigger those updates manually
[22:20:01] <jaawerth> last night I was just tooling around and half-implemented a less polyfill for Object.observe that's less intrusive than the one polymer uses (IE9+, though)
[22:20:10] *** diffalot has quit IRC
[22:20:16] <jaawerth> er, a polyfill (not a "less polyfill"), heh
[22:20:37] *** busticated has joined #angularjs
[22:20:38] *** erikruthven has quit IRC
[22:20:50] *** Seich has joined #angularjs
[22:20:52] *** baweaver has quit IRC
[22:21:14] <jaawerth> I got the basic functionality working, but I still need to make it add actions to an actions queue that get executed after the callstack clears like real Object.observe does, rather than just executing a callback immediately, but that won't be hard
[22:21:25] *** dmack has joined #angularjs
[22:21:33] *** Solid1 is now known as Solid1_afk
[22:21:58] *** ngbot has joined #angularjs
[22:21:58] *** ngbot has left #angularjs
[22:22:20] <jaawerth> "observing" object properties works perfectly on it, but observing entire objects will be a bit trickier without keeping track of Object.keys().length
[22:22:27] *** diffalot has joined #angularjs
[22:22:31] *** swist has quit IRC
[22:23:15] *** dc_ has quit IRC
[22:23:22] *** webnerd_lw has joined #angularjs
[22:23:26] *** newswim has left #angularjs
[22:23:29] *** qdk has joined #angularjs
[22:23:52] *** jaredwilli has quit IRC
[22:24:05] *** tfennelly has joined #angularjs
[22:24:45] *** fouadm has joined #angularjs
[22:25:23] *** elrabin has joined #angularjs
[22:25:30] *** TheDreamIsReal has joined #angularjs
[22:25:39] *** TeddyMurray has quit IRC
[22:25:43] *** wizard99 has quit IRC
[22:25:58] *** emmesswhy has quit IRC
[22:26:17] *** cacts|works has quit IRC
[22:26:24] <TheAceOfHearts> I've just found that react (well, really Yahoo's implementation of flux), makes a lot more sense to me
[22:26:28] *** jeffisabelle has quit IRC
[22:26:29] *** webnerd_lw has quit IRC
[22:27:11] *** foofoobar has quit IRC
[22:27:19] <jaawerth> with all the shadowDOM stuff in the new spec, I'm actually more interested in a more minimalist approach when working with taht stuff
[22:27:47] <F1LT3R> ah yeah, it was the unsafe thing. Got ui.highlight working.
[22:28:07] <jaawerth> I want help organizing my models and things, but data-binding and custom elements will be so built-in on modern browsers that a lot of what Angular does now will simply be unnecessary except for backwards compatibility
[22:28:21] <jaawerth> That's why Angular 2.0 got rid of scopes, really
[22:28:30] <TheAceOfHearts> I like isomorphic apps too :p, I think it's cool; it's super fast~
[22:28:52] *** tfennelly has quit IRC
[22:29:17] *** elrabin has quit IRC
[22:29:23] <jaawerth> yeah, those are a cool idea
[22:29:24] *** Sky[x] has quit IRC
[22:29:27] <jaawerth> haven't played with 'em yet at all though
[22:29:35] <jaawerth> I'm a big fan of SOA
[22:29:41] *** jdivock_ has quit IRC
[22:29:54] <TheAceOfHearts> I like the idea of SOA
[22:29:54] *** tristanp has joined #angularjs
[22:29:58] <jaawerth> I don't want to design web pages, I want to design programs that run in a VM (the web browser) and interact with whatever backends they need to
[22:30:22] *** caiges has joined #angularjs
[22:30:30] <jaawerth> that's how I approach Angular dev, usually
[22:30:41] <TheAceOfHearts> but monoliths are easier to manage in a lot of cases
[22:30:44] *** woah has quit IRC
[22:30:47] <monokrome> They already have those, and they're called web pages
[22:30:49] <monokrome> :D
[22:31:01] <TheAceOfHearts> wait, SOA as in service oriented architecture?~ or did you mean to write SPA as in single page apps?
[22:31:20] *** cthrax has quit IRC
[22:31:35] *** akrikos has quit IRC
[22:31:36] <TheAceOfHearts> the problem with SOA is managing all your services :| …
[22:31:57] *** Snugug has quit IRC
[22:32:00] <TheAceOfHearts> like, you have to do monitoring, error handling, logging, etc.
[22:32:07] <monokrome> You have that problem anyway, you just manage them in one giant pile instead of in separate, organized, smaller piles
[22:32:13] *** tsalb has quit IRC
[22:32:31] <monokrome> Unless you don't do monitoring, error handling, logging, etc of your big pile.
[22:32:32] *** caiges has quit IRC
[22:32:33] *** g33k5z has quit IRC
[22:32:33] *** caiges_ has joined #angularjs
[22:32:39] <jaawerth> haha
[22:32:41] *** shpoont has quit IRC
[22:32:42] <TheAceOfHearts> I think managing one big pile is easier than monitoring lots of smaller ones :p
[22:32:47]
<jaydubya> http://cl.ly/Z11r <-- the columns of my ng-grid are overlapping and I can't figure out how to style it correctly
[22:32:49] <monokrome> I don't
[22:32:50] <jaawerth> I heartily disagree
[22:32:58] <jaawerth> (with TheAceOfHearts, that is)
[22:32:59] *** 64MABE7I2 has joined #angularjs
[22:33:00] <macabre> can anyone recommend a calendar library?
[22:33:11] <jaawerth> can you be more specific?
[22:33:24] *** foofoobar has joined #angularjs
[22:33:25] *** 64MABE7I2 has quit IRC
[22:33:28] <TheAceOfHearts> we can discuss this later~ I have to get back to work
[22:33:34] <wafflej0ck> macabre: momentjs is good on the data side of things on the UI side it's more of a crapshoot
[22:33:44] <monokrome> suuure
[22:33:52] *** g33k5z has joined #angularjs
[22:33:53] <monokrome> The infamous "later" that never arrives, I think
[22:33:57] <TheAceOfHearts> but I don't think the overhead of SOA makes sense for a lot of apps
[22:34:00] <macabre> wafflej0ck: i'm using ui.calendar but i'm not too impressed
[22:34:01] <TheAceOfHearts> I'm online pretty often :p
[22:34:01] *** walden is now known as walden|brb
[22:34:05] <monokrome> :P
[22:34:07] <macabre> working with, rather
[22:34:33] <macabre> jaydubya: i'm having issues setting non standard event properties
[22:34:39] <monokrome> Doesn't use jQuery UI?
[22:34:59] *** japhar81 has quit IRC
[22:35:08] *** jaredwilli has joined #angularjs
[22:35:30] *** steeze has quit IRC
[22:35:31] *** busticated has quit IRC
[22:35:53] *** newswim has joined #angularjs
[22:35:56] <jaydubya> macabre: must admit I mostly use just the standard events like the demo
[22:36:47] *** d4rklit3 has joined #angularjs
[22:37:15] *** newswim_ has joined #angularjs
[22:37:31] *** cthrax has joined #angularjs
[22:37:40] *** renlo has quit IRC
[22:37:46] *** jhwhite has joined #angularjs
[22:37:48] *** jdivock has joined #angularjs
[22:37:53] *** RobinBAwesome has joined #angularjs
[22:38:13] *** mchapman has quit IRC
[22:38:17] <macabre> jaydubya: gotch
[22:38:19] <macabre> a
[22:39:07] *** woah has joined #angularjs
[22:39:27] *** aven1 has quit IRC
[22:40:03] *** newswim has quit IRC
[22:40:59] *** TeddyMurray has joined #angularjs
[22:41:43] <wafflej0ck> jaawerth: nice looks interesting, so basically setting up your own observer pattern stuff in JS, if I were you I'd check around for previous work on this too maybe can get some ideas from other similar implementations
[22:41:49] *** frankbli_ has quit IRC
[22:42:00] <jaawerth> wafflej0ck: yeah, totally
[22:42:56] <jaawerth> wafflej0ck: I'm just kind of tooling around but what I'd really like to ultimately do is implement a method for building data models that can be cleanly watched independent of digest cycle
[22:43:28] <jaawerth> wafflej0ck: the other idea being namespaced watchers (which I've discussed with ProLoser - he has some cool ideas about it)
[22:43:36] <wafflej0ck> jaawerth: yup always nice to have alternatives
[22:43:43] *** foofoobar has quit IRC
[22:44:09] *** jeffisabelle has joined #angularjs
[22:44:37] <jaawerth> because I really hate building getter and setter functions that you need to call manually in javascript, it just gets in the way and it's really an anti-pattern to angular anyway
[22:44:50] *** larsgk has quit IRC
[22:45:03] <jaawerth> but there are definitely situations where you'd really like to be able to just subscribe to your data models cheaply
[22:45:18] *** jonathanpglick has quit IRC
[22:45:20] <monokrome> What is the "|| undefined" for in this? `var val = obj[prop] || undefined;`
[22:45:45] <monokrome> jaawerth: ^
[22:46:05] <jaawerth> hrm, it may actually be unnecessary there
[22:46:19] <cthrax> monokrome, defaults to undefined if obj[prop] is undefined, but that seems weird because that would val would be if obj[prop] was undefined
[22:46:24] <jaawerth> this code is what I was doing when I should have been going to bed so it's not impossible that there are some warts in there
[22:46:29] *** dshap has quit IRC
[22:46:34] <jaawerth> cthrax: exactly
[22:46:34] <jaawerth> heh
[22:46:34] <monokrome> Oh, okay. Thought that maybe I was missing some detail
[22:46:40] *** cavallari has joined #angularjs
[22:46:46] <jaawerth> nope, it's totally redundant there
[22:46:52] *** SoulBlade has joined #angularjs
[22:47:24] <cthrax> in theory, if obj[prop] was false, you would get undefined in val, instead of false
[22:47:26] <robdubya> jaawerth doing that at the moment actually
[22:47:41] <monokrome> Yeah, which I think would be unexpected beavior
[22:47:41] *** jonathanpglick has joined #angularjs
[22:47:43] <monokrome> behavior*
[22:47:44] <jaawerth> cthrax: that's true
[22:47:44] *** cavallari has quit IRC
[22:47:48] <robdubya> full on es6 lib, disconnected from the digest cycle
[22:47:59] <jaawerth> Yeah, I'd actually WANT to keep the "false"
[22:48:05] <jaawerth> the only reason I'm even getting the current value is so you can observe something when the property already has a value - basically it's copying the currently-stored data, since you won't be access that place in memory anymore once the getters and setters have been applied
[22:48:12] <monokrome> If it was an empty string, false, etc
[22:48:42] <jaawerth> I've already removed the || undefined, just haven't frozen it yet since I'd just started adding a factory for "change" objects and the "changes" queue
[22:48:52] <jaawerth> robdubya: nice!
[22:49:02] <jaawerth> robdubya: are you using the polymer polyfill for Object.observe?
[22:49:16] <robdubya> not yet
[22:49:17] *** jdcasey has quit IRC
[22:49:17] <cthrax> robdubya, just a toy lib for playing angular 2.0?
[22:49:30] *** slopjong has joined #angularjs
[22:49:45] <jaawerth> I looked at it briefly, but it looks kinda ugly and uses eval, so I figured I'd see about a cleaner approach that would come in for ES5 browsers
[22:49:46] <amergin> what method would you recommend if I want to show a message (div) on the page for a period of time
[22:49:53] <robdubya> nope, real thing, building out our "platform" layer in pura JS so hopfully we dont have to rewirte the whole mess next month again :o
[22:50:00] *** ximenean has joined #angularjs
[22:50:02] *** walden|brb is now known as walden
[22:50:13] *** busticated has joined #angularjs
[22:50:16] <jaawerth> basically the chain will be Native --> my polyfill --> polymer polyfill (unless that, too, doesn't support IE8)
[22:50:18] <amergin> for example: click button -> something went wrong -> display error div
[22:50:18] <monokrome> So, this is just wrapping things in a get/set so that you can manually check for changes?
[22:50:23] <cthrax> robdubya, pshaw, you'll totally have to rewrite the next month even if you avoid rewriting next month
[22:50:42] <cthrax> js can't make up it's mind yet
[22:50:47] *** evanjs has quit IRC
[22:50:54] <cthrax> it's heading towards something good though
[22:50:56] <monokrome> JS doesn't have a mind to make up
[22:51:04] <cthrax> I can't wait til 5 years from now when it's solid
[22:51:05] <monokrome> Users that keep rewriting every month can't make up their mind :P
[22:51:09] <jaawerth> monokrome: Right. It's sidejacking the setting process with a callback (eventually it will be adding the callback to a stack that will execute when the current callstack clears)
[22:51:13] *** jmverges has quit IRC
[22:51:22] *** spaceonline has joined #angularjs
[22:51:24] <monokrome> ah, interesting
[22:51:31] *** jeffisabelle has quit IRC
[22:51:41] <jaawerth> more-or-less it's just a way ES5 lets you overload the assignment operator
[22:51:42] <cthrax> monokrome, that's because every month a new framework/library/tool comes out
[22:52:02] *** kuadrosx_ has joined #angularjs
[22:52:07] <jaawerth> Object.defineProperty has been around for a while and I never see it used anywhere
[22:52:11] <jaawerth> (I blame IE8)
[22:52:11] <monokrome> cthrax: No, that's because every month the user decided to use the new tool
[22:52:13] *** darrin has quit IRC
[22:52:25] *** mspier is now known as mspier|away
[22:52:28] <monokrome> A new framework comes out in every language, every month.
[22:52:29] *** kuadrosx has quit IRC
[22:52:31] <cthrax> monokrome, because support for the old tool has dropped off
[22:52:33] *** shpoont has joined #angularjs
[22:52:56] <jaawerth> robdubya: I'd be interested in seeing your work/approach if/when you're ready to share it
[22:52:58] <monokrome> hmm... Not in my experience, usually it's just people wanting to jump onto the next "cool thing"
[22:53:23] *** one0one has joined #angularjs
[22:53:32] *** mspier|away is now known as mspier
[22:54:05] <cthrax> angular is getting the most attention, but moves like 2.0 are common in my experience
[22:54:22] *** plex0r has quit IRC
[22:54:26] <monokrome> That's a clever solution, jaawerth!
[22:54:45] *** Tyler_ has quit IRC
[22:54:59] <jaawerth> thanks!
[22:55:13] *** AKPWD has quit IRC
[22:55:16] *** bayousoft has quit IRC
[22:55:26] *** ximenean has quit IRC
[22:55:30] *** AKPWD has joined #angularjs
[22:55:42] *** spaceonline has quit IRC
[22:55:51] *** bayousoft has joined #angularjs
[22:57:12] *** shpoont has quit IRC
[22:57:42] *** jeffisabelle has joined #angularjs
[22:57:43] *** katsh has joined #angularjs
[22:58:16] *** renlo has joined #angularjs
[22:59:41] *** SargoDarya has joined #angularjs
[23:00:17] *** spatialbrew has quit IRC
[23:00:26] *** lsiv568_ has quit IRC
[23:01:04] *** dobladez has quit IRC
[23:01:06] *** shpoont has joined #angularjs
[23:01:42] <katsh> is plnkr not showing plunks under users profile again?
[23:02:11] *** elrabin has joined #angularjs
[23:02:39] *** elrabin_ has joined #angularjs
[23:02:39] *** elrabin has quit IRC
[23:02:40] *** Reskp has joined #angularjs
[23:02:48] *** elrabin_ has quit IRC
[23:03:00] *** ximenean has joined #angularjs
[23:03:50] *** jdivock has quit IRC
[23:04:10] *** wmbutler_ has quit IRC
[23:04:18] *** bayousoft has quit IRC
[23:04:20] *** SargoDarya has quit IRC
[23:04:51] *** bayousoft has joined #angularjs
[23:05:08] *** ehalas has quit IRC
[23:05:08] *** jegade has joined #angularjs
[23:05:22] *** moogey has quit IRC
[23:05:25] *** sgen__ has quit IRC
[23:05:41] *** Aerospark has joined #angularjs
[23:05:42] *** siovene has quit IRC
[23:05:42] *** ehalas has joined #angularjs
[23:05:43] *** bullicon has joined #angularjs
[23:05:47] *** moogey has joined #angularjs
[23:06:13] *** tkh44 has quit IRC
[23:06:18] *** jhwhite has quit IRC
[23:06:29] <jegade> hi, i'm a total newbie to angular and ionic and try to write my first controller, extended with Oboe
[23:06:39] *** FunnyLookinHat_ has joined #angularjs
[23:06:46] *** g-nom3 has quit IRC
[23:06:53] <jegade> whats the right syntax for .controller('HomeCtrl', ['$scope','Oboe', function($scope,Oboe) {
[23:07:02] *** mkusher has quit IRC
[23:07:32] *** zeroquake has quit IRC
[23:08:00] <kba> jegade: That looks right
[23:08:04] *** g-nom3 has joined #angularjs
[23:08:27] <kba> If Oboe is defined
[23:09:35] *** chrisbirk has quit IRC
[23:09:38] <jegade> the console says ReferenceError: oboe is not defined
[23:09:43] *** JesseH has quit IRC
[23:09:48] *** andre__ has joined #angularjs
[23:10:02] *** Aerospark has quit IRC
[23:10:16] *** cthrax has quit IRC
[23:10:21] *** andre__ is now known as Guest90020
[23:10:40] *** FunnyLookinHat has quit IRC
[23:10:58] *** Guest90020 has left #angularjs
[23:11:18] *** jdivock has joined #angularjs
[23:11:35] *** ximenean has quit IRC
[23:11:43] *** sjt003 has joined #angularjs
[23:11:55] *** SoulBlade has quit IRC
[23:12:03] *** jaznow has joined #angularjs
[23:12:05] *** baweaver has joined #angularjs
[23:12:06] <sjt003> anyone have any good resources for testing directives?
[23:12:24] <sjt003> anyone have any good resources for learning how to test directives?
[23:12:26] *** ChadStrat has joined #angularjs
[23:12:58] *** Oddman has quit IRC
[23:12:59] *** alanp has quit IRC
[23:13:02] *** Sky[x] has joined #angularjs
[23:13:32] *** Oddman has joined #angularjs
[23:13:34] *** dannyc has joined #angularjs
[23:14:24] *** SergioFilhow_ has joined #angularjs
[23:14:45] *** wmbutler has joined #angularjs
[23:15:05] *** BillCriswell has quit IRC
[23:15:26] <robdubya> this one i can't share :(
[23:15:32] <monokrome> :'( !
[23:15:50] *** bkuberek_ has joined #angularjs
[23:16:12] *** jonathanpglick has quit IRC
[23:16:28] *** jaznow has quit IRC
[23:16:57] *** Oddman has quit IRC
[23:17:03] <jegade> kba: ty, i don't add oboe.js itself , stupid
[23:17:11] *** Sky[x] has quit IRC
[23:17:14] *** Oddman has joined #angularjs
[23:17:38] *** dmack has quit IRC
[23:17:44] *** umib0zu has quit IRC
[23:17:50] *** robot443 has quit IRC
[23:17:58] *** jeffisabelle has quit IRC
[23:18:15] *** mikehaas763 has joined #angularjs
[23:18:25] <monokrome> Might just have to figure out how you want them to work best for your team
[23:18:28] *** mzabriskie has joined #angularjs
[23:18:32] *** tristanp has quit IRC
[23:18:43] *** SergioFilhow_ has quit IRC
[23:18:48] *** dannyc has quit IRC
[23:19:18] *** bkuberek has quit IRC
[23:19:20] *** jonathanpglick has joined #angularjs
[23:19:27] *** TheDreamIsReal has quit IRC
[23:19:59] *** apertoire has joined #angularjs
[23:20:21] *** bkuberek_ has quit IRC
[23:20:34] *** cavallari has joined #angularjs
[23:20:40] *** cacts|works has joined #angularjs
[23:20:47] <jaawerth> huh, does lodash have no convenience functions for duck typing?
[23:21:21] <monokrome> for duck typing? :o
[23:21:30] <jaawerth> "walks like a duck, talks like a duck"
[23:21:36] <monokrome> like lodash.isArray?
[23:22:00] <monokrome> isArray, isNumber, isFinite, isFunction, etc?
[23:22:04] <Fuzzy> dashhh
[23:22:08] <jaawerth> I mean the combination instanceOf and/or .constructor and/or typeof that one uses to check actual types
[23:22:08] <monokrome> those are all there if so
[23:22:14] <jaawerth> like, "class" types
[23:22:21] *** bayousoft has quit IRC
[23:22:22] <jaawerth> for javascript's admittedly weak definition of class
[23:22:23] <monokrome> Directly using instanceof isn't duck typing
[23:22:36] *** scythe__ has joined #angularjs
[23:22:47] <jaawerth> no, but there are a few approaches which involve combinations of those methods
[23:22:55] *** FIFOd[a] has quit IRC
[23:22:58] <monokrome> Do you have a concrete example?
[23:23:02] *** bayousoft has joined #angularjs
[23:23:23] *** baweaver has quit IRC
[23:23:26] *** NemesisD has left #angularjs
[23:23:32] *** g33k5z has quit IRC
[23:23:34] *** alanp has joined #angularjs
[23:23:45] <jaawerth> haha I will later, I was just looking for a lodash helper to save time and was surprised not to find one
[23:23:58] *** g33k5z has joined #angularjs
[23:24:02] <jaawerth> but yeah, you know, a convenience method to look at constructor but also x, y, and z properties
[23:24:03] *** sahbeewah has quit IRC
[23:24:06] <monokrome> I mean to say that I just don't know what you're asking for
[23:24:29] <jaawerth> don't worry about it, the answer is "no, lodash doesn't, not stop being so lazy jaawerth"
[23:24:34] <jaawerth> now*
[23:24:35] <monokrome> like _.has?
[23:25:07] <jaawerth> nah
[23:25:10] *** devish has quit IRC
[23:25:41] *** yelvert has quit IRC
[23:26:26] <monokrome> function instanceHas(obj, props) { return (thing instanceof Thing) && _.has(obj, props); }
[23:26:29] <monokrome> ?...
[23:26:37] <monokrome> s/thing/obj/
[23:26:44] <katsh> robdubya: forking your plunk for like the 3rd time
[23:26:52] <sjt003> monokrome, I dont use mocha, but the wrapper looks interesting
[23:27:11] *** cthrax has joined #angularjs
[23:27:51] *** ome has joined #angularjs
[23:28:05] <monokrome> sjt003: What do you use?
[23:28:16]
<jaydubya> I am trying to filter this list for all records that have both a status_id of '1' and a crop_year of '1'. This is the code I "googled up" and was wondering if a lodash expert could check it for me. https://gist.github.com/anonymous/1258af383dcdb7c37469
[23:28:19] *** g33k5z has quit IRC
[23:28:29] <jaawerth> monokrome: yeah, but I was getting a little more into the weeds with something so I was just checking if my convenient library had some helpers already in place to keep it straight (since that's pretty much what lodash is - a convenient library to save me from having to implement simple but frequent tasks, with the added bonus of it typically being very fast and backwards-compatible)
[23:28:37] <sjt003> monokrome, jasmine, rails assets
[23:28:39] <jaydubya> ^crop_year of '2015'. sorry
[23:28:44] *** jonasliljestrand has joined #angularjs
[23:28:46] *** alanp has quit IRC
[23:28:48] <monokrome> jaawerth: for true duck typing, you just use _.has :)
[23:29:09] <jaawerth> I know
[23:29:12] <monokrome> ok
[23:29:19] *** vbabiy has quit IRC
[23:29:24] <jonasliljestrand> regarding directive and fn bindings, you guys use scope.fn()() or is there a better solution?
[23:29:28] <jaawerth> I probably shouldn't have said "duck typing" sine it isn't true duck typing I'm looking for
[23:29:41] <jonasliljestrand> walk like a duck
[23:29:43] *** DigitallyBorn has joined #angularjs
[23:29:50] <monokrome> sjt003: The same kind of wrapper would work with jasmine, it's just a matter of writing a function called `describeDirective` that performs the $compile steps
[23:30:08] *** neilff has quit IRC
[23:30:15] <jaawerth> jonasliljestrand: eh? what kind of fn bindings?
[23:30:38] *** michaelSharpe has quit IRC
[23:30:48] <sjt003> monokrome, ah I see
[23:30:57] <jaawerth> ah
[23:31:04] *** shaisnir has joined #angularjs
[23:31:24] *** SoulBlade has joined #angularjs
[23:31:25] <jaawerth> jonasliljestrand: so, with '&', by default function parameters are passed in from the outer context (think ng-click)
[23:31:26] *** macabre has quit IRC
[23:31:52] *** macabre has joined #angularjs
[23:31:54] <jaawerth> jonasliljestrand: but what you can do is define values to properties you want to exist when the expression is parsed
[23:32:26] <jonasliljestrand> like ({x: 1, y:2})?
[23:32:41] <jaawerth> to take ng-click as an example again, this is how it works: ng-click uses the '&' option, right? but you can use a special property with it, $event
[23:32:44] <jaawerth> jonasliljestrand: yep
[23:32:58] *** seismo has left #angularjs
[23:33:26] <jonasliljestrand> alright, maybe I should take a look at ng-click in the source :)
[23:33:28] *** macabre_ has joined #angularjs
[23:33:29] <jaawerth> ng-click does this like so: element.on('click', function(e) { scope.ngClick({'$event': e}) })
[23:33:32] <jaawerth> (or something like that)
[23:33:40] *** baweaver has joined #angularjs
[23:33:53] *** macabre has quit IRC
[23:34:05] *** tga0 has joined #angularjs
[23:34:09] *** leolrrj has joined #angularjs
[23:34:09] *** cavallari has quit IRC
[23:34:32] <jonasliljestrand> yeah and in my ng-clicks im used to define what should be parsed and "passed" to my expression
[23:34:56] *** h0ru5 has quit IRC
[23:35:29] <jaawerth> coffeescript makes my head fall off
[23:35:36] <jonasliljestrand> same here
[23:35:38] <monokrome> will post JS version
[23:35:42] *** gauravsaini03 has quit IRC
[23:35:55] <jaawerth> anyway, you can also use $parse to achieve the same result as '&' pretty easily
[23:36:20] *** SoulBlade has quit IRC
[23:36:21] <jaawerth> sometimes I do this if I want to pass in, say, multiple handlers for various events and don't want to spam my directive full of attributes (since I HATE that)
[23:36:41] *** JmZ is now known as JmZ_
[23:36:50] *** SahanH has quit IRC
[23:36:52] *** Sawbones_ has quit IRC
[23:36:57] *** jaredwilli has quit IRC
[23:37:38] <jaawerth> instead I use '=' on isolate scope, and for each object property I do $parse(expr)(scope.$parent)
[23:37:49] *** tsalb has joined #angularjs
[23:38:12] <monokrome> That's how I usually set up angular tests to look like
[23:38:13] <jaawerth> and then you can do the same thing, say yo uhave fn = $parse(expr)(scope.$parent), you can pass special local properties into it with fn({foo: fooVal, bar: barVal})
[23:38:39] *** TheAceOfHearts has quit IRC
[23:38:40] *** tga0 has quit IRC
[23:38:40] *** alanp has joined #angularjs
[23:39:06] <sjt003> jaawerth: do you have a gist of this--your way seems quite efficient
[23:39:08] <jaawerth> monokrome: haha yeah I"m just shining. I should really just do a whole project in coffeescript so the syntax starts looking more natural to me
[23:39:24] <jaawerth> sjt003: I can throw a plunk together real quick
[23:39:38] <sjt003> jaawerth: excellent--thank you so much!
[23:39:42] <monokrome> Coffee is pretty awesome, but ES6 makes it less awesome since some of the best parts are JS things now
[23:40:43] *** juampy_backlater is now known as juampy
[23:40:58] *** alpha080 has joined #angularjs
[23:41:07] *** g33k5z_ has joined #angularjs
[23:41:14] *** baweaver has quit IRC
[23:41:51] <jonasliljestrand> thanks for you help jaawerth :)
[23:42:19] *** sgen_ has joined #angularjs
[23:42:24] *** kreeves has quit IRC
[23:42:38] *** ahtik has quit IRC
[23:42:56] <katsh> robdubya if youre here, this is forked from your code 2 days ago :)
[23:43:01] *** mzabriskie has quit IRC
[23:43:12] *** caiges_ has quit IRC
[23:43:43] *** sinious has quit IRC
[23:43:49] *** helen_ has quit IRC
[23:44:03] <evotuned> anyone able to help with this? Uncaught Error: [$injector:modulerr]
[23:44:05] *** Johnny13371337 has quit IRC
[23:44:07] *** marr has quit IRC
[23:44:09] *** scythe__ has quit IRC
[23:44:30] <evotuned> it's related to using ngRoute, which i'm pulling in as a separate library
[23:45:08] *** rikko has joined #angularjs
[23:45:16] <evotuned> and i'm getting it in my production AWS code, and not locally
[23:45:25] <evotuned> and i'm unable to find a difference
[23:45:53] <jonasliljestrand> are u minifying code? Is ngRoute installed in your production?
[23:46:11] *** bbankes has quit IRC
[23:46:13] <jonasliljestrand> Did u forgett to persist angular-route to your package file?
[23:47:10] *** elrabin has joined #angularjs
[23:47:12] <evotuned> i'm minifying my own code... and ngRoute is coming from the Google CDN
[23:47:38] *** oste has quit IRC
[23:47:41] *** Methylated1 has joined #angularjs
[23:47:49] *** g33k5z_ has quit IRC
[23:47:54] *** herbyme has joined #angularjs
[23:48:15] *** g33k5z has joined #angularjs
[23:48:22] *** jonathanpglick is now known as jonglick|afk
[23:48:45] *** renlo has quit IRC
[23:48:46] <nickeddy> evotuned: your DI syntax is getting clobbered by minification. do angular.module('somemodule').controller('SomeCtrl', ['dep1', 'dep2', 'dep3', function(dep1, dep2, dep3) {});
[23:48:54] <nickeddy> or use ng-annotate
[23:49:23] <Methylated1> any links to how I can split up a giant states.js file in my angular 1.3 app (w/ ui-router)? I'd like to move states into individual component dirs with a states_spec.js to test those states/transitions respectively
[23:49:24] *** bayousoft has quit IRC
[23:49:30] *** Underbyte has joined #angularjs
[23:50:02] *** bayousoft has joined #angularjs
[23:50:05] *** ingsoc has joined #angularjs
[23:50:11] *** whunt_ has joined #angularjs
[23:50:41] *** bradmaxs has quit IRC
[23:50:59] *** walden is now known as walden|afk
[23:51:08] <robdubya> that's fine - just inject $stateProvider into said modules' config blocks
[23:52:27] *** whunt has quit IRC
[23:52:28] <evotuned> nickeddy: i'm not following... i've been working this locally without any issues...
[23:52:30] *** scythe__ has joined #angularjs
[23:52:37] *** g33k5z has quit IRC
[23:53:37] *** afuggini has joined #angularjs
[23:53:37] <jonasliljestrand> evotuned: have you tested to minify your code while developing?
[23:53:42] <Methylated1> @robdubya was that comment regarding my question?
[23:53:49] <jonasliljestrand> not saying its a solution
[23:54:16] <nickeddy> evotuned: you're not annotating angular's dependency injection. angular.module('someModule').controller('SomeCtrl', function($scope) {}) turns in to .controller('SomeCtrl', function(a) {}) so angualr doesn't know wtf 'a' is
[23:54:36] <nickeddy> so you do .controller('SomeCtrl', ['$scope', function($scope) {}])
[23:55:04] *** afuggini has quit IRC
[23:55:15] <nickeddy> which will still turn in to .controller('SomeCtrl', ['$scope', function(a) {}]); but $scope is mapped to a
[23:55:20] *** CanyonMan has left #angularjs
[23:55:24] <evotuned> nickeddy: got ya
[23:55:28] *** disorder20 has quit IRC
[23:55:40] *** afuggini has joined #angularjs
[23:56:08] <monokrome> I wonder if ES6 supports static variables (for $inject) or not
[23:56:50] *** juanpablo_ has quit IRC
[23:57:27] *** kuadrosx_ is now known as kuadrosx
[23:57:30] *** juanpablo_ has joined #angularjs
[23:57:51] *** tschundeee has joined #angularjs
[23:58:18] *** dc_ has joined #angularjs
[23:58:26] *** annlewis has quit IRC
[23:58:34] *** TheAceOfHearts has joined #angularjs
[23:59:17] *** whunt_ is now known as whunt
[23:59:21] *** F1LT3R has quit IRC
[23:59:27] *** gunn has quit IRC
[23:59:48] *** diN0bot has joined #angularjs
[23:59:59] *** tkh44 has joined #angularjs