[00:00:05] *** mccarrontr1ck has quit IRC
[00:01:02] <jaawerth> zumba_addict: yeah okay, it works with $http.get as well, you just have to put {data: somedata} in your config object
[00:01:08] *** thebigredgeek has quit IRC
[00:01:30] <jaawerth> zumba_addict: so, $http.get(url, {data: somedata, msg: somemessage....}) will work
[00:01:44] *** screamingbanshee has joined #angularjs
[00:01:59] <jaawerth> and then if you're actually sending csv content to your server, the csv-formatted content would correspond with the "data" property
[00:02:03] *** screamingbanshee has quit IRC
[00:02:21] <jaawerth> so {data: 'a,b,c,d\ne,f,g,h....'}
[00:02:25] *** mikehaas763 has joined #angularjs
[00:02:41] *** bkuberek has quit IRC
[00:02:43] *** screamingbanshee has joined #angularjs
[00:02:47] *** secondjeff has joined #angularjs
[00:02:49] *** wwnnbb has quit IRC
[00:03:17] *** linojon has quit IRC
[00:03:21] <jaawerth> zumba_addict: however, if your server is requiring all get requests to be application/csv and have a body... then your backend dev should probably be using POST. Doing stuff like that with GET can potentiall open up security issues
[00:03:23] <jaawerth> but whatever
[00:03:31] *** MANCHUCK has quit IRC
[00:04:29] *** tarkus has quit IRC
[00:04:43] *** colinbits has quit IRC
[00:05:02] *** edrocks has quit IRC
[00:05:03] <davek> For what its worth I second jaawerth's opinion.
[00:05:10] <kamanato> you can't send data with $http.get
[00:05:19] <davek> You can.
[00:05:23] *** plitzenberger has quit IRC
[00:05:32] *** encrypt3d_fracti has quit IRC
[00:05:33] <davek> Whether or not the server can make sense of it is an entirely different thing.
[00:05:40] <kamanato> get request can't contain data to post to the server
[00:05:53] <kamanato> use params option instead
[00:05:57] <jaawerth> you can
[00:06:03] <jaawerth> it's just kind of a no-no
[00:06:05] *** encrypt3d_fracti has joined #angularjs
[00:07:03] *** mrkake has quit IRC
[00:07:05] *** bkuberek has joined #angularjs
[00:07:10] *** dcherman has joined #angularjs
[00:07:15] <rigel_> so i have a function that's changing $scope variables, but they aren
[00:07:20] <rigel_> t updating in the view
[00:07:24] *** calumet has joined #angularjs
[00:07:30] *** DrMabuse_ has joined #angularjs
[00:07:42] <kamanato> try params: {msg:somemessage}
[00:08:04] <davek> kamanato, as he mentioned, he's sending CSV data.
[00:08:10] *** ishi has joined #angularjs
[00:08:12] *** whunt has quit IRC
[00:08:13] *** uf6667 has quit IRC
[00:08:15] *** DrMabus__ has joined #angularjs
[00:08:33] *** uf6667 has joined #angularjs
[00:08:51] <jaawerth> Right. And if you don't include a body, it strips the Content-Type. Besides which, Content-Type only applies to the body anyway - if you formatted the msg with CSV content, the server still wouldn't know what to do with it
[00:08:59] *** charlie_sanders has quit IRC
[00:09:24] <jaawerth> hm, I wonder if it's the browser or angular that's actually stripping the Content-Type. I suspect it's the browser.
[00:09:29] * jaawerth tests with pure js
[00:09:32] *** patricka_ has quit IRC
[00:09:50] *** juampy has joined #angularjs
[00:10:36] *** UniBot has joined #angularjs
[00:10:37] *** bencc has joined #angularjs
[00:10:39] *** encrypt3d_fracti has quit IRC
[00:10:49] <mikehaas763> In the context of a rest-ish api, is there a general rule around when PUTing where the user defines properties on it that are essentially relations to PUT the id's on the resource or to PUT them as embedded resources? So PUT {roomId: 3} versus PUT {room: {id: 2}}
[00:10:53] <mikehaas763> The objects aren't that simple, I just made them simple for illustration
[00:11:33] *** DrMabuse has quit IRC
[00:11:48] *** morenoh151 has quit IRC
[00:12:04] *** whunt has joined #angularjs
[00:12:19] <davek> mikehaas763, assuming that the relation is unique and bidirectional, it makes sense to have the relation itself be a resource.
[00:12:30] <zumba_addict> I'll catch you later jaawerth, got to catch the train
[00:12:41] <zumba_addict> i'll check your code later
[00:12:42] <zumba_addict> awesome!
[00:12:52] *** DrMabuse_ has quit IRC
[00:12:56] *** Vloz has joined #angularjs
[00:13:19] <rigel_> this isnt making sense to me. when i change $scope.example it should automatically update in the view right?
[00:13:33] *** zumba_addict has quit IRC
[00:13:45] *** mrkake has joined #angularjs
[00:13:49] <rigel_> so either i'm not actually changing $scope, or....?
[00:14:03] *** dcherman has quit IRC
[00:14:21] <mikehaas763> davek: Ok, that should be irrelevant whether it's a separate resource. Let me clarify, when I want the user to define a relationship from one resource to another, should I PUT the ID of that related resource or should I PUT the entire object resource itself?
[00:14:32] <Corealis> rigel: try $scope.data.example
[00:14:56] <Corealis> rigel: you're probably missing the famous dot :)
[00:15:00] *** apetro_ has quit IRC
[00:15:21] <davek> mikehaas763, you should put the value of the property you wish to change on the resource. For instance if a user's room relation is no more complex than setting the roomId property on the user resource then your first example is correct.
[00:15:33] *** apetro_ has joined #angularjs
[00:15:41] *** dcherman has joined #angularjs
[00:16:05] <jaawerth> huh, turns out it's angular the strips it, not the browser
[00:16:10] *** secondjeff has quit IRC
[00:16:11] *** Vloz_ has quit IRC
[00:16:50] *** cthrax has quit IRC
[00:17:19] <jaawerth> probably to protect against XSS attacks
[00:17:36] <wafflejock> rigel_: it depends on where you change the property, it has to be in some context where $scope.$apply is triggered like in an $http callback or $timeout or ng-click handler
[00:17:52] *** in_deep_thought has quit IRC
[00:17:59] *** Schtive has quit IRC
[00:18:12] <wafflejock> rigel_: also good to always have a dot in your view to avoid the prototypical inheritence weirdness that happens when a property gets assigned to a child scope
[00:19:16] <jaawerth> really it's just pass-by-reference/pass-by-value
[00:19:35] <jaawerth> it just so happens that both javascript's prototypical inheritance AND angular's binding magic both rely on that
[00:19:47] *** apetro_ has quit IRC
[00:19:50] <jaawerth> or rather, CAN rely on that
[00:20:26] *** golcarcol has left #angularjs
[00:20:43] *** josh-k_ has joined #angularjs
[00:20:58] *** golcarcol has joined #angularjs
[00:21:09] *** night-owl2 has joined #angularjs
[00:21:11] *** joshontheweb has quit IRC
[00:21:19] *** Methylated has quit IRC
[00:21:20] *** dariocravero has quit IRC
[00:21:43] *** blueadept has quit IRC
[00:21:44] *** gordroid has quit IRC
[00:21:51] *** spencercarnage has joined #angularjs
[00:22:07] *** golcarcol has quit IRC
[00:22:16] *** bbsss has quit IRC
[00:22:27] *** Corealis has quit IRC
[00:22:28] *** golcarcol has joined #angularjs
[00:23:02] *** patrickreck has quit IRC
[00:23:11] *** cthrax has joined #angularjs
[00:23:36] *** encrypt3d_fracti has joined #angularjs
[00:23:41] <jaawerth> wafflejock: it's still the pass-by-ref mechanism under the hood, though
[00:23:44] *** patrickreck has joined #angularjs
[00:23:45] <blak422> is there an window.location.assign() equivalent in angular
[00:23:55] *** blueadept has joined #angularjs
[00:23:57] *** josh-k has quit IRC
[00:24:17] *** mary5030_ has joined #angularjs
[00:24:24] *** in_deep_thought has joined #angularjs
[00:24:30] <wafflejock> jaawerth: yeah but also has to do with using the internal pointer to the prototype object, it is related to pass by reference and pass by value sort of but it's not a common thing in regular OOP
[00:24:32] <jaawerth> wafflejock: basically, when you set something on a prototype to inherit, if it's an object literal then it's going to pass by value/copy it when you create a new object rather than just keep the reference to it
[00:24:54] <jaawerth> nah
[00:25:02] <yowmamasita> wafflejock: i think i know now why
[00:25:12] <nickeddy> oh god javascript knowledge debates
[00:25:14] <jaawerth> for example, you can totally put literals on an object prototype and when you create them the value will be whatever you set it to on the prototype
[00:25:15] <yowmamasita> wafflejock: about my problem earlier about the http/https
[00:25:15] <wafflejock> yowmamasita: what's going on?
[00:25:24] *** bertrandk has joined #angularjs
[00:25:40] <jaawerth> we aren't debating knowledge, we're debating the behavior itself ;-). I bet wafflejock nows more than I do
[00:25:42] <jaawerth> knows*
[00:25:51] *** joshontheweb has joined #angularjs
[00:25:55] <nickeddy> well that's what i meant haha
[00:26:02] <wafflejock> jaawerth: eh yeah it's a fuzzy area for me too crockford's stuff is always pretty enlightening
[00:26:09] <yowmamasita> wafflejock: it's not $http.get('/someurl') thats causing the error, it just $http({ url: '/someurl', method: 'GET' });
[00:26:12] *** sssilver has joined #angularjs
[00:26:19] <sssilver> Hello everyone!
[00:26:30] <optikalmouse> should i be including httpbackend mocks for unit tests or is that an e2e testing thing?
[00:26:54] *** rhp has quit IRC
[00:26:56] <yowmamasita> wafflejock: might this me more probable as an angular thing?
[00:26:57] *** patrickreck has quit IRC
[00:27:11] <nickeddy> optikalmouse: i believe that's e2e
[00:27:16] <sssilver> I have a dynamic list of buttons (read: an accordion), and I want to toggle one of the sections upon receiving a certain response from XHR
[00:27:18] *** patrickreck has joined #angularjs
[00:27:19] <wafflejock> yowmamasita: yeah might be I don't typically define the params I just used .post and .get until I switched to using $resource
[00:27:20] <sssilver> what's the angular way of doing this?
[00:27:24] *** davemerwin has quit IRC
[00:27:31] *** bkuberek has quit IRC
[00:27:38] <sssilver> (the accordion is a directive made by me)
[00:27:38] <optikalmouse> ugh I'm getting "unexpected request" when I'm trying to test a directive and I know that's the $httpBackend mock but I'm not sure how to remove it...
[00:27:46] <yowmamasita> wafflejock: im doing application/x-www-form-urlencoded POST with them
[00:27:47] *** mary5030 has quit IRC
[00:27:56] *** davemerwin has joined #angularjs
[00:27:58] <yowmamasita> wafflejock: that s why the definition
[00:28:10] <wafflejock> sssilver: within the directive you'll want to use $observe on the attrs or a scope.$watch to see changes to an isolate scope property depending on how you set things up
[00:28:13] *** phuh has quit IRC
[00:28:33] *** Tidwell has quit IRC
[00:28:39] *** phuh has joined #angularjs
[00:28:42] <sssilver> wafflejock: and how do I change the attributes? from the controller, using $()?
[00:28:54] *** shackleford has quit IRC
[00:29:20] *** davemerwin has quit IRC
[00:29:28] *** shackleford has joined #angularjs
[00:29:35] *** davemerwin has joined #angularjs
[00:29:36] <wafflejock> sssilver: nope you should be able to just create a data model (a regular javascript object with key/value pairs) that you can then use with your directive... let me see if I have any plunkrs I can dig up showing it
[00:29:43] *** drej has joined #angularjs
[00:29:56] *** earthquake has joined #angularjs
[00:31:06] *** ManBearPixel has quit IRC
[00:31:35] *** richiebkr has quit IRC
[00:31:41] *** bayousoft has quit IRC
[00:31:51] <optikalmouse> ok
[00:31:59] *** patrickr_ has joined #angularjs
[00:32:12] *** djam90 has joined #angularjs
[00:32:23] <optikalmouse> nevermind I fixed it. the issue is that I had to strip the prefix for the templates in the ng2html-js preprocessor. it really should check for that or offer that up as a hint -_-'
[00:32:26] *** bayousoft has joined #angularjs
[00:32:27] *** recidive has quit IRC
[00:32:29] <blak422> ahhh found my problem
[00:32:38] <blak422> $http.get()
[00:32:46] *** panchisco has quit IRC
[00:32:50] *** bayousoft has quit IRC
[00:32:59] *** tplaner has joined #angularjs
[00:33:04] <blak422> instead used $window.location.assign(url) and file downloads
[00:33:28] <sssilver> wafflejock: I see, thanks
[00:33:43] *** shackleford has quit IRC
[00:33:53] <rigel_> wafflejock: most of this does not make sense to me. fwiw, the scope data is being changed by an ng-click on an <a>
[00:34:44] <rigel_> <a href ng-click="set(q)"> as part of a <li ng-repeat="q in questions">
[00:35:05] <linagee__> is there an easy way to set everything to a disabled state until my data has loaded on the page?
[00:35:06] <wafflejock> rigel_: yeah we're just bantering a bit on details and ways of talking about it but if you can show an example in plunkr we can help for sure
[00:35:13] <linagee__> (all input/select/etc controls)
[00:35:20] <jaawerth> wafflejock: the prototype stuff isn't as mystical as all the talks make it sound, the pointer stuff happens because when you try and set something on MyObject.foo and a prototype exists, it doesn't know to look at the prototype and just sets it right on the object
[00:35:23] *** patrickreck has quit IRC
[00:35:26] <wafflejock> linagee__: ng-disabled, typically I just show/hide the parts and a loader though
[00:35:27] <linagee__> (besides adding like a million ng-disabled to every tag)
[00:35:39] *** zwacky has quit IRC
[00:35:50] <optikalmouse> it's always a relief to have some kind of unit tests, no matter how little they cover. ffeels like a relief to tame the legacy code beast.
[00:36:10] *** BlinkyBill has joined #angularjs
[00:36:17] <wafflejock> optikalmouse: yeah having tests running will help migration/updating for sure too
[00:36:26] *** crockett95 has quit IRC
[00:36:34] <rigel_> wafflejock: i'm not entirely sure how to get json data into the plunkr
[00:36:39] *** tschundeee has quit IRC
[00:36:45] <jaawerth> wafflejock: I do see what you mean, it isn't EXACTLY the pass-by-val/ref because it how to do with how javascript determines whether to look up the prototype chain. But you can produce the same behavior with your own custom sub-object
[00:36:55] *** panchisco has joined #angularjs
[00:36:55] *** [n0b0dy] has quit IRC
[00:36:56] <wafflejock> rigel_: you can make a new file and just drop it in there name it .json to make it clear and load it with $http.get like usual
[00:37:05] *** [n0b0dy] has joined #angularjs
[00:37:10] *** ededagic has quit IRC
[00:37:20] <wafflejock> jaawerth: definitely
[00:37:36] <jaawerth> I find that a lot of the expert-types are really bad about simplifying javascript stuff when it's really just the same "everything is an object (other than those pesky primitives)" principle at work over and over and over again
[00:38:11] *** bphogan is now known as bphogan_afk
[00:38:25] *** Destos has quit IRC
[00:38:46] <wafflejock> yeah some crockford stuff I watched yesterday (not sure if it's the one I linked here) he talked about how he doesn't like the new operator since all the confusion with "this" but it was shoved in there to try to appease Java "professional" developers
[00:39:03] <davek> let motherfuckers.
[00:39:08] <davek> It's coming.
[00:39:24] <jaawerth> does he also hate Object.create?
[00:39:30] <wafflejock> I'm a pretty huge fan of OOP but this mixed stuff is confusing
[00:39:33] *** MuffinMan` has quit IRC
[00:39:43] <jaawerth> eh, you think that's confusing then try doing OOP with perl
[00:39:45] *** xavia has left #angularjs
[00:39:56] <jaawerth> I have a headache just thinking back to it
[00:39:58] *** fouzko has quit IRC
[00:40:13] *** richiebkr has joined #angularjs
[00:40:14] *** blueadept has quit IRC
[00:40:26] *** blueadept has joined #angularjs
[00:40:27] *** blueadept has joined #angularjs
[00:40:28] <wafflejock> yeah I mostly stay away from Perl, I've other peoples Perl projects (bugzilla, parsedia2sql) but never tried digging into the code
[00:40:34] <wafflejock> used*
[00:40:54] *** Tidwell has joined #angularjs
[00:41:14] *** blueadept has quit IRC
[00:41:24] <hippch> jaawerth, perl's OOP is pretty sweet with Moose
[00:41:30] <jaawerth> haha that's true
[00:41:35] *** blueadept has joined #angularjs
[00:41:36] <hippch> buhzilla is not good example of perl code
[00:41:52] <wafflejock> yeah does not run well on raspberry PI
[00:41:58] <jaawerth> it's also yet another level of complexity, though, plus it's slower than the more primitive class implementations out there
[00:42:03] *** digia is now known as digia|away
[00:42:05] *** secondjeff has joined #angularjs
[00:42:08] <wafflejock> the requests for usernames crashed it a few times
[00:42:17] <hippch> cpu's are cheaper than developer's time
[00:42:20] *** hannesvdvreken has quit IRC
[00:42:24] *** Trow has quit IRC
[00:42:36] <wafflejock> yeah I just moved it but was surprised how heavy it was didn't notice on modern CPUs though it's fine on AWS
[00:42:47] *** dman777_alter has quit IRC
[00:42:58] <jaawerth> the trick to writing fast perl code, other than avoiding bad code in general, is knowing what perl is natively going to be quick at, and which CPAN modules wrap C code for things
[00:43:14] <hippch> +1
[00:44:11] <jaawerth> IIRC the CPAN modules that end in _XS tend to wrap C. So you'll have a module called CSV and CSV_XS - you want to make sure you have either CSV_XS or both installed, and it will overload the native CSV with the c-wrapped XS methods
[00:44:24] *** cigarshark has quit IRC
[00:44:24] *** wwnnbb has joined #angularjs
[00:44:27] *** icfantv has quit IRC
[00:44:30] *** danyim has joined #angularjs
[00:44:33] <jaawerth> hippch: hehe
[00:44:45] <jaawerth> I get why a lot of people hate perl but there are some things I like/miss about it
[00:45:05] <jaawerth> though overall I'd rather use something else for most things these days
[00:45:10] *** Drako_ has quit IRC
[00:45:31] <wafflejock> eh I just don't know enough about it to have an opinion either way really I think I had an encounter with it writing cgi files a long time ago in a galaxy far far away
[00:46:00] <hippch> cgi long gone by now
[00:46:06] <wafflejock> but I certainly had no idea what I was doing back then
[00:46:12] <jaawerth> unless you count fastcgi but that's cheating
[00:46:14] <hippch> only code from far far away is still using it :)
[00:46:16] <rigel_> wafflejock: plnkr.co/edit/l56JPMb8hdtHmZLBQGVv?p=streamer
[00:46:27] *** night-owl2 has quit IRC
[00:46:33] *** Sgeo has joined #angularjs
[00:46:42] *** lordkryss has quit IRC
[00:46:48] *** secondjeff has quit IRC
[00:46:50] <rigel_> it initializes to the first problem in the list just fine, but it won't change problems when a new one is clicked
[00:47:05] *** Daniel_yo has joined #angularjs
[00:47:25] <hippch> even fastcgi is lately not prefered way to deploy perl apps as far as i know. although i moved on quite awhile ago too.
[00:47:41] *** dejanr has joined #angularjs
[00:47:51] *** mikehaas763 has quit IRC
[00:47:59] *** patrickr_ has quit IRC
[00:48:03] *** juanlas has quit IRC
[00:48:53] *** danyim has quit IRC
[00:49:14] <jaawerth> eh, last time I messed with it I used plack (perl's equivalent to rack middleware) and starman, which is a pretty neat perl server that runs using workers. When you hook it up to your main server, though, you can still use FCGI rather than reverse-proxying from your main web server
[00:49:37] *** CodeFriar has joined #angularjs
[00:49:44] <jaawerth> I think I just did the reverse-proxy, though
[00:50:00] <jaawerth> on account of it being so easy and quick with nginx
[00:50:06] <hippch> with mojolicious and hypnotoad it was reverse proxying
[00:50:11] *** patrickreck has joined #angularjs
[00:50:21] <hippch> this was last framework i tried long time ago :))
[00:50:33] <Daniel_yo> After hours of debugging, I've found a difference between angular's script loading order, when using $templateCache vs templates via http request. Is that a bug? why isn't it documented ? Thanks.
[00:50:36] <jaawerth> haha, last one I tried was Dancer, which is perl's answer to Sinatra
[00:51:09] <Daniel_yo> I use UIrouter ..
[00:51:29] <jaawerth> Daniel_yo: what difference in particular?
[00:52:34] *** dejanr has quit IRC
[00:52:40] <Daniel_yo> the events of the uirouter are fired before controllers(and there dependencies) code - when using templates using http request.
[00:53:38] *** bjr217 has quit IRC
[00:53:50] *** CodeFriar has quit IRC
[00:53:50] <jaawerth> which events?
[00:53:59] <Daniel_yo> while using template-cache explicitly, the uirouter events do get handled by templates's controllers and deps..
[00:54:00] *** brownbathrobe has joined #angularjs
[00:54:09] <jaawerth> and which controllers? The controllers for your destination routes?
[00:54:21] <jaawerth> ah, nevermind, you answered that question
[00:54:25] <Daniel_yo> $stateChangeSuccess
[00:54:47] <Daniel_yo> so it's a bug in uirouter, or it's normal ?
[00:55:12] *** bphogan_afk is now known as bphogan
[00:55:53] *** tysweezy has quit IRC
[00:56:14] *** bulkan has joined #angularjs
[00:56:21] *** Tidwell has quit IRC
[00:57:02] *** tysweezy has joined #angularjs
[00:57:23] <jaawerth> Daniel_yo: pretty sure it isn't a bug. IIRC, $stateChangeSuccess is for just that - a change of state. It then loads the template and links it to the controller. $viewContentLoaded then fires once the template has actually loaded
[00:57:47] *** jdcasey has quit IRC
[00:57:51] *** discipolo_ has joined #angularjs
[00:58:17] <Foxandxss> wafflejock: too much crockford but I am not fan of his work :P
[00:58:41] <wafflejock> Foxandxss: don't even like JSHint/JSLint stuff?
[00:58:42] *** mven has quit IRC
[00:58:54] <Foxandxss> well, that is good
[00:58:56] <wafflejock> he seems pretty reasonable to me
[00:59:01] <jaawerth> oh god I hate jshint so much
[00:59:03] <Foxandxss> I was talking about his book
[00:59:04] <wafflejock> not the easiest to understand all the time
[00:59:06] <wafflejock> oh
[00:59:07] <Daniel_yo> jaawerth: guess you're right. but it's very strange to get different behavior of the code, by just changing from templateCache templates to http templates...
[00:59:11] <jaawerth> okay let me specify: I hate the defaults taht yeoman sets in jshint
[00:59:12] *** TorchDragon has joined #angularjs
[00:59:33] <jaawerth> (one of the reasons I stopped using yeoman until I get around to writing my own generator)
[00:59:34] *** gunn has joined #angularjs
[00:59:37] *** mven has joined #angularjs
[00:59:49] <wafflejock> yeah having no checking is worse I think sometimes it catches things that would be bugs otherwise
[01:00:45] <wafflejock> I'm used to a compiler too so it just makes me a feel better about the code that it's gone through some sort of validation
[01:00:46] <jaawerth> that's what unit testing is for!
[01:00:53] <wafflejock> yea
[01:00:54] <jaawerth> nah, you're right, I just probably start using it again, just with saner defaults
[01:00:59] <jaawerth> should probably*
[01:01:07] *** mennea has joined #angularjs
[01:01:36] *** sharondio has joined #angularjs
[01:01:43] *** Vinnyceptr has quit IRC
[01:01:44] <Daniel_yo> Thanks anyway :)
[01:01:51] *** mkc has joined #angularjs
[01:01:55] <jaawerth> Daniel_yo: well, when you're using templateCache, the templates are either loading so quickly that the other events fire before stateChangeSuccess has a chance to, or it loads synchronously (I can't remember which)
[01:02:14] <jaawerth> Daniel_yo: in either case, that mean the controller/scope events are going to beat $stateChangeSuccess
[01:02:17] *** ishi has quit IRC
[01:02:49] <jaawerth> basically, when you load the templates remotely, it's starting the load, then the state change finishes and fires that event, then it finishes loading and fires the scope events
[01:02:57] *** yowmamasita has quit IRC
[01:03:16] *** stirling_ has quit IRC
[01:03:16] <Daniel_yo> it's just async vs sync. I guess.
[01:03:17] *** lw has quit IRC
[01:03:21] <jaawerth> exactly
[01:03:21] <mkc> Angular should keep the binding between the template and the scope after finishing rendering right? All my content get rendered correctly, but after that the binding just stop working. Do i need a watch in the controller or something like that?
[01:03:36] *** lw has joined #angularjs
[01:03:48] *** TorchDragon has quit IRC
[01:03:55] <jaawerth> mkc: depends on how you're setting/changing the values
[01:03:57] *** tsalb has quit IRC
[01:04:23] <Daniel_yo> I guess they should document that... somewhere :)
[01:04:30] <mkc> jaawerth: $scope.title = “new value”
[01:04:56] *** IanOlson has quit IRC
[01:05:04] *** mennea has quit IRC
[01:05:13] *** sonofdirt has quit IRC
[01:05:22] <jaawerth> mkc: but what's triggering that?
[01:05:38] *** kofight has quit IRC
[01:05:40] *** enaqx has quit IRC
[01:05:51] *** epantzar has quit IRC
[01:06:06] <jaawerth> mkc: also, in general it's a bad idea to put object primitives directly on $scope, since you can get into issues just like this if youe'r passing that value around and want it to stay updated (or if you've got any scope inheritance)
[01:06:08] <mkc> jaawerth: At this point I dont know if that never worked in the first place or I broke something in the process of working on the project and never noticed it.
[01:06:12] *** shinnya has joined #angularjs
[01:06:34] <jaawerth> mkc: so when you're changing $scope.title - what is causing it to be changed? Is it triggered by an event?
[01:07:10] *** bmac has quit IRC
[01:07:37] <mkc> jaawerth: huh, I think I know why it might now work now. Thanks for the hint. I’ll be right back if that is not the case. As a test, I was assigning window.Test = { scope: $scope} etc.
[01:07:49] <wafflejock> mkc: moar dots
[01:08:02] *** hook has joined #angularjs
[01:08:03] <jaawerth> mkc: ^^ it's probably that
[01:08:14] <jaawerth> it's either a dot issue or the digest isn't triggered, but we'd need to see more code to be sure
[01:08:17] *** DrMabuse has joined #angularjs
[01:08:23] <wafflejock> yup
[01:08:53] *** Bade has quit IRC
[01:09:31] *** haon has joined #angularjs
[01:09:51] *** haon is now known as haon99
[01:10:46] *** cspra85 has quit IRC
[01:11:04] *** frickett has quit IRC
[01:11:45] *** Cydmax has quit IRC
[01:11:48] <haon99> Hey so I'm in a strange situation where I need to feed a 3rd party service an html template to load into the DOM. I'm pulling some template code in with something like $("script[id='post.html']").html() and running $compile. I'm trying to figure out how to now load a variable into the scope for that template.
[01:12:15] *** jdj_dk has joined #angularjs
[01:12:29] <rigel_> wafflejock: oh, interesting. i knew i was kludging it up there
[01:12:37] *** netto_ has joined #angularjs
[01:12:42] *** rud has joined #angularjs
[01:12:43] *** rud has joined #angularjs
[01:12:52] <wafflejock> rigel_: yeah think you were making it more complicated than it needs to be
[01:12:54] *** DrMabuse has quit IRC
[01:12:54] <haon99> I think wrapping in a div with a custom directive is the right way to do this, but I'm not sure how to add some logic and set something into its scope in that directive code.
[01:12:58] *** netto_ has left #angularjs
[01:13:18] <wafflejock> rigel_: one of the main things really is the function wasn't defined as a property of the scope
[01:13:27] <wafflejock> rigel_: so the ng-click wasn't triggering it
[01:14:02] <jaawerth> haon99: Interesting! I think you just need to do it in the other order. Set the variable on scope, and then do $compile(myTempalte)(scope)
[01:14:19] <rigel_> oic
[01:14:21] *** brownbathrobe has quit IRC
[01:14:43] *** DrMabus__ has quit IRC
[01:14:44] <rigel_> i am completely new to JS, so making things more complicated is second nature to me
[01:15:19] *** zfogg_ has quit IRC
[01:15:33] <jaawerth> haon99: I'd just wrap it in a directive so it compiles it on the scope for you
[01:15:53] <wafflejock> rigel_: heh yeah I'm not a JS native either really but try to keep things as simple as I can most of the time to reduce the code I write and in theory the number of bugs in that code
[01:15:56] *** shaym_ has quit IRC
[01:16:01] <jaawerth> haon99: well I mean, you still might need to manually compile
[01:16:21] <haon99> jaawerth: thanks so much for the reply. That's what I'm doing now, and I think that'll be the way to do it. Just not sure how to set something on the scope in the directive
[01:16:31] <haon99> jaawerth: lemme post a gist - one sec.
[01:16:49] *** FunnyLookinHat has quit IRC
[01:16:53] <rigel_> do i need those vars in app.js at all, if i'm defining them on $scope?
[01:16:53] *** UniBot has quit IRC
[01:16:59] *** the-erm has quit IRC
[01:17:11] <wafflejock> rigel_: no not really
[01:17:24] <wafflejock> rigel_: I wasn't sure what you were planning to use the list of ids for though
[01:17:27] *** jdj_dk has quit IRC
[01:17:37] *** dshoreman has joined #angularjs
[01:17:39] *** patrickreck has quit IRC
[01:17:52] <rigel_> the id list is solely to make the TOC sidebar, and i plan on adding some next/prev buttons on the navbar
[01:18:01] *** the-erm has joined #angularjs
[01:18:05] <rigel_> but that can all be done on $scope
[01:18:07] *** Nek has quit IRC
[01:18:25] <wafflejock> rigel_: generally I would actually wrap the data object and function with the $http call in a service or factory since those are singletons so the data is persisted for the life of the app
[01:18:40] <wafflejock> rigel_: this way if you have multiple controllers they can share the info through the service/factory
[01:19:16] *** lw has quit IRC
[01:19:21] <rigel_> ...yeah, i don't even know what that means.
[01:19:33] *** naxs has joined #angularjs
[01:19:38] <wafflejock> rigel_: yeah sorry... heh one sec will fix up the plunkr a little further to illustrate
[01:20:34] *** joshontheweb has quit IRC
[01:20:59] *** mmitchel_ has quit IRC
[01:21:11] <SockSorcerer> i'm seeing this odd issue where an injected service is undefined. other than the common causes of this (just me, i've been looking), anyone have thoughts on what may be causing this?
[01:21:20] <SockSorcerer> the service is injected into a directive that uses compile and post/pre
[01:21:37] <jaawerth> haon99: try $compile.html(). I'd highly, highly recommend moving this into a directive instead of using jquery though
[01:21:47] *** rodyhadd_ has joined #angularjs
[01:21:52] <jaawerth> haon99: that is, $compile.html() instead of $compile.contents().
[01:22:09] *** toastynerd has joined #angularjs
[01:22:23] <haon99> jaawerth: gotcha - I'll read up on it, but that still won't help set the scope?
[01:22:34] <haon99> jaawerth: err, set $scope.post
[01:22:41] *** mmitchel_ has joined #angularjs
[01:23:04] <kamanato> rigel did you solve the problem?
[01:23:20] <jaawerth> haon99: ah I see what you mean. Well, when you use $compile(someHtml)($scope), it's actually invoking the function with a scope as the argument. So any scope ou pass into the function is the one that it's set on
[01:23:21] <rigel_> kamanato: yes. thanks. wafflejock has been very helpful.
[01:23:26] *** zfogg_ has joined #angularjs
[01:23:32] *** bayousoft has joined #angularjs
[01:23:33] *** naxs has quit IRC
[01:23:45] *** Hippo has joined #angularjs
[01:24:00] *** jamesbdev has joined #angularjs
[01:24:07] <jaawerth> haon99: that's why using it in a directive is helpful. First, you know exactly what scope you're working with, and you can make sure it happens in the correct stage of the digest cycle. One sec, I just the other day wrote a directive that dynamically loads one of two different templates depending on an "if"...
[01:24:09] <kamanato> I changed this part $scope.setPointer = function (newIndex) { and in $http.get updated setPointer to $scope.setPointer and it works
[01:24:24] <haon99> jaawerth: thanks!
[01:24:34] <jaawerth> haon99: basically, directives are meant for directly manipulating the DOM and you don't really want to do that anywhere else
[01:24:58] <rigel_> kamanato: on the original or the second version?
[01:25:12] <Hippo> Hey, if I need to load a google maps object and I have a controller that interacts with the map, should I load the map into $scope.map or rather something like window.map
[01:25:19] *** Methylated1 has joined #angularjs
[01:25:20] <kamanato> second i think
[01:25:23] *** uf6667 has quit IRC
[01:25:43] <haon99> jaawerth: right, I mean, I guess the issue I need this to happen dynamically based on events in some controllers. and this template is already being used elsewhere in the app. I just need to load this snippet into a popup with the relevant post and compile...
[01:26:01] <haon99> jaawerth: I'm happy to put this all in a directive, just not sure how it would help in this case.
[01:26:48] *** epantzar has joined #angularjs
[01:27:11] <wafflejock> rigel_: called it selectedItem by accident instead of selectedQuestion
[01:27:48] <wafflejock> rigel_: advantage here is if you start using ngRoute or ui-router and controllers get created/destroyed the service will keep the data and won't need to remake the http call
[01:28:02] *** cigarshark has joined #angularjs
[01:28:17] *** phuh has quit IRC
[01:28:21]
<jaawerth> haon99: alright, here's a directive I was tooling around with the other day that dynamically loads one of two templates depending on whether the "edit" class is present. Keep in mind, I was just sort of messing around with it so I can't promise it is stylistically sound, but it's a good example of how you can compile a template: https://gist.github.com/jaawerth/966a3dd21779676ec479
[01:28:41] *** phuh has joined #angularjs
[01:28:48] <rigel_> oh, thats smart thinkin'
[01:29:23] <rigel_> because i was going to have another view for selecting subsets, and i guess i need a different controller for that
[01:29:28] *** OnkelTem has quit IRC
[01:29:41] <wafflejock> rigel_: yeah it's commonly overlooked when someone starts with angular
[01:29:52] *** teddyp1cker has joined #angularjs
[01:30:01] <wafflejock> rigel_: they get confused about the controllers being destroyed/recreated and a factory or service is the fix for that
[01:30:18] *** OnkelTem has joined #angularjs
[01:30:21] <rigel_> i will go over this additional stuff in detail over the next couple days and will likely ask some questions.
[01:30:43] <wafflejock> cool
[01:31:11] <rigel_> in the meantime it works exactly like i had hoped. i struggled with getting this same behavior down with jquery for literally months, and i started reading about angular last week
[01:31:12] *** ericbarnes has joined #angularjs
[01:31:19] <jaawerth> haon99: take a look at the bit with iElement.contents().replaceWith($compile(tpl)(scope)) - I'm replacing all the child elements of my directive with the compiled template. But you can only do that once a child element has been appended, otherwise you'd need to use .append instead of .replace
[01:31:20] *** Siecje1 has joined #angularjs
[01:31:32] <rigel_> i had all this python backend crap using cherrypy that was kludgy and smelly
[01:31:52] *** roobik has quit IRC
[01:31:59] <rigel_> so, this is neat. thanks again
[01:32:06] *** UniBot has joined #angularjs
[01:32:08] <wafflejock> rigel_: np
[01:32:15] <jaawerth> anyway, truthfully what I"m doing in that directive is likely better accomplished with ng-if and a single template, isntead of two different ones, I just wanted to see how easily I could do it
[01:32:23] <wafflejock> robdubya_: SCIENCE!!
[01:32:24] *** gunn has quit IRC
[01:32:24] *** RyanHirsch has quit IRC
[01:32:47] <jaawerth> robdubya_: neato!
[01:32:53] <jaawerth> robdubya_: what are you using for the pretty graphics?
[01:32:53] <wafflejock> robdubya_: heh yeah I hacked together a graphing app one day so I could measure the G force in the elevator
[01:33:25] <robdubya_> jaawerth d3
[01:33:36] <jaawerth> thought so!
[01:34:01] <wafflejock> robdubya_: using a library or DIY?
[01:34:05] <jaawerth> speaking of which, you had asked me to tell you my experience messing around with nvd3. The answer is: I decided it was too much abstraction on top of already using d3 on top of angular, and I went back to regular d3
[01:34:08] *** gunn has joined #angularjs
[01:34:21] <robdubya_> yeah, this is pure d3 + a directive, not too complex
[01:34:22] <jaawerth> haon99: well, once you've compiled the template, that gives you a DOM object, but you still have to stick it somewhere
[01:34:28] *** teddyp1cker has quit IRC
[01:34:31] <robdubya_> although, here's a question
[01:34:52] <robdubya_> so the BLE device is pushing events (like a websocket) at ~ 100ms intervals
[01:34:52] <robdubya_> well
[01:35:11] <robdubya_> the device is capturing at 100ms, there's some delay in the transmission
[01:35:20] <robdubya_> any thoughts on smoothing out that pattern?
[01:35:26] *** dcherman has quit IRC
[01:35:33] <jaawerth> haon99: that said, if you're already stuck it somewhere.. that MIGHT work. But you may need to do var tpl = $compile(... and then do $("#postpopup-"+post_id).contents().replaceWith(tpl). Keeping in mind this is totally against all angular best practices ;-)
[01:35:38] <davemerwin> in a lust view, I have a form that adds an item. When I click add item, the form inputs don't clear out even thought setPristine is present AND the inputs have pristine on them
[01:35:43] *** DrJae has joined #angularjs
[01:36:13] *** snapwich has quit IRC
[01:36:19] <davemerwin> lol lust view
[01:36:25] <haon99> jaawerth: gotcha... ill give it a shot. Thanks again!
[01:36:29] <davemerwin> LIST view
[01:37:27] <jaawerth> robdubya_: what are you displaying this in? Is this like a mobile app?
[01:37:32] <jaawerth> robdubya_: or a browser?
[01:37:52] <wafflejock> robdubya_: not sure what you want to smooth out?
[01:38:04] *** Jae has quit IRC
[01:38:07] <robdubya_> jaawerth its mobile, using BLE to a sensor thingy
[01:38:13] <jaawerth> ahh gotcha
[01:38:18] *** tschundeee has joined #angularjs
[01:38:28] <haon99> jaawerth: Yup, that did it. I owe you a beer if you ever come through nyc. best!
[01:38:47] <robdubya_> wafflejock so currently, the incoming event tells d3 to refresh / redraw, with a 100ms interval
[01:38:57] <robdubya_> er, 100ms *transition*
[01:39:00] <jaawerth> robdubya_: I've not really done any mobile stuff, so I have no idea how the threading works, but it sounds like you need to put the listener in a webworker or the mobile-equivalent
[01:39:08] *** slainer68 has quit IRC
[01:39:14] <robdubya_> oh, its not performance, its fine from that standpoint
[01:39:22] <robdubya_> its more the animation
[01:39:29] <Grokling> rob - is that capturing one point every 100ms, or capturing at some other freq, batching and pushing it at 100ms intervals?
[01:39:30] <jaawerth> no I mean because of the event loop
[01:39:40] <jaawerth> but I see what you mean
[01:39:52] *** haon99 has quit IRC
[01:40:10] <wafflejock> Grokling: accelerometer data not freq
[01:40:11] <Grokling> Looks like batching?
[01:40:25] <wafflejock> oh
[01:40:27] <jaawerth> but when I've done short-time stuff in the past, the browser event loop has messed with the time accuracy a little and putting it in a worker helped
[01:40:36] <jaawerth> animation wise you probably just need to debounce
[01:40:36] <robdubya_> so the device is capturing at 100ms intervals
[01:40:37] <wafflejock> hah thought you meant sound freq when I first read that Grokling
[01:40:54] <robdubya_> which then is relayed over BLE
[01:40:59] <jaawerth> okay
[01:41:00] <robdubya_> so i get an event
[01:41:08] *** gordroid has joined #angularjs
[01:41:26] <jaawerth> I'm with you so far.
[01:41:30] *** nuizzy has quit IRC
[01:41:32] <jaawerth> Where do you think the delay is occurring?
[01:41:34] <robdubya_> so the data points are at 100ms intervals, but they're not necessarily *arriving* at 100ms intervals
[01:41:44] *** arizzo has joined #angularjs
[01:41:44] <Grokling> So it's creating one datapoint every 100ms? If that x scale on the graph is ms, then something isn't lining up?
[01:42:11] <jaawerth> how much is it deviating?
[01:42:12] <robdubya_> and with d3, you set a transition duration
[01:42:15] <jaawerth> like, by how many ms?
[01:42:29] <robdubya_> jaawerth that's the unknown, it varies based on a number of factors
[01:42:38] <jaawerth> and does the browser clock it correctly if you just console.log a few of the intervals?
[01:42:56] <robdubya_> sure - if i just dump 100 points in an array, and do it, its smooth.
[01:43:07] *** o5te has joined #angularjs
[01:43:19] <jaawerth> I mean if you were to do a new Date() every time it clocks the 100ms
[01:43:29] *** jory` is now known as jory
[01:43:37] *** tschundeee has quit IRC
[01:43:38] *** o5te has quit IRC
[01:44:10] <Grokling> To allow for variablilty you need some kinda buffer at least as big as your variance, but then you're compromising realtime for smoothness.
[01:44:22] <wafflejock> robdubya_: so right now you push an element into the array and unshift one off the front of the list
[01:44:28] <wafflejock> ?
[01:44:31] *** bertrandk has quit IRC
[01:44:36] <jaawerth> haha alright if you're sure it's the animation...
[01:44:45] <robdubya_> right - and at the moment i'm doing that on the incoming event, whereas i guess i should be doing it on an event loop
[01:44:46] <jaawerth> I just don't like to make those kinds of assumptions before I've clocked the event itself ;-)
[01:44:52] <robdubya_> er, interval loop
[01:44:52] *** patrickarlt has joined #angularjs
[01:44:55] *** bkuberek has joined #angularjs
[01:44:57] *** oniijin has quit IRC
[01:45:10] *** DrMabuse has joined #angularjs
[01:45:31] *** oniijin has joined #angularjs
[01:45:45] <robdubya_> jaawerth you're right, in the sense that the incoming events are not arriving at 100ms intervals
[01:46:01] <robdubya_> but they represent 100ms intervals, if that makes sense.
[01:46:23] <robdubya_> so i suppose i need to buffer half a dozen or so, and then loop browser side
[01:46:37] *** richiebkr has quit IRC
[01:46:38] <wafflejock> robdubya_: yeah
[01:46:45] <wafflejock> robdubya_: it will need to be slightly delayed
[01:46:54] *** arizzo has quit IRC
[01:46:56] *** Jdubs_ has quit IRC
[01:47:06] *** DrMabuse has quit IRC
[01:47:11] <wafflejock> so you fill up some buffer then start a timer that runs in a loop and pulls from the buffer and puts data in a display array
[01:47:20] *** arizzo has joined #angularjs
[01:47:21] <robdubya_> sounds about right
[01:47:26] *** patrickarlt has quit IRC
[01:47:31] *** DrMabuse has joined #angularjs
[01:47:33] *** Jdubs has joined #angularjs
[01:47:43] <Grokling> Do you get a time index with your datapoints?
[01:48:06] <robdubya_> Grokling i could, though i'm not at the moment, since that's more bytes to transmit
[01:48:33] *** dejanr has joined #angularjs
[01:48:36] <Grokling> Thinking that if you missed a couple of points you could get in a mess too.. Might be better to mark that interval as missing than to misreport it as a zero value?
[01:48:54] <robdubya_> that's where i'm getting into the mess, if i "miss" an event
[01:49:04] <jaawerth> robdubya_: Their advice is probably spot on, but I recommend you clock the time for the events just so you can rule that out as a possibility
[01:49:06] <robdubya_> but the buffer i reckon should solve that
[01:49:13] <jaawerth> you could also mock it
[01:49:30] <jaawerth> but either way I recommend you try it with a worker and see what the difference looks like
[01:49:56] <robdubya_> jaawerth how would the worker thing, uh, work?
[01:49:57] *** edrocks has joined #angularjs
[01:49:58] *** Efrem has quit IRC
[01:49:58] <mkc> jaawerth: I’m back. In a very simple application if I have a scope.title and I get the $(‘.element-which-controller’).scope().title =“new title”, then this should change the html element content to “new title”, right? I’m starting to think that something is really broken for me. I’m pretty sure that when I was starting this project stuff like this worked
[01:50:04] *** Tidwell has joined #angularjs
[01:50:10] *** frickett has joined #angularjs
[01:50:17] *** rho has quit IRC
[01:50:30] <robdubya_> jaawerth i'm not sure i could use a worker for this, since they're "push" messaeges
[01:50:30] *** kamanato has quit IRC
[01:50:42] *** richiebkr has joined #angularjs
[01:50:42] <Grokling> You'll run out of buffer eventually. Loop your buffered points, compare against your expected time index and mark as missing if it's not there. That way your buffer doesn't need to be so big (getting you closer to realtime for the graph) and it won't 'run out' either.
[01:50:52] <jaawerth> robdubya_: yeah, you'd need to put all the listener stuff in there
[01:51:15] <jaawerth> robdubya_: your push sockets or whatever. I don't even know if that's possible on mobile
[01:51:32] *** DrMabuse has quit IRC
[01:51:38] <robdubya_> jaawerth well, its a cordova plugin, so the 'push' is happening OS side
[01:51:48] *** Jdubs has quit IRC
[01:51:53] *** AciD`` has quit IRC
[01:51:54] *** arizzo has quit IRC
[01:52:00] <jaawerth> but what listens on the browser side?
[01:52:07] *** walden is now known as walden|afk
[01:52:12] *** walden|afk is now known as walden
[01:52:28] <jaawerth> or how do you register the listener on the browser side? Is it an API built into the engine itself or does it rely on other code?
[01:53:05] *** walden is now known as walden|afk
[01:53:15] *** UniBot has quit IRC
[01:53:17] *** dejanr has quit IRC
[01:53:22] *** hook has quit IRC
[01:53:32] <robdubya_> so, its basically, subscribe, then the onDataNotify gets called
[01:53:40] *** s3shs has joined #angularjs
[01:54:01] <robdubya_> and that's not going to happen at 100ms intervals, its close, but not stable
[01:54:05] *** Jdubs has joined #angularjs
[01:54:43] *** hell_razer has joined #angularjs
[01:54:55] *** bjr217 has joined #angularjs
[01:55:29] *** hell_razer has quit IRC
[01:55:37] *** frickett has quit IRC
[01:56:04] *** tysweezy has quit IRC
[01:56:12] *** mikerrrrrr has quit IRC
[01:56:24] <robdubya_> but the data *is* being captured in 100ms intervals, and the d3 graph (obviously) is 100ms intervals to represent that, and to represent "realtime" it should be animating in the same "frame rate"
[01:56:48] *** spencercarnage has quit IRC
[01:56:55] *** epantzar has quit IRC
[01:57:02] <wafflejock> robdubya_: yeah just fill a buffer with like 5 elements or something and it will be 1/2 second behind basically and you can console.log the length of the array after each tick of the timer to see if it ever gets close to 0 and if not you can make the buffer smaller
[01:57:03] <robdubya_> its just the unknown latency in between events arriving, so i just need to start listening, get a buffer going, and then start rendering
[01:57:11] <jaawerth> hmm
[01:57:38] <jaawerth> that would work UNLESS it IS the event loop
[01:57:47] *** btyne has quit IRC
[01:57:51] <jaawerth> because if it is, you might run into similar problems
[01:58:02] <jaawerth> a buffer is a good idea either way, though
[01:58:03] <robdubya_> unless what is the event loop?
[01:58:04] *** sharondio has quit IRC
[01:58:10] *** roobik has joined #angularjs
[01:58:13] <jaawerth> the variation
[01:58:26] <jaawerth> the downside to using the buffer is that - what if the signal itself varies? Wouldn't you want to be able to see that on the readout?
[01:58:27] *** UniBot has joined #angularjs
[01:58:27] <robdubya_> my understanding is with d3, if requestAnimationFrame is available (it is) itll use that
[01:59:06] <jaawerth> if you buffer it and the signal itself trips up, the actual data readout is going to be somewhat falsified
[01:59:07] *** frickettz has joined #angularjs
[01:59:09] *** MistahKurtz has joined #angularjs
[01:59:22] <jaawerth> which may or may not be a big deal depending on how sciencey this needs to be
[01:59:33] <wafflejock> true
[01:59:41] <robdubya_> jaawerth well, its not signal strength, but maybe i'm missing your point
[01:59:47] *** screamingbanshee has quit IRC
[01:59:48] <Grokling> jaawerth, that's what I was getting at with the time index checking.
[01:59:51] *** TorchDragon has joined #angularjs
[01:59:54] <wafflejock> yeah the variation is just clock speed differences I think
[01:59:58] <wafflejock> but a timestamp would be good
[02:00:00] <Grokling> If you miss a datapoint, that can be a bad thing.
[02:00:15] <jaawerth> say the time trigger itself doesn't happen at a 100ms interval
[02:00:22] <Grokling> Only way to know would be to include some kind of index with the datapoint.
[02:00:23] <jaawerth> you don't want your app to be fudging that and saying it is
[02:00:24] <robdubya_> jaawerth which time trigger?
[02:00:30] <jaawerth> the external one
[02:00:31] *** UniBot has quit IRC
[02:00:45] <wafflejock> robdubya_: yeah what they're saying is valid
[02:00:51] <robdubya_> you mean at the capture end?
[02:00:51] *** mguillech has quit IRC
[02:00:53] *** spencercarnage has joined #angularjs
[02:00:56] <wafflejock> if it misses 300ms of transmission but shows it as 100ms delay
[02:00:57] <jaawerth> yeah
[02:01:11] <jgravois_> !help
[02:01:13] <robdubya_> AH - there's a buffer over there too
[02:01:13] <jaawerth> that's one example, yep
[02:01:14] <wafflejock> it could be showing an invalid version of what happened
[02:01:15] *** Jdubs has quit IRC
[02:01:17] <Grokling> and then you've lost 2 of your buffer points too..
[02:01:27] *** bphogan is now known as bphogan_afk
[02:01:33] <robdubya_> so here's how it works, more or less
[02:02:07] <robdubya_> clock on widget captures a data point every 100ms, pushes it to an internal buffer
[02:02:19] *** digia|away is now known as digia
[02:02:34] <robdubya_> network stack (on device) is looping, pulling from that buffer and notifying app over ble
[02:02:42] *** roobik has quit IRC
[02:03:22] <wafflejock> robdubya_: does it guarantee transmission like TCP er can it be lossy like UDP though?
[02:03:40] *** Jdubs has joined #angularjs
[02:03:45] <robdubya_> wafflejock items aren't removed from the buffer until they have transmitted
[02:03:59] *** UniBot has joined #angularjs
[02:04:17] <wafflejock> robdubya_: right but like with TCP there's a required response that it was received that has to make it back to the sender too otherwise it gets resent
[02:04:21] *** jamesbdev has quit IRC
[02:04:22] *** TorchDragon has quit IRC
[02:04:23] *** UniBot has quit IRC
[02:04:31] <robdubya_> so there is some guarantee they will all arrive, and in order, but not at any specific interval
[02:04:38] *** UniBot has joined #angularjs
[02:04:41] <wafflejock> cool yeah should be good then
[02:04:46] <robdubya_> wafflejock yes, its more or less like TCP
[02:04:55] *** UniBot has quit IRC
[02:05:00] <jaawerth> assuming you do the buffer, how are you getting the time interval for your animation?
[02:05:09] *** UniBot has joined #angularjs
[02:05:16] <jaawerth> are you triggering it yourself with an interval, or is there a d3 utility for that?
[02:05:29] *** UniBot has joined #angularjs
[02:05:35] *** tyfighter has joined #angularjs
[02:06:11] *** UniBot has quit IRC
[02:06:17] *** jdj_dk has joined #angularjs
[02:06:35] *** frickettz has quit IRC
[02:06:36] <wafflejock> jgravois_: what's up
[02:06:39] <jaawerth> ah cool
[02:06:51] <robdubya_> note that the tick function (right now) is being called *by* the external event, which is where the first problem is
[02:07:01] <jaawerth> that way you don't even need to really handle actually doing a trigger interval
[02:07:18] <jaawerth> and therefore no event loop to worry about, as long as it's cool to buffer/falsify the time signatures ;-)
[02:07:20] <wafflejock> robdubya_: yeah you can just use $timeout in a function calling itself
[02:07:22] *** D-Boy has quit IRC
[02:07:29] <robdubya_> which i think is what you mean, because i need to tell it to redraw at 100ms intervals, which might go wonky if its the event loop
[02:07:31] <jaawerth> well that's the problem, actually
[02:07:40] *** waylon999 has quit IRC
[02:07:54] *** mven_ has joined #angularjs
[02:08:14] *** waylon999 has joined #angularjs
[02:08:52] <Dan_> I just realized that Angular Services are models in the MVC sense
[02:08:52] <jaawerth> if you use $timeout or setTimeout, the event loop is going to mess around with the accuracy. A few months ago I wrote a plunk that tries to trigger a time event every 1ms and depending on who ran it, it varies from 4ms to 25ms - not sure if they were using mobile devices, but tha will also be a factor.
[02:09:01] *** juampy has quit IRC
[02:09:06] <robdubya_> so, imagine you had a static array, of 10000 datapoints, each representing a 100ms interval
[02:09:12] *** johnny has joined #angularjs
[02:09:16] <robdubya_> no external thingrs
[02:09:19] *** DrMabuse has joined #angularjs
[02:09:19] <jaawerth> when I then switched the timeout to run in a web worker, everybody who tried it got about 1ms
[02:09:33] *** chrisbirk has quit IRC
[02:09:37] *** johnny is now known as Guest7930
[02:09:56] <jaawerth> robdubya_: anyway, if you remove the whole event loop and just do 100ms durations from an array, that removes the whole problem
[02:10:17] <jaawerth> but it makes the time scale pretty questionable if you're trying to actually represent your data
[02:10:19] *** encrypt3d_fracti has quit IRC
[02:10:31] <jaawerth> that said, if there's a buffer on the other end it might not matter
[02:10:31] *** Yahkob has joined #angularjs
[02:10:32] <robdubya_> jaawerth does it though? i guess the question is, how do make d3 *redraw* at a constant 100ms?
[02:10:44] <wafflejock> jaawerth: interesting
[02:10:53] *** encrypt3d_fracti has joined #angularjs
[02:10:58] *** jdj_dk has quit IRC
[02:11:09] <jaawerth> hahaha, and that I do not know
[02:11:14] <jaawerth> I don't know how accurate CSS transitions are either
[02:11:20] *** patrickarlt has joined #angularjs
[02:11:31] <robdubya_> because if you ignore the "push" behavior, and its just a static array, what you're saying would still apply
[02:11:42] <jaawerth> yeah
[02:11:47] <robdubya_> leave it to you fuckers to spoil my fun :p
[02:11:51] <jaawerth> hahaha
[02:11:59] <wafflejock> robdubya_: yeah I think what you've got will work fine really, I would give it a shot, this kind of things is really easy in processing.js too generally if this doesn't work out
[02:12:17] <robdubya_> wafflejock talk to me about processing, i keep seeing that as i google aroud
[02:12:35] *** waylon999 has quit IRC
[02:12:36] *** AlexZanf has joined #angularjs
[02:12:38] <wafflejock> eh well have you done any android programming?
[02:12:40] <robdubya_> i may have to plug it in for the fusiony type things
[02:12:42] <wafflejock> it's really similar to that
[02:12:50] <wafflejock> sorry arduino*
[02:12:53] *** UniBot has joined #angularjs
[02:12:53] *** patrickarlt has quit IRC
[02:12:55] <wafflejock> not android
[02:13:00] *** UniBot has quit IRC
[02:13:10] <robdubya_> well, thats' what i'm doing over on the device, its a TI 8051 chipset, so its C
[02:13:13] *** UniBot has joined #angularjs
[02:13:14] <wafflejock> basically you have a setup function and a loop function
[02:13:16] *** UniBot has quit IRC
[02:13:24] <jaawerth> anyway, I'd say just do what you're doing already
[02:13:29] *** patrickarlt has joined #angularjs
[02:13:30] *** DrMabuse has quit IRC
[02:13:31] <wafflejock> you just setup a scene give it a size and a background color or whatever and tell it to be 2D or 3D
[02:13:32] *** ngoyal has quit IRC
[02:13:38] <jaawerth> you just might need to log the times and add a realistic timescale if you're actually recording the readout
[02:13:39] *** uchuff has quit IRC
[02:13:43] *** frege has joined #angularjs
[02:13:58] <jaawerth> you can correct it in the static recording, and it should be close enough while the readout is moving that the human eye won't really notice the difference
[02:14:04] *** guyz has quit IRC
[02:14:09] <wafflejock> then in the loop function you draw whatever based on the current data, it works really well with the arduino cause they both use the same sort of setup
[02:14:32] <wafflejock> they have the same serial library basically
[02:14:33] *** djam90 has quit IRC
[02:14:54] <wafflejock> so reading data into the GUI is real easy or writing stuff back to the board to control things
[02:15:03] *** encrypt3d_fracti has quit IRC
[02:15:20] <wafflejock> I haven't used it yet as Processing.js actually just the original Processing library
[02:15:20] *** bertrandk has joined #angularjs
[02:15:24] <wafflejock> but I imagine it would be just as easy
[02:15:25] <jaawerth> ooh wait wait I know how you can calibrate this
[02:16:11] <robdubya_> i should send you all sensor tags so you can play with this, its so fucking cool
[02:16:23] <jaawerth> set up a signal that runs a sign wave on a specific period
[02:16:27] <jaawerth> set the time scale to that period
[02:16:31] <jaawerth> and see if you can get it to stay still
[02:16:34] <jaawerth> BOOM
[02:16:40] *** UniBot has joined #angularjs
[02:16:41] <jaawerth> same thing you do with an oscilloscope
[02:17:10] *** patricka_ has joined #angularjs
[02:17:13] * jaawerth drops the mic
[02:17:14] *** prbc has joined #angularjs
[02:17:23] *** mchapman has quit IRC
[02:17:41] <wafflejock> with Processing you just set the frameRate(60); and it runs the loop function at that interval and the drawing functions are super easy
[02:17:58] *** patrickarlt has quit IRC
[02:18:05] <wafflejock> it's like a cartesian coordinate system and you just have methods for drawing lines or shapes or 3D objects whatever
[02:18:30] *** chrisbirk has joined #angularjs
[02:18:33] *** Jdubs has quit IRC
[02:18:48] *** night-owl has joined #angularjs
[02:19:01] *** stevvooe has quit IRC
[02:19:20] *** tyfighter has quit IRC
[02:19:27] *** bertrandk has quit IRC
[02:19:45] *** mchapman has joined #angularjs
[02:19:54] *** subnl2 has joined #angularjs
[02:20:24] *** willmarshall has joined #angularjs
[02:20:39] *** nanoyak has quit IRC
[02:20:45] *** stevvooe has joined #angularjs
[02:20:52] *** TimmyTones has joined #angularjs
[02:21:25] *** UniBot has quit IRC
[02:21:29] <davemerwin> I'm trying to get a single object with a Restangular.one call. But it keeps getting wrapped in an array.
[02:21:44] <davemerwin> Any ideas on how to get the object?
[02:21:47] *** UniBot has joined #angularjs
[02:21:52] <jaawerth> robdubya_: gotta go, but I look forward to seeing what you end up doing!
[02:22:04] <davemerwin> When I test with Postman, I get the object
[02:22:06] *** BlinkyBill has quit IRC
[02:22:15] *** chrisbirk has quit IRC
[02:22:21] *** grindmodeon has joined #angularjs
[02:22:28] <davemerwin> so confused
[02:23:02] *** nanoyak has joined #angularjs
[02:23:15] *** Wolfe_ has joined #angularjs
[02:23:29] *** FIFOd[a] has joined #angularjs
[02:24:03] *** grindmodeon has quit IRC
[02:24:49] *** one_zero has joined #angularjs
[02:25:01] <robdubya_> wafflejock i guess that's where i'm a bit lost, does processing / d3 handle the difference between the 60fps 'render' rate, and the 100ms 'data' rate?
[02:25:42] <Guest7930> Is there an IRC room for ui-router? Thanks.
[02:25:42] *** average has quit IRC
[02:25:44] *** morenoh151 has joined #angularjs
[02:25:51] <wafflejock> Guest7930: yeah generally
[02:25:56] *** frickettz has joined #angularjs
[02:25:59] *** danielpquinn has quit IRC
[02:26:17] <wafflejock> robdubya_: yeah not sure that it solves it really you still need to do the same kind of buffering but there's no concept of transitions and it's just simpler IMO
[02:26:25] *** danielpquinn has joined #angularjs
[02:26:31] *** spencercarnage has quit IRC
[02:26:37] *** UniBot has quit IRC
[02:26:57] *** cladic has quit IRC
[02:26:58] <wafflejock> robdubya_: I like your disco graph though
[02:27:14] <robdubya_> that's a direct copy and paste, too, haha
[02:27:14] *** richiebkr has quit IRC
[02:27:40] *** subnl2 has left #angularjs
[02:27:52] *** D-Boy has joined #angularjs
[02:27:54] *** FIFOd[a] has quit IRC
[02:28:15] *** phuh has quit IRC
[02:28:42] *** brownbathrobe has joined #angularjs
[02:28:44] *** linojon has joined #angularjs
[02:28:52] *** phuh has joined #angularjs
[02:29:17] *** brownbathrobe has quit IRC
[02:29:23] *** whunt has quit IRC
[02:29:29] *** kirfu has joined #angularjs
[02:29:38] <wafflejock> robdubya_: yeah I've just done a few quick line graphs like this for reading data from ultrasound sensors or photoresistors or whatever just to be able to visualize the information more easily and figure out where the sensors peak out
[02:29:49] *** Foxandxss has quit IRC
[02:29:56] <wafflejock> d3 is like voodoo to me still
[02:30:07] <wafflejock> I'm always amazed when I get it working
[02:30:11] *** UniBot has joined #angularjs
[02:30:13] *** deweydb has joined #angularjs
[02:30:13] *** Methylated1 has quit IRC
[02:30:32] *** digifiv5e has joined #angularjs
[02:30:33] <robdubya_> yeah, thats why i'm fiddling with the graphs, to help my brain visualize wtf is going on
[02:30:41] *** morenoh151 has quit IRC
[02:30:48] *** danielpquinn has quit IRC
[02:30:54] *** digifiv5e is now known as Guest59055
[02:30:55] *** lefant has quit IRC
[02:31:01] *** UniBot has quit IRC
[02:31:16] <wafflejock> robdubya_: yeah really if you've got a bit check out processing for like an hour I bet you can get something working pretty well
[02:31:20] *** slainer68 has joined #angularjs
[02:31:39] *** rabaznaz has quit IRC
[02:31:40] <robdubya_> will do, i had a brief look at couldn't work out the difference between the java? and js versions
[02:31:53] *** mguillech has joined #angularjs
[02:32:23] *** bendersalt has joined #angularjs
[02:32:23] *** helen__ has joined #angularjs
[02:32:57] *** joshontheweb has joined #angularjs
[02:33:04] <AlexZanf> hey guys, i just loaded an image from a file input, and i have the binary data, what is a good way to use that to set an img src to show the image from the binary data, not a url
[02:33:11] *** mirror has quit IRC
[02:33:12] *** oste has joined #angularjs
[02:33:53] <bendersalt> I have an API endpoint that returns an object that contains an array that contains the list of resources, with $resource can I access the internal array while getting the same result as isArray: true?
[02:34:24] *** RedOrangeZ has quit IRC
[02:34:55] *** JoshGlzBrk has quit IRC
[02:35:52] <robdubya_> wat
[02:35:55] *** Jdubs has joined #angularjs
[02:36:07] *** slainer68 has quit IRC
[02:36:12] <bendersalt> {some_array: []}
[02:36:18] <robdubya_> deweydb you wont be able to, the filters dont work on objects iirc
[02:36:22] *** mguillech has quit IRC
[02:36:31] <deweydb> so just make my own custom filter i guess?
[02:36:34] *** Xethron has quit IRC
[02:36:35] *** bencc has quit IRC
[02:36:52] <robdubya_> deweydb what does the *raw* api data look like?
[02:37:02] *** holymac has joined #angularjs
[02:37:07] <robdubya_> typically in JS, collections of things should be arrays, and single things are objects
[02:37:37] *** UniBot has joined #angularjs
[02:38:00] *** s3shs has quit IRC
[02:38:03] *** mdedetrich has joined #angularjs
[02:38:45] <robdubya_> yikes
[02:38:46] *** Guest59055 has quit IRC
[02:38:46] *** Guest59055 has joined #angularjs
[02:38:50] *** patricka_ has quit IRC
[02:38:51] <deweydb> i did not write the api lol
[02:38:59] <deweydb> i have no control over that.
[02:38:59] *** Guest59055 is now known as guyz
[02:39:16] *** krawek has quit IRC
[02:39:33] <robdubya_> and what does it represent?
[02:39:33] *** patrickarlt has joined #angularjs
[02:39:36]
<wafflejock> robdubya_: you can basically write it as a Processing sketch (what they call the code file) that directly communicates with the BLE device using http://www.processing.org/reference/libraries/serial/ then I think you could probably just pull the serial library out if you want to use processing.js to get the js version of it to embed in cordova or whatever
[02:39:46] *** UniBot has quit IRC
[02:39:51] *** nanoyak has quit IRC
[02:39:59] *** ascarter has quit IRC
[02:40:03] *** UniBot has joined #angularjs
[02:40:08] *** zfogg_ has quit IRC
[02:40:12] *** marr has quit IRC
[02:40:18] *** UniBot has quit IRC
[02:40:20] <robdubya_> wafflejock cheers. as far as i can tell, the BLE stuff isn't serial (like vanilla BT)
[02:40:30] <wafflejock> you'd need to be able to pair the device to the computer though so it just shows as a Serial port from processings perspective then when you convert to processing.js you'd have to replace where the data comes from
[02:40:30] <wafflejock> yeah
[02:40:36] <wafflejock> not sure about that
[02:40:38] *** zfogg has joined #angularjs
[02:40:39] *** in_deep_thought has quit IRC
[02:40:53] <wafflejock> only used the old school serial stuff FTDI for USB
[02:41:01] *** in_deep_thought has joined #angularjs
[02:41:06] <deweydb> robdubya_: not sure what you are asking. its a bunch of data representing an online course. it has a task list under the TASKS object, and i was trying to filter that with an input field.
[02:41:17] *** kvnm has joined #angularjs
[02:41:27] *** blueadept has quit IRC
[02:41:45] <wafflejock> deweydb: that should be okay
[02:41:47] *** Dan_ has quit IRC
[02:41:56] *** Guest7930 has quit IRC
[02:42:00] <wafflejock> deweydb: he was just saying you can't use a regular filter on an object it has to be used on an array
[02:42:09] <robdubya_> deweydb what i'm asking is, that json response, is what?
[02:42:15] <robdubya_> one course object, with tasks under it?
[02:42:20] <deweydb> yes
[02:42:21] *** bmac has joined #angularjs
[02:43:19] *** frickettz has quit IRC
[02:43:45] *** UniBot has joined #angularjs
[02:43:53] *** trave has left #angularjs
[02:44:20] *** patrickarlt has quit IRC
[02:44:34] *** bluesm has quit IRC
[02:44:49] <davek> robdubya, wait you're communicating with a BLE device directly from within a web application?
[02:44:52] *** quantax- has joined #angularjs
[02:45:33] *** jareddlc has quit IRC
[02:45:55] *** danyim has joined #angularjs
[02:45:57] *** bbrown has quit IRC
[02:46:48] <robdubya_> davek via cordova
[02:47:03] *** bphogan_afk is now known as bphogan
[02:47:19] <AlexZanf> wafflejock, thats kind of what im trying to do now, the file reader is cropme, which is an angular module to allow u to crop images, then gives me a blob, not too sure what to do with that in order to set it to the img src as a preview, any ideas?
[02:47:40] *** Jdubs_ has joined #angularjs
[02:47:45] <wafflejock> AlexZanf: not in that specific case but if you have the image data and can get it base64 encoded that should work
[02:47:51] *** frickettz has joined #angularjs
[02:47:54] *** kvnm has quit IRC
[02:48:01] *** DrMabuse has joined #angularjs
[02:48:03] *** phuh has quit IRC
[02:48:53] <robdubya_> AlexZanf iirc
[02:48:54] <robdubya_> do
[02:49:00] <AlexZanf> wafflejock, this blob is an object with various propreties, so not sure exactly which part i should encode, also any pages u can recommend that cover the base64 encoding? i tried btoa(blob) with no luck
[02:49:03] *** scrooge_mcduck has quit IRC
[02:49:14] <robdubya_> var url = window.URL.createObjectUrl(blob);
[02:49:28] *** dejanr has joined #angularjs
[02:49:44] *** cthrax has quit IRC
[02:50:33] *** danyim has quit IRC
[02:50:40] <davek> rodbuya_, oh directly with the device's BLE controller, okay.
[02:51:16] *** Jdubs has quit IRC
[02:51:26] <mkc> Does anyone want to Google Hangout and help me with something? I have no idea why the code acts the way it does. I’m using ionic and below is what is going to, but it would be easier to show.
[02:51:27] <AlexZanf> robdubya_, thanks for the suggestion, getting a error doing that though; net::ERR_UNKNOWN_URL_SCHEME
[02:51:27] <mkc> So…I have a <ion-scroll> inside <ion-slide>. On :on-scroll if scroll.top > I call a function on my scope. I know it executes because the console.log fires but nothing happens until ion-slide flips. The function being called changes a $scope.isBannerVisible that is used in the template with ng-show to animate hide/show of banner. I don't even know how to go about figuring out what is going on. The scope id seems to be same in ion-scroll and controller which hold
[02:51:28] <mkc> the ion-slide-box
[02:51:38] *** discipolo_ has quit IRC
[02:52:32] *** quantax- has joined #angularjs
[02:52:33] *** DrMabuse has quit IRC
[02:52:45] <robdubya_> davek yea, basically. also doing it in chrome (packaged) but that's still an experimental API
[02:52:59] *** grindmodeon has joined #angularjs
[02:53:33] *** zfogg has quit IRC
[02:54:16] *** night-owl2 has joined #angularjs
[02:54:24] *** vintik has quit IRC
[02:54:27] *** dejanr has quit IRC
[02:54:56] *** vintik has joined #angularjs
[02:54:59] <davemerwin> hey folks, I seem to be close, but I can't get the last part figured out. Restangular is wrapping an object in an array. It should return just the object. Any suggestions?
[02:55:21] *** charuru has joined #angularjs
[02:55:43] *** hell_razer has joined #angularjs
[02:55:48] <davek> Without extensive knowledge of restangular, do you have isArray set to true (or some iteration thereon) or are you using a query method?
[02:55:56] *** Reskp has quit IRC
[02:56:02] <davemerwin> brb
[02:56:08] *** bmac has quit IRC
[02:56:11] *** MacWinner has quit IRC
[02:56:21] *** Reskp has joined #angularjs
[02:56:50] *** hugoleodev has joined #angularjs
[02:56:55] *** danielpquinn has joined #angularjs
[02:57:19] *** elrabin has joined #angularjs
[02:57:48] *** Willow has quit IRC
[02:57:55] *** bijan has joined #angularjs
[02:58:02] <davemerwin> no, oddly enough I'm having teh opposite problem. isArray is not true
[02:58:14] *** whunt has joined #angularjs
[02:58:16] *** Willow has joined #angularjs
[02:58:30] *** bmac has joined #angularjs
[02:58:38] *** in_deep_thought has quit IRC
[02:58:53] <mkc> k…calling $digest seems to fix my issue. Is calling digest in the controller really bad?
[02:59:13] *** TimmyTones has quit IRC
[02:59:20] *** TyrfingMjolnir has joined #angularjs
[02:59:23] *** heidi has quit IRC
[02:59:24] *** vintik has quit IRC
[02:59:43] <AlexZanf> robdubya_, would u have a few min to help me out with your suggestion, please
[02:59:47] *** TimmyTones has joined #angularjs
[02:59:56] *** mmitchel_ has quit IRC
[03:00:26] *** UniBot1 has joined #angularjs
[03:00:26] *** hell_razer has quit IRC
[03:00:31] *** jdj_dk has joined #angularjs
[03:00:37] *** heidi has joined #angularjs
[03:00:40] *** TorchDragon has joined #angularjs
[03:00:42] *** holymac_ has joined #angularjs
[03:00:56] *** Nizumzen has joined #angularjs
[03:01:17] *** Reskp has quit IRC
[03:01:47] *** danielpquinn has quit IRC
[03:01:56] *** recidive has joined #angularjs
[03:02:01] *** slainer68 has joined #angularjs
[03:02:02] <wafflejock> mkc: no depends on what you're doing
[03:02:05] *** bayousoft has quit IRC
[03:02:06] *** apetro_ has joined #angularjs
[03:02:20] <wafflejock> mkc: if it's async operations outside of angular context then you need to call it to trigger the watches to update
[03:02:46] <wafflejock> mkc: typically it happens in directives or services but not strictly wrong in controllers
[03:03:05] *** tzu_chi has joined #angularjs
[03:04:02] *** TimmyTones has quit IRC
[03:04:04] *** holymac has quit IRC
[03:04:15] <robdubya_> AlexZanf gimme 5
[03:04:23] <mkc> wafflejock: I’m using an ionic delegate and it doesn’t seem to fire
[03:04:27] <AlexZanf> robdubya_, thanks
[03:04:27] *** morenoh151 has joined #angularjs
[03:04:40] *** MTGap has quit IRC
[03:04:47] <mkc> wafflejock: it doesn’t seem to call digest, is what i meant
[03:04:47] *** TorchDragon has quit IRC
[03:04:55] *** Destos has joined #angularjs
[03:05:23] *** jdj_dk has quit IRC
[03:05:37] *** holymac_ has quit IRC
[03:06:33] *** slainer68 has quit IRC
[03:07:17] <SockSorcerer> ffs
[03:07:17] *** atomical has quit IRC
[03:07:23] <SockSorcerer> just spent 2 hours trying to solve this bug
[03:07:25] <mkc> wafflejock: I guess it makes sense for it to not call digest now that i think about it. I’m still learning Angular. Lightbulb just turned on, and now I understand why things were not working the way I thought they should.
[03:07:29] <SockSorcerer> and it's all because someone did a copy/paste
[03:07:34] <SockSorcerer> and overwrote some other object/
[03:07:38] * SockSorcerer kills javascript
[03:07:49] *** Yahkob has quit IRC
[03:08:07] *** drej has quit IRC
[03:08:16] *** davemerwin has quit IRC
[03:08:17] *** boboc has quit IRC
[03:08:18] *** black_ has joined #angularjs
[03:08:35] *** BillCriswell has joined #angularjs
[03:08:39] *** black_ is now known as jdubz
[03:08:51] *** davemerwin has joined #angularjs
[03:08:53] *** Aliks_ has quit IRC
[03:09:05] <robdubya_> AlexZanf while you wait, can you make a plunker with a basic example?
[03:09:14] *** subnl has quit IRC
[03:09:20] *** Aliks_ has joined #angularjs
[03:09:28] <jdubz> what's everyone working on?
[03:09:37] *** edrocks has quit IRC
[03:09:52] *** DrMabuse has joined #angularjs
[03:10:03]
<AlexZanf> robdubya_, oh, i just made a pastebin lol, plunker might be hard since it uses crop me, but i can try if u still want it if this isnt good enough: http://pastebin.com/CumST2Gc
[03:10:34] <robdubya_> should be able to include the cropme files, assuming its browserside
[03:11:00] <AlexZanf> yep, ok ill get started on that
[03:12:04] *** joojis has joined #angularjs
[03:12:11] *** JoshGlzBrk has joined #angularjs
[03:12:26] *** rodyhadd_ has quit IRC
[03:12:39] *** Fire-Dragon-DoL has quit IRC
[03:12:44] *** spencercarnage has joined #angularjs
[03:12:46] *** waylon999 has joined #angularjs
[03:13:02] *** geoffstokes has quit IRC
[03:13:21] *** davemerwin has quit IRC
[03:13:28] *** stevvooe has quit IRC
[03:13:31] *** Bardosity has joined #angularjs
[03:13:47] *** Aliks_ has quit IRC
[03:13:51] *** richiebkr has joined #angularjs
[03:14:01] *** stevvooe has joined #angularjs
[03:14:13] *** danyim has joined #angularjs
[03:14:23] *** DrMabuse has quit IRC
[03:14:44] *** sharondio has joined #angularjs
[03:14:56] *** boneskull has joined #angularjs
[03:15:45] *** tzu_chi has quit IRC
[03:15:58] *** jdubz has quit IRC
[03:16:12] *** tzu_chi has joined #angularjs
[03:16:38] *** black_ has joined #angularjs
[03:17:04] *** geoffstokes has joined #angularjs
[03:17:42] *** cotko has quit IRC
[03:18:04] *** stevvooe has quit IRC
[03:18:54] *** whitebook has joined #angularjs
[03:19:07] *** s3shs has joined #angularjs
[03:19:35] *** Yahkob has joined #angularjs
[03:20:28] *** btyne has joined #angularjs
[03:20:29] *** holymac_ has joined #angularjs
[03:20:45] *** hell_razer has joined #angularjs
[03:20:47] <AlexZanf> robdubya_, not much luck with adding cropme to plunker
[03:20:54] *** Sakurazaki is now known as Sakurazaki|off
[03:21:08] *** cigarshark has quit IRC
[03:21:24] <AlexZanf> the package has lots of files
[03:21:31] <robdubya_> oh wait, its a cloud cropper thing?
[03:21:33] *** snurfery has quit IRC
[03:23:14] *** Asiajey has quit IRC
[03:23:19] *** r0ok has joined #angularjs
[03:23:46] *** {DV8} has joined #angularjs
[03:23:59] *** tzu_chi has quit IRC
[03:24:07] *** bphogan is now known as bphogan_afk
[03:24:28] *** jtimon has quit IRC
[03:25:34] *** fedenunez1 has joined #angularjs
[03:25:42] *** mspier is now known as mspier_off
[03:25:53] *** btyne has quit IRC
[03:26:18] *** bootsWitDaFur has joined #angularjs
[03:26:27] *** hell_razer has quit IRC
[03:27:02] *** Reskp has joined #angularjs
[03:27:13] *** bijan has quit IRC
[03:27:46] *** [n0b0dy] has quit IRC
[03:27:56] *** [n0b0dy] has joined #angularjs
[03:28:39] *** fedenunez has quit IRC
[03:29:01] *** oste has quit IRC
[03:29:12] *** tzu_chi has joined #angularjs
[03:29:47] <AlexZanf> robdubya_, still around
[03:30:22] <robdubya_> yep, am now
[03:30:38] *** heidi has quit IRC
[03:30:42] *** teddyp1cker has joined #angularjs
[03:30:48] <robdubya_> so you're at the point in the readme where you're getting a blob back on that callback, yeah?
[03:31:02] *** itsmeandrewd has quit IRC
[03:31:10] *** whunt has quit IRC
[03:33:21] *** jdowdle|afk is now known as jdowdle
[03:33:37] *** holymac_ has quit IRC
[03:33:37] *** Reskp has quit IRC
[03:33:37] *** mennea has joined #angularjs
[03:33:37] *** cthrax has joined #angularjs
[03:33:38] <AlexZanf> robdubya_, yes
[03:33:38] *** lewdev1 has quit IRC
[03:33:38] *** screamingbanshee has joined #angularjs
[03:33:38] <AlexZanf> robdubya_, i pasted the error i am getting a tthe bottom of the pastebin
[03:33:38] *** patrick99e99 has quit IRC
[03:34:09] *** helen__ has quit IRC
[03:34:16] *** cigarshark has joined #angularjs
[03:34:27] *** Robbo` has quit IRC
[03:34:30] *** Nizumzen has quit IRC
[03:34:44] *** dman777 has joined #angularjs
[03:34:45] <robdubya_> @s3shs around?
[03:34:46] *** s3shs has quit IRC
[03:34:52] *** Robbo` has joined #angularjs
[03:34:57] *** lewdev has joined #angularjs
[03:35:01] <robdubya_> you did this blob thing the other day, i think... how'd you do it?
[03:35:23] *** teddyp1cker has quit IRC
[03:35:34] *** snurfery has joined #angularjs
[03:36:13] <dman777> ng-class="{'divider' : action.hasOwnProperty('divider')}" Confused on this....I understand ng-class applies the same css properties to all elements, but how does this read?
[03:36:14] *** jamto11 has joined #angularjs
[03:36:23] *** umib0zu_ has quit IRC
[03:36:23] *** el_fuego has joined #angularjs
[03:36:50] *** mennea has quit IRC
[03:37:20] *** whiteboo_ has joined #angularjs
[03:37:43] *** shaym_ has joined #angularjs
[03:38:02] <robdubya_> AlexZanf okay, 2 things to check
[03:38:29] <AlexZanf> robdubya_, all the examples i am seeing online seem to use URL.createObjectURL, so i am thinking, what cropme gives me back, is not exactly what URL.createObjectURL needs
[03:38:36] <AlexZanf> robdubya_, ok im listening
[03:38:51] <robdubya_> AlexZanf repost your code, i just nuked the window
[03:38:53] *** wilmoore has quit IRC
[03:38:57] *** Yahkob has quit IRC
[03:39:53] *** styles has quit IRC
[03:40:04] *** whitebook has quit IRC
[03:40:24] *** dcherman has joined #angularjs
[03:40:34] *** shinnya has quit IRC
[03:41:00] *** futuredale has joined #angularjs
[03:41:53] *** panchisco has quit IRC
[03:41:54] *** TimmyTones has joined #angularjs
[03:43:03] *** screamingbanshee has quit IRC
[03:44:04] *** subsonic has quit IRC
[03:45:48] <robdubya_> also AlexZanf just be sure its not an array of blobs
[03:46:05] *** Yahkob has joined #angularjs
[03:46:06] *** night-owl2 has quit IRC
[03:46:23] *** cigarshark has quit IRC
[03:47:29] *** bmac has quit IRC
[03:47:55] *** InezK is now known as InezK_away
[03:48:06] *** davemerwin has joined #angularjs
[03:48:46] *** DrMabuse has joined #angularjs
[03:48:57] *** zfogg has joined #angularjs
[03:49:08] *** panchisco has joined #angularjs
[03:49:38] *** richiebkr has quit IRC
[03:50:28] *** johnstorey has joined #angularjs
[03:50:32] *** vintik has joined #angularjs
[03:50:32] *** dejanr has joined #angularjs
[03:51:08] *** blueadept has joined #angularjs
[03:51:16] *** wilmoore has joined #angularjs
[03:51:45] *** jordandotdev has joined #angularjs
[03:53:23] *** DrMabuse has quit IRC
[03:54:03] *** Daniel_yo has quit IRC
[03:54:03] *** s3shs has joined #angularjs
[03:55:12] *** dejanr has quit IRC
[03:55:52] *** davemerwin has quit IRC
[03:55:59] <AlexZanf> not an array it seems
[03:56:25] *** davemerwin has joined #angularjs
[03:56:53] *** wallerdev has quit IRC
[03:57:24] *** jobelenus has joined #angularjs
[03:57:43] *** danielpquinn has joined #angularjs
[03:57:53] *** richiebkr has joined #angularjs
[03:58:15] *** [n0b0dy] has quit IRC
[03:58:24] *** [n0b0dy] has joined #angularjs
[03:58:24] *** AlexZanf has quit IRC
[03:58:39] *** oste has joined #angularjs
[03:58:46] *** AlexZanf has joined #angularjs
[03:59:26] *** bertrandk has joined #angularjs
[03:59:55] *** richiebkr has quit IRC
[04:00:07] *** chrisbirk has joined #angularjs
[04:00:23] *** jonnybro has joined #angularjs
[04:00:25] *** richiebkr has joined #angularjs
[04:00:35] *** colock_ has quit IRC
[04:00:48] *** richiebkr has quit IRC
[04:01:07] *** davemerwin has quit IRC
[04:01:18] <AlexZanf> robdubya_, sorry i disconnected
[04:01:22] *** jobelenus_ has joined #angularjs
[04:01:23] <AlexZanf> did u get the pastebin?
[04:01:27] *** InezK_away is now known as InezK
[04:01:29] <AlexZanf> the updated one with the blob paste
[04:01:40] *** TorchDragon has joined #angularjs
[04:01:44] *** colock_ has joined #angularjs
[04:02:03] *** danielpquinn has quit IRC
[04:02:23] *** jkremser has quit IRC
[04:02:34] *** jobelenus has quit IRC
[04:02:35] *** jobelenus_ is now known as jobelenus
[04:03:32] <robdubya_> AlexZanf where's the unsafe coming from?
[04:03:38] <robdubya_> i wonder if that's anuglar csp kicking in
[04:03:52] <AlexZanf> robdubya_, yeah no idea
[04:04:34] *** niftylettuce_ has quit IRC
[04:04:55] <robdubya_> AlexZanf are you on latest angular?
[04:05:28] *** elrabin has quit IRC
[04:06:05] *** elrabin has joined #angularjs
[04:06:11] *** UniBot1 has quit IRC
[04:06:14] *** TorchDragon has quit IRC
[04:06:31] <AlexZanf> robdubya_, i think so
[04:08:16] *** gordroid_ has joined #angularjs
[04:08:17] *** joshontheweb has quit IRC
[04:08:59]
<dman777> http://bpaste.net/show/paxGg5lSg6ARZYWVUXlN/ 1) Should I use ng-repat to create these table values? My issue is it kind of looks like spagahtti code. 2) Since these values are static, should they go into the controller instead? I have about 3 of the scope objects and they made the controller look pretty bloated.
[04:08:59] <rigel_> this is going to be a bit of a silly question, maybe, but i havent found anything good by googling
[04:09:05] *** motionman has joined #angularjs
[04:09:14] <rigel_> is there some way to use xml instead of json? some middleware type thing?
[04:09:25] <robdubya_> AlexZanf you'll need to tell ng explicitly its OK to not inspect the url i reckon
[04:09:39] *** chrisbirk has quit IRC
[04:09:42] <AlexZanf> robdubya_, ohhh right on, ill try to look into that now
[04:10:26] *** elrabin has quit IRC
[04:10:35] <robdubya_> rigel_ in theory yes, but in practice, fuck that
[04:10:38] <oste> is it possible to create an array of $http promises?
[04:11:03] *** gordroid has quit IRC
[04:11:08] <oste> i am noticing that when i do arr.push($http(… the ajax fires rather than returning a promise
[04:11:14] *** TyrfingMjolnir has quit IRC
[04:11:53] <robdubya_> oste yep
[04:11:59] <oste> with jquery this is possible requests.push($.ajax({
[04:12:01] <robdubya_> use $q.all
[04:12:05] *** mindlace has quit IRC
[04:12:10] <AlexZanf> robdubya_, thanks a bunch, looking into it now
[04:12:10] *** TyrfingMjolnir has joined #angularjs
[04:12:23] <robdubya_> $q.all(anArrayOfPromises).then(function(arrayofResponses){ ..
[04:12:35] <oste> yes, that is what i am trying to do
[04:12:39] *** tylerjohnst has quit IRC
[04:12:39] <rigel_> robdubya_: i imagine theres lots of legacy stuff to be hooked up to more current web services...
[04:12:47] <oste> but how do i create the anArrayOfPromises?
[04:13:00] <robdubya_> rigel_ yeah, its what i do for a living, but typically i do the xml2js on the server side
[04:13:14] <robdubya_> oste presumably you have an array of things already?
[04:13:38] <oste> yeah
[04:14:32] <robdubya_> var arrayOfPromises = arrayOfThings.map(function(thing){ return doAsyncWithThing(thing); })
[04:14:38] *** cthrax has quit IRC
[04:14:40] <rigel_> robdubya_: what FOSS tools should i be looking for to do that conversion server side? i tried one package that choked on my file for some reason and didnt give me any other output.
[04:14:44] *** jobelenus_ has joined #angularjs
[04:14:45] <robdubya_> $q.all(arrayOfPromises).then(...
[04:14:47] *** jobelenus has quit IRC
[04:14:48] *** jobelenus_ is now known as jobelenus
[04:14:49] *** teeray has joined #angularjs
[04:14:50] *** whunt has joined #angularjs
[04:14:58] *** cthrax has joined #angularjs
[04:15:10] <robdubya_> rigel_ depends on the server language i guess. in node, i either use xml2js, or a custom stream parser i wrote
[04:15:15] *** Sky[x] has quit IRC
[04:15:20] *** diffkid has quit IRC
[04:15:57] *** conan_the_destro has quit IRC
[04:16:22] *** Left_Turn has quit IRC
[04:17:22] *** bertrandk has quit IRC
[04:17:40] *** mercwithamouth has joined #angularjs
[04:17:45] *** bertrandk has joined #angularjs
[04:17:55] <oste> this seems a lot easier arr.push($http(
[04:18:05] <oste> then you can chunk the array if needed too
[04:18:42] *** Hackwar has joined #angularjs
[04:19:19] <robdubya_> map + promises = awesomesauce
[04:20:06] *** Hackwar1 has quit IRC
[04:20:10] *** whiteboo_ has quit IRC
[04:20:38] *** whitebook has joined #angularjs
[04:21:19] *** InezK is now known as InezK_away
[04:22:11] <oste> so basically you can’t use $http w/o it firing off..
[04:22:38] <robdubya_> that's correct
[04:22:39] *** styles has joined #angularjs
[04:22:39] *** styles has joined #angularjs
[04:22:47] *** jobelenus has quit IRC
[04:22:51] *** jobelenus_ has joined #angularjs
[04:23:04] *** apetro_ has quit IRC
[04:23:14] <oste> $ajax to the rescue
[04:23:32] <robdubya_> bleh.
[04:23:33] *** kirfu has quit IRC
[04:23:49] <robdubya_> are you concerned about # of concurrent requests, or what?
[04:23:55] <oste> yep thats it
[04:24:04] <oste> trying to keep 5 max requests
[04:24:07] <blackkbot> the browser handles that i thought
[04:24:26] <robdubya_> thought it did too, but i think its > 5
[04:24:45] <blackkbot> i know firefox does
[04:24:57] *** josh-k has joined #angularjs
[04:25:00] <oste> its a recursive thing too
[04:25:08] <oste> one request causes more
[04:25:31] <oste> so i dont wan to have just 1 at a time
[04:25:43] <oste> and i can’t have them all going off
[04:25:57] <robdubya_> oste are you doing something relationy?
[04:26:08] <robdubya_> eg, fetch all the foos, and then fetch each foo's bars?
[04:26:25] <oste> something like that
[04:26:54] <robdubya_> like blackkbot said, the browser handles max connections, assuming your server side isn't pathetic
[04:27:10] <blackkbot> how about you make an array of functions taht create promises and at the end of their then you add arrayOfFunctions.shift()()
[04:27:23] <black_> chain the promises
[04:27:40] *** bayousoft has joined #angularjs
[04:27:42] <oste> hrm, that might be something
[04:27:45] <robdubya_> typically i'd do the "sub" fetch chained after the "parent" response
[04:27:48] <black_> break the ajax requests into evenly divided segments
[04:27:52] *** Reskp has joined #angularjs
[04:27:53] *** josh-k_ has quit IRC
[04:27:55] <oste> array of functions that return $http?
[04:28:04] *** s3shs has quit IRC
[04:29:07] <blackkbot> no more like a stack of functions that start the handling of the $http and once one resolves it takes the next one off the array and runs it
[04:29:24] *** josh-k has quit IRC
[04:30:27] <oste> yeah, i currently have something like that
[04:30:35] <oste> that gives me 1 at a time
[04:30:40] <blackkbot> and then you call the first 5
[04:30:47] <black_> what is it?
[04:30:51] *** mindlace has joined #angularjs
[04:30:51] <black_> CRUD requests?
[04:30:57] <blackkbot> you pop 5 off to start and it would only run 5 at a time
[04:31:09] <blackkbot> comprende?
[04:31:28] *** apetro_ has joined #angularjs
[04:31:55] *** apetro_ has quit IRC
[04:32:04] <robdubya_> i still think your 5 concurrent number is arbitrary and unnecessary
[04:32:04] *** nanoyak has joined #angularjs
[04:32:07] *** richiebkr has joined #angularjs
[04:32:12] <oste> yeah it is
[04:32:14] <oste> could be 10
[04:32:25] *** whitebook has quit IRC
[04:32:27] <black_> regarding the connections, it would be inherently inefficient to perform individual http requests
[04:32:28] *** apetro_ has joined #angularjs
[04:32:29] <blackkbot> i think the browser is designed to handle requests to the same domain
[04:32:29] <oste> but i have no idea to control that with the browser or server
[04:32:31] *** Reskp has quit IRC
[04:32:34] *** richiebkr has quit IRC
[04:32:42] <robdubya_> you dont need to control it, thats what i'm saying, yo
[04:32:45] *** mennea has joined #angularjs
[04:32:47] <black_> when you could build something that creates a reasonable sized request
[04:32:47] *** nanoyak has quit IRC
[04:32:50] *** tzu_chi has quit IRC
[04:33:09] <black_> the browser will limit concurrent connections, but for performance reasons across the board
[04:33:20] *** nanoyak has joined #angularjs
[04:33:22] *** mguillech has joined #angularjs
[04:33:37] <black_> both client and server side
[04:33:43] *** stirlingw has joined #angularjs
[04:33:44] <robdubya_> so if we ignore the number 5 for a seocnd, oste, do you just care when they're all done?
[04:34:00] <oste> no, i care that 500 are not firing at once
[04:34:08] <blackkbot> hmmm 500 is a lot
[04:34:21] <black_> 500 what?
[04:34:29] <blackkbot> different requests to the same url?
[04:34:39] <black_> what are the requests for?
[04:34:48] *** holymac has joined #angularjs
[04:35:06] <robdubya_> but if you start 500 requests, the browser isnt going to execute all 500 at once
[04:35:06] *** jonnybro has quit IRC
[04:35:06] <oste> think about a large category tree
[04:35:11] <oste> 15,000 categories
[04:35:21] *** jonnybro has joined #angularjs
[04:35:25] <blackkbot> robdubya_ they might tho
[04:35:31] *** stirling_ has joined #angularjs
[04:35:45] <oste> that is taxing on a server...
[04:35:51] <blackkbot> thats what im saying too
[04:35:54] <oste> not trying to break things here haha
[04:36:05] <black_> could you briefly explain the problem again?
[04:36:14] <blackkbot> you need to rethink the server client connection
[04:36:19] *** apetro__ has joined #angularjs
[04:36:25] <oste> i have the top level category
[04:36:33] <oste> i do an ajax request to get its children
[04:36:37] *** bertrandk has quit IRC
[04:36:40] <oste> now i have 300 children that need the same process
[04:36:49] *** linojon has quit IRC
[04:36:55] <oste> but i want to just do 5 at a time
[04:36:55] <blackkbot> why can't that request send those 300 on their selection?
[04:37:03] *** apetro_ has quit IRC
[04:37:03] <kemm0> anyone here ever use elastic search?
[04:37:07] <oste> too much processing...
[04:37:20] *** zfogg has quit IRC
[04:37:27] <blackkbot> 300 items on 1 page is too much for me to process
[04:37:44] <oste> lol - yeah this is like server side type stuff i guess
[04:37:47] *** mennea has quit IRC
[04:37:53] <oste> trying to use javascript to do things easier
[04:38:02] <blackkbot> and break your server
[04:38:07] *** stirlingw has quit IRC
[04:38:12] *** mguillech has quit IRC
[04:38:27] <black_> if you're sorting large datasets
[04:38:33] <black_> there are libraries for that
[04:38:57] *** snurfery has quit IRC
[04:39:02] *** whunt has quit IRC
[04:39:23] *** whunt has joined #angularjs
[04:39:29] <kemm0> lodash is a good one
[04:39:34] <kemm0> for working with large data
[04:39:34] *** lil has joined #angularjs
[04:39:42] *** VarunNambiar has joined #angularjs
[04:39:48] <kemm0> i use it for everything
[04:39:48] *** jonnybro1 has joined #angularjs
[04:39:58] <blackkbot> lodash isn't bad its pretty performant
[04:40:17] *** lil has quit IRC
[04:40:18] *** davesidious_ has joined #angularjs
[04:40:18] <kemm0> i think it's rad and adds a certain element of readability to yoru code
[04:40:22] <kemm0> it's very verbose
[04:40:35] <robdubya_> vs array.map/reduce, meh
[04:41:02] <kemm0> whats up rob
[04:41:13] <robdubya_> that's a simialr idea to what i suggested first, but you'd have to graft the promise.some method in
[04:41:20] <robdubya_> i've done that somewehre, can't track it down at the moment
[04:41:55] <kemm0> don't listen to him kids ^^ this man has never written a line of code a day in his life
[04:41:56] *** lw has joined #angularjs
[04:41:57] *** jonnybro has quit IRC
[04:42:12] *** davesidious has quit IRC
[04:42:12] <blackkbot> ive seen it
[04:42:13] *** kemm0 is now known as BobbieBarker
[04:42:26] *** lw has quit IRC
[04:42:30] *** phrozensilver has joined #angularjs
[04:42:41] *** vbabiy has quit IRC
[04:42:42] <robdubya_> BobbieBarker its true, i'm a total faker
[04:42:46] *** jharbaugh has quit IRC
[04:42:50]
<phrozensilver> I'm having some trouble with mongoose/ mongodb trying to send data to my api, heres the data I want to send and the angular js controller - https://gist.github.com/rdallaire/241dd48262ec856620c1 - I am wondering if I just have my schema set up wrong?
[04:42:54] *** jonnybro has joined #angularjs
[04:42:54] <BobbieBarker> i know and it's time to come clean man you can't live like this
[04:43:01] <phrozensilver> not sure if this is the right room either
[04:43:18] *** vbabiy has joined #angularjs
[04:43:20] *** richiebkr has joined #angularjs
[04:43:25] *** jharbaugh has joined #angularjs
[04:43:26] *** bertrandk has joined #angularjs
[04:43:29] *** lw has joined #angularjs
[04:43:34] *** lw has quit IRC
[04:43:59] *** cthrax has quit IRC
[04:44:10] *** lw has joined #angularjs
[04:44:26] *** lw has quit IRC
[04:44:30] *** jonnybro1 has quit IRC
[04:44:34] *** InezK_away is now known as InezK
[04:44:46] *** nagappan has quit IRC
[04:45:08] *** lw has joined #angularjs
[04:45:20] *** nagappan has joined #angularjs
[04:45:23] *** lw has quit IRC
[04:45:30] <robdubya_> gross, you could wrap it in a service and pass in the data
[04:46:11] *** lw has joined #angularjs
[04:46:15] *** spencercarnage has quit IRC
[04:46:19] *** lw has quit IRC
[04:46:22] <BobbieBarker> dman777 you could put it in the directive's controller
[04:46:34] <BobbieBarker> nvm
[04:46:52] *** teeray has quit IRC
[04:47:01] *** lw has joined #angularjs
[04:47:33] *** jharbaugh has quit IRC
[04:47:39] *** zumba_addict has joined #angularjs
[04:47:45] <BobbieBarker> i guess it looks ok, but rob is right you could put it into a service
[04:47:45] *** yowmamasita has joined #angularjs
[04:47:48] *** lw has quit IRC
[04:47:51] <yowmamasita> hi guys
[04:47:57] <BobbieBarker> hi yowmanisita
[04:47:58] *** richiebkr has quit IRC
[04:48:07] *** jharbaugh has joined #angularjs
[04:48:13] <BobbieBarker> hey does anyone in here have any experience using elastic search ++ angularJS?
[04:48:17] <yowmamasita> Hi BobbieBarker
[04:48:35] *** jdj_dk has joined #angularjs
[04:48:38] *** lw has joined #angularjs
[04:48:41] *** kamanato has joined #angularjs
[04:48:45] <robdubya_> yowmamasita what do you mean "link the scopes"
[04:48:46] <zumba_addict> Thank you so much jaawerth for the code. I opened an issue in Restangular 4 hours ago and asked them if they can recreate a request similar to $http.get with a payload. No one has responded yet.
[04:48:49] <dman777> robdubya_: BobbieBarker.... I see I can place the function in a service ...but why would I place the scope.actions data in a service instead?
[04:48:51] <BobbieBarker> yowmamasita first ofa ll you're name is terrible
[04:48:52] *** drej has joined #angularjs
[04:48:54] *** whunt has quit IRC
[04:48:59] *** jharbaugh has quit IRC
[04:49:02] *** lw has quit IRC
[04:49:03] <BobbieBarker> too much typing
[04:49:04] <BobbieBarker> second of all
[04:49:08] <yowmamasita> BobbieBarker: :(
[04:49:08] <BobbieBarker> you can use a heirarchy
[04:49:13] <yowmamasita> just type yow<tab>
[04:49:16] *** bmac has joined #angularjs
[04:49:26] <BobbieBarker> lol
[04:49:31] *** DrMabuse has joined #angularjs
[04:49:34] *** jharbaugh has joined #angularjs
[04:49:37] <BobbieBarker> also it's important to note that the "templates" don't have a scope
[04:49:48] <BobbieBarker> but i think what you awnt to be able to do is kind of allow the controllers to communicate?
[04:49:51] *** lw has joined #angularjs
[04:50:20]
<yowmamasita> robdubya_: see this http://pastebin.com/gTEN6jyj i am using registrCtrl on all templates but i can reuse my $scope when i change the template
[04:50:25] <yowmamasita> BobbieBarker: ^^
[04:50:26] <robdubya_> dman777 whatever way you're doing it, you should remap or whatever the hell youre doing to that data before it gets anywhere near the directive
[04:50:27] <yowmamasita> yup
[04:50:32] *** lw has quit IRC
[04:50:45] <yowmamasita> can't **
[04:50:59] <robdubya_> yowmamasita so the controller is going to get destroyed each time you route
[04:51:03] <robdubya_> (and with it, its scope)
[04:51:10] <BobbieBarker> that too ^
[04:51:14] *** dejanr has joined #angularjs
[04:51:15] <robdubya_> you should store *data* that needs to be shared in a service
[04:51:23] <yowmamasita> ohhhh
[04:51:26] *** nanoyak has quit IRC
[04:51:35] <yowmamasita> so a service :)
[04:51:37] *** holymac has quit IRC
[04:51:37] *** lw has joined #angularjs
[04:51:48] *** lw has quit IRC
[04:52:13] <yowmamasita> robdubya_: so i make a service to store my reg data and the data there should be preserved?
[04:52:30] <yowmamasita> thanks robdubya_ BobbieBarker
[04:52:38] *** lw has joined #angularjs
[04:52:58] *** lw has quit IRC
[04:53:03] *** holymac has joined #angularjs
[04:53:07] *** jdj_dk has quit IRC
[04:53:15] *** ericbarnes has quit IRC
[04:53:18] *** zfogg has joined #angularjs
[04:53:23] *** kamanato has quit IRC
[04:53:29] <dman777> robdubya_: ok...So place in a service and not in the controller, correct? I ask this because it is static data
[04:53:49] *** lw has joined #angularjs
[04:54:03] *** DrMabuse has quit IRC
[04:54:03] *** emps has quit IRC
[04:54:08] *** lw has quit IRC
[04:54:09] *** jharbaugh has quit IRC
[04:54:36] <BobbieBarker> you know you could probably rewrite that to be a lot more angular
[04:54:57] *** lw has joined #angularjs
[04:55:00] <BobbieBarker> and a lot more concise
[04:55:07] <BobbieBarker> by using element.text and element.add class
[04:55:16] <BobbieBarker> and give the directive an html template
[04:55:21] *** bertrandk has quit IRC
[04:55:26] *** lw has quit IRC
[04:55:32] <BobbieBarker> and make it into an actual directive instead of a repository for you to dump shit out with ng-repeat
[04:56:08] *** lw has joined #angularjs
[04:56:23] *** dejanr has quit IRC
[04:56:39] *** night-owl2 has joined #angularjs
[04:56:44] <yowmamasita> robdubya_: by storing it in a service, do you mean i have to $http.post it in an endpoint?
[04:56:47] <yowmamasita> sorry
[04:56:56] *** AlexZanf has quit IRC
[04:57:08] <BobbieBarker> possibly break that down into like 3 or 4 directives instead of 1 mega directive
[04:57:16] *** lw has quit IRC
[04:57:17] *** Destos has quit IRC
[04:57:18] *** AlexZanf has joined #angularjs
[04:57:52] <BobbieBarker> dman777: the last 8 things i said where for you
[04:57:52] *** holymac has quit IRC
[04:58:10] <dman777> BobbieBarker: ya, that is what I am trying to do...improve my conventions. Cool! studying what you said...
[04:58:22] *** lw has joined #angularjs
[04:58:31] *** danielpquinn has joined #angularjs
[04:59:01] *** lw has quit IRC
[04:59:09] *** Stampy has joined #angularjs
[04:59:47] *** black_ has quit IRC
[04:59:58] *** lw has joined #angularjs
[05:00:20] *** Shrooms has quit IRC
[05:00:22] <BobbieBarker> just gonna go ahead and ask again but does anyone have any experience with elasticsearch and angularJS? I don't need any help mostly want to know your opinion
[05:00:25] <BobbieBarker> or your experience
[05:00:33] *** lw has quit IRC
[05:01:07] <dman777> BobbieBarker: from client perspective I have used elasticsearch but not with angular.js.
[05:01:10] *** TyrfingMjolnir has quit IRC
[05:01:20] <dman777> BobbieBarker: I hated it...I am more of a classic normal api kind of guy
[05:01:26] <BobbieBarker> oh?
[05:01:32] <BobbieBarker> how does it work etc? I'm researching atm
[05:01:32] *** Olsonfold has quit IRC
[05:02:14] <dman777> BobbieBarker: I hate it because it makes the user do more work in the queries rather than the web server programmer just making a normal api to do the same thing.
[05:02:14] <robdubya_> yowmamasita no, i mean in an angular service
[05:02:30] *** TorchDragon has joined #angularjs
[05:02:57] *** TyrfingMjolnir has joined #angularjs
[05:03:03] <BobbieBarker> how does it make the user do more work?
[05:03:03] *** danielpquinn has quit IRC
[05:03:04] <dman777> BobbieBarker: nothing magical about it like it sounds...the user is still restrected in the queries to what the web server will offer...in otherwards, it doesn't extend any functionality. none that would be there with just a normal api.
[05:03:10] *** Silne30 has joined #angularjs
[05:03:17] *** Reskp has joined #angularjs
[05:03:20] *** BillCriswell has quit IRC
[05:03:20] *** Stampy has quit IRC
[05:03:21] <yowmamasita> robdubya_: got it, thanks man
[05:03:40] *** Olsonfold has joined #angularjs
[05:03:45] <yowmamasita> robdubya_: another thing is im doing ng-model stuff on my templates
[05:03:49] *** lw has joined #angularjs
[05:03:54] <yowmamasita> so do i need to $watch those now?
[05:03:55] *** BillCriswell has joined #angularjs
[05:04:04] *** TorchDragon has quit IRC
[05:04:09] <BobbieBarker> try to avoid using $watch
[05:04:18] *** lw has quit IRC
[05:04:20] <BobbieBarker> use ng-change or @ binding instead if appropriate
[05:04:21] *** TorchDragon has joined #angularjs
[05:04:46] <yowmamasita> hmm i think im getting it
[05:04:59] <BobbieBarker> dman777: users have to use those keywords to get it to work?
[05:05:04] <BobbieBarker> so like the user has to learn how to use the search feature?
[05:05:05] *** TyrfingMjolnir has quit IRC
[05:05:09] *** lw has joined #angularjs
[05:05:19] *** Andrew_S has joined #angularjs
[05:05:35] *** enaqx has joined #angularjs
[05:05:56] <dman777> BobbieBarker: ya, big learning curve and also it's only the keywords that the webserver programmer writes. not like elastic search extends it and implements the search keywords
[05:06:58] *** Tidwell has quit IRC
[05:07:20] *** night-owl2 has quit IRC
[05:07:24] *** Tidwell has joined #angularjs
[05:07:38] *** Andrew_S has quit IRC
[05:07:39] *** Reskp has quit IRC
[05:07:46] *** Silne30 has quit IRC
[05:07:51] *** waylon999 has quit IRC
[05:08:06] *** BillCriswell has quit IRC
[05:08:22] *** lw_ has joined #angularjs
[05:08:25] *** waylon999 has joined #angularjs
[05:08:29] *** ascarter has joined #angularjs
[05:08:34] *** TorchDragon has quit IRC
[05:08:36] <dman777> BobbieBarker: when you say give the directive a html template...I am currently returning templateUrl: 'vips/directives/actionButton.html'. Did you mean templateUrl: function (elem, attrs) {} ?
[05:08:41] *** lw_ has quit IRC
[05:08:43] *** lw has quit IRC
[05:08:58] *** [n0b0dy] has quit IRC
[05:09:08] <BobbieBarker> dman777: when i said that i had missed where you where using a template up top so that was an oversight on my part
[05:09:09] *** [n0b0dy] has joined #angularjs
[05:09:09] <BobbieBarker> sorry
[05:09:23] *** lw has joined #angularjs
[05:09:25] *** Andrew_S has joined #angularjs
[05:09:36] *** Shrooms has joined #angularjs
[05:10:12] *** lw has quit IRC
[05:10:19] <dman777> BobbieBarker: no problem :)
[05:10:56] *** lw has joined #angularjs
[05:11:32] *** DrMabuse has joined #angularjs
[05:11:43] *** lw has quit IRC
[05:11:44] *** bjr217 has quit IRC
[05:12:25] *** lw has joined #angularjs
[05:12:42] *** MacWinner has joined #angularjs
[05:13:04] *** panchisco has quit IRC
[05:13:11] *** waylon999 has quit IRC
[05:13:23] *** lw has joined #angularjs
[05:13:41] *** lw has quit IRC
[05:13:56] *** Shrooms has quit IRC
[05:14:13] *** jonr22 has joined #angularjs
[05:14:15] *** InezK is now known as InezK_away
[05:14:23] *** lw has joined #angularjs
[05:14:36] *** lw has quit IRC
[05:15:14] *** lw has joined #angularjs
[05:15:24] *** stirling_ has quit IRC
[05:15:43] *** encrypt3d_fracti has joined #angularjs
[05:15:51] *** lw has quit IRC
[05:15:59] *** stirlingw has joined #angularjs
[05:16:09] *** DrMabuse has quit IRC
[05:16:37] *** lw has joined #angularjs
[05:16:55] *** plantian has joined #angularjs
[05:17:04] *** lw has quit IRC
[05:17:10] *** stirling_ has joined #angularjs
[05:17:40] *** lw has joined #angularjs
[05:17:48] <plantian> hi guys, does anyone here happen to be using cordova ionic angularjs with phonegap to build an app and then using the remote debugger ? does opening and closing your app create multiple webviews?
[05:18:05] *** lw has quit IRC
[05:18:05] <plantian> *and the ui-router
[05:18:11] <robdubya_> nope, it does not
[05:18:36] <plantian> robdubya_: Do you have any idea what would cause that?
[05:18:52] *** lw has joined #angularjs
[05:19:06] <plantian> I can login and then leave and then return and I'm in a different view and not logged in. Then I hit back and it moves me into the other web view and I'm still logged in there.
[05:19:07] <robdubya_> not really, other than maybe an external link
[05:19:11] *** lw has quit IRC
[05:19:27] *** phrozensilver has quit IRC
[05:19:31] <plantian> I return by just opening the app again by clicking on its icon.
[05:19:46] *** jonr22 has quit IRC
[05:19:49] *** lw has joined #angularjs
[05:19:56] <robdubya_> iOS or android?
[05:20:07] *** lw has quit IRC
[05:20:20] *** stirlingw has quit IRC
[05:20:47] <plantian> Android, galaxy S3 with Android 4.4.2.
[05:21:05] *** lw has joined #angularjs
[05:21:19] *** lw has quit IRC
[05:21:31] <plantian> cordova 3.5.0-0.2.6
[05:21:40] <robdubya_> strange
[05:22:05] *** lw has joined #angularjs
[05:23:01] *** knownasilya has quit IRC
[05:23:33] *** lw has quit IRC
[05:24:05] <dman777> when making a service just to store model data, should I use factory()?
[05:24:19] *** lw has joined #angularjs
[05:24:26] *** stirling_ has quit IRC
[05:24:45] *** Wolfe_ has quit IRC
[05:25:01] *** stirlingw has joined #angularjs
[05:25:07] <plantian> robdubya_: Actually maybe its not a web view. I have two things to inspect under the same app though. Does that make sense ?
[05:25:34] <robdubya_> can you screenshot what you mean?
[05:25:37] *** lw has quit IRC
[05:26:24] *** dcherman has quit IRC
[05:26:41] *** lw has joined #angularjs
[05:26:49] *** tplaner has quit IRC
[05:27:03] *** lw has quit IRC
[05:27:10] *** metasansana has joined #angularjs
[05:27:38] *** Anbarasi has joined #angularjs
[05:28:13] *** lw has joined #angularjs
[05:28:15] *** bertrandk has joined #angularjs
[05:28:18] *** tplaner has joined #angularjs
[05:28:22] <Anbarasi> Hi all!
[05:28:26] *** waylon999 has joined #angularjs
[05:28:32] *** steffengy has quit IRC
[05:28:32] *** steffengy1 has joined #angularjs
[05:28:34] *** stayarrr has joined #angularjs
[05:28:40] <Anbarasi> Need some help here with an IE issue..
[05:28:50] *** lw has quit IRC
[05:28:53] <Anbarasi> Anybody else faced this?
[05:29:17] *** cthrax has joined #angularjs
[05:29:22] *** stirlingw has quit IRC
[05:29:44] *** lw has joined #angularjs
[05:30:03] *** lw has quit IRC
[05:30:14] *** patrick99e99 has joined #angularjs
[05:30:20] *** johnstorey has quit IRC
[05:30:32] <caitp> you should file a bug on restangular, maybe their people can help you with that
[05:30:47] *** drej has quit IRC
[05:30:49] *** lw has joined #angularjs
[05:30:59] *** davemerwin has joined #angularjs
[05:31:14] <Anbarasi> Hmm.. I guess..
[05:31:39] <robdubya_> plantian wow, nope
[05:31:40] *** teddyp1cker has joined #angularjs
[05:32:01] <plantian> robdubya_: that is weird right ?
[05:32:24] *** bmac has quit IRC
[05:32:33] <Anbarasi> Been struggling with this for long....
[05:32:41] <robdubya_> seems weird to me, i've yet to see that, and today i've probably done what you described about 500 times
[05:32:42] *** waylon999 has quit IRC
[05:32:43] *** the-erm has quit IRC
[05:32:59] <caitp> LIMITED EDITION POCKET GIRAFFE SHIRT
[05:33:07] <caitp> i mean, what am I looking at
[05:33:28] *** SomeKittens has quit IRC
[05:33:34] *** mennea has joined #angularjs
[05:33:35] *** stirlingw has joined #angularjs
[05:33:56] *** Tidwell has quit IRC
[05:34:25] *** the-erm has joined #angularjs
[05:34:34] *** jgravois_ has quit IRC
[05:34:58] *** patrick99e99 has quit IRC
[05:35:00] <robdubya_> plantian i have no idea how you'd do that, even you if you wanted that behavior
[05:35:09] *** jgravois has joined #angularjs
[05:35:11] <robdubya_> might ask in #ionic, they debug hard over there
[05:35:40] *** armno has joined #angularjs
[05:35:44] *** davemerw_ has joined #angularjs
[05:35:45] *** BillCriswell has joined #angularjs
[05:36:00] *** teddyp1cker has quit IRC
[05:36:58] *** jobelenus_ has quit IRC
[05:37:21] *** davemerwin has quit IRC
[05:38:23] *** mennea has quit IRC
[05:38:58] *** waylon999 has joined #angularjs
[05:39:20] *** BillCriswell has quit IRC
[05:39:33] *** jgravois has quit IRC
[05:41:06] *** Tidwell has joined #angularjs
[05:43:12] *** emps has joined #angularjs
[05:43:31] *** stirlingw has quit IRC
[05:43:32] *** waylon999 has quit IRC
[05:44:05] *** stirlingw has joined #angularjs
[05:45:34] *** calumet has quit IRC
[05:46:40] <dman777> anyone use angular-ui bootstrap's modal in a directive? mine will work inside a controller but not in a directive
[05:48:10] *** jdj_dk has joined #angularjs
[05:48:14] *** lw has quit IRC
[05:48:23] *** stirlingw has quit IRC
[05:48:51] *** lw has joined #angularjs
[05:48:54] *** Siecje1 has left #angularjs
[05:48:56] *** UniBot has quit IRC
[05:49:16] *** jae has joined #angularjs
[05:49:18] *** Anbarasi has quit IRC
[05:49:24] *** tplaner has quit IRC
[05:49:26] <caitp> what the heck is that on lines 10 through 17?
[05:49:26] *** lw has quit IRC
[05:49:33] <caitp> what are you expecting to do with that lol
[05:49:38] *** jamto11 has quit IRC
[05:49:39] <caitp> it's not a method in the directive
[05:50:01] *** patrick99e99 has joined #angularjs
[05:50:09] *** negval has quit IRC
[05:50:13] *** lw has joined #angularjs
[05:50:16] *** DrMabuse has joined #angularjs
[05:50:58] *** Seus has quit IRC
[05:51:00] *** joshontheweb has joined #angularjs
[05:51:14] *** DrJae has quit IRC
[05:51:40] *** SomeKittens has joined #angularjs
[05:51:42] <dman777> caitp: ah...should it go inside the link function as a normal function?
[05:52:05] *** dejanr has joined #angularjs
[05:52:10] <caitp> yes, or even just a function within the directive factory
[05:52:52] *** jdj_dk has quit IRC
[05:53:30] *** yowmamasita has quit IRC
[05:53:39] *** jdj_dk has joined #angularjs
[05:54:34] *** DrMabuse has quit IRC
[05:55:04] *** vintik has quit IRC
[05:55:38] *** vintik has joined #angularjs
[05:56:21] <dman777> caitp: they were when all this was in the controller
[05:56:32] *** dejanr has quit IRC
[05:56:46] <caitp> you need to pass the scope to $modal.open
[05:56:58] <caitp> or else it will use a child of rootScope
[05:57:27] *** Mouzi has joined #angularjs
[05:57:31] <dman777> caitp: ah!
[05:58:02] <caitp> it will use a child of the scope you pass into it thoguh too, so you need to be careful if you're doing 2-way data binding
[05:58:03] *** night-owl has quit IRC
[05:58:10] *** jdj_dk has quit IRC
[05:58:12] <caitp> make sure your models have a dot in them as misko says
[05:59:01] *** bootsWitDaFur has quit IRC
[05:59:14] *** danielpquinn has joined #angularjs
[05:59:46] <dman777> caitp: I am using the databinding from scope: { 'actions' : "=" }. Does this mean I need to move the function into the link function?
[06:00:06] *** vintik has quit IRC
[06:00:36] <caitp> what
[06:01:13] <caitp> you can put the function in the link closure, or just in the factory closure, it doesn't matter
[06:01:30] <BahamutWC> he put the function in the directive itself it looks like
[06:01:36] <dman777> <div action-button actions="actions" icon="glyphicon glyphicon-cog" action-type="vips" class="pull-right"></div>...I am using scope: { 'actions' : "=" } to get $scope.actions from the controller
[06:01:50] <BahamutWC> but what you could do is do openAddVipModal = function ($scope) { ... }
[06:02:13] <BahamutWC> and then in the linking function you can do return openAddVipModal(scope)
[06:02:25] <caitp> what I mean by "2 way binding" is, if you want the modal to be able to change data in the directive scope
[06:02:32] <caitp> totally unrelated to the isolate scope
[06:02:40] *** jgravois has joined #angularjs
[06:03:00] <BahamutWC> the two way binding issue caitp is talking about has to do with scope inheritance and how it works in angular dman777
[06:03:29] <plantian> robdubya_: Okay, thanks I'll check that out.
[06:03:36] <BahamutWC> if you're using a key of an object, you can take advantage of equality by reference through inherited $scopes
[06:03:47] *** night-owl2 has joined #angularjs
[06:03:51] <BahamutWC> when using ng-model (or anything else)
[06:04:01] *** danielpquinn has quit IRC
[06:04:43] *** jamilbk has joined #angularjs
[06:04:46] *** JohnBat26 has joined #angularjs
[06:04:57] *** TorchDragon has joined #angularjs
[06:06:07] *** Yahkob has quit IRC
[06:06:57] *** jgravois has quit IRC
[06:06:57] *** watsonkp has quit IRC
[06:07:26] <dman777> oh wait...need to give a scope object to modal also
[06:07:30] <dman777> i mean key
[06:08:41] <dman777> naw, still no success
[06:09:03] *** TorchDragon has quit IRC
[06:09:10] *** [n0b0dy] has quit IRC
[06:09:21] *** [n0b0dy] has joined #angularjs
[06:09:34] <caitp> well you still aren't passing the scope to the modal
[06:09:40] <caitp> i forget the syntax bootstrap uses for that
[06:09:40] *** sneakertack has joined #angularjs
[06:09:44] <caitp> either scope or $scope
[06:09:48] <BahamutWC> think it's scope
[06:10:02] <caitp> so it is
[06:10:10] <BahamutWC> yep
[06:10:53] *** blueadept has quit IRC
[06:11:11] *** hell_razer has joined #angularjs
[06:11:25] *** InezK_away is now known as InezK
[06:11:54] <BahamutWC> what's your modal template and controller?
[06:11:56] *** hell_razer has quit IRC
[06:11:59] *** bootsWitDaFur has joined #angularjs
[06:12:02] *** blueadept has joined #angularjs
[06:12:22] *** DrMabuse has joined #angularjs
[06:12:49] *** encrypt3d_fracti has quit IRC
[06:13:19] <caitp> er
[06:13:25] *** encrypt3d_fracti has joined #angularjs
[06:13:42] <caitp> first off
[06:13:48] <caitp> you aren't passing the scope to that function
[06:13:52] <caitp> well, you are in one place
[06:13:56] <caitp> but not the others
[06:14:30] *** VarunNambiar has quit IRC
[06:14:33] <caitp> one thing I don't get is why you have three different modes for this one directive, 3 directives seems simpler
[06:14:41] *** mdedetrich has quit IRC
[06:14:42] <caitp> easier to test in isolation
[06:14:45] *** kirfu has joined #angularjs
[06:15:38] *** jonasrosenlind has joined #angularjs
[06:16:22] *** jshultz has quit IRC
[06:16:27] *** DrMabuse has quit IRC
[06:16:37] *** mikehaas763 has joined #angularjs
[06:16:40] *** mennea has joined #angularjs
[06:16:54] *** gordroid_ has quit IRC
[06:16:57]
<dman777> BahamutWC: http://bpaste.net/show/7E2z4bpFuWh7Gc0bghMU/ Even the icon="glyphicon glyphicon-cog" isn't showing up in in the index.html's <div action-button actions="actions" icon="glyphicon glyphicon-cog" action-type="loadbalancer" class="pull-right">
[06:17:00] *** MistahKurtz has quit IRC
[06:17:13] *** AlexZanf has quit IRC
[06:17:20] *** AlexZanf has joined #angularjs
[06:17:22] <dman777> caitp: well, I was trying to make the directive reusable. Is that a bad idea? Ya, I am just testing for vips
[06:17:58] *** encrypt3d_fracti has quit IRC
[06:18:06] *** MistahKurtz has joined #angularjs
[06:18:18] *** jae has quit IRC
[06:18:24] *** MistahKurtz has quit IRC
[06:18:27] <caitp> if you're a single mom working 3 jobs, working 3 different jobs doesn't really make you more reusable than working one job that pays enough to live on
[06:18:43] *** MistahKurtz has joined #angularjs
[06:18:53] *** ColKurtz has joined #angularjs
[06:19:03] <caitp> if you're a single directive, don't do three unrelated jobs, do one job well
[06:19:42] <caitp> reuse parts of it that are reusable by putting them in functions accessible to each directive
[06:19:59] *** AlexZanf has quit IRC
[06:20:23] *** jonasrosenlind has quit IRC
[06:20:23] *** AlexZanf has joined #angularjs
[06:20:52] <dman777> caitp: even if they are all using the same template...there wouldn't be enough similarity for reuse? hmmm...later on I was going to move the data into a service and inject into the directive. Is that what you mean?
[06:22:06] <robdubya_> uh, that's an... interesting analogy caitp
[06:22:17] <dman777> lol...ya, I liked it
[06:22:39] *** jae has joined #angularjs
[06:22:46] *** digia is now known as digia|away
[06:22:50] *** davemerw_ has quit IRC
[06:22:52] *** encrypt3d_fracti has joined #angularjs
[06:23:13] *** encrypt3d_fracti has quit IRC
[06:23:27] *** davemerwin has joined #angularjs
[06:23:39] *** encrypt3d_fracti has joined #angularjs
[06:23:45] <caitp> it's just asking for scope creep
[06:23:46] <caitp> once you're doing 6 unrelated things, it won't be long before you're doing 7 unrelated things
[06:23:46] <caitp> and then 8, and then where does it end
[06:23:47] <caitp> you'll have an easier time maintaining it if each one just does one job
[06:23:48] <caitp> you can share data
[06:23:48] <caitp> that's easy
[06:23:50] <caitp> heck, you could have a single base directive object which is extended with the properties specific to the one you're working on
[06:23:51] <caitp> lots of solutions that will make things easier
[06:24:15] *** nanoyak has joined #angularjs
[06:24:54] <caitp> hey I'm just saying, shoving more work into a single unit is going to reduce the quality of the work over time, and make it harder to fix
[06:24:55] *** OnkelTem has quit IRC
[06:25:03] <robdubya_> ooo, the extending directives is a good idea.
[06:25:07] <caitp> it's taxing
[06:25:18] <robdubya_> means i dont have to write the same d3 code 11ty times
[06:25:27] <dman777> do i extend a directive by injecting a base directive into another directive?
[06:25:42] *** OnkelTem has joined #angularjs
[06:26:11] *** Andrew_S has quit IRC
[06:26:15] <caitp> like _.extend(baseDirective, { link: function theLinkFunctionForThisVersion() {} })
[06:26:35] <caitp> or _.extend({}, baseDirective, { ... }) I mean
[06:27:33] *** mary5030_ has quit IRC
[06:27:45] *** davemerwin has quit IRC
[06:28:10] *** mary5030 has joined #angularjs
[06:28:19] *** encrypt3d_fracti has quit IRC
[06:28:29] *** AlexZanf has quit IRC
[06:28:36] *** AlexZan has joined #angularjs
[06:30:07] *** morenoh151 has quit IRC
[06:30:11] *** lw has quit IRC
[06:30:28] <dman777> caitp: hmm...that is a underscore api. would I use it like angular.module('main.vips').directive('actionButton', function($modal) {})_.extend({}, baseDirective, { ... })?
[06:30:30] *** JoshGlzBrk has quit IRC
[06:31:14] <caitp> that doesn't look like valid javascript syntax
[06:31:40] <BahamutWC> I read that as wild javascript syntax at first :x
[06:32:30] <BahamutWC> also I never thought of extending directives...that does sound useful
[06:32:45] <BahamutWC> just like extending controllers
[06:32:45] <dman777> I wasn't sure how to extend angular.module('main.vips').directive('baseDirective', function($modal) {}) with _.extend({}, baseDirective, { ... }). But I have been at this for 4 hours so I am pretty cashed
[06:32:58] <dman777> :)
[06:32:59] *** mary5030 has quit IRC
[06:33:14] *** joroci has quit IRC
[06:33:15] *** nanoyak has quit IRC
[06:33:43] *** joroci has joined #angularjs
[06:34:00] <caitp> the function($modal) { ... } is your directive factory, which you return an object form
[06:34:00] <caitp> the object is what you'd extend
[06:34:19] <BahamutWC> there's a better way to extend a controller than that SO answer
[06:34:20] <kirfu> What site do you guys use for javascript docs?
[06:34:34] <kirfu> I remember seeing one that was really good, but I forgot which one :(
[06:34:45] *** mguillech has joined #angularjs
[06:35:02] <dman777> BahamutWC: I was looking at the second answer with $.extend(this, $controller('CtrlImpl', {$scope: $scope}));...is that a better way?
[06:35:14] <dman777> oh..but's not underscore
[06:35:20] <BahamutWC> var controller = $controller('MyCtrl', {$scope: $scope}), var thisCtrl = this;, thisCtrl = _.extend(thisCtrl, controller)
[06:35:26] <BahamutWC> ah
[06:35:32] <BahamutWC> yeah, that's the way I would do it
[06:35:52] <dman777> BahamutWC: cool, thanks! good reciepe
[06:36:03] <BahamutWC> but extending a directive would be a little different I think
[06:36:42] <dman777> cool... I guess I am going to quit for the night. I've been at this to long.
[06:36:52] <dman777> BahamutWC: caitp: thank you so much for the help!
[06:37:07] <BahamutWC> np
[06:37:13] <robdubya_> kirfu MDN
[06:37:18] <kirfu> na not that one
[06:37:24] <kirfu> I know that one :)
[06:37:32] <kirfu> there was another one with a slick UI :)
[06:37:41] *** AlexZan has quit IRC
[06:37:41] *** danyim has quit IRC
[06:37:41] *** aliocha has joined #angularjs
[06:37:44] *** AlexZ has joined #angularjs
[06:38:09] <BahamutWC> grunt-ngdocs?
[06:38:17] *** danyim has joined #angularjs
[06:38:35] <kirfu> it wasn't angular specific.
[06:38:59] *** caitp has quit IRC
[06:39:35] *** mguillech has quit IRC
[06:39:56] *** Ethix has quit IRC
[06:40:41] *** caitp has joined #angularjs
[06:40:53] *** lw has joined #angularjs
[06:41:49] *** lw has joined #angularjs
[06:42:22] *** jbolie has quit IRC
[06:42:35] *** lw has joined #angularjs
[06:42:43] *** danyim has quit IRC
[06:42:49] *** house has quit IRC
[06:43:23] *** lw has joined #angularjs
[06:44:06] *** lw has joined #angularjs
[06:44:29] *** Anbarasi has joined #angularjs
[06:44:38] *** recidive has quit IRC
[06:44:44] *** caitp has quit IRC
[06:44:52] *** lw has joined #angularjs
[06:45:04] *** patrickarlt has joined #angularjs
[06:45:46] *** lw has joined #angularjs
[06:46:00] *** stirlingw has joined #angularjs
[06:46:02] *** jamilbk has quit IRC
[06:46:02] *** JoshGlzBrk has joined #angularjs
[06:46:46] *** citizen-stig has joined #angularjs
[06:46:47] *** AlexZ has quit IRC
[06:46:53] *** apetro__ has quit IRC
[06:46:55] *** AlexZ has joined #angularjs
[06:47:17] *** VarunNambiar has joined #angularjs
[06:47:29] *** apetro_ has joined #angularjs
[06:48:11] *** patrickarlt has quit IRC
[06:48:13] *** bertrandk has quit IRC
[06:48:55] *** mdel has joined #angularjs
[06:48:57] *** patrickarlt has joined #angularjs
[06:49:00] *** recidive has joined #angularjs
[06:51:17] *** DrMabuse has joined #angularjs
[06:51:46] *** apetro_ has quit IRC
[06:51:58] *** lw has quit IRC
[06:52:47] *** ascarter has quit IRC
[06:52:57] *** dejanr has joined #angularjs
[06:53:04] *** JohnBat26 has quit IRC
[06:53:45] *** patrickarlt has quit IRC
[06:54:09] *** Anbarasi has quit IRC
[06:54:36] *** jdj_dk has joined #angularjs
[06:55:02] *** hefferon has quit IRC
[06:55:33] *** DrMabuse has quit IRC
[06:56:59] <boneskull> why can't you $provide directives and controllers?
[06:57:17] *** maveneagle has joined #angularjs
[06:57:30] *** msarta has joined #angularjs
[06:57:50] *** dejanr has quit IRC
[06:58:05] *** latten has joined #angularjs
[06:58:17] <boneskull> kirfu I ended up using jsdoc. it's awkward to use with angularjs, but imo grunt-ngdocs, docular and dgeni all need work
[06:58:25] *** Jdubs_ has quit IRC
[06:59:03] *** jdj_dk has quit IRC
[06:59:10] <kirfu> I didn't mean that. I meant there was a website with information on javascript that I liked. But I couldnt remember what it was, and it wasn't mdn.
[06:59:50] <kirfu> But thanks for that info, it's actually helpful :). I choose ngdoc at the moment. But my project is still fairly small so may switch. ngdoc and jsdoc are fairly similar.
[06:59:54]
<boneskull> kirfu I use Dash, but I think it's mac only. http://kapeli.com
[07:00:01] *** danielpquinn has joined #angularjs
[07:00:37] <boneskull> there's a new one that's promising, grunt-jsdoc-to-markdown, if you want md output
[07:01:01] <boneskull> no angular-specific stuff but it's pretty easy to write plugins. i might write one for angular if i get bored
[07:01:03] <kirfu> aww that's cool too :)
[07:01:11] *** Joshee has joined #angularjs
[07:02:03] <kirfu> any of you have a good example of applying access tokens from localstorage in angular?
[07:02:43] *** yogurt_truck has quit IRC
[07:03:46] *** tomzx is now known as tomzx`afk
[07:03:53] *** bkuberek has quit IRC
[07:04:09] <boneskull> anyway my question from before, "why can't you $provide directives and controllers?" is kind of odd, so the background is: I was wondering if there was any way to dynamically generate a directive name. this would help for namespacing directives
[07:04:09] *** Silne30 has joined #angularjs
[07:04:31] *** hugoleodev has quit IRC
[07:04:39] *** danielpquinn has quit IRC
[07:05:26] *** night-owl2 has quit IRC
[07:05:36] *** Joshee has quit IRC
[07:05:45] *** TorchDragon has joined #angularjs
[07:06:09] <robdubya_> boneskull you could probably do it actually, by grabbing a reference to the appropriate provider in the config block, storing it, and then using it later
[07:06:29] *** plitzenberger has joined #angularjs
[07:07:04] *** grindmodeon has quit IRC
[07:07:17] <robdubya_> alternately you could do it outside of angular entirely, and just manually bootstrap the app when you're done
[07:07:32] <boneskull> don't know how I'd use it later, I'd need to inject some constant, right? but .directive is only available on angular.Module
[07:07:59] *** ZEH_ has joined #angularjs
[07:08:00] <boneskull> I could get a reference to the module within the config block?? that sounds evil.
[07:08:36] <boneskull> i guess i could just define foo = angular.module('bar') and then reference foo in the config.
[07:08:40] *** Silne30 has quit IRC
[07:08:52] <boneskull> smells kind of weird though
[07:09:43] *** {DV8} has quit IRC
[07:09:53] *** Yahkob has joined #angularjs
[07:10:06] *** zanea is now known as zanea|away
[07:10:16] *** zumba_addict has quit IRC
[07:10:34] *** TorchDragon has quit IRC
[07:10:35] *** kaeku has joined #angularjs
[07:11:04] *** plitzenberger has quit IRC
[07:11:21] <boneskull> that "works" in that no error is thrown. whether or not the directive compiles remains to be seen
[07:11:30] *** maveneagle has quit IRC
[07:12:01] *** dutis has joined #angularjs
[07:12:36] *** johnkevinmbasco has joined #angularjs
[07:12:40] *** stodan has joined #angularjs
[07:12:56] *** maveneagle has joined #angularjs
[07:13:02] *** ZEH_ has quit IRC
[07:13:08] *** DrMabuse has joined #angularjs
[07:13:19] *** nonsenz has quit IRC
[07:13:21] *** instence_ has joined #angularjs
[07:14:23] *** vintik has joined #angularjs
[07:15:09] *** kaeku has quit IRC
[07:15:18] *** instence has quit IRC
[07:16:17] *** mdedetrich has joined #angularjs
[07:16:40] *** mikehaas763 has quit IRC
[07:17:20] *** DrMabuse has quit IRC
[07:17:38] *** latten has quit IRC
[07:18:57] *** johnkevinmbasco has quit IRC
[07:19:12] *** nonsenz has joined #angularjs
[07:19:26] *** zivester has quit IRC
[07:19:30] *** johnkevinmbasco has joined #angularjs
[07:19:50] <BobbieBarker> do you have to do anything tricksy to transclude an img tag?
[07:20:35] *** revell has joined #angularjs
[07:20:36] *** woebtz has joined #angularjs
[07:21:12] *** naxs has joined #angularjs
[07:22:14] <BobbieBarker> nvm i was being stupid
[07:22:36] <kirfu> How do I unset the " $http.defaults.headers.common.Authorization"
[07:22:37] <kirfu> ?
[07:22:41] <kirfu> just use delete?
[07:23:30] *** sigurding has joined #angularjs
[07:23:43] *** joshontheweb has quit IRC
[07:25:29] *** Joshee has joined #angularjs
[07:25:51] *** hychen has joined #angularjs
[07:25:55] *** naxs has quit IRC
[07:27:16] *** phuh has joined #angularjs
[07:27:44] *** phrozensilver has joined #angularjs
[07:27:56] *** MacWinner has quit IRC
[07:28:10] *** grindmodeon has joined #angularjs
[07:28:59] *** AlexZ has quit IRC
[07:29:21] *** AlexZ has joined #angularjs
[07:29:33] *** knownasilya has joined #angularjs
[07:29:40] *** JoshGlzBrk has quit IRC
[07:29:41] *** johnkevi_ has joined #angularjs
[07:29:59] *** anjumkaiser has joined #angularjs
[07:30:42] *** johnkevinmbasco has quit IRC
[07:31:07] *** zwacky has joined #angularjs
[07:31:12] *** bencc has joined #angularjs
[07:32:11] *** bootsWitDaFur has quit IRC
[07:32:26] *** teddyp1cker has joined #angularjs
[07:32:35] *** jdj_dk has joined #angularjs
[07:32:58] *** asdofindia has quit IRC
[07:34:05] *** johnkevinmbasco has joined #angularjs
[07:34:37] *** bkuberek has joined #angularjs
[07:34:44] *** nonsenz has quit IRC
[07:34:56] *** kirfu has quit IRC
[07:34:57] *** nonsenz has joined #angularjs
[07:35:18] *** johnkevi_ has quit IRC
[07:36:52] *** lite_ has joined #angularjs
[07:37:11] *** teddyp1cker has quit IRC
[07:38:40] *** mary5030 has joined #angularjs
[07:39:02] *** JoshGlzBrk has joined #angularjs
[07:39:19] *** bootsWitDaFur has joined #angularjs
[07:39:44] *** waylon999 has joined #angularjs
[07:40:41] *** narutimateum has quit IRC
[07:43:08] *** Yahkob has quit IRC
[07:43:29] *** mary5030 has quit IRC
[07:44:14] *** Yahkob has joined #angularjs
[07:44:23] *** waylon999 has quit IRC
[07:44:43] *** tschundeee has joined #angularjs
[07:45:11] *** maveneagle has quit IRC
[07:45:23] <andern> using ng-route and $routeProvider.otherwise({redirectTo: 'X' }); is there a way to get it to reload the page after redirect?
[07:46:11] <andern> that is, I want to redirect to i path that is NOT part of the angular app
[07:46:27] *** maveneagle has joined #angularjs
[07:47:28] *** maveneagle has joined #angularjs
[07:47:49] *** sigurding has quit IRC
[07:48:22] *** maveneagle has joined #angularjs
[07:48:36] *** Aliks has quit IRC
[07:48:41] *** bertrandk has joined #angularjs
[07:48:59] *** jonnybro has quit IRC
[07:49:04] *** tschundeee has quit IRC
[07:49:19] *** el_fuego has quit IRC
[07:49:31] *** caitp has joined #angularjs
[07:50:51] *** jgravois has joined #angularjs
[07:50:53] <boneskull> kirfu: if that doesn't work try to null it
[07:50:53] *** phuh has quit IRC
[07:51:08] *** blueadept has quit IRC
[07:51:18] *** phuh has joined #angularjs
[07:51:37] <boneskull> andern: might be able to set a controller for the otherwise route and have that controller use $window.location to go elsewhere
[07:51:44] *** DrMabuse has joined #angularjs
[07:52:18] *** mindlace has quit IRC
[07:52:49] *** webus has joined #angularjs
[07:52:57] *** vintik has quit IRC
[07:53:30] *** bertrandk has quit IRC
[07:53:37] *** vintik has joined #angularjs
[07:53:51] *** dejanr has joined #angularjs
[07:54:24] *** TyrfingMjolnir has joined #angularjs
[07:54:27] *** AlexZ has quit IRC
[07:54:51] *** AlexZ has joined #angularjs
[07:54:53] *** jgravois has quit IRC
[07:55:17] *** Aliks has joined #angularjs
[07:55:41] *** eden_lane has joined #angularjs
[07:56:24] *** DrMabuse has quit IRC
[07:56:52] *** snurfery has joined #angularjs
[07:57:30] *** xAt is now known as xat-
[07:57:44] *** grindmodeon has quit IRC
[07:57:58] *** vintik has quit IRC
[07:58:22] *** dariocravero has joined #angularjs
[07:58:34] *** dejanr has quit IRC
[07:58:39] *** jonnybro has joined #angularjs
[07:59:24] *** teddyp1cker has joined #angularjs
[07:59:56] <BobbieBarker> what is the syntax for setting the width on an element in the linking functin of a directive?
[08:00:04] <BobbieBarker> rootElement.addClass('width': wrappedElement[0].attributes.height.nodeValue)
[08:00:09] <BobbieBarker> clearly i'm missing the mark
[08:00:31] *** stayarrr has quit IRC
[08:00:47] *** danielpquinn has joined #angularjs
[08:02:09]
<SuperPhly> I'm having an issue with socket.io and node.js. I've redone a bit of code for the web module ( https://gist.github.com/superphly/05bbccf68438de6eb9dd ), and haven't touched the client side. I'm getting this error in the browser: WebSocket connection to 'ws://XXXX:2200/socket.io/?EIO=2&transport=websocket&sid=J2at6AaIzrAHZjqFAAAB' failed: Connection closed before receiving a handshake response
[08:02:41] <SuperPhly> I'm probably not setting up socket.io correctly on the backend, but it might be my handling in angular.
[08:05:24] *** danielpquinn has quit IRC
[08:05:24] *** AlexZan has joined #angularjs
[08:05:26] *** Reskp has joined #angularjs
[08:05:35] *** AlexZ has quit IRC
[08:06:30] *** Rahul_Roy has joined #angularjs
[08:06:37] *** TorchDragon has joined #angularjs
[08:06:46] *** stirlingw has quit IRC
[08:06:50] *** nszceta has joined #angularjs
[08:07:00] *** AlexZan has quit IRC
[08:07:24] *** AlexZan has joined #angularjs
[08:08:44] *** waylon999 has joined #angularjs
[08:08:54] *** Thorn has quit IRC
[08:09:07] *** Hippo has quit IRC
[08:09:27] *** anjumkaiser has quit IRC
[08:09:40] *** xyNNN has joined #angularjs
[08:09:56] *** dob_ has joined #angularjs
[08:09:59] *** UniBot has joined #angularjs
[08:10:07] *** Reskp has quit IRC
[08:10:23] *** xyNNN has quit IRC
[08:10:48] *** xyNNN has joined #angularjs
[08:10:55] *** phrozensilver has quit IRC
[08:10:58] *** TorchDragon has quit IRC
[08:11:35] *** UniBot has quit IRC
[08:11:41] *** hannesvdvreken has joined #angularjs
[08:11:52] *** oste has quit IRC
[08:11:52] *** UniBot has joined #angularjs
[08:12:53] *** waylon999 has quit IRC
[08:14:09] *** UniBot has quit IRC
[08:14:27] *** UniBot has joined #angularjs
[08:14:35] *** negval has joined #angularjs
[08:14:46] *** UniBot has joined #angularjs
[08:15:02] *** gunn has quit IRC
[08:15:11] *** UniBot has joined #angularjs
[08:16:02] *** Xethron has joined #angularjs
[08:16:31] *** naxs has joined #angularjs
[08:16:32] <BobbieBarker> what is the syntax for setting the width on an element in the linking functin of a directive?
[08:17:00] *** pibu7 has joined #angularjs
[08:17:27] *** svycka has joined #angularjs
[08:17:38] *** mikehaas763 has joined #angularjs
[08:18:21] *** mykz_ has joined #angularjs
[08:18:37] *** UniBot has joined #angularjs
[08:19:02] *** UniBot has joined #angularjs
[08:19:23] *** naxs has quit IRC
[08:19:27] *** UniBot has joined #angularjs
[08:19:47] *** UniBot has joined #angularjs
[08:20:33] *** dob_ has quit IRC
[08:20:59] *** JoshGlzBrk has quit IRC
[08:22:01] *** AlexZ has joined #angularjs
[08:22:03] *** frickett has joined #angularjs
[08:22:04] *** AlexZan has quit IRC
[08:22:11] *** mikehaas763 has quit IRC
[08:22:19] <wafflejock> element.css({width:100}) should work I think
[08:23:05] *** Reskp has joined #angularjs
[08:23:18] *** UniBot1 has joined #angularjs
[08:23:30] <wafflejock> BobbieBarker: ^
[08:24:26] *** Ilyas has joined #angularjs
[08:24:41] *** UniBot1 has quit IRC
[08:24:57] *** UniBot1 has joined #angularjs
[08:25:03] *** frickettz has quit IRC
[08:25:20] *** naxs has joined #angularjs
[08:25:39] *** InezK is now known as InezK_away
[08:25:43] *** kaeku has joined #angularjs
[08:27:12] *** UniBot1 has quit IRC
[08:28:01] *** hannesvdvreken has quit IRC
[08:28:18] *** DrMabuse has joined #angularjs
[08:28:30] *** AlexZ has quit IRC
[08:28:55] *** AlexZ has joined #angularjs
[08:29:49] <eden_lane> Hi folks. Can you suggest me something to read about architecture in angular's SPA ? I'm stuck :(
[08:30:03] *** kaeku has quit IRC
[08:30:11] *** SanderElias has joined #angularjs
[08:30:37] *** UniBot1 has joined #angularjs
[08:31:18] *** AlexZ has quit IRC
[08:31:24] *** AlexZ has joined #angularjs
[08:32:40] *** DuelShark has joined #angularjs
[08:32:47] *** jayrobot has quit IRC
[08:32:50] *** teddyp1cker has quit IRC
[08:33:47] *** phuh has quit IRC
[08:34:18] *** phuh has joined #angularjs
[08:34:42] *** DrMabuse has quit IRC
[08:35:54] *** mtsr has joined #angularjs
[08:36:05] *** mguillech has joined #angularjs
[08:37:32] *** caitp has quit IRC
[08:38:23] *** phuh has quit IRC
[08:38:26] *** Silne30 has joined #angularjs
[08:38:44] <joroci> what is the suggested way to read data from a dom element?
[08:39:15] *** Reskp has quit IRC
[08:39:31] *** danyim has joined #angularjs
[08:39:32] *** Reskp has joined #angularjs
[08:39:45] *** Yahkob has quit IRC
[08:39:46] <joroci> so i can access it in a controller
[08:39:56] <BobbieBarker> what do you mean read data from a dom element?
[08:40:00] <BobbieBarker> what kind of data
[08:40:17] <joroci> json
[08:40:26] <BobbieBarker> why would you have json in a dom element?
[08:40:26] *** sneakertack has quit IRC
[08:40:36] *** patouche has quit IRC
[08:40:39] <BobbieBarker> you mean like use an html5 data attribute?
[08:40:52] *** mguillech has quit IRC
[08:40:59] <joroci> i'm using asp.net mvc razor to render the page
[08:41:02] <BobbieBarker> thishtml5Attribute="thisjsonObj" ??
[08:41:06] <joroci> but i also need some of the data
[08:41:21] <joroci> so yea i thought of <div data-data="json"></div>
[08:41:30] <BobbieBarker> well you'll need a directive for that
[08:41:49] <BobbieBarker> you can't set an html5 data attribute to be used by the controller you'll need the linker function in a directive
[08:42:21] <joroci> there is another option so i can do something like <li data-price="50 data-id="id">somename></li>
[08:42:25] *** Bardosity has quit IRC
[08:42:28] <joroci> what would be better?
[08:42:32] <BobbieBarker> it's the same thing
[08:42:35] <joroci> yea
[08:42:53] <joroci> i'm not sure what do you mean a linker function?
[08:42:53] *** Silne30 has quit IRC
[08:43:33] *** wilmoore has quit IRC
[08:43:42] <joroci> you mean in the directive link function i need to access the parent scope?
[08:44:02] *** danyim has quit IRC
[08:45:37] <BobbieBarker> link: function (scope, element, attrs) is the linker function on line 14
[08:46:13] *** cthrax has quit IRC
[08:46:14] *** Christer has joined #angularjs
[08:46:17] <joroci> yea
[08:46:29] <BobbieBarker> you could handle the data in the link fucntion
[08:46:43] <joroci> but how do i pass the data to the view controller scope.$parent?
[08:46:47] <BobbieBarker> you shouldn't be doing dom manipulation in the controller
[08:46:56] *** Reskp has quit IRC
[08:46:56] <BobbieBarker> where is this data coming from?
[08:47:02] <joroci> the attribute
[08:47:04] <joroci> server
[08:47:07] *** AndyFTP has joined #angularjs
[08:47:25] <BobbieBarker> so if it comes from teh server why not just drop it into the controller the http call you're making to get the data
[08:47:27] *** Reskp has joined #angularjs
[08:47:45] *** dariocravero has quit IRC
[08:47:51] <BobbieBarker> with the http call*
[08:48:00] <joroci> because most of the data is static so i thought it would be better to just render it with razor
[08:48:10] <BobbieBarker> i don't know anything about razor
[08:48:18] *** Christer| has joined #angularjs
[08:48:22] <joroci> like a template engine
[08:48:28] <BobbieBarker> already not a fan
[08:48:53] *** apetro_ has joined #angularjs
[08:48:57] *** dariocravero has joined #angularjs
[08:49:07] <joroci> what about ng-init?
[08:49:22] *** mkc has quit IRC
[08:49:53] <BobbieBarker> so this razor thing serves up your HTML pages?
[08:49:58] <joroci> ye
[08:49:58] <eden_lane> it's okay to make a service bounded to a directive ?
[08:50:07] *** [n0b0dy] has quit IRC
[08:50:07] *** opiispanen has joined #angularjs
[08:50:09] <BobbieBarker> ppl that use those kinds of things with angular always have the hardest time
[08:50:17] *** [n0b0dy] has joined #angularjs
[08:50:19] <BobbieBarker> what do you mean bounded?
[08:50:22] *** Ezku has left #angularjs
[08:50:33] *** sigurding has joined #angularjs
[08:50:34] *** kiruba has joined #angularjs
[08:50:38] <BobbieBarker> you can inject a service into a directive easy peasy if thats what you mean
[08:50:47] *** Click66 has joined #angularjs
[08:50:55] <eden_lane> I mean you can't use that service without directive and use that directive without that service
[08:51:11] <BobbieBarker> i don't think that is even possible
[08:51:15] <BobbieBarker> you could put them in the same module
[08:51:19] <BobbieBarker> so you couldn't use them outside the module
[08:51:57] *** Christer has quit IRC
[08:51:58] <eden_lane> So, inside of module it is okay ?
[08:52:03] *** Reskp has quit IRC
[08:52:30] <eden_lane> Where can I read more about it ? And about architecture in angular's SPA
[08:52:38] *** rotorgames has joined #angularjs
[08:52:42] <rotorgames> Привет, тут есть, кто?
[08:52:46] *** caitp has joined #angularjs
[08:52:48] *** rhp has joined #angularjs
[08:53:11] <rotorgames> Нужна помощь по angular
[08:53:12] *** dariocravero has quit IRC
[08:53:26] *** rabbi1 has joined #angularjs
[08:53:28] *** apetro_ has quit IRC
[08:53:39] <eden_lane> rotorgames: тут англоязычные, в основном
[08:54:03] *** paul_dijou has quit IRC
[08:54:08] <rotorgames> А ты, сможешь подсказать?
[08:54:24] *** wilmoore has joined #angularjs
[08:54:26] *** wwnnbb has quit IRC
[08:54:38] <eden_lane> напиши в приват
[08:54:44] *** dejanr has joined #angularjs
[08:54:55] *** kiruba has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:14] *** evilaliv3 has joined #angularjs
[08:55:36] *** DuelShark has quit IRC
[08:55:43] *** FLaMeS has joined #angularjs
[08:56:02] *** lumio has joined #angularjs
[08:56:09] *** naxs has quit IRC
[08:56:20] *** lumio has quit IRC
[08:56:27] *** TyrfingMjolnir has quit IRC
[08:56:30] *** dynacker has quit IRC
[08:56:46] *** kemm0 has joined #angularjs
[08:56:49] *** BobbieBarker has quit IRC
[08:56:50] *** kemm0 is now known as BobbieBarker
[08:57:17] *** Tidwell has quit IRC
[08:57:19] <eden_lane> yep, i've read it but it's styleguide, not architecture-guide :(
[08:57:29] <BobbieBarker> there really isn't an architecture guide
[08:57:34] <woebtz> rabbi1: try setInterval(function () { console.log($scope.products); }, 1000); it should eventually be defined
[08:57:34] *** TyrfingMjolnir has joined #angularjs
[08:58:19] <rabbi1> woebtz: you mean there will be a delay ?
[08:58:45] *** naxs has joined #angularjs
[08:58:55] *** teddyp1cker has joined #angularjs
[08:58:58] <BobbieBarker> you could yoeman
[08:59:01] <woebtz> $scope.products is defined in a callback
[08:59:03] <rabbi1> woebtz: yeah right but that't not i want.. what if i need to use the data outside of Query() ?
[08:59:06] <BobbieBarker> and use the package for angular to get a good idea for architecture
[08:59:23] *** dejanr has quit IRC
[08:59:30] *** Grokling_ has joined #angularjs
[08:59:37] <BobbieBarker> you'll want to use $interval not setinterval
[09:00:28] *** AlexZ has quit IRC
[09:00:40] *** azureknight has joined #angularjs
[09:00:43] <woebtz> rabbi1: what do you need it for outside? see async javascript
[09:00:51] *** AlexZ has joined #angularjs
[09:01:01] <BobbieBarker> don't look async JS look at Q library for angular
[09:01:05] <BobbieBarker> it's how angular handles promises
[09:01:06] <rabbi1> woebtz: to perform other functions
[09:01:08] <BobbieBarker> well q not Q
[09:01:30] <woebtz> to understand what's going on
[09:01:34] *** danielpquinn has joined #angularjs
[09:01:43] *** johnkevi_ has joined #angularjs
[09:01:49] <BobbieBarker> promises are whats going on
[09:01:50] <BobbieBarker> lol
[09:01:52] *** _ht has joined #angularjs
[09:02:07] *** mdel has quit IRC
[09:02:49] *** johnkevinmbasco has quit IRC
[09:03:08] *** caitp has quit IRC
[09:03:32] <eden_lane> woebtz: thanks ! I think I've read it already, but I will take a look
[09:05:38] *** patrickreck has joined #angularjs
[09:05:40] *** quazimodo has joined #angularjs
[09:05:49] *** wwnnbb has joined #angularjs
[09:06:06] *** danielpquinn has quit IRC
[09:06:09] *** josh-k has joined #angularjs
[09:06:12] *** house has joined #angularjs
[09:06:26] *** johnkevinmbasco has joined #angularjs
[09:06:32] *** johnkevi_ has quit IRC
[09:06:39] <quazimodo> I'm starting a project to build a set of business tools, I have found a couple of pretty qualified collaborators, but I absolutely suck at js and angular, which we kinda need on our front end
[09:06:40] *** Sky[x] has joined #angularjs
[09:06:57] <quazimodo> I don't know how to find someone to collaborate on that with us
[09:06:59] *** plitzenberger has joined #angularjs
[09:07:05] *** hannesvdvreken has joined #angularjs
[09:07:25] *** TorchDragon has joined #angularjs
[09:07:37] *** bulkan_ has joined #angularjs
[09:07:38] <quazimodo> of the other two, both incidentally happen to be fairly passionate about what we're building
[09:08:11] *** apetro_ has joined #angularjs
[09:08:17] <quazimodo> and their technical usefulness I learned after the fact, but atm we need someone who's an angular bomb specifically ... any ideas guys?
[09:10:07] *** woebtz has quit IRC
[09:10:51] *** wwnnbb has quit IRC
[09:10:59] *** johnkevi_ has joined #angularjs
[09:11:12] *** gunn has joined #angularjs
[09:11:18] *** plitzenberger has quit IRC
[09:11:24] *** mennea has quit IRC
[09:11:29] *** amedia has joined #angularjs
[09:11:35] *** bulkan has quit IRC
[09:11:53] *** johnkevinmbasco has quit IRC
[09:12:19] *** bulkan_ has quit IRC
[09:12:26] *** _tpavel has joined #angularjs
[09:12:28] *** TorchDragon has quit IRC
[09:13:04] *** fbenoit has joined #angularjs
[09:14:30] *** jonasrosenlind has joined #angularjs
[09:14:33] *** patrickreck has quit IRC
[09:14:49] *** VeeWee has joined #angularjs
[09:15:43] *** asdofindia has joined #angularjs
[09:15:46] *** xat- is now known as xAt
[09:15:55] *** Beniton has joined #angularjs
[09:16:01] <Beniton> Hi This is Beniton
[09:16:29] *** InezK_away is now known as InezK
[09:16:29] *** bbsss has joined #angularjs
[09:16:32] *** johnkevi_ has quit IRC
[09:16:42] *** wwnnbb has joined #angularjs
[09:16:53] *** apetro_ has quit IRC
[09:17:00] <Beniton> Any idea on how to validate a select
[09:17:23] *** Thorn has joined #angularjs
[09:17:54] *** dariocravero has joined #angularjs
[09:18:05] *** foofoobar has joined #angularjs
[09:18:50] *** Beniton has quit IRC
[09:19:55] *** rabbi1 has left #angularjs
[09:19:59] *** nfroidure_ has joined #angularjs
[09:21:00] *** DrMabuse has joined #angularjs
[09:21:09] *** johnkevinmbasco has joined #angularjs
[09:21:51] *** slainer68 has joined #angularjs
[09:22:06] *** AlexZ has quit IRC
[09:22:24] *** AlexZ has joined #angularjs
[09:22:53] *** evilaliv3 has quit IRC
[09:22:54] *** AlexZ has quit IRC
[09:23:19] *** AlexZ has joined #angularjs
[09:23:28] *** SomeKittens has quit IRC
[09:24:18] *** zfogg has quit IRC
[09:24:44] *** stayarrr has joined #angularjs
[09:25:29] *** texinwien has joined #angularjs
[09:25:40] *** TyrfingMjolnir has quit IRC
[09:26:07] *** TyrfingMjolnir has joined #angularjs
[09:26:08] *** jonnybro has quit IRC
[09:26:21] *** willmarshall has quit IRC
[09:26:29] *** Sky[x] has quit IRC
[09:26:51] *** slainer68 has quit IRC
[09:27:09] *** Natsu- has joined #angularjs
[09:27:45] *** johnkevinmbasco has quit IRC
[09:28:09] *** InezK is now known as InezK_away
[09:28:10] *** rotorgames has quit IRC
[09:28:26] *** SonderbladeWork has joined #angularjs
[09:28:30] *** Vovin has joined #angularjs
[09:28:41] *** waylon999 has joined #angularjs
[09:28:44] *** SonderbladeWork has quit IRC
[09:28:44] *** FIFOd[a] has joined #angularjs
[09:28:52] *** prikk has joined #angularjs
[09:29:08] *** SonderbladeWork has joined #angularjs
[09:29:29] *** dejanr has joined #angularjs
[09:29:33] *** zfogg has joined #angularjs
[09:29:57] *** ppppaul has joined #angularjs
[09:30:19] *** bengillies has joined #angularjs
[09:30:34] *** InezK_away is now known as InezK
[09:31:34] *** naxs has quit IRC
[09:31:34] *** Xethron has quit IRC
[09:31:55] *** naxs has joined #angularjs
[09:32:12] *** t_p has joined #angularjs
[09:32:53] *** waylon999 has quit IRC
[09:32:58] *** FIFOd[a] has quit IRC
[09:33:13] *** DevAntoine has joined #angularjs
[09:33:35] *** vintik has joined #angularjs
[09:33:35] *** AlexZan has joined #angularjs
[09:33:53] *** hannesvdvreken has quit IRC
[09:33:59] *** patrickreck has joined #angularjs
[09:34:21] *** AlexZ has quit IRC
[09:35:08] *** btc_panhandler has quit IRC
[09:36:01] *** xAt is now known as xat-
[09:36:20] *** guilbep has joined #angularjs
[09:37:48] *** quantax- has quit IRC
[09:38:48] *** citizen-stig has quit IRC
[09:39:08] *** jgravois has joined #angularjs
[09:40:51] *** hannesvdvreken has joined #angularjs
[09:41:36] *** asdofindia has quit IRC
[09:41:58] *** AlexZan has quit IRC
[09:42:19] *** teddyp1cker has quit IRC
[09:42:24] *** AlexZan has joined #angularjs
[09:42:43] *** bbsss has quit IRC
[09:43:34] *** ceephax has joined #angularjs
[09:43:58] *** naxs has quit IRC
[09:44:23] *** jgravois has quit IRC
[09:45:16] *** naxs has joined #angularjs
[09:45:28] *** Dimlock has joined #angularjs
[09:45:48] *** naxs has left #angularjs
[09:45:49] *** sk87 has joined #angularjs
[09:45:52] *** frankblizzard has joined #angularjs
[09:46:21] *** tschundeee has joined #angularjs
[09:46:35] *** scrooge_mcduck has joined #angularjs
[09:46:50] *** boonkerz has quit IRC
[09:47:01] *** josh-k_ has joined #angularjs
[09:47:52] *** Sky[x] has joined #angularjs
[09:48:25] *** boonkerz has joined #angularjs
[09:48:37] *** UniBot1 has quit IRC
[09:49:51] *** uchuff has joined #angularjs
[09:49:59] *** LoveAndHappiness has joined #angularjs
[09:50:18] *** josh-k has quit IRC
[09:50:19] *** bertrandk has joined #angularjs
[09:50:33] *** bengillies has quit IRC
[09:51:05] *** tschundeee has quit IRC
[09:51:09] *** iksik has quit IRC
[09:51:28] *** ppppaul has quit IRC
[09:52:25] *** Left_Turn has joined #angularjs
[09:52:25] *** amedia has quit IRC
[09:52:25] *** arntempelgibbarn has joined #angularjs
[09:53:02] *** armno has quit IRC
[09:53:08] *** amedia has joined #angularjs
[09:54:47] *** bertrandk has quit IRC
[09:55:02] *** revell has quit IRC
[09:55:04] *** MaxV has joined #angularjs
[09:55:08] *** armno has joined #angularjs
[09:55:12] *** foofoobar has quit IRC
[09:55:24] *** InezK is now known as InezK_away
[09:56:49] *** mdedetrich has quit IRC
[09:57:02] *** Dimlock has quit IRC
[09:57:24] *** bbsss has joined #angularjs
[09:57:28] *** bertrandk has joined #angularjs
[09:57:29] *** Dimlock has joined #angularjs
[09:58:03] *** foofoobar has joined #angularjs
[09:58:05] *** masella has joined #angularjs
[09:58:28] *** AlexZan has quit IRC
[09:58:32] *** intellix has joined #angularjs
[09:58:53] *** AlexZan has joined #angularjs
[10:01:05] *** fouzko has joined #angularjs
[10:01:41] *** asdofindia has joined #angularjs
[10:01:41] *** msarta has quit IRC
[10:01:56] *** hannesvdvreken has quit IRC
[10:02:17] *** danielpquinn has joined #angularjs
[10:03:02] *** SFeser has quit IRC
[10:03:32] *** combat has joined #angularjs
[10:03:34] *** cladic has joined #angularjs
[10:03:38] *** dman777 has quit IRC
[10:03:47] *** stayarrr has quit IRC
[10:05:23] *** bootsWitDaFur has quit IRC
[10:05:46] *** dman777 has joined #angularjs
[10:05:48] *** bbsss has quit IRC
[10:06:17] *** bicranial has quit IRC
[10:06:32] *** bbsss has joined #angularjs
[10:06:33] *** danielpquinn has quit IRC
[10:06:55] *** dejanr has quit IRC
[10:07:35] *** asdofindia has quit IRC
[10:07:49] *** dve has joined #angularjs
[10:07:54] *** asdofindia has joined #angularjs
[10:08:01] *** Joulse has joined #angularjs
[10:08:05] *** dve has joined #angularjs
[10:08:16] *** TorchDragon has joined #angularjs
[10:08:32] *** leftblank has joined #angularjs
[10:08:38] *** msarta has joined #angularjs
[10:08:41] *** johnkevinmbasco has joined #angularjs
[10:08:44] *** AlexZan has quit IRC
[10:08:52] *** AlexZan has joined #angularjs
[10:09:10] *** bbsss has quit IRC
[10:09:35] *** emps has quit IRC
[10:10:12] *** gauravsaini03 has joined #angularjs
[10:10:37] *** AlexZan has quit IRC
[10:10:43] *** AlexZan has joined #angularjs
[10:10:48] *** iksik has joined #angularjs
[10:10:53] *** kofight has joined #angularjs
[10:11:11] *** AciD`` has joined #angularjs
[10:12:13] *** bengillies has joined #angularjs
[10:12:16] *** herenow has joined #angularjs
[10:12:52] *** TorchDragon has quit IRC
[10:12:55] *** rotorgames has joined #angularjs
[10:12:57] *** mennea has joined #angularjs
[10:13:01] *** knownasilya has quit IRC
[10:13:19] *** rhp has quit IRC
[10:13:53] *** UniBot1 has joined #angularjs
[10:14:23] *** Left_Turn has quit IRC
[10:14:24] *** ppppaul has joined #angularjs
[10:14:24] *** hannesvdvreken has joined #angularjs
[10:14:35] *** Rahul_Roy has quit IRC
[10:14:44] *** plitzenberger has joined #angularjs
[10:14:44] *** Somatt_wrk has joined #angularjs
[10:15:10] *** emps has joined #angularjs
[10:15:31] *** danyim has joined #angularjs
[10:15:41] *** GoProDeki has joined #angularjs
[10:15:50] *** slainer68 has joined #angularjs
[10:16:11] *** cctom has joined #angularjs
[10:16:12] *** GoProDeki has quit IRC
[10:16:14] *** icarus75 has joined #angularjs
[10:16:20] *** kemm0 has joined #angularjs
[10:16:28] *** BobbieBarker has quit IRC
[10:17:53] *** jae is now known as Jae
[10:17:59] *** GoProDeki has joined #angularjs
[10:18:25] *** davedev24_ has quit IRC
[10:18:38] *** GoProDeki has quit IRC
[10:18:39] *** the-erm has quit IRC
[10:18:59] *** davedev24_ has joined #angularjs
[10:19:22] *** amedia has quit IRC
[10:19:45] *** lordkryss has joined #angularjs
[10:20:06] *** danyim has quit IRC
[10:20:50] *** uf6667 has joined #angularjs
[10:21:04] *** opiispanen has left #angularjs
[10:21:04] *** the-erm has joined #angularjs
[10:21:10] *** AlexZan has quit IRC
[10:21:24] *** AlexZan has joined #angularjs
[10:21:37] *** boonkerz has quit IRC
[10:22:08] *** maurycyg has joined #angularjs
[10:22:09] *** icchio has joined #angularjs
[10:22:22] *** calvinx has joined #angularjs
[10:22:59] *** jtimon has joined #angularjs
[10:23:04] *** boonkerz has joined #angularjs
[10:23:07] *** Vinnyceptr has joined #angularjs
[10:23:12] *** davedev24_ has quit IRC
[10:23:57] *** johnkevinmbasco has quit IRC
[10:24:10] *** cladic has quit IRC
[10:24:33] *** Sebastien-L has joined #angularjs
[10:24:42] *** icchio has quit IRC
[10:25:25] *** soujiro has joined #angularjs
[10:25:28] *** AlexZ has joined #angularjs
[10:25:33] *** AlexZan has quit IRC
[10:25:38] *** roolo has joined #angularjs
[10:25:40] *** Stampy has joined #angularjs
[10:25:45] *** Sky[x] has quit IRC
[10:26:10] *** blak422 has quit IRC
[10:26:40] *** Olsonfold has quit IRC
[10:27:35] *** VarunNambiar has quit IRC
[10:27:39] *** melmoussaoui has joined #angularjs
[10:27:43] *** hswolff has quit IRC
[10:28:49] *** mikehaas763 has joined #angularjs
[10:29:04] *** hswolff has joined #angularjs
[10:29:45] *** mehlah has joined #angularjs
[10:30:09] *** Willow has quit IRC
[10:30:35] *** Willow has joined #angularjs
[10:30:37] *** intellix has quit IRC
[10:31:12] *** evilaliv3 has joined #angularjs
[10:31:24] *** bootsWitDaFur has joined #angularjs
[10:31:50] *** Cydmax has joined #angularjs
[10:32:19] *** plitzenberger has quit IRC
[10:33:07] *** mikehaas763 has quit IRC
[10:33:41] *** melmouss_ has joined #angularjs
[10:33:55] *** Cydmax has quit IRC
[10:34:11] *** MistahKurtz has quit IRC
[10:34:16] *** Cydmax has joined #angularjs
[10:34:19] *** MistahKurtz has joined #angularjs
[10:34:28] *** Cydmax has quit IRC
[10:34:29] *** ColKurtz has quit IRC
[10:34:37] *** melmoussaoui has quit IRC
[10:34:43] *** MistuhKurtz has joined #angularjs
[10:34:50] *** Cydmax has joined #angularjs
[10:34:52] *** intellix has joined #angularjs
[10:34:56] *** Willow has quit IRC
[10:36:18] *** Xethron has joined #angularjs
[10:36:22] *** Cydmax has left #angularjs
[10:36:28] *** calvinx has quit IRC
[10:37:13] *** jayrobot has joined #angularjs
[10:37:46] *** mguillech has joined #angularjs
[10:38:42] *** calvinx has joined #angularjs
[10:39:12] *** Silne30 has joined #angularjs
[10:39:20] *** InezK_away is now known as InezK
[10:40:05] *** blak422 has joined #angularjs
[10:40:27] *** msarta has quit IRC
[10:40:46] *** goranradulovic has joined #angularjs
[10:41:17] <goranradulovic> Hi guys. Is there a way to intercept http request which loads
[10:41:26] <goranradulovic> the template into directive/controller
[10:41:26] *** morenoh151 has joined #angularjs
[10:42:11] *** Foxandxss has joined #angularjs
[10:42:22] *** mguillech has quit IRC
[10:42:34] <Somatt_wrk> goranradulovic: you can plug interecptors to all requests and check if it fits a pattern
[10:42:53] <goranradulovic> interesting idea
[10:43:05] <goranradulovic> any link where i can read more about that
[10:43:21] *** ineedarobot has joined #angularjs
[10:43:28] *** jkremser has joined #angularjs
[10:43:28] *** jkremser has joined #angularjs
[10:43:50] *** Silne30 has quit IRC
[10:44:03] *** UniBot1 has quit IRC
[10:44:30] <goranradulovic> Somatt_wrk: thanks a lot
[10:45:20] *** MistuhKurtz has quit IRC
[10:45:28] *** ColKurtz has joined #angularjs
[10:45:36] *** swamy has joined #angularjs
[10:46:04] <goranradulovic> yup i'll do it similarly
[10:46:07] *** morenoh151 has quit IRC
[10:46:14] *** bertrandk has quit IRC
[10:46:16] <goranradulovic> thanks a lot guys
[10:46:19] *** sergeyb has joined #angularjs
[10:46:37] <swamy> could anyone help out , how to implement seo based angularjs public website please
[10:47:06] <sergeyb> hey, did anyone have experience in writing e2e tests with firebase or parse?
[10:47:48] <frankblizzard> Somatt_wrk: so your click event does not fire?
[10:48:02] <Somatt_wrk> frankblizzard: yep
[10:48:03] <Somatt_wrk> :/
[10:48:03] *** melmouss_ has quit IRC
[10:48:16] *** swamy has quit IRC
[10:48:24] <Somatt_wrk> but I get the Error: [$location:ihshprfx] Invalid url
[10:48:24] <frankblizzard> pointer-events: none; maybe in css? ;)
[10:48:38] <Somatt_wrk> so the event gets fired, not the bound function
[10:48:44] *** Andy__ has joined #angularjs
[10:48:50] *** bencc has quit IRC
[10:49:16] <Andy__> Hey all,
[10:50:00] *** ColKurtz has quit IRC
[10:50:10] <Andy__> any idea why the codeschool free course video in the initial example of creating an alert() doesn't work based on the example he gives in the video?
[10:50:26] *** InezK is now known as InezK_away
[10:51:00] *** marr has joined #angularjs
[10:51:23] *** UniBot1 has joined #angularjs
[10:52:49] *** Andy__ has quit IRC
[10:53:58] *** AlexZ has quit IRC
[10:54:00] *** UniBot1 has quit IRC
[10:54:04] <frankblizzard> Somatt_wrk: seems correct to me, maybe remove the prevent default and see if the log fires then
[10:54:19] *** UniBot1 has joined #angularjs
[10:54:23] *** AlexZ has joined #angularjs
[10:54:41] <frankblizzard> probably not though
[10:54:53] <Somatt_wrk> frankblizzard: indeed
[10:55:01] *** UniBot1 has quit IRC
[10:55:19] *** UniBot1 has joined #angularjs
[10:55:36] *** jordandotdev has quit IRC
[10:55:49] *** UniBot1 has joined #angularjs
[10:56:07] *** tarnus has joined #angularjs
[10:56:40] *** dejanr has joined #angularjs
[10:57:29] *** ome has quit IRC
[10:58:27] *** intellix has quit IRC
[10:58:50] *** amedia has joined #angularjs
[10:58:55] <Somatt_wrk> frankblizzard: an update from 1.2.20 to 1.2.21 seems to have fixed the issue
[10:59:23] *** Willow has joined #angularjs
[10:59:47] *** foofoobar has quit IRC
[10:59:56] *** Hounddog has joined #angularjs
[11:00:17] *** tarnus has quit IRC
[11:01:07] <goranradulovic> How do i abort $http request with $http interceptor
[11:01:21] *** bbsss has joined #angularjs
[11:01:30] *** amedia has left #angularjs
[11:02:26] *** msarta has joined #angularjs
[11:02:29] *** foofoobar has joined #angularjs
[11:02:34] *** MistahKurtz has quit IRC
[11:03:02] <Somatt_wrk> goranradulovic: return a different response
[11:03:04] *** danielpquinn has joined #angularjs
[11:03:34] *** UniBot1 has quit IRC
[11:04:07] *** UniBot1 has joined #angularjs
[11:04:43] *** UniBot1 has quit IRC
[11:05:23] <goranradulovic> I'm affraid i don't understand
[11:05:46] *** intellix has joined #angularjs
[11:06:08] *** LoveAndHappiness has quit IRC
[11:06:25] *** bbsss has quit IRC
[11:07:22] *** klaut has joined #angularjs
[11:07:31] *** cotko has joined #angularjs
[11:07:35] *** AlSquire has joined #angularjs
[11:07:39] *** danielpquinn has quit IRC
[11:09:01] *** TorchDragon has joined #angularjs
[11:09:54] *** prikk has quit IRC
[11:10:06] *** kaeku has joined #angularjs
[11:11:27] *** morenoh151 has joined #angularjs
[11:11:49] *** kemm0 has quit IRC
[11:12:18] *** kemm0 has joined #angularjs
[11:12:36] *** MistahKurtz has joined #angularjs
[11:12:40] *** bbsss has joined #angularjs
[11:13:17] *** delight has joined #angularjs
[11:13:23] *** TorchDragon has quit IRC
[11:13:23] *** Somatt_wrk_ has joined #angularjs
[11:13:43] <Somatt_wrk_> goranradulovic: What are you trying to do ? With an interceptor you can prevent the request or change its response when it comes back
[11:14:09] *** plitzenberger has joined #angularjs
[11:14:12] <goranradulovic> i'm loading templates all at once with my php generated .js file
[11:14:32] <goranradulovic> and i want to intercept all requests for templateUrl and load $templateCache
[11:14:34] *** UniBot1 has joined #angularjs
[11:14:42] <goranradulovic> from that generated js file
[11:15:06] <Somatt_wrk_> if your $templateCache is filled with your templates, no request will be made
[11:15:10] <goranradulovic> and i'm doing that successfully but i when someone tries to fetch the template
[11:15:18] *** Somatt_wrk has quit IRC
[11:15:32] <goranradulovic> that does not exists i want to cancel the request
[11:15:38] *** FLaMeS has quit IRC
[11:15:44] *** dariocravero has quit IRC
[11:16:04] *** tangorri has joined #angularjs
[11:16:08] *** FLaMeS has joined #angularjs
[11:16:35] <Somatt_wrk_> goranradulovic: do you feed the $templateCache with all your templates on bootstrap ?
[11:16:36] *** morenoh151 has quit IRC
[11:17:00] <goranradulovic> i did,
[11:17:13] <goranradulovic> and it worked
[11:17:17] *** Guest____ has joined #angularjs
[11:17:29] <goranradulovic> but i decided to refactor the code
[11:17:39] <goranradulovic> and load only requested templates in $templateCache
[11:17:40] *** Joshee has quit IRC
[11:17:59] *** FLaMeS has joined #angularjs
[11:18:03] *** gunn has quit IRC
[11:18:12] *** Joshee has joined #angularjs
[11:18:24] *** danyim has joined #angularjs
[11:19:44] *** bbsss has quit IRC
[11:20:06] *** LoveAndHappiness has joined #angularjs
[11:21:10] *** RedOrangeZ has joined #angularjs
[11:21:16] *** gunn has joined #angularjs
[11:21:16] *** dejanr has quit IRC
[11:21:30] *** dejanr has joined #angularjs
[11:21:53] *** Left_Turn has joined #angularjs
[11:22:13] *** apetro_ has joined #angularjs
[11:22:46] *** bLu_ has joined #angularjs
[11:23:02] *** danyim has quit IRC
[11:25:03] *** plantian has quit IRC
[11:25:40] *** UniBot1 has quit IRC
[11:25:44] *** vintik has quit IRC
[11:25:45] *** plantian has joined #angularjs
[11:26:20] *** vintik has joined #angularjs
[11:26:27] *** UniBot1 has joined #angularjs
[11:26:31] *** duall has joined #angularjs
[11:26:43] *** TyrfingMjolnir has quit IRC
[11:27:11] *** duall has left #angularjs
[11:27:12] *** duall has joined #angularjs
[11:27:16] *** duall has left #angularjs
[11:27:18] *** jgravois has joined #angularjs
[11:27:29] *** one_zero has quit IRC
[11:27:30] *** duall has joined #angularjs
[11:27:39] *** duall has left #angularjs
[11:27:48] *** jtimon has quit IRC
[11:27:51] *** duall has joined #angularjs
[11:27:55] *** duall has left #angularjs
[11:28:01] *** combat has quit IRC
[11:28:10] *** duall has joined #angularjs
[11:28:13] *** UniBot1 has quit IRC
[11:28:38] *** LoveAndHappiness has quit IRC
[11:28:45] *** AlexZ has quit IRC
[11:28:45] *** LoveAndHappiness has joined #angularjs
[11:28:52] *** AlexZ has joined #angularjs
[11:29:13] *** eden_lane has quit IRC
[11:29:43] *** mikehaas763 has joined #angularjs
[11:30:05] *** goranradulovic has quit IRC
[11:30:30] *** CainVampyr has joined #angularjs
[11:30:34] *** vintik has quit IRC
[11:30:49] *** paceaux has joined #angularjs
[11:31:26] *** MistahKurtz has quit IRC
[11:31:42] *** UniBot1 has joined #angularjs
[11:31:54] *** jgravois has quit IRC
[11:31:58] *** AlexZanf has joined #angularjs
[11:32:10] *** bLu_ has quit IRC
[11:32:10] *** AlexZ has quit IRC
[11:32:26] *** patric100e99 has joined #angularjs
[11:32:45] *** bLu_ has joined #angularjs
[11:33:17] *** jon___ has joined #angularjs
[11:33:26] *** josh-k_ has quit IRC
[11:33:52] *** jordandotdev has joined #angularjs
[11:33:55] *** foofoobar has quit IRC
[11:33:57] *** josh-k has joined #angularjs
[11:34:03] *** mikehaas763 has quit IRC
[11:34:06] <paceaux> quick angular question: ngClick - I'd like to add ng-click to a button so that it opens a particular model in a new form
[11:34:29] <paceaux> documentation says that ngClick evaluates expressions, but it can do functions, right?
[11:34:35] <jon___> Is there a way to make data within a service non-persistent between route transitions? I want to initialise the service and have a blank slate to work from each time it's injected into a controller.
[11:35:05] *** vintik has joined #angularjs
[11:35:10] *** frankblizzard has quit IRC
[11:35:59] *** wilmoore has quit IRC
[11:37:04] *** bLu_ has quit IRC
[11:37:08] *** lefant has joined #angularjs
[11:37:17] *** patric100e99 has quit IRC
[11:37:50] *** optikalmouse has quit IRC
[11:38:22] *** josh-k has quit IRC
[11:38:22] *** LoveAndHappiness has quit IRC
[11:39:10] *** LoveAndHappiness has joined #angularjs
[11:39:13] *** Natsu- has quit IRC
[11:41:03] *** [n0b0dy] has quit IRC
[11:41:13] *** [n0b0dy] has joined #angularjs
[11:41:16] *** sonicblud has joined #angularjs
[11:41:20] *** fixl has joined #angularjs
[11:41:23] *** InezK_away is now known as InezK
[11:42:34] *** ChrisOei_ has joined #angularjs
[11:43:06] *** cyth has joined #angularjs
[11:43:11] *** plantian has quit IRC
[11:43:32] *** marr123 has joined #angularjs
[11:43:39] *** trippo_ has joined #angularjs
[11:43:42] *** busata_ has joined #angularjs
[11:43:44] *** delight has quit IRC
[11:43:52] *** amergin_ has joined #angularjs
[11:43:57] *** masscrx_ has joined #angularjs
[11:44:05] *** marr123 has quit IRC
[11:44:08] *** The_Kingdutch has joined #angularjs
[11:44:12] *** Petazz_ has joined #angularjs
[11:44:18] *** fredridv has joined #angularjs
[11:44:19] *** dagingaa_ has joined #angularjs
[11:44:20] *** brandom_ has joined #angularjs
[11:44:21] *** moo360_ has joined #angularjs
[11:44:22] *** uxtx_ has joined #angularjs
[11:44:22] *** meenuh_ has joined #angularjs
[11:44:23] *** joevandy1 has joined #angularjs
[11:44:24] *** daed_ has joined #angularjs
[11:44:26] *** taaz_ has joined #angularjs
[11:44:29] *** CainVampyr has quit IRC
[11:44:30] *** marr has quit IRC
[11:44:31] *** Foxandxss has quit IRC
[11:44:31] *** jayrobot has quit IRC
[11:44:32] *** evilaliv3 has quit IRC
[11:44:34] *** boonkerz has quit IRC
[11:44:34] *** lordkryss has quit IRC
[11:44:35] *** asdofindia has quit IRC
[11:44:35] *** Dimlock has quit IRC
[11:44:35] *** masella has quit IRC
[11:44:36] *** fbenoit has quit IRC
[11:44:36] *** Grokling_ has quit IRC
[11:44:37] *** nonsenz has quit IRC
[11:44:40] *** bkuberek has quit IRC
[11:44:40] *** fedenunez1 has quit IRC
[11:44:41] *** sssilver has quit IRC
[11:44:43] *** jory has quit IRC
[11:44:45] *** d10n has quit IRC
[11:44:45] *** alextucker has quit IRC
[11:44:46] *** amacgregor|afk has quit IRC
[11:44:47] *** jpstone has quit IRC
[11:44:51] *** SuRfDeMoN has quit IRC
[11:44:52] *** faddah has quit IRC
[11:44:55] *** robdubya_ has quit IRC
[11:44:56] *** baseonmars has quit IRC
[11:44:56] *** Nivag has quit IRC
[11:44:57] *** admix|away has quit IRC
[11:44:57] *** sptq has quit IRC
[11:44:59] *** BahamutWC|Laptop has quit IRC
[11:45:00] *** ChrisOei has quit IRC
[11:45:00] *** cythrawll has quit IRC
[11:45:01] *** bphogan_afk has quit IRC
[11:45:02] *** Kingdutch has quit IRC
[11:45:04] *** novist has quit IRC
[11:45:05] *** ClarusCogitatio_ has quit IRC
[11:45:05] *** uxtx has quit IRC
[11:45:06] *** _sean has quit IRC
[11:45:06] *** moo360 has quit IRC
[11:45:07] *** seanmarcia has quit IRC
[11:45:10] *** daed has quit IRC
[11:45:11] *** eighty4 has quit IRC
[11:45:12] *** fdv has quit IRC
[11:45:13] *** fiwsi has quit IRC
[11:45:15] *** Pilate has quit IRC
[11:45:15] *** reflecti` has quit IRC
[11:45:16] *** seventy3_away has quit IRC
[11:45:16] *** jscarmona has quit IRC
[11:45:17] *** brandom has quit IRC
[11:45:18] *** trippo has quit IRC
[11:45:23] *** SuperPhly has quit IRC
[11:45:24] *** Petazz has quit IRC
[11:45:25] *** amergin has quit IRC
[11:45:25] *** busata has quit IRC
[11:45:26] *** youngnico has quit IRC
[11:45:26] *** dagingaa has quit IRC
[11:45:26] *** masscrx has quit IRC
[11:45:26] *** taaz has quit IRC
[11:45:27] *** drweird has quit IRC
[11:45:27] *** binjured has quit IRC
[11:45:28] *** ckuehl has quit IRC
[11:45:30] *** joevandyk has quit IRC
[11:45:31] *** liori has quit IRC
[11:45:31] *** meenuh has quit IRC
[11:45:32] *** gwoo has quit IRC
[11:45:33] *** drweird_ has joined #angularjs
[11:45:36] *** SuRfDeMo1 has joined #angularjs
[11:45:36] *** evilaliv4 has joined #angularjs
[11:45:36] *** gwoo has joined #angularjs
[11:45:36] *** fbenoit_ has joined #angularjs
[11:45:37] *** harshitladdha93 has joined #angularjs
[11:45:38] *** d10n has joined #angularjs
[11:45:40] *** SuperPhly has joined #angularjs
[11:45:41] *** PPilate has joined #angularjs
[11:45:41] *** gwoo has quit IRC
[11:45:41] *** gwoo has joined #angularjs
[11:45:42] *** sptq has joined #angularjs
[11:45:42] *** boonkerz has joined #angularjs
[11:45:43] *** bphogan_afk has joined #angularjs
[11:45:43] *** asdofindia has joined #angularjs
[11:45:46] *** plantian has joined #angularjs
[11:45:46] *** chakkimatti has joined #angularjs
[11:45:47] *** CainVampyr has joined #angularjs
[11:45:47] *** binjured has joined #angularjs
[11:45:47] *** ClarusCogitatio has joined #angularjs
[11:45:47] *** ckuehl has joined #angularjs
[11:45:48] *** seanmarcia has joined #angularjs
[11:45:48] *** Grokling_ has joined #angularjs
[11:45:48] *** Dimlock has joined #angularjs
[11:45:51] *** sssilver has joined #angularjs
[11:45:51] *** jscarmona has joined #angularjs
[11:45:51] *** admix|away has joined #angularjs
[11:45:52] *** lordkryss has joined #angularjs
[11:45:53] <chakkimatti> hey all
[11:45:53] *** faddah has joined #angularjs
[11:45:57] *** Nivag has joined #angularjs
[11:45:58] *** baseonmars has joined #angularjs
[11:45:58] *** Foxandxss has joined #angularjs
[11:45:59] *** bkuberek has joined #angularjs
[11:46:01] *** alextucker has joined #angularjs
[11:46:02] *** seventy3_away has joined #angularjs
[11:46:02] *** eighty4 has joined #angularjs
[11:46:02] *** d10n has quit IRC
[11:46:03] *** d10n has joined #angularjs
[11:46:04] *** BahamutWC|Laptop has joined #angularjs
[11:46:06] *** nonsenz has joined #angularjs
[11:46:06] *** amacgregor has joined #angularjs
[11:46:06] *** youngnico has joined #angularjs
[11:46:06] *** seventy3_away is now known as seventy3
[11:46:06] *** Guest33850 has joined #angularjs
[11:46:07] *** fedenunez has joined #angularjs
[11:46:07] *** _sean has joined #angularjs
[11:46:08] *** intellix has quit IRC
[11:46:24] *** scrooge_mcduck has left #angularjs
[11:46:30] <chakkimatti> I'm looking into bower for asset management in Angular to avoid users having to reload (the production) The Angular-brunch-seed specifies a feature for development environment. Anyone know about brunch?
[11:46:32] *** quazimodo has quit IRC
[11:46:35] *** novist has joined #angularjs
[11:46:43] *** reflectivedev has joined #angularjs
[11:46:43] *** bertrandk has joined #angularjs
[11:46:59] *** fiws|meh has joined #angularjs
[11:47:02] <OnkelTem> Hi all. I experience very strange glitch. Randomly some images stop displaying. Any ideas?
[11:48:26] *** plitzenberger has quit IRC
[11:48:36] *** Schtive has joined #angularjs
[11:48:43] *** mzehrer_ has joined #angularjs
[11:49:05] <OnkelTem> This happens in Google Chrome, seems I can't reproduce it in FF
[11:49:11] *** mzehrer__ has joined #angularjs
[11:49:18] *** dejanr has quit IRC
[11:49:30] *** dejanr has joined #angularjs
[11:49:34] *** liori has joined #angularjs
[11:49:38] *** liori has joined #angularjs
[11:50:09] *** robdubya has joined #angularjs
[11:50:53] *** bertrandk has quit IRC
[11:51:09] *** InezK is now known as InezK_away
[11:51:15] *** delight has joined #angularjs
[11:51:30] *** xyNNN has quit IRC
[11:52:01] *** AlexZanf has quit IRC
[11:52:13] *** frankblizzard has joined #angularjs
[11:52:24] *** AlexZanf has joined #angularjs
[11:52:37] *** huuuk has joined #angularjs
[11:52:38] *** marr has joined #angularjs
[11:52:53] *** tschundeee has joined #angularjs
[11:54:01] *** leftblank has quit IRC
[11:54:21] *** jon___ has left #angularjs
[11:54:42] *** pluma has joined #angularjs
[11:55:42] *** paceaux has quit IRC
[11:55:53] *** LoveAndHappiness has quit IRC
[11:55:59] *** leftblank has joined #angularjs
[11:56:13] *** plantian has quit IRC
[11:56:22] *** josh-k has joined #angularjs
[11:56:48] *** azureknight has quit IRC
[11:57:05] <DrMabuse> anyone use pouchdb ?
[11:57:50] *** mykz_ has quit IRC
[11:57:58] <DrMabuse> or can help me
[11:58:07] <DrMabuse> i wann use pouchdb in a service
[11:58:25] <DrMabuse> the problem is that i get always undefined
[11:58:42] <DrMabuse> in my controler
[11:58:52] *** msarta has quit IRC
[11:58:55] <DrMabuse> but wehn i log the pouchdb result t is not empty
[11:59:22] *** zbzzn has joined #angularjs
[11:59:23] <DrMabuse> i need something like succes deferrer
[11:59:34] <DrMabuse> but this is still not available in puchdb
[12:00:02] *** charuru has quit IRC
[12:00:05] *** jacuqesdancona has joined #angularjs
[12:00:43] <DrMabuse> wehn i WorkpieceMaterialService.getMaterials() in my controller i get undefined
[12:00:55] *** Dan__ has joined #angularjs
[12:01:12] <DrMabuse> the log on line 28 is not empty but comes after log the getMaterials
[12:01:27] <DrMabuse> better way to resolve this ?
[12:01:28] *** charuru has joined #angularjs
[12:02:03] <Dan__> why are the controllers and views associated with each other twice: once in the route configuration and again in the ng-controller attribute of the view? isn't that redundant?
[12:02:05] *** marcospgp has joined #angularjs
[12:02:11] *** aliocha has quit IRC
[12:02:19] *** marcospgp has quit IRC
[12:02:24] *** xyNNN has joined #angularjs
[12:03:50] *** danielpquinn has joined #angularjs
[12:03:53] *** DevAntoine has quit IRC
[12:03:57] *** ceephax has quit IRC
[12:04:07] <jacuqesdancona> Hi guys, is it advicable to have a specific $resources in a dedicated service. So controllers talk to the service, which then internally talks to the $resource?
[12:04:13] <jacuqesdancona> advisable*
[12:04:27] <jacuqesdancona> for example a news service, with a news $resource
[12:05:04] *** asdofindia has quit IRC
[12:05:11] <DrMabuse> no one ?
[12:05:21] *** BMCouto has joined #angularjs
[12:05:22] <jacuqesdancona> the controllers talks to (eg) News.get(), and the get() method talks to the resource in the service
[12:05:58] <jacuqesdancona> so ultimately, all data retrieving and manipulation can be done in dedicated services
[12:05:59] <Dan__> jacuqesdanona, i'm a newbie, but that sounds like the way i've read you should do it
[12:06:42] <jacuqesdancona> Thanks Dan__
[12:06:51] <Dan__> also, i think what Angular calls services are traditionally called models. anyone else agree?
[12:07:03] <jacuqesdancona> I pretty much agree
[12:07:08] *** melmoussaoui has joined #angularjs
[12:07:18] <jacuqesdancona> That's what I'm trying to go for
[12:07:26] <jacuqesdancona> have specific services as models
[12:07:33] *** greengriminal has joined #angularjs
[12:07:41] <Dan__> and they misuse the word Controller too because each is coupled to a view. traditionally a controller is a thing that directs you to different views
[12:08:12] *** danielpquinn has quit IRC
[12:08:13] <jacuqesdancona> brb
[12:08:16] <OnkelTem> this is damned disaster, as I make App for Chrome!!!
[12:10:00] *** TorchDragon has joined #angularjs
[12:11:10] *** ome has joined #angularjs
[12:11:58] *** harshitladdha93 has quit IRC
[12:12:09] *** prbc has quit IRC
[12:12:46] *** Left_Turn has quit IRC
[12:13:08] *** vintik has quit IRC
[12:13:45] *** TimmyTones has joined #angularjs
[12:14:22] *** TorchDragon has quit IRC
[12:14:46] *** rotorgames has quit IRC
[12:14:51] *** mehlah has quit IRC
[12:15:33] *** asdofindia has joined #angularjs
[12:15:40] *** tangorri has quit IRC
[12:16:57] *** arek_at_work has joined #angularjs
[12:16:57] *** hmr has joined #angularjs
[12:17:02] *** plitzenberger has joined #angularjs
[12:17:42] *** josh-k has quit IRC
[12:17:43] *** hannesvdvreken has quit IRC
[12:17:51] *** Keika has joined #angularjs
[12:17:55] <Keika> hey guys
[12:18:09] *** josh-k has joined #angularjs
[12:18:31] *** InezK_away is now known as InezK
[12:18:45] *** bbsss has joined #angularjs
[12:18:53] *** t_p has quit IRC
[12:18:54] <Keika> little ui-router question, can I show a child view straight with a link in the browser's navigation bar? I want to access /messaging/show which is a child view of /messaging
[12:18:58] *** AlexZanf has quit IRC
[12:19:04] <patrickreck> Using Angulars validation, how can I check if the form is valid from my model?
[12:19:05] *** plantian has joined #angularjs
[12:19:24] *** AlexZanf has joined #angularjs
[12:19:25] *** bootsWitDaFur has quit IRC
[12:21:49] *** bootsWitDaFur has joined #angularjs
[12:22:16] *** josh-k has quit IRC
[12:22:18] *** Guest____ has quit IRC
[12:22:57] *** josh-k has joined #angularjs
[12:23:26] *** roolo has quit IRC
[12:24:35] *** Schtive has quit IRC
[12:24:37] *** orion1111 has joined #angularjs
[12:25:35] *** Hultis has joined #angularjs
[12:25:37] *** plantian has quit IRC
[12:26:23] *** Keika has quit IRC
[12:26:47] <Hultis> Hi, anyone know how to activate an directive only if the attribute is set true
[12:27:06] *** plantian has joined #angularjs
[12:27:22] *** dejanr has quit IRC
[12:27:32] *** josh-k has quit IRC
[12:27:43] <Hultis> I have an attribute restricited directive which I only want to invoke on directive-name="true"
[12:28:17] *** InezK is now known as InezK_away
[12:28:21] *** josh-k has joined #angularjs
[12:28:29] <Hultis> Or well I only want to activate the directive on the element if a cetain elemnt is true
[12:29:03] *** Left_Turn has joined #angularjs
[12:29:12] <Mattias> Lots of examples there
[12:29:18] <bealtine> ng-if ?
[12:29:36] *** jgravois has joined #angularjs
[12:29:53] *** josh-k_ has joined #angularjs
[12:30:14] <patrickreck> Mattias: I can't find any examples where they are checking it from the model
[12:30:21] *** mikehaas763 has joined #angularjs
[12:30:42] *** davedev24_ has joined #angularjs
[12:30:51] <Mattias> Because you don't. You check the actual form if it is valid or not.
[12:30:53] *** bbsss has quit IRC
[12:31:13] *** [n0b0dy] has quit IRC
[12:31:16] *** FIFOd[a] has joined #angularjs
[12:31:23] *** [n0b0dy] has joined #angularjs
[12:31:43] *** intellix has joined #angularjs
[12:31:44] *** bbsss has joined #angularjs
[12:31:47] *** plantian has quit IRC
[12:32:41] *** hannesvdvreken has joined #angularjs
[12:32:43] *** josh-k has quit IRC
[12:33:09] *** Guest____ has joined #angularjs
[12:33:20] *** joojis has quit IRC
[12:34:31] *** Joulse has quit IRC
[12:34:34] *** mikehaas763 has quit IRC
[12:34:48] *** msarta has joined #angularjs
[12:35:10] *** \du has joined #angularjs
[12:35:53] *** FIFOd[a] has quit IRC
[12:35:53] *** plantian has joined #angularjs
[12:37:29] *** hannesvdvreken has quit IRC
[12:37:45] *** hannesvdvreken has joined #angularjs
[12:38:19] *** seydoggy has joined #angularjs
[12:38:59] *** zfogg has quit IRC
[12:39:00] *** apetro_ has quit IRC
[12:39:11] *** mguillech has joined #angularjs
[12:39:24] *** soujiro has quit IRC
[12:39:56] *** soujiro has joined #angularjs
[12:40:04] *** jonasrosenlind has quit IRC
[12:40:10] *** Guiiks has joined #angularjs
[12:40:19] *** Willow has quit IRC
[12:40:47] *** Willow has joined #angularjs
[12:41:08] <Guiiks> Hello everybody :) I've a strange issue on Angular... I'm doing a logout (with an AuthService) and then a $state.go('login') to my login page again
[12:41:25] <Guiiks> but i get the following error: TypeError: Cannot read property '$$destroyed' of null
[12:42:49] *** roolo has joined #angularjs
[12:43:31] *** sigurding has quit IRC
[12:43:33] *** mykz_ has joined #angularjs
[12:43:34] *** mguillech has quit IRC
[12:43:44] <Guiiks> i tried removing all my code from the controller and the page but i still get the error :/
[12:43:58] *** AlexZanf has quit IRC
[12:44:13] *** TimmyTones has quit IRC
[12:44:15] <Hultis> Could someone help me out a bit?
[12:44:21] *** AlexZanf has joined #angularjs
[12:44:37] *** soujiro has quit IRC
[12:44:57] *** slainer68 has quit IRC
[12:45:53] *** Willow has quit IRC
[12:45:59] *** bejames has joined #angularjs
[12:47:04] *** dob_ has joined #angularjs
[12:48:27] *** DrMabuse has quit IRC
[12:49:55] *** intellix has quit IRC
[12:50:25] *** kirfu has joined #angularjs
[12:50:26] *** Methylated has joined #angularjs
[12:51:19] *** Joshee has quit IRC
[12:51:43] *** styles has quit IRC
[12:51:45] *** huuuk has quit IRC
[12:52:27] *** soujiro has joined #angularjs
[12:52:31] *** Methylated has quit IRC
[12:52:32] *** mindlace has joined #angularjs
[12:52:35] *** bbsss has quit IRC
[12:53:19] *** UniBot1 has quit IRC
[12:53:31] *** dejanr has joined #angularjs
[12:53:59] *** AlexZanf has quit IRC
[12:54:03] *** raibutera has quit IRC
[12:54:24] *** AlexZanf has joined #angularjs
[12:54:30] *** mindlace has quit IRC
[12:54:32] *** webus has quit IRC
[12:54:48] *** Click66 has quit IRC
[12:55:10] *** el_fuego has joined #angularjs
[12:55:50] *** Methylated has joined #angularjs
[12:56:01] *** earthquake has quit IRC
[12:56:08] *** zfogg has joined #angularjs
[12:56:14] *** Nivag has quit IRC
[12:56:33] *** Willow has joined #angularjs
[12:56:51] *** xyNNN has quit IRC
[12:57:03] *** tarnus has joined #angularjs
[12:57:03] *** drej has joined #angularjs
[12:58:16] *** dejanr has quit IRC
[12:58:34] *** bbsss has joined #angularjs
[12:58:50] *** Aswebb has joined #angularjs
[12:59:00] <Aswebb> Hi everyone
[12:59:56] *** JLF has joined #angularjs
[13:00:19] *** JLF is now known as Guest81653
[13:01:47] *** tarnus has quit IRC
[13:02:20] *** LoveAndHappiness has joined #angularjs
[13:02:46] <Guest81653> Does anyone know whether (or how) ng-options is used with <input> tag? I can't find any documentation on this
[13:04:05] *** wiherek has joined #angularjs
[13:04:07] <wiherek> hi
[13:04:12] *** Reskp has joined #angularjs
[13:04:13] *** kirfu has quit IRC
[13:04:20] <wiherek> i am building an app that plays a lot of videos
[13:04:26] <wiherek> which come in lists
[13:04:35] <wiherek> and i want it to be fast :)
[13:04:36] *** danielpquinn has joined #angularjs
[13:04:43] *** jonasrosenlind has joined #angularjs
[13:04:43] *** nielsle has joined #angularjs
[13:04:51] *** combat has joined #angularjs
[13:04:53] <wiherek> those videos come from youtube, vimeo and other services
[13:05:34] <wiherek> does anyone have experience with video-heavy sites? what are the best practices to load videos fast on mobile?
[13:05:47] *** Serdar has joined #angularjs
[13:06:10] *** JakeSays has quit IRC
[13:06:17] *** mattwynne has joined #angularjs
[13:06:18] *** pibu7 has quit IRC
[13:06:29] *** AlexZanf has quit IRC
[13:06:35] *** plantian has quit IRC
[13:06:51] *** AlexZanf has joined #angularjs
[13:07:46] *** sergeyb has quit IRC
[13:07:47] *** jkremser has quit IRC
[13:07:54] <zomg> wiherek: don't load the video =)
[13:07:58] *** calvinx has quit IRC
[13:08:15] <zomg> if at all possible, show something that is not the video, and only start loading it with user interaction
[13:08:26] *** dejanr has joined #angularjs
[13:08:33] <wiherek> thats how it works now
[13:08:39] <wiherek> but when the user plays the video
[13:08:45] *** nCrazed has quit IRC
[13:08:51] <wiherek> i should probably load another in the background
[13:08:53] <wiherek> which I do
[13:09:04] <wiherek> but I dont yet attach it to the DOM
[13:09:15] <zomg> Depends on whether you have a reasonable ability to guess that they will watch it next
[13:09:21] *** sergeyb has joined #angularjs
[13:09:26] *** danielpquinn has quit IRC
[13:09:33] <zomg> If you don't have that, then you're just potentially wasting their bandwidth
[13:09:34] <wiherek> I was thinking maybe putting something like ng-hide on the next video DOM element
[13:09:43] <wiherek> so it can actually preload
[13:09:54] <wiherek> yea, they go through a list
[13:10:02] *** Joulse has joined #angularjs
[13:10:07] <wiherek> a user can click next, or it will autoadvance
[13:10:14] *** DrMabuse has joined #angularjs
[13:10:22] <wiherek> if a user clicks another one, well, there's no guessing what a user will do
[13:10:27] <wiherek> :o
[13:10:38] <zomg> preloading a video might make it a bit faster yeah
[13:10:43] <zomg> depending on the connection speed
[13:10:46] <Anton_> you can measure how often user watch our next video vs random video
[13:10:48] *** TorchDragon has joined #angularjs
[13:10:55] <zomg> as in, if they have a fast connection which would be able to stream the video, then the benefit is probably lower
[13:11:17] <wiherek> yea. it works OK on desktop
[13:11:22] *** zuzkins has joined #angularjs
[13:11:28] <wiherek> but it's not youtube-fast yet :S
[13:11:32] *** mguillech has joined #angularjs
[13:11:45] *** Vloz has quit IRC
[13:11:55] *** zuzkins has left #angularjs
[13:12:11] *** Vloz has joined #angularjs
[13:12:34] *** LoveAndHappiness has quit IRC
[13:12:39] <wiherek> i think i am looking for something like a guide
[13:12:40] <Anton_> but I wonder if it's helpful at all. If user's connection allows real-time viewing then preloading doesn't help much as zomg just said
[13:12:50] *** LoveAndHappiness has joined #angularjs
[13:13:00] <wiherek> or best practices of fast content delivery with AngularJS
[13:13:04] <Anton_> if user has low connection, then you make him wait for current video longer by taking part of bandwidth
[13:13:52] *** plantian has joined #angularjs
[13:13:56] <Anton_> wiherek: I don't think angular and fast content delivery are related
[13:14:18] <wiherek> well, i need them to be.
[13:14:30] *** Methylated has quit IRC
[13:14:42] <wiherek> i already optimized the build, the whole app now is just three files :)
[13:14:55] <wiherek> now I need to optimize loading the content
[13:14:55] <Anton_> angular won't increase speed of bandwidth of the user for loading video
[13:15:11] <wiherek> true... that's not what I want to do though
[13:15:16] *** TorchDragon has quit IRC
[13:17:26] *** enaqx has quit IRC
[13:18:10] *** enaqx has joined #angularjs
[13:18:47] *** Click66 has joined #angularjs
[13:19:14] *** InezK_away is now known as InezK
[13:19:29] *** mattwynn_ has joined #angularjs
[13:19:45] *** danyim has joined #angularjs
[13:20:23] *** zfogg has quit IRC
[13:20:38] *** mattwynne has quit IRC
[13:21:25] <zbzzn> I have a strange phenomenon where if I define a field on the scope and then bind it to a checkbox using ng-model it doesn't work but if I define the same property on the scope using Object.defineProperty it works perfectly
[13:21:31] *** UniBot has joined #angularjs
[13:21:54] <wiherek> try binding it to an object property, not a primitive
[13:22:17] *** citizen-stig has joined #angularjs
[13:22:20] <zbzzn> but it is the same property save the metadata of the property
[13:22:39] <wiherek> it really matters what the scope variable is
[13:22:43] *** plitzenberger has quit IRC
[13:23:00] <wiherek> if a primitive value is assigned to it, the inner scope will override it
[13:23:18] <wiherek> if you reference an object though, it will always reference the same object
[13:23:34] <zbzzn> no, you don't understand
[13:24:07] *** MaxV has quit IRC
[13:24:11] <zbzzn> its the same property once defined using $scope.foo and once Object.defineProperty($scope,'foo')
[13:24:22] *** Nivag has joined #angularjs
[13:24:22] *** fbenoit_ has quit IRC
[13:24:27] *** danyim has quit IRC
[13:24:31] *** patrickreck has quit IRC
[13:24:31] <zbzzn> I will try to reproduce in a plunk when I have time
[13:24:34] *** MaxV has joined #angularjs
[13:25:02] *** Joulse has quit IRC
[13:26:06] *** maveneagle has quit IRC
[13:26:34] *** Hultis has quit IRC
[13:26:52] *** DrMabuse has quit IRC
[13:27:11] *** Keika has joined #angularjs
[13:27:36] <Keika> little ui-router question, can I show a child view straight with a link in the browser's navigation bar? I want to access /messaging/show which is a child view of /messaging
[13:27:55] *** secondjeff has joined #angularjs
[13:28:21] <wiherek> just route to the child state
[13:28:29] <Keika> i've tried
[13:28:36] *** evilaliv4 has quit IRC
[13:28:38] <Keika> it send me back to home route
[13:28:45] <Keika> the one set in .otherwise
[13:28:52] <wiherek> yea
[13:29:00] *** InezK is now known as InezK_away
[13:29:02] *** ngrt has joined #angularjs
[13:29:04] *** MaxV has quit IRC
[13:29:14] <wiherek> do you have an ui-view directive for each of your nested states?
[13:29:34] *** Grokling_ has quit IRC
[13:29:37] *** UniBot has quit IRC
[13:30:02] <Keika> yep
[13:30:07] *** sk87 has quit IRC
[13:30:26] <Keika> i've got one in the parent state, that should call the child state right?
[13:30:37] *** FunnyLookinHat has joined #angularjs
[13:30:43] *** hannesvdvreken has quit IRC
[13:31:05] *** mikehaas763 has joined #angularjs
[13:31:53] <wiherek> yea, you basically need one for every state in the state-tree
[13:32:14] <wiherek> you can't have anything like ng-controller in the html
[13:32:30] *** LoveAndHappiness has quit IRC
[13:32:35] <Keika> dont have anything all blank but for the ui-view directive
[13:32:38] *** plitzenberger has joined #angularjs
[13:32:42] *** secondjeff has quit IRC
[13:32:48] <Keika> but now I made it work
[13:32:49] *** sigurding has joined #angularjs
[13:32:53] <Keika> but the route is now: /messaging/messaging/show/
[13:33:02] *** LoveAndHappiness has joined #angularjs
[13:33:17] <Keika> I've used $state.go('messaging.show') in the parent's controller
[13:33:17] *** UniBot has joined #angularjs
[13:33:26] *** TyrfingMjolnir has joined #angularjs
[13:33:28] <Keika> dont get what's wrong
[13:33:32] <wiherek> what's the state's url?
[13:33:43] <wiherek> and messaging.url?
[13:33:56] *** patric100e99 has joined #angularjs
[13:33:58] <wiherek> and is messaging an abstract state?
[13:33:59] <Keika> state('messaging.show', {
[13:34:00] <Keika> url: '/messaging/show/',
[13:34:00] <Keika> templateUrl: 'views/messaging/showMessage.html',
[13:34:00] <Keika> controller: 'ShowMessageCtrl'
[13:34:00] <Keika> })
[13:34:05] *** UniBot has quit IRC
[13:34:13] <wiherek> and messaging?
[13:34:17] *** bencc has joined #angularjs
[13:34:21] <wiherek> or
[13:34:22] *** UniBot has joined #angularjs
[13:34:35] <Keika> .state('messaging', {
[13:34:35] <Keika> url: '/messaging',
[13:34:35] <Keika> templateUrl: 'views/messaging/showMessages.html',
[13:34:35] <Keika> controller: 'ShowConversationsCtrl'
[13:34:36] <Keika> })
[13:34:38] <wiherek> just do url: '/messaging' for messaging
[13:34:43] <Keika> i do
[13:34:46] <wiherek> and url:
[13:34:49] <greengriminal> I Have an array of packages. Inside each indvidual package this contains an array of versions.
[13:34:49] <greengriminal> So in order to get versions for each indvidual package I loop around the packages, then loop around the versions.
[13:34:50] <greengriminal> The problem at hand is that it prints out the entire array of versions for each package (So you end up with a long list).
[13:34:50] <greengriminal> What it should do is print out the "versions" for that package
[13:34:50] <wiherek> '/show' for
[13:34:57] <wiherek> messaging.show
[13:35:03] *** hannesvdvreken has joined #angularjs
[13:35:04] *** jtimon has joined #angularjs
[13:35:31] <wiherek> just '/show', without the trailing slash
[13:35:59] *** mikehaas763 has quit IRC
[13:36:16] <Keika> ok cool
[13:36:20] <Keika> works well now
[13:36:25] <Keika> thanks wiherek
[13:36:30] *** TimmyTones has joined #angularjs
[13:36:30] <wiherek> np
[13:37:29] *** LoveAndHappiness has quit IRC
[13:37:38] *** DrMabuse has joined #angularjs
[13:37:48] *** Vovin has quit IRC
[13:38:04] <greengriminal> I am pretty sure what I am doing is right to some extent. Because I can't get the package versions by doing $scope.package.versions because this will give back a undefined method 'length' which is why i looped around the package and then the versions
[13:38:22] *** patric100e99 has quit IRC
[13:39:09] *** msafi has joined #angularjs
[13:39:34] *** armno has quit IRC
[13:39:55] *** xyNNN has joined #angularjs
[13:40:16] *** holymac has joined #angularjs
[13:40:22] *** chrisbirk has joined #angularjs
[13:40:29] *** plantian has quit IRC
[13:40:38] *** apetro_ has joined #angularjs
[13:40:59] <msafi> Guys, I have nested promises inside a forEach, is there anyway to fire some code when all of those promises have returned?
[13:41:22] *** Vovin has joined #angularjs
[13:41:30] *** grindmodeon has joined #angularjs
[13:41:45] *** jdj_dk has quit IRC
[13:43:27] *** ppppaul has quit IRC
[13:43:56] *** seydoggy has quit IRC
[13:43:59] *** grindmodeon has quit IRC
[13:44:01] *** eperez has joined #angularjs
[13:44:17] *** UniBot has quit IRC
[13:44:30] *** seydoggy has joined #angularjs
[13:44:41] *** seydoggy has quit IRC
[13:44:45] *** jamto11 has joined #angularjs
[13:44:52] *** DrMabuse has quit IRC
[13:44:53] *** calumet has joined #angularjs
[13:44:59] *** UniBot has joined #angularjs
[13:45:03] *** seydoggy has joined #angularjs
[13:45:15] *** eperez has quit IRC
[13:45:50] *** eperez has joined #angularjs
[13:46:06] *** knownasilya has joined #angularjs
[13:46:18] *** ppppaul has joined #angularjs
[13:46:36] *** chrisbirk has quit IRC
[13:46:43] *** intellix has joined #angularjs
[13:47:15] *** drej has quit IRC
[13:47:34] *** dob_ has quit IRC
[13:47:37] *** kirfu has joined #angularjs
[13:48:01] *** dob_ has joined #angularjs
[13:48:34] *** maveneagle has joined #angularjs
[13:49:06] *** AlexZanf has quit IRC
[13:49:10] *** plitzenberger has quit IRC
[13:49:37] *** dwaynemac has joined #angularjs
[13:49:43] *** orion1111 has quit IRC
[13:49:47] *** Guest____ has quit IRC
[13:50:04] *** eperez has quit IRC
[13:50:25] *** eperez has joined #angularjs
[13:50:25] *** quantax- has joined #angularjs
[13:50:37] *** jdowdle is now known as jdowdle|afk
[13:51:41] *** MaxV has joined #angularjs
[13:52:26] *** DoniRS has joined #angularjs
[13:52:38] <bd> msafi: add them to an array then use $q.all(listOfPromises).then(function() { .. })
[13:52:47] *** lordkryss_ has joined #angularjs
[13:52:56] *** matpb has joined #angularjs
[13:53:32] *** Imdsm^ is now known as Imdsm
[13:54:22] <msafi> bd did that load for you?
[13:55:16] <Keika> wiherek: do you know if I can have multiple named view at the root of my app (index.html) ?
[13:55:18] *** grindmodeon has joined #angularjs
[13:55:40] *** dob__ has joined #angularjs
[13:55:58] *** whitebook has joined #angularjs
[13:56:04] *** lordkryss has quit IRC
[13:56:16] *** holymac_ has joined #angularjs
[13:56:18] <msafi> bd, should I push all these promises in the gist to an array?
[13:56:20] *** asdofindia has quit IRC
[13:56:31] <andern> how does one properly serve i 404 page in angularjs? this seems to be more difficult than it should be. my initial thought was to just redirect all calls to site.tld/404 and then put up an apache rule that serves a 404 on /404. however, this does not satisfy my need to have the url in the browser. if i go to site.tld/whatever, I want to be served a 404 status, a 404 page and with site.tld/whatever in the address bar in the browser.
[13:56:39] *** tbo_ has joined #angularjs
[13:56:46] *** dob_ has quit IRC
[13:56:54] *** zfogg has joined #angularjs
[13:56:57] <bd> probably, if the isVideo etc return a promise already you can use that
[13:57:16] <bd> $q.all([isVideo(newFile), isPdf(newFile) ...]).then( ...
[13:57:37] *** slainer68 has joined #angularjs
[13:57:39] <bd> why you need promises to determine the file type i do not know
[13:57:41] <andern> how can one achieve this? currently i'm serving a error document with javascript in it that changes the address bar of the browser (only html5 compatible browsers)
[13:58:02] <msafi> bd, it's just an example.
[13:58:30] <msafi> bd, but in $q.all([isVideo(newFile), isPdf(newFile) ...]).then( …, these promises are not nested and interdependent
[13:58:34] <msafi> Like in my code
[13:58:35] *** sidthekid has joined #angularjs
[13:58:44] <bd> andern: .otherwise on $routeProvider
[13:59:01] <bd> or the ui-router equivilent if you're using that
[13:59:12] *** asdofindia has joined #angularjs
[13:59:41] <wiherek> Keika i think so :)
[13:59:43] <bd> why are they nested?
[13:59:45] *** Sebastien-L has quit IRC
[13:59:48] <bd> they don't look like they need to be nested
[14:00:00] *** holymac has quit IRC
[14:00:11] *** fouzko has quit IRC
[14:00:11] <msafi> bd: it's sort of like a switch statement or if statements
[14:00:15] <sidthekid> anyone who's done ui prototyping for mobiles.? I have a noob question..(pm)
[14:00:21] <andern> bd: currently i'm doing this: $routeProvider.otherwise({redirectTo: '/404' + window.location.pathname });
[14:00:24] <Keika> i've seen I can do it from a view, but I don't want to have to do it on each and every state
[14:00:30] <msafi> bd: not all the code needs to run if a type is found already
[14:00:33] *** swirlycheetah has joined #angularjs
[14:00:40] *** fouzko has joined #angularjs
[14:00:40] <andern> and /404/(.+) shows a 404 page, and changes the address bar to $1
[14:00:41] *** ericbarnes has joined #angularjs
[14:00:44] *** tarnus has joined #angularjs
[14:00:52] *** matpb has quit IRC
[14:00:59] *** watsonkp has joined #angularjs
[14:01:01] <andern> however, that's not really a good solution imo
[14:01:01] *** HardFu has joined #angularjs
[14:01:01] *** HardFu has joined #angularjs
[14:01:25] <wiherek> Keika ^^
[14:01:34] <andern> i ALSO need to show a 404 page if I have a route, let's say /article/:id, and someone puts an invalid id in the url
[14:02:16] <bd> msafi: ok so nest them and create and resolve/reject your own promises
[14:02:46] <Keika> wiherek: that's what I was reading, but it doesn't say if I can apply it once and leave it there
[14:02:48] <msafi> bd: yeah, so there's no way to cleanly handle this pattern. I have to change the pattern.
[14:02:48] *** lsiv568 has joined #angularjs
[14:03:04] *** robclancy has joined #angularjs
[14:03:08] *** Joulse has joined #angularjs
[14:03:21] <wiherek> you mean not reload the views?
[14:03:24] *** matpb has joined #angularjs
[14:03:32] <wiherek> the feature is called sticky views
[14:03:37] *** bengillies has quit IRC
[14:04:05] <Keika> so I should "stick it" in the ('/') route you think?
[14:04:15] *** plitzenberger has joined #angularjs
[14:04:20] <wiherek> thats not ui router and i dont recommend it.
[14:04:30] *** metasansana has quit IRC
[14:04:45] <wiherek> I had use cases which needed that kind of functionality
[14:04:47] *** Robbo` has quit IRC
[14:04:48] *** holymac_ has quit IRC
[14:04:49] *** sidthekid has quit IRC
[14:04:50] <wiherek> and it's not a good way to go
[14:04:53] *** ingshtrom has joined #angularjs
[14:05:07] <wiherek> if you can, try navigating one of the views with query params
[14:05:23] *** danielpquinn has joined #angularjs
[14:05:25] <wiherek> then you should have them separate kind of.
[14:05:36] <Keika> hmm ok
[14:05:47] <Keika> it's just so I can have a nav bar and do stuff in it
[14:06:04] *** sidthekid has joined #angularjs
[14:06:09] <Keika> maybe I can just manage with a ng-controller and stick all the html in index.html
[14:06:15] *** Sgeo has quit IRC
[14:06:28] *** bengillies has joined #angularjs
[14:06:59] *** Limarson has joined #angularjs
[14:07:26] <bd> msafi: look at using the full q promise library
[14:07:32] <bd> it might have something for what you need
[14:07:40] <msafi> cool. thanks!
[14:07:42] *** Limarson has quit IRC
[14:07:58] *** earthquake has joined #angularjs
[14:08:01] *** bmac has joined #angularjs
[14:08:34] *** calumet has quit IRC
[14:09:22] *** whitebook has quit IRC
[14:09:30] *** jharbaugh has joined #angularjs
[14:09:31] *** prbc_ has joined #angularjs
[14:09:47] *** danielpquinn has quit IRC
[14:11:03] *** leftblank has quit IRC
[14:11:35] *** TorchDragon has joined #angularjs
[14:11:44] *** Xethron has quit IRC
[14:12:23] *** jdj_dk has joined #angularjs
[14:13:04] *** wwnnbb_ has joined #angularjs
[14:13:28] *** hychen has quit IRC
[14:13:32] *** wwnnbb has quit IRC
[14:13:32] *** wwnnbb_ is now known as wwnnbb
[14:13:42] *** jgravois has quit IRC
[14:13:50] *** dob__ has quit IRC
[14:13:57] *** dob_ has joined #angularjs
[14:15:16] *** geiltalasdair has joined #angularjs
[14:15:20] *** Reskp has quit IRC
[14:15:27] *** seydoggy has quit IRC
[14:15:54] *** Reskp has joined #angularjs
[14:15:56] *** TorchDragon has quit IRC
[14:16:01] *** seydoggy has joined #angularjs
[14:16:18] *** Reskp has quit IRC
[14:16:31] *** ineedarobot has quit IRC
[14:17:04] *** jdj_dk has quit IRC
[14:17:20] *** fbenoit has joined #angularjs
[14:17:59] *** BMCouto has quit IRC
[14:18:15] *** Hultis has joined #angularjs
[14:18:22] *** bootsWitDaFur has quit IRC
[14:18:33] *** bphogan_afk is now known as bphogan
[14:18:53] *** GeneralMaximus has joined #angularjs
[14:19:00] *** JasonStoltz has joined #angularjs
[14:19:20] *** fouzko_ has joined #angularjs
[14:19:28] *** geilt has quit IRC
[14:19:30] *** batat has joined #angularjs
[14:19:34] *** bootsWitDaFur has joined #angularjs
[14:19:36] *** DrMabuse has joined #angularjs
[14:19:41] *** kaeku has quit IRC
[14:19:41] *** pibu7 has joined #angularjs
[14:20:02] *** InezK_away is now known as InezK
[14:20:03] *** kaeku has joined #angularjs
[14:20:09] *** JasonStoltz has quit IRC
[14:20:22] *** seydoggy has quit IRC
[14:20:36] *** jkremser has joined #angularjs
[14:20:36] *** jkremser has joined #angularjs
[14:20:42] *** JasonStoltz has joined #angularjs
[14:21:00] *** teddyp1cker has joined #angularjs
[14:22:04] *** fouzko has quit IRC
[14:22:09] *** metavige_ has joined #angularjs
[14:22:28] *** metavige_ has quit IRC
[14:22:32] *** mehlah has joined #angularjs
[14:22:48] *** metavige_ has joined #angularjs
[14:23:01] *** atomical has joined #angularjs
[14:24:07] *** DevAntoine has joined #angularjs
[14:24:35] *** bjr217 has joined #angularjs
[14:24:59] *** sergeyb has quit IRC
[14:25:10] *** kc3 has quit IRC
[14:25:20] *** kc3 has joined #angularjs
[14:25:27] *** djam90 has joined #angularjs
[14:26:04] *** grindmodeon has quit IRC
[14:26:07] *** BMCouto has joined #angularjs
[14:26:23] *** enaqx has quit IRC
[14:26:37] *** metavige_ has quit IRC
[14:27:06] *** mykz_ has quit IRC
[14:27:43] *** wiherek has quit IRC
[14:28:08] *** matpb has quit IRC
[14:28:12] *** UniBot has quit IRC
[14:28:17] *** matpb has joined #angularjs
[14:28:26] *** Efrem has joined #angularjs
[14:28:26] *** metavige_ has joined #angularjs
[14:29:02] <Dan__> why do open source projects compete against each other?
[14:29:04] *** caitp has joined #angularjs
[14:29:15] *** ineedarobot has joined #angularjs
[14:29:22] <xat-> why not?
[14:29:23] <pagenoare> probably because it runs things
[14:29:42] *** InezK is now known as InezK_away
[14:29:48] <Dan__> what does 'it runs things' mean?
[14:30:06] *** enaqx has joined #angularjs
[14:30:40] *** eden_lane has joined #angularjs
[14:30:49] *** Efrem has quit IRC
[14:31:05] *** Efrem has joined #angularjs
[14:31:46] *** mikehaas763 has joined #angularjs
[14:32:06] *** Ethix has joined #angularjs
[14:32:31] *** jamto11 has quit IRC
[14:32:45] *** jamto11 has joined #angularjs
[14:33:08] *** ccohn has joined #angularjs
[14:33:10] *** bayousoft has quit IRC
[14:35:58] *** UniBot has joined #angularjs
[14:36:17] *** Sebastien-L has joined #angularjs
[14:36:34] *** mikehaas763 has quit IRC
[14:36:36] *** UniBot has quit IRC
[14:36:41] *** drej has joined #angularjs
[14:36:49] *** UniBot has joined #angularjs
[14:37:14] <greengriminal> I've seem to mess up my ng-repeat, there's some packages that don't have a version, so why would they appear on all listed items.
[14:37:35] *** plitzenberger has quit IRC
[14:38:29] *** plantian has joined #angularjs
[14:38:49] *** UniBot has quit IRC
[14:38:57] *** metavige has quit IRC
[14:38:59] *** tomzx`afk is now known as tomzx
[14:39:08] *** UniBot has joined #angularjs
[14:39:27] *** metavige_ is now known as metavige
[14:39:49] *** mfunkie has joined #angularjs
[14:39:49] *** lordkryss_ is now known as lordkryss
[14:39:58] *** Snugug has joined #angularjs
[14:40:43] *** sk87 has joined #angularjs
[14:40:59] *** ccohn has quit IRC
[14:41:05] *** bertrandk has joined #angularjs
[14:41:08] *** Ethix has quit IRC
[14:41:24] *** mccarrontr1ck has joined #angularjs
[14:41:38] *** ccohn has joined #angularjs
[14:41:57] *** DrMabuse_ has joined #angularjs
[14:42:32] *** mykz_ has joined #angularjs
[14:42:38] *** el_fuego has quit IRC
[14:42:39] *** Guest___ has joined #angularjs
[14:42:49] *** plantian has quit IRC
[14:43:31] *** plantian has joined #angularjs
[14:43:54] *** prikk has joined #angularjs
[14:43:58] *** UniBot has quit IRC
[14:45:01] *** phuh has joined #angularjs
[14:45:24] *** evilaliv3 has joined #angularjs
[14:45:33] *** thomastuts has joined #angularjs
[14:45:34] *** zfogg has quit IRC
[14:45:34] *** Spockz|ING has joined #angularjs
[14:45:55] *** kishor has joined #angularjs
[14:46:12] *** bphogan is now known as bphogan_afk
[14:46:14] *** ccohn has quit IRC
[14:46:54] *** mc___ has joined #angularjs
[14:46:55] <kishor> hi anybody here
[14:46:58]
<thomastuts> Hey guys, just published a small bower package that lets you extract keywords and values from a gmail-like search string, would love some feedback on it if you have any :) https://github.com/thomastuts/inquirer
[14:46:58] *** calvinx has joined #angularjs
[14:47:25] *** bphogan_afk is now known as bphogan
[14:47:33] *** batat has quit IRC
[14:47:46] *** atomical has quit IRC
[14:47:59] *** plantian has quit IRC
[14:48:13] *** mrpoulpy has joined #angularjs
[14:48:35] *** klaut has quit IRC
[14:49:01] *** ngoyal has joined #angularjs
[14:49:15] *** greengriminal has left #angularjs
[14:49:32] <mc___> thomastuts, a demo page will be great :P
[14:49:51] *** bencc has quit IRC
[14:50:11] *** msarta has quit IRC
[14:50:14] *** boneskull has quit IRC
[14:50:19] <kishor> is anybody know where I can ask about problems
[14:50:27] *** leftblank has joined #angularjs
[14:50:35] <matpb> here
[14:50:47] <DevAntoine> is there a simple way to make an anchor, like back to top?
[14:50:47] <kishor> thanks
[14:51:03] *** bencc has joined #angularjs
[14:51:31] *** ngoyal has quit IRC
[14:51:31] <thomastuts> mc___: great idea, will get right on that :)
[14:52:03] <kishor> actually I am new in angularjs I'v done little bit work on it. but sometime I'v problem with the basics of angularjs
[14:52:05] *** ngoyal has joined #angularjs
[14:52:16] *** mrpoulpy has quit IRC
[14:52:19] <kishor> can u tell me where I can get those
[14:52:42] *** Guiiks has quit IRC
[14:52:58] *** darrin has joined #angularjs
[14:53:32] *** quantax- has quit IRC
[14:53:37] <Dan__> kishor, first thing you need to know... angular has a lot of misnamed concepts. controllers are called routers. models are called services. ui-specific code units are called controllers
[14:53:53] *** UniBot has joined #angularjs
[14:53:57] *** jamto11 has joined #angularjs
[14:54:24] *** patrick99e99 has quit IRC
[14:54:40] *** bertrandk has quit IRC
[14:54:57] <kishor> the first one is not good for get all basics
[14:55:01] *** lordkryss has quit IRC
[14:55:11] *** patrick99e99 has joined #angularjs
[14:55:15] <jacuqesdancona> has anyone worked with lazy loading modules, like ocLazyLoad?
[14:55:15] <kishor> and doc is not enough
[14:55:39] *** Siecje1 has joined #angularjs
[14:55:52] *** jgravois has joined #angularjs
[14:56:18] <mc___> check the videos on the second link, i don't know what do you mean with the basics, most of the time you will have to check the source code if you want to understand what is doing behind
[14:56:33] *** imehesz has joined #angularjs
[14:56:46] *** ngoyal has quit IRC
[14:56:51] *** Rajendra has joined #angularjs
[14:56:59] *** Natsu- has joined #angularjs
[14:57:01] *** teslanick has joined #angularjs
[14:57:05] <kishor> ok I'll tell about particular problems
[14:57:29] *** eperez has quit IRC
[14:57:36] *** Nizumzen has joined #angularjs
[14:57:44] <jacuqesdancona> My idea is to have model-modules and the module itself, like a news-model-module and module with the controllers
[14:58:08] <jacuqesdancona> and I'd like to split up every controller as a file
[14:58:13] *** daniele9821 has joined #angularjs
[14:58:28] <daniele9821> hello all
[14:58:30] <jgravois> hi. I have 2 classes clrOn and clrOff (just different colors) and a series of icons that should be clrOff UNLESS a $scope variable is TRUE. I am assigning clrOff to all and using ng-class="{ 'clrOn' : app.attachments }" to try to override clrOn is $scope.app.attachments is TRUE. This is not working.
[14:58:33] *** elrabin has joined #angularjs
[14:58:34] *** jamto11 has quit IRC
[14:58:45] *** Rajendra has quit IRC
[14:58:55] <daniele9821> sameone use protractor ore samething else to test angular e2e?
[14:59:27] <kishor> like when I learning about caching json data then saw the function that is declared as list: and find: type and even I was not aware of that kind of format.
[14:59:41] <kishor> that annoying me
[15:00:39] *** eperez_ has joined #angularjs
[15:00:49] <kishor> sometime I have to analyze about the predefined function like forEach loop, how it works.
[15:01:00] *** bob_____ has joined #angularjs
[15:01:04] *** VictorBjelkholm has joined #angularjs
[15:01:07] *** mattwynn_ has quit IRC
[15:01:22] *** mattwynne has joined #angularjs
[15:01:23] *** calumet has joined #angularjs
[15:01:23] *** teslanick has left #angularjs
[15:01:29] <kishor> so I just want to check all the basic things. in which way it works
[15:01:58] *** bob_____ has quit IRC
[15:02:00] *** caitp has quit IRC
[15:02:01] <kishor> this chat box is also messy
[15:02:21] *** bulkan has joined #angularjs
[15:02:25] *** caitp has joined #angularjs
[15:02:42] *** Schtive has joined #angularjs
[15:02:51] <Dan__> and a stackoverflow tag for angularjs
[15:02:59] *** bphogan is now known as bphogan_afk
[15:03:17] *** bulkan has quit IRC
[15:03:41] *** grindmodeon has joined #angularjs
[15:03:51] *** mmitchel_ has joined #angularjs
[15:03:55] *** zbzzn has quit IRC
[15:04:44] *** apetro_ has quit IRC
[15:05:19] *** apetro_ has joined #angularjs
[15:05:37] *** bengillies has quit IRC
[15:06:09] *** lucasefe has quit IRC
[15:06:13] *** danielpquinn has joined #angularjs
[15:06:48] <Dan__> why are the controllers and views associated with each other twice: once in the route configuration and again in the ng-controller attribute of the view? isn't that redundant?
[15:07:03] *** melmoussaoui has quit IRC
[15:07:24] *** mmccook has joined #angularjs
[15:07:50] <Dan__> what happens when the two associations disagree?
[15:07:58] <caitp> Dan__: ng-controller and the router are totally unrelated
[15:08:05] *** plitzenberger has joined #angularjs
[15:08:20] <caitp> so it's not clear what you're askin
[15:09:04] *** TorchDragon has joined #angularjs
[15:09:25] *** linojon has joined #angularjs
[15:09:26] <Dan__> i'm not sure how to clarify. i understand they're unrelated, but in the router, i create associations between templates and controllers. in the template, i set a controller attribute.
[15:10:01] *** apetro_ has quit IRC
[15:10:08] *** drej has quit IRC
[15:10:16] *** MANCHUCK has joined #angularjs
[15:10:35] <Dan__> so if the router says template A goes with controller 4 and in template A the ng-controller attribute is set to controller 6, what happens?
[15:10:45] *** martins has joined #angularjs
[15:10:48] *** wwnnbb has quit IRC
[15:10:55] *** sergeyb has joined #angularjs
[15:10:55] *** bertrandk has joined #angularjs
[15:11:23] *** danielpquinn has quit IRC
[15:11:29] *** martins has quit IRC
[15:11:31] *** FLaMeS has quit IRC
[15:11:57] *** blckbrd has joined #angularjs
[15:12:00] <caitp> an element can have lots of controllers
[15:12:09] <caitp> so, what ends up happening sort of depends
[15:12:13] *** fedenunez has quit IRC
[15:12:13] *** zivester has joined #angularjs
[15:12:13] *** bengillies has joined #angularjs
[15:12:21] <TweedleDee> You guys have saved me hours, if you have a few seconds I put together a pastebin about my inability to use a webapi method, i'm sure its something simple -- Thanks yet again
[15:12:21] *** mdedetrich has joined #angularjs
[15:12:48] *** Serdar has quit IRC
[15:13:01] *** lordkryss has joined #angularjs
[15:13:01] <kirfu> How do I modify the $http.defaults.headers.common, inside an HttpInterceptor Service?
[15:13:07] <Dan__> an element can have multiple controllers? i've never seen that
[15:13:19] <kirfu> I keep getting circular dependency injection :(
[15:13:23] *** FunnyLookinHat has quit IRC
[15:13:29] *** Keika has quit IRC
[15:13:35] <caitp> Dan__, if you have multiple directives with controllers on the same element,y ou have multiple controllers on the same element
[15:13:36] <Dan__> i can do <section data-ng-controller="Controller1 Controller2 Controller3"> ?
[15:14:28] <caitp> you can't do that
[15:14:55] <caitp> you can <section my-directive-with-controller my-other-directive-with-controller ng-controller="whatever">
[15:15:15] *** mkc has joined #angularjs
[15:15:21] *** Petazz_ is now known as Petazz
[15:15:24] *** salah has joined #angularjs
[15:15:59] *** RyanHirsch_ has joined #angularjs
[15:16:09] *** jeffszusz has joined #angularjs
[15:16:43] *** angularjs has joined #angularjs
[15:16:50] <Dan__> ok, i think i'm getting it. I was under the impression that a particular template file has a single controller set by the ng-controller attribute of the top element
[15:17:02] *** RyanHirsch_ is now known as RyanHirsch
[15:17:22] *** tpyo has joined #angularjs
[15:17:32] <Dan__> and confused about what happens what that controller is different from what is set in the router configuration
[15:17:46] *** kirfu has quit IRC
[15:17:47] <Dan__> *when
[15:17:59] *** cspra85 has joined #angularjs
[15:18:05] *** jonasrosenlind has quit IRC
[15:18:06] *** Seus has joined #angularjs
[15:18:09] *** Asiajey has joined #angularjs
[15:18:09] *** Asiajey has joined #angularjs
[15:18:21] <angularjs> hey greetings, I defined with the routeProvider my routes which works well. Now I want to pass some settings for every route which I do with $routeProvider.when('/News', { templateUrl: 'App/View/news.html', settings: { showHeader: false, isEnabled:false } }). [...]
[15:18:51] <angularjs> how can I access this settings in the controller which is matching with the route?
[15:18:53] *** foofoobar has joined #angularjs
[15:19:13] <Siecje1> angularjs: why not specify them in the controller
[15:19:19] *** Leonan has joined #angularjs
[15:19:34] <angularjs> I want to place them in a central place
[15:19:39] <angularjs> the settings
[15:19:41] <BahamutWC> if you inject $route, you may have access to them in something like $route.current
[15:19:45] *** apetro_ has joined #angularjs
[15:19:56] <BahamutWC> or you could instead place the settings in a resolve
[15:19:58] <angularjs> thanks I try it
[15:20:09] <BahamutWC> that way it becomes an injectable in the controller
[15:20:18] *** drej has joined #angularjs
[15:20:32] *** ccohn has joined #angularjs
[15:20:35] *** InezK_away is now known as InezK
[15:20:37] <salah> fetchPhase is pasted in from PhaseService just for this example
[15:20:45] *** mfunkie has quit IRC
[15:21:12] *** mfunkie has joined #angularjs
[15:21:13] <salah> When I run console.log, the data is received. It's just the DOM that does not update
[15:21:22] *** nodweber has joined #angularjs
[15:21:31] *** danyim has joined #angularjs
[15:21:45] *** lsiv568 has quit IRC
[15:22:04] *** bejames has quit IRC
[15:22:11] *** lsiv568 has joined #angularjs
[15:22:15] <angularjs> ah ok, its the same as route.current.params
[15:22:22] *** Keika has joined #angularjs
[15:22:22] *** kishor has quit IRC
[15:22:29] <Dan__> how did you guys learn angular? i've been at it 3 months and just don't get it
[15:23:09] *** TyrfingMjolnir has quit IRC
[15:23:21] <Siecje1> When using the http cache property how can you remove objects from the cache.
[15:23:44] *** raypulver has quit IRC
[15:23:47] <Siecje1> So if I make a new object the request for all objects needs to hit the server and not use the cache
[15:23:47] <angularjs> hmm with $routeParams I only retriev a _proto_ object
[15:24:16] *** xavia has joined #angularjs
[15:24:58] <BahamutWC> Dan__: I learned the hard way
[15:25:27] <house> i too am learning it the hard way.
[15:25:29] <BahamutWC> a lot of my learning challenges was learning good application design though
[15:25:29] *** sergeyb has quit IRC
[15:25:33] *** richiebkr has joined #angularjs
[15:25:33] *** danyim has quit IRC
[15:25:36] <house> one challenging feature of the application at a time
[15:25:49] <house> but then when you complete the feature, you look back and say. got it.
[15:25:56] <house> what's next.
[15:26:02] *** mennea has quit IRC
[15:26:10] <house> do that for a year, and you'll be in good shape.
[15:26:15] *** taaz_ is now known as taaz
[15:26:16] <Dan__> i can't even make a single page
[15:26:23] <house> then you havent really tried too hard
[15:26:28] *** lsiv568 has quit IRC
[15:26:34] <Dan__> hell fucking yes, i have tried hard
[15:26:37] *** uf6668 has joined #angularjs
[15:26:40] *** bkuberek_ has joined #angularjs
[15:26:46] <house> ok. sorry for my unproductive comment
[15:26:53] <house> how about this:
[15:27:20] <house> spend today reading the most helful (for you) of this:
[15:27:23] *** prbc_ has quit IRC
[15:27:26] *** BillCriswell has joined #angularjs
[15:27:28] *** screamingbanshee has joined #angularjs
[15:27:34] *** uf6667 has quit IRC
[15:27:43] <Dan__> how can one possibly determine what is most helpful without reading every article
[15:27:53] *** bkuberek_ has quit IRC
[15:27:57] <house> well.. what do you want to accomplish with angular today?
[15:28:23] <Dan__> display data from a database on a page using meanjs
[15:28:53] <house> ok so, i wont focus on all of MEAN, but for the A in MEAN
[15:29:20] *** mennea has joined #angularjs
[15:29:32] *** bayousoft has joined #angularjs
[15:29:48] <Dan__> i have done tutorials, but they're not real. i just want to do simple things the way an expert does them
[15:29:55] <house> you will need a service to pull data from node/express (i suggest you base your service on $resource for dealing with rest)
[15:29:59] *** richiebkr has quit IRC
[15:30:09] <house> you will need a controller to assign data from your service to your scope
[15:30:22] <house> and you will need views that pull data from your scope
[15:30:25] *** bkuberek has quit IRC
[15:30:29] *** InezK is now known as InezK_away
[15:30:42] <house> this is the high level of what you should seek to accomplish today
[15:31:17] *** davedev24_ has quit IRC
[15:31:21] <Dan__> i've got those things. the problem is getting the data to be available in time
[15:31:24] <house> as for the node/express/mongo part (the data plumbing for your api)
[15:31:39] <house> thats a lot of other issues beyond angular.
[15:31:46] <house> in time?
[15:31:53] *** screamingbanshee has quit IRC
[15:31:53] <house> promises
[15:32:00] *** kamanato has joined #angularjs
[15:32:05] <Dan__> before the template runs.
[15:32:07] *** teeray has joined #angularjs
[15:32:10] *** lsiv568 has joined #angularjs
[15:32:15] <house> $resource will handle that in a blackbox way
[15:32:21] *** kamanato has quit IRC
[15:32:32] *** jonasrosenlind has joined #angularjs
[15:32:39] *** mikehaas763 has joined #angularjs
[15:32:42] <Dan__> but the devil is in the details. i've been looking at code involving $resource for days
[15:32:57] <house> if you use $http in your service, then you will need to write the promises manually
[15:33:09] *** francisl has joined #angularjs
[15:33:12] <Dan__> no idea what "write the promises manually" means
[15:33:24] *** FIFOd[a] has joined #angularjs
[15:33:32] <Leonan> Hey
[15:33:37] <Dan__> my background is java. everything async is new to me
[15:33:39] <Leonan> someone can help me?
[15:33:40] <house> with $resource no need to inject $q etc.
[15:34:01] <house> i use java (wildfly) for my api
[15:34:19] <house> and angular for my front end (in my current project)
[15:34:28] <house> not sure if i can help, but i can try.
[15:34:40] *** cspra85 has quit IRC
[15:35:10] *** apetro_ has quit IRC
[15:35:38] <Dan__> i don't think getting java to do the api is going to help me understand the front end part
[15:35:45] *** stodan has quit IRC
[15:35:45] *** apetro_ has joined #angularjs
[15:35:56] *** zfogg has joined #angularjs
[15:36:03] *** krawek has joined #angularjs
[15:36:04] *** jlambert has joined #angularjs
[15:36:06] <house> no.. i was talking to leonan
[15:36:09] <house> about java
[15:36:11] *** Keika has quit IRC
[15:36:32] <house> for you, yuo will be writing your api on Mongo/Express/Node
[15:36:46] <Dan__> right
[15:36:58] *** mikehaas763 has quit IRC
[15:37:27] *** cspra85 has joined #angularjs
[15:37:38] *** mdedetrich has quit IRC
[15:37:42] *** _0xDE1337 has joined #angularjs
[15:37:47] *** FIFOd[a] has quit IRC
[15:38:02] *** josh-k_ has quit IRC
[15:38:12] <_0xDE1337> Hello! IS there any reason Angular would not switch to using jQuery instead of jqLite?
[15:38:20] *** mikehaas763 has joined #angularjs
[15:38:25] <_0xDE1337> Trying to get a very simple app to run in IE8. Much thanks
[15:38:28] *** btyne has joined #angularjs
[15:38:37] <blak422> have you loaded jquery?
[15:38:48] <_0xDE1337> blackjid: Yes
[15:38:49] <drej> have you tried turning it off and on again?
[15:38:59] <house> _0xDE1337 load jquery first
[15:39:00] <Dan__> it's in my list dancancro.com/comparison-of-angularjs-application-starters/
[15:39:02] *** juanlas has joined #angularjs
[15:39:06] <house> (before angular)
[15:39:15] <_0xDE1337> Yes, before angular.
[15:39:25] <house> then you should be good to go.
[15:39:33] *** FunnyLookinHat has joined #angularjs
[15:39:36] <drej> ... wrong room, sorry
[15:39:37] *** Xethron has joined #angularjs
[15:39:37] *** apetro__ has joined #angularjs
[15:39:37] *** FunnyLookinHat has quit IRC
[15:39:38] *** FunnyLookinHat has joined #angularjs
[15:39:38] *** Xethron has quit IRC
[15:39:38] *** Xethron has joined #angularjs
[15:39:47] <blak422> Dan__ id recommend hapijs for REST by far the easiest
[15:40:05] *** secondjeff has joined #angularjs
[15:40:10] *** apetro_ has quit IRC
[15:40:22] <_0xDE1337> house: I understand it _should_ be working. But it isn’t.
[15:40:36] *** s3shs has joined #angularjs
[15:40:44] <house> thats odd. it works OK for me. are you using windows maybe?
[15:40:49] <house> ive seen lots of wierd stuff on windows
[15:40:58] <house> that never happens on linux.
[15:41:11] <_0xDE1337> Yes. Trying to get it to run in IE8. That’s why it’s an issue
[15:41:15] <daniele9821> hello all .... sameone know e2e protractor?
[15:41:20] <house> oh yeah.. you might be in trouble
[15:41:45] *** endash has joined #angularjs
[15:41:55] <house> google doesnt seem to be whole-hearted in its support for IE
[15:41:58] <Dan__> arghh, now it is just working and i have no idea why
[15:42:09] *** joshontheweb has joined #angularjs
[15:42:13] <house> you just needed to talk to me.
[15:42:13] <house> heh
[15:42:29] <_0xDE1337> Getting: “Object doesn’t support this property or method” when angular tries to call `document.querySelector`
[15:42:32] <drej> house why would they be?
[15:42:33] *** tbo_ has quit IRC
[15:42:37] <house> exactly
[15:42:47] <_0xDE1337> Yeah… however my employer is rather invested in IE
[15:42:57] <house> so angular might not be the best path for you
[15:43:06] *** bencc has quit IRC
[15:43:08] <house> google plans to drop support for ie8 with their 1.3
[15:43:08] *** ngoyal has joined #angularjs
[15:43:12] <house> lib
[15:43:28] *** mikehaas763 has quit IRC
[15:43:28] <_0xDE1337> house: And that’s why I am using 1.2.21
[15:43:43] <Guest81653> does it make sense that scope variables change within the view but remain the same within the controller?
[15:43:46] <house> well, i just mean that, they wont go on support 1.2x for ever
[15:43:47] *** dejanr has quit IRC
[15:43:54] *** lucasefe has joined #angularjs
[15:44:01] <daniele9821> no people know protractor??
[15:44:11] <_0xDE1337> house: I bet I can keep a copy of it for the lifetime of this app
[15:44:18] <house> hi daniele9821
[15:44:20] *** klaut has joined #angularjs
[15:44:24] <house> you know me, not so big on testing.
[15:44:25] *** plantian has joined #angularjs
[15:44:28] *** jdowdle|afk is now known as jdowdle
[15:44:32] *** plitzenberger has quit IRC
[15:44:40] *** phuh has quit IRC
[15:44:44] <house> yep. your call.
[15:44:45] <Leonan> Hey someone can help me in a doubt?
[15:44:49] <daniele9821> hi house i know...
[15:44:53] <amergin_> my situation: <div direcA> <div ng-repeat="w in windows" class="direcB"> <div class="w.variableWhichTriggersDirectiveC"></div> </div> </div>. I see the last directive class gets the right value, but the directive is not called. If I take the last directive from inside these directives, it does get instantiated. What could cause this?
[15:45:06] <Leonan> I have a java web application and front-end with angularJS
[15:45:07] *** phuh has joined #angularjs
[15:45:08] <_0xDE1337> Using a different browser isn’t an option. Most of the firm uses IE
[15:45:19] *** Snugug has quit IRC
[15:45:25] <angularjs> hi Leonan
[15:45:32] <Leonan> hey
[15:45:33] *** UniBot has quit IRC
[15:45:35] *** fouzko_ has quit IRC
[15:45:48] *** dejanr has joined #angularjs
[15:46:01] *** fouzko has joined #angularjs
[15:46:10] *** Patrick_Baitman has joined #angularjs
[15:46:19] *** sirkitree|afk has joined #angularjs
[15:46:22] <amergin_> any idea's why instantiating a directive dynamically inside a directive would not work?
[15:46:23] <house> so _0xDE1337, you can prob. work through the issues on 1.2x but they may not always be straight forward
[15:46:23] *** sirkitree|afk is now known as sirkitree
[15:46:28] <amergin_> ideas*
[15:46:37] *** styles has joined #angularjs
[15:46:41] <house> and a pain in the butt to solve.. kinda like the present jquery issue.
[15:46:45] *** lucasefe has quit IRC
[15:46:46] <house> your dealing with.
[15:46:46] *** apetro__ has quit IRC
[15:46:53] <house> sorry i cant be more of help..
[15:46:55] <house> on that.
[15:46:56] <Leonan> I have a java web application and front-end with angularJS.. In my index.html i have an div with ng-view that i load my routes.. But there is a login page and after logIn i need display the dashboard (with menus something like) but when i'm on login i need to hide this element... someone know how can i?
[15:47:01] *** lucasefe has joined #angularjs
[15:47:23] *** ascarter has joined #angularjs
[15:47:26] *** francisl has quit IRC
[15:47:38] <angularjs> tried ng-show="vm.bool" ?
[15:47:48] <Leonan> me?
[15:47:52] <_0xDE1337> Leonan: or ng-hide
[15:48:00] <angularjs> sure Leonan
[15:48:08] <Leonan> yeah i had tried
[15:48:13] <Leonan> but it doesnt work
[15:48:34] *** zfogg has quit IRC
[15:48:37] <Leonan> because i check if the sessionID (that i send to my back, return the user) is create
[15:48:38] <_0xDE1337> But it sounds like a a different view partial is the better way to go?
[15:49:01] *** plantian has quit IRC
[15:49:01] *** Xethron has quit IRC
[15:49:02] *** dwaynemac has quit IRC
[15:49:16] <Leonan> but always the menu display
[15:49:34] *** bengillies has quit IRC
[15:49:43] *** recidive has joined #angularjs
[15:49:54] *** _0xDE1337 has quit IRC
[15:50:26] *** mykz_ has quit IRC
[15:50:43] <Leonan> angularjs: has gmail or skyp°
[15:50:48] <Leonan> angularjs: has gmail or skype?
[15:50:49] *** fouzko has quit IRC
[15:51:01] <angularjs> nope Leonan
[15:51:04] *** bengillies has joined #angularjs
[15:51:25] <Leonan> you have any idea to solve?
[15:51:26] <drej> angularjs you dont have skyp° ? weirdo
[15:51:35] *** bbsss has left #angularjs
[15:51:38] *** eperez_ has quit IRC
[15:51:40] <Leonan> have you any idea
[15:51:42] <angularjs> :>
[15:51:56] *** joshontheweb has quit IRC
[15:51:58] <amergin_> how about my problem, any ideas on that?
[15:52:09] *** alho has joined #angularjs
[15:52:13] *** eperez has joined #angularjs
[15:52:22] *** disorder20 has joined #angularjs
[15:52:47] *** HardFu has quit IRC
[15:52:58] *** carpediembaby has joined #angularjs
[15:53:24] *** patrick99e99 has quit IRC
[15:53:34] *** atomical has joined #angularjs
[15:53:42] *** apetro_ has joined #angularjs
[15:54:26] *** plantian has joined #angularjs
[15:54:48] *** digia|away is now known as digia
[15:55:15] *** jamto11 has joined #angularjs
[15:55:55] *** kirfu has joined #angularjs
[15:56:26] *** orion1111 has joined #angularjs
[15:56:32] *** gordroid has joined #angularjs
[15:56:40] *** eperez has quit IRC
[15:56:42] <carpediembaby> Hello, I have a piece of html that is generated by a WYSIWYG editor but when i display it using ng-bind-html, i get a badparse error. What are the possibilities of resolving this?
[15:57:06] *** sk87 has quit IRC
[15:57:23] *** Nizumzen has quit IRC
[15:57:46] *** fouzko has joined #angularjs
[15:58:08] *** jpstone has joined #angularjs
[15:58:22] <bd> carpediembaby: probably need $sce
[15:58:25] <Leonan> I have a java web application and front-end with angularJS.. In my index.html i have an div with ng-view that i load my routes.. But there is a login page and after logIn i need display the dashboard (with menus something like) but when i'm on login i need to hide this element... someone know how can i?
[15:58:44] <carpediembaby> bd: what is that?
[15:58:47] *** bootsWitDaFur has quit IRC
[15:58:53] *** arthas has joined #angularjs
[15:58:53] *** arthas has joined #angularjs
[15:59:08] *** tomzx is now known as tomzx`afk
[15:59:09] <bd> santises html for use in bindings, go look up $sce in angular docs
[15:59:37] *** danielcastro has joined #angularjs
[15:59:48] *** apetro_ has quit IRC
[16:00:06] *** UniBot has joined #angularjs
[16:00:24] *** apetro_ has joined #angularjs
[16:00:31] *** jdj_dk has joined #angularjs
[16:00:36] *** kirfu has quit IRC
[16:00:37] *** Destos has joined #angularjs
[16:00:37] *** fedenunez has joined #angularjs
[16:00:45] *** encrypt3d_fracti has joined #angularjs
[16:00:55] <DevAntoine> Leonan: something like ng-if="user.isLogged()"
[16:00:57] *** jamto11 has quit IRC
[16:01:00] <jaawerth> carpediembaby: the error should also provide the string it failed to parse
[16:01:39] *** Keika has joined #angularjs
[16:01:55] *** Leonan has quit IRC
[16:02:03] <jaawerth> Leonan: does your app use server- or client-side routing?
[16:02:09] *** shackleford has joined #angularjs
[16:02:15] *** walden|afk is now known as walden
[16:02:19] <jaawerth> ack, haha
[16:02:24] <jaawerth> too slow
[16:02:39] *** UniBot has quit IRC
[16:02:53] <carpediembaby> jaawerth: yes, i did. The badparse page only says that the parser is stricter than normal html parsers and if there is a clean parse by some validator, a bug should be reported. But I don't know of a parser which parses incomplete html (without the doctype, encoding, etc) information. So of course it generates errors while validating. But i see no issues with the html after a manual inspection (in my opinion).
[16:03:06] *** jtimon has quit IRC
[16:03:19] *** avens has joined #angularjs
[16:03:21] <jaawerth> carpediembaby: does it provide the string that failed to parse?
[16:03:27] *** sirkitree is now known as sirkitree|afk
[16:03:49] *** phuh has quit IRC
[16:03:56] *** eperez has joined #angularjs
[16:04:08] *** plantian has quit IRC
[16:04:08] *** francisl has joined #angularjs
[16:04:19] *** phuh has joined #angularjs
[16:04:33] *** sirkitree|afk is now known as sirkitree
[16:04:33] *** Bade has joined #angularjs
[16:04:46] <bd> angular should parse that fine
[16:04:47] *** apetro_ has quit IRC
[16:04:52] <bd> maybe wrap the whole thing in a <div>
[16:04:58] <bd> it might not expect a text node first
[16:05:06] <jaawerth> or try $sce
[16:05:09] *** yoshokatana has joined #angularjs
[16:05:22] *** jdj_dk has quit IRC
[16:05:35] *** apetro_ has joined #angularjs
[16:05:52] *** mamarilmanson has joined #angularjs
[16:06:12] *** apetro_ has joined #angularjs
[16:06:12] *** dcherman has joined #angularjs
[16:06:29] <carpediembaby> bd: i looked it up and it seems to be present by default and there is no example shown to use it apart from ng-bind-html, which, i am using already
[16:06:55] *** danielpquinn has joined #angularjs
[16:06:57] *** mamarilmanson has quit IRC
[16:07:11] <kirfu|work> How can I edit the $http.defaults.headers.common in an HTTPInterceptor?
[16:07:11] *** shackleford has quit IRC
[16:07:21] *** mamarilmanson has joined #angularjs
[16:07:34] *** zwacky has quit IRC
[16:07:34] *** shackleford has joined #angularjs
[16:07:43] *** rbs has joined #angularjs
[16:07:49] <bd> carpediembaby: yes but you need to use it
[16:08:17] <bd> inject $sce, then $scope.whatever = $sce.trustAsHtml(yourHtml); and ng-bind-html="whatever"
[16:08:33] *** phuh has quit IRC
[16:08:38] <kirfu|work> How can I edit the $http.defaults.headers.common in an HTTPInterceptor service? I can't seem to pass the "$http" provider in because it creates a circular dependancy :(
[16:09:12] *** mamarilmanson has quit IRC
[16:09:16] *** UniBot has joined #angularjs
[16:09:25] *** lite_ has quit IRC
[16:09:37] <bd> kirfu|work: $httpProvider.defaults.headers.common
[16:09:55] <bd> inject $httpProvider into app config() function
[16:10:06] <jaawerth> you wouldn't want to modify the defaults in an interceptor, though
[16:10:11] <kirfu|work> bd: I can't insert the $httpProvider into the service either. It will create a circular dependancy.
[16:10:15] *** UniBot has quit IRC
[16:10:20] *** apetro_ has quit IRC
[16:10:22] <jaawerth> kirfu|work: interceptors are for modifying headers directly on each request, the defaults are how each request are initially generated if no config object overrides it, so you can't modify the defaults in an interceptor
[16:10:26] <jaawerth> IIRC
[16:10:31] *** UniBot has joined #angularjs
[16:10:34] <kirfu|work> api returns a 401. I want to make sure the authroization header is cleared.
[16:10:35] *** plitzenberger has joined #angularjs
[16:11:08] *** UniBot has quit IRC
[16:11:22] *** UniBot has joined #angularjs
[16:11:23] *** danielpquinn has quit IRC
[16:11:30] *** joshontheweb has joined #angularjs
[16:11:32] *** dcherman has quit IRC
[16:11:58] <bd> injectthe authorization header per request and not as a default
[16:12:00] <kirfu|work> User logs in they have an access token > I set it as the default authorization header. That access token ebcomes invalid at some point and api returns 401. I need to ensure it's unset.
[16:12:07] <jaawerth> kirfu|work: what bd says
[16:12:08] *** bencc has joined #angularjs
[16:12:13] *** renz_ has joined #angularjs
[16:12:30] <kirfu|work> bd: but then that means all my services will need to know ahead of time if it needs authorization.
[16:12:35] *** CodeFriar has joined #angularjs
[16:12:42] <jaawerth> what I do is I add the authorization header with an interceptor on each request from a service that checks login status and pulls my webtoken from sessionStorage
[16:12:46] <kirfu|work> why should my angular app know what needs authorization ahead of time?
[16:12:53] *** silentimp has joined #angularjs
[16:12:54] *** chrisbirk has joined #angularjs
[16:12:57] <VeeWee> when passing an object with sub-objects to $http params, the generated URL is not the standard URL-encoded format. Is there a workaround?
[16:13:31] <bd> don't understand what you mean, kirfu|work
[16:13:34] *** davedev24_ has joined #angularjs
[16:13:42] <bd> why would they need to know ahead of time?
[16:13:43] <kirfu|work> Well not all my http calls to the api need authorization
[16:13:45] <kirfu|work> but some do.
[16:13:45] <jaawerth> kirfu|work: if the services don't need authorization and it's a trusted API, you can send the token/header regardless.
[16:13:59] <bd> right, so how does setting auth as a default header help with that?
[16:14:01] <jaawerth> the parts that don't need authorization can just ignore it
[16:14:01] <kirfu|work> because I'd have to set the auth header in each call, that's what you said.
[16:14:06] *** tumdedum has quit IRC
[16:14:12] <kirfu|work> it's always there and the api can decide if it needs it or not.
[16:14:15] <bd> no, you use an interceptor to add the header to each request
[16:14:20] <bd> rather than setting it as a default header
[16:14:27] *** GianArb has joined #angularjs
[16:14:29] *** apetro_ has joined #angularjs
[16:14:33] *** negval has quit IRC
[16:14:36] *** UniBot has quit IRC
[16:14:38] <kirfu|work> so then api call > 401 return > api call > 200
[16:14:51] *** UniBot has joined #angularjs
[16:14:52] *** rho has joined #angularjs
[16:14:52] *** rho has joined #angularjs
[16:14:59] *** zivester has quit IRC
[16:15:24] *** UniBot has quit IRC
[16:15:26] *** mary5030 has joined #angularjs
[16:15:31] *** tumdedum has joined #angularjs
[16:15:32] *** kirfu|work1 has joined #angularjs
[16:15:42] <kirfu|work> 2 api calls?
[16:15:42] *** kirfu|work has quit IRC
[16:15:48] *** eamonn has quit IRC
[16:15:56] *** chrisbirk has quit IRC
[16:15:58] *** rbs has quit IRC
[16:16:09] *** lando_ has quit IRC
[16:16:17] *** rbs has joined #angularjs
[16:16:20] *** avens_ has joined #angularjs
[16:16:21] *** eamonn has joined #angularjs
[16:16:23] <jaawerth> what?
[16:16:31] <jaawerth> you'd have to do 2 api calls anyway if there's a 401
[16:16:34] *** DrMabuse has quit IRC
[16:16:45] *** eden_lane has quit IRC
[16:16:45] *** avens_ has quit IRC
[16:16:47] <jaawerth> at least, to get a successful call
[16:16:50] *** avens has quit IRC
[16:17:02] *** daryllxd has joined #angularjs
[16:17:07] *** seydoggy has joined #angularjs
[16:17:12] <kirfu|work1> right, but if I include the auth then it works. The interceptor is for scenarios when it expires or some other unexpected failure.
[16:17:26] *** RubenCordeiro has joined #angularjs
[16:17:37] <daryllxd> qq guys, for templating do you use HTML, or is it better to use haml/slim. working with yeoman
[16:17:40] *** avens has joined #angularjs
[16:17:42] *** mephinet has quit IRC
[16:17:45] *** dcherman has joined #angularjs
[16:17:51] <DevAntoine> I've got the following line in a directive: $("body").animate({scrollTop:0}, "slow"); but nothing happens (not even an error). Am I missing something?
[16:18:10] *** Hultis has quit IRC
[16:18:12] <drej> daryllxd i like writing my own html , though haml will speed things up if you are proficient with it
[16:18:32] *** mpaarating has joined #angularjs
[16:18:51] <bd> kirfu|work1: yea so move that logic into the interceptor that handles adding the auth header to outgoing requests
[16:18:56] <bd> you don't need to mess around with header defaults
[16:19:00] <daryllxd> @drej yeah it's sort of "whatever floats your boat" I think? I used haml in Rails, might as well in Angular
[16:19:02] *** mephinet has joined #angularjs
[16:19:15] *** phuh has joined #angularjs
[16:19:22] *** teddyp1cker has quit IRC
[16:19:46] <drej> daryllxd definitely whatever you're more comfortable with
[16:19:57] *** patrick99e99 has joined #angularjs
[16:20:17] *** oste has joined #angularjs
[16:20:18] *** Aswebb has quit IRC
[16:20:20] <kirfu|work1> the access token is stored in localStorage. On run it adds it to the default auth header (this means the api calls don't care if it needs to be authorized or not).
[16:20:44] <bd> yes, that is wrong
[16:20:49] <bd> store access token in localstorage
[16:21:07] <bd> http interceptor checks localstorage for token on each request, if it exists, add the header to that request
[16:21:37] *** davi has joined #angularjs
[16:21:38] *** davi has joined #angularjs
[16:21:38] <bd> it functions the same
[16:21:39] <bd> but you're not messing with defaults
[16:21:39] *** joshontheweb has quit IRC
[16:21:41] *** InezK_away is now known as InezK
[16:21:42] <kirfu|work1> ohh you mean on each request before it's sent out it checks for the access_token?
[16:21:51] *** seydoggy has quit IRC
[16:21:53] <bd> yeah
[16:22:02] *** UniBot has joined #angularjs
[16:22:28] *** lsiv568 has quit IRC
[16:22:37] <kirfu|work1> hmm, I guess that sorta works. But whats wrong with messing with defaults?
[16:22:38] <bd> this also means you can check the destination domain, so you don't accidently send your access tokens to 3rd party apis as you would if added to defaults
[16:22:39] *** steffengy1 has quit IRC
[16:22:54] *** lsiv568 has joined #angularjs
[16:23:00] <kirfu|work1> bd: very very good point :)
[16:23:01] <kirfu|work1> lol
[16:23:24] <kirfu|work1> bd: know of a repo that implements it this way?
[16:23:27] *** DrMabuse has joined #angularjs
[16:23:36] *** daed_ is now known as daed
[16:24:08] *** lsiv568 has quit IRC
[16:24:19] *** lsiv568 has joined #angularjs
[16:24:28] *** fouzko has quit IRC
[16:24:39] <RubenCordeiro> @bd: never thought about that. I guess that I've only designed apps that communicate with a single server via one single API.
[16:24:49] <RubenCordeiro> I'll keep that in mind.
[16:24:54] *** fouzko has joined #angularjs
[16:25:05] <s3shs> Instead of using jquery and the class trick, I'm using getElementById for simplicity.
[16:25:11] *** Anton_ has quit IRC
[16:25:12] *** apetro_ has quit IRC
[16:25:20] *** avens_ has joined #angularjs
[16:25:28] <s3shs> (I'm asking in here because y'all are using angular and therefore have taste in frameworks. ;-))
[16:25:35] *** avens has quit IRC
[16:25:45] *** apetro_ has joined #angularjs
[16:25:55] <RubenCordeiro> I guess that's fine.
[16:26:17] <s3shs> My plan is to put up an alert and let the dice roll for them.
[16:26:32] <s3shs> RubenCordeiro, better idea?
[16:27:45] <oniijin> i dont think gtie10 works
[16:27:49] <oniijin> they took that out
[16:27:51] *** charuru has quit IRC
[16:28:15] <oniijin> if ie10 doesnt work either
[16:28:19] *** sk87 has joined #angularjs
[16:28:32] *** patrick99e99 has quit IRC
[16:28:43] *** Anton_ has joined #angularjs
[16:28:50] *** bberry_ has joined #angularjs
[16:29:07] *** ManBearPixel has joined #angularjs
[16:29:21] *** fouzko has quit IRC
[16:29:34] *** angularjs has quit IRC
[16:30:16] *** apetro_ has quit IRC
[16:30:18] <RubenCordeiro> well, I think that you won't get a definitive answer on that regard. I don't know a better way to do that.
[16:30:21] <bberry_> So... new-ish to angular.... Does it make sense to have multiple modules? Like lets say that i have a page thats localhost:3000/dashboard. To get there you have to login. The normal users dashboard just displays some basic information. The admins dashboard displays everything that the users does, but also additional admin information. Would this be a reason to have multiple modules?
[16:30:58] *** patrick99e99 has joined #angularjs
[16:31:10] <oniijin> bberry_ yes, modules help you organize your code
[16:31:12] *** InezK is now known as InezK_away
[16:31:17] *** fouzko has joined #angularjs
[16:31:39] <oniijin> that doesnt work for ie10/11
[16:31:44] <s3shs> Oh.
[16:31:54] <oniijin> check that link i just posted dood
[16:31:55] *** DrMabuse_ has joined #angularjs
[16:32:02] <oniijin> that will detect all ie
[16:32:06] *** sdouble has quit IRC
[16:32:09] <s3shs> thank you, oniijin!
[16:32:09] *** eperez has quit IRC
[16:32:12] *** Click66 has quit IRC
[16:32:19] <oniijin> smh dont ask for help then ignore answers ;)
[16:32:29] <oniijin> HOW RUDE
[16:32:59] <s3shs> oniijin, I was just about to write the same thing. Thank you for your help.
[16:33:04] *** gunn has quit IRC
[16:33:07] <oniijin> detecting ie11 is tricky bc ms in their endless genius thought it'd be a good idea to say it's webkit
[16:33:14] <bd> i based on this, although these particular snippets don't include any domain checking
[16:33:17] *** deedubs has joined #angularjs
[16:33:23] *** mchapman has quit IRC
[16:33:39] <oniijin> so the ie11 test I have there catches it, for now
[16:33:41] <carpediembaby> bd, jaawerth : i am trying to use sce, but i get an error when i try to do that : "SyntaxError: Unexpected identifier↵" when i try to do something like: $scope.messages[0].HtmlBody = $sce.trustAsHtml(myhtml);
[16:33:53] <BahamutWC|Work> to detect ie11, you need to use the user agent I think
[16:34:09] <carpediembaby> It seems to be a problem with the carriage return character, but i don't see where it is in the html...
[16:34:09] *** Snugug has joined #angularjs
[16:34:10] <BahamutWC|Work> oh wait, the user agent is mozilla or gecko isn’t it
[16:34:46] *** xavia has joined #angularjs
[16:34:55] <BahamutWC|Work> aha, you need to use navigator.appName
[16:35:09] <oniijin> BahamutWC|Work i posted solution
[16:35:24] <oniijin> the two checks I do seem to work to weed out all ie
[16:35:47] <kirfu|work1> bd: can I setup an inteceptor in a service?
[16:36:02] <oniijin> wow that solution is a lot messier looking
[16:36:11] <BahamutWC|Work> you could also just check for ActiveXObject
[16:36:15] *** jobelenus has joined #angularjs
[16:36:18] <s3shs> Ew.
[16:36:24] <BahamutWC|Work> but that’s not foolproof if the user disables ActiveX
[16:36:29] <s3shs> That's what oniijin's is doing.
[16:36:32] <bd> kirfu|work1: you set it up in the config function
[16:36:34] *** jdcasey has joined #angularjs
[16:36:47] <kirfu|work1> k thank.s
[16:36:48] <s3shs> oniijin, is what BahamutWC|Work saying is true?
[16:36:52] *** Methylated has joined #angularjs
[16:36:55] *** greengriminal has joined #angularjs
[16:36:56] <bd> or, you add the interceptor to the $httpProvider in the config function, i should say
[16:37:01] <oniijin> yeah but u really dont have a great option
[16:37:07] <bd> the interceptor itself is a service/factory
[16:37:11] <BahamutWC|Work> detecting all IE sucks
[16:37:19] *** spacepluk has joined #angularjs
[16:37:21] <oniijin> ms tries hard to sneak their garbage thru
[16:37:32] <s3shs> So there is no good solution out there?
[16:37:34] <oniijin> that browser is goddamn malware
[16:37:35] *** bkuberek has joined #angularjs
[16:37:37] <spacepluk> hi, is anybody using restangular?
[16:37:49] <oniijin> well, what I'm doing works most of the time
[16:38:00] *** charuru has joined #angularjs
[16:38:04] <oniijin> if u want guaranteed then u'll have to keep digging
[16:38:23] *** bkuberek_ has joined #angularjs
[16:38:24] *** Snugug has quit IRC
[16:38:26] <oniijin> but really, evaluate time spent vs giving half a shit about people on IEw
[16:38:36] *** gunn has joined #angularjs
[16:38:37] <jaawerth> carpediembaby: hmm send me the link with the html again?
[16:38:40] *** calumet_ has joined #angularjs
[16:38:42] *** charuru has quit IRC
[16:38:44] <oniijin> e.g., I've already spent way more time than I want helping u deal with IEw
[16:38:47] <oniijin> =]
[16:38:48] <s3shs> 5 minutes seems like an ok deal.
[16:38:51] *** calumet has quit IRC
[16:38:51] *** calumet_ is now known as calumet
[16:39:07] <dcherman> why would you want to try to sniff IE anyway? what are you trying to write that feature detection can't cover
[16:39:12] *** blckbrd has quit IRC
[16:39:13] <RubenCordeiro> @spacepluk: I've used restangular a couple of months ago?
[16:39:20] <RubenCordeiro> I may help
[16:39:23] <jaawerth> carpediembaby: nevermind, found it
[16:39:26] <oniijin> i would just use the check I posted, if they worm thru, o well, joke's on them shit dont work
[16:39:34] <s3shs> oniijin, you're in prime form today.
[16:39:37] <jaawerth> carpediembaby: ack, evidently you removed the pastebin paste ;-)
[16:39:41] <oniijin> TWSS
[16:40:01] *** aboudreault_ is now known as aboudreault
[16:40:02] *** aboudreault has joined #angularjs
[16:40:06] *** uchuff has quit IRC
[16:40:25] *** DrMabuse_ has quit IRC
[16:40:39] <Methylated> I am using the ControllerAs syntax. var SomeController = function($http) { .. set properties …}; then I extend this OUTSIDE the constroctor body method i.e., SomeController.prototype.someMethod = function() { .. use $http … };
[16:40:47] <carpediembaby> jaawerth: it must have expired. I set it to expire after some time. I resolved this particular problem. It was because of quotes..
[16:40:47] <spacepluk> was it a good experience? it looks very good but it seems that most people are using $resource
[16:40:56] <carpediembaby> Will give it another go now ..
[16:40:59] <jaawerth> carpediembaby: ahh, I suspected it might be quotes ;-)
[16:41:17] <Methylated> but $http is not available in someMethod, obviously. One solution is to set this.http = $http; and use this.http in someMethod
[16:41:19] *** soujiro has quit IRC
[16:41:23] <kirfu|work1> bd: ok I see how it works now.
[16:41:23] <oniijin> i remember seeing a library that covers up browser if it detects certain things
[16:41:30] <Methylated> Is it the correct way to go about this?
[16:41:44] *** grindmodeon1 has joined #angularjs
[16:41:46] <kirfu|work1> bd: but it's still sending the Auth header in every single request...
[16:41:49] *** grindmodeon has quit IRC
[16:41:52] *** bkuberek has quit IRC
[16:41:52] *** Anton_ has quit IRC
[16:41:58] *** Xethron has joined #angularjs
[16:41:58] *** styles has quit IRC
[16:42:04] *** TorpedoSkyline has joined #angularjs
[16:42:10] <carpediembaby> jaawerth: but that should only be through the console (which i was doing, to test it). When assigning within angular, i think is shouldn't be a problem, right? If not, how should i resolve it?
[16:42:28] *** watsonkp has quit IRC
[16:42:40] *** jharbaugh has quit IRC
[16:42:44] <kirfu|work1> bd: why does it say sessionStorage is better to use vs localStorage?
[16:42:47] *** Christer| has quit IRC
[16:42:55] *** apetro_ has joined #angularjs
[16:42:56] *** jharbaugh has joined #angularjs
[16:43:06] <oniijin> u use it as object
[16:43:11] <oniijin> it gives u nice wrapper
[16:43:12] <jaawerth> Methylated: you shouldn't have to do that at all, just inject $http when you register the function as a controller (from the constructor) and it should be available as normal
[16:43:15] *** matpb has quit IRC
[16:43:24] <oniijin> o wait nm confusing it with something else. disregard kirfu|work1
[16:43:30] <oniijin> JK
[16:43:46] *** ineedarobot has quit IRC
[16:44:20] *** Snugug has joined #angularjs
[16:44:33] *** sdouble has joined #angularjs
[16:44:35] <jaawerth> Methylated: well, someMethod is on the prototype so it should have access to any variables (and therefore functions) available in the constructor
[16:45:00] <jaawerth> unless you're calling someMethod before you've actually called the constructor
[16:45:42] <Methylated> jaawerth: well, someMethod is defined outside the body of the constructor. If I were to define it inside the constructor, it works as usual
[16:45:46] *** maveneagle has quit IRC
[16:45:50] *** TimmyTones has quit IRC
[16:46:06] <Methylated> someMethod has everything on 'this' that the parent has
[16:46:18] <Methylated> $http is not on 'this' - it's merely passed in as a param
[16:46:35] *** lw has joined #angularjs
[16:46:38] *** TimboTones has joined #angularjs
[16:46:44] *** subnl2 has joined #angularjs
[16:47:04] *** RubenCordeiro has quit IRC
[16:47:21] *** chrisbirk has joined #angularjs
[16:47:22] *** ineedarobot has joined #angularjs
[16:47:24] <jaawerth> Methylated: d'oh sorry, you're right. You could always attach $http to 'this' though
[16:47:57] <s3shs> Oh cool, develop menu -> user agent in Safari is awesome for testing this JS.
[16:48:04] *** tpyo has quit IRC
[16:48:05] *** sergeyb has joined #angularjs
[16:48:07] *** tangorri has joined #angularjs
[16:48:12] <Methylated> jaawerth: this.$http = $http; right? I thought about that. It doesn't violate any best practice does it?
[16:48:15] <tangorri> hi
[16:48:16] *** amargherio has joined #angularjs
[16:48:37] *** fouzko has quit IRC
[16:48:42] <oniijin> s3shs that only changes useragent string i believe. u should use suacelabs or something to really test
[16:48:53] <s3shs> oniijin, I have the OSs here.
[16:48:55] <oniijin> fire up an actual instance
[16:48:56] <s3shs> BUt yeah.
[16:49:06] <oniijin> a ok
[16:49:22] <Methylated> What's weird is that the mocha tests pass. I use $http in the mocha test with no problem. I call someMethod and no errors. When I actually run the code, $http is undefined in someMethod
[16:49:33] <oniijin> i would not use safari to test ie. I wouldn't even trust IE to test older ie
[16:49:53] <jaawerth> Methylated: I suppose it's a little hacky, but less hacky than the alternatives, I'd say. Where and when are you declaring the constructor and prototype method?
[16:50:06] *** snurfery has quit IRC
[16:50:26] <jaawerth> Methylated: the other thing you could do is set them all up in a code block that already has access to $http, like an angular.module().run or a factory/provider
[16:50:34] <jaawerth> Methylated: that would probably be the angularific way of doing it ;-)
[16:51:40] *** silentimp has quit IRC
[16:51:47] <tangorri> I'm getting nut with cookies ! setting http.defaults.widthCredential to true it it should send all recived cookie right ?
[16:51:49] <Methylated> jaawerth: alright, I'll give it a go. thanks. the main problem here is why the test passes and the running app does not. The concern is distrustful tests moving forward
[16:51:51] <amergin_> ah, I see. ng-class adds the class name *after* compilation. is there a way to dynamically add a class to element inside a directive without touching the link function?
[16:52:15] *** thedodd has joined #angularjs
[16:52:27] *** fouzko_ has joined #angularjs
[16:52:39] *** edrocks has joined #angularjs
[16:52:40] *** enigmarm has joined #angularjs
[16:52:53] *** thomastuts has quit IRC
[16:52:58] *** jshultz has joined #angularjs
[16:53:53] *** sp1urhe0la has joined #angularjs
[16:54:56] <jaawerth> amergin_: well, if you use the compile: {pre: function(){}, post: function() {}} syntax, the post: part effectively becomes your link function and you could add the class in your pre: function
[16:55:04] *** blueadept has joined #angularjs
[16:55:17] <jaawerth> amergin_: so you wouldn't have to modify your link function and instead can put it in the pre-link function
[16:55:51] *** AndyFTP has quit IRC
[16:55:58] *** deedubs has left #angularjs
[16:56:07] *** Bade has quit IRC
[16:56:12] <amergin_> jaawerth: let me paste my earlier question to elaborate my problem:
[16:56:14] *** dejanr has quit IRC
[16:56:27] <amergin_> my situation: <div direcA> <div ng-repeat="w in windows" class="direcB"> <div class="w.variableWhichTriggersDirectiveC"></div> </div> </div>. I see the last directive class gets the right value, but the directive is not called. If I take the last directive from inside these directives, it does get instantiated. What could cause this?
[16:56:33] *** amargherio has quit IRC
[16:56:50] *** plantian has joined #angularjs
[16:56:51] *** lordkryss has quit IRC
[16:57:02] *** chrisbirk has quit IRC
[16:57:08] *** amargherio has joined #angularjs
[16:57:21] <amergin_> the reason I don't want to change the link function is because the directive isn't specific to those modifications
[16:57:25] <jaawerth> amergin_: by "last directive", which directive do you mean?
[16:57:38] *** shinnya has joined #angularjs
[16:57:40] <amergin_> <div class="w.variableWhichTriggersDirectiveC"></div>
[16:58:11] *** Dan__ has quit IRC
[16:58:16] *** bertrandk has quit IRC
[16:58:18] <amergin_> basically I just want the nested directive to be instantiated, which is not happening at the moment
[16:58:43] <jaawerth> huh. well, if you use class="" without {{}} or ng-class, it's not going to interpolate that as a string, that's the first thing I notice
[16:58:56] <jaawerth> er, that is interpolate it as a variable
[16:59:10] *** Olsonfold has joined #angularjs
[16:59:10] *** plitzenberger has quit IRC
[16:59:22] <jaawerth> so unless the directive is literally named w.variableWhichTriggersDirectiveC that would be one reason it doesn't instantiate
[16:59:22] *** dejanr has joined #angularjs
[16:59:23] *** hychen has joined #angularjs
[16:59:26] <amergin_> uh yeah that should be {{w.variable...}}
[16:59:30] <jaawerth> ahh, okay
[16:59:46] <jaawerth> and that is, itself inside of a directive, yes?
[17:00:30] *** davemerwin has joined #angularjs
[17:00:36] *** gunn has quit IRC
[17:00:36] *** Patrick_Baitman has quit IRC
[17:00:37] *** ngrt has quit IRC
[17:00:41] <jaawerth> amergin_: are you using transclude?
[17:00:44] *** Guiiks has joined #angularjs
[17:00:57] <amergin_> anyways, I see the result is <div class="histogram"></div>. And histogram is indeed a directive. If I place <div class="histogram"></div> there, it instantiates. If I create it dynamically from a variable, it does not
[17:01:01] <amergin_> nope
[17:01:23] *** Stampy has quit IRC
[17:01:36] *** gunn has joined #angularjs
[17:01:37] <jaawerth> ah, that might actually be your issue. If you wrap a directive inside a directive and don't use transclude, the inner directive is going to refer to the outer directive's scope rather than the parent scope
[17:01:55] <jaawerth> are you using isolate scope in the outer directive?
[17:02:05] *** chrisbirk has joined #angularjs
[17:02:14] *** Wolfe has joined #angularjs
[17:02:27] *** swirlycheetah has quit IRC
[17:02:37] *** cthrax has joined #angularjs
[17:02:38] <amergin_> no, but I probably should be
[17:03:01] <DevAntoine> anyclue why my translation doesn't work inside my directive? I only got the key printed
[17:03:12] *** cacts|works has quit IRC
[17:03:20] *** sergeyb has quit IRC
[17:03:38] <jaawerth> amergin_: hm. either way I'd try using transclude and see if that works ;-)
[17:03:40] *** fouzko_ has quit IRC
[17:04:00] <amergin_> jaawerth: yeah, I think I'll start with that. thanks!
[17:04:09] *** alho has quit IRC
[17:05:24] *** grindmodeon1 is now known as grindmodeon
[17:05:33] *** mennea has quit IRC
[17:06:42] *** lebek has joined #angularjs
[17:07:11] <s3shs> If activeX fails somehow I fall back to user agent.
[17:07:22] *** edrocks has quit IRC
[17:07:23] *** josh-k has joined #angularjs
[17:07:26] *** VeeWee has quit IRC
[17:07:40] *** danielpquinn has joined #angularjs
[17:07:45] *** mven_ has quit IRC
[17:08:02] *** edrocks has joined #angularjs
[17:08:19] *** zfogg has joined #angularjs
[17:08:34] *** krawek has quit IRC
[17:08:34] *** danielcastro has quit IRC
[17:08:43] *** sidthekid has quit IRC
[17:08:44] *** chrisbirk has quit IRC
[17:08:46] *** fouzko_ has joined #angularjs
[17:08:52] *** sidthekid_ has joined #angularjs
[17:09:14] *** francisl has quit IRC
[17:09:15] <rho> welp back
[17:09:23] <s3shs> (Better)
[17:09:28] <rho> er wrong channel
[17:09:29] <rho> heh
[17:10:11] *** danielpquinn has quit IRC
[17:10:18] *** danielpquinn has joined #angularjs
[17:10:43] <DevAntoine> can we use translation inside directives? Like this: iElt.attr('title', $filter('translate')('global.backToTop'));
[17:11:08] *** uchuff has joined #angularjs
[17:11:21] *** fooflare has joined #angularjs
[17:11:38] *** uchuff has joined #angularjs
[17:11:51] *** chrisbirk has joined #angularjs
[17:11:55] *** dccc has joined #angularjs
[17:12:26] *** jlambert_ has joined #angularjs
[17:12:29] *** hannesvdvreken has quit IRC
[17:12:38] *** jlambert has quit IRC
[17:12:52] *** icfantv has joined #angularjs
[17:13:11] *** zfogg has quit IRC
[17:14:08] *** sidthekid has joined #angularjs
[17:14:18] <greengriminal> am i correct in saying that the following: "ng-class="{'label-warning': version.unstable}"" means that it will apply the label-warning class if the version.unstable is true?
[17:14:33] *** hannesvdvreken has joined #angularjs
[17:14:38] *** icfantv has quit IRC
[17:14:41] <orion1111> yes
[17:14:43] *** sp1urhe0la has quit IRC
[17:14:46] *** AlexZanf has joined #angularjs
[17:14:51] *** bencc has quit IRC
[17:15:22] *** patrick99e99 has quit IRC
[17:15:39] *** hannesvdvreken has quit IRC
[17:15:48] <greengriminal> so if that's the case why does this not work: ng-class="version.unstable ? 'label label-warning' : 'label label-default'"
[17:15:54] *** patrick99e99 has joined #angularjs
[17:16:05] <DevAntoine> greengriminal: that's not the ame at all
[17:16:11] <greengriminal> Yes i know that
[17:16:19] <DevAntoine> so why are you asking why it isn't working?
[17:16:27] <greengriminal> well i mean its a ternary operator
[17:16:41] <greengriminal> if version.unstable is true apply warning else apply default.
[17:16:42] <DevAntoine> and ng-class doesn't expect this notation
[17:16:55] <DevAntoine> class="{{version.unstable ? 'label label-warning' : 'label label-default'}}"
[17:16:58] *** sidthekid_ has quit IRC
[17:17:02] *** mvovchak has joined #angularjs
[17:17:04] *** sergeyb has joined #angularjs
[17:17:22] *** francisl has joined #angularjs
[17:17:34] <greengriminal> DevAntoine: You've given it class and not ng-class?
[17:17:38] <DevAntoine> yep
[17:17:47] <greengriminal> Why?
[17:17:58] <DevAntoine> because you can pass it js code
[17:18:05] <greengriminal> right
[17:18:09] *** eperez has joined #angularjs
[17:18:16] <mvovchak> hi, is there a way to find all form elements inside an angular element? something like element.find("input, select, textarea, etc") doesn
[17:18:20] <mvovchak> doesnt really work
[17:18:34] *** conan_the_destro has joined #angularjs
[17:18:50] <DevAntoine> greengriminal: ng-class="{'label-warning': version.unstable, 'label-default': !version.unstable}"
[17:18:51] *** TimboTones has quit IRC
[17:18:54] *** TimmyTones has joined #angularjs
[17:19:00] *** phuh has quit IRC
[17:19:08] *** fooflare has left #angularjs
[17:19:16] *** icfantv has joined #angularjs
[17:19:20] <greengriminal> right that makes sense.
[17:19:26] *** phuh has joined #angularjs
[17:19:36] <greengriminal> Thank you
[17:20:07] *** subnl2 has quit IRC
[17:20:09] *** TuRnaD0 has joined #angularjs
[17:20:11] <DevAntoine> greengriminal: I hope I'm not saying stupid stuff, I'm still learning angular
[17:20:27] <greengriminal> No it makes sense, cheers :)
[17:21:01] <DevAntoine> you're welcome greengriminal
[17:21:15] *** fouzko_ has quit IRC
[17:21:22] *** maveneagle has joined #angularjs
[17:21:50] *** fouzko has joined #angularjs
[17:22:10] *** InezK_away is now known as InezK
[17:23:04] *** danyim has joined #angularjs
[17:23:31] *** rho has quit IRC
[17:23:35] *** bertrandk has joined #angularjs
[17:23:37] *** krawek has joined #angularjs
[17:23:56] *** cacts|works has joined #angularjs
[17:24:44] *** sonofdirt has joined #angularjs
[17:25:09] *** jeff__ has joined #angularjs
[17:25:12] *** ascarter has quit IRC
[17:25:30] *** sigurding has quit IRC
[17:25:34] *** ascarter has joined #angularjs
[17:25:55] *** SonderbladeWork has quit IRC
[17:26:07] *** fouzko has quit IRC
[17:26:11] *** ascarter has joined #angularjs
[17:26:55] *** cacts|works has quit IRC
[17:27:05] <drej> BahamutWC|Work the mouse controls were a bad idea
[17:27:13] *** cacts|works has joined #angularjs
[17:27:15] *** subnl2 has joined #angularjs
[17:27:23] *** danyim has quit IRC
[17:27:24] *** apetro_ has quit IRC
[17:27:34] <BahamutWC|Work> drej: it’s not really the full game, it is just a css/js illustration
[17:27:38] *** shank_ has joined #angularjs
[17:27:39] <drej> yup i get it :)
[17:27:47] <BahamutWC|Work> I didn’t do it
[17:27:49] <DevAntoine> I feel like I'm missing something to not be able to use translations inside custom directives
[17:27:51] *** in_deep_thought has joined #angularjs
[17:28:12] *** Anton_ has joined #angularjs
[17:28:25] *** sneakertack has joined #angularjs
[17:28:32] *** in_deep_thought has quit IRC
[17:28:53] *** disorder20 has quit IRC
[17:28:55] *** Dan___ has joined #angularjs
[17:28:56] *** {DV8} has joined #angularjs
[17:29:01] *** ascarter has left #angularjs
[17:29:30] *** foofoobar_ has joined #angularjs
[17:30:01] <BahamutWC|Work> DevAntoine: use the $animate service
[17:30:06] <BahamutWC|Work> oh translations
[17:30:15] <BahamutWC|Work> using angular-translate?
[17:30:16] *** dejanr has quit IRC
[17:30:25] <DevAntoine> BahamutWC: yes
[17:30:35] *** jeff__ has quit IRC
[17:30:42] <BahamutWC|Work> DevAntoine: how about injecting the $filter service and using the filter?
[17:30:48] *** zfogg has joined #angularjs
[17:31:26] <DevAntoine> BahamutWC: this is exactly what I'm doing, but I think it has something to do with the link function and $compile
[17:31:51] *** whitebook has joined #angularjs
[17:31:58] *** InezK is now known as InezK_away
[17:32:21] <BahamutWC|Work> hm
[17:32:48] *** alho has joined #angularjs
[17:32:50] *** Somatt_wrk has joined #angularjs
[17:32:51] *** night-owl2 has joined #angularjs
[17:33:32] *** Somatt_wrk_ has quit IRC
[17:33:50] <edrocks> anyone know how to use ui bootstraps datepicker popup?
[17:33:50] *** jrun has joined #angularjs
[17:34:34] <bd> it pretty much tells you right in the ui-bootstrap docs how to use it
[17:34:40] <bd> even gives an example you can copypaste
[17:34:56] <DevAntoine> BahamutWC|Work: I can inject the filter in the directive's controller, and get it's translation inside the link function, but I feel sad about that solution
[17:35:09] *** patric100e99 has joined #angularjs
[17:35:19] *** zfogg has quit IRC
[17:35:26] <BahamutWC|Work> DevAntoine: you can also inject it right in the directive itself
[17:35:26] *** Dan___ has quit IRC
[17:35:45] <BahamutWC|Work> .directive(‘myDirective’, function ($filter) { … })
[17:36:01] *** frickettz has joined #angularjs
[17:36:05] *** jonasrosenlind has quit IRC
[17:36:14] *** alho has quit IRC
[17:36:28] *** phrozensilver has joined #angularjs
[17:36:39] *** alho has joined #angularjs
[17:36:57] *** rho has joined #angularjs
[17:37:05] <DevAntoine> BahamutWC|Work: this is exactly what I've done
[17:37:13] *** snapwich has joined #angularjs
[17:37:37] <DevAntoine> BahamutWC|Work: but it's not working inside the link. I mean, the $filter is injected, the the translation never occurs
[17:37:46] *** patrickarlt has joined #angularjs
[17:38:10] *** shank_ has quit IRC
[17:38:11] *** bLu___ has joined #angularjs
[17:38:17] <BahamutWC|Work> that doesn’t sound right - sure nothing else is the culprit?
[17:38:33] *** brownbathrobe has joined #angularjs
[17:38:34] *** svycka has quit IRC
[17:38:41] *** vbabiy has quit IRC
[17:38:49] *** frickett has quit IRC
[17:39:22] *** Keika has quit IRC
[17:39:40] *** Hounddog has quit IRC
[17:39:51] *** Somatt_wrk_ has joined #angularjs
[17:40:00] *** mfunkie has quit IRC
[17:40:12] *** patric100e99 has quit IRC
[17:40:14] *** Somatt_wrk has quit IRC
[17:40:16] *** daniele9821 has quit IRC
[17:40:23] *** vbabiy has joined #angularjs
[17:40:26] *** mfunkie has joined #angularjs
[17:40:38] *** whiteboo_ has joined #angularjs
[17:40:45] *** jrun has left #angularjs
[17:40:59] <DevAntoine> BahamutWC|Work: I'm making a plunker
[17:41:00] *** timw_ has joined #angularjs
[17:41:51] *** TuRnaD0 has quit IRC
[17:42:14] *** brownbathrobe has quit IRC
[17:43:19] *** frickettz has quit IRC
[17:43:51] *** frickettz has joined #angularjs
[17:43:56] *** whitebook has quit IRC
[17:44:05] *** InezK_away is now known as InezK
[17:44:20] *** subnl2 has quit IRC
[17:44:40] *** mfunkie has quit IRC
[17:44:47] *** xyNNN has quit IRC
[17:45:15] *** intellix has quit IRC
[17:45:35] *** mikeywaites has joined #angularjs
[17:45:46] <mikeywaites> hey guys any protractor gurus here?
[17:46:28] *** MANCHUCK has quit IRC
[17:47:06] *** cthrax has quit IRC
[17:47:11] *** sonicparke|bradm has joined #angularjs
[17:47:24] *** cthrax has joined #angularjs
[17:47:48] *** snurfery has joined #angularjs
[17:47:49] *** intellix has joined #angularjs
[17:48:01] *** HashNuke has joined #angularjs
[17:48:04] *** boneskull has joined #angularjs
[17:48:11] *** frankblizzard has quit IRC
[17:48:35] *** frickettz has quit IRC
[17:49:05] *** mtsr has quit IRC
[17:49:06] *** jdj_dk has joined #angularjs
[17:49:11] *** wafflejock has quit IRC
[17:49:34] *** conner_ has joined #angularjs
[17:49:41] *** chrisbirk has quit IRC
[17:50:04] <Methylated> mikeywaites: I'm not. but if you don't get a satisfactory answer here, search code.ohloh.net
[17:50:11] *** bluesm has joined #angularjs
[17:50:22] *** PPilate is now known as Pilate
[17:50:40] *** blueadept has quit IRC
[17:50:42] *** chakkimatti has quit IRC
[17:50:52] *** styles has joined #angularjs
[17:50:53] *** styles has joined #angularjs
[17:50:58] *** riets has joined #angularjs
[17:51:17] *** riets_ has joined #angularjs
[17:51:26] *** phrozensilver has quit IRC
[17:51:38] <mikeywaites> sure basically im trying to get protractor chrome driver running under Docker
[17:52:04] *** _tpavel has quit IRC
[17:52:13] *** tomzx`afk is now known as tomzx
[17:52:24] *** waylon999 has joined #angularjs
[17:52:32] *** marc_v92 has joined #angularjs
[17:52:42] *** bade has joined #angularjs
[17:52:44] <sonicparke|bradm> so client-side vs server-side authentication. I'm using ui-router and checking the server to see if the user is authorized to access said route. Is that secure enough? Short of the server rendering the html I can't see a better way to do it
[17:53:01] *** dejanr has joined #angularjs
[17:53:32] *** dccc has quit IRC
[17:53:34] *** InezK is now known as InezK_away
[17:54:19] *** jdj_dk has quit IRC
[17:54:26] *** sidthekid has quit IRC
[17:54:30] *** chrisbirk has joined #angularjs
[17:54:38] *** frege has quit IRC
[17:54:38] *** frege has joined #angularjs
[17:54:47] *** calvinx has quit IRC
[17:55:06] <riets> hello chanel, how can I do to persists user info after login for when I reload the page? Preferible with no cookies, is it possible?
[17:55:12] *** armno has joined #angularjs
[17:55:30] <sonicparke|bradm> riets: I've done it using localstorage
[17:55:42] *** enigmarm has quit IRC
[17:55:53] *** patrick99e99 has quit IRC
[17:56:02] *** dejanr_ has joined #angularjs
[17:56:19] *** subsonic has joined #angularjs
[17:56:34] *** riets_ has quit IRC
[17:56:54] *** bLu___ has quit IRC
[17:57:23] *** lsiv568 has quit IRC
[17:57:27] *** bLu_ has joined #angularjs
[17:57:35] <riets> nice sonicparke|bradm fantastic, where can I find information on how to use it with angular?
[17:57:42] *** lsiv568 has joined #angularjs
[17:58:09] *** fbenoit has quit IRC
[17:58:12] *** HypnotiX has joined #angularjs
[17:58:49] *** plitzenberger has joined #angularjs
[17:58:53] *** negval has joined #angularjs
[17:59:15] *** calvinx has joined #angularjs
[17:59:17] *** cthrax has quit IRC
[17:59:35] <oniijin> ngstorage
[17:59:52] <riets> ups sorry my keywiord is cazy, it mix my words :s
[17:59:59] *** armno has quit IRC
[17:59:59] *** Wolfe has quit IRC
[18:00:00] *** calvinx has quit IRC
[18:00:06] <riets> thanks oniijin
[18:00:15] *** kotyy has joined #angularjs
[18:00:23] *** dejanr_ has quit IRC
[18:00:23] *** watsonkp has joined #angularjs
[18:00:35] *** mspier_off is now known as mspier
[18:00:41] *** alho has quit IRC
[18:00:52] *** dutis has quit IRC
[18:01:02] *** zerd has joined #angularjs
[18:01:03] *** combat has left #angularjs
[18:01:28] *** kaeku has quit IRC
[18:01:48] *** motionman has quit IRC
[18:01:52] *** bLu_ has quit IRC
[18:01:57] *** apetro_ has joined #angularjs
[18:02:07] *** cthrax has joined #angularjs
[18:02:08] *** ccohn has quit IRC
[18:02:35] *** MANCHUCK has joined #angularjs
[18:02:48] *** ccohn has joined #angularjs
[18:02:57] *** alho has joined #angularjs
[18:03:03] *** teddyp1cker has joined #angularjs
[18:03:45] *** vintik has joined #angularjs
[18:04:02] *** disorder20 has joined #angularjs
[18:04:21] *** edrocks has quit IRC
[18:04:37] *** gunn has quit IRC
[18:04:48] *** Xethron has quit IRC
[18:04:52] *** fooflare has joined #angularjs
[18:04:54] *** francisl has quit IRC
[18:05:04] *** InezK_away is now known as InezK
[18:05:20] *** Yahkob has joined #angularjs
[18:05:43] *** jacuqesdancona has quit IRC
[18:06:17] *** jacuqesdancona has joined #angularjs
[18:06:43] *** zumba_addict has joined #angularjs
[18:06:47] <ManBearPixel> Hey everyone, odd question here but.. Does anyone have a good example for switching a navigation menu on the DOM when called? For example, I have my navigation menu go to the header if on tablet/screen and get appended to a left panel if on mobile. I did that with jQuery, but now I’m curious if there’s an angular way
[18:06:54] *** foofoobar has quit IRC
[18:06:55] <zumba_addict> hey folks, what is the locale file for great britain?
[18:07:05] <zumba_addict> i tried uk but it looks like it's Ukraine, hahaha
[18:07:05] *** DevAntoine has quit IRC
[18:07:08] <bd> en-gb
[18:07:14] *** ccohn has quit IRC
[18:07:19] *** calumet has quit IRC
[18:07:28] <zumba_addict> oh cool
[18:07:28] *** netto_ has joined #angularjs
[18:07:42] *** netto_ has left #angularjs
[18:07:47] *** evilaliv3 has quit IRC
[18:08:14] <sonicparke|bradm> I was AKF
[18:08:24] <oniijin> AKF MUTHAFCKA
[18:08:33] <sonicparke|bradm> ha.
[18:08:37] <sonicparke|bradm> AFK*
[18:08:42] <sonicparke|bradm> afk
[18:08:48] <sonicparke|bradm> sorry for yelling
[18:08:48] *** Efrem is now known as Efrem-Away
[18:09:15] <zumba_addict> my officemate is telling me that comma in GB are like this? 1,23,456,436
[18:09:23] <zumba_addict> is that correct? lol
[18:09:34] <oniijin> is it friday yet
[18:09:35] <sonicparke|bradm> maybe it's that "new math'
[18:09:37] *** vintik has quit IRC
[18:09:38] <zumba_addict> but looking at gb locale, it's the same as US
[18:09:43] <zumba_addict> hahaha
[18:09:51] *** dutis has joined #angularjs
[18:09:51] *** wafflejock_ has joined #angularjs
[18:10:06] *** klaut has quit IRC
[18:10:13] *** chrisbirk has quit IRC
[18:10:22] *** jacuqesdancona has quit IRC
[18:10:33] *** lite_ has joined #angularjs
[18:10:33] *** the-erm has quit IRC
[18:10:42] *** klaut has joined #angularjs
[18:10:57] *** mfunkie has joined #angularjs
[18:10:59] *** chrisbirk has joined #angularjs
[18:11:04] *** GianArb has quit IRC
[18:11:43] *** wilmoore has joined #angularjs
[18:11:49] *** the-erm has joined #angularjs
[18:11:50] <bd> zumba_addict: interestingly, ~40% of people in the uk have their locale set to en-us on computer
[18:11:56] *** sergeyb has quit IRC
[18:12:02] <bd> according to my analytics anyway
[18:12:02] <zumba_addict> :D hahaha :D
[18:12:06] *** UniBot has quit IRC
[18:12:08] <zumba_addict> thanks for the info
[18:12:57] *** Somatt_wrk_ has quit IRC
[18:13:05] *** Somatt_wrk has joined #angularjs
[18:13:32] *** bkuberek_ has quit IRC
[18:13:41] *** in_deep_thought has joined #angularjs
[18:14:02] *** plitzenberger has quit IRC
[18:14:06] *** calumet has joined #angularjs
[18:14:09] *** squeakytoy has joined #angularjs
[18:14:16] *** charlie_sanders has joined #angularjs
[18:14:18] *** Vovin has quit IRC
[18:14:27] *** nerdfiles has joined #angularjs
[18:14:52] *** klaut has quit IRC
[18:15:03] *** jgravois has quit IRC
[18:15:08] *** lite_ has quit IRC
[18:15:17] *** pluma has quit IRC
[18:15:35] *** mfunkie has quit IRC
[18:15:44] *** jgravois has joined #angularjs
[18:15:49] *** Nizumzen has joined #angularjs
[18:16:00] *** patrick99e99 has joined #angularjs
[18:16:47] *** prbc has joined #angularjs
[18:17:01] *** cacts|works has quit IRC
[18:17:07] *** ryanc_ has joined #angularjs
[18:17:16] <ryanc_> anyone there?
[18:17:26] <BahamutWC|Work> nope
[18:17:31] <nerdfiles> I'm breathing, technically.
[18:17:47] *** thedodd has quit IRC
[18:17:49] <ryanc_> new to the room. is this an appropriate place to ask angular questions?
[18:17:53] <nerdfiles> $scope.breathing = true;
[18:18:36] *** MaxV has quit IRC
[18:18:47] <tangorri> hmmm something special to make my app write sent cookie please ?
[18:19:01] *** phuh has quit IRC
[18:19:03] *** edrocks has joined #angularjs
[18:19:03] *** MaxV has joined #angularjs
[18:19:04] *** foofoobar has joined #angularjs
[18:19:04] <nerdfiles> Ask questions but provide stackoverflow/gist or at least show us the relevant code or stacktraces for your questions.
[18:19:13] <BahamutWC|Work> ryanc_: just ask away
[18:19:19] *** cacts|works has joined #angularjs
[18:19:27] *** phuh has joined #angularjs
[18:19:31] <snapwich> i thought this channel was for relationship advice
[18:19:34] <BahamutWC|Work> reproductions of issues are most helpful, but depending on the problem, pastebins and such are fine too
[18:19:39] <oniijin> you should have a nerdfiles service
[18:19:42] *** thedodd has joined #angularjs
[18:19:42] <BahamutWC|Work> snapwich: only for your relationship with angular ;)
[18:19:47] <oniijin> instead of smacking it on scope =p
[18:19:48] <edrocks> anyone know how to use ui bootstraps datepicker popup?
[18:19:58] *** s3shs has quit IRC
[18:20:03] <oniijin> u put it in the thing
[18:20:04] *** isthisreallife has joined #angularjs
[18:20:05] <snapwich> we're getting along okay. for now
[18:20:06] <oniijin> and it shows up
[18:20:17] *** nfroidure_ has quit IRC
[18:20:18] <ryanc_> ok, I don't have a lot of angularjs experience but have been tasked with implementing role/permissions on an .NET MVC applciation. Looking for some help.
[18:20:23] *** jgravois has quit IRC
[18:20:23] <bd> edrocks: it tells you in the docs how to use it
[18:20:32] <edrocks> it isnt working though
[18:20:33] *** isthisreallife has left #angularjs
[18:20:35] *** mennea has joined #angularjs
[18:20:51] <edrocks> the button will only open it once then it breaks
[18:20:52] *** nemothekid has joined #angularjs
[18:20:57] *** Silne30 has joined #angularjs
[18:20:59] <ryanc_> I haven't found much in the way of sample code
[18:21:24] <snapwich> ryanc_: that's because that's not an angular problem. role/permissions should be handled server side
[18:21:35] <snapwich> and authentication should be signified with a token
[18:21:40] <snapwich> which you do in any front-end framework
[18:22:03] <ryanc_> but to enforce the permissions, I need UI code to restrict acceess to elements on the page etc.
[18:22:04] <bd> edrocks: so change the open function do toggle the open state insteado f just setting it to true
[18:22:12] *** wafflejock_ has quit IRC
[18:22:13] *** blueadept has joined #angularjs
[18:22:16] *** blueadept has joined #angularjs
[18:22:28] <AlexZanf> hey guys, i am using angular 2.2.1, and i am trying to use $compileProvider, since my blob image url is deemed as unsafe. could somone lend me a hand? not exactly sure how to do this, ive tried about 3 different ways from various documents, with no luck
[18:22:39] *** amargherio has quit IRC
[18:22:41] *** lsiv568 has quit IRC
[18:22:42] *** wafflejock has joined #angularjs
[18:22:49] *** Drako_ has joined #angularjs
[18:22:53] *** arthas has quit IRC
[18:23:06] *** blueadept` has joined #angularjs
[18:23:07] <snapwich> ryanc_: you can make an angular service to limit parts of the page depending on the authentication token. or some people have made angular http interceptors to remove content. or you could even do it all server side and only return proper templates depending on the auth token sent from the client. that's all personal preference. but once again, not really an angular problem
[18:23:08] *** merpnderp has left #angularjs
[18:23:12] *** conner_ has quit IRC
[18:23:18] *** daryllxd has quit IRC
[18:23:18] *** davemerwin has quit IRC
[18:23:18] *** lsiv568 has joined #angularjs
[18:23:30] *** bengillies has quit IRC
[18:23:33] *** MaxV has quit IRC
[18:23:46] *** daryllxd has joined #angularjs
[18:23:52] *** subone has joined #angularjs
[18:24:17] *** bkuberek has joined #angularjs
[18:24:49] *** bjr217 has quit IRC
[18:24:50] <ryanc_> snapwich, thanks. We actually have a set of permissions that need to be inspected on each page and certian functions hidden depending on these permissions
[18:25:16] <snapwich> well the talk above details one way to do it
[18:25:21] <snapwich> although i don't know if there's any sample code
[18:25:30] *** Efrem-Away is now known as Efrem
[18:25:32] *** frickettz has joined #angularjs
[18:25:41] *** TimboTones has joined #angularjs
[18:25:59] *** xat- is now known as xAt
[18:26:01] <ryanc_> I will watch thanks. I found a sample directive that does something similar. But I'm not sure how or where to place code to load the user's permissions with each page reload
[18:26:16] *** bengillies has joined #angularjs
[18:26:24] *** frostig_ has joined #angularjs
[18:26:30] *** TimmyTones has quit IRC
[18:26:44] *** avens_ has quit IRC
[18:26:51] *** blueadept has quit IRC
[18:26:57] <oniijin> service/resolve?
[18:27:17] *** avens has joined #angularjs
[18:27:21] <oniijin> there are a few articles about authorization
[18:27:23] *** lsiv568 has quit IRC
[18:27:35] *** Drako_ has quit IRC
[18:27:38] *** itsmeandrewd has joined #angularjs
[18:27:49] *** avens has quit IRC
[18:27:54] *** rhp has joined #angularjs
[18:28:01] <snapwich> yeah, i'd suggest using ui-router with a resolve on authenticated routes
[18:28:04] *** daryllxd has quit IRC
[18:28:12] *** teeray has quit IRC
[18:28:19] <ryanc_> thanks, I will check on that
[18:28:35] *** jackweirdy has joined #angularjs
[18:28:38] <ryanc_> surprised there isn't more samples of enforcing permissions in this way
[18:28:52] *** arabot has joined #angularjs
[18:28:55] <subone> Using $anchorScroll, and it's working well. I can for example do <a href="#/#contact_prefs"> and it will take me to the route "#/" and scroll appropriately. But is there any way to specify the scrollTo part without changing the current route and without requiring me to put the whole route in the href? Example: <a href="##contact_prefs"> (but this doesnt go to the same route, goes to the default route) /cc caitp
[18:28:59] *** arabot has quit IRC
[18:28:59] <oniijin> well, client side security isnt really 'safe'
[18:29:03] *** MacWinner has joined #angularjs
[18:29:13] *** snurfery has quit IRC
[18:29:32] <snapwich> yeah, the client shouldn't enforce anything
[18:29:34] *** codedungeon has joined #angularjs
[18:29:37] <snapwich> because it's not trustworthy
[18:29:37]
<Siecje1> Is it possible to use ng-options in a select but specify the value and the text? https://dpaste.de/dNZS
[18:29:52] *** TimmyTones has joined #angularjs
[18:30:10] *** sneakertack has quit IRC
[18:30:21] *** avens has joined #angularjs
[18:30:40] *** ineedarobot has quit IRC
[18:30:51] *** dman777_alter has joined #angularjs
[18:31:20] <carpediembaby> what is the best way to sanitize html in angularjs? I have some html snippet which fails to pass through sanitize (i presume because of an email address like this: <abc at def dot com>). It is generated by the user so I would prefer not to use $sce. I think what I am looking for is to replace the <> etc with > and <
[18:31:31] <carpediembaby> Is there a utility function for this?
[18:31:44] *** DoniRS has quit IRC
[18:32:02]
<dman777_alter> can anyone please help me with modal in the in directive? it modal works in the controller where scope is native, but in the directive....when I pass the scope to the modal it is not populating the modal view with the scope variables. http://bpaste.net/show/kWhDMgcBa2lsUHWvlD68/
[18:32:22] <dman777_alter> been stuck on this since last night :(
[18:32:23] *** foofoobar has quit IRC
[18:32:23] *** dutis has quit IRC
[18:32:23] *** jbourassa has joined #angularjs
[18:32:41] *** teddyp1cker has quit IRC
[18:32:51] <ryanc_> snapwich, thanks for the info. I will stew on that for a bit and review the link you sent. Ryan
[18:32:53] *** TimboTones has quit IRC
[18:32:59] *** BMCouto has quit IRC
[18:32:59] *** asdofindia has quit IRC
[18:33:00] *** Natsu- has quit IRC
[18:33:07] *** Methylated has quit IRC
[18:33:09] *** Joulse has quit IRC
[18:33:16] *** ccohn has joined #angularjs
[18:34:01] *** jackweirdy has quit IRC
[18:34:10] *** asdofindia has joined #angularjs
[18:34:57] *** avens has quit IRC
[18:35:38] *** jeffszusz has quit IRC
[18:35:51] *** FIFOd[a] has joined #angularjs
[18:36:01] *** eperez has quit IRC
[18:36:13] *** fouzko has joined #angularjs
[18:36:37] *** maveneagle has joined #angularjs
[18:37:19] *** MacWinner has quit IRC
[18:37:33] *** ccohn has quit IRC
[18:38:25] *** cthrax has quit IRC
[18:38:34] *** Wolfe has joined #angularjs
[18:38:39] *** secondjeff has quit IRC
[18:39:15] *** lordkryss has joined #angularjs
[18:39:38] *** wafflejock has quit IRC
[18:39:45] *** tsalb has joined #angularjs
[18:40:12] *** FIFOd[a] has quit IRC
[18:40:32] *** Guest___ has quit IRC
[18:40:49] *** InezK is now known as InezK_away
[18:40:50] *** jeffszusz has joined #angularjs
[18:41:26] *** wafflejock has joined #angularjs
[18:42:24] <the-erm> dman777_alter: You should console.log($modal) and make sure it's what you think it is.
[18:42:33] *** patrick99e99 has quit IRC
[18:42:35] *** djam90 has quit IRC
[18:42:46] *** leftblank has quit IRC
[18:42:55] *** bjr217 has joined #angularjs
[18:42:59] *** snurfery has joined #angularjs
[18:43:15] <the-erm> It might very well be a scope ... or nothing at all.
[18:43:24] *** conner_ has joined #angularjs
[18:44:07] <davek> Woo! New soldering iron!
[18:44:17] *** InezK_away is now known as InezK
[18:44:21] *** cthrax has joined #angularjs
[18:44:25] *** eperez has joined #angularjs
[18:44:47] <the-erm> davek: Whatch gonna make?
[18:44:47] *** sk87 has quit IRC
[18:45:02] *** Dimlock has quit IRC
[18:45:12] *** Sijdesign has joined #angularjs
[18:45:26] *** shinnya has quit IRC
[18:45:44] *** eperez has quit IRC
[18:45:58] *** subnl has joined #angularjs
[18:46:07] <davek> the-erm, EL stuff for Burning Man.
[18:46:12] *** slainer68 has quit IRC
[18:46:23] *** MuffinMan` has joined #angularjs
[18:46:24] *** eperez has joined #angularjs
[18:46:34] *** xAt is now known as xat-
[18:47:12] *** wafflejock has quit IRC
[18:47:16] <marc_v92> Longshot question, not related to Angular in particular, but needed for my Angular app…I need to have an ASCII dependency map in one of the files, but I don’t really want to build it out by hand. Anyone here know of any resources that could do this automagically?
[18:47:32] *** bkuberek has quit IRC
[18:47:45] <davek> Dependency map?
[18:47:51] *** mfunkie has joined #angularjs
[18:47:55] <the-erm> Sijdesign: I think it might be $scope.items.splice($index, 1); not 0
[18:48:02] *** jbourassa has quit IRC
[18:48:05] *** bkuberek has joined #angularjs
[18:48:12] *** teddyp1cker has joined #angularjs
[18:48:22] *** Cavallari has joined #angularjs
[18:48:51] *** maurycyg has quit IRC
[18:48:54] *** intellix has quit IRC
[18:49:05] *** Xethron has joined #angularjs
[18:49:06] <Sijdesign> yay Thanks the-erm !
[18:49:21] <the-erm> Sijdesign: try it both ways can console.log($scope.items) to make sure.
[18:49:32] *** fouzko has quit IRC
[18:49:45] <Sijdesign> yea i will try and see :) im really new to angularjs
[18:49:53] *** jkremser has quit IRC
[18:49:58] *** fouzko has joined #angularjs
[18:50:04] *** jeffszusz has quit IRC
[18:50:14] *** yogurt_truck has joined #angularjs
[18:50:22] *** jareddlc has joined #angularjs
[18:50:23] *** snapwich has quit IRC
[18:50:33] <marc_v92> (That’s not my dependency map, FYI. Just an example of one)
[18:50:52] <davek> Oh you literally need an ASCII dependency graph...
[18:50:54] <dman777_alter> the-erm: I see the problem..it's not really a modal issue. Sorry, my scope variables are not showing in the template
[18:51:01] *** eperez has quit IRC
[18:51:11] *** wafflejock_ has joined #angularjs
[18:51:13] *** bkuberek has quit IRC
[18:51:30] *** mpaarating has quit IRC
[18:51:39] *** bkuberek has joined #angularjs
[18:51:57] *** fooflare has quit IRC
[18:52:05] <yoshokatana> marc_v92: take a look at npm's deps graph? it's all ascii-rific
[18:52:50] *** lw has quit IRC
[18:53:02] <nickeddy> yoshokatana: that's pretty
[18:53:06] <marc_v92> yoshokatana: Thanks, I’ll check it out!
[18:53:18] <yoshokatana> yup
[18:54:17] *** foofoobar_ has quit IRC
[18:54:20] *** jbourassa has joined #angularjs
[18:55:08] *** fouzko has quit IRC
[18:55:29] *** jbourassa has quit IRC
[18:55:40] *** DrMabuse has quit IRC
[18:55:50] *** orion1111 has quit IRC
[18:56:41] *** wafflejock_ has quit IRC
[18:56:48] *** dejanr_ has joined #angularjs
[18:56:49] *** bLu___ has joined #angularjs
[18:57:22] *** ppppaul has quit IRC
[18:57:32] *** jbourassa has joined #angularjs
[18:58:10]
<dman777_alter> http://bpaste.net/show/ItRpJGo4BRF71yDVT7Rr/ My scope variables are not populating the template. I verfied the scope is good with console.log(). How can I see what is being fed to the template? or is there a way?
[18:58:21] *** avens has joined #angularjs
[18:58:45] *** jbourassa has quit IRC
[18:59:03] *** UniBot has joined #angularjs
[18:59:22] *** MaxV has joined #angularjs
[18:59:42] *** UniBot has quit IRC
[18:59:47] *** Yahkob has quit IRC
[19:00:16] *** jbourassa has joined #angularjs
[19:00:18] *** Sijdesign has quit IRC
[19:00:32] *** cctom has quit IRC
[19:01:06] *** amergin_ is now known as amergin
[19:01:46] *** dejanr_ has quit IRC
[19:02:20] *** MistahKurtz has joined #angularjs
[19:02:35] *** thebigredgeek has joined #angularjs
[19:02:42] *** Xethron has quit IRC
[19:02:46] *** lsiv568 has joined #angularjs
[19:02:53] *** wallerdev has joined #angularjs
[19:02:57] <thebigredgeek> BahamutWC: hey, can you check your voicemail?
[19:03:01] <thebigredgeek> Are you online?
[19:03:18] <tangorri> do you think I can set a cookie for an iframe (extending it with a diretive...) ?
[19:03:21] <davek> Just to be sure, angular doesn't have a separable event emitter yeah?
[19:03:52] <davek> tangorri, yes but it will be a 3rd party cookie.
[19:03:52] *** dmack has joined #angularjs
[19:04:14] <tangorri> davek I wan to set the cookie for the domain if the iframe ...
[19:04:22] <tangorri> of
[19:04:28] <davek> Yes that's all you can do.
[19:04:32] <tangorri> cool
[19:04:39] *** snapwich has joined #angularjs
[19:04:47] <tangorri> let's I need to use compile function then maybe ?
[19:04:49] <davek> Recognize that most browsers block these by default though.
[19:04:54] <davek> Or at least warn users that they're being saved.
[19:05:00] *** Xethron has joined #angularjs
[19:05:06] <tangorri> I mean where should I set the cookie ?
[19:05:14] <tangorri> postLink seems to late right ?
[19:05:31] *** hmr has quit IRC
[19:05:57] <the-erm> dman777_alter: double check your action variable inside the loop adding something like "action: {{action}} " will allow you debug what's inside the action.
[19:06:02] *** richiebkr has joined #angularjs
[19:06:19] *** UniBot has joined #angularjs
[19:06:20] *** ccohn has joined #angularjs
[19:06:49] *** richiebkr has quit IRC
[19:07:04] <davek> tangorri, well it will have to be after the IFrame finishes actually rendering.
[19:07:26] *** UniBot has quit IRC
[19:07:33] *** maurovitale has joined #angularjs
[19:07:35] <tangorri> how too bad, I need to the cookie to be set when requesting the iframe content
[19:07:48] *** jgravois has joined #angularjs
[19:07:50] <dman777_alter> the-erm: I tried that but still nothing showed up.
[19:08:25] *** duall has quit IRC
[19:08:36] <tangorri> thanks davek I appreciate
[19:08:38] *** benjamingr has joined #angularjs
[19:08:39] <davek> Yep.
[19:08:39] *** mikeywaites has quit IRC
[19:08:49] *** Wolfe has quit IRC
[19:08:52] *** jeffszusz has joined #angularjs
[19:08:54] <davek> How bad do you figure it would be having a scroll directive just broadcast its updates on the scope...
[19:09:05] <dman777_alter> the-erm: so i guess the template is not getting the scope, right? any ideas why? everything looks cut and dry
[19:09:42] *** bencc has joined #angularjs
[19:09:52] *** MaxV has quit IRC
[19:10:30] *** MaxV has joined #angularjs
[19:10:42] *** whunt has joined #angularjs
[19:10:50] *** UniBot has joined #angularjs
[19:10:51] *** ppppaul has joined #angularjs
[19:10:54] *** stevvooe has joined #angularjs
[19:11:02] *** cmfatih has joined #angularjs
[19:11:08] *** bkuberek has quit IRC
[19:11:09] <tangorri> davek I fact I'd like to keep cookie sent by the API (not the front end domain), to then call iframe with the cookie directly fro mthe api host
[19:11:39] <davek> Don't understand any of that.
[19:11:48] <tangorri> directly to the api host (migrating from python/html to webservice)
[19:11:57] *** chrisbirk has quit IRC
[19:12:04] <tangorri> davek : I use 127.*** for the front
[19:12:12] <tangorri> api is 37.****
[19:12:18] *** jgravois has quit IRC
[19:12:27] *** mven_ has joined #angularjs
[19:12:34] *** DrJae has joined #angularjs
[19:12:40] <tangorri> api is for webservices And some iframe content taht need the cookie to be sent
[19:12:51] *** shackleford has quit IRC
[19:12:51] *** avens has quit IRC
[19:12:56] *** mven has quit IRC
[19:13:22] <tangorri> 37.* send me cookie at auth but I appear not to be store on the 37.* domain
[19:13:26] *** avens has joined #angularjs
[19:13:34] <tangorri> it appears
[19:13:44] *** bengillies has quit IRC
[19:14:02] <xastey> man got damn iframe and cookies
[19:14:15] <tangorri> ya it's not ool
[19:14:17] <tangorri> cool
[19:14:20] *** bengillies has joined #angularjs
[19:14:21] *** mattattaque has joined #angularjs
[19:14:44] <xastey> wish I asked about it ealier.. didn't know about the P3P header
[19:14:56] *** MaxV has quit IRC
[19:15:03] *** heidi has joined #angularjs
[19:15:14] *** greengriminal has quit IRC
[19:15:16] *** Jae has quit IRC
[19:15:57] *** whiteboo_ has quit IRC
[19:16:07] *** mercwithamouth has quit IRC
[19:16:16] *** blak422 has quit IRC
[19:16:35] *** slainer68 has joined #angularjs
[19:16:36] *** teddyp1cker has quit IRC
[19:16:55] *** jacuqesdancona has joined #angularjs
[19:16:58] *** UniBot has quit IRC
[19:17:23] *** UniBot has joined #angularjs
[19:18:05] *** mpaarating has joined #angularjs
[19:18:26] *** juampy has joined #angularjs
[19:18:33] <davek> tangorri, so your server isn't storing the client cookie?
[19:18:50] *** bengillies has quit IRC
[19:18:51] <davek> Have you set up a session store? Also ensure that you have the P3P header configured like xastey suggested.
[19:19:38] <xastey> o_0 dont be looking at me
[19:20:06] *** Joshee has joined #angularjs
[19:20:28] <Foxandxss> davek: do it with a throttle
[19:20:31] <Foxandxss> or you will die
[19:20:36] *** roolo has quit IRC
[19:20:38] *** TimmyTones has quit IRC
[19:21:15] *** JasonStoltz has quit IRC
[19:21:22] *** jacuqesdancona has quit IRC
[19:21:23] *** josh-k has quit IRC
[19:21:35] *** JasonStoltz has joined #angularjs
[19:21:35] *** MaxV has joined #angularjs
[19:21:39] *** zfogg has joined #angularjs
[19:21:44] *** slainer68 has quit IRC
[19:22:09] <tangorri> davek well the auth process respond with a cookie but I can't see it on chrome's Resources, it's not set
[19:22:21] *** jonnybro has joined #angularjs
[19:22:45] *** Sebastien-L has quit IRC
[19:22:48] *** jgravois has joined #angularjs
[19:22:53] <tangorri> davek I will the back end dev to put the header
[19:22:56] *** tpyo has joined #angularjs
[19:22:58] <davek> tangorri, it's not set on the parent document because its a third party cookie.
[19:22:58]
<in_deep_thought> can someone help me determine why my “stickie” is being returned as undefined? I am doing something wrong with the assinging of variables in the form with $scope.formData but I’m not sure what it is: http://pastebin.com/fPHa75Zx
[19:23:04] <tangorri> yes I use localstorage beside of that
[19:23:21] <tangorri> davek I think
[19:23:36] <tangorri> but I should see it on 37.* (api/backend host) no ?
[19:23:38] <davek> You're using postMessage then or?
[19:23:43] <tangorri> no
[19:23:51] *** chrisbirk has joined #angularjs
[19:23:52] *** cspra85 has quit IRC
[19:23:59] <tangorri> the iframe is just to load 'oldschool' widgets content
[19:24:18] <davek> Not to complicate things but have you looked into shadow DOM?
[19:24:21] *** danyim has joined #angularjs
[19:24:31] <tangorri> shadows dom?
[19:24:42] <tangorri> I use the chromes's Resources panel ...
[19:25:00] *** amargherio has joined #angularjs
[19:25:15] <davek> Shadow DOM is an HTML 5 feature that enables exactly what you're describing. Better communucation and interaction with small DOM sub-trees that originate from a common source (i.e. widgets).
[19:25:36] <tangorri> wow :D
[19:25:50] <tangorri> thanks I'm having a look
[19:25:50] *** teeray has joined #angularjs
[19:25:51] *** mattwynne has quit IRC
[19:26:16] <davek> tangorri, if you decide its overboard or you're not interested in that route just let me know and we'll keep trying to debug your current issue.
[19:26:23] *** mattwynne has joined #angularjs
[19:26:52] <tangorri> davek really nice
[19:27:07] *** nanoyak has joined #angularjs
[19:27:13] <tangorri> I think we're gonna use a workaround like sending a token in url param
[19:27:19] *** mini has joined #angularjs
[19:27:22] <tangorri> but interesting reading
[19:27:50] <tangorri> web components it's promising
[19:28:03] *** lw has joined #angularjs
[19:28:36] <BahamutWC|Work> shadow dom is basically what a directive is
[19:28:37] *** danyim has quit IRC
[19:28:54] <BahamutWC|Work> or rather, building components using shadow dom
[19:29:00] <tangorri> I'll read about polymer etc asap :)
[19:29:09] <tangorri> ok
[19:29:22] *** snurfery has quit IRC
[19:29:50] *** InezK is now known as InezK_away
[19:29:55] *** InezK_away is now known as InezK
[19:30:06] *** icfantv has quit IRC
[19:30:11] <tangorri> for my issue I think the best plan is to use url param, the backend dev has plan to move all to webservice anyway (I want full token and burn for all the cookies)
[19:30:40] *** xyNNN has joined #angularjs
[19:31:10] *** mattwynne has quit IRC
[19:31:34] *** ryanc_ has quit IRC
[19:31:46] *** snurfery has joined #angularjs
[19:32:10] *** Cavallari has quit IRC
[19:32:23] *** Xethron has quit IRC
[19:32:56] *** AlSquire has quit IRC
[19:33:02] *** davi has quit IRC
[19:33:31] *** AlSquire has joined #angularjs
[19:33:33] *** MaxV has quit IRC
[19:33:40] *** mccarrontr1ck has quit IRC
[19:33:52] *** ngbot has joined #angularjs
[19:33:52] <ngbot> angular.js/master 34781f1 Caitlin Potter: fix(ngSanitize): ensure `html` is a string in htmlParser()...
[19:33:52] *** ngbot has left #angularjs
[19:33:52] *** mindlace has joined #angularjs
[19:34:07] *** MaxV has joined #angularjs
[19:34:17] *** cthrax has quit IRC
[19:34:39] *** nemothekid has quit IRC
[19:34:44] *** sk87 has joined #angularjs
[19:35:30] *** mini has quit IRC
[19:36:14] *** AlSquire has quit IRC
[19:36:17] *** bjr217 has quit IRC
[19:36:18] *** sk87 has quit IRC
[19:36:40] *** darkelda has joined #angularjs
[19:36:40] *** darkelda has joined #angularjs
[19:36:55] *** netto_ has joined #angularjs
[19:37:05] *** jdj_dk has joined #angularjs
[19:37:31] <bLu___> how do i filter through json without using ngrpeat and returning the result still in json form
[19:37:56] *** Somatt_wrk has quit IRC
[19:38:20] *** MaxV has quit IRC
[19:38:22] *** bbrown has joined #angularjs
[19:38:26] *** vintik has joined #angularjs
[19:38:43] *** TheAceOfHearts has joined #angularjs
[19:38:55] <bLu___> i believe I can push the filtered by using angular.foreach into an array, but i'd like to have it still in the same json form
[19:38:55] *** carpediembaby has quit IRC
[19:39:08] <davek> bLu___, why would it not be in JSON form?
[19:39:19] <davek> Parsed JSON is a native JS object.
[19:39:35] *** teddyp1cker has joined #angularjs
[19:39:52] *** arntempelgibbarn has quit IRC
[19:40:11] <bLu___> Hmm I guess, i must be returning it incorrectly
[19:41:00] *** UniBot has quit IRC
[19:41:07] *** stevvooe has quit IRC
[19:41:11] *** Xethron has joined #angularjs
[19:41:25] *** netto_ has quit IRC
[19:41:27] *** mfunkie has quit IRC
[19:41:31] *** phuh has quit IRC
[19:41:40] *** jdj_dk has quit IRC
[19:41:53] *** mfunkie has joined #angularjs
[19:42:00] *** phuh has joined #angularjs
[19:42:21] <bLu___> davek, if I created a plunker - would you mind taking a look at it?
[19:42:22] *** dve has quit IRC
[19:42:27] *** ppppaul has quit IRC
[19:42:36] <davek> bLu___ not at all.
[19:42:51] <bLu___> thanks - give me a few ...
[19:43:04] *** yk has joined #angularjs
[19:43:08] *** yk has quit IRC
[19:43:10] *** ppppaul has joined #angularjs
[19:43:15] *** Methylated has joined #angularjs
[19:43:15] *** Wolfe has joined #angularjs
[19:43:16] *** Aliks_ has joined #angularjs
[19:43:19] *** yk has joined #angularjs
[19:43:26] *** UniBot has joined #angularjs
[19:43:54] *** yk has quit IRC
[19:44:06] *** yk has joined #angularjs
[19:44:13] <Chepra> is there a good way to access the previous element in an ng-repeat?
[19:44:13] *** yk has quit IRC
[19:44:24] *** yk has joined #angularjs
[19:44:28] *** UniBot has quit IRC
[19:44:45] *** jpstone has quit IRC
[19:44:46] *** Seus has quit IRC
[19:44:48] *** _sean has quit IRC
[19:44:49] *** seventy3 has quit IRC
[19:44:49] *** amacgregor has quit IRC
[19:44:50] *** alextucker has quit IRC
[19:44:50] *** CainVampyr has quit IRC
[19:44:50] <TheAceOfHearts> yeah
[19:44:53] <TheAceOfHearts> Chepra: $index - 1 ?
[19:45:01] *** CainVampyr has joined #angularjs
[19:45:10] *** jpstone has joined #angularjs
[19:45:31] *** _sean has joined #angularjs
[19:45:52] *** yk has quit IRC
[19:46:05] *** yk has joined #angularjs
[19:46:10] *** mfunkie has quit IRC
[19:46:16] *** yk has quit IRC
[19:46:50] *** crewshin has quit IRC
[19:46:51] *** secondjeff has joined #angularjs
[19:47:08] *** patrick99e99 has joined #angularjs
[19:47:52] *** UniBot has joined #angularjs
[19:47:56] *** zumba_addict has quit IRC
[19:48:39] <dob_> I wan to inject a module into another module from outside and register the modules service as handler for a controller. Do you know a example where this happened?
[19:49:05] *** bjr217 has joined #angularjs
[19:49:11] <TheAceOfHearts> wut
[19:49:33] *** bertrandk has quit IRC
[19:49:38] <davek> That seems like a terrible idea.
[19:49:39] *** fold has quit IRC
[19:50:25] <sonicparke|bradm> so using resolves in ui-router to askk the server if the user is authorized for that route is secure enough?
[19:50:34] *** tangorri has quit IRC
[19:51:38] *** ccohn has quit IRC
[19:51:51] <Foxandxss> sonicparke|bradm: #define secure
[19:52:02] <sonicparke|bradm> server-side rather thn client only
[19:52:06] <sonicparke|bradm> than*
[19:52:20] <Foxandxss> You can't do that for security
[19:52:20] *** mfunkie has joined #angularjs
[19:52:25] <Foxandxss> Just put a flag on the routers
[19:52:30] <davek> sonicparke|bradm, the client has no security. It can request whatever resource it likes and there's nothing you can do about it other than to restrict those resources on the back end.
[19:52:33] *** edrocks has quit IRC
[19:52:39] <Foxandxss> like: data: { AccessLevels.user }
[19:52:47] <Foxandxss> or: data: { AccessLevels.anon }
[19:52:54] *** startupality has joined #angularjs
[19:52:58] <Foxandxss> and then on $stateChangeStart read that and do what is needed
[19:52:59] <sonicparke|bradm> ok. that's kinda what I'm doing already
[19:53:28] <Foxandxss> If you do the resolve thingy, nothing prevents me of going to the source, deleting the resolve by hand and I can go where I want
[19:53:31] <sonicparke|bradm> I'll put a quick gist together
[19:53:41] *** ccohn has joined #angularjs
[19:53:44] <sonicparke|bradm> ah
[19:53:52] <sonicparke|bradm> even minified?
[19:54:00] *** dccc has joined #angularjs
[19:54:04] <Foxandxss> sure
[19:54:18] *** jbolie has joined #angularjs
[19:54:20] <Foxandxss> instead of 20 seconds
[19:54:23] <Foxandxss> maybe 100
[19:54:37] *** MaxV has joined #angularjs
[19:54:39] *** secondjeff has quit IRC
[19:55:02] *** eperez has joined #angularjs
[19:55:06] *** Nizumzen has quit IRC
[19:55:15] *** citizen-stig has quit IRC
[19:55:18] *** suffice_ has quit IRC
[19:55:29] *** suffice has joined #angularjs
[19:56:05] <sonicparke|bradm> hmmm
[19:56:18] <Foxandxss> uh, 27 articles I defined for my deep dive into directives series, they are going to be short and focused, easy to write
[19:56:33] <sonicparke|bradm> sweet!
[19:56:35] *** vbabiy has quit IRC
[19:57:00] *** DuelShark has joined #angularjs
[19:57:19] *** shackleford has joined #angularjs
[19:57:35] *** dejanr_ has joined #angularjs
[19:57:46] <Foxandxss> why _HasAccess has a deferred?
[19:57:53] <sonicparke|bradm> davek: so to restrict an API call on the backend we need to pass a token with every call and if that token doesn't match then no data is transferred back. Sound right?
[19:58:13] <sonicparke|bradm> returns a promise. can't remember why I did that
[19:58:13] <davek> Yes.
[19:58:15] *** olveraricardo72 has quit IRC
[19:58:19] *** olverari` has joined #angularjs
[19:58:40] <davek> If you're using JWT, you can pass the user profile including access level in the token that you return.
[19:58:44] *** shackleford has quit IRC
[19:58:58] *** shackleford has joined #angularjs
[19:59:09] *** shackleford has quit IRC
[19:59:09] <sonicparke|bradm> not sure we'll be using JWT. will have to look into what that entails. we're using a .NET WebAPI backend
[19:59:28] *** watsonkp has quit IRC
[19:59:30] <sonicparke|bradm> is that restricted to a JS backend only?
[19:59:41] *** shackleford has joined #angularjs
[19:59:47] <Foxandxss> no
[19:59:51] <sonicparke|bradm> ok
[20:00:19] <Foxandxss> quick search
[20:00:21] *** Zamerick has joined #angularjs
[20:00:21] *** nielsle has quit IRC
[20:00:34] <sonicparke|bradm> I'll check it out. Just haven't yet
[20:00:42] *** gauravsaini03 has quit IRC
[20:00:46] <bealtine> use an ashx or just $http
[20:00:49] <Foxandxss> the only problem is that there are new stuff on JWT and so far I only saw node and ruby versions to be complete
[20:00:57] <Foxandxss> the others are _old_
[20:01:07] *** AlexZanf has quit IRC
[20:01:31] <sonicparke|bradm> so what would JWT get me that just a server generated token and json object with user info wouldn't
[20:01:33] *** ccohn_ has joined #angularjs
[20:01:41] <sonicparke|bradm> unless that's googlable also
[20:01:48] *** netto_ has joined #angularjs
[20:01:57] *** watsonkp has joined #angularjs
[20:02:04] *** styles has quit IRC
[20:02:09] <davek> That's literally what it is, it's just a standard implementation of it that is secure.
[20:02:10] <Foxandxss> I have a simple blog for articles
[20:02:15] <sonicparke|bradm> ah. that's your site right?
[20:02:17] *** dejanr_ has quit IRC
[20:02:17] <Foxandxss> I hate*
[20:02:21] *** ccohn has quit IRC
[20:02:22] <Foxandxss> yes
[20:02:24] <sonicparke|bradm> cool
[20:02:30] *** netto_ has left #angularjs
[20:02:33] <OnkelTem> Please guys, quick adivce: how to run simple jQuery or vanilla js code right after angular finishes erm... something? :)
[20:02:34] <Foxandxss> I would need my own solution for articles, a blog is crap
[20:02:43] <sonicparke|bradm> hmmm
[20:02:47] <Foxandxss> OnkelTem: promises?
[20:02:50] *** stevvooe has joined #angularjs
[20:03:14] <sonicparke|bradm> Faxandxss: so is using deferred for _HasAccess a problem or jsut overkill?
[20:03:27] <Foxandxss> no, you're simply not using it at all
[20:03:28] *** hychen has quit IRC
[20:03:30] <OnkelTem> Foxandxss: hm, sounds not easy :) Ok, let me provide an example
[20:03:48] <Foxandxss> sonicparke|bradm: or maybe I am blind today
[20:03:57] <Foxandxss> definitely not
[20:04:04] <sonicparke|bradm> seems like this is where it is in use: return $q.when(isAdmin);
[20:04:18] *** joroci has quit IRC
[20:04:19] <Foxandxss> and how is your "var deferred" used there?
[20:04:20] <OnkelTem> I have ngRepeat statement which adds some elements. Now I want to set heights of elements window height devided to count of elements.
[20:04:26] <OnkelTem> by
[20:04:43] *** Inge- has joined #angularjs
[20:04:45] <sonicparke|bradm> which is really copy & paste from _IsAdmin so I should probably change that
[20:04:53] *** zackiv31 has joined #angularjs
[20:05:05] <davek> OnkelTem, use a directive on the parent element.
[20:05:11] <davek> The container, I should say.
[20:05:16] *** edrocks has joined #angularjs
[20:05:17] <OnkelTem> ok, I'll try
[20:05:19] *** dcherman2 has joined #angularjs
[20:05:19] <OnkelTem> thanks
[20:05:40] *** joroci has joined #angularjs
[20:05:41] <sonicparke|bradm> I think it was solving another problem and I can't freaking remember what now. :-) different project
[20:06:02] *** jls has joined #angularjs
[20:06:08] <Foxandxss> sonicparke|bradm: btw, the second part of the article has "my way" of doing what you're doing
[20:06:22] <sonicparke|bradm> cool
[20:06:40] <OnkelTem> davek: but honestly I beleive I should somehow use ngRepeat or it's scope as parent wouldn't be "notified" if/when ngRepeat re-runs
[20:06:52] <OnkelTem> , as parent
[20:07:08] *** uf6667 has joined #angularjs
[20:07:35] *** ngoyal_ has joined #angularjs
[20:08:08] *** uf6668 has quit IRC
[20:08:23] *** dcherman has quit IRC
[20:08:31] *** Joshee has quit IRC
[20:08:36] *** richiebkr has joined #angularjs
[20:08:53] <sonicparke|bradm> so far these are all internal apps so we're grabbing the username via .NET (boooooo) and just passing it to the server. So the "security" I have in place will work for now. But the next step is to implement the token with every call and single sign-on plan
[20:09:05] *** AlSquire has joined #angularjs
[20:09:10] *** Joshee has joined #angularjs
[20:09:43] *** startupality has quit IRC
[20:10:05] *** c0bra has joined #angularjs
[20:10:16] <davek> OnkelTem, you can do that, it's just not the best way. Consider the expense of having every single repeat element grab the container's height and then try to resize itself. Is the container a static height? If so, why not statically code that resize logic? Have you tried tables? Have you tried flexbox?
[20:10:23] *** partikus has joined #angularjs
[20:10:39] *** elux has joined #angularjs
[20:10:52] *** codedungeon has quit IRC
[20:10:53] *** partikus has quit IRC
[20:11:18] *** pibu7 has quit IRC
[20:11:31] *** Dan___ has joined #angularjs
[20:11:46] *** ngoyal has quit IRC
[20:11:49] *** CainVampyr has quit IRC
[20:11:56] <sonicparke|bradm> so localstorage vs cookie for storing token? one better than the other?
[20:12:11] <sonicparke|bradm> Foxandxss: reading your article
[20:12:16] *** Venkat has joined #angularjs
[20:12:20] *** cspra85 has joined #angularjs
[20:12:21] <snapwich> use a cookie
[20:12:37] <snapwich> you need both the client and the server to know about the token
[20:12:43] <snapwich> and localStorage is just a client thing
[20:12:49] *** mccarrontr1ck has joined #angularjs
[20:12:57] *** jpstone has quit IRC
[20:13:10] <snapwich> so i guess more specifically i should say, use an http cookie
[20:13:19] *** karinaOK has joined #angularjs
[20:13:46] <sonicparke|bradm> ok. I'll have to read up on that. our current localStorage plan was to keep the token in LS and in the DB on the server until server decides to expire it
[20:13:49] *** ngoyal_ has quit IRC
[20:13:54] <davek> What? No use sessionStorage.
[20:14:12] <sonicparke|bradm> sessionStorage
[20:14:16] *** ngoyal has joined #angularjs
[20:14:19] <sonicparke|bradm> I'll have to research that one
[20:14:21] *** ngbot has joined #angularjs
[20:14:21] <ngbot> angular.js/master a00c9bc rodyhaddad: fix(jqLite): fix regression where mutating the dom tree on a event breaks jqLite.remove...
[20:14:21] *** ngbot has left #angularjs
[20:14:34] *** Gooder has quit IRC
[20:14:35] <BahamutWC|Work> pushed to master :o
[20:14:40] <snapwich> it's the same as localStorage but it expires
[20:14:46] <snapwich> after the sesion closes
[20:14:51] <sonicparke|bradm> ah ok
[20:14:57] <davek> Yeah which is exactly what you want, since the token is tied to the session.
[20:14:59] <sonicparke|bradm> so kinda like the new cookie
[20:15:10] <snapwich> but I don't know why you wouldn't just use an http cookie because you're going to be wanting to pass the token to the server with each request anyways
[20:15:19] <davek> Also JWT is intended to replace a session cookie so it sort of defeats the purpose to store it that way.
[20:15:31] *** InezK is now known as InezK_away
[20:15:40] *** subnl has quit IRC
[20:15:41] *** styles has joined #angularjs
[20:15:41] *** styles has joined #angularjs
[20:15:44] <davek> snapwich, because you can simply write an http interceptor that pre-loads your request headers with the JWT token in the Authorization field as expected?
[20:15:45] *** MaxV has quit IRC
[20:15:56] *** Dan___ has quit IRC
[20:15:59] <snapwich> why do that extra work?
[20:16:01] <snapwich> what do you gain?
[20:16:12] *** zfogg has quit IRC
[20:16:12] <snapwich> http cookies do that automatically
[20:16:20] <Foxandxss> snapwich: on JWT there is no real need of token
[20:16:26] *** MaxV has joined #angularjs
[20:16:32] <Foxandxss> sonicparke|bradm: any option is good, all depend on your use case
[20:16:38] *** DV8_ has joined #angularjs
[20:16:56] <rbs> hey, I have several unique records, that belongs to other common records, for example, contract-1.item1, contract-1.item2, contract-2.item1, but I dont 'know' the contracts, I just have a list of item's, how to I listem them groupedBy contracts?
[20:16:57] *** msafi1 has joined #angularjs
[20:17:03] <rbs> I want to use ng-repeat
[20:17:05] <snapwich> of course you need a token
[20:17:15] <snapwich> it's in the name. JSON web token
[20:17:28] <Venkat> Hi,
[20:17:38] *** UniBot has quit IRC
[20:17:51] *** slainer68 has joined #angularjs
[20:18:04] <Venkat> When I am trying to use ng-repeat to show lync presence it is not working
[20:18:18] *** \du has quit IRC
[20:18:23] <Venkat> but when I write static html it is working fine
[20:18:26] <davek> snapwich, how is that extra work? For one, you're not having to do an extra layer of deserialization to inspect the session state.
[20:18:27] *** {DV8} has quit IRC
[20:18:42] <Venkat> please help me
[20:19:20] <snapwich> davek: so with JWT are saying your store your serialized JSON as your token and use that to store all your state?
[20:19:32] *** InezK_away is now known as InezK
[20:19:42] *** msafi has quit IRC
[20:19:59] *** night-owl2 has quit IRC
[20:20:08] <davek> It also means you're not going to run into CORS issues or CSRF vulnerabilities.
[20:20:20] *** bertrandk has joined #angularjs
[20:20:27] <davek> snapwich, the user's serialized and encoded profile forms part of the returned token yes.
[20:20:35] <davek> Subsequent requests need only to validate the token, not inspect it.
[20:21:04] *** vbabiy has joined #angularjs
[20:21:06] <snapwich> but isn't an http header field pretty limited in how much data you could actual store in there? as opposed to a cookie
[20:21:06] *** MaxV has quit IRC
[20:21:14] *** nodweber has quit IRC
[20:21:19] *** UniBot has joined #angularjs
[20:21:22] <davek> snapwich, where do you think cookies go?
[20:21:53] <snapwich> a cookie fiel
[20:21:54] <snapwich> file
[20:21:59] <snapwich> on your machine
[20:22:01] *** bertrandk has quit IRC
[20:22:14] *** bertrandk has joined #angularjs
[20:22:19] *** DrJae is now known as Jae
[20:22:20] <davek> Right... how do you figure it gets to the server?
[20:22:24] *** Jae has quit IRC
[20:22:24] *** Jae has joined #angularjs
[20:22:30] *** slainer68 has quit IRC
[20:22:36] *** tpyo has quit IRC
[20:22:46] *** chrisbirk has quit IRC
[20:22:54] *** Olsonfold has quit IRC
[20:23:01] *** ajk27 has quit IRC
[20:23:03] *** ninsei has quit IRC
[20:23:20] *** Olsonfold has joined #angularjs
[20:23:33] <deweydb> im missing something obvious here. how do i make a directive wait for data from a controller?
[20:23:35] *** bertrandk has quit IRC
[20:23:39] <dob_> Why isn't it possible to create a module which injects a service into another module as a service for a specific kind of task? That's strange... I just want to create something like a plugin architecture where the main module does not know the name or anything about the plugins which will be registered.
[20:23:47] *** yza has joined #angularjs
[20:23:51] *** Anton_ has quit IRC
[20:23:51] <deweydb> the directive seems to just trigger immediately on page load before the controller has got the data from the api
[20:24:01] <Chepra> TheAceOfHearts: I am sorting so I cant access the source array by $index, right?
[20:24:04] <snapwich> okay, you're right, so the http cookie sends the same data through a header field
[20:24:08] <deweydb> can i link the directive to some complete type callback on the controller?
[20:24:26] *** bertrandk has joined #angularjs
[20:24:29] *** iateadonut has joined #angularjs
[20:24:42] <snapwich> i'm probably just confused, but it seems JWT is just a rewrite of HTTP cookies for whatever reason i'm not clear
[20:25:07] *** ajk27 has joined #angularjs
[20:25:12] <snapwich> plus HTTP cookies have some advantages like browser implemntations for secure http cookies
[20:25:32] *** ninsei has joined #angularjs
[20:25:37] *** TorpedoSkyline has quit IRC
[20:25:51] <yza> Hello everyone, any recommended books to help me learn angularjs?
[20:25:52] *** nodweber_ has joined #angularjs
[20:26:02] *** Cavallari has joined #angularjs
[20:26:04] *** slainer68 has joined #angularjs
[20:26:04] <snapwich> yza: ng-book
[20:26:06] *** dejanr_ has joined #angularjs
[20:26:15] <yza> snapwich thanks checking it out now
[20:26:22] <davek> snapwich, that security is only guaranteed for the same origin because its a cookie.
[20:26:38] *** icfantv has joined #angularjs
[20:27:11] <snapwich> so you're saying JWT is a rewrite of http cookies as a way of bypassing browser restirctions?
[20:27:30] *** slainer68 has quit IRC
[20:27:34] *** Sauvin has quit IRC
[20:28:12] *** c0bra has quit IRC
[20:28:12] *** subnl has joined #angularjs
[20:28:25] *** slainer68 has joined #angularjs
[20:28:28] *** Anton_ has joined #angularjs
[20:28:28] *** slainer68 has quit IRC
[20:28:40] *** chrisbirk has joined #angularjs
[20:28:49] *** nodweber_ has quit IRC
[20:28:50] *** speakingcode has joined #angularjs
[20:28:55] *** citizen-stig has joined #angularjs
[20:29:14]
<in_deep_thought> how do I pass variables like $scope.formData into a node server? It is valid in my controller, but when I try and pass into the server, it is undefined: http://bpaste.net/show/mVBIyU2GFjFjCSi0U5uo/
[20:29:26] <davek> No, that just happens to be one of the many advantages, snapwich.
[20:30:21] <davek> in_deep_thought, am I missing something or is formData pretty clearly undefined in your route handler?
[20:30:29] *** Z3R0 has joined #angularjs
[20:30:32] <davek> You're looking for req.body to get request data
[20:30:49] *** UniBot has quit IRC
[20:30:53] <Z3R0> Anyone here used xeditable with angularjs? having an issue with update and I don't really know how to resolve... :(
[20:31:15] *** nodweber_ has joined #angularjs
[20:31:23] *** endash has quit IRC
[20:31:27] <yza> snapwich thanks looks like i will be starting with ng-book
[20:31:45] *** endash has joined #angularjs
[20:31:50] *** guilbep has quit IRC
[20:31:54] *** krawek has quit IRC
[20:32:39] *** dejanr_ has quit IRC
[20:32:56] <in_deep_thought> not sure if req.body is an express specific thing
[20:33:05] <in_deep_thought> but actually that returned undefined as well
[20:33:14] *** Strues has joined #angularjs
[20:33:17] *** joroci has quit IRC
[20:33:27] *** joroci has joined #angularjs
[20:33:31] <in_deep_thought> though req was a huge big json object
[20:33:51] <davek> in_deep_thought, the body-parser middleware parses JSON text in the header payload into a JSON object that it stores in req.body.
[20:34:15] <davek> Use chrome inspector to check if your request is being sent correctly.
[20:34:50] *** ccohn_ has quit IRC
[20:35:06] *** mzehrer_ has quit IRC
[20:35:23] *** Xethron has quit IRC
[20:35:32] *** yza has quit IRC
[20:35:45] *** eperez has quit IRC
[20:35:54] <in_deep_thought> davek: it feels like I am getting 2 different kinds of advice. is there some angular js documentation page that details the use of req.body?
[20:35:59] *** mzehrer__ has quit IRC
[20:36:07] *** endash has quit IRC
[20:36:54] <davek> in_deep_thought, did you inspect the chrome network panel to verify the contents of your request?
[20:37:18] *** bkuberek has joined #angularjs
[20:37:44] <in_deep_thought> which tab is that in the developer console?
[20:37:46] <davek> in_deep_thought, wait did you look at this answer? This guy clearly explains everything I just did but you don't seem to have changed your code.
[20:37:49] *** UniBot has joined #angularjs
[20:37:57] <davek> in_deep_thought, the one that says "Network" coincidentally.
[20:38:22] *** kemm0 has quit IRC
[20:38:32] *** kemm0 has joined #angularjs
[20:38:35] *** eperez has joined #angularjs
[20:38:53] *** fooflare has joined #angularjs
[20:39:51] *** nerdfiles has quit IRC
[20:39:52] *** lsiv568 has quit IRC
[20:40:07] *** nerdfiles has joined #angularjs
[20:40:47] <in_deep_thought> davek: yes I changed my code in that answer to reflect the guys answer. I am using ng-model = “formData.stickie”, then the $scope.formData will be {stickie: whateverisintheinputfield} (this is not defined by me but gets filled when the form is submitted), then I passed $scope.formData into the $http request, then finally I call it in the server.js file. Yet formData.sticke and stickie still seem to be undefined.
[20:41:01] *** calumet has quit IRC
[20:41:04] *** fooflare has quit IRC
[20:41:06] <in_deep_thought> however none of this included anything about req.body. I am not sure how that ties in
[20:41:33] *** phuh has quit IRC
[20:41:36] *** danyim has joined #angularjs
[20:41:59] *** phuh has joined #angularjs
[20:42:12] *** calumet has joined #angularjs
[20:42:34] <in_deep_thought> oh I do see this: The POST data must match the server-side. So if your stickie must fly through the network under the name stickie (in this way, a req.body.stickie expression exists on the server-side),
[20:42:54] *** jeffszusz has quit IRC
[20:43:09] *** UniBot has quit IRC
[20:43:20] *** spencercarnage has joined #angularjs
[20:43:22] *** mehlah has quit IRC
[20:43:32] *** UniBot has joined #angularjs
[20:43:40] *** jdj_dk_ has joined #angularjs
[20:43:52] *** teslanick has joined #angularjs
[20:44:00] *** teslanick has left #angularjs
[20:44:07] *** JasonSto_ has joined #angularjs
[20:44:41] *** jls has left #angularjs
[20:44:46] *** jonnybro has quit IRC
[20:44:47] *** maurycyg has joined #angularjs
[20:44:49] *** jeffszusz has joined #angularjs
[20:45:12] *** msafi has joined #angularjs
[20:45:49] *** jonnybro has joined #angularjs
[20:46:01] *** msafi1 has quit IRC
[20:46:07] *** house is now known as alex_petty
[20:46:18] *** danyim has quit IRC
[20:46:23] *** InezK is now known as InezK_away
[20:46:25] *** alex_petty is now known as house
[20:46:26] *** mattwynne has joined #angularjs
[20:46:52] *** JasonStoltz has quit IRC
[20:46:58] *** mattwynne has quit IRC
[20:47:05] *** danizord has joined #angularjs
[20:47:14] *** cthrax has joined #angularjs
[20:47:23] *** Xethron has joined #angularjs
[20:47:31] *** mattwynne has joined #angularjs
[20:47:43] <Strues> Im getting the impression that angular isnt binding to my data, however Im not getting a single error in the chrome console. Is there anything Im forgetting?
[20:48:02] *** Aliks_ has quit IRC
[20:48:05] <davek> That angular won't throw an error if your bound data is null/undefined.
[20:48:06] *** jdj_dk_ has quit IRC
[20:48:41] *** Aliks_ has joined #angularjs
[20:49:23] *** mattwynne has quit IRC
[20:49:33] *** Fire-Dragon-DoL has joined #angularjs
[20:49:41] *** mattwynne has joined #angularjs
[20:49:47] *** MaxV has joined #angularjs
[20:50:07] *** UniBot has quit IRC
[20:50:28] *** cigarshark has joined #angularjs
[20:50:33] *** UniBot has joined #angularjs
[20:51:14] *** ccohn has joined #angularjs
[20:51:32] *** UniBot has quit IRC
[20:51:33] *** uchuff has quit IRC
[20:51:49] *** darrin has quit IRC
[20:52:10] *** darkelda has quit IRC
[20:52:11] *** darrin has joined #angularjs
[20:52:44] *** Aliks_ has quit IRC
[20:52:54] *** morsdyce has joined #angularjs
[20:53:24] *** darrin has quit IRC
[20:53:33] *** s3shs has joined #angularjs
[20:53:41] *** arman has joined #angularjs
[20:53:49] *** JoelKelly has joined #angularjs
[20:53:56] <JoelKelly> Morning.
[20:54:12] <arman> hi every body
[20:54:16] *** vintik has quit IRC
[20:54:17] <JoelKelly> Question about ng-repeat. I want to inject an aditional elemetn every x repeats
[20:54:22] *** Karthik has joined #angularjs
[20:54:25] *** boneskull has quit IRC
[20:54:28] <Z3R0> anyone familiar with xeditable? Having an issue with Object.update() using a Resource and it changing the local model... :/
[20:54:34] *** nerdfiles has quit IRC
[20:54:48] *** vintik has joined #angularjs
[20:54:57] *** Strues has quit IRC
[20:54:57] *** UniBot has joined #angularjs
[20:54:59] <davek> JoelKelly, use a multi-element repeat and an ng-show/ng-if that checks $index against whatever interval you like.
[20:55:05] <Z3R0> JoelKelly I think you should have access to $index
[20:55:11] *** MuffinMan` has quit IRC
[20:55:14] *** boneskull has joined #angularjs
[20:55:25] *** TorpedoSkyline has joined #angularjs
[20:55:33] *** kotyy has quit IRC
[20:55:45] <JoelKelly> davek: so you are saying just do the repeat on both elements and show hid based on the index?
[20:55:47] <davek> Alternatively, group your data beforehand and then repeat using the object key/value notation.
[20:55:52] *** MuffinMan` has joined #angularjs
[20:55:55] <davek> JoelKelly that is one option yes.
[20:55:57] *** darkelda has joined #angularjs
[20:56:16] *** arek_at_work has quit IRC
[20:56:20] *** ppppaul has quit IRC
[20:56:23] *** prbc has quit IRC
[20:56:47] <JoelKelly> davek: okay ... I will try both of those thank you for your help
[20:56:54] *** boneskul_ has joined #angularjs
[20:57:33] *** Karthik has quit IRC
[20:57:34] *** darrin has joined #angularjs
[20:58:00] *** patrickarlt has quit IRC
[20:58:10] *** tonycoco has joined #angularjs
[20:58:18] *** patrickarlt has joined #angularjs
[20:58:45] *** vf1 has joined #angularjs
[20:58:46] *** whunt_ has joined #angularjs
[20:59:04] *** vintik has quit IRC
[20:59:16] *** prbc has joined #angularjs
[20:59:41] *** joker666 has joined #angularjs
[20:59:44] *** richiebkr has quit IRC
[20:59:48] *** boneskull has quit IRC
[20:59:57] <joker666> anyone using ui router?
[21:00:17] *** darrin has quit IRC
[21:00:27] *** plitzenberger has joined #angularjs
[21:00:34] *** darrin has joined #angularjs
[21:00:40] <davek> Yes quite a few people.
[21:00:53] <joker666> i'm having a problem
[21:01:11] <joker666> when using nested view my url changes but template not
[21:01:19] *** richiebkr has joined #angularjs
[21:01:39] <joker666> Dave?
[21:01:46] <nickeddy> is there a way to prevent angular from adding shit like $$hashKey to my objects?
[21:01:55] *** whunt has quit IRC
[21:01:59] *** patrickarlt has quit IRC
[21:02:14] *** InezK_away is now known as InezK
[21:02:18] <joker666> is it causing you any problem Eddy?
[21:02:23]
[21:02:35] *** patrickarlt has joined #angularjs
[21:02:40] *** cthrax has quit IRC
[21:02:48] <arman> sorry for my bad English :)
[21:03:03] <joker666> Arman , make your statements clear
[21:03:43] <nickeddy> ah it's ng-repeat doing that. angular.toJson > JSON.stringify
[21:03:53] *** conner_ has quit IRC
[21:04:12] <joker666> hmm, nice that you found out Eddy
[21:04:22] *** cthrax has joined #angularjs
[21:04:48] <davek> joker666, check the console. Does angular find the template and download it?
[21:04:49] <arman> joker666, I want only let my angular js change something on server but I can't put any secret key on the app because other can see. Is there any trick for that?
[21:04:55] *** plitzenberger has quit IRC
[21:04:56] <davek> Did you give it a template URL using the 'templateUrl' property?
[21:05:00] *** Xethron has quit IRC
[21:05:10] <davek> arman, you're looking for authentication.
[21:05:16] <davek> It's a fairly involved topic, are you using node on the back end?
[21:05:37] *** richiebkr has quit IRC
[21:05:52] *** gryg has joined #angularjs
[21:06:20] <arman> davek, Yes, But I don't want if anybody read my angular js source code can make some other app like that to change resource on server
[21:06:59] *** grindmodeon has quit IRC
[21:07:10] <joker666> Dave hmm it downloades the template in the console, but view does not change
[21:07:17] <joker666> davek
[21:07:24] *** bertrandk has quit IRC
[21:07:29] *** patrickarlt has quit IRC
[21:07:34] <gryg> Hello, did anyone had a problem with ckeditor and angular? I have strange problem so some times it shows content in editor, sometimes not. Each time I receive content (the same) via request.
[21:07:34] <joker666> i gave it templateUrl of course
[21:07:34] *** yoshokatana has quit IRC
[21:07:34] *** in_deep_thought has quit IRC
[21:07:40] <davek> arman, yes that's how authentication works.
[21:08:04] <BahamutWC|Work> gryg: sounds like a race condition issue
[21:08:05] <davek> arman, for node I'd suggest looking at passport to do your authentication.
[21:08:07] *** conner_ has joined #angularjs
[21:08:13] <arman> davek, awesome! may you give me a link to study about it more please?
[21:08:24] *** UniBot has quit IRC
[21:08:25] *** wa5ted has joined #angularjs
[21:08:39] <gryg> hmm BahamutWC|Work content set vs editor init?
[21:08:43] <davek> joker666, please plunkr your state configuration.
[21:08:43] *** vintik has joined #angularjs
[21:08:44] <arman> davek, Thanks a lot
[21:08:47] <joker666> gryg why not use something more traditional like sublime text?
[21:08:48] <davek> arman, no problem.
[21:08:50] *** in_deep_thought has joined #angularjs
[21:09:01] <joker666> davek i'm doing it right away
[21:09:02] *** dccc has quit IRC
[21:09:21] <gryg> joker666, ckeditor is wysiwyg editor for websites
[21:09:22] <davek> joker666, ckeditor is a WYSIWYG library that has angular bindings.
[21:09:28] <davek> Weird.
[21:09:32] <davek> Don't do that again.
[21:09:53] <gryg> davek, Im using own bindings.
[21:10:05] <davek> Cool, there are existing directives just so you know.
[21:10:07] <joker666> wysiwyg editor for websites what does this mean?
[21:10:18] <davek> If your use case is simple nothing wrong with rolling your own.
[21:10:23] *** patrickarlt has joined #angularjs
[21:10:28] <deweydb> is it possible to apply a filter within a directive? or only within the html?
[21:10:29] <davek> joker666, its a small, extensible text editor for user-created content.
[21:10:34] <davek> Like what you use to make forum posts.
[21:10:34] <BahamutWC|Work> joker666: think tinymce and such
[21:10:52] <davek> deweydb, yes simply inject $filter.
[21:11:20] <deweydb> like: app.direction('name', function($filter){
[21:11:22] <deweydb> >
[21:11:29] <deweydb> err i mean "directive"
[21:11:45] *** yoshokatana has joined #angularjs
[21:11:59] <gryg> davek, I have used some that I have found on internet
[21:12:35] *** UniBot has joined #angularjs
[21:12:40] *** sssilver has quit IRC
[21:12:57] *** amaroks has joined #angularjs
[21:13:27] *** nerdfile1 has joined #angularjs
[21:13:53] *** InezK is now known as InezK_away
[21:14:30]
<cspra85> anybody that can help with a list of checkboxes, have been all over StackOv. but i feel like there's likely a solution for what i'm trying to do... JSBin here: http://jsbin.com/qoqomogu/1/edit
[21:14:58] <cspra85> the change event is executed and an event emitted just before the ng-model scope 'checked' value is changed
[21:15:43] <Venkat> how to show lync presence using angular js
[21:15:48]
<amaroks> How do i stop model update from the view in this small view http://bpaste.net/show/Z8XGFCB5dtB3WxHVmSgC/ I want to use the model just to popular the form, but when input updated I dont want to model to be update, want to trriger that manually
[21:16:13] <joker666> csprat85 I guess people should stop using $emit and $broadcast
[21:16:24] <joker666> there are other ways to accomplish without using them
[21:16:28] <Venkat> how to show lync presence using angular j??
[21:16:53] <nickeddy> Venkat: have you tried this thing called google
[21:17:10] <joker666> lol nickeddy
[21:17:16] *** johnny__ has joined #angularjs
[21:17:28] *** Circlefusion has quit IRC
[21:17:37] <nickeddy> sorry i can't stand when people come in here with the broadest fucking questions lol
[21:17:47] <nickeddy> can you make my website work? thanks.
[21:18:32] <cspra85> joker666... would you accomplish with a shared service
[21:18:35] <BahamutWC|Work> can you write my code?
[21:18:38] <cspra85> between the directive and the controller
[21:18:47] <TheAceOfHearts> BahamutWC|Work: I can if you pay me :p
[21:18:50] <johnny__> I want to bootstrap some promises before ui-router loads the appropriate state, what's the better way to do this?
[21:18:55] <nickeddy> BahamutWC|Work: oh totes bro i don't already get paid to write this ;)
[21:18:59] <joker666> calm down nickeddy, you wouldn't find these peole in ember or knockout
[21:19:02] <joker666> only in angular
[21:19:10] *** JasonSto_ has quit IRC
[21:19:18] <nickeddy> go over to ember or knockout then?
[21:19:21] *** bLu___ has quit IRC
[21:19:26] <joker666> cspra85 yeah there are ways to talk to controllers and directives
[21:19:27] <TheAceOfHearts> React master race
[21:19:35] <nickeddy> lol react...
[21:19:44] <cspra85> haha
[21:19:46] *** jstroem has joined #angularjs
[21:19:46] *** JasonStoltz has joined #angularjs
[21:19:53] *** Venkat has quit IRC
[21:19:56] <TheAceOfHearts> React is actually really cool :P, you can do server-side rendering and it's really fast; but of course, there's tradeoffs
[21:19:56] *** bLu___ has joined #angularjs
[21:20:01] <joker666> no ember is too hard for 'em :D
[21:20:02] <TheAceOfHearts> definitely has its use-cases
[21:20:11] <cspra85> joker666 yeah i've seen a couple other examples but they seem to use a shared service that maintains the list of checked items
[21:20:12] *** francisl has joined #angularjs
[21:20:19] <BahamutWC|Work> I don’t like how react basically has html be a string :(
[21:20:29] <TheAceOfHearts> I like how React is fast :P
[21:20:30] <amaroks> can anyone suggest a way? Thanks
[21:20:35] <BahamutWC|Work> I guess you could use a build process to convert an html template to a string
[21:20:40] <nickeddy> BahamutWC|Work: but it's 10x faster than angular's 3ms render time!
[21:20:42] <nickeddy> lol
[21:20:42] <joker666> why not follow what everyone is doing, coz it's wasy maybe? cspra85
[21:21:12] *** TorpedoSkyline has quit IRC
[21:21:32] *** MANCHUCK has quit IRC
[21:21:36] <TheAceOfHearts> nickeddy: have you tried doing any large table in Angular VS React :P? Totally noticeable, the difference
[21:21:37] <cspra85> because there is no one way everyone is communicating btw controllers and directives ... joker666
[21:21:40] <TheAceOfHearts> I love me some angular
[21:21:44] <TheAceOfHearts> but React is still great
[21:21:55] <nickeddy> i've done tables with 100k rows
[21:21:58] <nickeddy> and 50 columns
[21:22:12] <nickeddy> the DB will always be slower than any client side rendering so i don't really care
[21:22:14] <joker666> hmm, but you know what they suggest.... least usage of $emit and $brdcast... cspra85
[21:22:33] <TheAceOfHearts> for public facing pages I'd say React is better :p
[21:22:46] *** josh-k has joined #angularjs
[21:22:52] <TheAceOfHearts> if you're login-gated, I'd say angular is great
[21:23:21] <cspra85> what are the proper use cases of $emit and $brdcast joker666?
[21:23:45] <TheAceOfHearts> cspra85: when you have multiple listeners for certain behavior
[21:23:58] <TheAceOfHearts> for example, you can listen on scope destruction to clean up html stuff
[21:24:14] *** Xethron has joined #angularjs
[21:24:26] <TheAceOfHearts> imo, you should be very careful with what events you send; otherwise it can get unwieldy
[21:24:34] *** bLu___ has quit IRC
[21:24:45] <joker666> might help you
[21:24:58] <TheAceOfHearts> the only global events I use are router events and login/logout events
[21:25:06] <cspra85> TheAceOfHearts - as far as shared state, i assume in the use case of multiple 'listeners' ... all of them should use a shared service/factory instead
[21:25:17] <TheAceOfHearts> yeah
[21:25:33] <TheAceOfHearts> but for stuff like logins/logouts, imo, it usually makes sense to use an event :P
[21:25:51] <TheAceOfHearts> cuz you're either using an event or you register listeners on a service to get notified
[21:25:52] *** whunt_ has quit IRC
[21:26:16] <joker666> ok now, ui router giving me real pain in ass
[21:26:24] <joker666> help anyone?
[21:26:30] <davek> I broadcast authentication events on the $rootScope, it's the easiest solution.
[21:26:30] <cspra85> that makes sense... thanks for link joker666 ... feel like i've read 30 SF articles today
[21:26:34] <TheAceOfHearts> it's difficult to help when you're not saying what problem you have
[21:27:05] *** bLu___ has joined #angularjs
[21:27:49]
<joker666> davek TheAceOfHearts http://pastebin.com/H43L5Mns little piece of code problem: url changes, in console, template doesn't change the template downloads, but
[21:28:01] *** Dan____ has joined #angularjs
[21:28:18] *** InezK_away is now known as InezK
[21:28:23] <TheAceOfHearts> joker666: you have to use absolute URLs for the templates
[21:28:29] <TheAceOfHearts> that's your problem I think
[21:28:36] <davek> No you don't.
[21:28:40] <TheAceOfHearts> *cough*
[21:28:40] *** mindlace has quit IRC
[21:28:43] *** endash has joined #angularjs
[21:28:48] <TheAceOfHearts> you could have them registered already *shrugs*
[21:28:49] *** dejanr_ has joined #angularjs
[21:28:57] <davek> joker666, you have templateUrl and template.
[21:29:03] <davek> You can't have that.
[21:29:15] <joker666> davek template is in comment :)
[21:29:16] <TheAceOfHearts> template is commented out :P, presumably he used it for testing
[21:29:19] *** charlesfinley has quit IRC
[21:29:24] *** pibu7 has joined #angularjs
[21:29:27] <TheAceOfHearts> joker666: your problem is related to not having an absolute url
[21:29:32] *** mtsr has joined #angularjs
[21:29:38] <TheAceOfHearts> so when you go to /boards/:boardId state
[21:29:51] <davek> Those comments are so far away.
[21:29:56] <TheAceOfHearts> it'll try to download /boards/templates/myTemplate.html
[21:30:11] <TheAceOfHearts> so yes, you'll want to use absolute urls to solve this
[21:30:17] <davek> That's not at all how my states work.
[21:30:34] *** josh-k_ has joined #angularjs
[21:30:38] <davek> I set my templateUrls exactly as he does, and it requests them relative to the origin as expected.
[21:30:40] <TheAceOfHearts> davek: that's how relative template urls get resolved by ui-router…
[21:30:44] *** richiebkr has joined #angularjs
[21:30:48] <ManBearPixel> Is there a way for a controller to run an “exit” function when it is switching? For example, I have some listeners that get created on the controller’s initialization. If the controller switches back and forth, then there are two identical listeners setup. I want to “end” the listener before it exits
[21:30:57] <TheAceOfHearts> even with nested states :P?
[21:31:05] <davek> Yes absolutely.
[21:31:41] <davek> I use that in multiple places. I have a template defined using a relative URL on the parent, that template has a nameless ui-view in it, the child's template is also loaded via origin-relative URL and it gets placed into the parent's view.
[21:31:43] <TheAceOfHearts> well, idk, maybe they've since fixed it :P… but was an issue I encountered when I started using ui-router
[21:32:17] <TheAceOfHearts> I don't think that behavior makes sense
[21:32:22] <davek> ManBearPixel, $scope.$on('$destroy')
[21:32:27] <TheAceOfHearts> if you're using a relative url you'd expect it to resolve relative to the current path
[21:32:53] <davek> Not at all, you'd expect it to resolve relative to the origin like every other URI.
[21:33:17] <davek> Considering the whole point of angular is the ability to separate your front end-routing and business logic from your back end.
[21:33:35] <ManBearPixel> I’m using jQuery .on methods to attach custom event name handlers to the body so any controller can pick it up
[21:33:38] <ManBearPixel> davek:
[21:33:39] *** dejanr_ has quit IRC
[21:33:40] <joker666> i do what davek does
[21:33:45] <TheAceOfHearts> I fail to see what that has to do with this…
[21:33:57] <davek> ManBearPixel, really bad idea.
[21:34:03] *** josh-k has quit IRC
[21:34:07] <ManBearPixel> davek: D=
[21:34:08] <joker666> ManBearPixel seriously?
[21:34:13] <TheAceOfHearts> you can still separate concerns by resolving it relatively
[21:34:30] <davek> Relative to your client state route?
[21:34:44] <ManBearPixel> I know I should be using $on or the broadcast.. but I haven’t put time into getting used to that way of event broadcasting
[21:34:47] <ManBearPixel> T_T
[21:34:58] <TheAceOfHearts> yeah
[21:35:02] <davek> Why would I want that? I just pre-render all of my partials to HTML and serve them from //partials
[21:35:24] *** richiebkr has quit IRC
[21:35:36] <TheAceOfHearts> I wouldn't want that, but I could see a use case for it :P
[21:35:40] <TheAceOfHearts> I do the same
[21:35:46] <davek> ManBearPixel, you really should.
[21:35:47] *** Nek has joined #angularjs
[21:35:47] <TheAceOfHearts> and in your case, you want to use an absolute url
[21:35:56] <TheAceOfHearts> so /partials/foo/foo.html
[21:36:00] <johnny__> Hey there, I want to bootstrap some promises before ui-router loads the appropriate state, any idea on the correct way to do this?
[21:36:00] <davek> TheAceOfHearts, that's not absolute.
[21:36:01] <TheAceOfHearts> rather than partials/foo/foo.html
[21:36:08] *** Christer has joined #angularjs
[21:36:08] *** Christer has joined #angularjs
[21:36:25] <TheAceOfHearts> no?
[21:36:32] <TheAceOfHearts> that's what I was referring to at least :p
[21:36:40] <TheAceOfHearts> using /partials/foo/foo.html vs partials/foo/foo.html
[21:36:49] <TheAceOfHearts> if you use partials/foo/foo.html it'll resolve relative to the current path
[21:36:54] <TheAceOfHearts> otherwise it'll resolve relative to the origin.
[21:37:03] *** whitebook has joined #angularjs
[21:37:04] *** Xethron has quit IRC
[21:37:09] <joker666> davek The AceOfHearts i sed to do ngview, but since moving from ui router i keep having problems
[21:37:25] <TheAceOfHearts> joker666: for your templateUrls, just start them with /
[21:37:26] *** startupality has joined #angularjs
[21:37:35] <TheAceOfHearts> rather than: templates/board.html, use /templates/board.html
[21:37:47] *** jdj_dk_ has joined #angularjs
[21:38:04] <dob_> How can i add a function to a service from my config or run routine? Any ideas?
[21:38:12] *** hell_razer has joined #angularjs
[21:38:13] <TheAceOfHearts> the only issue with that is then you can't mount the app inside of something like example.com/myApp/, you'd have to mount it in example.com/
[21:38:14] *** FIFOd[a] has joined #angularjs
[21:38:27] <joker666> atried that, doesn't work, seems like another guy got into the same problem in stackoverflow, but the solution doesn't work for mwe
[21:38:30] <dob_> I tried to use invoke
[21:38:35] <dob_> Any ideas?
[21:38:37] <davek> TheAceOfHearts, ah I see what you were saying. And no the /blahblah is still relative.
[21:38:38] *** bertrandk has joined #angularjs
[21:38:38] *** drej has quit IRC
[21:38:56] <TheAceOfHearts> davek: my mistake then, sorry :P …
[21:39:01] <davek> Absolute URI refers to the {protocol, host, [port], uri} tuple.
[21:39:11] <TheAceOfHearts> in any case
[21:39:24] <TheAceOfHearts> I meant the difference between /template/foo/foo.html and template/foo/foo.html
[21:39:38] <TheAceOfHearts> which is the cause for a lot of headaches for some people, as I've noticed :P
[21:40:06] <TheAceOfHearts> ah, another solution joker666
[21:40:20] <ManBearPixel> davek: So I understand that a parent controller (let’s say RootCtl) can $broadcast(‘some event’) to child controllers, but can child controllers broadcast back up to the parent controller? Secondly, do services have any way of broadcasting for any controller to pick up?
[21:40:26] <TheAceOfHearts> I think if you add: base(href='/') to your index.html's head
[21:40:32] <davek> ManBearPixel, yes $emit
[21:40:39] *** mfunkie has quit IRC
[21:40:50] <joker666> TheAceOfHearts what solution?
[21:40:53] <davek> Also you're not broadcasting to controllers you're broadcasting on a scope. Scopes are hierarchically arranged, controllers operate on scopes.
[21:41:06] *** mfunkie has joined #angularjs
[21:41:08] <TheAceOfHearts> it'll resolve urls that don't start with / as if they had that base
[21:41:34] *** phuh has quit IRC
[21:41:54] *** bkuberek has quit IRC
[21:42:00] *** phuh has joined #angularjs
[21:42:03] *** bphogan_afk is now known as bphogan
[21:42:06] *** kotyy has joined #angularjs
[21:42:23] *** FIFOd[a] has quit IRC
[21:42:38] <TheAceOfHearts> I'm not entirely certain how html5 mode URLs, base, and templateUrl resolution work together
[21:42:56] <joker666> not using html5 version, hashbang version
[21:42:57] *** jdj_dk_ has quit IRC
[21:43:26] <TheAceOfHearts> but I think you'd use absolute URLs in the templateUrl and then you'd change the <base> url if you wanted to mount the app like example.com/app/ rather than example.com/
[21:43:50] *** amaroks has quit IRC
[21:44:04] *** cctom has joined #angularjs
[21:44:05] <TheAceOfHearts> what's GBS?
[21:44:11] <deweydb> my app?
[21:44:16] <deweydb> var GBS = angular.module('GBS', []);
[21:44:19] <TheAceOfHearts> oh
[21:44:27] <TheAceOfHearts> on top it says var app = ...
[21:44:32] <TheAceOfHearts> but I guess you just copy/pasted it
[21:44:42] <deweydb> yeah, sorry i only copy pasted the part that i thought was important
[21:44:49] <deweydb> i guess i forgot to erase what was there at the top
[21:44:57] <deweydb> i can paste the wholething one sec
[21:45:05] *** richiebkr has joined #angularjs
[21:45:29] <TheAceOfHearts> unsolicited advice: that's probably an antipattern, registering stuff directly on angular.module('GBS').factory() is probably better
[21:45:33] *** mfunkie has quit IRC
[21:45:35] *** Derp88 has joined #angularjs
[21:45:36] *** jordandotdev has quit IRC
[21:45:45] *** uchuff has joined #angularjs
[21:45:57] *** boneskul_ has quit IRC
[21:46:02] <deweydb> totally open to unsolicted advice, i'm probably not thinking about this in the "angular" way
[21:46:06] *** maurycyg has quit IRC
[21:46:07] *** DV8_ has quit IRC
[21:46:17] <joker666> UFF, god, i fucking hate ui router .... what kind of outlandish thing it is, template downloads in console, but doesn't display :/
[21:46:29] <TheAceOfHearts> joker666: enhance your calm~
[21:46:44] <deweydb> TheAceOfHearts: but i'm not really sure what you mean
[21:47:05] <TheAceOfHearts> you just need to take some more time to wrap your head around ui-router :P joker666
[21:47:06] <snapwich> joker666: ui-router has a tendency to catch exceptions so that they are never shown in the console
[21:47:21] <snapwich> you need to add an event listener for router errors to see what is happening
[21:47:36] <davek> joker666, post a plunkr. You're not exactly helping us help you.
[21:47:56] <TheAceOfHearts> deweydb: angular.module('GBS') is a getter for the module, so you can define it with the setter once on top like this: angular.module('GBS', []); and then use the getter to assign factories/controllers
[21:48:06] *** hell_razer has quit IRC
[21:48:06] <davek> joker666, the way you have your state's set up, you need to make sure that your parent state template provides a nameless ui-view for your child state.
[21:48:20] *** dob__ has joined #angularjs
[21:48:22] <joker666> davek yeah i done that
[21:48:31] <davek> So post a plunkr then.
[21:48:38] <TheAceOfHearts> that way you depend less on global variables
[21:49:32] <johnny__> Hey there, I'm trying to figure a way to resolve a bunch of promises on app load before all the ui-router handling, what's the way to do this? (I don't want to use ui-router state resolves prop)
[21:49:53] <joker666> snapwich i'm not resolving anything :) davek hmm doing plukr, i don't actually know how to do plunkr when i'm serving my data from server side?
[21:49:58] <deweydb> ohhhh
[21:50:03] <TheAceOfHearts> johnny__: resolve promises inside of angular or outside?
[21:50:13] *** mfunkie has joined #angularjs
[21:50:14] <deweydb> uhhh so: angular.module('GBS') !== GBS ?
[21:50:18] <Derp88> Hi, im wondering. Im building án angularjs app that displays alot of data (produckt list) and im using bootstrap 3.0 and bootstrap angular.ui , the response time on the modal window is awfull 2sec, and the collapse is quite slow as well. When i try the app on my tablet (iPad mini) but it works smoothly on my laptop. Amy ideas?
[21:50:39] *** foofoobar has joined #angularjs
[21:50:39] <TheAceOfHearts> deweydb: it is, yes, but then you depend on a global variable if you're using that across multiple files :P
[21:50:41] <davek> Then just pastebin your entire configuration + the involved templates.
[21:50:53] <hippch> Derp88: how many items you handling?
[21:51:03] <deweydb> hmmm so this change won't really fix my filter in the directive problem.
[21:51:05] <deweydb> but thanks for the advice.
[21:51:15] <TheAceOfHearts> deweydb: yeah, I did say unsolicited advice :P
[21:51:20] <deweydb> true
[21:51:27] <davek> Did you read what I said earlier?
[21:51:35] *** nemothekid has joined #angularjs
[21:51:35] <deweydb> any idea why my filter isn't injecting into my directive properly?>
[21:51:37] <davek> That you can always apply a filter simply by injecting $filter and retrieving it by name?
[21:51:37] <Derp88> Displaying. 50 times. But searching in ca. 8000 times
[21:51:38] *** whunt has joined #angularjs
[21:51:44] <deweydb> i get: ReferenceError: filterURL is not defined
[21:51:53] *** dob_ has quit IRC
[21:51:56] <hippch> 50 seems low enought to work. so i dont know :)
[21:52:00] <hippch> if you have url - show it
[21:52:10] <davek> deweydb, is your filter called filterUrl?
[21:52:13] <davek> How are you injecting it?
[21:52:17] <davek> Do you have a plunkr?
[21:52:18] <TheAceOfHearts> johnny__: if it's outside, you'll want to manually bootstrap angular; if it's inside, my suggestion would be to have an abstract parent state and resolve it there… I'm not sure why you wouldn't want that approach… otherwise… I'm not sure if you can cause a run block to wait until it resolves
[21:52:43] <Derp88> The real problem is in the uber slow performance of the modal window :/ and the collapse
[21:52:47] *** nerdfile1 has quit IRC
[21:52:55] *** boneskull has joined #angularjs
[21:53:02] *** dob__ has quit IRC
[21:53:08] *** codedungeon has joined #angularjs
[21:53:09] *** whunt has quit IRC
[21:53:37] <hippch> Derp88: is it slow if you load 5 records instead of 50?
[21:53:47] *** whunt has joined #angularjs
[21:54:09] <Derp88> There árekstur no repeat times in the modal :)
[21:54:37] <Derp88> Sry autocorrect . There are no
[21:55:02] *** krawek has joined #angularjs
[21:55:02] *** krawek has joined #angularjs
[21:55:05] *** goblortikus has joined #angularjs
[21:55:14] <deweydb> davek: thanks!
[21:55:24] *** boneskull has quit IRC
[21:55:45] *** ipalaus has joined #angularjs
[21:55:59] *** Cavallari has quit IRC
[21:56:00] <davek> Yep
[21:56:08] *** mykz_ has joined #angularjs
[21:56:16] <deweydb> did you just change that one thing? 'filterURLFilter' to '$filter'
[21:56:17] <deweydb> ?
[21:56:35] *** bbsss has joined #angularjs
[21:56:45] *** mindlace has joined #angularjs
[21:57:02] *** lw has quit IRC
[21:57:04] *** elnur has left #angularjs
[21:57:05] <davek> No, I injected the $filter service instead of filterURLFilter because that doesn't exist anywhere. I then retrieve the filter function from the $filter service by name and assign it to a local variable within the link function.
[21:57:14] <davek> I then use this function to perform the filtering logic in your directive.
[21:57:25] <deweydb> ahhhh
[21:57:28] <deweydb> thanks!
[21:57:44] *** andrewhl has joined #angularjs
[21:58:01] <Derp88> Any one here tha has experience with building angular web apps that will be mainly used my tablets ? ( thinking about what will give the best user ui experience )
[21:58:07] *** nerdfile1 has joined #angularjs
[21:58:09] <deweydb> davek: wooop finally got it. thanks so much
[21:58:35] <bbsss> I can’t find out what I did wrong, I am getting this error: ReferenceError: Can't find variable: $httpBackend
[21:58:52] *** bootsWitDaFur has joined #angularjs
[21:58:58] *** bootsWitDaFur has quit IRC
[21:58:59] <bbsss> the $injector has no trouble finding the classes of my project, but can’t find the httpBackend.
[21:59:09] *** kofight has quit IRC
[21:59:17] *** bootsWitDaFur has joined #angularjs
[21:59:30] *** patrick99e99 has quit IRC
[21:59:42] *** xavia has quit IRC
[21:59:58] *** arman has quit IRC
[22:00:17] <davek> bbsss, do you have ng-mock?
[22:00:26] <davek> Have you googled for where httpBackend is?
[22:00:29] <bbsss> angular-mocks
[22:00:39] <davek> ngMock is the module, yes.
[22:01:07] <bbsss> ah thanks
[22:01:54] <bbsss> I need to include that in my beforeEach(module('))
[22:01:59] <bbsss> ?
[22:02:32] <cspra85> what's the best practice, if a controller and a directive both share a service ... if the directive modifies a value in the service, for the controller to be notified to trigger some logic
[22:02:32] *** JoelKelly has quit IRC
[22:02:38] *** lsiv568 has joined #angularjs
[22:02:45] *** Zamerick has quit IRC
[22:03:11] *** bootsWitDaFur has quit IRC
[22:03:29] *** zfogg has joined #angularjs
[22:03:41] *** kofight has joined #angularjs
[22:03:49] <bbsss> cspra85 use $scope to store the value so you can $watch it
[22:03:53] *** TorchDragon has quit IRC
[22:04:11] <TheAceOfHearts> hey deweydb did you get it to work? or should I still take a look?
[22:04:12] <cspra85> i've read in quite a few places it's a bad idea to use $watch in your controllers
[22:04:16] <cspra85> ^bbsss
[22:04:22] <deweydb> TheAceOfHearts: davek showed me. thanks.
[22:04:26] <TheAceOfHearts> kk cool
[22:04:30] *** TorchDragon has joined #angularjs
[22:04:30] *** UniBot has quit IRC
[22:05:20] *** renz_ has quit IRC
[22:05:26] *** lordkryss_ has joined #angularjs
[22:05:49] <dman777_alter> The way I am writing my controllers, directives, and services there is nothing to go into the controller since the directives and services are doing everything. Is this bad?
[22:06:01] *** juampy has quit IRC
[22:06:16] *** spencercarnage has quit IRC
[22:06:18] *** dob_ has joined #angularjs
[22:06:35] *** ctanga has joined #angularjs
[22:06:44] *** mykz_ has quit IRC
[22:06:46] *** jacuqesdancona has joined #angularjs
[22:07:19] *** Derp88 has quit IRC
[22:07:23] <bbsss> dman777_alter: controller should do as little work as needed to keep model and view in sync, so no
[22:07:47] <bbsss> directives can have a controller role too by publishing them right?
[22:08:07] *** uf6667 has quit IRC
[22:09:03] <ManBearPixel> davek: If a controller is being destroyed (because the view is changing or refreshing) do I have to manually de-register the listener created from $on ? Or will that be done automatically
[22:09:25] *** startupality has quit IRC
[22:09:25] *** styles has quit IRC
[22:09:30] *** in_deep_thought has quit IRC
[22:09:34] *** TorchDragon has quit IRC
[22:09:35] *** lordkryss has quit IRC
[22:10:13] *** mfunkie has quit IRC
[22:10:22] *** plitzenberger has joined #angularjs
[22:10:38] *** TorpedoSkyline has joined #angularjs
[22:10:40] *** mfunkie has joined #angularjs
[22:10:52] *** mikehaas763 has joined #angularjs
[22:11:00] <ManBearPixel> davek: So I have to cache the $on creations and call them
[22:11:04] <ManBearPixel> Alright, thanks
[22:11:07] *** jacuqesdancona has quit IRC
[22:11:10] *** JoelKelly has joined #angularjs
[22:11:12] *** Aliks_ has joined #angularjs
[22:12:36] *** ckboii89 has joined #angularjs
[22:12:47] *** Chumley has joined #angularjs
[22:12:53] *** isthisreallife has joined #angularjs
[22:12:58] *** isthisreallife has left #angularjs
[22:13:13] *** jdowdle is now known as jdowdle|afk
[22:13:21] *** richiebkr has quit IRC
[22:13:24] *** AlexZanf has joined #angularjs
[22:13:26] <JoelKelly> If I want to inject a template into a specific place based on an ngclick how would I target the container that was clicked and further then inject things. This is not a problem to do with pure JS or jquery but I am trying to find the "correct" way to go about this in angular
[22:13:27] *** nszceta has quit IRC
[22:13:42] <ckboii89> hey guys
[22:13:47] *** prbc has quit IRC
[22:13:48] <AlexZanf> hey guys, i am using angular 2.2.1, and i am trying to use $compileProvider, since my blob image url is deemed as unsafe. could somone lend me a hand? not exactly sure how to do this, ive tried about 3 different ways from various documents, with no luck
[22:14:01] <ckboii89> is there a way to update a value on ng-grid without refreshing a page?
[22:14:11] *** drej has joined #angularjs
[22:14:27] <ckboii89> pushing a new row is straight forward, but i need to update a certain value in a row without refreshing the page
[22:14:49] *** nodweber_ has quit IRC
[22:14:52] *** mguillech has quit IRC
[22:14:56] *** yoshokatana_ has joined #angularjs
[22:14:58] *** Chumley has quit IRC
[22:14:59] *** mguillech has joined #angularjs
[22:15:01] *** yoshokatana_ has quit IRC
[22:15:16] *** vf1 has quit IRC
[22:15:51] *** vf1 has joined #angularjs
[22:16:04] <bbsss> davek: I have the angular-mocks.js file included, do I need to also declare “ngMock” module dependency somewhere or should including the angular-mocks.js patch the injector with $httpBackend ?
[22:16:04] *** ajk27 has quit IRC
[22:16:05] *** ninsei has quit IRC
[22:16:48] <Aliks_> does anyone know why ngModel.$modelValue (I required ngModelController) is NaN even though scope.ngModel already has the correct value loaded (if I do scope: { ngModel: '=' })
[22:17:16] *** ninsei has joined #angularjs
[22:17:25] *** ajk27 has joined #angularjs
[22:17:45] *** bphogan is now known as bphogan_afk
[22:17:56] <dman777_alter> bbsss: thanks
[22:17:58] *** eperez has quit IRC
[22:18:14] *** sigurding has joined #angularjs
[22:18:18] *** Guest81653 has quit IRC
[22:18:28] *** Guest81653 has joined #angularjs
[22:18:40] *** eperez has joined #angularjs
[22:18:55] *** UniBot has joined #angularjs
[22:19:08] *** johnny__ has quit IRC
[22:19:19] <dman777_alter> Should a directive be written to be reusable or should there be a base directive with other directives extending the base directive?
[22:19:27] *** xavia has joined #angularjs
[22:19:28] <jlambert_> after merging together a few people's work, I'm now getting a "TypeError: Cannot read property 'protocol' of undefined " error. Google has helped with what it means, but i can't seem to figure out how to find it - the stack trace is all in angular.js. how do i track this down?
[22:19:33] *** jlambert_ is now known as jlambert
[22:19:37] *** dob_ has quit IRC
[22:19:47] *** Johnny__ has joined #angularjs
[22:20:04] *** dob_ has joined #angularjs
[22:20:16] *** Circlefusion has joined #angularjs
[22:20:30] *** Dan____ has quit IRC
[22:20:32] *** bphogan_afk is now known as bphogan
[22:20:37] *** vf1 has quit IRC
[22:20:52] *** vf1 has joined #angularjs
[22:20:56] *** lordkryss_ has quit IRC
[22:21:21] *** lordkryss_ has joined #angularjs
[22:21:55] *** s3shs has quit IRC
[22:22:21] *** KernelCurry has joined #angularjs
[22:22:27] *** s3shs has joined #angularjs
[22:22:29] *** mdix has joined #angularjs
[22:22:35] <Johnny__> I currently have an abstract state to resolve the user but i don't want the children state to try to fetch other ressources if the user is not auth, so i have add to inject the user into them to have them waiting for it to resolve. But I don't like how I to inject it everywhere.
[22:22:37] *** JasonStoltz has quit IRC
[22:22:42] *** eperez has quit IRC
[22:22:53] <Johnny__> Does that make sense?
[22:23:22] *** mattwynne has quit IRC
[22:23:25] <Z3R0> anyone familiar with xeditable? Having an issue with Object.update() using a Resource and it changing the local model... :/
[22:23:34] *** richiebkr has joined #angularjs
[22:24:06] <Z3R0> jlambert you using chrome ?
[22:24:06] *** mattwynne has joined #angularjs
[22:24:09] <jgravois> Do you have to inject $sce into a filter?
[22:24:09] <icfantv> anyone have any thoughts on how to apply a different class per $index in ng-repeat?
[22:24:14] <jlambert> Z3R0: yeah
[22:24:34] *** dob_ has quit IRC
[22:24:34] <Z3R0> use a diff browser, I have issues in chrome because they trim server responses...
[22:24:40] *** mdix has quit IRC
[22:24:41] <icfantv> i suspect class="{{ classes[$index] }}" works, but might be stinky?
[22:24:57] *** bbrown_ has joined #angularjs
[22:25:13] <ctanga> different per each $index?
[22:25:19] <jlambert> Z3R0: i'm not following what you mean
[22:25:29] <Z3R0> you're probably not getting the full stack..
[22:25:38] <da_wunder> icfantv: can't you just use CSS ?
[22:25:44] <Z3R0> firefox, firebug has been MUCH better when looking @ angular stack trace
[22:25:45] <icfantv> ctanga: i've got table rows and each row needs a different legend color, say red, orange, yellow…etc.
[22:25:46] <jlambert> Z3R0: ahhh - use a different browser to see the full stack?
[22:26:09] <icfantv> da_wunder: i would be using css - assigning a different class based on ng-repeat iteration
[22:26:19] <davek> icfantv, you're looking for an ordinal color sequence.
[22:26:23] *** lordkryss_ has quit IRC
[22:26:26] *** soupedreiro has quit IRC
[22:26:30] <icfantv> davek: yes
[22:26:31] <davek> d3 has a library for generating them (or pre-generated lists of hex colors)
[22:26:35] <da_wunder> icfantv: :nth-child(odd/even)
[22:26:47] <icfantv> da_wunder, there's no repeat
[22:26:51] <davek> Or simply use ng-style/ng-class
[22:26:56] <icfantv> don't think table stripes
[22:27:32] <icfantv> ng-class uses a boolean to apply a class, that doesn't seem to apply here
[22:27:47] <zelrik> mfw I spend 30 minutes in plnkr to answer a SO question and the question gets locked as offtopic...
[22:27:52] *** bbrown has quit IRC
[22:28:02] <bbsss> davek: sorry to bother you, but would you have any idea why I get “ReferenceError: Can't find variable: $httpBackend” ?
[22:28:04] *** torrieri has joined #angularjs
[22:28:09] <davek> icfantv, check the documentation again. ng-class can also be used to set a pre-defined class object.
[22:28:11] <jlambert> Z3R0: firebug showed me the full stack trace, thank you
[22:28:18] <ctanga> if the class is dependent on the data in the row (the item), I'd pass the item to a function
[22:28:30] <bbsss> injector finds my own classes, and I assume I don;'
[22:28:33] <ctanga> ie, class="{{ getRowClass(item) }}"
[22:28:38] *** mattwynne has quit IRC
[22:28:39] *** in_deep_thought has joined #angularjs
[22:28:42] *** sigurding has quit IRC
[22:28:45] <bbsss> have to inject ‘ngMock’ anywhere
[22:28:50] <icfantv> the colors are arbitrary
[22:28:56] <icfantv> just need a way to distinguish
[22:29:04] *** fouzko has joined #angularjs
[22:29:41] *** dob_ has joined #angularjs
[22:29:42] <icfantv> ctanga: that's what I posted above…sans the function call
[22:29:44] *** dejanr_ has joined #angularjs
[22:29:47] <ctanga> right
[22:30:10] <icfantv> so i could have $scope.classes = [ "red", "orange", "green", … ]
[22:30:12] *** dynacker has joined #angularjs
[22:30:12] <ctanga> except based on item data, not on row index
[22:30:21] <ctanga> I don't quite understand the use case
[22:30:25] *** ckboii89 has quit IRC
[22:30:30] <icfantv> and then do class="{{ classes[$index] }}"
[22:30:32] *** MANCHUCK has joined #angularjs
[22:30:41] *** guilbep has joined #angularjs
[22:30:43] *** ckboii89 has joined #angularjs
[22:30:46] <davek> icfantv, I do literally this and I'm telling you that either using a pre-defined list of ordinal colors or leveraging d3's ordinal color generator is the way to go. Then simply assign them by function.
[22:30:51] <icfantv> each row in the table corresponds to a legend color
[22:31:04] <davek> icfantv, so you _are_ using a repeat?
[22:31:15] <davek> $index is only available via ng-repeat.
[22:31:25] <icfantv> davek: yes. looking at d3…hate to suck in an entire library for this
[22:31:25] *** ingshtrom has quit IRC
[22:31:36] <icfantv> yep, in an ng-repeat
[22:31:51] *** jdj_dk_ has joined #angularjs
[22:31:59] <icfantv> (i did say this above….for the record)
[22:32:01] <davek> icfantv, no don't use all of d3, use the ordinal color lib they use.
[22:32:04] <davek> It's like 50 lines max.
[22:32:07] <icfantv> ok
[22:32:11] *** bootsWitDaFur has joined #angularjs
[22:32:36] <davek> And then yes, you'd want to do ng-style="{ 'background': colors[$index] }" or something to the same effect.
[22:33:00] *** HashNuke has quit IRC
[22:33:08] *** nodweber has joined #angularjs
[22:33:10] <icfantv> ok, cool
[22:33:18] <icfantv> just wanting to make sure all that's kosher
[22:33:24] *** ghostbar has joined #angularjs
[22:33:34] *** dman777_alter has quit IRC
[22:33:35] *** bkuberek has joined #angularjs
[22:33:56] *** mikeywaites has joined #angularjs
[22:34:00] *** vintik has quit IRC
[22:34:28] *** dejanr_ has quit IRC
[22:34:32] *** vintik has joined #angularjs
[22:35:18] *** nanoyak has quit IRC
[22:35:28] <davek> I have a color factory that handles parsing/encoding, gradient sampling, interpolation and conversion of colors. I was thinking of rolling up ordinal color generation and publishing it...
[22:35:29] *** niftylettuce_ has joined #angularjs
[22:36:15] *** vintik has quit IRC
[22:36:26] *** jdj_dk_ has quit IRC
[22:36:31] *** slainer68 has joined #angularjs
[22:36:32] *** vintik has joined #angularjs
[22:37:10] <Aliks_> does anyone know why ngModel.$modelValue (I required ngModelController) is NaN even though scope.ngModel already has the correct value loaded (if I do scope: { ngModel: '=' })
[22:37:20] *** startupality has joined #angularjs
[22:37:32] *** dve has joined #angularjs
[22:38:18] *** nuizzy has joined #angularjs
[22:38:24] *** LuxuryMode has joined #angularjs
[22:38:25] *** bLu___ has quit IRC
[22:38:31] *** drej has quit IRC
[22:38:33] *** nanoyak has joined #angularjs
[22:38:47] *** bbrown has joined #angularjs
[22:39:06] *** bootsWitDaFur has quit IRC
[22:39:18] *** notbrent__ has joined #angularjs
[22:39:19] *** bbrown has quit IRC
[22:39:22] *** styles_ has quit IRC
[22:39:29] *** bootsWitDaFur has joined #angularjs
[22:39:51] *** bbrown has joined #angularjs
[22:39:53] *** jackweirdy has joined #angularjs
[22:40:12] *** nerdfile1 has quit IRC
[22:40:20] *** nanoyak has quit IRC
[22:40:28] *** nerdfile1 has joined #angularjs
[22:41:06] *** watsonkp has quit IRC
[22:41:07] *** teddyp1cker has quit IRC
[22:41:09] *** jgravois has quit IRC
[22:41:16] *** lucasefe has quit IRC
[22:41:33] *** bbrown_ has quit IRC
[22:41:36] *** phuh has quit IRC
[22:41:39] *** styles_ has joined #angularjs
[22:42:01] *** phuh has joined #angularjs
[22:42:04] *** bbrown has quit IRC
[22:42:22] <edrocks> anyone here use webpack?
[22:42:24] *** ngoyal has quit IRC
[22:42:35] *** bbrown has joined #angularjs
[22:42:45] *** TorchDragon has joined #angularjs
[22:43:03] *** watsonkp has joined #angularjs
[22:43:03] *** danyim has joined #angularjs
[22:43:31] *** fedenunez1 has joined #angularjs
[22:43:39] *** MaxV has quit IRC
[22:43:55] *** shackleford has quit IRC
[22:44:09] *** night-owl2 has joined #angularjs
[22:44:11] *** MaxV has joined #angularjs
[22:44:34] *** startupality has quit IRC
[22:44:37] *** netto_ has joined #angularjs
[22:45:10] *** netto_ has left #angularjs
[22:45:36] *** spencercarnage has joined #angularjs
[22:46:00] *** night-owl2 has quit IRC
[22:46:07] *** fedenunez has quit IRC
[22:47:04] *** styles has joined #angularjs
[22:47:11] *** endash has quit IRC
[22:47:12] <TheAceOfHearts> idk what that is lol
[22:47:13] *** vbabiy has quit IRC
[22:47:14] *** MaxV_ has joined #angularjs
[22:47:26] *** cmfatih has quit IRC
[22:47:38] *** danyim has quit IRC
[22:47:52] *** Berlin has joined #angularjs
[22:48:11] *** bbrown has quit IRC
[22:48:21] <TheAceOfHearts> Aliks_: that seems weird
[22:48:35] *** MaxV has quit IRC
[22:48:41] <Aliks_> TheAceOfHearts: yeah... I think I remember reading somewhere this is fixed in some future version of Angular
[22:49:10] <Aliks_> but yeah, if I require: ngModel, and also have scope: { ngModel: '=' }, then in link: function(s, e, a, ngModel) { ... }...
[22:49:23] <Aliks_> scope.ngModel has a value, but ngModel.$modelValue is NaN and ngModel.$viewValue is NaN
[22:49:53] <TheAceOfHearts> is there any reason you're using the ngModelController rather than the scope model :P?
[22:49:54] *** Pookz has joined #angularjs
[22:50:02] *** startupality has joined #angularjs
[22:50:03] <TheAceOfHearts> I'm guessing you want to do something like apply validations on it?
[22:51:08] *** bbrown has joined #angularjs
[22:51:36] <ctanga> Same here. In link() $modelValue is NaN
[22:51:38] <Aliks_> TheAceOfHearts: well, theoretically...
[22:51:50] *** lordkryss has joined #angularjs
[22:51:51] *** torrieri has quit IRC
[22:51:55] <TheAceOfHearts> ctanga: does it STAY as NaN though?
[22:51:57] <Aliks_> TheAceOfHearts: the common practice here is to make all our inputs use ng-model so we can do that...
[22:52:10] <ctanga> However, at this point, it has a value: ngModel.$render = function() { readonly.val(ngModel.$modelValue && ngModel.$modelValue.label || ''); };
[22:52:14] *** plitzenberger has quit IRC
[22:52:18] <Aliks_> TheAceOfHearts: it doesn't stay as NaN if we wait for the next digest cycle, but that means my link code needs to be more complicated
[22:52:19] *** boneskull has joined #angularjs
[22:52:20] *** apetro_ has quit IRC
[22:52:30] *** bkuberek has quit IRC
[22:52:35] <TheAceOfHearts> Aliks_: c'est la vie
[22:52:39] *** Mello has joined #angularjs
[22:52:43] <Aliks_> TheAceOfHearts: I also wonder if this has to do with priority of ngModel...
[22:52:52] <TheAceOfHearts> could be
[22:52:56] *** apetro_ has joined #angularjs
[22:52:57] *** Mello has quit IRC
[22:52:58] <Aliks_> so for example if I set my directive to a lower priority, would ngModel's controller happen first etc.
[22:53:17] <Aliks_> yeah ngModel has priority 0
[22:53:25] <Aliks_> so that isn't helpful
[22:53:38] *** yoshokatana_ has joined #angularjs
[22:53:45] <TheAceOfHearts> I haven't worked with NgModel enough to know
[22:53:49] <davek> Yes, for a very good reason. Why would model be anything other than undefined when initialized?
[22:53:53] <TheAceOfHearts> sorry :P
[22:54:05] *** mfunkie has quit IRC
[22:54:16] *** jkremser has joined #angularjs
[22:54:17] *** jkremser has joined #angularjs
[22:54:32] *** mfunkie has joined #angularjs
[22:54:40] *** kirfu has joined #angularjs
[22:54:42] *** MTGap has joined #angularjs
[22:55:06] <ctanga> Methods: $render(); "Called when the view needs to be updated. It is expected that the user of the ng-model directive will implement this method."
[22:55:29] <Aliks_> ctanga: assuming you even need to implement it... if you're wrapping a jQuery based plugin it may or may not be necessary
[22:55:42] <Aliks_> in my case I'm just listening for changes, not re-rendering the plugin
[22:55:53] <Aliks_> although if you need to change the model from outside the plugin then you'd need $render
[22:55:55] *** nonsenz has quit IRC
[22:56:01] *** ccohn has quit IRC
[22:56:01] *** bootsWitDaFur has quit IRC
[22:56:08] *** waylon999 has quit IRC
[22:56:18] *** ccohn has joined #angularjs
[22:56:18] <ctanga> Aliks_: shrug. the docs say to implement it, so I assume that's how they intended the API to be used
[22:56:24] *** bootsWitDaFur has joined #angularjs
[22:56:33] <Aliks_> ctanga: yeah, but it won't throw an error, at least it isn't for me, if you don't
[22:56:42] *** waylon999 has joined #angularjs
[22:57:15] *** tonycoco has quit IRC
[22:57:22] <davek> Yeah it doesn't throw an error it just uses a noop.
[22:57:26] *** apetro_ has quit IRC
[22:57:36] *** chrisbirk has quit IRC
[22:57:48] *** nonsenz has joined #angularjs
[22:58:08] <davek> Aliks_, if the model changes in any way (the model itself not its properties), $render is called automatically.
[22:58:16] <jackweirdy> Anyone know if/where there's info on the angular site RE the process of PRs getting merged or closed on github?
[22:58:34] *** mfunkie has quit IRC
[22:58:34] *** darrin has quit IRC
[22:58:39] *** visionary_ has joined #angularjs
[22:58:39] *** lordkryss has quit IRC
[22:58:44] <jackweirdy> There seems to be a huge backlog and I have no idea when I should expect mine to get looked at :)
[22:59:16] *** nanoyak has joined #angularjs
[22:59:35] *** guilbep has quit IRC
[22:59:48] *** marc_v92 has quit IRC
[23:00:06] *** bLu___ has joined #angularjs
[23:00:07] <visionary_> how do i set the json node attribute name with a var?
[23:00:20] *** waylon99_ has joined #angularjs
[23:00:24] *** dutis has joined #angularjs
[23:00:31] <davek> visionary_, object.property = variable.
[23:00:40] *** chrisbirk has joined #angularjs
[23:00:53] *** bLu___ has quit IRC
[23:01:01] *** waylon999 has quit IRC
[23:01:11] *** waylon99_ has quit IRC
[23:01:21] *** drej has joined #angularjs
[23:01:49] <edrocks> is anyone using webpack?
[23:01:49] *** waylon999 has joined #angularjs
[23:01:52] <edrocks> or commonjs
[23:02:02] *** danizord has quit IRC
[23:02:26] *** waylon999 has joined #angularjs
[23:02:31] *** drej has joined #angularjs
[23:02:33] *** waylon999 has quit IRC
[23:03:04] *** waylon999 has joined #angularjs
[23:03:07] *** Mouzi has quit IRC
[23:03:11] *** Joshee has quit IRC
[23:03:17] *** JohnBat26 has joined #angularjs
[23:03:38] *** DuelShark has quit IRC
[23:03:41] *** waylon999 has quit IRC
[23:03:45] *** Strues has joined #angularjs
[23:03:51] *** cthrax has quit IRC
[23:04:12] <Strues> anyone pretty familiar with restangular?
[23:04:22] *** waylon999 has joined #angularjs
[23:04:31] *** secondjeff has joined #angularjs
[23:04:34] *** BillCriswell has quit IRC
[23:04:39] *** btyne has quit IRC
[23:04:42] *** mindlace has quit IRC
[23:05:05] *** azureknight has joined #angularjs
[23:05:11] *** waylon999 has quit IRC
[23:05:31] *** chrisbirk has quit IRC
[23:05:32] *** Berlin has quit IRC
[23:05:43] *** waylon999 has joined #angularjs
[23:06:14] *** azureknight has quit IRC
[23:06:30] *** ChrisMatheson has joined #angularjs
[23:06:41] *** thebigredgeek has quit IRC
[23:06:47] *** Wolfe has quit IRC
[23:06:48] *** dammian has joined #angularjs
[23:07:06] <nickeddy> Strues: little bit, what's up
[23:07:09] *** goblorti_ has joined #angularjs
[23:07:23] *** toastynerd has quit IRC
[23:07:34] *** umib0zu_ has joined #angularjs
[23:07:56] <Strues> I was curious to know someones thoughts on learning it vs using resource/http
[23:08:09] *** cthrax has joined #angularjs
[23:08:10] *** TorchDragon has quit IRC
[23:08:12] *** squeakytoy has quit IRC
[23:08:31] <nickeddy> oh i love it personally, but $http would work fine. i'd recommend staying away from $resource as it doesn't do promises right
[23:08:38] *** secondjeff has quit IRC
[23:08:51] *** TorchDragon has joined #angularjs
[23:08:58] *** edrocks has quit IRC
[23:09:00] *** Snugug has quit IRC
[23:09:15] *** quantax- has joined #angularjs
[23:09:29] <Strues> Is there a place other than the official docs on github to learn it? Im one of those people who learn best reading the docs while seeing an actual working example
[23:09:32] *** Efrem is now known as Efrem-Away
[23:09:44] *** Joshee has joined #angularjs
[23:10:02] *** waylon999 has quit IRC
[23:10:18] *** mourahi has joined #angularjs
[23:10:47] *** goblortikus has quit IRC
[23:11:02] *** chrisbirk has joined #angularjs
[23:11:05] *** linojon has quit IRC
[23:11:07] *** bmac has quit IRC
[23:11:24] *** conner_ has quit IRC
[23:11:27] <mourahi> salam alycom
[23:11:33] *** bkuberek has joined #angularjs
[23:12:10] *** bkuberek_ has joined #angularjs
[23:12:16] *** goblorti_ has quit IRC
[23:12:16] *** ericbarnes has quit IRC
[23:12:22] <mourahi> هل يتكلم احد هنا العربية
[23:12:45] *** uf6667 has joined #angularjs
[23:12:52] *** ggayan has joined #angularjs
[23:12:58] *** calumet has quit IRC
[23:13:06] *** ggayan has left #angularjs
[23:13:06] *** jackweirdy has quit IRC
[23:13:14] *** fixl has quit IRC
[23:13:18] *** TorchDragon has quit IRC
[23:13:21] *** teeray has quit IRC
[23:14:22] *** nerdfile1 has quit IRC
[23:14:27] *** Efrem-Away is now known as Efrem
[23:14:49] *** nanoyak has quit IRC
[23:14:55] *** mourahi has quit IRC
[23:15:02] <msafi> لازم تتعلم أنجليزي
[23:15:14] *** xyNNN has quit IRC
[23:15:15] *** citizen-stig has quit IRC
[23:15:25] *** nanoyak has joined #angularjs
[23:15:53] *** bkuberek has quit IRC
[23:16:04] <oniijin> i think we're under attack
[23:16:46] *** cctom has quit IRC
[23:17:17] <davek> Well that's some casual racism I wasn't expecting.
[23:17:36] *** Nneon has joined #angularjs
[23:17:55] *** _ht has quit IRC
[23:18:05] *** Ethix has joined #angularjs
[23:18:37] *** evilaliv3 has joined #angularjs
[23:18:45] *** mehlah has joined #angularjs
[23:19:05] *** komma2 has joined #angularjs
[23:19:40] *** lsiv568 has quit IRC
[23:19:49] *** zanea|away is now known as zanea
[23:20:06] <msafi> No offense taken by me. And the other guy apparently doesn't speak English, so we're good.
[23:20:06] *** dcherman2 has quit IRC
[23:20:13] *** Joshee has quit IRC
[23:20:14] *** lsiv568 has joined #angularjs
[23:20:19] *** mtsr has quit IRC
[23:20:37] *** avens has quit IRC
[23:21:15] *** marcospgp has joined #angularjs
[23:21:22] *** Strues has quit IRC
[23:21:36] *** mikehaas763 has quit IRC
[23:21:41] *** dve has quit IRC
[23:22:08] *** goblortikus has joined #angularjs
[23:22:13] *** dve has joined #angularjs
[23:22:21] *** jackweirdy has joined #angularjs
[23:22:27] *** ckboii89 has quit IRC
[23:22:47] *** mfunkie has joined #angularjs
[23:23:05] <msafi> marcospgp: they say 'unless you know that they came directly from Google'
[23:23:08] *** patrick99e99 has joined #angularjs
[23:23:15] *** apetro_ has joined #angularjs
[23:23:21] <marcospgp> msafi, well you can never know if they came directly from google
[23:23:24] <davek> Google's auth API is based on Java... interesting.
[23:23:28] *** linojon has joined #angularjs
[23:23:36] <marcospgp> davek: android much
[23:23:38] <davek> marcospgp, if you make the request to google then yes you can.
[23:23:55] <davek> marcospgp what? Their auth framework has nothing to do with android.
[23:24:11] <marcospgp> davek, yea it's not ideal as i'll be doing a request every time a user logs in
[23:24:15] <davek> Java boasts some of the industry's fastest web frameworks, I was just remarking because its odd to see Google do something in Java.
[23:24:15] <msafi> marcospgp: if you wanna decode the ID token for fun, there's a Node.js library to decode Open ID OAuth tokens
[23:24:28] <marcospgp> and yea it has something to do with it, authentication in mobile apps right?
[23:24:45] *** lsiv568 has quit IRC
[23:24:45] *** plitzenberger has joined #angularjs
[23:24:55] *** dve_ has joined #angularjs
[23:25:04] <marcospgp> msafi: oh i can decode it alright, just wanted to know how the hell they sign it so i can verify it without making a request to their servers
[23:25:06] <davek> What a silly argument.
[23:25:24] <msafi> marcospgp: how do you decode it?
[23:25:26] <marcospgp> it's not an argument :p
[23:25:41] *** waylon999 has joined #angularjs
[23:25:49] *** meenuh_ is now known as meenuh
[23:25:53] <davek> The fact that it's built in Java has literally nothing to do with the fact that Android uses Java.
[23:25:56] *** mfunkie has quit IRC
[23:25:58] <marcospgp> msafi base64url decode the payload
[23:26:12] *** Joshee has joined #angularjs
[23:26:23] <msafi> marcospgp: and what do you get when you do that?
[23:26:26] *** azureRaven has joined #angularjs
[23:26:32] *** mfunkie has joined #angularjs
[23:26:57] <marcospgp> davek, wouldn't favoring java be the best for google because of android and google play and such
[23:26:59] *** dve has quit IRC
[23:27:02] *** Christer has quit IRC
[23:27:14] *** dcherman has joined #angularjs
[23:28:03] <msafi> marcospgp: don't you need to have Google's public keys to decode the JWT?
[23:28:06] *** dariocravero has joined #angularjs
[23:28:16] *** tipdbmp has quit IRC
[23:28:17] <marcospgp> msafi, well i have a lot of questions
[23:28:18] <davek> marcospgp, not really no. They also have projects based in node, rust, Go, C++, C#/.NET, and anything else you can think of.
[23:28:26] <marcospgp> if they are public keys how is the signing secure
[23:28:26] <davek> msafi, yep
[23:28:30] <robdubya> id_token = JWT
[23:28:35] *** Gue______ has joined #angularjs
[23:28:38] <davek> marcospgp, you're not signing them you're verifying it.
[23:28:43] <davek> Which is exactly what a public key is for.
[23:28:49] *** dve_ has quit IRC
[23:28:57] *** gordroid has quit IRC
[23:28:57] <marcospgp> right right
[23:28:57] *** MaxV_ has quit IRC
[23:29:06] <marcospgp> but if they are signed with a public key
[23:29:08] *** djalmaaraujo has joined #angularjs
[23:29:13] <ctanga> signed with private key
[23:29:15] <marcospgp> can't anyone just sign their own tokens with the key?
[23:29:28] <ctanga> verified with public key
[23:29:30] <msafi> they are encoded with a private key, you decode it with the public key
[23:29:35] *** MaxV has joined #angularjs
[23:29:38] <marcospgp> ctanga well how does that work
[23:29:48] *** richiebkr has quit IRC
[23:29:59] *** ccohn has quit IRC
[23:30:06] *** dmack has quit IRC
[23:30:07] <marcospgp> to verify it you kinda have to rebuild the signature and see if they are identical
[23:30:09] *** waylon999 has quit IRC
[23:30:20] <robdubya> do you even diffe-hellman bro?
[23:30:22] <marcospgp> so signing and verifying is pretty much similar isn't it?
[23:30:26] <msafi> marcospgp: if the public key decodes them successfully, then you can be sure they were encoded with the same person who gave you the public key, in this case Google...
[23:30:29] <davek> No they're signed with a mixed key that is the result of some intractable operation on the two input keys.
[23:30:38] *** dejanr_ has joined #angularjs
[23:30:41] *** mmccook has quit IRC
[23:30:42] *** dc_ has quit IRC
[23:30:56] <msafi> davek: was I correct in my explanation?
[23:31:11] *** mfunkie has quit IRC
[23:31:17] *** dc_ has joined #angularjs
[23:31:17] <davek> msafi, yeah totally you're pretty much on point.
[23:31:34] *** umib0zu_ has quit IRC
[23:31:55] <msafi> Thanks :)
[23:32:04] <marcospgp> i am so lost, give me a minute
[23:32:08] <marcospgp> and thanks everyone
[23:32:19] *** Reskp has joined #angularjs
[23:32:24] *** nanoyak has quit IRC
[23:32:54] *** mindlace has joined #angularjs
[23:33:00] <marcospgp> so the public keys are based or connected to the private ones used for signing? in a way that you can't reverse them
[23:33:02] *** andrewhl has quit IRC
[23:33:08] <ctanga> correct
[23:33:26] *** nanoyak has joined #angularjs
[23:33:33] *** MaxV has quit IRC
[23:33:34] *** fedenunez1 has quit IRC
[23:33:37] <davek> marcospgp, uhh slow down there.
[23:33:45] <marcospgp> slowed
[23:34:10] <davek> YOUR public/private keys are necessarily unrelated or connected. As are Google's. That's a criteria for cryptographically sound key generation. I can't be able to guess at your private key simply by knnowing your public one.
[23:34:32] *** mennea has quit IRC
[23:34:39] *** Efrem is now known as Efrem-Away
[23:34:46] <marcospgp> unrelated or connected? those are antonyms
[23:34:52] *** alho has quit IRC
[23:35:07] <marcospgp> oh you mean aren't?
[23:35:13] *** dejanr_ has quit IRC
[23:35:13] <davek> So Google's token is signed with a combination of their private key and YOUR application's public key. This combination is mathematically intractable.
[23:35:16] *** alho has joined #angularjs
[23:35:19] <davek> marcospgp, yeah sorry unrelated and unconnected.
[23:35:30] *** mchapman has joined #angularjs
[23:35:37] *** apetro_ has quit IRC
[23:35:59] *** dc_ has quit IRC
[23:36:00] *** apetro_ has joined #angularjs
[23:36:09] <marcospgp> hm so how then can I verify the signature, programatically speaking, using not the keys that were used for signing but the public keys?
[23:36:36] <davek> marcospgp, so by trading public keys and mashing them together with your private keys, both you and Google now have the same "shared key".
[23:36:52] *** subone has left #angularjs
[23:37:05] *** Ilyas has quit IRC
[23:37:15] <marcospgp> makes sense
[23:37:17] <Nneon> is there any reason why a filter expression wouldn't work when using nested view in ui-router?
[23:37:25] *** Wolfe has joined #angularjs
[23:37:26] <marcospgp> but how can i replicate the mashing
[23:37:44] *** apetro_ has quit IRC
[23:37:49] *** karinaOK has quit IRC
[23:37:51] <marcospgp> don't they document that somewhere? how their tokens are signed?
[23:38:00] <marcospgp> they just seem to put out libraries to verify them
[23:38:06] <marcospgp> but they don't say how it's done
[23:38:13] *** juampy has joined #angularjs
[23:38:14] *** damianfarina has joined #angularjs
[23:38:16] <marcospgp> and they haven't put one out for node afaik
[23:38:19] *** apetro_ has joined #angularjs
[23:38:37] <marcospgp> gimme a sec
[23:38:48] *** sonofdirt has quit IRC
[23:38:53] *** dutis has quit IRC
[23:39:04] *** boneskul_ has joined #angularjs
[23:39:18] <marcospgp> what i wanted to have from google, or to know, is pretty much this (facebook example)
[23:39:24] <marcospgp> like that code example
[23:39:24] *** sonofdirt has joined #angularjs
[23:39:25] <davek> marcospgp, you don't need to validate it that's what I'm trying to say.
[23:39:27] *** foofoobar has quit IRC
[23:39:38] <davek> If YOU are receiving the forwarded token from Google, you're golden.
[23:39:45] *** Dany has joined #angularjs
[23:39:45] <marcospgp> davek buuut
[23:39:48] <Dany> hey guys
[23:40:03] <marcospgp> i don't want to ask google. i want the client to give me the token it received and for me to verify it
[23:40:07] *** mfunkie has joined #angularjs
[23:40:13] <marcospgp> without annoying their servers
[23:40:32] <marcospgp> as you can see on that facebook example it should be pretty simple
[23:40:45] <Dany> Im a back-end developer, and I need front-end (AngularJS) help badly. Would like to work over teamviewer (project is quite big, so TV would help getting to the work specifically). Willing to pay for the help.
[23:41:21] *** raypulver has joined #angularjs
[23:41:32] *** jdcasey has quit IRC
[23:41:38] *** phuh has quit IRC
[23:41:46] *** goblortikus has quit IRC
[23:41:50] <marcospgp> i'm sorry if i'm being annoying or uneducated. i really appreciate all of your help
[23:41:59] *** andri_inuk has joined #angularjs
[23:42:03] *** phuh has joined #angularjs
[23:42:13] *** goblortikus has joined #angularjs
[23:42:18] *** boneskull has quit IRC
[23:42:38] *** apetro_ has quit IRC
[23:42:39] *** richiebkr has joined #angularjs
[23:42:41] *** damianfarina is now known as karinaOK
[23:43:35] *** Dany has quit IRC
[23:43:37] *** sonofdirt has quit IRC
[23:44:17] *** kenjosan has joined #angularjs
[23:44:29] <Grokling> Dany: in lieu of enthusiastic offers of help from the channel (which may yet come) you could try a service like airpair.com?
[23:44:43] *** bejames has joined #angularjs
[23:44:59] <davek> No its totally fine, marcospgp, unless google has a published node API (they might), you're going to need to retrieve Google's most recent oauth2 cert (they change daily) and cache it on your server, pluck the public key from this cert and decode your JWT using the public key.
[23:45:40] *** Asiajey has quit IRC
[23:45:48] <davek> If it's valid, i.e. you get a valid JSON token from decoding it, you then need to inspect the audience field to confirm that it matches your application's client ID.
[23:46:14] <marcospgp> davek, i still have one doubt
[23:46:16] <davek> There's a really nice JWT lib for node that will do the decoding bit for you.
[23:46:23] *** Foxandxss has quit IRC
[23:46:32] *** goblortikus has quit IRC
[23:46:34] *** kirfu has quit IRC
[23:46:37] *** walden is now known as walden|afk
[23:46:38] *** ChrisMatheson has quit IRC
[23:46:42] *** kenjosan has left #angularjs
[23:46:45] <marcospgp> davek, basically to verify a token, i have to resign it and compare signatures, by knowing wich secret the provider of the token used to sign it
[23:47:11] *** Asiajey has joined #angularjs
[23:47:12] <marcospgp> davek, how can i verify it without knowing the secret
[23:47:23] <davek> No, to verify you ensure that the token can be decoded with the public key stated in the origin's most recent x504 certificate.
[23:47:41] <davek> x509*
[23:47:57] <marcospgp> davek, what do you mean decoded, isn't it just base-64'd?
[23:48:16] *** nerdfile1 has joined #angularjs
[23:48:27] *** Methylated has quit IRC
[23:48:54] <davek> marcospgp, nonono it's signed THEN encoded in base64 for transport.
[23:48:58] *** josh-k has joined #angularjs
[23:49:08] <davek> base64 is 100% reversible, its just for characterset compliance.
[23:49:17] *** golcarcol has quit IRC
[23:49:37] <marcospgp> i know it is
[23:49:42] *** jeffszusz has quit IRC
[23:49:55] <davek> Bam, that "isSignatureValid" function, you run that passing in the token and Google's public key you retrieve from their OAuth2 x509 cert.
[23:51:02] *** jackweirdy has quit IRC
[23:51:09] <marcospgp> HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), secret base64 encoded )
[23:51:09] *** e-dard has joined #angularjs
[23:51:23] *** goblortikus has joined #angularjs
[23:51:27] <Nneon> it seems as though $scope.search never gets updated on line 65 of index.html
[23:51:32] *** UniBot has quit IRC
[23:51:34] *** josh-k__ has joined #angularjs
[23:51:37] <e-dard> When you do ng-repeat, are new variables in the view scoped to the object you're repeating over?
[23:51:39] *** TorpedoSkyline has quit IRC
[23:51:45] *** kofight has quit IRC
[23:51:59] <e-dard> Becuase I did ng-show based upon a new variable, and only the row where I set the variable was affected
[23:51:59] <davek> marcospgp, yeah that's totally correct. What's not jiving for you?
[23:52:04] *** josh-k___ has joined #angularjs
[23:52:05] <davek> The secret is signed and THEN base64 encoded.
[23:52:12] <e-dard> (by row I mean iteration in the ng-repeat loop)
[23:52:47] *** josh-k_ has quit IRC
[23:52:48] <marcospgp> davek, hm so what i meant is i don't have to decode the token, its contents are just base-64'd
[23:53:12] <marcospgp> and you said "to verify you ensure that the token can be decoded with the public key"
[23:53:29] *** lw has joined #angularjs
[23:53:31] <marcospgp> :/
[23:53:32] *** twelverobots has joined #angularjs
[23:53:32] *** dob_ has quit IRC
[23:53:48] *** mfunkie has joined #angularjs
[23:53:58] *** dob_ has joined #angularjs
[23:53:59] *** sixr420 has joined #angularjs
[23:54:04] *** josh-k has quit IRC
[23:54:05] *** MaxV has joined #angularjs
[23:54:26] <e-dard> <tr data-ng-repeat="foo in foos"><span ng-show="zoo">hello</span><a ng-click="zoo=true">{{foo}}</a></tr>
[23:54:38] *** ziyadb has joined #angularjs
[23:54:41] <e-dard> basically, only the row that has the a element clicked on gets affected
[23:54:51] <e-dard> so, is zoo being set of the foo or on $scope?
[23:55:11] <davek> Yeah, you ensure that the signature component of the JWT (the last bit), can be decrypted using the other guys' public key.
[23:55:30] <Nneon> e-dard: are you answering my question?
[23:55:46] <e-dard> Nneon: nope. I'm asking one!
[23:56:01] <marcospgp> davek that makes sense but in code how would that be? why is it so complicated /:
[23:56:03] *** josh-k__ has quit IRC
[23:56:06] <Nneon> e-dard: ah, no wonder i was confused
[23:56:12] *** JoelKelly has quit IRC
[23:56:20] *** chrisbirk has quit IRC
[23:57:01] *** BlinkyBill has joined #angularjs
[23:57:05] *** amargherio has quit IRC
[23:57:33] *** atomical has quit IRC
[23:57:53] *** Siecje1 has quit IRC
[23:57:55] <davek> marcospgp, cryptography. Also refer to the node-jwt implementation seriously.
[23:57:59] *** uchuff has quit IRC
[23:57:59] <davek> It's going to make your life a lot easier.
[23:58:33] *** dob_ has quit IRC
[23:58:41] <ctanga> e-dard: ng-repeat creates a new scope for each repetition. when you set zoo=true it sets it on that repitition's scope.
[23:58:42] *** TorpedoSkyline has joined #angularjs
[23:58:47] *** nerdfile1 has quit IRC
[23:58:48] *** yoshokatana_ has joined #angularjs
[23:58:52] *** yoshokatana_ has quit IRC
[23:58:54] *** yoshokatana has quit IRC
[23:59:03] <marcospgp> i will check the code
[23:59:08] <e-dard> ctanga: cool, so I can access the variable in the controller on the object?
[23:59:10] *** emps has quit IRC
[23:59:14] <ctanga> e-dard: download chrome batarang from the chrome store and you can view the scope tree
[23:59:27] *** TorpedoSkyline has quit IRC
[23:59:35] <davek> marcospgp, jwt seems a little more lightweight but that looks great as well.