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

Toggle Join/Part | bottom
[00:00:02] *** justicefries has left #angularjs
[00:00:04] <nickeddy> i beg to differ on the streaming audio. soundcloud is proof of that
[00:00:23] *** captain_morgan has joined #angularjs
[00:00:53] <robdubya> davek truly?
[00:00:55] <davek> nickeddy, soundcloud still uses flash a fallback.
[00:01:04] *** simsketch has quit IRC
[00:01:13] <nickeddy> keyworld fallback. i've never ever seen flash on soundcloud when i've used it
[00:01:21] <davek> That's pretty much where Flash exists now, as a tack-on for legacy support.
[00:01:24] *** kreeves has quit IRC
[00:01:27] *** spencercarnage has quit IRC
[00:01:28] <nickeddy> well, i don't even allow flash to run
[00:01:33] *** Sgeo has joined #angularjs
[00:01:36] *** bphogan is now known as bphogan_afk
[00:01:43] <nickeddy> given stuff like the recent flash+jsonp exploit
[00:02:10] <davek> Is this a "what is flash useful for" discussion or a "why you hate flash" discussion?
[00:02:17] <snapwich> hrmm, i think Flash is still an important part of the Evercookie. if you can consider that a good thing ;)
[00:02:25] <robdubya> the what
[00:02:30] *** IanOlson has quit IRC
[00:02:36] <snapwich> http://en.wikipedia.org/wiki/Evercookie
[00:02:55] *** ngbot has joined #angularjs
[00:02:55] <ngbot> [angular.js] btford pushed 1 new commit to master: http://git.io/VWBU5A
[00:02:55] <ngbot> angular.js/master 99a2f0a Patrick Hallisey: docs($resource): note methods list is non-exhaustive...
[00:02:55] *** ngbot has left #angularjs
[00:02:57] <robdubya> those motherfuckers
[00:02:59] <nickeddy> this is a "why is flash still being used when other technologies outpace it easily"
[00:03:19] *** InezK_away is now known as InezK
[00:03:20] *** cdaringe has quit IRC
[00:03:34] *** robdubya has quit IRC
[00:03:42] <davek> Because the world doesn't live on the bleeding edge.
[00:03:43] *** mivv has quit IRC
[00:03:44] <davek> Next question.
[00:03:50] *** richiebkr has joined #angularjs
[00:03:54] *** robdubya has joined #angularjs
[00:04:09] *** e-dard is now known as e-dard_afk
[00:04:12] <robdubya> okay textual, i'm happy its your birthday or whatever, but your icon is really messing with me
[00:04:37] <snapwich> Yeah but this is an Javascript related channel, where we live in the bleeding edge and anything is not bleeding edge needs to be rewritten to the bleeding edge. in javascript
[00:04:54] <robdubya> and then webscaled
[00:05:06] <captain_morgan> Does anyone know if $http cache actually supports promises? looking at source it checks for a promise being returned but I cannot figure out how to send data after
[00:05:20] <snapwich> javascript is webscale
[00:05:20] *** cdaringe has joined #angularjs
[00:05:21] <zelrik> not sure I d call javascript bleeding edge
[00:05:31] *** mrits has joined #angularjs
[00:05:49] <robdubya> captain_morgan are you using it manually?
[00:06:02] <robdubya> i call it "bloody javascript" at least once a day
[00:06:12] *** olveraricardo72 has quit IRC
[00:06:42] <zelrik> these days I have more issues with backend stuff
[00:06:45] <zelrik> than js
[00:07:25] <captain_morgan> robdubya, which part manually? I have a parred down test case here http://plnkr.co/edit/TwXumrAunG9b5JKo5OlB?p=preview
[00:07:27] *** nicholaswyoung has quit IRC
[00:07:40] <captain_morgan> with a sorta fake $cacheFactory
[00:07:54] *** nicholaswyoung has joined #angularjs
[00:07:56] *** sonicparke has quit IRC
[00:08:08] *** dylukes has quit IRC
[00:08:09] <da_wunder> hmm, btw anyone knows how to get record of bootstrap modals in angular? I mean that when I open one model and that's open one more. I want to make back to previous one?
[00:08:19] *** JimTheDev has quit IRC
[00:08:58] *** lucasefe has joined #angularjs
[00:09:04] <davek> da_wunder, keep a stack?
[00:09:12] *** ccohn has quit IRC
[00:09:27] <robdubya> captain_morgan hmmm
[00:09:37] <da_wunder> davek: yeah, something like that. Do you know any "ready" solutions or do I have to code my own?
[00:09:40] *** hswolff has quit IRC
[00:09:44] *** tfennelly has quit IRC
[00:09:46] *** cdaringe has quit IRC
[00:09:52] *** ccohn has joined #angularjs
[00:09:53] <captain_morgan> robdubya, yeah, that's how I've been feeling the last two days
[00:10:01] <robdubya> captain_morgan thats sort of a weird way of doing this
[00:10:07] <robdubya> what are you looking to accomplish?
[00:10:09] *** btyne has quit IRC
[00:10:23] *** oste has quit IRC
[00:10:33] <captain_morgan> We doing a phonegap app and need more than local/sessionStorage for cache
[00:10:40] *** nicholaswyoung_ has joined #angularjs
[00:10:42] <davek> da_wunder, you'll have to code your own. It's too niche and simple a case to need a module or sometihng.
[00:10:53] <robdubya> captain_morgan $cacheFactory aint going to help then
[00:11:10] *** nicholaswyoung has quit IRC
[00:11:13] <robdubya> assuming you want a persistent (between launches) cache
[00:11:28] *** cdaringe has joined #angularjs
[00:11:42] <da_wunder> davek: yep, that is was i was thinking too
[00:11:54] <captain_morgan> robdubya, I figured cacheFactory itself wasn't what I wanted, but if the $http cache actually supports promises I could just implement anything
[00:11:56] <robdubya> da_wunder probably stuff it in a service
[00:11:59] <captain_morgan> using that style API
[00:12:12] <SuperPhly> I AM A GOD. It finally worked!
[00:12:18] <da_wunder> robdubya: yeah, service that keeps record of modal queue
[00:12:20] <robdubya> captain_morgan imo, better to handle that "above" the $http layer
[00:12:20] <SuperPhly> well, thanks to pswizzle
[00:12:44] <robdubya> in your "model" class, easy enough to check indexedb or whatever, then fail to http
[00:12:52] <captain_morgan> robdubya, I need to still use $resource
[00:13:00] <captain_morgan> robdubya, that is why I was trying to do it there
[00:13:01] <robdubya> do you really?
[00:13:02] *** conan_the_destro has quit IRC
[00:13:14] <robdubya> (because $resource is sort of anti promise)
[00:13:17] <nickeddy> heh
[00:13:23] <captain_morgan> robdubya, yes, the entire app is already dependent on it
[00:13:23] *** Willow_ has quit IRC
[00:13:25] *** cdaringe_ has joined #angularjs
[00:13:25] *** bradmaxs has quit IRC
[00:13:53] <snzmn> i have an object that has a field "sources" that is basically a bunch of urls with name and description attached. i was wondering if there were any resources for validating this within the context of a form?
[00:13:57] *** ccohn has quit IRC
[00:13:59] *** Willow_ has joined #angularjs
[00:14:05] *** nicholaswyoung_ has quit IRC
[00:14:06] <nickeddy> captain_morgan: why is that
[00:14:20] <robdubya> captain_morgan leaving out the issues with that (your shit is too coupled, son) gimme a sec
[00:14:36] <nickeddy> decouple your shit holmes
[00:15:03] *** ngoyal has joined #angularjs
[00:15:04] <robdubya> captain_morgan just to be clear, you do want a persistent cache, yes?
[00:15:17] <zelrik> I like to couple stuff
[00:15:46] <BahamutWC|Work> hmm, ui-sref does not support dynamic changing of state names
[00:15:51] *** scassidy_ has left #angularjs
[00:15:54] *** Xethron has quit IRC
[00:15:57] *** waylon999 has joined #angularjs
[00:16:03] <robdubya> BahamutWC|Work should do
[00:16:03] *** cdaringe has quit IRC
[00:16:04] <nickeddy> BahamutWC|Work: i think maybe ui-router-extras can provide that
[00:16:06] <captain_morgan> robdubya, yes, either to File API, Web SQL, or IndexedDB (all async)
[00:16:12] *** waylon999 has quit IRC
[00:16:26] <robdubya> you're sorta boned then, since the cacheFactory api is sync
[00:16:26] *** waylon999 has joined #angularjs
[00:16:26] *** Jowy_ has quit IRC
[00:16:39] <BahamutWC|Work> robdubya: I found out the hard way when I tried to do ui-sref=“{{state.name}}"
[00:17:02] <davek> So node-gm is just broken...
[00:17:19] <robdubya> BahamutWC|Work http://plnkr.co/edit/LZTqdd
[00:17:24] <robdubya> ref layout.html
[00:17:34] *** cdaringe has joined #angularjs
[00:17:36] *** xavia has quit IRC
[00:17:50] <BahamutWC|Work> huh
[00:17:59] *** cdaringe_ has quit IRC
[00:18:13] <BahamutWC|Work> could it be if one state name interpolates into ‘’ then it’s a problem?
[00:18:18] *** Willow_ has quit IRC
[00:18:42] <nickeddy> yeah could be that passing the entire object instead of the name?
[00:19:01] *** spencercarnage has joined #angularjs
[00:19:04] *** MIR100 has quit IRC
[00:19:07] <BahamutWC|Work> nah, some of these objects have no name properties
[00:20:25] *** InezK is now known as InezK_away
[00:20:31] *** quantax- has quit IRC
[00:20:45] *** InezK_away is now known as InezK
[00:21:17] *** dawhite_ has joined #angularjs
[00:21:37] *** disorder20 has quit IRC
[00:22:01] *** cdaringe has quit IRC
[00:22:09] <nickeddy> yeah have you tried ui-sref="{{state}}"
[00:22:48] *** dawhite has quit IRC
[00:23:11] <captain_morgan> robdubya, it's broken, $http cache does not properly resolve promises, it just removes them from the pending queue
[00:23:13] *** michaelm has quit IRC
[00:23:16] <captain_morgan> as I suspected
[00:23:21] *** shackleford has quit IRC
[00:23:38] <BahamutWC|Work> just tested, it is indeed working…just erroring when the object has no name
[00:23:39] <BahamutWC|Work> hmm
[00:24:05] <robdubya> captain_morgan yeah, been down this road already
[00:24:26] <captain_morgan> there is a PR coming through, but doesn't help me today
[00:24:35] <robdubya> assuming you have a service per "model", i'd just build a service that wraps $http and provides the same API as resource
[00:25:13] *** dawhite__ has joined #angularjs
[00:25:20] *** GeertV__ has quit IRC
[00:25:42] *** quantax- has joined #angularjs
[00:26:02] *** mikedevita has quit IRC
[00:26:23] *** dve has joined #angularjs
[00:26:52] *** thomasreggi has quit IRC
[00:27:04] <robdubya> captain_morgan you could always fork angular, and patch that PR, see if it fixes it
[00:27:17] <captain_morgan> I'm testing that now
[00:27:26] *** lucasefe has quit IRC
[00:27:30] *** dawhite_ has quit IRC
[00:27:42] *** chrisshattuck has joined #angularjs
[00:28:12] *** lw has quit IRC
[00:28:22] <pswizzle> SuperPhly: HAH! Happy to hear it
[00:28:47] *** frickett has quit IRC
[00:29:22] *** Reite has quit IRC
[00:29:35] *** mfunkie has joined #angularjs
[00:30:05] <robdubya> BahamutWC|Work not sure how you'd handle that really
[00:30:25] <robdubya> {{ state.name || 'someDefault' }}
[00:30:27] <robdubya> i guess?
[00:31:04] *** ngoyal has quit IRC
[00:31:08] <BahamutWC|Work> robdubya: just ended up doing ng-if
[00:31:14] *** Destos has quit IRC
[00:31:15] <BahamutWC|Work> not the greatest solution but *shrug*
[00:31:22] <JonathanNeal> How do I bake a transformation into an $http.get of JSON? Basically, I need to do what I would normally do with JSON.parse’s reviver.
[00:31:30] *** lucasefe has joined #angularjs
[00:31:40] <robdubya> JonathanNeal http.get('foobar').then(transformer)
[00:31:43] *** cdaringe has joined #angularjs
[00:31:45] <robdubya> .then(doSomethingElse)
[00:31:55] *** Nizumzen has quit IRC
[00:31:57] *** francisl has quit IRC
[00:32:04] *** dawhite__ has quit IRC
[00:32:05] <robdubya> or an interceptor i suppose, but meh
[00:32:45] <JonathanNeal> robdubya: where can I see the docs for the args passed to .then? I can console.log it, read about it, or you could just tell me ;D
[00:32:55] <robdubya> JonathanNeal .then is promises
[00:33:15] <robdubya> and you should learn how the work, since a) they're everywhre in angular and b) they're awesome
[00:33:17] *** dawhite has joined #angularjs
[00:33:18] *** TimmyTones has quit IRC
[00:33:20] <JonathanNeal> Thanks for the help. Is …. you just answered my question. So the xhr request is resolved to the function in .then?
[00:33:30] <robdubya> its
[00:33:37] *** TimmyTones has joined #angularjs
[00:33:46] <robdubya> $http.get(url).then(successHandler,errorHandler)
[00:33:47] <JonathanNeal> robdubya: quite familiar with Promises! Very new to Angular.
[00:33:47] *** nitsujw has joined #angularjs
[00:34:03] <robdubya> so you'd do your transform in there, and *return* the value
[00:34:17] <robdubya> which would resolve the next promise in the chain with that value
[00:34:18] *** Trow has quit IRC
[00:34:24] *** Nek has quit IRC
[00:34:43] <JonathanNeal> Is the “magically” parsed JSON sent into the successHandler when the get resolves, or is the original XHR request sent in?
[00:34:44] *** Ansikt has quit IRC
[00:34:53] *** JosephBergevin has quit IRC
[00:34:55] <JonathanNeal> Or maybe something else, I suppose.
[00:35:29] <JonathanNeal> Relevant to our conversation, if you haven’t read it yet: http://domenic.me/2012/10/14/youre-missing-the-point-of-promises/
[00:35:59] <JonathanNeal> I’ll console log it, you’ve helped me a lot already. Thank you.
[00:36:20] *** mindlace_ has joined #angularjs
[00:36:25] *** cdaringe has quit IRC
[00:36:29] *** Siecje has joined #angularjs
[00:37:04] *** captain_morgan has quit IRC
[00:37:34] *** encrypt3d_fracti has quit IRC
[00:37:43] *** jamesbdev has joined #angularjs
[00:37:52] <robdubya> JonathanNeal http://plnkr.co/edit/bHeD6x1rmpHwqUpih0BW?p=preview
[00:37:56] <SuperPhly> pswizzle: yeah man, i'm rocking now! I'm just trying to normalize all my JSON.
[00:38:01] <robdubya> typical usage, probbaly the kind of thing you're doing
[00:38:07] <robdubya> SuperPhly see above
[00:38:23] *** thedodd has quit IRC
[00:38:39] *** juampy has quit IRC
[00:38:44] *** Shrooms has quit IRC
[00:38:46] <robdubya> JonathanNeal have that bookmarked, probably link it in here 5 times a day :D
[00:38:47] <JonathanNeal> Thanks again, robdubya!
[00:38:48] <kirfu|work> In my controller I'm trying to run a 3rd party script that's avalible from the global scope. I need it to run only when the view has finished evaluating all the {{…}} stuff.
[00:38:48] <robdubya> see also promise-nuggets.github.io
[00:38:50] *** encrypt3d_fracti has joined #angularjs
[00:39:04] *** senayar has quit IRC
[00:39:18] *** mindlace has quit IRC
[00:39:20] *** RedOrangeZ has joined #angularjs
[00:39:25] *** bphogan_afk is now known as bphogan
[00:39:28] *** dve has quit IRC
[00:39:29] <JonathanNeal> robdubya: haha, great, and once you said it was Promise based, that was the first thing that actually made sense. Good times.
[00:39:41] *** senayar has joined #angularjs
[00:39:58] <robdubya> promises are my jam
[00:40:06] *** dve has joined #angularjs
[00:41:18] <robdubya> kirfu|work whats the third party script?
[00:41:23] *** mercwithamouth has quit IRC
[00:41:23] <kirfu|work> gigya
[00:42:00] <kirfu|work> it renders share bars. Issue is, it keys of the ID of a div, and my div id is created {{ Photo.id}}-share-bar
[00:42:14] <robdubya> do it inside the directive
[00:42:18] <robdubya> *a directive
[00:42:25] <kirfu|work> No quick way in a controller?
[00:42:37] *** atomical has joined #angularjs
[00:43:03] *** atomical has quit IRC
[00:43:10] *** encrypt3d_fracti has quit IRC
[00:43:10] <kirfu|work> I was having trouble getting it to work in my directive :(. So I'm trying to get everything to work via inside the controller then try the directive again :)
[00:43:28] *** atomical has joined #angularjs
[00:43:28] *** agrajag42 has quit IRC
[00:43:41] *** ngoyal has joined #angularjs
[00:43:50] *** MTGap has joined #angularjs
[00:43:55] *** cdaringe has joined #angularjs
[00:43:56] *** tsalb has quit IRC
[00:44:26] *** danyim has joined #angularjs
[00:44:35] *** senayar has quit IRC
[00:44:46] *** dve has quit IRC
[00:44:53] *** plitzenberger has quit IRC
[00:45:11] *** jaequery has quit IRC
[00:45:28] *** ankushnarula has joined #angularjs
[00:45:45] *** Shrooms has joined #angularjs
[00:46:52] *** yoshokatana has joined #angularjs
[00:46:55] *** ani_ has quit IRC
[00:47:14] *** tomzx is now known as tomzx`afk
[00:47:52] <icfantv> i'm seeing weirdness where | filter:search:strict is behaving identically to $filter('filter')(data, filterObj, false); any ideas?
[00:48:03] <icfantv> i thought strict was case sensitive
[00:48:16] <icfantv> according to this: https://docs.angularjs.org/api/ng/filter/filter
[00:48:17] *** lucasefe has quit IRC
[00:48:32] *** ngoyal has quit IRC
[00:48:34] *** danyim has quit IRC
[00:48:43] *** cdaringe has quit IRC
[00:48:59] *** ankushnarula has quit IRC
[00:49:17] *** htowngangsta has quit IRC
[00:49:21] *** cigarshark has quit IRC
[00:49:59] *** mercwithamouth has joined #angularjs
[00:50:50] *** bphogan is now known as bphogan_afk
[00:50:56] *** mary5030 has quit IRC
[00:51:00] <kirfu|work> I also can't get the scope I pass in from the directive.
[00:51:02] *** amargherio has quit IRC
[00:51:28] *** livingstn has joined #angularjs
[00:51:34] *** one_zero has joined #angularjs
[00:52:04] <JonathanNeal> I just stumbled upon the param magic in Angular, and it’s taking me a while to feel okay about it.
[00:52:14] *** cspra85 has quit IRC
[00:52:21] <BahamutWC|Work> param magic?
[00:53:02] <stirlingw> $routeParams ?
[00:53:10] <JonathanNeal> I don’t know what voodoo is going on, but it almost makes me think you’re doing something like String.prototype.toString.call(someFunction).match(/\([^)]+/)[1].split(/\s*,\s*/) to allow me to just magically use function ($http) and have it work.
[00:53:58] <JonathanNeal> I’m super new to Angular, just had a coworker explain to me how I can just stick a param in my callback with the right name and it Just Works™.
[00:54:23] *** Snugug has joined #angularjs
[00:54:26] *** night-owl2 has joined #angularjs
[00:54:32] *** bluesm has quit IRC
[00:54:35] *** night-owl2 has quit IRC
[00:54:52] *** Shrooms has quit IRC
[00:55:04] <JonathanNeal> And I was like, “But functions don’t expose the names of their params…” and I don’t know how Angular is doing it. Sorry for the sloppy code but that was my first suspicion.
[00:55:14] *** alekibango has joined #angularjs
[00:55:23] *** cdaringe has joined #angularjs
[00:55:30] *** RobinBAwesome has quit IRC
[00:55:35] <JonathanNeal> Oh dear. Do I sound like a crazy person right now?
[00:55:43] <BahamutWC|Work> answer is always yes :)
[00:55:57] <foobarbazbat> yeah you are certified Crazy™
[00:56:05] <BahamutWC|Work> ah, I see - you just learned about how angular does DI
[00:56:05] *** Willow_ has joined #angularjs
[00:56:08] *** tilgovi has joined #angularjs
[00:56:31] <JonathanNeal> DI?
[00:56:36] *** mewm has quit IRC
[00:56:36] <foobarbazbat> Dependency Injection
[00:56:42] <BahamutWC|Work> the string parsing is nifty in the development environment - when you minify, you need to inject it, whether by the array notation or through the injection notation
[00:56:51] *** goblorti_ has quit IRC
[00:57:29] <JonathanNeal> foobarbazbat: yes, where I just stick the param in the function I pass, and it just works, regardless of arity or order.
[00:57:50] *** lw has joined #angularjs
[00:58:00] <foobarbazbat> JonathanNeal: what's your background? you've never worked with a "framework" like this?
[00:58:14] <BahamutWC|Work> it’s a nice hack - ideally you’ll be minifying, so it wouldn’t even come into play
[00:58:20] <davek> VICTORY!
[00:59:02] <davek> All I had to do was buffer the readable stream, get the filesize, convert it back into a readable stream from the buffer and pipe it to Amazon completely eliminate the purpose of using streams in the first place!
[00:59:05] <kirfu|work> how do I get a '=scope' in my link function?
[00:59:22] *** lucasefe has joined #angularjs
[00:59:31] <JonathanNeal> foobarbazbat: My background is JavaScript. I have never worked with Angular, Ember, and maybe only touched objects in Backbone.
[00:59:33] <kirfu|work> when I do console.log(scope) it appears. when I do console.log(scope.options) it doesn't :(
[00:59:42] *** cdaringe has quit IRC
[00:59:50] <kirfu|work> it's scope: { options: "=" } btw.
[01:00:15] <JonathanNeal> foobarbazbat: so, dependency injection, is it parsing the function as a string to figure out what I need?
[01:00:16] *** lordkryss has quit IRC
[01:00:38] *** AlSquire has quit IRC
[01:00:38] <foobarbazbat> JonathanNeal: I'm the wrong guy to ask, I started learning it last week :-)
[01:01:26] *** goblortikus has joined #angularjs
[01:01:27] <oniijin> there was good article in this week's ngnewsletter about DI http://goo.gl/MEBveI
[01:01:43] *** fedenunez has quit IRC
[01:01:46] *** goblortikus has quit IRC
[01:01:53] *** enigmarm has quit IRC
[01:02:02] <JonathanNeal> Ah, so it is stringified.
[01:02:05] *** goblortikus has joined #angularjs
[01:02:05] *** stirlingw has quit IRC
[01:02:27] *** jchamberlain has joined #angularjs
[01:02:41] <foobarbazbat> oniijin: nice, thanks
[01:02:54] *** jaequery has joined #angularjs
[01:02:57] *** Ericx2x_ has joined #angularjs
[01:03:58] <robdubya> davek "success"
[01:04:09] *** whunt_ has quit IRC
[01:04:17] <robdubya> sigh, i can't wait for new DI
[01:04:34] *** Asiajey has quit IRC
[01:04:44] *** trave has quit IRC
[01:05:00] <robdubya> JonathanNeal you're probably better off than most in that sense (not having your brain poisoned by JQ)
[01:05:01] *** lordkryss has joined #angularjs
[01:05:10] *** ishi has quit IRC
[01:05:39] *** cdaringe has joined #angularjs
[01:05:54] <robdubya> kirfu|work probbaly just need to wrap a timeout around it
[01:06:08] <robdubya> that should allow you to kick it in the pants to make it work
[01:06:13] <oniijin> $timeout
[01:06:32] *** jamesbdev has quit IRC
[01:06:54] *** enigmarm has joined #angularjs
[01:07:00] <kirfu|work> robdubya: but is that really the right way? How do I know how long the timeout should be lol?
[01:07:00] <JonathanNeal> robdubya: I poisoned my brain working on YUI/AUI years ago, but I had the privledge of sitting next to Paul Bakaus in those days. He wrote the first version of jQuery UI.
[01:07:01] *** _jpfm has quit IRC
[01:07:04] *** Limix has joined #angularjs
[01:07:23] *** wilmoore has quit IRC
[01:07:24] *** livingstn has quit IRC
[01:07:27] <JonathanNeal> So, I am poisoned real good.
[01:07:34] <robdubya> kirfu|work $timeout(doShit,0) is usually a okay-ish solution to this sorts of things
[01:07:40] *** lw has quit IRC
[01:08:07] *** livingstn has joined #angularjs
[01:08:14] *** _jpfm has joined #angularjs
[01:08:22] *** winford has joined #angularjs
[01:08:40] *** snapwich has quit IRC
[01:09:12] <robdubya> JonathanNeal its stuff like how objects inherit in JS, for example. if you do javascript, you're used to that kind of thing. its people who've only done DOM manipulation that get befuddled by ng
[01:09:26] *** patrickarlt has quit IRC
[01:09:33] <kirfu|work> robdubya: im in a directive it's telling me $timeout is undefined.
[01:09:46] *** _jpfm has quit IRC
[01:09:49] *** BrianTheAss has joined #angularjs
[01:10:10] *** cdaringe has quit IRC
[01:10:33] <Foxandxss> inject it
[01:10:37] <JonathanNeal> robdubya: I’m not sold on Angular templating just yet. Somewhat unrelated, I do find it facinating that certain websites are whitelisted by Google and Facebook to parse the pages AFTER Angular has its way, so they are actually injecting their open graph tags with Angular.
[01:10:50] *** FunnyLookinHat has quit IRC
[01:11:23] *** chrisshattuck has quit IRC
[01:11:41] *** Ericx2x_ has quit IRC
[01:11:42] *** bkuberek_ has joined #angularjs
[01:11:42] *** jaequery has quit IRC
[01:11:48] *** Ansikt has joined #angularjs
[01:11:52] *** BrianTheAss has quit IRC
[01:11:53] *** alekibango has quit IRC
[01:11:57] *** enigmarm has quit IRC
[01:12:00] *** nickeddy has quit IRC
[01:12:03] <JonathanNeal> robdubya: I’m just being stupid. data attribute probably just magic frightens my “no no only mustachey bars should do this”
[01:12:31] <robdubya> haah
[01:13:19] *** btyne has joined #angularjs
[01:13:26] *** RobinBAwesome has joined #angularjs
[01:14:22] *** nitsujw has quit IRC
[01:14:29] *** nitsujw_ has joined #angularjs
[01:14:54] <robdubya> JonathanNeal one nice thing about the upcoming next version of angular (2.0) is that its pretty modular
[01:15:21] <robdubya> so if you prefer react or famous or straight up hbs, you could use that instead
[01:15:34] *** bkuberek has quit IRC
[01:15:34] *** bphogan_afk is now known as bphogan
[01:15:41] <davek> Whoa this is actually really performant... I can cut three variations of a high-res image (3000x2000) and upload them to S3 in ~2.5s.
[01:15:54] <JonathanNeal> Out of curiosity, has someone proposed un-angularizing the parsing part of DI? Like, proposed a spec for something like Function.getParams(fn) or Object.getFnParams(fn) that returns an array of params?
[01:15:54] <kirfu|work> found the answer! http://stackoverflow.com/questions/14552024/angularjs-logging-scope-property-in-directive-link-function-displays-undefined
[01:15:56] *** bkuberek_ has quit IRC
[01:16:15] <JonathanNeal> robdubya: again, super new, haven’t used those. I have used Ractive though and enjoyed it greatly.
[01:16:20] <davek> JonathanNeal, that's reflection.
[01:16:20] <kirfu|work> The docs make it seem like it should work all fine and dandy.
[01:16:23] *** bayousoft has joined #angularjs
[01:16:43] *** lucasefe has quit IRC
[01:16:52] *** goblortikus has quit IRC
[01:16:56] <JonathanNeal> davek: that’s reflection?
[01:17:08] <robdubya> that's telekinesis, holmes
[01:17:17] *** lnxmad has joined #angularjs
[01:17:21] *** chrisshattuck has joined #angularjs
[01:17:27] *** Reskp has quit IRC
[01:17:43] <robdubya> JonathanNeal which "parsing" are you talking about? walking the DOM for tags you mean?
[01:17:49] <davek> Coaxing parameters from a function object would be reflection. Don't get what you mean with relation to Angular's DI and parsing? Maybe I'm misunderstanding.
[01:17:51] *** Vinnyceptr has quit IRC
[01:17:56] *** JosephBergevin has joined #angularjs
[01:18:40] *** richiebkr has quit IRC
[01:18:51] *** goblortikus has joined #angularjs
[01:19:10] *** plysiu has quit IRC
[01:19:10] *** scottmizo has quit IRC
[01:19:23] *** jaequery has joined #angularjs
[01:20:08] *** btyne has quit IRC
[01:20:09] *** cdaringe has joined #angularjs
[01:20:18] *** mehlah_ is now known as mehlah
[01:20:47] *** heidi has quit IRC
[01:21:45] *** btyne has joined #angularjs
[01:22:34] *** ngoyal has joined #angularjs
[01:22:55] *** lilVaratep has quit IRC
[01:23:31] <JonathanNeal> I was referring to reflection.
[01:23:41] *** btyne has quit IRC
[01:23:44] *** waldenraines is now known as walden|afk
[01:23:49] *** jaequery has quit IRC
[01:23:56] *** JosephBergevin has quit IRC
[01:25:07] *** rho has quit IRC
[01:25:19] *** silentimp has quit IRC
[01:25:59] *** Ericx2x_ has joined #angularjs
[01:26:38] <robdubya> JonathanNeal for future ref https://github.com/angular/di.js/tree/master/docs
[01:26:41] <robdubya> new DI
[01:26:51] *** cdaringe has quit IRC
[01:27:04] *** lucasefe has joined #angularjs
[01:27:33] <ckboii89_> if i render a new template in a modal controller, how come i'm not able to use the functionality of the new template?
[01:27:42] *** mamarilmanson has joined #angularjs
[01:28:04] *** tfennelly has joined #angularjs
[01:28:12] <ckboii89_> using a new controller is giving me $scope issues, im just trying something out
[01:28:39] *** TorchDragon has joined #angularjs
[01:28:41] *** richiebkr has joined #angularjs
[01:29:31] <Siecje> I have a resolve on a route but the first time I visit the route it doesn't request the objects. https://dpaste.de/F27r
[01:29:42] <pswizzle> ckboii89_: what kind of scope issues are you running into?
[01:29:56] *** captain_morgan has joined #angularjs
[01:30:45] *** dawhite has quit IRC
[01:31:02] <ckboii89_> so im rendering 3 modals, once the user click an ok button
[01:31:05] *** cdaringe has joined #angularjs
[01:31:16] <ckboii89_> the first modal passes the scope to the second one
[01:31:25] <ckboii89_> and the second one doesn't pass to the third
[01:31:27] <pswizzle> Ah, what modal framework are you using?
[01:31:33] <ckboii89_> uh
[01:31:37] <ckboii89_> angular-ui?
[01:31:50] <oniijin> passing scopes?...
[01:31:56] *** tomh- has quit IRC
[01:31:56] <ckboii89_> the third is getting confused
[01:32:08] *** cthrax has quit IRC
[01:32:09] *** lw has joined #angularjs
[01:32:11] <ckboii89_> and things aren't really working because of some scope issues
[01:32:13] <pswizzle> Oh, $modal.open({ scope: ..., controller: ..., templateUrl: ...}) ?
[01:32:18] <ckboii89_> yes
[01:32:18] *** ipalaus has joined #angularjs
[01:32:23] *** moritzs has quit IRC
[01:32:33] *** subsonic has quit IRC
[01:33:07] *** TorchDragon has quit IRC
[01:33:07] <BahamutWC|Work> ui router question - are you allowed to have a state named an empty string?
[01:33:15] *** mkc has quit IRC
[01:33:22] <JonathanNeal> robdubya, davek: seems like a lot of extra work to cut my own reviver. https://gist.github.com/jonathantneal/43153e0920973404b1cb re: https://github.com/angular/angular.js/issues/4040
[01:33:33] *** heidi has joined #angularjs
[01:33:34] *** cotko has joined #angularjs
[01:33:40] <pswizzle> Ah, gotcha. And how are you passing scope along? (got a gist or example?)
[01:34:23] *** LuxuryMode has joined #angularjs
[01:34:54] *** chrisshattuck has quit IRC
[01:35:07] <davek> JonathanNeal, this is weird...
[01:35:17] *** nitsujw_ has quit IRC
[01:35:25] *** nitsujw has joined #angularjs
[01:35:26] <davek> Just use Date.parse when you need to convert to a date.
[01:35:38] *** cdaringe has quit IRC
[01:35:38] *** startupality has joined #angularjs
[01:36:03] <ckboii89_> yea sec
[01:36:07] <pswizzle> Awesome
[01:36:26] *** chrisshattuck has joined #angularjs
[01:36:30] *** tomzx`afk is now known as tomzx
[01:37:10] <ckboii89_> https://gist.github.com/gwong89/4883b62cca9b8b3b133f
[01:37:29] <ckboii89_> so
[01:37:35] *** rho has joined #angularjs
[01:37:48] <ckboii89_> openModal is the first modal that opens and uses modalinstanceappointmentcontroller
[01:37:51] <ckboii89_> pretty straight forward
[01:38:02] *** MattWelch has joined #angularjs
[01:38:28] *** mossface has joined #angularjs
[01:38:36] <ckboii89_> i have a second modal.open that uses modalinstancecheckin as the controller
[01:38:58] <ckboii89_> and that function is passed as the result into first modal
[01:39:15] <ckboii89_> whats not working is the validateCode function
[01:39:42] <ckboii89_> its a ng-submit from the html
[01:39:42] <ckboii89_> its not entering at all
[01:40:04] *** Ericx2x_ has quit IRC
[01:40:34] *** cdaringe has joined #angularjs
[01:42:42] *** crewshin has quit IRC
[01:43:20] <ckboii89_> any idea?
[01:43:40] *** Ericx2x_ has joined #angularjs
[01:43:56] *** captain_morgan has quit IRC
[01:44:06] <robdubya> JonathanNeal whats the use case?
[01:45:13] *** night-owl2 has joined #angularjs
[01:45:36] *** cdaringe has quit IRC
[01:46:31] *** heidi has quit IRC
[01:46:40] *** Ansikt has quit IRC
[01:46:42] *** Aerospark has quit IRC
[01:46:48] *** JimTheDev has joined #angularjs
[01:46:52] *** tk has left #angularjs
[01:47:07] *** jstroem has quit IRC
[01:47:19] <kirfu|work> How do I get the id of the element in a directive link function?
[01:47:23] *** mspier is now known as mspier_off
[01:47:45] *** lucasefe has quit IRC
[01:47:49] *** Aerospark has joined #angularjs
[01:48:25] *** visionary has quit IRC
[01:48:37] *** simb has joined #angularjs
[01:49:13] <kirfu|work> nm it was a different stupid mistake
[01:49:15] *** btyne has joined #angularjs
[01:49:32] <davek> kirfu, attr.id or el[0].id
[01:49:40] *** slainer6_ has quit IRC
[01:50:45] *** icfantv has quit IRC
[01:50:48] *** kernal has quit IRC
[01:51:26] *** btyne has quit IRC
[01:51:49] *** JimTheDev has quit IRC
[01:52:23] *** Aerospark has quit IRC
[01:53:14] *** JimTheDev has joined #angularjs
[01:53:24] *** cdaringe has joined #angularjs
[01:53:29] *** spencercarnage has quit IRC
[01:53:54] *** mspier_off is now known as mspier
[01:53:57] *** Ericx2x_ has quit IRC
[01:54:09] *** jobelenus has quit IRC
[01:56:01] *** mspier is now known as mspier_off
[01:56:04] *** lnxmad has quit IRC
[01:56:18] *** spencercarnage has joined #angularjs
[01:56:25] *** simsketch has joined #angularjs
[01:56:51] <Left_Turn> is this correct syntax with the array angular.module("foo", ["hello", "world"]);
[01:57:11] *** foobarbazbat has quit IRC
[01:57:12] <robdubya> yes
[01:57:37] <Left_Turn> robdubya, oh i see.. thanks
[01:57:52] *** mspier_off is now known as mspier
[01:58:04] *** heidi has joined #angularjs
[01:58:06] *** mfunkie has quit IRC
[01:58:41] *** mamarilmanson has quit IRC
[01:58:50] *** night-owl2 has quit IRC
[01:59:21] *** simb has quit IRC
[01:59:36] *** jharbaugh has quit IRC
[01:59:40] *** lordkryss has quit IRC
[02:00:08] *** svycka has joined #angularjs
[02:00:18] *** jharbaugh has joined #angularjs
[02:00:35] *** jamto11 has joined #angularjs
[02:00:35] *** cdaringe has quit IRC
[02:00:56] <JonathanNeal> robdubya: I have a json feed with stringified dates, typically these are transformed using a reviver.
[02:01:10] <JonathanNeal> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
[02:01:20] *** prbc has joined #angularjs
[02:01:35] <JonathanNeal> That’s what revivers are for, modifying the response during parse, it’s really handy, as the reviver is passed the key and the value.
[02:02:34] *** blueadept has quit IRC
[02:03:19] <robdubya> yeah, in that case, there's no real clean way to do it, at least inside $http.
[02:03:22] <JonathanNeal> I don’t need to know the structure or depth of the object. It just works™.
[02:03:48] <JonathanNeal> robdubya: thus my lament when stumbling upon #4040.
[02:03:52] *** richiebkr has quit IRC
[02:03:53] *** OddDuck has quit IRC
[02:04:15] *** jharbaug_ has joined #angularjs
[02:04:24] *** Ansikt has joined #angularjs
[02:04:27] *** jharbaugh has quit IRC
[02:04:31] <robdubya> my socket.io module is a clone of the $http module, looked into this sort of thing. would be quite unfun
[02:04:58] *** goblorti_ has joined #angularjs
[02:04:59] *** jamto11 has quit IRC
[02:05:22] *** whunt has joined #angularjs
[02:05:49] *** goblorti_ has quit IRC
[02:06:16] *** lw has quit IRC
[02:06:18] *** cdaringe has joined #angularjs
[02:06:29] *** goblorti_ has joined #angularjs
[02:07:12] <ckboii89_> is there a way to check if the current controllers scope is the parents or its own?
[02:07:22] *** JimTheDev has quit IRC
[02:08:00] *** thomasfuston has quit IRC
[02:08:06] *** goblortikus has quit IRC
[02:08:20] <davek> Uhhh, what?
[02:08:33] <blackkbot> you could with console.dir(this) but not programatically
[02:08:56] *** encrypt3d_fracti has joined #angularjs
[02:09:34] *** goblorti_ has quit IRC
[02:10:37] *** cdaringe has quit IRC
[02:11:16] *** mossface has quit IRC
[02:12:30] <davek> blackkbot, no you could programmatically as well it just doesn't make sense as phrased.
[02:12:40] *** bcole808 has quit IRC
[02:13:14] <blackkbot> oh
[02:13:21] *** mguillech has quit IRC
[02:13:34] *** encrypt3d_fracti has quit IRC
[02:13:51] *** mguillech has joined #angularjs
[02:14:13] *** quikilr has joined #angularjs
[02:14:33] *** e-dard_afk is now known as e-dard
[02:14:44] *** mven_ has joined #angularjs
[02:15:24] *** e-dard is now known as e-dard_afk
[02:15:34] <davek> JonathanNeal, the reason people are unfamiliar with revivers for that purpose is that data doesn't usually get transformed until it's necessary. You can always leverage $http's transformRequest/response functionality do massage data like this. Revivers are pretty much a hack-around for JSON's schemaless design.
[02:15:41] <ckboii89_> well
[02:15:41] <ckboii89_> im having scope issues
[02:15:42] <ckboii89_> for some reason my ng-submit which calls a method is not working
[02:16:28] <davek> I.e. unless you absolutely NEED typed, schema'd data in every case, it makes more sense simply to parse the properties you need as you need them. If you do in fact NEED that, use protobuf/avro/etc because you're working against yourself.
[02:16:56] <davek> ckboii89_ use ng-inspector.
[02:17:39] *** jchamberlain has quit IRC
[02:18:18] *** mguillech has quit IRC
[02:18:18] *** Reskp has joined #angularjs
[02:18:39] *** heidi has quit IRC
[02:19:54] <ckboii89_> what dose that do
[02:20:13] *** slainer68 has joined #angularjs
[02:20:37] *** Ericx2x_ has joined #angularjs
[02:20:46] *** Tidwell has quit IRC
[02:23:14] *** Reskp has quit IRC
[02:23:23] *** AngularUI has joined #angularjs
[02:23:23] <AngularUI> [bootstrap] janunezc opened pull request #2505: Fixing autoselect based on comments @ https://github.com/angular-ui/boot... (master...master) http://git.io/tb5IwQ
[02:23:23] *** AngularUI has left #angularjs
[02:24:01] *** jharbaug_ has quit IRC
[02:25:18] *** Ericx2x_ has quit IRC
[02:25:31] *** Reskp has joined #angularjs
[02:26:15] *** bencc has joined #angularjs
[02:26:22] *** {DV8} has joined #angularjs
[02:26:27] *** slainer68 has quit IRC
[02:26:32] *** Foxandxss has quit IRC
[02:26:40] <bencc> is it possible to use ES6 with angular 1.3 or do I need to wait for 2.0?
[02:26:46] *** nitsujw has quit IRC
[02:27:00] <blackkbot> es6 isn't out
[02:27:03] <blackkbot> is it
[02:27:16] *** fairchild has joined #angularjs
[02:27:21] *** phuh has quit IRC
[02:27:46] *** phuh has joined #angularjs
[02:28:06] *** hswolff has joined #angularjs
[02:28:21] <bencc> blackkbot: there is a compiler for es6 that angular 2.0 will use
[02:28:27] <bencc> so maybe it's possible to use it now
[02:29:22] *** fairchild is now known as fairchild_away
[02:29:40] *** fairchild_away is now known as fairchild
[02:29:44] *** danielpq_ has quit IRC
[02:29:53] *** heidi has joined #angularjs
[02:30:09] *** Reskp has quit IRC
[02:31:17] *** s3shs has joined #angularjs
[02:31:59] *** mrits has quit IRC
[02:33:20] <wafflejock_> pretty sure it's traceur
[02:33:25] <wafflejock_> I haven't poked at it yet though
[02:33:29] <wafflejock_> so not sure about details
[02:33:45] *** subnl2 has joined #angularjs
[02:33:46] *** mrits has joined #angularjs
[02:34:06] *** patrickarlt has joined #angularjs
[02:34:14] *** t_p has quit IRC
[02:34:18] *** Gambit- has quit IRC
[02:34:44] <bencc> wafflejock_: yes, traceur
[02:35:12] *** cdaringe has joined #angularjs
[02:35:17] *** Fwny has joined #angularjs
[02:35:38] *** rho_ has joined #angularjs
[02:35:39] *** rho_ has joined #angularjs
[02:36:27] *** rho has quit IRC
[02:36:27] *** bbrown has quit IRC
[02:36:34] *** AlexZanf has quit IRC
[02:36:57] *** lw has joined #angularjs
[02:37:00] <Fwny> Has anyone gotten AngularJS to play nice with Turbolinks? I have it working but it is leaking scopes on page changes.
[02:37:57] *** tfennelly has quit IRC
[02:38:03] *** KernelCurry has quit IRC
[02:38:05] *** Ansikt has quit IRC
[02:38:12] *** jharbaugh has joined #angularjs
[02:38:22] *** jpstone has joined #angularjs
[02:38:53] *** Destos has joined #angularjs
[02:39:46] *** cdaringe has quit IRC
[02:40:19] *** slainer68 has joined #angularjs
[02:40:50] *** jaequery has joined #angularjs
[02:41:00] *** krawek has quit IRC
[02:41:29] *** cthrax has joined #angularjs
[02:42:25] *** fairchild has quit IRC
[02:43:01] <robdubya> bencc yes, you can
[02:43:11] *** ngoyal has quit IRC
[02:43:26] <robdubya> though its not terribly fun and there's some wrapping / fiddling involved
[02:43:57] *** ckboii89_ has quit IRC
[02:44:09] *** tarkus has joined #angularjs
[02:44:51] *** AlexZanf has joined #angularjs
[02:44:53] *** jon___ has joined #angularjs
[02:45:23] *** waylon999 has quit IRC
[02:45:38] <jon___> Can anyone help with setting up angular-bootstrap?
[02:46:13] *** danyim has joined #angularjs
[02:46:16] *** helen__ has joined #angularjs
[02:46:20] *** btyne has joined #angularjs
[02:46:26] <jon___> I have installed the files using bower and imported the ui-bootstrap.js script in my index as well as the bootstrap.css
[02:46:43] <robdubya> jon___ you mean ui-boostrap?
[02:46:52] <robdubya> er, yes
[02:46:53] <robdubya> you do
[02:46:56] *** lw has quit IRC
[02:46:56] <robdubya> hurrdur
[02:47:19] <jon___> but I am getting an error from angular saying that it cannot find the ui.bootstrap module
[02:47:33] *** zwacky has quit IRC
[02:47:34] <robdubya> did you import it?
[02:47:34] <robdubya> eg
[02:47:39] *** Snugug has quit IRC
[02:47:45] <robdubya> angular.module('myapp', ['ui.bootstrap' ] )
[02:47:52] <jon___> yes,
[02:48:04] <jon___> I added the dependency in my app.js script
[02:48:06] <robdubya> before your app.js?
[02:48:15] <robdubya> order of files should be
[02:48:16] <robdubya> angular.js
[02:48:20] <robdubya> ui-bootstrap.js
[02:48:22] <robdubya> yourapp.js
[02:48:32] *** cdaringe has joined #angularjs
[02:48:34] <jon___> oh, let me check that
[02:48:42] *** Aerospark has joined #angularjs
[02:49:01] *** spencercarnage has quit IRC
[02:49:06] *** mspier is now known as mspier_off
[02:49:36] *** TorchDragon has joined #angularjs
[02:49:38] <jon___> Yes, the order is angular.js, angular-route.js, ui-bootstrap.js, app.js
[02:49:40] *** startupality_ has joined #angularjs
[02:49:44] *** startupality has quit IRC
[02:49:44] *** startupality_ is now known as startupality
[02:50:22] *** cdaringe_ has joined #angularjs
[02:50:26] *** spencercarnage has joined #angularjs
[02:50:31] *** danyim has quit IRC
[02:50:32] <robdubya> strange. post your app.js and your index.html somewhere
[02:50:38] *** phpxadmin has quit IRC
[02:50:55] <teslan> speaking of bootstrap, what's the official dosc page for use with ng?
[02:51:24] <robdubya> http://angular-ui.github.io/bootstrap/
[02:51:31] *** secondjeff has joined #angularjs
[02:51:31] *** nanoyak has quit IRC
[02:51:51] *** slainer6_ has joined #angularjs
[02:52:15] *** defaultdict has quit IRC
[02:52:21] *** InezK is now known as InezK_away
[02:53:05] *** Aerospark has quit IRC
[02:53:06] *** cdaringe has quit IRC
[02:53:26] *** recidive has quit IRC
[02:53:27] <jon___> Rob, where would be a good place for me to post my code?
[02:53:47] <teslan> thanks robdubya ... what i really need is a list of all the widgets with all the class names like (for example) <button class="btn btn-primary ...
[02:53:57] *** TorchDragon has quit IRC
[02:54:10] *** jstroem has joined #angularjs
[02:54:11] *** patrickarlt has quit IRC
[02:54:27] *** slainer68 has quit IRC
[02:54:46] *** spencercarnage has quit IRC
[02:54:54] <bencc> robdubya: so I'll wait for 2.0. thanks
[02:55:01] *** cdaringe_ has quit IRC
[02:55:14] *** greengriminal has quit IRC
[02:55:15] <robdubya> jon___ gist.github.com is fine
[02:56:08] *** slainer6_ has quit IRC
[02:56:22] *** greengriminal has joined #angularjs
[02:56:22] *** slainer68 has joined #angularjs
[02:56:37] *** vintik has quit IRC
[02:57:46] *** whitebook has quit IRC
[02:57:50] <jon___> app.js >> https://gist.github.com/anonymous/0889769572acb72a74de
[02:57:55] *** secondjeff has quit IRC
[02:58:01] *** jareddlc has quit IRC
[02:58:12] *** Destos has quit IRC
[02:58:59] *** blak422 has joined #angularjs
[02:59:01] <jon___> index.html >> https://gist.github.com/anonymous/f431cdaed79de9a5a2dd
[02:59:18] *** stevvooe has quit IRC
[02:59:42] *** Ansikt has joined #angularjs
[03:00:06] *** marr has quit IRC
[03:00:43] *** itsananderson_ has joined #angularjs
[03:00:50] *** ajph has quit IRC
[03:03:20] *** ajph has joined #angularjs
[03:03:20] <jon___> teslan, are you talking about using bootstrap with angular, or using ui-bootstrap?
[03:03:21] *** drej has quit IRC
[03:03:22] *** slainer68 has quit IRC
[03:03:22] *** drej has joined #angularjs
[03:03:23] *** mrits has quit IRC
[03:03:23] *** slainer68 has joined #angularjs
[03:03:24] *** oste has joined #angularjs
[03:03:37] *** btyne has quit IRC
[03:04:06] *** francisl has joined #angularjs
[03:04:08] <teslan> jon___ likely both ... i have been working on this holy-grail layout and now i am trying to use "bootstrap" ... so angular-ui seems to have fancy button bars, etc but a simple <button> seems to be decorated in bootstrap but one needs btn and btn-whatever classes and it is those "whatever" that i need inventory of
[03:04:09] *** itsananderson has quit IRC
[03:04:12] <robdubya> ah
[03:04:22] *** cdaringe has joined #angularjs
[03:04:31] <robdubya> jon___ if you're using ui-bs in modules other than app (probably) you need to import it there too
[03:05:01] *** mrits has joined #angularjs
[03:05:40] *** jstroem has quit IRC
[03:06:11] <jon___> okay, so in directives, controllers, etc.? Sorry, I'm completely new to angular in general so this is all a learning experience :)
[03:07:32] *** steffengy1 has quit IRC
[03:07:42] <robdubya> jon___ just in the modules
[03:07:42] *** slainer68 has quit IRC
[03:07:48] *** motionman has joined #angularjs
[03:07:52] <jon___> I'm basically working straight from and angular-seed set up
[03:07:57] <robdubya> so your app.controllers module, etc
[03:08:18] *** jstroem has joined #angularjs
[03:08:39] <robdubya> fwiw, the current "best practice" is typically to split your stuff up logically (say, app.contacts) vs app.controllers
[03:08:42] *** steffengy has joined #angularjs
[03:08:47] *** tfennelly has joined #angularjs
[03:08:48] *** cdaringe has quit IRC
[03:08:57] <robdubya> no big deal, just thought i'd mention (since -seed doesn't do that)
[03:09:08] *** Aerospark has joined #angularjs
[03:09:12] *** elxa has quit IRC
[03:09:27] *** elxa has joined #angularjs
[03:09:28] <jon___> you mean split your controllers into separate js files?
[03:09:43] *** cotko has quit IRC
[03:09:54] <jon___> or just split your controllers into sub-modules instead of having one big controller moduler
[03:10:01] <jon___> *module
[03:10:05] <robdubya> i would declare a module such as
[03:10:13] <robdubya> "app.contacts"
[03:10:20] *** startupality has quit IRC
[03:10:26] <robdubya> it might have a ContactListController and a ContactDetail
[03:10:34] <robdubya> and a contactView directive
[03:10:36] <robdubya> etc
[03:10:43] *** cotko has joined #angularjs
[03:11:29] *** LuxuryMode has quit IRC
[03:11:37] <jon___> right, so really I'm just using this to learn the ropes of Angular and create a mockup which will likely be used in a much larger app in the company I am working for
[03:11:43] *** spencercarnage has joined #angularjs
[03:12:14] <jon___> This is basic training for me. haha
[03:12:15] <robdubya> then don't fuck with it :D
[03:12:27] *** patrickarlt has joined #angularjs
[03:13:24] *** tfennelly has quit IRC
[03:13:40] *** mdedetrich has joined #angularjs
[03:14:06] <jon___> I guess I just want to make it as easy as possible for them to incorporate my project into their larger app by using angular and ui-bootstrap since that's what they are using
[03:14:20] *** mguillech has joined #angularjs
[03:14:58] <jon___> So, anyway, I just need to add the ui.boostrap dependency into the [ ] in where the module is declared>
[03:15:04] <robdubya> yep
[03:15:12] *** mrits has quit IRC
[03:15:27] <jon___> Okay, that doesn't sound too painful. Thanks for the help
[03:15:47] *** cdaringe has joined #angularjs
[03:16:04] <Elezium> robdubya, Sorry to interrupt... are you saying that instead of splitting thing like directives in a one, services in one files, and so on .. it's now "better" to split your apps by 'functioannality' (ie: contacts.js (like you mention) that contains all relatated to contact (controller, view) ?
[03:16:38] <robdubya> Elezium i reckon so, if you're looking to have a decently sized app
[03:16:50] <robdubya> they (angualr team) refer to it as "fractal" style
[03:16:55] *** patrickarlt has quit IRC
[03:17:13] <robdubya> https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub
[03:17:35] <Elezium> robdubya, k .. I don't think it wil have a decent size for now .. but I always try to follow the best practice
[03:17:53] <robdubya> in my world (b2b) i typically have a "core" type module, which has all the common logic for a single project
[03:18:06] <robdubya> services for the models, etc
[03:18:40] <robdubya> and then a module for each functionality/workflow/submodule/etc
[03:18:40] *** nemothekid has quit IRC
[03:18:53] *** mguillech has quit IRC
[03:19:04] <jon___> Okay rob, I tried that and still got the same error. Here is what I get:
[03:19:21] <teslan> grunt seems to be organized by file type folders, so where do i find info for tweaking it to find files of one type across functionality oriented folders?
[03:19:39] *** bc has joined #angularjs
[03:19:57] *** snurfery has quit IRC
[03:20:03] <jon___> Uncaught Error: [$injector:modulerr] Failed to instantiate module charts due to:
[03:20:11] <robdubya> teslan thats the idea behind the fractal structure
[03:20:26] <jon___> Error: [$injector:modulerr] Failed to instantiate module charts.filters due to:
[03:20:33] *** cdaringe has quit IRC
[03:20:35] <teslan> fractal?
[03:20:35] <bc> When I console.log($ngModel) I see that $viewValue has the ng-model="" I passed it. When I console.log($ngModel.$viewValue) it logs NaN. What's up?
[03:20:38] <robdubya> so you use the same folder structure, just in smaller pieces
[03:20:44] *** mrits has joined #angularjs
[03:20:49] *** rhp has joined #angularjs
[03:20:50] <robdubya> which should just mean tweaking your grunt patterns slightly
[03:21:00] <jon___> Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap due to:
[03:21:18] <jon___> Error: [$...<omitted>...1)
[03:21:45] *** kalehv has joined #angularjs
[03:21:59] *** uchuff has quit IRC
[03:22:25] *** chrisshattuck has quit IRC
[03:22:34] <robdubya> jon___ maybe just make a plunker - see the topic for a starter
[03:22:37] <bc> I'm guessing that it isn't updated yet.
[03:22:37] *** mtr_ has joined #angularjs
[03:22:50] <Elezium> robdubya, Thanks for the link.. Gotcha.. So I could have a directory containing all the "shared" stuff (filter, services, login (like in the exemple) and then having contacts, forum, blog, chat in each of their directory..
[03:23:01] *** alpha080 has joined #angularjs
[03:23:04] <robdubya> Elezium yessir
[03:23:05] *** cthrax has quit IRC
[03:23:14] <Elezium> robdubya, Thank sir!
[03:23:22] <robdubya> Elezium assuming you're using ui-router
[03:23:28] <robdubya> (or ng-router for that matter)
[03:23:33] <Elezium> I do use ui-router.
[03:23:54] <Elezium> Just got started, but I decided to start with it since most of the people recommend it.
[03:23:56] *** mlerq has joined #angularjs
[03:24:00] <robdubya> you can also then register all that section/module's states in the modules
[03:24:26] *** thepro4ever has joined #angularjs
[03:24:28] <robdubya> so the "root" module declares .state('app'
[03:24:40] *** zelrik has quit IRC
[03:24:44] <robdubya> and then each module is app.contacts / app.contacts.detail etc
[03:25:01] <kirfu|work> anyone use uiscroll for infinite scrolling from $http?
[03:25:05] *** s3shs has quit IRC
[03:25:09] *** recurrence has quit IRC
[03:25:18] <robdubya> so you can basically assemble different builds of your app just by including modules
[03:25:29] <Elezium> k.. so, let says, forum would be the parent view and "threadList" would be a child view (forum.threadList)
[03:25:52] *** cullum has left #angularjs
[03:26:22] *** Reskp has joined #angularjs
[03:26:24] *** alpha080 has quit IRC
[03:26:25] *** TimmyTones has quit IRC
[03:26:42] *** mindlace_ has quit IRC
[03:27:09] <robdubya> parent / child state, but yes
[03:27:23] <robdubya> (both of which would be children of yourapp
[03:27:23] *** phuh has quit IRC
[03:27:48] *** phuh has joined #angularjs
[03:27:56] *** mindlace has joined #angularjs
[03:28:01] *** bencc has quit IRC
[03:28:03] *** texinwien has quit IRC
[03:28:12] *** mossface has joined #angularjs
[03:28:32] *** mossface has quit IRC
[03:28:36] <Elezium> robdubya, ho yeah.. gotcha.. you're right
[03:28:57] <Elezium> Coffee time .. be back with a question for you expert! ;)
[03:30:27] *** danielpquinn has joined #angularjs
[03:30:47] *** bootsWitDaFur has joined #angularjs
[03:30:51] *** zelrik has joined #angularjs
[03:31:05] *** RobinBAwesome has quit IRC
[03:31:21] *** Reskp has quit IRC
[03:33:01] *** heidi has quit IRC
[03:33:49] *** rho_ has quit IRC
[03:34:47] *** danielpquinn has quit IRC
[03:34:51] *** Aerospark has quit IRC
[03:35:06] *** cdaringe has joined #angularjs
[03:37:53] *** chrisshattuck has joined #angularjs
[03:38:09] *** toastynerd has quit IRC
[03:39:23] *** Limix has quit IRC
[03:40:32] *** jharbaugh has quit IRC
[03:40:34] *** shinnya has quit IRC
[03:41:12] *** jharbaugh has joined #angularjs
[03:41:23] *** greengriminal has quit IRC
[03:41:28] *** frozenmaiden has joined #angularjs
[03:41:31] *** feelfine has quit IRC
[03:41:42] *** cdaringe has quit IRC
[03:41:46] *** cdaringe_ has joined #angularjs
[03:42:46] *** bkuberek has joined #angularjs
[03:43:00] *** Hackwar has joined #angularjs
[03:43:40] *** bkuberek_ has joined #angularjs
[03:44:54] *** dhcar is now known as dhcar_AFK
[03:45:19] <jon___> It was a fucking typo... fml..
[03:45:22] *** Hackwar1 has quit IRC
[03:45:36] *** jharbaugh has quit IRC
[03:45:53] <jon___> Thanks Rob, Turns out that I had missed a 't' in bootstrap in one of the modules
[03:46:05] *** cotko has quit IRC
[03:47:18] *** toastynerd has joined #angularjs
[03:47:22] *** bkuberek has quit IRC
[03:48:11] <robdubya> lel
[03:48:23] *** Silne30 has joined #angularjs
[03:48:33] *** cdaringe_ has quit IRC
[03:48:51] *** kalehv has quit IRC
[03:48:54] *** mindlace has quit IRC
[03:49:24] *** Left_Turn has quit IRC
[03:49:31] *** kalehv has joined #angularjs
[03:49:52] *** livingstn has quit IRC
[03:50:03] *** livingstn has joined #angularjs
[03:50:58] *** lklkmlkmkj has joined #angularjs
[03:51:48] *** svycka has quit IRC
[03:51:54] <mlerq> why the fuck is ngOptions code 500 lines long
[03:52:28] *** screamingbanshee has joined #angularjs
[03:52:28] *** lilVaratep has joined #angularjs
[03:52:50] *** mtr_ has quit IRC
[03:53:04] *** Silne30 has quit IRC
[03:53:49] *** kalehv has quit IRC
[03:53:50] *** tschundeee has joined #angularjs
[03:54:34] *** jharbaugh has joined #angularjs
[03:54:55] *** alpha080 has joined #angularjs
[03:55:29] <mlerq> is there a way to forward an attribute value from a directive to an element attribute
[03:55:45] <mlerq> like set the value of ng-repeat to a string passed to the directive
[03:55:47] *** dhcar_AFK is now known as dhcar
[03:56:01] *** cdaringe has joined #angularjs
[03:56:02] <mlerq> without javascript
[03:56:12] <mlerq> or at least without jquery
[03:56:40] *** lilVaratep has quit IRC
[03:56:47] <helen__> mlerq template can be a function
[03:56:50] *** avree has quit IRC
[03:56:53] *** jstroem has quit IRC
[03:57:03] *** vintik has joined #angularjs
[03:57:20] *** tschundeee has quit IRC
[03:57:40] <mlerq> so?
[03:58:02] <mlerq> can i access the directive attributes from this function?
[03:58:20] <helen__> so u can do something like template: (element, attrs) -> "<div ng-repeat='#{attrs.repeatString}'></div>"
[03:58:45] <JonathanNeal> So, “reflection” is when one parses out the parameters in a function?
[03:58:48] *** AlexZanf has quit IRC
[03:58:58] <mlerq> helen__: whats the # for?
[03:59:09] <helen__> coffee script heheh, was too lazy to write out javascript
[03:59:13] <mlerq> last i checked ng-repeat doesnt work with expressions
[03:59:42] <helen__> "<div ng-repeat='" + attrs.repeatString + "''></div>"
[03:59:43] <helen__> here :P
[03:59:48] <mlerq> ah
[04:00:19] <mlerq> that might work
[04:00:27] *** colock_ has quit IRC
[04:00:35] *** greengriminal has joined #angularjs
[04:00:46] *** cdaringe has quit IRC
[04:00:49] <mlerq> still, why the fuck doesnt ng-repeat accept expressions
[04:01:22] *** colock_ has joined #angularjs
[04:01:48] <helen__> JonathanNeal: u should provide some context.. :P but i would say reflection is more like being able to get info about functions/classes and stuff without having the code, im not sure what that has to do with javascript/angular tho xD
[04:02:04] *** mary5030 has joined #angularjs
[04:02:17] <mlerq> and what do i do when i have a fat template that i want to keep in another html file?
[04:02:36] <helen__> oh u mean with templateUrl ><
[04:02:53] <helen__> ur uh.. outta luck :D? u might want to create a smaller directive for the ng repeat part
[04:03:27] *** phuh has quit IRC
[04:03:29] <JonathanNeal> helen__: I’m referring to this http://toddmotto.com/angular-js-dependency-injection-annotation-process/##Annotation process
[04:03:56] *** phuh has joined #angularjs
[04:04:03] <Elezium> So... here's my question .. I have a controller (AuthControler) that call a Service (AuthService).. I want the service the return to the controller the result of the execution, but I'm not sure the best way to do it ..
[04:04:33] <Elezium> and I tink that using $scope in a service is not recommended...
[04:04:54] <mlerq> JonathanNeal: it just keeps a map of names to values and passes in the values when it calles you funcionts
[04:05:00] *** spencercarnage has quit IRC
[04:05:10] *** bmac has joined #angularjs
[04:05:21] *** phuh_ has joined #angularjs
[04:05:28] <helen__> JonathanNeal: yea thats not really anything to do with reflection :P
[04:05:29] <JonathanNeal> Yes, and what do you call doing that?
[04:05:36] <helen__> dependency injection
[04:05:38] *** TyrfingMjolnir has quit IRC
[04:05:55] *** listerine has quit IRC
[04:06:27] <mlerq> tbh though angularjs dependency injection is kinda useless if you have well organized code with file-level dependencies defined
[04:06:29] <helen__> Elezium: post code, cant read mind :D
[04:06:30] *** nitsujw has joined #angularjs
[04:06:38] <Elezium> http://plnkr.co/edit/StfBJz34mPO908ZNTW6z
[04:06:48] <Elezium> Voila ;) I was waiting for this Q .. All ready ;)
[04:06:52] *** phuh_ has quit IRC
[04:07:23] *** phuh_ has joined #angularjs
[04:07:37] *** greengriminal has quit IRC
[04:07:43] *** wallerdev has quit IRC
[04:07:45] <helen__> Elezium: are u talking about the $rootScope part or
[04:07:45] <helen__> ?
[04:07:49] *** simb has joined #angularjs
[04:08:11] *** phuh_ has quit IRC
[04:08:42] *** phuh_ has joined #angularjs
[04:08:42] *** phuh has quit IRC
[04:08:53] *** cdaringe has joined #angularjs
[04:08:58] *** JoshGlzBrk has joined #angularjs
[04:09:01] <mlerq> Elezium: u mean return the result of an async operation?
[04:09:03] <Elezium> helen__, Well.. in the AuthService, there is a method call Login .. it's a promise .. I'm wondering what is the best way to return the result of that method to the controller
[04:09:12] <Elezium> mlerq, correct.
[04:09:17] *** TimmyTones has joined #angularjs
[04:09:19] <mlerq> so just return a promise
[04:09:21] *** opus_ has left #angularjs
[04:09:22] <mlerq> or use a callback
[04:09:33] <Elezium> mlerq, this is where I'm a little confused ;)
[04:09:33] *** krawek has joined #angularjs
[04:09:35] *** hugorodrigues has quit IRC
[04:09:39] *** nanoyak has joined #angularjs
[04:09:57] *** cullum has joined #angularjs
[04:09:57] <mlerq> login(name, pass, successFunc, failFunc) { login; ifnotfail -> successFunc() }
[04:10:01] *** dhcar is now known as dhcar_AFK
[04:10:15] *** encrypt3d_fracti has joined #angularjs
[04:10:18] <mlerq> Elezium: is it a rest api?
[04:10:36] <Elezium> mlerq, it's the firebase simple login API
[04:10:42] <JonathanNeal> helen__: very well, dependency injection it is. And how does that work with uglification?
[04:10:44] <mlerq> use $http or $rest or restangular
[04:11:29] <mlerq> if its not a rest api and they dont provide their own api lib use $http
[04:11:32] <helen__> the firebase is fine ;p
[04:11:33] <mlerq> it gives u a promise
[04:11:49] <Elezium> yup, it does return a promise.
[04:12:02] <mlerq> ok so whats the problem?
[04:12:25] *** TheLostBrain has joined #angularjs
[04:12:28] <mlerq> you do promise.then(success, failure)
[04:12:37] <Elezium> mlerq, I'm just trying to understand how to pass the result of the promise to the controller, and if it is the good way to do it
[04:12:40] *** cullum has left #angularjs
[04:12:47] <robdubya> Elezium pretty much all those functions should return promises
[04:12:48] *** JoshGlzBrk has quit IRC
[04:12:59] <TheLostBrain> lol... this makes more sense. Accidentally joined #angular... kinda dead in there. ;)
[04:13:00] <mlerq> Elezium: just return the promise
[04:13:01] <robdubya> makes it very reasble
[04:13:09] <robdubya> *readable even
[04:13:24] *** house has quit IRC
[04:13:36] <robdubya> authService.login().then(onSuccessfulLogin,onLoginError)
[04:13:47] *** cdaringe has quit IRC
[04:13:47] <TheLostBrain> I can't remember for the life of me.... on a directive (restrict: 'A')... when setting the attribute of the directive itself to a value.. how does one reference that value in the scope definition of the directive?
[04:13:56] <mlerq> i prefer to use simple callbacks instead of promises because you still need callbacks for promises but you should just pick one way and stick to it
[04:13:59] <helen__> Elezium: u can do this login: function (user) { return auth.$login('password', user) }
[04:13:59] <TheLostBrain> so.. my-directive="someVal"
[04:14:17] <TheLostBrain> scope:{ myDirective : "="} doesn't seem to work..
[04:14:19] <robdubya> the angular way is promises
[04:14:25] *** cthrax has joined #angularjs
[04:14:30] <TheLostBrain> scope.myDirective is always undefined ...
[04:14:33] *** encrypt3d_fracti has quit IRC
[04:14:40] <mlerq> how is the angular way promises?
[04:14:56] *** bootsWitDaFur has quit IRC
[04:15:18] <robdubya> well, $http returns them, they are integrated into the $digest cycle, they work with resolve, etc
[04:15:24] <Elezium> helen__, and then, in my controller, I would check the return values and do what needed there?
[04:15:28] <dman777> http://dpaste.com/01YPB6B how can I safely multi line the template?
[04:15:32] <mlerq> so do callbacks..
[04:15:32] <TheLostBrain> other isolated scope items are fine..
[04:15:42] <mlerq> and not all angular services return promises
[04:15:42] <helen__> Elezium then do what rob said up there authService.login().then(onSuccessfulLogin,onLoginError)
[04:15:48] <mlerq> $rest for example
[04:16:00] <TheLostBrain> Is there some magic to it?
[04:16:05] <robdubya> $resource uses promises
[04:16:20] <mlerq> it returns a promise as result.$promise
[04:16:21] <robdubya> it just abstracts it away from you, but the $promise object is still there and being used
[04:16:29] <mlerq> but that is a recent addition
[04:16:33] <mlerq> and not the same as what $http does
[04:16:34] <robdubya> since its using $http...
[04:16:38] <robdubya> its using promises
[04:16:59] <mlerq> promises are just wrappers around callbacks
[04:17:04] <robdubya> sigh
[04:17:14] <robdubya> domenic.me/2012/10/14/youre-missing-the-point-of-promises/
[04:17:18] <mlerq> saying they use promises is also saying they use callbacks
[04:17:27] *** krawek has quit IRC
[04:17:44] <TheLostBrain> promises are awesome... once you get your head around them (just recently for me)... I like .then() :)
[04:17:49] <mlerq> there is no point in promises in javascript
[04:17:58] <robdubya> no, its not, and resource *returns* a value. it does not use a "callback" in any traditional sense of the word
[04:18:00] <supermassiv> wat
[04:18:05] *** bayousoft has quit IRC
[04:18:16] *** frozenmaiden has quit IRC
[04:18:19] <mlerq> robdubya: you pass extra callback parameters to resource calls
[04:18:23] *** bayousoft has joined #angularjs
[04:18:28] <mlerq> thats the official way that is used in the docs
[04:18:47] <Elezium> helen__, I'll try that.. so I'll check the the (OnSuccessfulLogin,onLoginError) in the controller .. I thought it was better to do that in the service...
[04:19:04] <Elezium> Thanks guys.. I'm a bit more confused, but I'll get it ;)
[04:19:21] <robdubya> $resource.query, for example, returns a value synchronously, and updates that value async, again, using a promise
[04:19:40] <mlerq> so?
[04:19:54] *** frozenmaiden has joined #angularjs
[04:20:02] <mlerq> it also allows you to pass callbacks to the initial call
[04:20:38] *** digia is now known as digia|away
[04:21:00] <helen__> Elezium: you aren't doing any extra work in the service with the data returned, so theres no point :P
[04:21:06] *** sysko has joined #angularjs
[04:21:24] <TheLostBrain> err... So does anyone have a clue how to access "test" from the isolated scope of this directive? my-attribute-directive="test"
[04:21:26] *** nanoyak has quit IRC
[04:21:56] *** simb has quit IRC
[04:22:02] *** frkout has joined #angularjs
[04:22:03] <TheLostBrain> so setting value to the attribute directive directly...and accessing in the directive
[04:22:05] <Elezium> helen__, yeah .. maybe this service is so small that I don't get the reason of "why" to use service... I would put that line directely in the controller ..
[04:22:12] <robdubya> mlerq you can use the callbacks (only with $resource) - but they aren't the "angular" way, because you can't then carry on with the promise chain.
[04:22:24] <mlerq> so?
[04:22:32] <mlerq> how does that make them not the 'angular' way?
[04:22:32] <Elezium> helen__, but I'm trying to stick with best pratice ... while learning, better learn it the right way.
[04:22:49] *** cthrax has quit IRC
[04:23:09] *** lw has joined #angularjs
[04:23:10] <robdubya> mlerq try doing a resolve in ui-router that way, for example
[04:23:21] <mlerq> ok?
[04:23:34] *** TimmyTones has quit IRC
[04:23:45] <helen__> Elezium: its fine to have the service :P u do some stuff before it to initialize firebase
[04:24:10] <TheLostBrain> Good video on promises in Angular form ng-conf 2014... https://www.youtube.com/watch?v=XcRdO5QVlqE
[04:24:16] <robdubya> mlerq if you don't see the "point" to promises, i don't think there's going to be any convincing you
[04:24:23] <robdubya> ibso?
[04:24:43] *** chrisbirk has joined #angularjs
[04:24:51] <mlerq> well you havent said anything about promises so far other than them being the 'angular way' whatever that means
[04:25:12] <Elezium> helen__, ho yeah.. you're right .. I'm seeting the ref and the url and such ..
[04:25:27] <Elezium> helen__, I guess I'm on the way good then! ;)
[04:25:36] <robdubya> it means that using promises, for async things, will make your life about 100% easier when you're writing angular code
[04:25:46] <mlerq> no it wont
[04:25:56] <helen__> Elezium yes :)
[04:25:56] <mlerq> there is zero benefit to using promises over callbacks
[04:26:05] <robdubya> alrighty.
[04:26:10] *** e-dard_afk is now known as e-dard
[04:26:23] <helen__> eh there are mlerq, but im too lazy to argue that :P
[04:26:29] <rhp> just back away slowly robdubya, and don't turn your back ;)
[04:26:39] <rhp> it'll make YOUR life about 100% easier haha
[04:26:42] <TheLostBrain> mlerq - you're code can be quite a bit clearer and more concise... watch that video
[04:26:48] <mlerq> well theres yet to be a single reason mentioned
[04:26:56] *** e-dard is now known as e-dard_afk
[04:26:57] <Elezium> cool... Yosemite open beta begin tomorrow
[04:27:08] <mlerq> if you are talking about nesting callbacks... there are btter options than promises
[04:27:14] *** Reskp has joined #angularjs
[04:27:21] *** simb has joined #angularjs
[04:28:16] <robdubya> shit, me, and the entire angular community, and the entire angular team, are doing it totally wrong then
[04:28:20] <robdubya> pack it up boys
[04:28:21] <TheLostBrain> I personally completely avoided promises until I watched that video... now I don't do callbacks at all. $q is good
[04:28:22] <robdubya> game over
[04:28:27] <mlerq> lol
[04:28:30] <robdubya> (and girls)
[04:28:41] <helen__> $q.all is one reason
[04:28:47] <mlerq> dont say that everyone thinks like you
[04:28:48] <helen__> but this discussion is soooo boring :P
[04:28:49] <mlerq> because they dont
[04:28:52] *** cariaso has joined #angularjs
[04:29:10] <mlerq> TheLostBrain: you cant use promises without callbacks
[04:29:27] *** jon___ has quit IRC
[04:29:30] <mlerq> so idk how you 'dont do callbacks at all;
[04:29:31] <TheLostBrain> mlerq: you mean under the hood?
[04:29:34] <mlerq> no
[04:29:35] *** bayousoft has quit IRC
[04:29:40] <mlerq> i mean when you do promise.then
[04:29:45] <mlerq> you need to pass in callbacks
[04:29:46] <mlerq> lol
[04:30:08] <mlerq> exactly the same way as if you used callbacks directly
[04:30:15] <mlerq> but now you have an extra layer of complexity
[04:30:16] <robdubya> no
[04:30:24] <SuperPhly> Why do my ng-href's keep having #/ at the end?
[04:30:25] <mlerq> yes
[04:30:34] <SuperPhly> once clicked
[04:30:58] <SuperPhly> do I need the location module?
[04:30:58] <TheLostBrain> lol
[04:31:13] *** danielpquinn has joined #angularjs
[04:31:26] <cariaso> "Error: $elem.perfectScrollbar is not a function." But this occurs inside a block of angular.module('perfect_scrollbar', []).directive('perfectScrollbar', … ; can anyone give me some idea of what I might be missing here.
[04:31:34] *** Reskp has quit IRC
[04:32:06] <sysko> Hello, hmm it does not seems possible to use the "keyword filtering" with 'associative array / Object"
[04:32:27] <TheLostBrain> I'm need to stop arguing this point because I'm still wet behind the ears w/ promises... but "I" like them.. :)
[04:32:29] *** MTGap has quit IRC
[04:32:52] <mlerq> yeah i find people that are brand new to promises like them most
[04:32:57] *** recidive has joined #angularjs
[04:33:01] <mlerq> because they dont really understand them
[04:33:16] <robdubya> good grief.
[04:33:40] <mlerq> ;)
[04:33:42] <helen__> pls stop im falling asleep D:
[04:34:01] <alphonse23_> Does anyone know of a weird bug involving ng-repeat, repeating multiple elements too many times. Specifically it repeates the n*n times
[04:34:12] *** MTGap has joined #angularjs
[04:34:21] <sysko> for example when i do :
[04:34:21] <sysko> <input type="text" ng-model="searchKeyAddMembers" placeholder="Search"/>
[04:34:21] <sysko> <li ng-repeat="jid, person in editMembersModal.allPeople | filter: searchKeyAddMembers">
[04:34:31] *** bmac has quit IRC
[04:34:48] <robdubya> sysko (key, value) in things
[04:35:48] *** danielpquinn has quit IRC
[04:36:30] *** tfennelly has joined #angularjs
[04:36:33] *** kalehv has joined #angularjs
[04:38:00] <TheLostBrain> Omg... why does google and SO spite me so... no answer to why scope:{myDirective: "="} is undefined for my-directive="some value"
[04:39:30] <robdubya> if you're hardcoding that in the dom you need to doublequote it
[04:39:43] <sysko> robdubya: thanks , but still | filter does not seems to work (though now i dont have error at all)
[04:39:49] *** chrisbirk has quit IRC
[04:40:01] *** pyornkrachzark has joined #angularjs
[04:40:09] <robdubya> actualllllllly i'm not sure you can use it with a k/v
[04:40:11] <sysko> after the documentation seems to say that "filter" works with Array, does it mean i have no way to make it work with Object ?
[04:40:14] *** teeray has joined #angularjs
[04:40:20] *** house has joined #angularjs
[04:40:50] <pyornkrachzark> Ayone have any idea how I would go about making ui-bootstrap progress bars animate when the page loads instead of on a change
[04:40:59] <dman777> http://dpaste.com/09B4G4D Here's my pretty directive :) Since I am using restriction E, how can I pass in value 'cpuResult' so I can make the directive reusable? so I can plug in other values besides sseHandler.broadcastStamp.cpuResult;...such as sseHandler.broadcastStamp.memoryResult?
[04:40:59] *** tfennelly has quit IRC
[04:41:03] <robdubya> sysko yep
[04:41:05] <TheLostBrain> robdubya... wow could it be that damn simple... just a freaking mistake in my testing.. lol let me check
[04:41:14] <robdubya> you could easily write a custom one though
[04:41:25] *** Nijikokun has quit IRC
[04:42:44] <sysko> robdubya: hmm ok let me try to write a custom filter
[04:42:47] <sysko> thanks :)
[04:43:34] *** fedenunez has joined #angularjs
[04:43:42] *** nagappan has quit IRC
[04:44:13] <robdubya> TheLostBrain that video is really good, can't believe i missed it
[04:44:17] *** nagappan has joined #angularjs
[04:44:24] *** francisl has quit IRC
[04:44:26] *** night-owl2 has joined #angularjs
[04:44:45] <TheLostBrain> robdubya - thank you for the damn double-quote... lol I feel like a moron...duh
[04:45:10] <TheLostBrain> Was staring me right in the face the whole time...
[04:45:27] *** tilgovi has quit IRC
[04:45:37] <TheLostBrain> when it didn't work I figured there must be some other way of referencing the directive name in the isolated scope..
[04:46:27] <dman777> http://dpaste.com/1B0927P hmm...how can I use the attribute checkType to resolve in such a manner as scope.countFrom = sseHandler.broadcastStamp[checkType];?
[04:46:32] <TheLostBrain> This video was also good (iirc)... https://www.youtube.com/watch?v=XcRdO5QVlqE
[04:46:50] *** Nijikokun has joined #angularjs
[04:47:05] *** RandomStranger- has joined #angularjs
[04:47:05] <dman777> I am using <count-down count-from="countDownTicker" check-type="cpuResult'></count-down>
[04:47:06] <TheLostBrain> That's just basic promises w/ $q... not so much a presentation as just raw coding
[04:47:11] <dman777> ah...wait...
[04:47:15] *** Hackwar1 has joined #angularjs
[04:47:24] *** RandomStranger has quit IRC
[04:47:47] <dman777> <count-down count-from="countDownTicker" check-type="cpuResult"></count-down>...no luck....checkType not defined
[04:49:12] *** quantax- has quit IRC
[04:49:33] *** Hackwar has quit IRC
[04:51:04] *** toastynerd has quit IRC
[04:51:21] *** simb has quit IRC
[04:51:30] *** TorchDragon has joined #angularjs
[04:52:26] *** Destos has joined #angularjs
[04:52:48] *** teeray has quit IRC
[04:53:01] *** Tidwell has joined #angularjs
[04:53:21] *** quantax- has joined #angularjs
[04:53:53] *** frozenmaiden has quit IRC
[04:54:19] *** mmitchel_ has quit IRC
[04:54:37] *** yoshokatana has quit IRC
[04:54:50] *** wilmoore has joined #angularjs
[04:54:53] *** jamesbdev has joined #angularjs
[04:54:58] *** night-owl2 has quit IRC
[04:55:23] *** mrits has quit IRC
[04:55:33] <jamesbdev> Hi guys, how can I use the $stateProvider.state method to setup a state that redirects to one state if a condition is true, and another if a condition is false
[04:55:34] *** toastynerd has joined #angularjs
[04:55:48] *** TorchDragon has quit IRC
[04:56:15] *** secondjeff has joined #angularjs
[04:56:46] *** mrits has joined #angularjs
[04:56:49] *** lklkmlkmkj has quit IRC
[04:56:50] <sysko> jamesbdev: i dont remember exactly, but I think there's a method you can put like "beforeEnter" something like that
[04:57:00] <sysko> which is executed before you enter in the given state
[04:57:41] <jamesbdev> thanks sysko
[04:57:42] *** zumba_addict has joined #angularjs
[04:57:46] *** frozenmaiden has joined #angularjs
[04:57:54] <sysko> i have used one day for a an aplication with a login state, when you were entering a state if was checking if you were logged in , and if not redirect you to the "log in screen" state
[04:58:12] *** tschundeee has joined #angularjs
[04:58:28] <jamesbdev> thats exactly what Im doing, lol
[04:58:51] *** elrabin has quit IRC
[04:58:52] <sysko> jamesbdev: in a way that's most common case for what you're describing ^^
[04:59:20] <pyornkrachzark> Anyone familiar with ui-bootstrap?
[04:59:37] <sysko> pyornkrachzark: hmm depends of your questions ^^
[05:00:21] <pyornkrachzark> Haha, well really I'm just trying to figure out how to make progress bars animate when the page loads
[05:01:05] *** secondjeff has quit IRC
[05:01:29] <sysko> pyornkrachzark: hmmm i remember seeing something like this in a github page
[05:01:33] *** house has quit IRC
[05:01:34] *** blak422 has quit IRC
[05:01:43] *** TheLostBrain has quit IRC
[05:02:18] *** tschundeee has quit IRC
[05:02:29] <pyornkrachzark> I was able to do it with bootstrap and jquery, but all you had to do was dynamically assign the "aria-valuenow" attribute
[05:03:08] *** hswolff has quit IRC
[05:03:17] *** helen__ has quit IRC
[05:03:21] *** chrisshattuck has quit IRC
[05:03:25] *** mrits has quit IRC
[05:03:32] <pyornkrachzark> But I need to make it work in angular, which seems to be a little more challenging.
[05:04:01] *** kalehv has quit IRC
[05:04:43] *** kalehv has joined #angularjs
[05:05:24] *** jchamberlain has joined #angularjs
[05:05:39] *** listerine has joined #angularjs
[05:06:03] <robdubya> pyornkrachzark you need 2 things
[05:06:08] <robdubya> a directive
[05:06:27] <robdubya> and service that gets injected into your directive
[05:06:51] *** house has joined #angularjs
[05:06:52] *** lucasefe has joined #angularjs
[05:06:56] *** phuh_ has quit IRC
[05:06:56] <robdubya> set up all the stuff in the service (%, color, etc)
[05:07:15] <robdubya> and then you can toggle it from anywhere by injecting your service
[05:07:21] *** phuh has joined #angularjs
[05:07:42] *** DerekPerkins has joined #angularjs
[05:08:09] *** mguillech has joined #angularjs
[05:08:19] <pyornkrachzark> Okay, so I set up the value attribute through a service instead of using data binding through the controller?
[05:08:45] *** patrickarlt has joined #angularjs
[05:09:13] <robdubya> depends on if its an app-wide thing or not, really
[05:09:23] *** kalehv has quit IRC
[05:09:27] *** kalehv_ has joined #angularjs
[05:09:35] <robdubya> the idea in either case is to control the directive from the outside
[05:09:47] <robdubya> rather than the directive calling out
[05:09:49] *** x4e2 has joined #angularjs
[05:09:52] <robdubya> if that makes sense at all
[05:10:43] *** patrickarlt has quit IRC
[05:12:04] *** house has quit IRC
[05:12:26] *** toastynerd has quit IRC
[05:12:33] *** jchamberlain has quit IRC
[05:12:37] *** mguillech has quit IRC
[05:13:10] <pyornkrachzark> I just need to research a little more into directives and services. You talked to me earlier about getting ui-bootstrap up and running (jon), but yeah, I'm a newb so I'm learning as I go
[05:13:32] *** chrisshattuck has joined #angularjs
[05:13:37] *** ckboii89 has joined #angularjs
[05:13:57] *** kalehv_ has quit IRC
[05:16:03] *** bphogan is now known as bphogan_afk
[05:16:13] <pyornkrachzark> Thanks for pointing me in the right direction though.
[05:16:57] *** fedenunez has quit IRC
[05:17:04] *** roobik has quit IRC
[05:19:01] *** RyanHirsch has quit IRC
[05:19:18] *** TimmyTones has joined #angularjs
[05:19:31] *** elux has joined #angularjs
[05:19:37] *** MikaAK has joined #angularjs
[05:19:51] *** dcherman has joined #angularjs
[05:20:33] *** mrits has joined #angularjs
[05:21:32] *** Ethix has quit IRC
[05:22:00] *** xavia has joined #angularjs
[05:22:33] *** bphogan_afk is now known as bphogan
[05:23:16] <JonathanNeal> What do you folks recommend to do when uglifying source code?
[05:23:22] *** livingstn has quit IRC
[05:23:32] *** bitfidget has joined #angularjs
[05:23:33] <boneskull> chew gum?
[05:23:36] <JonathanNeal> Is there a plan B to injecting dependencies?
[05:23:49] <boneskull> use array notation or $inject property
[05:24:04] *** TimmyTones has quit IRC
[05:24:14] *** willmarshall has joined #angularjs
[05:26:36] *** drej has quit IRC
[05:27:10] <willmarshall> Putting a property in a directive's scope, set to "=", should automatically bind to a same-named property on the parent scope, yes?
[05:27:27] *** recidive has quit IRC
[05:28:04] *** Reskp has joined #angularjs
[05:28:15] *** drej has joined #angularjs
[05:29:17] <cariaso> The code I've inherited includes angular.module('promethease', ['perfect_scrollbar']); in the .js and the .html contains <perfect-scrollbar foo="bar">thing</perfect-scrollbar> but the browser shows "$elem.perfectScrollbar is not a function" and a traceback. why?
[05:29:28] *** Snugug has joined #angularjs
[05:29:51] *** RyanHirsch has joined #angularjs
[05:29:58] *** roobik has joined #angularjs
[05:30:05] *** MTGap has quit IRC
[05:30:17] *** Nijikokun has quit IRC
[05:30:37] <JonathanNeal> boneskull: thanks, with your assistance I found https://docs.angularjs.org/tutorial/step_05#a-note-on-minification
[05:30:47] <JonathanNeal> much appreciated :D
[05:31:03] *** tfennelly has joined #angularjs
[05:32:05] *** danielpquinn has joined #angularjs
[05:32:18] *** Reskp has quit IRC
[05:34:09] *** jaequery has quit IRC
[05:34:17] *** roobik has quit IRC
[05:34:28] *** steffengy has quit IRC
[05:34:29] *** steffengy1 has joined #angularjs
[05:34:51] *** kalehv has joined #angularjs
[05:35:40] *** tfennelly has quit IRC
[05:36:19] *** danielpquinn has quit IRC
[05:36:32] *** RyanHirsch has quit IRC
[05:37:52] *** dhcar_AFK is now known as dhcar
[05:37:57] *** mdedetrich has quit IRC
[05:38:26] *** mdedetrich has joined #angularjs
[05:39:07] *** jaequery has joined #angularjs
[05:39:19] *** night-owl2 has joined #angularjs
[05:39:21] *** prbc has quit IRC
[05:39:25] *** night-owl2 has quit IRC
[05:39:36] *** kalehv has quit IRC
[05:41:00] *** gauravsaini03 has joined #angularjs
[05:41:40] <SuperPhly> are there any good resources for managing rather long and complex datasets in tables? I'm pulling some pretty hairy JSON down and need to do a bunch of grouping/segregating based on deep fields in the data.
[05:42:03] *** vintik has quit IRC
[05:42:41] *** frozenmaiden has left #angularjs
[05:42:49] <cariaso> The code I've inherited includes        angular.module('promethease', ['perfect_scrollbar']);  in the .js and the .html contains <perfect-scrollbar foo="bar">thing</perfect-scrollbar>   but the browser shows "$elem.perfectScrollbar is not a function" and a traceback. why?
[05:42:52] *** dhcar is now known as dhcar_AFK
[05:44:56] *** Ilyas has joined #angularjs
[05:45:26] *** blueadept has joined #angularjs
[05:46:08] *** dhcar_AFK is now known as dhcar
[05:47:03] *** bootsWitDaFur has joined #angularjs
[05:47:06] *** dhcar is now known as dhcar_AFK
[05:47:23] *** RyanHirsch has joined #angularjs
[05:47:29] *** dhcar_AFK is now known as dhcar
[05:47:30] *** roobik has joined #angularjs
[05:47:33] *** bootsWitDaFur has quit IRC
[05:48:00] *** francisl has joined #angularjs
[05:48:35] *** gunn has quit IRC
[05:49:13] *** Silne30 has joined #angularjs
[05:49:30] *** rchavik has joined #angularjs
[05:49:59] *** dhcar is now known as dhcar_AFK
[05:50:19] *** elux has quit IRC
[05:50:44] *** gunn has joined #angularjs
[05:51:00] *** johnkevinmbasco has joined #angularjs
[05:51:17] *** tomzx is now known as tomzx`afk
[05:53:34] *** Silne30 has quit IRC
[05:53:50] *** dhcar_AFK is now known as dhcar
[05:54:11] *** Nijikokun has joined #angularjs
[05:54:44] *** Destos has quit IRC
[05:56:02] *** thepro4ever has quit IRC
[05:56:25] *** toastynerd has joined #angularjs
[05:56:57] *** x4e2 has quit IRC
[05:58:00] *** Mouzi has joined #angularjs
[05:58:07] *** Siecje has quit IRC
[05:58:38] *** mrits has quit IRC
[05:58:40] *** wilmoore has quit IRC
[06:00:30] *** LuxuryMode has joined #angularjs
[06:00:52] *** blak422 has joined #angularjs
[06:00:59] *** nanoyak has joined #angularjs
[06:02:07] *** francisl has quit IRC
[06:02:20] *** Jae has joined #angularjs
[06:03:58] *** InezK_away is now known as InezK
[06:04:57] *** Shrooms has joined #angularjs
[06:05:31] *** billcd has joined #angularjs
[06:06:57] *** phuh has quit IRC
[06:07:15] *** TyrfingMjolnir has joined #angularjs
[06:07:22] *** phuh has joined #angularjs
[06:07:27] *** iateadonut has quit IRC
[06:07:55] *** mnewton has joined #angularjs
[06:08:12] *** whunt has quit IRC
[06:08:13] *** dev_ has joined #angularjs
[06:08:22] *** mindlace has joined #angularjs
[06:08:28] <dev_> Hey guys how can i use $state.go in a directive?
[06:09:11] <mdedetrich> dev_: you are doing the wrong way
[06:09:19] *** billcd has quit IRC
[06:09:31] <mdedetrich> dev_: your directive should accept a function as an argument, and that function does a $state.go
[06:09:44] *** mindlace has quit IRC
[06:09:58] <pswizzle> SuperPhly: underscore?
[06:10:15] *** mrits has joined #angularjs
[06:10:16] <SuperPhly> pswizzle: i'm looking at ng-table (https://github.com/esvit/ng-table)
[06:10:22] <mdedetrich> directives shouldn't be in control of redirecting your website to a differnt location
[06:10:47] <dev_> Yes, the state.go is inside the function in link: function ...
[06:10:52] <dev_> But I get an error
[06:11:10] <mdedetrich> dev_: no I mean, you should not be doing any state transitions in there at all!
[06:11:25] *** chrisbirk has joined #angularjs
[06:11:26] <mdedetrich> dev_: your state.go should be in a controller (and I don't mean the directive controller)
[06:12:04] <mdedetrich> as an example, ng-click is a directive, it doesn't do any directing
[06:12:12] <mdedetrich> if you want to redirect with ng-click, you would do
[06:12:19] <mdedetrich> ng-click="gotoSomewhere()"
[06:12:29] <pswizzle> Oh nice, you mean in terms of managing visual tables. Yeah, this looks solid. I can't say I've dug too far into table/row sorting
[06:12:39] <mdedetrich> and that gotoSomewhere will be in your controller, which will have a $state.go
[06:12:45] <robdubya> SuperPhly https://www.youtube.com/watch?v=L4FJ_kuO9Rc
[06:12:57] <dev_> :(, the directive detect a click on a div and I need that when the div is clicked goes to a another "template"
[06:13:26] <mdedetrich> dev_: write, so your directive should call a function when it detects a click
[06:13:27] <dev_> Ok, let me try
[06:13:28] *** SomeKittens has quit IRC
[06:13:41] <mdedetrich> that "going to another template" should be done in a controller, not a directive
[06:16:47] *** patrickarlt has joined #angularjs
[06:16:56] *** quantax- has quit IRC
[06:17:24] *** johnkevinmbasco has quit IRC
[06:20:22] *** mrits has quit IRC
[06:20:31] *** Alina-malina has quit IRC
[06:21:10] <SuperPhly> robdubya: thanks that's pretty helpful actually.
[06:22:50] *** mrits has joined #angularjs
[06:22:58] *** JosephBergevin has joined #angularjs
[06:23:00] *** Tidwell has quit IRC
[06:25:25] *** nemothekid has joined #angularjs
[06:26:30] *** faddah_ has joined #angularjs
[06:26:36] *** faddah has quit IRC
[06:26:36] *** faddah_ is now known as faddah
[06:27:50] <dev_> Thanks mdedetrich
[06:28:24] *** dutis has joined #angularjs
[06:28:30] *** sneakertack has joined #angularjs
[06:28:32] <mdedetrich> dev_:np
[06:28:34] *** chrisbirk has quit IRC
[06:29:03] *** dev_ has quit IRC
[06:29:04] *** Reskp has joined #angularjs
[06:29:10] *** kalehv has joined #angularjs
[06:29:26] *** AlexZanf has joined #angularjs
[06:29:52] *** caitp has quit IRC
[06:30:47] *** caitp has joined #angularjs
[06:31:22] *** Alina-malina has joined #angularjs
[06:31:45] *** {DV8} has quit IRC
[06:32:45] *** danielpquinn has joined #angularjs
[06:33:00] *** knownasilya has quit IRC
[06:33:00] *** Willow_ has quit IRC
[06:33:19] *** Reskp has quit IRC
[06:33:23] *** kalehv has quit IRC
[06:33:34] *** Willow_ has joined #angularjs
[06:35:03] *** DerekPerkins_ has joined #angularjs
[06:35:09] *** jaequery has quit IRC
[06:35:14] *** flocca-bis has joined #angularjs
[06:35:23] *** jamesbdev has quit IRC
[06:35:35] *** Alina-malina has quit IRC
[06:36:18] *** jshultz has quit IRC
[06:36:35] *** flocca has quit IRC
[06:36:36] *** DerekPerkins has quit IRC
[06:37:11] *** Aliks_ has quit IRC
[06:37:12] *** danielpquinn has quit IRC
[06:37:26] *** mrits has quit IRC
[06:37:35] *** e-dard_afk is now known as e-dard
[06:37:49] *** zumba_addict has quit IRC
[06:38:03] *** Willow_ has quit IRC
[06:38:23] *** e-dard is now known as e-dard_afk
[06:38:36] *** armdale has quit IRC
[06:39:13] *** Alina-malina has joined #angularjs
[06:40:23] *** mven_ has quit IRC
[06:41:11] *** cyen_ has joined #angularjs
[06:42:04] *** mkoskar has joined #angularjs
[06:42:15] *** mven_ has joined #angularjs
[06:42:38] *** fairchild has joined #angularjs
[06:42:56] *** fairchild is now known as fairchild_away
[06:43:34] *** fairchild_away is now known as fairchild
[06:44:49] *** fairchild is now known as fairchild_away
[06:45:04] *** fairchild_away is now known as fairchild
[06:45:39] *** MikaAK has quit IRC
[06:45:52] *** mehlah has quit IRC
[06:46:19] *** Ansikt has quit IRC
[06:47:08] *** Asiajey has joined #angularjs
[06:47:08] *** Asiajey has joined #angularjs
[06:47:22] *** johnkevinmbasco has joined #angularjs
[06:47:32] *** cschneid has quit IRC
[06:48:04] *** Aliks_ has joined #angularjs
[06:48:08] *** Gambit- has joined #angularjs
[06:50:41] *** Aliks_ has quit IRC
[06:51:12] *** cschneid has joined #angularjs
[06:52:50] *** TorchDragon has joined #angularjs
[06:52:50] *** fairchild has quit IRC
[06:54:17] *** subnl2 has quit IRC
[06:55:19] *** instence_ has quit IRC
[06:55:28] *** instence has joined #angularjs
[06:55:39] *** blak422 has quit IRC
[06:56:05] *** hychen has joined #angularjs
[06:56:07] *** secondjeff has joined #angularjs
[06:56:39] <SuperPhly> anyone here use ng-table?
[06:56:50] <SuperPhly> I'm curious what the data: value is
[06:56:54] *** jamesbdev has joined #angularjs
[06:56:55] *** fairchild has joined #angularjs
[06:57:19] *** TorchDragon has quit IRC
[06:58:12] *** house has joined #angularjs
[06:58:41] *** mven_ has joined #angularjs
[07:00:51] *** mkoskar has quit IRC
[07:00:52] *** fairchild has quit IRC
[07:01:41] *** mkoskar has joined #angularjs
[07:01:44] *** bencc has joined #angularjs
[07:01:54] *** dhcar is now known as dhcar_AFK
[07:02:41] *** secondjeff has quit IRC
[07:02:52] *** JoshGlzBrk has joined #angularjs
[07:04:00] *** armdale has joined #angularjs
[07:04:49] *** JesseEichar_ has joined #angularjs
[07:05:08] *** fairchild has joined #angularjs
[07:05:23] *** fairchild is now known as fairchild_away
[07:05:26] *** fairchild_away is now known as fairchild
[07:05:29] *** optikalmouse has quit IRC
[07:05:50] *** silentimp has joined #angularjs
[07:06:06] *** oktapodi has joined #angularjs
[07:06:58] *** phuh has quit IRC
[07:06:58] *** JosephBergevin has quit IRC
[07:07:23] *** phuh has joined #angularjs
[07:07:52] *** oktapodi has quit IRC
[07:08:12] *** oktapodi has joined #angularjs
[07:09:56] *** fairchild has quit IRC
[07:10:01] *** splishy has joined #angularjs
[07:10:01] *** mguillech has joined #angularjs
[07:10:21] *** Sauvin has joined #angularjs
[07:10:24] <splishy> Anybody around who knows about UI-Router?
[07:10:27] *** chrisshattuck has quit IRC
[07:10:58] <splishy> I'm having an issue all of the sudden where one of my views isn't loading. It's sibling loads fine, and a GET request for the template happens fine, but the view isn't being populated.
[07:11:08] <splishy> *Its
[07:11:29] *** DeanH has quit IRC
[07:11:52] *** JesseEichar_ has quit IRC
[07:13:07] *** JosephBergevin has joined #angularjs
[07:13:47] *** fairchild has joined #angularjs
[07:14:10] *** Ilyas_ has joined #angularjs
[07:14:37] *** fairchild has quit IRC
[07:14:40] *** nitsujw has quit IRC
[07:14:53] *** encrypt3d_fracti has joined #angularjs
[07:14:59] *** mguillech has quit IRC
[07:15:09] *** JesseEichar_ has joined #angularjs
[07:15:15] *** nitsujw has joined #angularjs
[07:15:22] *** caitp has quit IRC
[07:15:56] *** zanea is now known as zanea|away
[07:16:23] *** fairchild has joined #angularjs
[07:16:50] *** recurrence has joined #angularjs
[07:17:03] *** syed99 has joined #angularjs
[07:17:23] *** Ilyas has quit IRC
[07:17:36] *** mkoskar has quit IRC
[07:17:57] *** mkoskar has joined #angularjs
[07:18:53] *** chrisshattuck has joined #angularjs
[07:19:03] *** encrypt3d_fracti has quit IRC
[07:19:11] *** mkoskar has quit IRC
[07:19:32] *** bkuberek has joined #angularjs
[07:19:40] *** fairchild is now known as fairchild_away
[07:19:44] *** johnkevi_ has joined #angularjs
[07:19:47] *** johnkevinmbasco has quit IRC
[07:20:18] *** fairchild_away has quit IRC
[07:21:02] *** xavia has quit IRC
[07:21:21] <cyen_> How would I use a directive to gather information about a random element that has been clicked?
[07:21:44] *** bkuberek has quit IRC
[07:22:15] *** dazs has joined #angularjs
[07:22:18] *** fairchild has joined #angularjs
[07:23:07] *** bkuberek_ has quit IRC
[07:23:23] *** kalehv has joined #angularjs
[07:23:32] *** splishy has quit IRC
[07:24:12] *** johnkevinmbasco has joined #angularjs
[07:24:12] *** fairchild is now known as fairchild_away
[07:24:27] *** JosephBergevin has quit IRC
[07:24:34] *** johnkevi_ has quit IRC
[07:24:47] *** nielsle has quit IRC
[07:24:48] *** fairchild_away has quit IRC
[07:26:25] *** johnkevi_ has joined #angularjs
[07:26:31] *** damoncasale has quit IRC
[07:27:22] *** fairchild has joined #angularjs
[07:27:49] *** kalehv has quit IRC
[07:28:05] *** nitsujw has quit IRC
[07:28:09] *** msarta has joined #angularjs
[07:28:12] *** mary5030 has quit IRC
[07:28:28] *** fairchild is now known as fairchild_away
[07:28:29] *** sigurding has joined #angularjs
[07:28:37] *** nanoyak has quit IRC
[07:28:48] *** fairchild_away is now known as fairchild
[07:29:04] *** johnkevinmbasco has quit IRC
[07:29:23] *** nitsujw has joined #angularjs
[07:29:37] *** Reskp has joined #angularjs
[07:30:06] *** nitsujw has quit IRC
[07:31:30] *** dhcar_AFK is now known as dhcar
[07:31:40] *** fairchild is now known as fairchild_away
[07:31:46] *** fairchild_away is now known as fairchild
[07:32:24] <SuperPhly> Ugh, so after 2 or 3 hours of trying to get this damn thing to work, I realize there's a very very obvious bug on the basic example with ng-table
[07:32:37] *** fairuz has joined #angularjs
[07:32:40] *** patrickarlt has quit IRC
[07:32:44] *** wilmoore has joined #angularjs
[07:32:48] <SuperPhly> http://plnkr.co/11tpJz
[07:32:53] *** DeanH has joined #angularjs
[07:33:10] <SuperPhly> If you scroll to the bottom, it has some pagination but it doesn't work.
[07:33:31] *** danielpquinn has joined #angularjs
[07:34:27] *** Reskp has quit IRC
[07:34:30] *** cctom has joined #angularjs
[07:35:01] *** johnkevi_ has quit IRC
[07:35:41] *** johnkevinmbasco has joined #angularjs
[07:35:54] *** MJD has quit IRC
[07:36:21] *** Alina-malina has quit IRC
[07:36:24] *** kppullin has quit IRC
[07:36:33] *** Alina-malina has joined #angularjs
[07:36:34] *** Alina-malina has joined #angularjs
[07:36:34] *** recurrence has quit IRC
[07:37:36] *** Alina-malina has quit IRC
[07:37:54] *** MJD has joined #angularjs
[07:38:14] *** danielpquinn has quit IRC
[07:38:26] *** mrogne has quit IRC
[07:38:36] *** mrogne has joined #angularjs
[07:38:42] *** kppullin has joined #angularjs
[07:39:32] *** arussel has joined #angularjs
[07:39:38] *** snurfery has joined #angularjs
[07:40:23] *** dcherman has quit IRC
[07:40:35] *** alpha080 has quit IRC
[07:40:49] *** Alina-malina has joined #angularjs
[07:40:56] *** Trow has joined #angularjs
[07:41:14] <arussel> I'm using grunt to manage my project and 'grunt serve' to start the server and test it. I'd like 'grunt serve' to open the url 'foo.com:9001' instead of 127.0.0.1:9001
[07:41:59] *** bphogan is now known as bphogan_afk
[07:42:04] <arussel> I've tried to change connect.options.hostname and connect.options.open, but none got the desired effect
[07:42:04] *** parth_ has joined #angularjs
[07:42:13] <arussel> any idea how to get this to work ?
[07:42:13] *** Joshee has joined #angularjs
[07:42:20] *** mnewton has quit IRC
[07:42:21] *** alpha080 has joined #angularjs
[07:42:30] *** mven_ has quit IRC
[07:42:46] *** patrickarlt has joined #angularjs
[07:44:02] *** ggrzybek has joined #angularjs
[07:44:02] *** fairchild has quit IRC
[07:44:19] *** MattWelch has quit IRC
[07:44:57] *** parth___ has joined #angularjs
[07:45:19] *** Ilyas_ has quit IRC
[07:47:05] *** patrickarlt has quit IRC
[07:47:27] *** parth_ has quit IRC
[07:48:35] *** fairchild has joined #angularjs
[07:49:23] *** james has joined #angularjs
[07:49:26] *** Silne30 has joined #angularjs
[07:49:27] *** james has quit IRC
[07:50:22] *** dhcar is now known as dhcar_AFK
[07:51:30] *** lite_ has joined #angularjs
[07:52:21] *** Reskp has joined #angularjs
[07:52:28] *** scmx has joined #angularjs
[07:52:48] <parth___> how to upload file using angularjs and springmvc with hibernate?
[07:53:39] <JonathanNeal> Hello!
[07:53:49] *** Silne30 has quit IRC
[07:54:38] *** blueadept has quit IRC
[07:56:00] *** boneskull has quit IRC
[07:57:15] *** fairchild has quit IRC
[07:57:46] *** frkout_ has joined #angularjs
[07:57:58] *** parth___ has quit IRC
[07:58:11] *** fairchild has joined #angularjs
[07:58:39] *** boneskull has joined #angularjs
[07:59:23] *** mdedetrich has quit IRC
[08:00:07] *** Ab_ has joined #angularjs
[08:00:17] *** fairchild has joined #angularjs
[08:00:31] *** Ab_ is now known as Guest21423
[08:01:19] *** frkout has quit IRC
[08:01:53] <Guest21423> Hi guys..I've a question. I need to build an invoicing system with Angular and the users should be able to checkout with Paypal or Stripe or any other payment gateway. With Paypal, the user will be redirect to Paypal and the user will pay there and be redirected to a callback URL with the appropriate success or failure message..how do I handle this with Angular?
[08:02:39] *** negval has joined #angularjs
[08:03:16] *** bencc has quit IRC
[08:04:47] *** johnkevinmbasco has quit IRC
[08:04:59] *** Reskp has quit IRC
[08:04:59] *** pogbobo has joined #angularjs
[08:05:10] *** jstroem has joined #angularjs
[08:05:46] <pogbobo> anyone notice the busted Todo snippet on the angularjs home page ?
[08:06:07] *** mikronaz has joined #angularjs
[08:06:14] *** asdofindia has quit IRC
[08:06:15] <pogbobo> http://jsfiddle.net/api/post/library/pure/
[08:06:32] *** atomical has quit IRC
[08:06:37] <pogbobo> http://jsfiddle.net/k6uB3/
[08:06:44] <pogbobo> ?
[08:06:54] *** lw has quit IRC
[08:06:56] *** johnkevinmbasco has joined #angularjs
[08:06:59] *** phuh has quit IRC
[08:07:24] *** phuh has joined #angularjs
[08:07:49] <Guest21423> whats busted?
[08:07:50] *** Guest21423 has quit IRC
[08:08:14] <pogbobo> look at the jsfiddle
[08:08:23] <pogbobo> thats straight from the Todo snippet
[08:08:45] *** listerine has quit IRC
[08:09:43] *** Vinnyceptr has joined #angularjs
[08:09:54] *** bencc has joined #angularjs
[08:09:58] *** bencc has left #angularjs
[08:10:28] *** DerekPerkins_ has quit IRC
[08:10:53] <jamesbdev> Hi guys, I want to show my error box only if the "errors" variable is set, I tried ng-visible="errors" but that always shows
[08:10:57] *** mguillech has joined #angularjs
[08:11:02] *** night-owl2 has joined #angularjs
[08:11:44] *** johnkevi_ has joined #angularjs
[08:12:27] *** johnkevinmbasco has quit IRC
[08:12:29] <ckuehl> jamesbdecng-show or ng-if
[08:12:40] <ckuehl> wow i messed that up haha
[08:12:46] <jamesbdev> ckuehl: thanks so much mate
[08:12:48] <Elezium> indeed ;)
[08:12:58] <ckuehl> haha on phone
[08:14:58] *** illume has joined #angularjs
[08:15:10] *** mguillech has quit IRC
[08:15:27] *** svycka has joined #angularjs
[08:15:57] <pogbobo> any idea whats wrong with the todo example ?
[08:16:16] *** AngularNb has joined #angularjs
[08:17:22] *** night-owl2 has quit IRC
[08:17:26] *** fairchild is now known as fairchild_away
[08:18:21] *** fairchild_away has quit IRC
[08:18:43] *** mcalmels has joined #angularjs
[08:18:53] *** oste has quit IRC
[08:19:17] *** fairchild has joined #angularjs
[08:19:53] *** johnkevi_ has quit IRC
[08:20:11] *** johnkevinmbasco has joined #angularjs
[08:20:28] *** pogbobo has quit IRC
[08:20:32] *** Click66 has joined #angularjs
[08:20:51] *** armdale has quit IRC
[08:20:54] *** nielsle has joined #angularjs
[08:21:02] *** boneskull has quit IRC
[08:22:22] *** Ilyas has joined #angularjs
[08:22:51] *** Ilyas has quit IRC
[08:23:50] *** captain_morgan has joined #angularjs
[08:24:06] *** mykz_ has joined #angularjs
[08:24:50] *** DerekPerkins has joined #angularjs
[08:25:27] *** fairchild is now known as fairchild_away
[08:25:28] *** fairchild_away is now known as fairchild
[08:26:18] *** scmx has quit IRC
[08:26:21] *** paullo has joined #angularjs
[08:26:22] *** vintik has joined #angularjs
[08:26:38] <paullo> hiiiii
[08:26:55] *** paullo has quit IRC
[08:26:57] *** fairchild has quit IRC
[08:27:38] *** davedev24_ has quit IRC
[08:27:41] *** fairchild has joined #angularjs
[08:28:02] *** davedev24_ has joined #angularjs
[08:29:55] *** DuelShark has joined #angularjs
[08:30:03] *** senayar has joined #angularjs
[08:30:54] *** JoshGlzBrk has quit IRC
[08:32:06] *** mary5030 has joined #angularjs
[08:32:48] *** willmarshall has quit IRC
[08:32:51] <chovy> hello
[08:32:56] *** fairchild has quit IRC
[08:33:01] *** Reite has joined #angularjs
[08:33:04] *** johnkevinmbasco has quit IRC
[08:33:05] *** mary5030 has quit IRC
[08:33:15] *** yogurt_truck has quit IRC
[08:33:35] *** johnkevinmbasco has joined #angularjs
[08:33:52] <sysko> sorry i'm getting trouble to access to angular documentation (because of censorship in my country) , if i have a lot of promises
[08:34:16] <sysko> that can be launched in parallel (i.e they dont need each other result to start)
[08:34:23] *** danielpquinn has joined #angularjs
[08:34:50] <sysko> i remember there's something to take an array of promise and make one big "when they all are resolved without problems"
[08:37:22] <arussel> sysko: $q.all
[08:37:23] *** foofoobar has joined #angularjs
[08:38:14] *** kemm0 has joined #angularjs
[08:38:15] *** johnkevinmbasco has quit IRC
[08:38:16] <arussel> sysko: and you could build the documentation locally
[08:38:18] *** DerekPerkins_ has joined #angularjs
[08:38:22] *** BobbieBarker has quit IRC
[08:38:26] *** johnkevinmbasco has joined #angularjs
[08:38:47] *** Xethron has joined #angularjs
[08:38:50] <Elezium> and hee.. what is to be censored in angular docs ?!
[08:39:03] *** danielpquinn has quit IRC
[08:39:44] *** TrevDev has quit IRC
[08:41:44] *** GeertV__ has joined #angularjs
[08:41:51] *** DerekPerkins has quit IRC
[08:42:00] *** TrevDev has joined #angularjs
[08:42:21] *** mary5030 has joined #angularjs
[08:42:28] *** johnkevi_ has joined #angularjs
[08:42:34] *** sigurding_ has joined #angularjs
[08:42:49] *** tfennelly has joined #angularjs
[08:43:01] *** sneakertack has quit IRC
[08:43:11] *** evilaliv3 has joined #angularjs
[08:43:19] *** wilmoore has quit IRC
[08:43:19] *** sigurding has quit IRC
[08:43:19] *** sigurding_ is now known as sigurding
[08:43:39] *** johnkevinmbasco has quit IRC
[08:44:19] *** mary5030 has quit IRC
[08:44:48] *** nfroidure has joined #angularjs
[08:47:18] *** tfennelly has quit IRC
[08:49:03] *** e-dard_afk is now known as e-dard
[08:49:44] *** MikaAK has joined #angularjs
[08:49:50] *** e-dard is now known as e-dard_afk
[08:49:50] *** ppppaul has quit IRC
[08:50:02] *** lordkryss has joined #angularjs
[08:50:14] *** illume has quit IRC
[08:50:30] *** bluesm has joined #angularjs
[08:50:58] *** devinceble has joined #angularjs
[08:52:35] *** bkuberek has joined #angularjs
[08:54:32] *** bkuberek_ has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:32] *** illume has joined #angularjs
[08:55:56] *** bufferino has joined #angularjs
[08:56:22] *** vintik has quit IRC
[08:56:53] *** secondjeff has joined #angularjs
[08:56:55] *** DrMabuse has joined #angularjs
[08:57:07] *** bufferino has quit IRC
[08:57:07] *** bufferino has joined #angularjs
[08:57:24] *** uf6667 has joined #angularjs
[08:57:34] *** bkuberek has quit IRC
[08:57:38] *** DuelShark has quit IRC
[08:57:57] <sysko> Elezium: all google's domains are basically blocked
[08:58:05] <sysko> so it blocked also ajax.googleapis.com
[08:58:21] <sysko> so which for website based on angular mess things up
[08:58:34] <sysko> and after it can also be that it's on a ip that is blocked
[08:58:52] <sysko> most of the times it's not because of the content of the website itself
[08:59:03] *** bkuberek_ has quit IRC
[08:59:09] <sysko> arussel: thanks i will test that :)
[08:59:30] <bufferino> is there a channel to discuss software development practices?
[08:59:59] *** johnkevi_ has quit IRC
[09:01:23] *** secondjeff has quit IRC
[09:01:30] *** tschundeee has joined #angularjs
[09:02:01] *** moritzs has joined #angularjs
[09:02:03] *** scmx has joined #angularjs
[09:02:32] *** joshontheweb has quit IRC
[09:02:43] *** wilmoore has joined #angularjs
[09:03:06] *** toastynerd has quit IRC
[09:03:20] *** AndyFTP has joined #angularjs
[09:04:01] *** winford has quit IRC
[09:04:33] *** Gambit- has quit IRC
[09:05:12] *** johnkevinmbasco has joined #angularjs
[09:05:41] *** mtsr has joined #angularjs
[09:05:45] *** hannesvdvreken has joined #angularjs
[09:06:11] *** tschundeee has quit IRC
[09:06:16] *** guilbep has joined #angularjs
[09:06:36] *** rigel_ has joined #angularjs
[09:07:00] *** phuh has quit IRC
[09:07:08] *** ppppaul has joined #angularjs
[09:07:16] <rigel_> so if i have some json data that includes html tags, how to i get the presentation layer to not escape the tags
[09:07:24] *** phuh has joined #angularjs
[09:08:22] *** bevill has joined #angularjs
[09:10:13] *** narutimateum has quit IRC
[09:11:06] *** AlexZanf has quit IRC
[09:11:33] *** kalehv has joined #angularjs
[09:11:41] *** mguillech has joined #angularjs
[09:12:09] *** MattWelch has joined #angularjs
[09:12:13] *** AxldenieD has joined #angularjs
[09:12:26] <AxldenieD> hey :)
[09:12:47] *** Natsu- has joined #angularjs
[09:15:16] *** chrisshattuck has quit IRC
[09:16:10] *** mguillech has quit IRC
[09:16:11] *** kalehv has quit IRC
[09:16:37] *** MattWelch has quit IRC
[09:17:24] *** Reite has quit IRC
[09:17:40] *** closures999 has joined #angularjs
[09:18:38] *** umesh has joined #angularjs
[09:18:42] *** AAA1 has joined #angularjs
[09:19:38] *** _tpavel has joined #angularjs
[09:19:42] *** AAA1 has left #angularjs
[09:20:36] *** Asiajey has quit IRC
[09:21:23] *** Asiajey has joined #angularjs
[09:21:23] *** Asiajey has joined #angularjs
[09:21:33] *** johnkevinmbasco has quit IRC
[09:21:44] <umesh> <Asiajey> hii
[09:22:08] *** closures999 has quit IRC
[09:22:27] <umesh> i have some angular syntax will uhelp me
[09:22:48] *** bengillies has joined #angularjs
[09:23:27] *** devinceble has left #angularjs
[09:23:48] *** MikaAK has quit IRC
[09:23:58] *** mewm has joined #angularjs
[09:25:32] *** captain_morgan has quit IRC
[09:25:52] *** MikaAK has joined #angularjs
[09:25:56] *** Alina-malina has quit IRC
[09:26:31] *** umesh has quit IRC
[09:26:57] *** Alina-malina has joined #angularjs
[09:27:47] *** stodan has joined #angularjs
[09:28:11] *** johnkevinmbasco has joined #angularjs
[09:28:21] *** fixl has joined #angularjs
[09:32:16] *** zwacky has joined #angularjs
[09:32:30] *** sneakertack has joined #angularjs
[09:33:15] *** illume has quit IRC
[09:35:08] *** danielpquinn has joined #angularjs
[09:35:12] *** mchammer has joined #angularjs
[09:35:32] *** [n0b0dy] has quit IRC
[09:35:42] *** [n0b0dy] has joined #angularjs
[09:36:27] *** VeeWee has joined #angularjs
[09:38:19] *** johnkevinmbasco has quit IRC
[09:39:02] *** JosephSilber has quit IRC
[09:39:32] *** Shrooms has quit IRC
[09:39:37] *** Nivag has quit IRC
[09:39:48] *** danielpquinn has quit IRC
[09:40:03] *** MikaAK has quit IRC
[09:40:17] *** nezuvian has joined #angularjs
[09:40:17] *** slainer68 has joined #angularjs
[09:40:43] * nezuvian ** SysInfo ** Client: HexChat 2.9.6 (x64) ** OS: Microsoft Windows 8 Pro ** CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (2.00 GHz) ** RAM: 3965 MB Total (891 MB Free) ** VGA: NVIDIA GeForce GT 610 ** Uptime: 313.39 Hours **
[09:40:54] *** Left_Turn has joined #angularjs
[09:41:24] *** frkout_ has quit IRC
[09:41:58] *** frkout has joined #angularjs
[09:42:31] *** DevAntoine` has joined #angularjs
[09:42:43] *** DerekPerkins_ has quit IRC
[09:43:32] *** uf6667 has quit IRC
[09:43:45] *** DevAntoine` is now known as DevAntoine
[09:44:27] *** johnkevinmbasco has joined #angularjs
[09:44:47] *** nezuvian is now known as OttlikG
[09:44:56] *** torkel_ has joined #angularjs
[09:44:59] *** OttlikG has quit IRC
[09:45:10] *** axelhzf_ has quit IRC
[09:45:17] <torkel_> Does anyone have any good example of creating a robust model layer using restangular?
[09:45:17] *** OttlikG has joined #angularjs
[09:45:33] *** mattwynne has joined #angularjs
[09:46:28] *** jacuqesdancona has joined #angularjs
[09:47:28] *** uchuff has joined #angularjs
[09:47:58] *** OttlikG has left #angularjs
[09:50:03] *** bengillies has quit IRC
[09:50:31] *** tfennelly has joined #angularjs
[09:50:41] *** InezK is now known as InezK_away
[09:51:25] *** danyim has joined #angularjs
[09:51:38] <fairuz> hi guys. Is there any 3rd party service/factory repo?
[09:52:06] *** Nivag has joined #angularjs
[09:52:19] *** asdofindia has joined #angularjs
[09:54:52] *** mcalmels has quit IRC
[09:54:56] *** mary5030 has joined #angularjs
[09:55:21] *** bkuberek has joined #angularjs
[09:55:23] *** Left_Turn has quit IRC
[09:55:42] *** danyim has quit IRC
[09:59:49] *** guilbep has quit IRC
[09:59:56] *** bkuberek has quit IRC
[09:59:56] *** mary5030 has quit IRC
[10:00:00] *** charuru has quit IRC
[10:00:10] *** calvinx has joined #angularjs
[10:00:36] *** Ethix has joined #angularjs
[10:01:41] *** charuru has joined #angularjs
[10:02:30] *** hannesvdvreken has quit IRC
[10:02:41] *** uchuff has quit IRC
[10:02:47] *** Alina-malina has quit IRC
[10:03:46] *** vader has joined #angularjs
[10:04:20] *** Joulse has joined #angularjs
[10:04:26] *** ome has joined #angularjs
[10:05:49] *** kalehv has joined #angularjs
[10:06:07] *** Alina-malina has joined #angularjs
[10:06:08] *** Alina-malina has joined #angularjs
[10:06:57] *** greengriminal has joined #angularjs
[10:07:02] *** phuh has quit IRC
[10:07:25] *** phuh has joined #angularjs
[10:07:49] *** hannesvdvreken has joined #angularjs
[10:10:04] *** nemothekid has quit IRC
[10:10:12] *** kalehv has quit IRC
[10:10:33] *** karinaOK has quit IRC
[10:10:58] *** squeakytoy has joined #angularjs
[10:11:12] *** KamalKaur has joined #angularjs
[10:11:25] *** KamalKaur has left #angularjs
[10:12:27] *** mguillech has joined #angularjs
[10:12:56] *** dve has joined #angularjs
[10:13:02] *** Aswebb has joined #angularjs
[10:13:04] *** illume has joined #angularjs
[10:13:49] *** illume has quit IRC
[10:14:33] *** milka has joined #angularjs
[10:15:22] *** frankblizzard has joined #angularjs
[10:15:30] *** MattWelch has joined #angularjs
[10:15:31] *** Sonderblade has joined #angularjs
[10:15:35] *** rhp has quit IRC
[10:15:50] *** Sonderblade has quit IRC
[10:15:50] *** defaultdict has joined #angularjs
[10:15:58] *** Alina-malina has quit IRC
[10:16:12] *** Sonderblade has joined #angularjs
[10:16:23] *** msarta has quit IRC
[10:17:05] *** mguillech has quit IRC
[10:17:55] *** encrypt3d_fracti has joined #angularjs
[10:18:09] *** arntempelgibbarn has joined #angularjs
[10:18:32] *** johnkevinmbasco has quit IRC
[10:18:35] *** plysiu has joined #angularjs
[10:18:55] <DevAntoine> hi
[10:19:32] *** tfennelly has quit IRC
[10:19:51] *** nemothekid has joined #angularjs
[10:19:53] *** MattWelch has quit IRC
[10:21:01] <DevAntoine> I've got a service adding a property to some objects which old a css class. I don't think it's good to do that in a service because it's only about the view, not the business, but considering this method is used in multiple places, I don't know where to store it. It can't be in a controller because it won't be reusable
[10:21:21] *** dariocravero has joined #angularjs
[10:21:54] *** cotko has joined #angularjs
[10:22:03] <DevAntoine> and I guess its name sux too: "handleInputColoration"
[10:22:04] *** Cydmax has joined #angularjs
[10:22:06] <DevAntoine> what do you think?
[10:22:08] *** Left_Turn has joined #angularjs
[10:22:45] *** TrevDev has quit IRC
[10:22:45] *** encrypt3d_fracti has quit IRC
[10:22:47] *** kppullin has quit IRC
[10:23:42] *** johnkevinmbasco has joined #angularjs
[10:23:50] <arntempelgibbarn> If it's all about the view, and should be reusable. Consider putting it in a directive
[10:24:38] *** mrogne has quit IRC
[10:24:49] *** mrogne has joined #angularjs
[10:24:59] *** TrevDev has joined #angularjs
[10:25:04] *** kppullin has joined #angularjs
[10:25:39] *** nicolas__ has joined #angularjs
[10:25:39] <DevAntoine> arntempelgibbarn: so, the property is added in the directive?
[10:26:06] *** roolo has joined #angularjs
[10:26:09] *** Sebastien-L has joined #angularjs
[10:26:28] *** sharondio has quit IRC
[10:27:01] <arntempelgibbarn> Yeah I'm not sure I really get your scenario, but in general, any DOM manipulation code that will be reused at multiple places should live in a directive
[10:27:53] *** TyrfingMjolnir has quit IRC
[10:28:05] *** MattWelch has joined #angularjs
[10:31:04] <DevAntoine> arntempelgibbarn: well, the property just contains a class name. This property is directly called inside the view, in the class attribute of the element. But I guess that by using a directive I no longer need this property and the class will be added directly to the element by the directive itself
[10:31:43] *** eamonn has joined #angularjs
[10:31:47] *** dutis has quit IRC
[10:32:15] *** intellix has joined #angularjs
[10:32:41] *** TyrfingMjolnir has joined #angularjs
[10:33:00] *** MattWelch has quit IRC
[10:34:08] *** azizur has joined #angularjs
[10:35:23] *** motionman has quit IRC
[10:35:55] *** danielpquinn has joined #angularjs
[10:36:56] <arntempelgibbarn> DevAntoine: Yeah that sounds better, so you don't get any DOM related stuff in your services
[10:37:10] *** DeanH has quit IRC
[10:37:12] *** nemothekid has quit IRC
[10:40:31] *** bitfidget has quit IRC
[10:40:47] *** danielpquinn has quit IRC
[10:41:15] *** _jpfm has joined #angularjs
[10:42:17] *** lordkryss_ has joined #angularjs
[10:43:23] *** bengillies has joined #angularjs
[10:43:49] *** amedia has joined #angularjs
[10:44:25] *** joshbrw has joined #angularjs
[10:44:50] *** joshontheweb has joined #angularjs
[10:45:39] *** amedia has quit IRC
[10:45:43] *** lordkryss has quit IRC
[10:45:51] *** mykz_ has quit IRC
[10:46:16] *** dutis has joined #angularjs
[10:46:26] *** nicolas__ has quit IRC
[10:46:54] *** uchuff has joined #angularjs
[10:47:07] *** bullicon has joined #angularjs
[10:47:37] <cctom> guys, I only want to use $locationProvider on one of the pages in my webapp. I have a global ng-app. How would I achieve this? When I enable the html5 mode on the location provider it is application wide and my normal <a href’s don’t work anymore?
[10:48:23] *** amedia has joined #angularjs
[10:49:39] *** msarta has joined #angularjs
[10:49:41] *** tfennelly has joined #angularjs
[10:51:37] *** void_0_ has joined #angularjs
[10:51:46] *** klipstein has joined #angularjs
[10:53:43] *** sharondio has joined #angularjs
[10:54:35] *** lordkryss__ has joined #angularjs
[10:55:12] *** one_zero has quit IRC
[10:55:54] *** mykz_ has joined #angularjs
[10:55:56] *** wolfman2000 has quit IRC
[10:56:04] *** bkuberek has joined #angularjs
[10:56:09] *** tarnus has joined #angularjs
[10:56:22] *** one_zero has joined #angularjs
[10:57:01] <lite_> http://plnkr.co/edit/guMuJ9Ev1nFt0M7rJL8s?p=preview why is this animation not working ?
[10:57:45] *** lordkryss_ has quit IRC
[10:57:53] *** bkuberek_ has joined #angularjs
[10:57:58] *** bkuberek has quit IRC
[10:58:04] *** secondjeff has joined #angularjs
[10:58:38] *** Alina-malina has joined #angularjs
[10:58:57] *** joshontheweb has quit IRC
[11:00:02] *** kalehv has joined #angularjs
[11:00:33] *** tarnus has quit IRC
[11:01:47] <intellix> lite_: you need to add ngAnimate to your app deps
[11:01:54] <intellix> http://plnkr.co/edit/XWU25SUZtqFZ5TpuOaU0?p=preview
[11:02:10] *** knownasilya has joined #angularjs
[11:02:15] *** johnkevinmbasco has quit IRC
[11:02:22] <lite_> right
[11:02:31] <lite_> thanks. im an idiot
[11:02:34] *** bkuberek_ has quit IRC
[11:02:35] <intellix> sometimes you just need a pair of second eyes :D
[11:02:40] <intellix> second pair of eyes
[11:03:37] *** dutis has quit IRC
[11:03:57] *** void_0_ has quit IRC
[11:04:10] *** secondjeff has quit IRC
[11:04:12] *** void_0_ has joined #angularjs
[11:04:23] *** kalehv has quit IRC
[11:04:55] *** e-dard_afk is now known as e-dard
[11:05:27] *** Wizek has joined #angularjs
[11:05:32] <void_0_> https://itunes.apple.com/de/app/lingo/id624884154?l=en&mt=12
[11:06:20] *** void_0_ has left #angularjs
[11:06:32] *** Shrooms has joined #angularjs
[11:06:58] *** Foxandxss has joined #angularjs
[11:07:02] *** phuh has quit IRC
[11:07:07] *** e-dard has left #angularjs
[11:07:27] *** phuh has joined #angularjs
[11:07:44] *** klipstein has quit IRC
[11:08:13] *** texinwien has joined #angularjs
[11:08:56] *** amedia has quit IRC
[11:08:58] *** dariocravero has quit IRC
[11:10:31] *** phuh has quit IRC
[11:11:03] *** phuh has joined #angularjs
[11:11:15] *** marr has joined #angularjs
[11:11:45] *** jkremser has joined #angularjs
[11:12:03] *** MaxV has joined #angularjs
[11:12:07] *** jkremser has quit IRC
[11:12:07] *** jkremser has joined #angularjs
[11:13:14] *** mguillech has joined #angularjs
[11:16:14] *** sneakertack has quit IRC
[11:17:24] *** colock_ has quit IRC
[11:17:36] *** mguillech has quit IRC
[11:18:32] *** encrypt3d_fracti has joined #angularjs
[11:18:51] *** mikronaz has quit IRC
[11:18:54] *** colock_ has joined #angularjs
[11:19:06] *** klaut has joined #angularjs
[11:19:34] *** lordkryss has joined #angularjs
[11:19:43] *** texinwien has quit IRC
[11:19:48] <syed99> Hi , i am using "angular-translate" i18n implementation and applied it successfully for the front-end elements, how to do the same for javascript alerts in the controller, any idea?
[11:20:01] *** nite has joined #angularjs
[11:20:18] <nite> hi
[11:21:07] *** tschundeee has joined #angularjs
[11:22:42] *** encrypt3d_fracti has quit IRC
[11:22:57] *** lordkryss__ has quit IRC
[11:24:36] *** BMCouto has joined #angularjs
[11:25:00] *** lordkryss_ has joined #angularjs
[11:26:07] *** Aswebb has quit IRC
[11:26:10] *** metasansana has quit IRC
[11:26:12] *** nite has quit IRC
[11:26:32] *** bevill has quit IRC
[11:26:59] *** Trow has quit IRC
[11:27:33] <DevAntoine> in a directive called at least 50 times in a page I make a call to a webservice. The service is cached using the 'cache' option, but I'm wondering if the best thing to do is to use the $cacheFactory too, to not rely on the service cache in case of a change?
[11:28:11] *** lordkryss has quit IRC
[11:29:09] *** mardiross has joined #angularjs
[11:30:38] *** asdofindia has quit IRC
[11:30:58] *** lordkryss__ has joined #angularjs
[11:31:11] *** plysiu has quit IRC
[11:33:55] *** lumio has joined #angularjs
[11:34:16] *** one_zero has quit IRC
[11:34:19] *** lordkryss_ has quit IRC
[11:34:27] <intellix> syed99: I believe angular-translate has a filter for translation right? {{ ‘blah’ | translate }}
[11:34:41] <intellix> so I think you can inject the translateFilter into your controllers and use it like that if you need to
[11:34:47] *** Aartsie has joined #angularjs
[11:34:57] <intellix> $filter(‘translate’)(‘blah’) sort of thing
[11:36:44] *** danielpquinn has joined #angularjs
[11:36:53] *** Oddman has joined #angularjs
[11:36:54] *** minimoo1 has joined #angularjs
[11:36:56] *** disorder20 has joined #angularjs
[11:37:33] *** mikronaz has joined #angularjs
[11:38:32] <syed99> intellix:i did nt know much about injecting filters into controller, could u point to some example
[11:38:32] *** lordkryss__ is now known as lordkryss
[11:38:49] *** jamesbdev has quit IRC
[11:38:53] <intellix> syed99: s/14302267/how-to-use-a-filter-in-a-controller
[11:38:57] <intellix> http://stackoverflow.com/questions/14302267/how-to-use-a-filter-in-a-controller
[11:39:25] <syed99> intellix:thanks
[11:40:58] *** tschundeee has quit IRC
[11:41:11] <DevAntoine> is there some coding styles for angular? I don't know how to format controllers/directives/services header with lot of parameters
[11:41:31] *** danielpquinn has quit IRC
[11:41:45] <minimoo1> hey i want to create a directive to display a popup on mouseenter, i use $compile to render the data, i use a single div to show the data, the problem is it will work only for the first time if i go to the another element the data on the compiled div will not change,
[11:41:46] *** TrevDev has quit IRC
[11:41:56] *** Shrooms has quit IRC
[11:42:13] *** bolt2in1 has joined #angularjs
[11:44:02] *** TrevDev has joined #angularjs
[11:44:22] <bolt2in1> Hello everybody. I need some help with angular-i18n, I added this module using bower but when I run grunt serve or build I keep getting "angular-i18n was not injected in your file.". Any hints?
[11:45:33] *** Wizek has quit IRC
[11:46:49] *** arussel has left #angularjs
[11:47:10] *** kppullin has quit IRC
[11:47:17] *** colock_ has quit IRC
[11:48:24] *** wolfman2000 has joined #angularjs
[11:49:02] <intellix> DevAntoine: http://blog.angularjs.org/2014/02/an-angularjs-style-guide-and-best.html
[11:49:26] *** kppullin has joined #angularjs
[11:49:26] *** kppullin has joined #angularjs
[11:49:40] <intellix> bolt2in1: that error message sounds random, can you paste the actual one? or is that it?
[11:50:27] <DevAntoine> intellix: it doesn't contain what I'm looking for
[11:50:45] *** colock_ has joined #angularjs
[11:50:55] <DevAntoine> for instance, I've got a controller with more than 15 parameters, how am I suppose to format that to avoid too long lines
[11:50:56] <DevAntoine> ?
[11:51:03] <intellix> not sure :D
[11:51:31] *** mykz_ has quit IRC
[11:51:42] *** guilbep has joined #angularjs
[11:51:49] <bolt2in1> Hi, intellix: sure. https://gist.github.com/hawz/3352db9ed7b26913a5c7 lines from 10 to 18
[11:52:47] <intellix> aaah, that’s just a wiredep thing right
[11:52:49] *** danyim has joined #angularjs
[11:52:49] *** fairuz has quit IRC
[11:52:51] *** torkel_ has quit IRC
[11:53:26] *** hychen has quit IRC
[11:53:53] <intellix> as it says you need to manually include the script into your index.html :D
[11:54:34] *** wilmoore has quit IRC
[11:55:40] <bolt2in1> Exactly, but if I include it manually, next time I run grunt serve and wiredep injects bower components to index.html the error shows up again.
[11:57:19] *** wilmoore has joined #angularjs
[11:57:28] *** danyim has quit IRC
[11:58:39] *** bkuberek has joined #angularjs
[11:58:46] *** startupality has joined #angularjs
[11:59:48] *** kernal has joined #angularjs
[12:00:53] *** dazs has quit IRC
[12:01:36] <intellix> I imagine you’re putting it in between the <!— bower:wiredep —> or whatever the comments are
[12:01:40] <intellix> so it gets removed each time
[12:02:18] <intellix> if it’s outside of those comment blocks, it shouldn’t ever be touched
[12:02:28] <intellix> just a warning anyway isn’t it?
[12:02:55] <bolt2in1> Yep. :) Thanks, intellix.
[12:03:07] *** bkuberek has quit IRC
[12:06:25] *** torkel_ has joined #angularjs
[12:07:05] *** phuh has quit IRC
[12:07:31] *** phuh has joined #angularjs
[12:08:20] *** TyrfingMjolnir_ has joined #angularjs
[12:08:29] *** TimmyTones has joined #angularjs
[12:09:12] *** TyrfingMjolnir_ has quit IRC
[12:09:44] *** Alina-malina has quit IRC
[12:09:49] *** guilbep has quit IRC
[12:09:50] *** TyrfingMjolnir has quit IRC
[12:10:10] *** Alina-malina has joined #angularjs
[12:10:11] *** Alina-malina has joined #angularjs
[12:10:29] *** ineedarobot has joined #angularjs
[12:11:16] *** plysiu has joined #angularjs
[12:11:18] *** lumio has quit IRC
[12:11:52] *** phuh has quit IRC
[12:12:32] *** josip_ has joined #angularjs
[12:12:34] *** alanp has quit IRC
[12:12:35] <josip_> hi
[12:12:49] <josip_> i'm working on app which requires input of date & time
[12:13:02] <josip_> i'm using type="datetime-local"
[12:13:10] <josip_> i have input new date
[12:13:13] <josip_> which works fine
[12:13:19] <josip_> but i would like to implement edit date
[12:13:30] <josip_> which is having default value from database
[12:13:36] <josip_> i dont know how to set default value
[12:14:04] <DevAntoine> I don't know how to design a function. At first I was going like this: isAdjustmentBig() which returns a boolean, but in fact I can have three possible return values: a big adjustment, a small adjustment, no adjustment. I don't know how to do that correctly?
[12:14:16] *** wilmoore has quit IRC
[12:15:15] <DrMabuse> $filter
[12:15:31] *** Hounddog has joined #angularjs
[12:15:40] *** alanp has joined #angularjs
[12:15:48] *** Wizek has joined #angularjs
[12:15:50] *** startupality has quit IRC
[12:16:09] *** startupality has joined #angularjs
[12:16:21] <DrMabuse> DevAntoine https://gist.github.com/DrMabuse23/adcae77e7079f6af99ff
[12:16:32] *** joshbrw has quit IRC
[12:17:36] <DevAntoine> DrMabuse: specificaly I'm taling about that: .service('WorpieceWeightService', ['$filter', function ($filter) {
[12:18:20] <josip_> hey can anyone help me with datetime-local default value?
[12:18:48] <DrMabuse> DevAntoine: sorry dont understand ?
[12:19:08] *** plitzenberger has joined #angularjs
[12:19:08] <DrMabuse> DevAntoine: what you wanna tell me
[12:19:13] <DevAntoine> DrMabuse: when you have a lot of injected parameters, how do you format that line?
[12:19:14] *** encrypt3d_fracti has joined #angularjs
[12:19:35] <josip_> so
[12:19:39] <josip_> i'm having input date field
[12:19:44] <josip_> which works fine, user selects date time
[12:19:47] <josip_> it saves to database
[12:19:49] <josip_> and now
[12:19:52] <josip_> i'm having edit page
[12:20:04] <josip_> i would like to display date from database on edit page as default value
[12:20:51] <josip_> so that user can see current select date and change it to new value
[12:20:53] *** oktapodi has quit IRC
[12:20:55] <josip_> do you understand now?
[12:21:12] *** tschundeee has joined #angularjs
[12:21:33] <DrMabuse> DevAntoine: well i dont have so much injected i have more services and directives or filters or ......
[12:21:43] *** galigan has joined #angularjs
[12:22:00] *** duckchat has joined #angularjs
[12:23:22] *** Alina-malina has quit IRC
[12:24:01] *** Planet_EN has joined #angularjs
[12:24:18] *** alanp has quit IRC
[12:24:25] *** encrypt3d_fracti has quit IRC
[12:24:51] *** alanp has joined #angularjs
[12:24:53] *** ncbw has joined #angularjs
[12:25:17] *** tschunde_ has joined #angularjs
[12:25:22] <ncbw> Hi all. I am trying to use prototypes but scope variables don’t seem to update, am i missing something - http://plnkr.co/edit/rgrllVQYWZmdju0zWScK?p=preview
[12:25:25] *** plysiu has quit IRC
[12:25:27] *** tschundeee has quit IRC
[12:25:43] *** umesh has joined #angularjs
[12:26:09] <umesh> any one is there
[12:26:18] <umesh> ?????????
[12:26:33] <umesh> knock knock
[12:26:34] *** hannesvdvreken has quit IRC
[12:26:56] *** cigol has joined #angularjs
[12:27:00] *** umesh has quit IRC
[12:27:17] <cigol> hi, can I change state parameter in ui router without refreshing controller ?
[12:27:48] <cigol> I would like to change parameter after click on page on pagination
[12:28:09] <syed99> intellix:Wow intellix..i made it worked..tqs
[12:28:11] *** DevAntoine has quit IRC
[12:28:21] *** LuxuryMode has quit IRC
[12:28:50] *** roolo has quit IRC
[12:29:20] *** plysiu has joined #angularjs
[12:31:09] *** calvinx has quit IRC
[12:31:09] *** plysiu has quit IRC
[12:31:28] *** mnngfltg has joined #angularjs
[12:32:01] *** plitzenberger has quit IRC
[12:32:11] *** Willow_ has joined #angularjs
[12:33:00] *** fouzko has joined #angularjs
[12:33:01] <galigan> @ncbw its almost impossible that random gets updated…
[12:33:23] <ncbw> @galigan yeh it only works if i bind to the method .. weird
[12:33:49] <galigan> no… because the method is not executed…
[12:33:52] *** S-Work has joined #angularjs
[12:33:52] *** S-Work has joined #angularjs
[12:33:53] <galigan> on the scope…
[12:34:00] <duckchat> i'm new to angular. starting looking at it today. SPA is Single Page App, right? Is it reasonable to think of it as a single DOM?
[12:34:10] *** mykz_ has joined #angularjs
[12:34:14] *** plitzenberger has joined #angularjs
[12:35:41] <ncbw> @galigan yeah i see. but it’s ok to bind to the prototype methods though right?
[12:35:48] <galigan> ncbw: as i know, methods are not whatched.. you have to explicity watch them
[12:35:53] <ncbw> <p ng-bind=‘user.getRandom()’></p>
[12:35:58] *** plysiu has joined #angularjs
[12:36:15] <galigan> I think yes ...
[12:36:34] <ncbw> seems to work.
[12:37:27] <galigan> ncbw: Why not… user is an instance.. u have injected in scope
[12:37:30] <galigan> its ok.
[12:37:31] *** danielpquinn has joined #angularjs
[12:37:51] <ncbw> huh?
[12:39:29] <galigan> ncbw: well, not injected… u just declared in the controller scope … but the same way, u can declare the class outside, inject it, with params, and after, create the instance… and use it.
[12:40:11] *** intellix has quit IRC
[12:40:17] *** rafzzz has joined #angularjs
[12:40:42] <ncbw> @galigan: yes that is what im doing in my app, just needed a quick demo in plunker to show
[12:40:57] *** narutimateum has joined #angularjs
[12:41:20] *** mehlah has joined #angularjs
[12:41:36] *** fouzko has quit IRC
[12:41:44] <rafzzz> guys, on some occasions my controller is loading and running before my routechangesuccess has fired
[12:41:59] <rafzzz> im using ngRoute and RouteProvider.resolve
[12:42:35] *** danielpquinn has quit IRC
[12:43:25] *** TuRnaD0 has joined #angularjs
[12:44:43] *** ggrzybek is now known as ggrzybek|afk
[12:45:16] *** hannesvdvreken has joined #angularjs
[12:45:39] *** jstroem has quit IRC
[12:46:15] *** Willow_ has quit IRC
[12:46:24] *** startupality has quit IRC
[12:46:42] *** greggsi has joined #angularjs
[12:46:50] *** Willow_ has joined #angularjs
[12:47:37] *** Ilyas has joined #angularjs
[12:47:38] *** marcospgp has joined #angularjs
[12:48:07] *** mmaia has joined #angularjs
[12:48:12] <mmaia> hello
[12:48:28] <mmaia> am I all alone :(
[12:48:32] <mmaia> that's sad
[12:48:33] <rafzzz> nope
[12:48:40] <mmaia> oh.. cool
[12:49:10] <mmaia> hey.. I need do discuss one thing in particular that is driving me crazy.. about angularjs
[12:49:26] *** \du has joined #angularjs
[12:49:27] *** \du has joined #angularjs
[12:49:35] <mmaia> so..
[12:50:50] <mmaia> libertyApp.controller('LibertyController', ['$scope', 'httpService',function($scope, httpService) { this.name = ''; $scope.answer = ''; this.talkToLiberty = function(){ //return if form field is submitted with no value just in case html5 validation gets bypassed. if(! this.name){return;} //call the service that actually make the get call to liberty. httpService.callLiberty(this.name).then( function(resul
[12:51:12] <mmaia> hum.. code doesn't look good here.. so.. I willhave to open a question on SO to discuss this
[12:51:13] <marcospgp> use pastebin or something of the kind please
[12:51:21] <mmaia> pasterbin?
[12:51:26] <mmaia> pastebin?
[12:51:28] *** AlSquire has joined #angularjs
[12:51:35] *** Willow_ has quit IRC
[12:51:50] *** milka has quit IRC
[12:52:11] <rafzzz> gice, why my controller running before my defer sometimes?
[12:52:14] <rafzzz> plix halp :<
[12:52:40] <mmaia> is it possible to paste code in here?
[12:52:46] <mmaia> formatted code?
[12:52:54] <rafzzz> no, use pastebin
[12:54:07] *** gil has quit IRC
[12:54:27] <cigol> can I make ui-sref with dynamic route name ?
[12:55:02] *** jstroem has joined #angularjs
[12:57:29] *** Dimlock has joined #angularjs
[12:58:04] *** TorchDragon has joined #angularjs
[12:58:47] *** startupality has joined #angularjs
[12:58:48] <mmaia> so.. I can't understand why the hack the variable answer is undefined in the second block here: http://pastebin.com/xhK5i5u4
[12:58:57] *** secondjeff has joined #angularjs
[12:59:09] <mmaia> why I am forced to use $scope in this aforementioned case?
[12:59:25] *** bkuberek has joined #angularjs
[13:00:32] <mmaia> any clues
[13:01:22] *** mguillech has joined #angularjs
[13:02:34] *** TorchDragon has quit IRC
[13:03:53] *** secondjeff has quit IRC
[13:04:15] *** bkuberek has quit IRC
[13:05:13] <rafzzz> mmaiaa: why do you want to use the this keyword in your example?
[13:05:38] *** ajk27 has quit IRC
[13:06:00] <rafzzz> just do var this = $scope
[13:06:03] <rafzzz> and it'll work :p
[13:06:07] <rafzzz> but dont use this
[13:06:12] *** ajk27 has joined #angularjs
[13:06:16] <rafzzz> for more information: http://stackoverflow.com/questions/11605917/this-vs-scope-in-angularjs-controllers
[13:06:27] *** tomzx`afk is now known as tomzx
[13:06:28] <mmaia> rafzzz - actually I just want to understand why the this.answer is out of scope (undefined) if I try to use it.
[13:06:57] <mmaia> I am learning advanced javascript now.. and I like to understand how things work :)
[13:07:31] <rafzzz> it's not an angular problem then
[13:07:34] *** moritzs has quit IRC
[13:07:37] <rafzzz> you're problem is with scope
[13:07:38] <rafzzz> not $scope
[13:07:54] <rafzzz> read here: http://javascriptplayground.com/blog/2012/04/javascript-variable-scope-this/
[13:08:02] *** bberry_away is now known as bberry
[13:08:25] *** DevAntoine has joined #angularjs
[13:09:21] <rafzzz> mmaia: you could do something like var scope = this at top of your controller, and you'd probably be okay using scope. throughout the rest of your controller
[13:09:24] <mmaia> rafzzz - thank you very much sir. I think these links will help me
[13:09:27] <rafzzz> mmaia: but that's a terrible idea
[13:09:40] *** dariocravero has joined #angularjs
[13:09:48] <rafzzz> mmaia: and you should just use $scope for now
[13:09:54] <rafzzz> imo
[13:10:03] *** galigan has quit IRC
[13:10:07] <mmaia> yeah. I will.. but need to understand this ;)
[13:10:13] *** Anton_ has joined #angularjs
[13:11:40] *** joshontheweb has joined #angularjs
[13:11:52] *** saucey has joined #angularjs
[13:12:27] *** shorne has joined #angularjs
[13:12:37] *** mmaia has quit IRC
[13:12:49] *** DevAntoine has quit IRC
[13:12:55] <rafzzz> guys please can someone help me with this crazy bug? one in ever 10ish reloads, my controller is loading before my promises are resolved and I've no idea why....
[13:14:11] *** Psi|4ward has joined #angularjs
[13:14:36] <Psi|4ward> Hi there, how to do a parsInt on an insolated-scope-variable bound via @ in a directive?
[13:14:37] *** MattWelch has joined #angularjs
[13:14:43] <Psi|4ward> i always get string instead of int
[13:17:37] *** raghunayyar has joined #angularjs
[13:18:02] *** flocca-bis has quit IRC
[13:18:49] *** MattWelch has quit IRC
[13:19:19] *** Aswebb has joined #angularjs
[13:19:31] *** anjumkaiser has joined #angularjs
[13:20:25] *** plitzenberger has quit IRC
[13:21:33] <rafzzz> angularjs sucks
[13:21:39] <rafzzz> dosn't do what it's told
[13:22:31] <Foxandxss> normally developers sucks
[13:22:32] *** joshontheweb has quit IRC
[13:22:38] <Foxandxss> not the technology
[13:22:43] <rafzzz> that's what i thought
[13:22:49] <rafzzz> but it only fails 10% of the time...
[13:22:57] <zelrik> usually the problem is between the chair and the keyboard
[13:23:54] <Foxandxss> most of the time
[13:24:03] <Foxandxss> like... "I Found a bug" ah no, I am just stupid
[13:24:04] <Foxandxss> :P
[13:24:44] <zelrik> well I did find bugs
[13:25:10] <zelrik> but that was on some modules maintained by one guy or so
[13:25:11] <rafzzz> the app fails one every 8-12 refreshes...
[13:25:25] <bealtine> there are bugs but "not workz" isnt one of them
[13:25:32] <rafzzz> just fires $routeChangeSuccess too soon sometimes
[13:25:44] <Hounddog> zelrik: its called the interface between the chair and the keyboard
[13:25:49] *** sk87 has quit IRC
[13:26:50] <zelrik> Works also within the workplace
[13:27:04] *** slyfer has joined #angularjs
[13:27:13] <zelrik> 'damn that dev is fucking stupid, no wait, I am the one who wrote this shit'
[13:27:21] <bealtine> :)
[13:27:27] *** Trow has joined #angularjs
[13:27:30] *** bengillies has quit IRC
[13:27:45] *** lw has joined #angularjs
[13:27:48] *** Nijikokun has quit IRC
[13:27:51] <Hounddog> Best one is still "which fucking idiot wrote this???!!! git blame... nevermind"
[13:28:14] *** sysko has quit IRC
[13:28:17] <bealtine> old code is such fun
[13:28:49] <Hounddog> dont know what you count as fun...
[13:29:19] <zelrik> me: 'Who the hell wrote that shit??' my boss: 'it s me'
[13:29:23] <zelrik> :D
[13:29:35] *** faviouz has joined #angularjs
[13:29:47] <Hounddog> follow up answer "just wanted to know cause its awesome!"
[13:29:52] <Hounddog> zelrik: :p
[13:29:57] <zelrik> lool
[13:29:58] *** Shai-Tan has joined #angularjs
[13:30:08] <zelrik> it happened to me a couple of times
[13:30:12] <Hounddog> hehe
[13:30:41] <rafzzz> here's my fail: http://pastebin.com/80QBciu1
[13:31:27] <rafzzz> have 3 on resolve, sometimes 2 complete and routechange fires before 3rd does
[13:31:30] <rafzzz> but only sometimes...
[13:31:40] <Hounddog> rafzzz: but your get does not return anything
[13:31:43] *** FunnyLookinHat has joined #angularjs
[13:32:02] <Foxandxss> I remember saying "this book is shit" and the most grumpy channel operator says... it is mine
[13:32:28] <rafzzz> Hounddog: it dosn't?
[13:32:46] <Hounddog> rafzzz: what does service.get return?
[13:33:05] *** bengillies has joined #angularjs
[13:33:18] <rafzzz> Hounddog: I thought it made request and returned promise
[13:33:45] <Hounddog> rafzzz: so cause it contains http.post it automagically returns that?
[13:33:57] <Hounddog> rafzzz: Service.get() returns nothing here.
[13:33:59] *** plitzenberger has joined #angularjs
[13:34:00] *** Sundar_ has joined #angularjs
[13:34:32] <zelrik> I agree
[13:34:33] <rafzzz> Hounddog: I normall structure my services like: return $http.post(url,conf);
[13:34:46] <Hounddog> rafzzz: and why not in this case?
[13:35:06] <Hounddog> rafzzz: why not return $http.post...
[13:35:23] <Shai-Tan> nub here. I am trying to loop over some json returned from an api. how many things am I doing wrong here -> http://jsfiddle.net/G9kTV/
[13:35:27] <rafzzz> Hounddog: I have to return this promise variable I think?
[13:35:29] <zelrik> I am not sure why var scope = this
[13:35:35] *** klaut has quit IRC
[13:35:46] <Hounddog> "return $http.post
[13:35:48] <zelrik> oh it s not a factory
[13:35:52] *** jstroem has quit IRC
[13:35:55] <zelrik> nvm
[13:35:57] *** juampy has joined #angularjs
[13:36:27] <rafzzz> Shai-Tan: everything, this is 404: http://www.altitude.dev/api/index.php
[13:36:48] <zelrik> rafzzz, it s missing a return
[13:37:02] *** sqwk has joined #angularjs
[13:37:05] <rafzzz> Hounddog: so I return $http.post
[13:37:13] <Shai-Tan> rafzzz: thats my dev box
[13:37:22] <Hounddog> also i dont really understand your code... $http.post(UTL, {}).then(function(promise){ ... return promise;}) what do you actually think what the variable promise contains?
[13:37:31] <Hounddog> *URL
[13:37:34] <Shai-Tan> is the method I am using correct to iterate over the variable?
[13:37:48] <rafzzz> Hounddog: I thought it would just be the response
[13:37:48] *** eamonn has quit IRC
[13:38:05] <rafzzz> Hounddog: but I did some reading and thought then would return some promise I could use
[13:38:06] <Hounddog> rafzzz: yes, but why name it promise?
[13:38:12] *** danielpquinn has joined #angularjs
[13:38:20] <rafzzz> .then I mean
[13:39:03] <Hounddog> rafzzz: https://docs.angularjs.org/api/ng/service/$q
[13:39:19] <rafzzz> Hounddog: I did read this
[13:39:26] <zelrik> I thought it was return $http.post().then(function(res){ return res.data; });
[13:39:40] <rafzzz> Hounddog: Honestly, I didnt understand all that well. I started returning returning $http because I understood that $http returns promise anyway
[13:39:52] <rafzzz> and that $http has $q as dependency
[13:39:52] <Hounddog> zelrik: it is bugt i think he is refering to " Because calling the then method of a promise returns a new derived promise, it is easily possible to create a chain of promises:"
[13:39:58] <Hounddog> *but
[13:40:04] *** intellix has joined #angularjs
[13:40:20] <Hounddog> rafzzz: yes http returns a promise and .then also
[13:40:42] <zelrik> then returns a promise but not the function inside it
[13:40:47] *** Sonderblade has quit IRC
[13:40:47] <Hounddog> exactly
[13:41:01] <rafzzz> I've started returning $http.post now
[13:41:05] <Shai-Tan> ahh, got it
[13:41:09] <Shai-Tan> rafzzz: thanks
[13:41:14] *** Shai-Tan has left #angularjs
[13:41:26] <rafzzz> I cant see any real change in the application at the moment, will keep testing
[13:41:36] <rafzzz> (as in, there's no failing of test yet)
[13:42:26] <rafzzz> RouteChangeSuccess must've been firing too soon because I wasn't returning a the $http promise but just using the .then as promise and returning just data?
[13:42:29] <Hounddog> rafzzz: why your code worked didnt work is. You called Service.get() which then created the http promise returned nothing. Resolve recieved nothing but asynchronusely http was resolved and by chance resolved fast enough
[13:42:40] *** danielpquinn has quit IRC
[13:42:44] <rafzzz> Hounddog: ahh ok
[13:42:56] *** joroc has joined #angularjs
[13:43:04] <zelrik> rafzzz, what does your resolve do?
[13:43:05] <Hounddog> also called racecondition
[13:43:08] <zelrik> I mean
[13:43:10] <zelrik> what does it do
[13:43:54] *** Alina-malina has joined #angularjs
[13:44:20] <rafzzz> resolve is param of ngRoute
[13:44:38] <rafzzz> and it's set of methods to complete before routechangesuccess fires and dom renders
[13:44:45] <rafzzz> and controllers loaded
[13:44:46] <rafzzz> etc.
[13:44:46] <zelrik> Hounddog, does his resolve do anything? I am not that familiar with it, it looks like it s not used
[13:45:16] *** minimoo1 has quit IRC
[13:45:43] <Hounddog> zelrik: well i use it with ui.router and there you can injcet values into a controller
[13:46:05] *** styles has joined #angularjs
[13:46:08] <zelrik> yeah that s what I thought
[13:46:09] <Hounddog> zelrik: but yes, i dont see him using it... now that i look at the controller
[13:46:14] <zelrik> but he s not injecting anything
[13:46:53] <Hounddog> rafzzz: you are using it wrong. zelrik is right
[13:46:58] *** metasansana has joined #angularjs
[13:47:01] *** Willow_ has joined #angularjs
[13:47:02] <rafzzz> Hounddog: I should have access to them on $route, right?
[13:47:05] <zelrik> I only know resolve for $modal
[13:47:14] *** metasansana has quit IRC
[13:47:15] <Hounddog> rafzzz: you reolve get but then you use Inject the service again
[13:47:17] *** scmx has quit IRC
[13:47:20] <zelrik> so I am not sure what it'd do in routes
[13:47:52] <Hounddog> rafzzz: alo Servic.data will be empty
[13:47:55] <lite_> christ
[13:48:01] <lite_> just one of those days with 0 motivation
[13:48:20] <lite_> just happens to be a day where i need a shitload of css to fit
[13:48:22] <lite_> and i hate css
[13:48:22] <zelrik> lite_, you just remind me I need to go to work today
[13:48:29] *** Psi|4ward has left #angularjs
[13:48:34] *** mllie has joined #angularjs
[13:48:34] <Hounddog> rafzzz: why not pass the data directly on?
[13:48:50] <rafzzz> Hounddog: Service.data is not empty
[13:48:54] *** charuru has quit IRC
[13:49:05] <rafzzz> Houndog: it works fine in my hacky hacky way I've done it
[13:49:19] <Hounddog> rafzzz: http://pastebin.com/qq9EzYrr
[13:49:25] <rafzzz> Hounddog: ty
[13:49:36] *** simsketch has quit IRC
[13:49:58] *** bullicon has quit IRC
[13:50:02] <zelrik> looks much better
[13:50:04] *** eamonn has joined #angularjs
[13:50:15] *** d_j_s has joined #angularjs
[13:50:28] *** numproc has joined #angularjs
[13:50:33] *** Sebastien-L has quit IRC
[13:50:42] <Hounddog> havent renamed promise though lol
[13:50:47] *** scmx has joined #angularjs
[13:50:52] <rafzzz> Hounddog: wow, that works pretty good
[13:50:56] *** bolt2in1 has left #angularjs
[13:50:59] *** ceephax has joined #angularjs
[13:51:05] <Hounddog> rafzzz: thats what resolve is used for
[13:51:24] <Hounddog> rafzzz: resolve objects and inject them
[13:51:38] <rafzzz> Hounddog: so nice just passing the methods as params rather than having to re-inject the controllers
[13:51:41] *** lsiv568 has joined #angularjs
[13:51:47] <rafzzz> re-inject into the controllers*
[13:51:57] *** Phil27 has joined #angularjs
[13:52:04] *** Willow_ has quit IRC
[13:52:04] <zelrik> yeah, dont inject controllers
[13:52:09] <zelrik> they dont like to be injected
[13:52:13] <Hounddog> rafzzz: you are not even passing the method. you are passing the data
[13:52:27] *** bengilli_ has joined #angularjs
[13:52:52] *** Click66_ has joined #angularjs
[13:52:55] <zelrik> Hounddog, so I understand that data is built earlier onn that way?
[13:53:04] *** bengillies has quit IRC
[13:53:17] <Hounddog> zelrik: yes, you wait for data to be resolved and then inject it into the controller
[13:53:36] *** Sundar_ has quit IRC
[13:53:52] <Hounddog> its quite handy if you need some variables for initialization
[13:53:52] <zelrik> I havent found a use for it yet but looks neat
[13:54:11] *** danyim has joined #angularjs
[13:54:34] *** Brayniverse has joined #angularjs
[13:54:48] *** Willow_ has joined #angularjs
[13:55:00] <rafzzz> Very good
[13:55:13] *** Oddman is now known as Oddman|away
[13:55:15] <rafzzz> Very, very good, thank you Hounddog, and everyone
[13:55:22] <Hounddog> zelrik: i have a perfect example. I have a app and a widget. Both share resources for the detail view. On the App i take the data for the detail from another service. on the widget i send a request again to the api.
[13:55:23] *** Click66 has quit IRC
[13:55:32] *** phuh has joined #angularjs
[13:55:59] <Hounddog> zelrik: I dont have to change a single line of code in the controller but recieve data from 2 different sources
[13:56:17] *** eamonn has quit IRC
[13:56:22] <zelrik> oh
[13:56:25] <zelrik> :o
[13:57:13] *** Sonderblade has joined #angularjs
[13:57:33] <Hounddog> Well theoretically it works... currently i messed up cause i forgot the widget :p
[13:58:16] *** galigan has joined #angularjs
[13:58:24] <zelrik> I wonder what s the most missing component in angular these days
[13:58:46] *** danyim has quit IRC
[13:58:48] *** mityaz has quit IRC
[13:58:49] *** mogaj has joined #angularjs
[13:58:53] <zelrik> I mean stuff available in jQuery/bootstrap
[13:58:56] <Hounddog> ng-magically-create-the-app-i-am-thinking-of
[13:58:57] <zelrik> but not yet in angularJS
[13:59:05] *** mityaz has joined #angularjs
[13:59:07] <zelrik> lool
[13:59:13] *** Willow_ has quit IRC
[14:00:13] *** bkuberek has joined #angularjs
[14:00:16] <zelrik> I have ported some jquery plugin
[14:00:25] *** Sgeo has quit IRC
[14:00:25] <Hounddog> poor soul
[14:00:30] <zelrik> I even enhanced it to make it more useful
[14:00:34] *** MattWelch has joined #angularjs
[14:00:47] *** tarnus has joined #angularjs
[14:00:49] <Hounddog> what is it?
[14:00:51] <zelrik> I had to for work, I just happened to release it as a module
[14:01:11] *** TimmyTones has quit IRC
[14:01:16] <zelrik> Hounddog, http://alexcppns.github.io/
[14:01:20] <Hounddog> bleh i need to really clean out my codebase for the widget :/
[14:01:44] <zelrik> I am at 10 stars now :3
[14:01:58] <zelrik> I should do a bit of maintenance
[14:02:20] *** Ethix has quit IRC
[14:02:21] *** plitzenberger has quit IRC
[14:03:19] <Hounddog> my most famous module is only at 20 stars but apparently nearly 16k downloads... but not js
[14:03:38] <zelrik> I dont know about the download count
[14:03:47] <zelrik> I dont know how I can check that
[14:04:00] <Hounddog> zelrik: i only know that cause of the package manager https://packagist.org/packages/hounddog/doctrine-data-fixture-module
[14:04:03] *** ineedarobot has quit IRC
[14:04:06] <Hounddog> anyway as said not js
[14:04:08] <Hounddog> so its ot
[14:04:26] <zelrik> I could try to set a counter on my page
[14:04:34] <zelrik> for that I d need a db though
[14:04:47] *** bkuberek has quit IRC
[14:04:51] <Hounddog> need to fix my pet project though
[14:06:30] <zelrik> what s your project
[14:06:45] *** anjumkaiser has quit IRC
[14:07:07] <Hounddog> http://modules.zendframework.com/ want to also throw in some angular here... it broke down a few days ago
[14:07:43] *** pyornkrachzark has quit IRC
[14:07:53] <sqwk> I have an array containing strings of factory names. Can I invoke the same method from each factory using the $injector?
[14:07:59] *** mamarilmanson has joined #angularjs
[14:08:08] *** Willow_ has joined #angularjs
[14:09:01] *** Oddman|away has quit IRC
[14:09:36] <zelrik> oh some php stuff
[14:10:04] <zelrik> I feel I am limiting myself by not learning php
[14:11:15] *** dazs has joined #angularjs
[14:11:35] *** simsketch has joined #angularjs
[14:12:05] *** faviouz has quit IRC
[14:12:50] *** minimoo1 has joined #angularjs
[14:12:55] *** akrikos has joined #angularjs
[14:13:17] *** quantax- has joined #angularjs
[14:13:54] *** ineedarobot has joined #angularjs
[14:14:02] *** Aartsie has quit IRC
[14:14:07] *** ingshtrom has joined #angularjs
[14:14:45] <mllie> I have one method that calls an API
[14:14:49] *** joroc has quit IRC
[14:14:55] *** tomzx is now known as tomzx`afk
[14:15:00] *** tschunde_ has quit IRC
[14:15:09] *** Aartsie has joined #angularjs
[14:15:36] *** tschundeee has joined #angularjs
[14:15:47] <mllie> And I want to call that method when some condition changes. Right now I'm using watch on several variables to call that method. The problem I see is that it gets called several times some times when more than one condition is changing. How do I get around that?
[14:16:01] *** fourq has quit IRC
[14:16:01] *** fourq_ is now known as fourq
[14:16:06] *** fourq__ has joined #angularjs
[14:16:16] <zelrik> set a timeout
[14:16:18] *** kirfu has joined #angularjs
[14:16:21] *** fourq has quit IRC
[14:16:26] *** fourq__ is now known as fourq
[14:16:50] <mllie> zelrik: timeout how?
[14:18:04] *** marr has quit IRC
[14:18:08] <zelrik> if(myTimeOut){ $timeout.cancel(myTimeOut }; var myTimeout = $timeout(function(){ $scope.myService.apiCall(); });
[14:18:26] <zelrik> if(myTimeOut){ $timeout.cancel(myTimeOut }; var myTimeout = $timeout(function(){ $scope.myService.apiCall(); },1000);
[14:18:31] <zelrik> something like that
[14:19:20] *** klaut has joined #angularjs
[14:19:22] *** Phil27 has quit IRC
[14:19:34] *** tschundeee has quit IRC
[14:19:41] *** hswolff has joined #angularjs
[14:20:16] <zelrik> you can also set a blocking variable
[14:20:23] *** lordkryss has quit IRC
[14:20:32] *** guilbep has joined #angularjs
[14:20:36] <zelrik> that you unset in the callback of your request
[14:20:41] *** guilbep has quit IRC
[14:21:07] *** plitzenberger has joined #angularjs
[14:21:07] *** Sebastien-L has joined #angularjs
[14:21:48] *** Cavallari has joined #angularjs
[14:21:58] <mllie> zelrik: true. is that really an good idea then?
[14:22:33] <zelrik> mllie, I gave you suggestions, you decide what s best for your case
[14:22:36] <zelrik> :)
[14:23:07] *** deepy has quit IRC
[14:23:32] *** klaut has quit IRC
[14:23:48] *** jpstone has quit IRC
[14:24:01] <josip_> hello
[14:24:09] *** sk87 has joined #angularjs
[14:24:13] <josip_> i have date object in database
[14:24:21] <josip_> i'm having add new page
[14:24:30] <josip_> wher ei enter the date&time and it saves to db
[14:24:31] <josip_> however
[14:24:33] <josip_> on edit page
[14:24:42] <josip_> i'd like to display date from database as place holder
[14:24:57] <josip_> is that possible and how?
[14:25:17] *** torkel_ has quit IRC
[14:26:37] *** uf6667 has joined #angularjs
[14:26:40] *** azizur has quit IRC
[14:26:56] *** spaceonline has joined #angularjs
[14:27:01] <Petazz> Is it possible to get a form submitted "regularly" as mulipart/form without setting ng-model to each <input>?
[14:27:03] <lite_> do you
[14:27:04] <lite_> think
[14:27:05] <lite_> you could
[14:27:06] <lite_> write
[14:27:07] <lite_> in
[14:27:09] <lite_> longer
[14:27:11] <lite_> sentences?
[14:27:19] *** eamonn has joined #angularjs
[14:27:34] <josip_> why is that a problem'
[14:27:35] <josip_> ?
[14:27:47] *** lucasefe has quit IRC
[14:28:02] <Petazz> josip_: Reusing old large forms and don't want to change them
[14:28:36] <Petazz> Actually it's even a modal which loads a cross domain form
[14:29:23] <galigan> Petazz: you can serialize it and submit it
[14:29:35] <galigan> $post(url, serializedform, … )
[14:29:43] <josip_> Petazz, I asked lite_ why is that a problem
[14:29:50] <josip_> beacuse he was complaining how i write
[14:29:55] <Petazz> : D
[14:30:07] <galigan> josip_: if you write a lot of sentences, you are flooding..
[14:30:16] <Petazz> galigan: Oh, how can I serialize it?
[14:30:25] <josip_> do you seriously think i could write all that in one sentence?
[14:30:49] <lite_> youre taking up 70% of my monitors real estate just typing up a single question. its unescesarry
[14:31:04] <lite_> unnecessary*
[14:31:14] <galigan> josip_: angular.element == jquery
[14:31:15] <josip_> what your resolution? 300*200 or what?
[14:31:19] *** lordkryss has joined #angularjs
[14:31:28] <zelrik> it s not jquery
[14:31:32] <zelrik> it s jqlite
[14:31:34] <zelrik> or so
[14:31:47] *** ppppaul has quit IRC
[14:31:52] *** uf6667 has quit IRC
[14:32:09] *** uf6667 has joined #angularjs
[14:32:24] *** kirfu has quit IRC
[14:32:44] <josip_> hey, does anyone have idea about my problem? so i'm having edit form, with edit date field, and I want to display old date from database as placeholder or something, cause I want user to see old date
[14:33:18] <galigan> Petazz: if u have jquery included before angular angular.element takes jquery …
[14:33:46] *** Shrooms has joined #angularjs
[14:33:54] *** ggrzybek|afk is now known as ggrzybek
[14:35:19] <galigan> jqlite, doesn’t have, jquery serialize methods.. and if you dont want to link your form, with a model.. the only option you have is to iterate over the html elements, get their values and put them on a object
[14:35:25] *** tommmied has joined #angularjs
[14:35:33] *** eamonn has quit IRC
[14:35:54] *** DevAntoine has joined #angularjs
[14:36:11] *** deepy has joined #angularjs
[14:36:25] <galigan> Petazz: bye the end, you can do a document.getElementById(‘idform’).submit()
[14:36:33] *** deepy is now known as Guest77493
[14:36:42] *** ericbarnes has joined #angularjs
[14:36:55] *** ccohn has joined #angularjs
[14:38:03] <mllie> zelrik: haha, true
[14:38:27] <Petazz> galigan: Yeap but that's not ajax then right?
[14:38:45] <Petazz> Submitting forms is still suprisingly difficult
[14:38:52] *** JasonStoltz has joined #angularjs
[14:39:02] *** danielpquinn has joined #angularjs
[14:39:11] *** bmac has joined #angularjs
[14:39:59] *** mchapman has joined #angularjs
[14:40:09] <galigan> Petazz: not, but the same way you can’t submit, you can iterate over the fields, and get the data… but is what jquery.serialize, or whatever function you find do… to use, $http service, you need to get your data from the form and put in an object..
[14:40:48] *** henn1nk has joined #angularjs
[14:40:59] <Petazz> galigan: And jqLite can't do that serialization?
[14:41:02] *** foofoobar has quit IRC
[14:41:09] *** Nicolab has joined #angularjs
[14:41:39] <galigan> Petazz: jqlite, is the default angular.element … but it not includes serialize methods…
[14:41:50] <DevAntoine> is there some coding styles for angular? I don't know how to format controllers/directives/services header with lot of injected parameters
[14:42:41] <Petazz> That is surprising. I'd imagine the browsers provide an easy method of serialization since that's what happens normally when you use form action
[14:42:50] *** joroc has joined #angularjs
[14:43:20] *** danielpquinn has quit IRC
[14:43:20] *** numproc has quit IRC
[14:43:34] *** IJNX has joined #angularjs
[14:43:37] <galigan> Petazz: http://stackoverflow.com/questions/1184624/convert-form-data-to-js-object-with-jquery
[14:43:57] *** ppppaul has joined #angularjs
[14:44:27] *** dariocravero has quit IRC
[14:44:56] *** dariocravero has joined #angularjs
[14:45:07] *** plitzenberger has quit IRC
[14:45:19] *** lw has quit IRC
[14:45:40] *** bullicon has joined #angularjs
[14:46:44] <Petazz> galigan: Hmmh that also seems a bit unsophisticated
[14:46:49] *** Sky[x] has joined #angularjs
[14:46:53] *** minimoo1 has quit IRC
[14:46:53] <Petazz> Might then as well just use the models
[14:47:07] *** IJNX has quit IRC
[14:47:27] <Petazz> The next problem is that I know angular always serializes as json, which I don't wan
[14:47:30] <Petazz> t
[14:48:04] *** alpha080 has quit IRC
[14:48:26] <galigan> Petazz: you can configure the http service not to send data as json/body
[14:48:32] *** teslanick has joined #angularjs
[14:48:34] *** simsketch has quit IRC
[14:48:34] <Petazz> Well somebody else thinks the same as me https://github.com/angular/angular.js/issues/1743
[14:48:38] *** dariocravero has quit IRC
[14:48:46] *** dariocravero has joined #angularjs
[14:48:48] *** simsketch has joined #angularjs
[14:49:00] <Petazz> galigan: Ok, but how about I usually use json, but only once use form-encoded?
[14:49:11] <Petazz> As I have services that use json
[14:49:12] *** Guest77493 has quit IRC
[14:49:30] <raypulver> Petazz: you can change the header and add a function to transformRequest
[14:49:47] <raypulver> ive never done this but i know its possible
[14:49:49] *** DeanH has joined #angularjs
[14:50:01] *** alpha080 has joined #angularjs
[14:50:11] *** mccarrontr1ck has joined #angularjs
[14:50:47] *** evilaliv3 has quit IRC
[14:51:11] *** mogaj has quit IRC
[14:51:42] *** rainboxx has joined #angularjs
[14:52:09] *** digia|away is now known as digia
[14:52:12] <rainboxx> anyone using eclipse and having issues with the finally and catch keywords from promises? if yes, how did you solve this?
[14:52:49] *** mrits has joined #angularjs
[14:53:02] *** captain_morgan has joined #angularjs
[14:53:28] *** Djankie has joined #angularjs
[14:53:35] <Djankie> hi
[14:53:40] *** TuRnaD0 has quit IRC
[14:53:58] *** mehlah has quit IRC
[14:54:00] <xastey> damn my app is starting to load slow :'(
[14:54:19] *** teslanick has left #angularjs
[14:54:43] *** vader has quit IRC
[14:54:47] *** saucey has quit IRC
[14:55:11] *** vader has joined #angularjs
[14:55:27] *** phuh has quit IRC
[14:55:51] <mllie> zelrik: do you have any other suggestions ? :D
[14:57:27] *** imehesz has joined #angularjs
[14:57:33] *** quantax- has quit IRC
[14:57:47] *** mfunkie has joined #angularjs
[14:58:27] *** thomastuts has joined #angularjs
[14:58:29] *** bahaaldine has joined #angularjs
[14:58:59] *** recidive has joined #angularjs
[14:59:25] *** caitp has joined #angularjs
[14:59:35] *** eamonn has joined #angularjs
[14:59:37] *** foofoobar has joined #angularjs
[14:59:43] *** TorchDragon has joined #angularjs
[14:59:52] <Dekans> Hello, I'm doing a file browser web app, is there a best practice for managing history stack?
[15:00:18] *** ceephax has quit IRC
[15:01:01] *** bkuberek has joined #angularjs
[15:01:04] *** klaut has joined #angularjs
[15:01:51] *** bahaaldine has quit IRC
[15:02:46] *** miha- has quit IRC
[15:02:49] *** klaut has quit IRC
[15:04:03] *** galigan has quit IRC
[15:04:11] *** TorchDragon has quit IRC
[15:04:15] <Petazz> Cn I inject $element on a normal function?
[15:04:23] *** fixl has quit IRC
[15:04:25] *** mrits has quit IRC
[15:04:36] *** klaut has joined #angularjs
[15:04:40] <ncbw> might sound silly but can you give a $resource initial data? I would like to be able to use User.update() but don’t want to make a request to ge the user
[15:04:46] *** greengriminal has quit IRC
[15:04:50] *** ccohn has quit IRC
[15:04:53] *** linojon has joined #angularjs
[15:05:00] *** melmoussaoui has joined #angularjs
[15:05:13] *** mmccook has joined #angularjs
[15:05:15] <Petazz> I'm getting an unkown provider
[15:05:24] *** ccohn has joined #angularjs
[15:05:24] *** patrickarlt has joined #angularjs
[15:05:27] *** Sky[x] has quit IRC
[15:05:46] *** bkuberek has quit IRC
[15:07:58] *** mamarilmanson has quit IRC
[15:08:38] *** syed99 has quit IRC
[15:08:40] *** cctom has quit IRC
[15:09:34] *** scmx has quit IRC
[15:09:45] *** ccohn has quit IRC
[15:10:10] *** DrMabuse has quit IRC
[15:10:38] *** intellix has quit IRC
[15:10:43] *** mllie has quit IRC
[15:10:46] <Foxandxss> Petazz: no
[15:10:47] *** amortimer has joined #angularjs
[15:11:01] <Foxandxss> $element and $attrs are special services
[15:11:05] *** ccohn has joined #angularjs
[15:11:10] <Foxandxss> only injectable on a directive's controller
[15:11:15] *** pskrz has joined #angularjs
[15:11:25] *** rafzzz has quit IRC
[15:11:28] <Petazz> Damn
[15:11:30] *** Tidwell has joined #angularjs
[15:11:51] *** lite_ has quit IRC
[15:11:53] <Petazz> I guess there's no sophisticated way of getting a form inside a modal serialized in angular
[15:12:29] *** endash has joined #angularjs
[15:12:49] *** minimoo1 has joined #angularjs
[15:12:53] *** FunnyLookinHat has quit IRC
[15:13:02] *** jKlaus has joined #angularjs
[15:13:15] *** jKlaus has quit IRC
[15:13:17] *** DrMabuse has joined #angularjs
[15:13:31] *** jKlaus has joined #angularjs
[15:14:27] *** lsiv568 has quit IRC
[15:14:51] *** drej has joined #angularjs
[15:15:11] *** saucey has joined #angularjs
[15:15:23] *** fixl has joined #angularjs
[15:15:32] <jKlaus> Hey guys.. I have an app that was upgraded from V1.07 to V1.26. I've already fixed all of the web service interactions but I'm left with an issue of an ng-form that seems to attempt to auto submit when you first click within it
[15:15:36] <jKlaus> any ideas?
[15:15:42] *** melmoussaoui has quit IRC
[15:15:52] *** mettjus has joined #angularjs
[15:16:23] <jKlaus> The form is loaded via a $location redirect. If I click inside the form from that initial load it executes $scope.cancel. My thought is that it attempts to submits and fails validation of some sort?
[15:16:24] <Foxandxss> that is weird
[15:16:26] *** tschundeee has joined #angularjs
[15:16:28] <Foxandxss> never heard about that
[15:16:32] *** caitp has quit IRC
[15:16:48] *** jKlaus has left #angularjs
[15:16:49] *** joroc has quit IRC
[15:17:02] *** jKlaus has joined #angularjs
[15:17:09] *** Aartsie has quit IRC
[15:17:12] <jKlaus> Yeah its pretty strange
[15:17:16] <jKlaus> The form is very basic
[15:17:35] <jKlaus> Would you mind taking a look at the view & controller to see if you can spot the issue?
[15:17:54] *** lsiv568 has joined #angularjs
[15:18:08] <jKlaus> I've never worked with ng-form before.. I'm just upgrading the angualr version to make the app IE11 compatible
[15:18:30] *** guilbep has joined #angularjs
[15:19:50] *** whitebook has joined #angularjs
[15:19:50] *** elrabin has joined #angularjs
[15:20:34] *** tschundeee has quit IRC
[15:20:47] <Petazz> So is there a way to get data out of a form for a post without $element or using ng-model?
[15:20:49] *** Aartsie_ has joined #angularjs
[15:21:04] *** sqwk has quit IRC
[15:21:10] *** bayousoft has joined #angularjs
[15:21:17] *** hugorodrigues has joined #angularjs
[15:21:44] *** encrypt3d_fracti has joined #angularjs
[15:21:46] *** nitsujw has joined #angularjs
[15:21:53] *** BillCriswell has joined #angularjs
[15:22:11] *** mehlah has joined #angularjs
[15:22:12] *** lw has joined #angularjs
[15:22:13] <Aswebb> Does anyone know a good directive for a date navigation? previous - CurrentDateDisplayedHere - next (and I can navigate trough the dates)
[15:22:46] *** whiteboo_ has joined #angularjs
[15:22:48] <jKlaus> Does anyone have experience with an ng-form auto-cancelling when you first click inside said form?
[15:22:57] *** deepy- has joined #angularjs
[15:22:58] *** fedenunez has joined #angularjs
[15:23:54] *** juanlas has joined #angularjs
[15:23:56] *** caitp has joined #angularjs
[15:25:03] *** whitebook has quit IRC
[15:26:00] *** livingstn has joined #angularjs
[15:26:06] *** shaym_ has joined #angularjs
[15:26:59] *** encrypt3d_fracti has quit IRC
[15:27:28] *** ome has quit IRC
[15:27:37] *** henn1nk has quit IRC
[15:27:52] *** recidive has quit IRC
[15:28:02] *** lilVaratep has joined #angularjs
[15:28:11] *** Asiajey has quit IRC
[15:28:23] *** arussel has joined #angularjs
[15:29:11] *** juanlas has quit IRC
[15:29:15] *** lewdev has quit IRC
[15:29:48] <xastey> anyone know how to get ui-sref-active to work with this type of setup http://stackoverflow.com/questions/21988151/aungular-ui-router-child-using-parents-view
[15:29:59] <xastey> basicly with an abstract view
[15:30:07] *** startupality has quit IRC
[15:30:17] *** tarnus has quit IRC
[15:30:35] *** Siecje has joined #angularjs
[15:30:38] *** mrkake has quit IRC
[15:30:47] *** juanlas has joined #angularjs
[15:31:03] *** Djankie has quit IRC
[15:31:12] *** recidive has joined #angularjs
[15:31:29] *** torkel_ has joined #angularjs
[15:32:13] *** Brayniverse has quit IRC
[15:32:20] *** deepy- has quit IRC
[15:32:28] *** marr has joined #angularjs
[15:33:09] *** lewdev has joined #angularjs
[15:33:12] *** btyne has joined #angularjs
[15:33:26] *** msarta has quit IRC
[15:33:46] *** listerine has joined #angularjs
[15:33:52] *** Nizumzen has joined #angularjs
[15:34:11] *** uf6667 has quit IRC
[15:34:21] *** uf6667 has joined #angularjs
[15:34:53] *** FunnyLookinHat has joined #angularjs
[15:35:34] *** lucasefe has joined #angularjs
[15:35:42] *** intellix has joined #angularjs
[15:35:59] *** torkel_ has quit IRC
[15:36:10] *** Aartsie_ has quit IRC
[15:36:24] *** tarnus has joined #angularjs
[15:36:29] *** startupality has joined #angularjs
[15:37:10] *** mmitchel_ has joined #angularjs
[15:37:47] *** sixr420 has quit IRC
[15:37:48] *** whiteboo_ has quit IRC
[15:37:50] <jKlaus> Guys?
[15:37:51] <jKlaus> lol
[15:38:06] <Foxandxss> what
[15:38:15] <Foxandxss> as I Said, that is pretty weird
[15:38:17] <jKlaus> I cannot tell if I have a problem with my ng-Form or if the issue is coming from the $location redirect to it
[15:38:21] <Foxandxss> so no answer is like normal
[15:38:40] <jKlaus> Want to take a look at it?
[15:38:46] *** deepy has joined #angularjs
[15:38:49] *** mrkake has joined #angularjs
[15:38:49] <caitp> suggest you post code
[15:38:57] <Foxandxss> yo be honest, I don't :P
[15:38:59] <caitp> and an example of what the problem is
[15:39:09] *** mykz_ has quit IRC
[15:39:10] *** deepy is now known as Guest22598
[15:39:44] *** danielpquinn has joined #angularjs
[15:39:56] *** bengillies has joined #angularjs
[15:40:04] *** mykz_ has joined #angularjs
[15:40:08] *** mrits has joined #angularjs
[15:40:22] *** francisl has joined #angularjs
[15:40:23] *** bengilli_ has quit IRC
[15:40:25] *** Tidwell has quit IRC
[15:41:14] *** FIFOd[a] has joined #angularjs
[15:41:22] *** Shrooms has quit IRC
[15:41:26] <teslan> using ui-router, i have an unnamed view for "/menu" and "/video" (this much works) and each of these 2 has 3 named views for left/mid/right panels ... i tried adding "views": with entries for '': and "left-panel": etc but the 3 panels do not show up
[15:41:46] *** jeffszusz has joined #angularjs
[15:42:04] *** torkel_ has joined #angularjs
[15:42:12] *** DennisFedco has joined #angularjs
[15:42:18] *** listerine has quit IRC
[15:42:47] *** evilaliv3 has joined #angularjs
[15:43:12] *** Aartsie has joined #angularjs
[15:43:24] <teslan> that is, in the same "views": object can i name all 4 views - the unnamed main view and the 3 named views that the main unnamed view contains?
[15:43:46] *** JimTheDev has joined #angularjs
[15:43:48] <DennisFedco> Hey.. I have a long-ish, possibly complicated question relating to my beginning to use Angular on an existing messy convoluted application, in hopes to simplify it. Where is the best place to possibly ask that kind of question? I was looking for an NG forum, but don't seem to find one, so i came here first..
[15:43:57] *** danielpquinn has quit IRC
[15:44:12] *** jshultz has joined #angularjs
[15:44:26] *** ppppaul has quit IRC
[15:44:35] *** orion1111 has joined #angularjs
[15:44:44] *** sonicparke|bradm has joined #angularjs
[15:44:59] <teslan> what would that NG stand for if not for #angularjs ?
[15:45:23] *** thomastuts has quit IRC
[15:45:26] <DennisFedco> NG == New Generation
[15:45:37] *** recidive has quit IRC
[15:45:51] *** calvinx has joined #angularjs
[15:45:53] <sonicparke|bradm> Prince & New Generation
[15:45:58] <linojon> star trek Next Generation
[15:46:21] <sonicparke|bradm> I think we're dating ourselves now
[15:46:51] *** DerekPerkins has joined #angularjs
[15:47:14] *** cariaso has quit IRC
[15:47:18] *** Guest22598 has quit IRC
[15:47:25] *** mfunkie has quit IRC
[15:47:40] *** nitsujw has quit IRC
[15:48:03] <jKlaus> Here is the link gentlemen https://gist.github.com/jklaus/00fee8fb4dbca149fcc3
[15:48:05] *** nitsujw has joined #angularjs
[15:48:06] <pskrz> drag and drop in protractor e2e tests? got some stackoverflow noise about chaining mouse events. stil the best avenue to take?
[15:48:10] *** mettjus has quit IRC
[15:48:37] *** tomzx`afk is now known as tomzx
[15:48:53] <jKlaus> What happens there is the level-options-admin view/controller use $location.path(..) to redirect to add-new-option view/controller
[15:49:27] <jKlaus> on the initial load of add-new-option the form seems to auto-cancel (possibly auto submit and fail validation?)
[15:49:40] *** andrewhl has joined #angularjs
[15:49:47] <jKlaus> If I refresh add-new-option page everything loads fine though
[15:49:59] <jKlaus> the issues 'seems' to be coming from the $locaiton.path() redirect
[15:50:40] <teslan> 'ng' - though in lc is used as prefix for angularjs ;)
[15:51:05] *** texinwien has joined #angularjs
[15:51:21] <jKlaus> what?
[15:51:36] <jKlaus> ng-form is just an alias to the form directive
[15:52:08] *** mrits has quit IRC
[15:52:18] *** deepy- has joined #angularjs
[15:52:27] *** screamingbanshee has quit IRC
[15:52:29] *** cspra85 has joined #angularjs
[15:52:40] *** recidive has joined #angularjs
[15:53:21] <jKlaus> caitp do you mind looking at that thing?
[15:53:27] *** whitebook has joined #angularjs
[15:53:41] *** uf6668 has joined #angularjs
[15:54:23] *** uf6667 has quit IRC
[15:54:29] <jKlaus> son of a turd
[15:54:38] *** whitebook has quit IRC
[15:54:44] <jKlaus> I changed to just <form> and it works fine
[15:54:45] <jKlaus> hmm
[15:54:46] *** mettjus has joined #angularjs
[15:55:29] *** shackleford has joined #angularjs
[15:55:32] *** khodgson has joined #angularjs
[15:55:33] *** danyim has joined #angularjs
[15:55:49] <jKlaus> has to be an IE8 thing
[15:55:50] *** pbody has joined #angularjs
[15:56:03] <caitp> i can't tell what's wrong with it just from looking at code, i'd need to see it running
[15:56:05] <caitp> heh
[15:56:19] *** el_fuego has joined #angularjs
[15:56:19] *** shackleford has quit IRC
[15:56:49] *** Ilyas has quit IRC
[15:56:49] *** shackleford has joined #angularjs
[15:56:57] <mettjus> hi! is there a way to instruct native filterFilter to perform match only on certain fields of the objects of an array (say passing an array of field names) or should i implement it from scratch?
[15:57:10] *** rchavik has quit IRC
[15:57:35] *** TorchDragon has joined #angularjs
[15:57:41] *** patrickarlt has quit IRC
[15:57:55] *** mfunkie has joined #angularjs
[15:58:20] *** mykz_ has quit IRC
[15:58:25] *** patrickarlt has joined #angularjs
[15:58:38] <jKlaus> caitp.. for w/e reason the ng-form directive seems to screw up in IE8
[15:58:52] <caitp> define "screw up"
[15:58:56] <jKlaus> at least when $location.path() is used
[15:59:03] *** yoshokatana has joined #angularjs
[15:59:11] <caitp> why is ng-form interacting with $location.path()
[15:59:22] <caitp> so many things here remain to be explained
[15:59:22] <jKlaus> if I load the page via new tab, copy and paste URL it loads fine
[15:59:22] *** rainboxx has quit IRC
[15:59:32] <jKlaus> the view that the form is on is loaded via $location.path()
[15:59:33] <caitp> oh, i see
[15:59:36] *** deepy- has quit IRC
[15:59:48] <caitp> i see what you're saying
[15:59:49] *** danyim has quit IRC
[15:59:53] <jKlaus> at any rate.. within the view I repalced ng-form with <form> and now it works fine
[16:00:05] <jKlaus> though I should probably triple verify that
[16:00:07] <jKlaus> h/o
[16:00:20] <caitp> there's a bug in $location, introduced by me --- however it works correctly under certain circumstances
[16:00:33] <caitp> it's been too long since I wrote the fix so I can't remember what those circumstances are
[16:00:46] *** startupality has quit IRC
[16:00:47] <caitp> basically make sure you use absolute urls when you're changing path
[16:00:53] *** uf6668 has quit IRC
[16:01:07] *** uf6667 has joined #angularjs
[16:01:22] *** slainer6_ has joined #angularjs
[16:01:32] *** galigan has joined #angularjs
[16:01:55] *** slainer68 has quit IRC
[16:02:07] <jKlaus> seriously? haha that may be it then. He's doing app relative URLs
[16:02:25] <jKlaus> Do you know what version that bug appeared in?
[16:02:36] <jKlaus> We're using 1.26 i believe
[16:02:42] *** dariocravero has quit IRC
[16:02:58] *** patrickarlt has quit IRC
[16:03:02] <caitp> i can't remember
[16:03:05] <caitp> it was a few months ago
[16:03:23] <caitp> there are issues open about it on github, people are mad at me :c
[16:03:26] <caitp> so it might get reverted
[16:03:45] <caitp> basically browsers that don't support the history api are just a pain to deal with
[16:04:01] *** ankoh has joined #angularjs
[16:04:04] <teslan> could somebody please take a look at my ui-router related problem http://pastebin.com/UAANeScV
[16:04:04] *** bphogan_afk is now known as bphogan
[16:04:09] *** DennisFedco has quit IRC
[16:04:52] *** mfunkie has quit IRC
[16:04:54] <jKlaus> ah.. well thanks for the info caitp. I'm going to change that real quick.. will probably change all .path()'ing to abs URL
[16:06:58] *** ineedarobot has quit IRC
[16:07:19] *** swirlycheetah has joined #angularjs
[16:08:09] <swirlycheetah> what are people's thoughts on Todd Motto's very opinionated styleguide? http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/
[16:08:36] *** greengriminal has joined #angularjs
[16:08:57] *** Planet_EN has quit IRC
[16:09:10] <swirlycheetah> i like the abstraction of your controller/service/directive logic being outside of the angular.module
[16:10:03] <swirlycheetah> will likely use that on my next project
[16:10:14] *** foofoobar has quit IRC
[16:10:14] <caitp> none of that really makes any difference
[16:10:39] *** ankoh has quit IRC
[16:10:43] <caitp> also some incorrect info
[16:10:46] <Foxandxss> who is todd motto? :P
[16:10:55] <Foxandxss> ah, google dev
[16:11:03] <caitp> no, he's not at google
[16:11:11] <sonicparke|bradm> I don't get the very first example. how do you separate your js files using that?
[16:11:15] <caitp> he's a GDE, they invited me to be one too, but I never answered the email
[16:11:18] *** encrypt3d_fracti has joined #angularjs
[16:11:32] <Foxandxss> caitp: what's that?
[16:11:56] *** startupality has joined #angularjs
[16:11:59] <caitp> it's basically a thing where you get to promote google products and speak at conferences and stuff, and in return you get to go to google i/o
[16:12:00] <Foxandxss> ah, I see
[16:12:20] <Foxandxss> everything I Does but without being a GDE
[16:12:22] <Foxandxss> nice
[16:12:29] <jKlaus> it is strange that this issue only occurs when using the ng-form directive, compared to just <form>
[16:12:31] <swirlycheetah> sonicparke|bradm: have a module for each piece of functionality, e.g. angular.module('foo', ['foo.bar]) & angular.module('foo.bar', [ ])
[16:12:33] <jKlaus> eh caitp?
[16:12:39] *** lite_ has joined #angularjs
[16:12:48] *** lsiv568 has quit IRC
[16:13:01] <swirlycheetah> what did he get wrong caitp?
[16:13:02] *** mary5030 has joined #angularjs
[16:13:22] *** ineedarobot has joined #angularjs
[16:13:32] <Foxandxss> caitp: like microsoft's MVP
[16:13:56] <sonicparke|bradm> swirlycheetah: thanks
[16:13:57] *** startupality has quit IRC
[16:14:03] <caitp> swirlycheetah I didn't read the whole thing, but most of the controllerAs explanation is just wrong
[16:14:07] *** sneakertack has joined #angularjs
[16:14:08] *** lsiv568 has joined #angularjs
[16:14:09] *** hswolff has quit IRC
[16:14:09] *** mrlase has joined #angularjs
[16:14:31] <caitp> and kind of misleading about controllerAs
[16:14:32] *** MANCHUCK has joined #angularjs
[16:14:45] <caitp> which leads to confused people filing bugs on angular that get ignored T_T
[16:14:53] *** juanlas has quit IRC
[16:15:03] <swirlycheetah> caitp =(
[16:15:04] <Foxandxss> I agree
[16:15:10] <Foxandxss> I Wouldn't use controller as tod o that
[16:15:15] *** lilVaratep has quit IRC
[16:15:16] *** arussel has quit IRC
[16:15:19] <Foxandxss> in fact I don't use it :P
[16:15:26] <swirlycheetah> i've avoided controllerAs as of yet
[16:15:34] *** torkel_ has quit IRC
[16:15:48] *** walden|afk is now known as walden
[16:15:50] <frege> is there a gallery like this that also supports video? (youtube videos) http://www.script-tutorials.com/demos/366/index.html
[16:15:52] <swirlycheetah> not sure why, i think i just like the comfort of $scope
[16:16:02] <tommmied> is there a way to prevent executing the run phase during unit testing?
[16:16:06] *** AngularNb has quit IRC
[16:16:10] *** enn has joined #angularjs
[16:16:29] <sonicparke|bradm> caitp: care to write a rebuttal styleguide so we get it right? :-)
[16:16:52] *** tschundeee has joined #angularjs
[16:16:55] <caitp> i don't think people need a styleguide
[16:16:57] <Foxandxss> I don't see that kind of guides that important
[16:17:02] *** Destos has joined #angularjs
[16:17:04] *** nicholaswyoung has joined #angularjs
[16:17:15] <sonicparke|bradm> good point. just always looking to do things the "right" way
[16:17:17] <Foxandxss> normally a team has their own way to work
[16:17:22] *** telagraphic has joined #angularjs
[16:17:29] *** lite_ has quit IRC
[16:17:42] <caitp> it's kind of like the endless arguments about soft-tabs vs hard tabs indentation
[16:17:43] <Foxandxss> sonicparke|bradm: that is not good
[16:17:44] <caitp> a
[16:17:44] *** raghunayyar has quit IRC
[16:17:48] <caitp> and what the tabwidth should be
[16:17:49] <enn> Hello. I am confused by this piece of documentation for orderBy. It says the predicate argument can be one of several options, the first of which is "Getter function. The result of this function will be sorted using the <, =, > operator."
[16:17:54] <caitp> at the end of the day it's just completely irrelevant
[16:18:04] *** startupality has joined #angularjs
[16:18:08] <Foxandxss> caitp: I Agree, it should only be relevant inside a team
[16:18:14] <sonicparke|bradm> Faxandxss: no? since there's often no a "right" way?
[16:18:14] <Foxandxss> if we decide on X, everybody does that
[16:18:33] *** vader has quit IRC
[16:18:37] <Foxandxss> sonicparke|bradm: that mindset tends to slow your productivity
[16:18:53] <sonicparke|bradm> damn...that's what's happening.
[16:19:00] <sonicparke|bradm> true
[16:19:06] *** mrits has joined #angularjs
[16:19:09] <swirlycheetah> *hides* i'll keep quiet now haha
[16:19:13] <enn> the = operator is an assignment operator, isn't it?
[16:19:14] <Foxandxss> what are you afraid of? making bad judgements?
[16:19:17] <accelerate> sonicparke|bradm: this is one reason why I like to write small throw-away prototypes.
[16:19:19] <caitp> perfect is the enemy of good
[16:19:36] <accelerate> One of the side-effects of writing such code is that you discover on your own what sort of style choices are good/bad for you.
[16:19:38] <caitp> don't do it perfect, just do it :u
[16:19:52] <accelerate> and since it's throw-away code, you don't have to live with the bad choices for the next year. ;)
[16:19:59] <accelerate> so you can experiment.
[16:20:01] *** startupality has quit IRC
[16:20:01] <swirlycheetah> this is what i get hung up with too much
[16:20:09] <swirlycheetah> thinking i'm doing it wrong
[16:20:22] *** jamto11 has joined #angularjs
[16:20:24] *** atomical has joined #angularjs
[16:20:31] <accelerate> besides, it's like writing an essay. You write a first draft, and that takes maybe 60%-80% of the time. Then you write your final draft from scratch and it's much quicker because you did the hard thinking already.
[16:20:41] <sonicparke|bradm> I'm still learning and jumped into development in the middle of my career so I'm trying to make the best decisions when I code and not get beat over the head with "why'd you do it wrong" when I ask questions or whatever
[16:20:44] *** captain_morgan has quit IRC
[16:20:46] <caitp> it's okay to feel like you're doing things wrong
[16:20:46] <sonicparke|bradm> and Im a tad bit OCD
[16:20:47] *** startupality has joined #angularjs
[16:20:51] <caitp> because there are 3 broad classes of things
[16:20:52] <sonicparke|bradm> well that's good.
[16:20:55] <sonicparke|bradm> that actually helps
[16:20:55] *** tgomes has quit IRC
[16:20:57] <sonicparke|bradm> :-)
[16:20:59] <caitp> things you know, things you don't know, and things you don't know that you don't know
[16:21:01] <sonicparke|bradm> thans
[16:21:06] <caitp> and things you know is the smallest class, always
[16:21:11] *** dcherman has joined #angularjs
[16:21:16] <Foxandxss> sonicparke|bradm: I am the oficial angular'js cookie fortune
[16:21:20] <Foxandxss> fortune cookie*
[16:21:22] <caitp> so it's good to be humble and doubt your own code :>
[16:21:24] <accelerate> i would stress the importance of not ignoring that third class of things, the unknown-unknowns.
[16:21:24] <Foxandxss> so let me do my magic with you
[16:21:28] * Foxandxss thinks
[16:21:30] <Foxandxss> ah
[16:21:34] <swirlycheetah> thanks caitp
[16:21:38] <accelerate> The worst developers I've had to work with, they always seem to not realize that class of things exists.
[16:21:43] <Foxandxss> sonicparke|bradm: good judgement comes with experience, experience comes with bad judgement
[16:21:54] <accelerate> Foxandxss: heh, I like that saying.
[16:21:58] <accelerate> I've never heard it before.
[16:22:00] <Foxandxss> I love it
[16:22:17] *** Willow_ has quit IRC
[16:22:22] <sonicparke|bradm> Thanks for the encouragement and enlightenment. Good stuff
[16:22:29] <Foxandxss> don't worry if you do it wrong the first time, you will get better with the time
[16:22:47] <sonicparke|bradm> Foxandxss: That is a good one. but turn it over tell me what the chinese word of the day is
[16:22:51] <swirlycheetah> yeah it's nice to hear and somewhat humbling
[16:22:55] *** Willow_ has joined #angularjs
[16:22:55] <Foxandxss> I know that the feel is "Yah, but if I do it right at first, that is something I get done"
[16:22:59] <Foxandxss> that is completely bs
[16:23:06] *** tschundeee has quit IRC
[16:23:10] *** moritzs has joined #angularjs
[16:23:15] *** azizur has joined #angularjs
[16:23:32] *** MANCHUCK has quit IRC
[16:23:36] <Foxandxss> I suffered all of that
[16:23:36] <sonicparke|bradm> I never really got a foundation in javascript and kinda jumped right it to developing so sometimes it's the things I think that should be stupid simple that kick my but
[16:23:37] <sonicparke|bradm> butt
[16:23:46] *** dob_ has joined #angularjs
[16:23:49] *** xavia has joined #angularjs
[16:23:56] *** Willow_ has quit IRC
[16:23:59] *** oste has joined #angularjs
[16:24:05] *** martin____ has joined #angularjs
[16:24:07] <sonicparke|bradm> I suffer from that and am guilty of it as well
[16:24:10] <martin____> greettttings
[16:24:18] *** MANCHUCK has joined #angularjs
[16:24:19] <caitp> that's because javascript has piles of "wtf" scenarios
[16:24:20] *** Willow_ has joined #angularjs
[16:24:27] <sonicparke|bradm> good
[16:24:37] <caitp> it's ridiculous and someone should have smacked brendan while he was designing it
[16:24:41] <sonicparke|bradm> ha
[16:24:58] *** startupality has quit IRC
[16:25:06] <Foxandxss> caitp: it is lovely to read good js novels
[16:25:18] <Foxandxss> and keep reading: this was a design failure
[16:25:32] *** startupality has joined #angularjs
[16:25:37] *** lsiv568 has quit IRC
[16:25:51] *** lsiv568 has joined #angularjs
[16:26:03] *** speakingcode has joined #angularjs
[16:26:04] <sonicparke|bradm> so with so many design failures I guess that translates into design wins becasue of hte failures
[16:26:16] *** pbody has quit IRC
[16:26:17] <sonicparke|bradm> kinda like the fortune
[16:26:18] *** titano_ has joined #angularjs
[16:26:24] <Foxandxss> there are a lot of workarounds to those design problems
[16:27:06] *** lilVaratep has joined #angularjs
[16:27:17] *** startupality has quit IRC
[16:27:24] <caitp> if you can't implement a compiler or runtime for a language in the language itself, it's a bad language
[16:27:33] <caitp> but brendan didn't get that memo
[16:27:36] *** azizur has quit IRC
[16:27:37] <caitp> and many other memos
[16:28:00] <sonicparke|bradm> interesting.
[16:28:03] *** DerekPerkins has quit IRC
[16:28:13] <caitp> nevertheless, it's a very successful language, so that's what we got
[16:28:14] <martin____> i defined a controoler and I'm injectin a service into it. I do vm.userService = userService; to store a reference of the service in my controller. The userService got a function logout. when I bind to this function nothing happens. Is it possible that my plan cant work?
[16:28:15] <sonicparke|bradm> so no compile is not neccessarily good
[16:28:15] *** Nicolab has quit IRC
[16:28:16] *** galigan has quit IRC
[16:28:51] *** toastynerd has joined #angularjs
[16:29:01] *** dylukes has joined #angularjs
[16:29:03] <duckchat> caitp: is that a quote from someone??
[16:29:13] <caitp> no
[16:29:21] *** davi has joined #angularjs
[16:29:22] <caitp> i'm sure other people have said similar things though
[16:29:25] <sonicparke|bradm> it's a quote from caitp
[16:29:26] <duckchat> caitp: original thought?
[16:29:27] *** davi has quit IRC
[16:29:27] *** davi has joined #angularjs
[16:30:04] *** cphil has joined #angularjs
[16:30:24] <blackkbot> wait so doesn't the computer still have to compile and execute most everything we run on our computers? isn't that what its doing when its "loading..."
[16:30:40] *** L42 has joined #angularjs
[16:30:41] <caitp> what
[16:30:42] *** khodgson has quit IRC
[16:30:59] <caitp> i think you just took something I said and understood something very different from it
[16:31:05] *** mary5030_ has joined #angularjs
[16:31:11] *** MANCHUCK has quit IRC
[16:31:11] <blackkbot> maybe
[16:31:18] *** wentz has joined #angularjs
[16:31:28] *** khodgson has joined #angularjs
[16:31:43] *** MANCHUCK has joined #angularjs
[16:31:51] <caitp> so, the gcc toolchain can compile itself, which is useful, but also serves as a proof that the languages it implements are capable of doing real things (like implementing compilers)
[16:31:51] *** fbenoit has joined #angularjs
[16:31:56] <caitp> gcc isn't the only one
[16:32:17] <caitp> but javascript can't really do this, because there is a huge difference between the sandboxed languages understanding of the world, and the runtimes
[16:32:30] *** torkel_ has joined #angularjs
[16:32:32] *** whitebook has joined #angularjs
[16:32:42] <telagraphic> using angular file upload with a rails backend, but not sure how to properly set up formdata for rails to save uploaded files...
[16:32:49] *** Sky[x] has joined #angularjs
[16:33:04] *** juanlas has joined #angularjs
[16:33:06] *** josip_ has quit IRC
[16:33:13] <telagraphic> i'm getting the data sent, but not sure how to grab the image from rails 4 params hash https://gist.github.com/telagraphic/52d1354b9a0f4e43d69d
[16:33:17] *** Nizumzen has quit IRC
[16:33:29] *** Sna4x8 has quit IRC
[16:33:30] <caitp> and things like exotic objects make it essentially impossible to implement correctly
[16:33:35] <caitp> (in javascript)
[16:33:39] <telagraphic> anyone have any insight on to how grab the uploaded file?
[16:34:07] <caitp> not the end of the world, but it definitely is something that sucks
[16:34:08] *** mary5030_ has quit IRC
[16:34:15] *** whitebook has quit IRC
[16:34:28] *** mary5030 has quit IRC
[16:34:29] <sonicparke|bradm> caitp: so many things to google so I can keep up with you :-)
[16:34:31] *** upsell5 has joined #angularjs
[16:34:34] *** fairchild has joined #angularjs
[16:34:34] <blackkbot> yeah but a lot of problems are avoided when you don't have strict data types for an internet programming language like buffer overflows
[16:34:41] *** mary5030 has joined #angularjs
[16:35:03] <blackkbot> or the low level data type structures
[16:35:21] <caitp> assuming the implementation of those algorithms are correct in all cases
[16:35:21] *** Guest28075 has joined #angularjs
[16:35:27] *** dariocravero has joined #angularjs
[16:35:29] <caitp> which is not always true
[16:36:08] *** telagraphic___ has joined #angularjs
[16:36:43] *** rho_ has joined #angularjs
[16:36:46] *** s3shs has joined #angularjs
[16:36:49] *** titano_ has quit IRC
[16:37:03] <gjvc> caitp: have you seen crockfords origins talk?
[16:37:07] *** chrisshattuck has joined #angularjs
[16:37:10] *** uf6667 has quit IRC
[16:37:16] <duckchat> caitp: I think I jumped in the middle of your conversation, but, I'm interested in knowing are you pro javascript or con javascript?
[16:37:16] *** telagraphic_ has joined #angularjs
[16:37:33] *** JosephBergevin has joined #angularjs
[16:37:52] *** telagraphic has quit IRC
[16:37:57] <caitp> i'm neutral
[16:38:01] <blackkbot> (<< same here about the jumping in) but i like javascript for what it is...
[16:38:05] <gjvc> i normally direct people in the direction of alan kay's talks but crockford's have a little more contemprary context
[16:38:05] *** swirlycheetah has quit IRC
[16:38:27] <guilbep> hmm I'm looking at a strange thing over here.. I have an ng-class with several conditon using '&&' and the condition is not evaluated correctly the first time.. but when I do a part per part of the expression the values are correct does anyone have seen somehing like this before? gonna try a fiddle
[16:38:30] <blackkbot> i hate the dom
[16:38:34] *** whitebook has joined #angularjs
[16:38:42] *** stretch has joined #angularjs
[16:38:49] *** lilVaratep has quit IRC
[16:38:58] <duckchat> i have a long history avoiding javascript
[16:39:00] <stretch> Hi all.
[16:39:06] <gjvc> duckchat: yeah
[16:39:06] *** stretch is now known as Guest33502
[16:39:19] *** uf6667 has joined #angularjs
[16:39:21] <Foxandxss> caitp: I have my doubts :P
[16:39:25] *** AlexZanf has joined #angularjs
[16:39:36] <caitp> on the downside, javascript has a lot of complete nonsense in it
[16:39:42] <duckchat> agreed
[16:39:47] *** lsiv568 has quit IRC
[16:39:48] <blackkbot> yeah not like php or any other programming language
[16:39:53] *** AciD` has quit IRC
[16:39:54] <caitp> on the upside, I can do most of my work in javascript on a laptop and not need goma or anything
[16:39:56] *** Gooder` has joined #angularjs
[16:40:11] <Guest33502> I'm trying to find some info on supporting browser default search for dynamically loaded angular content and have had no luck on the interwebs...
[16:40:16] *** startupality has joined #angularjs
[16:40:30] *** danielpquinn has joined #angularjs
[16:40:34] <caitp> Guest33502, what?
[16:40:35] *** marcospgp has quit IRC
[16:40:37] <telagraphic_> any one familiar with the angular file upload directive @ https://github.com/danialfarid/angular-file-upload
[16:40:41] <Guest33502> Anyone know why to support command+f browser type search in dunamically loaded angular content?
[16:40:41] <Foxandxss> I am going to do a 12 hours workshop to teach angular, testing and backend integration. I hope I can "sell" javascript to ruby guys
[16:40:43] <caitp> "supporting browser default search"?
[16:40:51] *** ngbot has joined #angularjs
[16:40:52] <ngbot> [angular.js] IgorMinar pushed 1 new commit to master: http://git.io/k7RF1A
[16:40:52] <ngbot> angular.js/master c54228f Igor Minar: perf($parse): don't use reflective calls in generated functions...
[16:40:52] *** ngbot has left #angularjs
[16:41:00] <caitp> what browser are you trying with
[16:41:36] <Guest33502> caitp, chrome on mac
[16:41:50] *** JosephBergevin has quit IRC
[16:41:52] *** AciD` has joined #angularjs
[16:42:00] *** fairchild has quit IRC
[16:42:04] *** icfantv has joined #angularjs
[16:42:05] *** cyrielo has joined #angularjs
[16:42:09] <Guest33502> would be ctrl+f on windows and then use the browser search to find text match but none of my dynamic content gets searched
[16:42:10] <caitp> it normally just works by default
[16:42:14] *** speakingcode has quit IRC
[16:42:24] *** mfunkie has joined #angularjs
[16:42:34] *** moritzs has quit IRC
[16:42:34] *** bkuberek has joined #angularjs
[16:42:43] <caitp> and if it doesn't work, http://crbug.com
[16:42:53] <caitp> because js has no way to make that work better
[16:42:55] *** bkuberek has quit IRC
[16:43:02] <Guest33502> caitp, oh interesting, it don't have any luck with my list
[16:43:22] *** whitebook has quit IRC
[16:43:28] *** nitsujw has quit IRC
[16:43:30] *** JosephSilber has joined #angularjs
[16:43:32] *** bkuberek has joined #angularjs
[16:43:38] <Guest33502> caitp, thanks, will have a look there
[16:43:53] *** speakingcode has joined #angularjs
[16:43:55] *** uf6667 has quit IRC
[16:43:56] *** phuh has joined #angularjs
[16:44:26] *** rzec has joined #angularjs
[16:44:53] *** Jae has quit IRC
[16:44:54] <rzec> any help on this would be great : http://stackoverflow.com/questions/24936649/getting-web-driver-logging-information-running-protractor
[16:44:57] *** decached has left #angularjs
[16:45:09] *** danielpquinn has quit IRC
[16:45:17] *** ineedarobot has quit IRC
[16:45:32] *** Sonderblade has quit IRC
[16:45:34] *** toastynerd has quit IRC
[16:45:36] *** mpaarating has joined #angularjs
[16:45:42] <guilbep> Well.. I can't reproduce it.. it's working on my fiddle.. maybe something else
[16:46:19] *** yoshokatana_ has joined #angularjs
[16:46:35] *** blurredbits has joined #angularjs
[16:46:56] *** facundor has joined #angularjs
[16:47:21] *** telagraphic_ has quit IRC
[16:47:36] *** martin____ has quit IRC
[16:47:42] *** Guest28075 has quit IRC
[16:47:43] *** lsiv568 has joined #angularjs
[16:48:22] *** cyrielo has quit IRC
[16:48:35] *** uf6667 has joined #angularjs
[16:48:52] *** Guest89068 has joined #angularjs
[16:49:01] *** ngoyal has joined #angularjs
[16:49:27] *** AngularUI has joined #angularjs
[16:49:27] <AngularUI> [ng-grid] AgDude opened pull request #1312: add excludeProperties option for getColumnsFromData (3.0-pinned-containers...3.0-pinned-containers) http://git.io/TsN_9w
[16:49:27] *** AngularUI has left #angularjs
[16:49:38] *** patrickarlt has joined #angularjs
[16:49:46] *** jlambert has joined #angularjs
[16:50:47] *** encrypt3d_fracti has quit IRC
[16:50:54] *** dariocravero has quit IRC
[16:51:10] *** jdcasey has quit IRC
[16:51:22] *** jdcasey has joined #angularjs
[16:52:03] *** mary5030 has quit IRC
[16:52:25] *** mary5030 has joined #angularjs
[16:52:38] *** AngularUI has joined #angularjs
[16:52:38] <AngularUI> [ng-grid] AgDude closed pull request #1312: add excludeProperties option for getColumnsFromData (3.0-pinned-containers...3.0-pinned-containers) http://git.io/TsN_9w
[16:52:38] *** AngularUI has left #angularjs
[16:52:40] *** JosephBergevin has joined #angularjs
[16:53:04] *** stodan has quit IRC
[16:53:10] *** nitsujw has joined #angularjs
[16:54:01] *** mikronaz has quit IRC
[16:54:08] <nfroidure> the real JavaScript force is on being verbose enough to be highly readable while allowing fast coding
[16:54:48] *** mary5030 has quit IRC
[16:55:01] *** GeertV__ has quit IRC
[16:55:08] *** mrlase has left #angularjs
[16:55:23] *** ukristen has joined #angularjs
[16:55:29] *** mary5030 has joined #angularjs
[16:56:26] *** AngularUI has joined #angularjs
[16:56:26] <AngularUI> [ng-grid] AgDude reopened pull request #1312: add excludeProperties option for getColumnsFromData (3.0-pinned-containers...3.0-pinned-containers) http://git.io/TsN_9w
[16:56:26] *** AngularUI has left #angularjs
[16:56:39] *** Schtive has joined #angularjs
[16:56:59] *** ncbw has quit IRC
[16:57:44] *** ggrzybek has quit IRC
[16:58:03] <duckchat> my contribution to the open source world: https://github.com/jduckett01/ScapeGoatJS
[16:58:25] *** crewshin has joined #angularjs
[16:58:57] *** ineedarobot has joined #angularjs
[16:59:04] <jaawerth> man I wish I'd discovered devdocs sooner. Huge time-saver, plus now I can refer to documentation on the subway when I have no internet!
[16:59:25] *** ccohn has quit IRC
[16:59:37] *** secondjeff has joined #angularjs
[16:59:39] *** ccohn has joined #angularjs
[16:59:50] *** jae has joined #angularjs
[16:59:51] *** taternuts|work has joined #angularjs
[16:59:59] *** sysko has joined #angularjs
[17:00:21] *** jae is now known as Jae
[17:00:26] *** FIFOd[a] has quit IRC
[17:00:33] *** ukristen has quit IRC
[17:00:38] *** boneskull has joined #angularjs
[17:00:45] *** fixl has quit IRC
[17:01:22] *** Silne30 has joined #angularjs
[17:01:39] *** fink has joined #angularjs
[17:01:49] *** azizur has joined #angularjs
[17:02:00] *** niko has joined #angularjs
[17:02:02] *** FIFOd[a] has joined #angularjs
[17:02:08] *** wentz has quit IRC
[17:02:18] *** nitsujw has quit IRC
[17:02:24] *** Oddman has joined #angularjs
[17:02:38] <tommmied> how does angular handle test fixtures? What is the best way to load json into test cases?
[17:02:48] *** nitsujw has joined #angularjs
[17:02:48] *** uchuff has quit IRC
[17:02:51] *** amargherio has joined #angularjs
[17:02:57] *** AngularUI has joined #angularjs
[17:02:57] <AngularUI> [ng-grid] swalters closed pull request #1312: add excludeProperties option for getColumnsFromData (3.0-pinned-containers...3.0-pinned-containers) http://git.io/TsN_9w
[17:02:57] *** AngularUI has left #angularjs
[17:03:01] <fink> hello. i created myApp.value('focus', 0); and Ctrl1 updates it and Ctrl2 should show it and update it whenever it gets modified. i cant make it work with $watch
[17:03:03] *** Cydmax has quit IRC
[17:03:33] *** dve has quit IRC
[17:04:03] *** scmx has joined #angularjs
[17:04:05] *** whitebook has joined #angularjs
[17:04:10] *** secondjeff has quit IRC
[17:04:19] *** uf6667 has quit IRC
[17:04:27] *** torkel_ has quit IRC
[17:04:29] *** Guest33502 has quit IRC
[17:04:32] *** uf6667 has joined #angularjs
[17:04:39] *** shinnya has joined #angularjs
[17:04:50] *** Guest89068 has quit IRC
[17:05:05] *** mspier_off is now known as mspier
[17:05:23] *** boneskull has quit IRC
[17:05:52] *** Snugug has joined #angularjs
[17:05:53] *** deepy- has joined #angularjs
[17:05:57] *** Xethron has quit IRC
[17:06:15] *** ppppaul has joined #angularjs
[17:06:44] *** phuh has quit IRC
[17:06:47] *** uchuff has joined #angularjs
[17:06:55] *** phuh has joined #angularjs
[17:06:57] *** uchuff has quit IRC
[17:07:21] *** trave has joined #angularjs
[17:07:24] *** Click66_ has quit IRC
[17:07:32] *** svycka has quit IRC
[17:08:17] *** uchuff has joined #angularjs
[17:08:28] *** phuh has quit IRC
[17:08:54] *** minimoo1 has quit IRC
[17:09:04] *** pscanf has joined #angularjs
[17:09:17] *** faviouz has joined #angularjs
[17:09:43] *** iateadonut has joined #angularjs
[17:09:43] <juanlas> any good ideas on how to set a constant but with data from the server?
[17:09:48] *** AndyFTP has quit IRC
[17:09:57] <juanlas> can i use the constant provider?
[17:09:58] *** iateadonut has quit IRC
[17:10:03] *** ngoyal has quit IRC
[17:10:55] *** Snugug has quit IRC
[17:11:03] *** danielpquinn has joined #angularjs
[17:11:04] *** iateadonut has joined #angularjs
[17:11:06] *** FIFOd[a] has quit IRC
[17:11:19] *** tschundeee has joined #angularjs
[17:11:19] *** S-Work has quit IRC
[17:11:20] *** iateadonut has quit IRC
[17:11:23] *** mmccook has quit IRC
[17:11:58] *** davi has quit IRC
[17:11:58] *** iateadonut has joined #angularjs
[17:12:12] *** sk87 has quit IRC
[17:12:14] *** iateadonut has quit IRC
[17:12:29] *** FIFOd[a] has joined #angularjs
[17:13:11] *** wiherek has joined #angularjs
[17:13:11] *** maxj has joined #angularjs
[17:13:12] <wiherek> hi
[17:13:17] *** iateadonut has joined #angularjs
[17:13:22] <juanlas> howdy
[17:13:23] *** deepy- has quit IRC
[17:13:32] *** startupality has quit IRC
[17:13:36] *** iateadonut has quit IRC
[17:13:38] <wiherek> is there some ultra simple way to create two-way data binding between model and $location.search()?
[17:13:38] *** HypnotiX has joined #angularjs
[17:14:03] *** krawek has joined #angularjs
[17:14:03] *** krawek has joined #angularjs
[17:14:45] *** maxj has quit IRC
[17:14:52] <wiherek> hm I guess I could just create an object like $scope.location = $location
[17:14:56] *** HypnotiX1 has joined #angularjs
[17:15:03] *** startupality has joined #angularjs
[17:15:47] *** void_0__ has joined #angularjs
[17:15:50] <juanlas> what exactly are you trying to do
[17:15:56] *** kbiela has joined #angularjs
[17:16:03] *** faviouz has quit IRC
[17:16:13] <wiherek> exactly i am trying to do a restful search module
[17:16:26] *** Aswebb has quit IRC
[17:16:47] *** uchuff has quit IRC
[17:16:49] <wiherek> and im pretty much done, it's just that having two watchers - one for location, the second for $scope variable, is cumbersome
[17:17:17] *** Planet_EN has joined #angularjs
[17:17:18] *** nitsujw has quit IRC
[17:17:18] *** mnngfltg has quit IRC
[17:17:31] *** cthrax has joined #angularjs
[17:17:54] *** bkuberek_ has joined #angularjs
[17:17:56] *** HypnotiX1 has quit IRC
[17:18:07] *** HypnotiX has quit IRC
[17:18:17] <blackkbot> i feel like i should make a lazy exercise blog post just because of the irony
[17:19:40] *** tangorri has joined #angularjs
[17:19:45] *** uf6667 has quit IRC
[17:19:49] *** tote_ has quit IRC
[17:19:55] *** uf6667 has joined #angularjs
[17:20:33] *** arussel has joined #angularjs
[17:21:30] *** hugoleodev has joined #angularjs
[17:21:30] <hugoleodev> Hi
[17:21:32] *** bkuberek has quit IRC
[17:21:42] <hugoleodev> Hi guys
[17:21:47] *** mehlah has quit IRC
[17:21:52] <hugoleodev> I have a question
[17:21:58] *** recidive has quit IRC
[17:22:13] *** mmccook has joined #angularjs
[17:22:39] *** recidive has joined #angularjs
[17:22:54] *** gauravsaini03 has quit IRC
[17:23:04] *** startupality has quit IRC
[17:23:15] *** dshap has joined #angularjs
[17:23:15] <hugoleodev> I research for some ways to implement a secure authentication in SPA app in angularjs
[17:23:21] *** shaym_ has quit IRC
[17:23:31] *** jKlaus has quit IRC
[17:23:48] *** startupality has joined #angularjs
[17:23:50] *** uf6667 has quit IRC
[17:24:07] *** uf6667 has joined #angularjs
[17:24:15] *** jKlaus has joined #angularjs
[17:24:16] <Foxandxss> and what are your conclusions?
[17:24:30] <cthrax> hugoleodev, I found this helpful https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec
[17:24:31] *** mettjus has quit IRC
[17:24:39] *** Nayan has joined #angularjs
[17:24:42] *** patricka_ has joined #angularjs
[17:24:52] <cthrax> Foxandxss, security is a lie!
[17:24:58] *** torkel_ has joined #angularjs
[17:25:02] <Foxandxss> a necessary lie
[17:25:13] *** alanp has quit IRC
[17:25:15] *** TyrfingMjolnir has joined #angularjs
[17:25:18] <cthrax> it's like the close door button on elevators
[17:25:25] <cthrax> doesn't actually do anything, but makes people feel better
[17:25:29] <dshap> Hey all - does angular’s form validation system support multiple fields with the same name? for example a bunch of <input name=“email”> created via ng-repeat. can those all be added to my form and validated?
[17:25:31] <hugoleodev> @cthrax thanks for reply
[17:25:37] <cthrax> np
[17:25:54] <hugoleodev> I will see this link right now
[17:25:56] <Foxandxss> hugoleodev: have you considered JWT?
[17:26:05] *** ccohn has quit IRC
[17:26:06] *** ccohn_ has joined #angularjs
[17:26:10] *** armdale has joined #angularjs
[17:26:31] *** jamto11 has quit IRC
[17:26:34] *** visionary has joined #angularjs
[17:26:46] <hugoleodev> @Foxandxss I have started to learn about jwt
[17:27:19] <hugoleodev> @Foxandxss but I don't know very well
[17:27:31] <Foxandxss> http://angular-tips.com/blog/2014/05/json-web-tokens-introduction/
[17:27:33] *** L42 has quit IRC
[17:27:38] <Foxandxss> http://angular-tips.com/blog/2014/05/json-web-tokens-examples/
[17:27:53] *** arussel has left #angularjs
[17:27:54] *** patrickarlt has quit IRC
[17:27:58] <hugoleodev> @Foxandxss Thanks so much
[17:28:44] *** encrypt3d_fracti has joined #angularjs
[17:29:03] *** alekibango has joined #angularjs
[17:29:22] *** mewm has quit IRC
[17:29:26] *** rzec has quit IRC
[17:29:42] *** torkel_ has quit IRC
[17:29:56] *** m1hael has left #angularjs
[17:30:21] *** mehlah has joined #angularjs
[17:30:33] *** lsiv568 has quit IRC
[17:30:49] *** Cydmax has joined #angularjs
[17:31:13] *** mettjus has joined #angularjs
[17:31:18] *** dweave has joined #angularjs
[17:31:27] *** Aartsie has quit IRC
[17:31:28] *** hswolff has joined #angularjs
[17:31:35] <dweave> hey all having some trouble with ng-if. can someone see why this isn’t working?
[17:31:36] <dweave> http://jsfiddle.net/danweaver06/gU2Sw/
[17:31:41] <jKlaus> If you were writing an app that gets data via a web service would you get all of the objects from the web service and store them in rootscope so you only need to get them once or would you re-get them in each scope/controller/view?
[17:31:56] *** mehlah has quit IRC
[17:32:06] <Foxandxss> there are services too jKlaus
[17:32:25] *** iateadonut has joined #angularjs
[17:32:43] *** iateadonut has quit IRC
[17:33:09] <jKlaus> Foxandxss, they have the service/model only performing the web service interaction. It does not actually store any of the data within itself.
[17:33:18] *** foobarbazbat has joined #angularjs
[17:33:22] <Foxandxss> it could
[17:33:25] <jKlaus> Ie, Model.GetData(), not Model.Data
[17:33:39] *** bkuberek_ has quit IRC
[17:33:42] *** krawek has quit IRC
[17:33:44] *** iateadonut has joined #angularjs
[17:33:46] <jKlaus> How would you achieve that?
[17:33:56] <Foxandxss> it is a singleton
[17:33:58] *** galigan has joined #angularjs
[17:34:01] *** iateadonut has quit IRC
[17:34:02] <Foxandxss> just save it on a varialbe
[17:34:19] *** bkuberek has joined #angularjs
[17:34:20] <dweave> anyone know why this doesn’t work http://jsfiddle.net/danweaver06/gU2Sw/ ?
[17:34:20] *** mykz_ has joined #angularjs
[17:34:29] <jKlaus> Well how do you go about executing the get and everything?
[17:34:32] *** krawek has joined #angularjs
[17:34:39] <oniijin> function someService(){ var allMyShit = {}'
[17:34:46] *** jtu has joined #angularjs
[17:34:52] *** ncbw has joined #angularjs
[17:35:00] <Foxandxss> jKlaus: check if there is any saved data, if so, return it, if not, query it
[17:35:01] <pskrz> dweave: try ng-if vidya==true
[17:35:06] <Foxandxss> that would be a solution
[17:35:32] <dweave> pskrz nope
[17:35:40] <jKlaus> How do you go about getting the data initially? Would you have the query execute as part of the instantiation of the singleton?
[17:35:49] <Foxandxss> dweave: ng-if was introduced in angular 1.2
[17:35:53] <Foxandxss> that is using angular 1.0.5
[17:35:56] <Foxandxss> which have yeeears
[17:36:02] <Foxandxss> not that much, but much time
[17:36:04] *** bengillies has quit IRC
[17:36:14] <dweave> oh woops i changed that and i think it didn’t propogate jsfiddle does weird things
[17:36:17] <Foxandxss> jKlaus: you could if you want
[17:36:20] *** JesseEichar_ has quit IRC
[17:36:23] <Foxandxss> use plunker
[17:36:29] <Foxandxss> usually I don't even open fiddles
[17:36:36] *** conan_the_destro has joined #angularjs
[17:36:37] <oniijin> dont play with ng in fiddle
[17:36:37] <oniijin> ew
[17:36:43] <oniijin> actualyl dont play with fiddle period
[17:36:48] *** guilbep has quit IRC
[17:37:00] <dweave> i’ll try it thanks
[17:37:07] <pskrz> oniijin: i was just thinking how much i like it, what's wrong with fiddle in your opinon?
[17:37:09] *** mronoffon_clone has joined #angularjs
[17:37:16] <Foxandxss> I will add it to hosts and redirect to some tits
[17:37:19] <oniijin> it's impossible to view things
[17:37:27] *** calumet has joined #angularjs
[17:37:29] <oniijin> and bugs out a lot for people
[17:37:35] <Foxandxss> ugly
[17:37:41] *** alekibango has quit IRC
[17:37:41] <Foxandxss> you can't add more than one file
[17:37:43] <Foxandxss> or html
[17:37:44] <oniijin> if youw ant to use something quick, jsbin at least lets you toggle panels
[17:37:45] <mronoffon_clone> hello everyone!
[17:37:52] *** mkc has joined #angularjs
[17:38:02] <Foxandxss> and that thingy of hiding the header is bs
[17:38:04] *** JesseEichar_ has joined #angularjs
[17:38:05] *** fairchild has joined #angularjs
[17:38:11] *** bengillies has joined #angularjs
[17:38:18] *** jaequery has joined #angularjs
[17:38:47] *** jtu has left #angularjs
[17:39:11] *** Oddman has quit IRC
[17:39:27] *** jchamberlain has joined #angularjs
[17:39:27] *** hugoleodev has quit IRC
[17:39:36] *** jaequery has quit IRC
[17:39:47] *** plitzenberger has joined #angularjs
[17:39:49] <mronoffon_clone> when using viewsets for auth, how do i redirect to a view that renders 'home.html' after successful login?
[17:39:52] *** hugoleodev has joined #angularjs
[17:40:04] *** jobelenus has joined #angularjs
[17:40:09] <oniijin> hey Foxandxss have spain question for u
[17:40:11] *** jk-5 is now known as jk-5|gone
[17:40:28] *** alpha080 has quit IRC
[17:40:37] *** JosephBergevin has quit IRC
[17:40:58] *** jklaus_ has joined #angularjs
[17:41:00] *** Aswebb has joined #angularjs
[17:41:09] *** cthrax has quit IRC
[17:41:13] *** Nayan has quit IRC
[17:42:15] *** hugoleodev has quit IRC
[17:42:20] *** jKlaus has quit IRC
[17:42:54] *** dshap has quit IRC
[17:43:03] *** senayar has quit IRC
[17:43:08] *** spencercarnage has joined #angularjs
[17:43:43] *** pscanf has quit IRC
[17:44:28] *** mykz_ has quit IRC
[17:44:53] *** Nizumzen has joined #angularjs
[17:45:10] <Foxandxss> oniijin: sure
[17:45:14] *** senayar has joined #angularjs
[17:45:30] *** VeeWee has quit IRC
[17:45:48] <oniijin> we need to fly from bcn to pmi, then from ibz back to bcn
[17:46:02] *** alanp has joined #angularjs
[17:46:27] <oniijin> on my flight search site, the only real airline listed it air europa, but they don't have direct flights from ibz to bcn. wondering if there was a site you know of to search for options
[17:46:36] *** hannesvdvreken has quit IRC
[17:46:55] <ratsupremacy> Hey, is there a simple way to "listen" to $location route changes? I don't want to use the router, just want to run a function when my hash URL changes.
[17:47:16] *** sonofdirt has joined #angularjs
[17:47:22] <oniijin> $locationChangeStart
[17:47:30] <oniijin> $locationChangeSuccess
[17:48:01] <ratsupremacy> ta
[17:48:02] *** Hackwar1 has quit IRC
[17:48:02] *** plitzenberger has quit IRC
[17:48:12] *** Hackwar has joined #angularjs
[17:48:24] *** shorne has quit IRC
[17:48:29] *** artisangoose has joined #angularjs
[17:48:55] *** galigan has quit IRC
[17:48:56] *** nitsujw has joined #angularjs
[17:49:06] *** krawek has quit IRC
[17:49:32] *** mrded has joined #angularjs
[17:49:47] *** ineedarobot has quit IRC
[17:49:59] *** rho_ is now known as rho
[17:50:19] *** mven_ has joined #angularjs
[17:50:44] *** mtsr has quit IRC
[17:51:31] *** fbenoit has quit IRC
[17:51:52] *** pscanf has joined #angularjs
[17:52:37] *** Xethron has joined #angularjs
[17:52:37] *** Xethron has joined #angularjs
[17:52:40] *** mattwynne has quit IRC
[17:52:58] *** mattwynne has joined #angularjs
[17:53:08] *** frankblizzard has quit IRC
[17:53:24] *** galigan has joined #angularjs
[17:53:32] *** mrded has quit IRC
[17:53:44] *** amedia has joined #angularjs
[17:53:58] *** bbrown has joined #angularjs
[17:54:18] *** lite_ has joined #angularjs
[17:54:34] *** RedOrangeZ has quit IRC
[17:55:04] *** Gambit- has joined #angularjs
[17:55:15] <galigan> oniijin: i’m also spanish, living in pmi! Till next week i move to bcn. Try, vueling.com. is the other option for going from ibiza to bcn.
[17:55:41] *** _TAS has quit IRC
[17:55:46] *** RedOrangeZ has joined #angularjs
[17:56:07] <oniijin> o hey thanks
[17:56:20] <oniijin> i didnt want to fly ghetto airline like ryanair
[17:56:31] <oniijin> bc they end up charging more than real airline with all the hidden fees
[17:57:29] <galigan> not a lot of options… i usually travel to barcelona, and the real options for price and service, in order, are: aireuropa, and vueling..
[17:57:35] <galigan> if i can never flight with ryn
[17:57:48] *** hugoleodev has joined #angularjs
[17:58:21] <oniijin> air europa looked great for bcn-pmi
[17:58:31] <oniijin> but they dont fly direct from ibz to bcn
[17:58:33] *** matiasow has joined #angularjs
[17:58:34] <oniijin> it's like 9 hours lol
[17:58:57] *** shinnya has quit IRC
[17:59:02] *** jacuqesdancona has quit IRC
[17:59:02] *** sharondio has quit IRC
[17:59:17] *** mven_ has quit IRC
[17:59:36] *** ncv has joined #angularjs
[17:59:39] *** jacuqesdancona has joined #angularjs
[18:00:12] *** Ilyas has joined #angularjs
[18:00:16] <dweave> is video with ng-src inside an ng-if still a problem?
[18:00:18] <dweave> http://jsfiddle.net/danweaver06/gU2Sw/
[18:00:23] <dweave> thought that was resolved
[18:00:29] *** klaut has quit IRC
[18:00:55] *** mven_ has joined #angularjs
[18:01:01] *** AngularUI has joined #angularjs
[18:01:02] <AngularUI> [ng-grid] kbrimble opened pull request #1313: Add maxHeight option to flexible-height plugin (master...master) http://git.io/WjHJkA
[18:01:02] *** AngularUI has left #angularjs
[18:02:30] <mronoffon_clone> anyone?
[18:02:39] *** DerekPerkins has joined #angularjs
[18:02:58] *** mfunkie has quit IRC
[18:03:44] *** amargherio has quit IRC
[18:03:51] *** amargherio has joined #angularjs
[18:04:11] *** jacuqesdancona has quit IRC
[18:04:33] *** Snugug has joined #angularjs
[18:05:19] <jaawerth> mronoffon_clone: so you already have it redirecting to the login page when not authenticated? That's usually the harder of the sides of doing auth
[18:06:15] <jaawerth> mronoffon_clone: anyway, it's pretty common to just do it with an "authenticated" event on $rootScope
[18:06:18] *** JosephBergevin has joined #angularjs
[18:06:35] <mronoffon_clone> @jasswerth: thanks
[18:07:06] *** matiasow has quit IRC
[18:07:35] *** DerekPerkins_ has joined #angularjs
[18:07:47] *** plysiu has quit IRC
[18:08:02] *** startupality has quit IRC
[18:08:26] *** deepy has joined #angularjs
[18:08:32] <dweave> hey strange problem in chrome with video and ng-src. I think chrome thinks video is already in dom and fails to load it a second time when it’s nested inside an ng-if like so: http://jsfiddle.net/danweaver06/gU2Sw/
[18:08:36] *** jklaus_ has quit IRC
[18:08:39] <dweave> anyone experience this? works fine in safari
[18:08:48] *** deepy is now known as Guest12899
[18:09:15] *** jklaus_ has joined #angularjs
[18:09:24] <dweave> sometimes you have to switch it on and off a few times to see the bug
[18:09:33] *** mehlah has joined #angularjs
[18:09:37] *** Natsu- has quit IRC
[18:09:55] <shackleford> what would be the proper name for $get? is it a get service in angular?
[18:10:19] *** d_j_s has left #angularjs
[18:10:21] *** ccohn_ has quit IRC
[18:10:39] *** KernelCurry has joined #angularjs
[18:10:56] *** ccohn has joined #angularjs
[18:10:58] *** mchammer has quit IRC
[18:10:59] *** jaequery has joined #angularjs
[18:11:12] *** plysiu has joined #angularjs
[18:11:19] *** night-owl2 has joined #angularjs
[18:11:20] *** jaequery has quit IRC
[18:11:33] *** DerekPerkins has quit IRC
[18:11:47] *** jaequery has joined #angularjs
[18:11:59] *** Corealis has joined #angularjs
[18:12:13] *** volk_ has joined #angularjs
[18:12:22] <volk_> hey guys, just wondering where you would stick “helper” functions
[18:12:46] <oniijin> service
[18:12:52] *** dve has joined #angularjs
[18:12:52] <Corealis> I would have placed it in a service in a "core" module
[18:13:03] *** nfroidure has quit IRC
[18:13:07] *** pluma has joined #angularjs
[18:13:53] *** dhcar_AFK is now known as dhcar
[18:13:57] *** ineedarobot has joined #angularjs
[18:14:06] <Corealis> .."core" module if the helper function is re-usable across multiple projects
[18:14:14] *** mspier is now known as mspier_off
[18:15:20] *** ccohn has quit IRC
[18:16:44] *** cthrax has joined #angularjs
[18:17:42] *** MikaAK has joined #angularjs
[18:17:49] *** simb has joined #angularjs
[18:18:20] *** patrick99e99 has joined #angularjs
[18:18:35] *** ngoyal has joined #angularjs
[18:19:25] *** fedenunez1 has joined #angularjs
[18:19:33] *** dariocravero has joined #angularjs
[18:19:36] *** ngoyal has joined #angularjs
[18:19:55] *** MaxV has quit IRC
[18:20:20] *** hugorodrigues has quit IRC
[18:20:32] *** JosephSilber has quit IRC
[18:21:11] <patrick99e99> hey guys, is there a way in UIRouter to have a resolve use the value of another resolve? in other words resolve: { a: function(someObj) { return someObj.thing; }, b: function() { return this.a() };
[18:21:11] *** Joulse has quit IRC
[18:21:37] *** fedenunez has quit IRC
[18:21:40] <patrick99e99> for example..
[18:21:42] *** plitzenberger has joined #angularjs
[18:21:53] <patrick99e99> using 'b' in a controller, would reference a...
[18:22:03] *** mettjus has quit IRC
[18:22:05] *** matiasow has joined #angularjs
[18:22:10] *** calvinx has quit IRC
[18:22:28] *** jpstone has joined #angularjs
[18:23:55] *** dariocra_ has joined #angularjs
[18:24:20] *** DevAntoine has quit IRC
[18:24:36] *** sysko has quit IRC
[18:24:58] *** dariocr__ has joined #angularjs
[18:25:57] *** juampy is now known as juampy_backlater
[18:26:29] *** phuh has joined #angularjs
[18:26:51] *** wiherek has quit IRC
[18:26:57] *** dariocravero has quit IRC
[18:27:05] *** torkel_ has joined #angularjs
[18:27:18] *** visionary has quit IRC
[18:27:34] *** fedenunez1 has quit IRC
[18:27:59] *** asdofindia has joined #angularjs
[18:28:34] *** dariocra_ has quit IRC
[18:28:49] *** hydrozen has joined #angularjs
[18:28:57] *** arabot has joined #angularjs
[18:29:04] *** arabot has quit IRC
[18:29:28] *** disorder20 has quit IRC
[18:30:05] *** patricka_ has quit IRC
[18:30:17] *** jk-5|gone is now known as jk-5
[18:30:29] *** jobelenus_ has joined #angularjs
[18:30:38] <Foxandxss> check the wiki
[18:30:43] <Foxandxss> I believe there is an entry for that
[18:31:01] *** itsmeandrewd has joined #angularjs
[18:31:31] *** upsell5 has quit IRC
[18:31:47] *** fairchild is now known as fairchild_away
[18:31:59] *** Scymex has joined #angularjs
[18:32:14] *** jobelenus has quit IRC
[18:32:14] *** jobelenus_ is now known as jobelenus
[18:32:15] *** Schtive has quit IRC
[18:32:22] *** patrickarlt has joined #angularjs
[18:32:23] *** scmx has quit IRC
[18:32:27] *** tsalb has joined #angularjs
[18:32:44] *** fairchild_away has quit IRC
[18:34:06] *** hydrozen has quit IRC
[18:34:33] *** bluesm has quit IRC
[18:34:47] *** sneakertack has quit IRC
[18:35:09] *** ineedarobot has quit IRC
[18:35:29] <patrick99e99> Foxandxss: were you talking to me
[18:35:38] <Foxandxss> yes
[18:35:40] <patrick99e99> I was looking through the docs but didnt see anything about resolves referencing each other
[18:36:13] *** kbiela_ has joined #angularjs
[18:36:42] *** fink has quit IRC
[18:36:46] <oniijin> uirouter has a semi hidden wiki
[18:36:53] <oniijin> that's sep from the docs
[18:37:00] <oniijin> ninjawiki
[18:37:12] *** matiasow has quit IRC
[18:37:27] *** uf6667 has quit IRC
[18:37:30] <patrick99e99> are you talking about https://github.com/angular-ui/ui-router/wiki ?
[18:38:33] *** _jpfm has quit IRC
[18:38:35] *** dweave has quit IRC
[18:39:26] *** intellix has quit IRC
[18:39:34] *** kbiela has quit IRC
[18:39:51] *** snapwich has joined #angularjs
[18:39:56] *** _tpavel has quit IRC
[18:40:17] *** kbiela_ has quit IRC
[18:40:18] *** sigurding has quit IRC
[18:40:52] *** nitsujw has quit IRC
[18:40:58] *** dweave has joined #angularjs
[18:41:17] *** dweave has left #angularjs
[18:41:18] *** mpaarating has quit IRC
[18:42:07] *** hydrozen has joined #angularjs
[18:42:17] *** Sky[x] has quit IRC
[18:42:20] *** hydrozen has quit IRC
[18:42:36] *** dariocr__ has quit IRC
[18:43:45] *** phuh has quit IRC
[18:43:46] *** jamto11 has joined #angularjs
[18:43:48] *** Rahul_Roy has joined #angularjs
[18:43:54] <exodys> I got a question about Express.js. In Windows IIS you can host multiple sites on port 80 by "Binding" the hostname. e.g sub1.domain.com, sub2.domain.com bound to port 80. ANd it's two different apps. Can you do something like that in ExpressJS?
[18:44:07] <Foxandxss> wrong channel
[18:44:08] *** phuh has joined #angularjs
[18:44:19] *** fedenunez has joined #angularjs
[18:44:56] *** azizur has quit IRC
[18:45:31] *** walden is now known as walden|brb
[18:48:18] *** ncbw has quit IRC
[18:48:25] *** Dimlock has quit IRC
[18:48:37] *** ngoyal has quit IRC
[18:48:46] *** nitsujw has joined #angularjs
[18:49:25] *** bencc has joined #angularjs
[18:49:49] *** lilVaratep has joined #angularjs
[18:49:51] *** lsiv568 has joined #angularjs
[18:50:00] *** Wizek has quit IRC
[18:50:11] *** pluma has quit IRC
[18:50:13] *** richiebkr has joined #angularjs
[18:50:30] *** ineedarobot has joined #angularjs
[18:50:45] *** subnl has joined #angularjs
[18:50:50] *** whunt has joined #angularjs
[18:51:41] *** ngoyal has joined #angularjs
[18:53:25] *** retzloff has joined #angularjs
[18:53:28] *** InezK_away is now known as InezK
[18:53:33] *** lilVaratep has quit IRC
[18:54:23] *** visionary has joined #angularjs
[18:54:32] *** night-owl2 has quit IRC
[18:54:47] *** nemothekid has joined #angularjs
[18:55:34] *** Snugug has quit IRC
[18:55:49] *** eamonn has quit IRC
[18:55:59] *** Planet_EN has quit IRC
[18:56:09] *** RobinBAwesome has joined #angularjs
[18:56:13] *** vintik has joined #angularjs
[18:56:23] *** ccohn has joined #angularjs
[18:56:31] *** Hounddog has quit IRC
[18:56:46] *** kbalderson has joined #angularjs
[18:57:12] *** benjamingr has joined #angularjs
[18:57:23] <visionary> I have an angular app that is using an api that returns json unless the user session ends in which case it redirects to an html page with 200 response.
[18:57:43] *** wallerdev has joined #angularjs
[18:57:47] *** Snugug has joined #angularjs
[18:58:08] *** Schtive has joined #angularjs
[18:58:09] <visionary> so the service is checking the success response like this
[18:58:10] <visionary> if (hdrs['content-type'] && hdrs['content-type'].indexOf("application/json") == -1)
[18:58:17] <chovy> Angular webinar about to start: https://www4.gotomeeting.com/register/286926335?Portal=www4.gotowebinar.com
[18:58:17] <sonicparke|bradm> so I finally registed an IRC nick which is why I had to change from bradmc to sonicparke and I still can't post in ##javascript channel. What might I be doing wrong?
[18:58:21] *** danizord has joined #angularjs
[18:58:41] <visionary> and if this is true the app directs you the the login page...
[18:59:16] *** MaxV has joined #angularjs
[18:59:20] *** slyfer has quit IRC
[18:59:27] *** armdale has quit IRC
[18:59:55] <visionary> is there a better way to detect this redirect or html content type as it is not working that well...
[19:00:30] <visionary> depending if the service expects an object or array...?
[19:00:34] *** armdale has joined #angularjs
[19:00:48] *** MaxV has quit IRC
[19:01:07] *** toastynerd has joined #angularjs
[19:01:12] *** disorder20 has joined #angularjs
[19:01:18] *** pibu7 has joined #angularjs
[19:01:27] *** mchapman has quit IRC
[19:01:38] *** nitsujw has quit IRC
[19:01:48] *** Fire-Dragon-DoL has joined #angularjs
[19:01:56] *** moritzs has joined #angularjs
[19:02:01] *** nitsujw has joined #angularjs
[19:02:32] *** secondjeff has joined #angularjs
[19:02:43] *** bullicon has quit IRC
[19:02:54] *** plitzenberger has quit IRC
[19:03:13] *** InezK is now known as InezK_away
[19:03:28] *** orion1111 has quit IRC
[19:03:28] *** jareddlc has joined #angularjs
[19:03:39] <chovy> visionary: check for 302
[19:03:40] *** khodgson has quit IRC
[19:03:56] *** khodgson has joined #angularjs
[19:03:58] <chovy> or 301
[19:04:04] <visionary> i am seeing 200
[19:04:16] <chovy> how is it redirecting with 200?
[19:04:37] *** jamto11 has quit IRC
[19:04:38] *** Snugug has quit IRC
[19:05:08] *** bzitzow has joined #angularjs
[19:05:12] <visionary> not sure, i am not in control of the api
[19:05:18] *** cswelin has quit IRC
[19:05:24] <chovy> i think your seeing 302 -> 200
[19:05:52] *** toastynerd has quit IRC
[19:05:52] *** cswelin has joined #angularjs
[19:05:54] *** pscanf has quit IRC
[19:06:01] *** {DV8} has joined #angularjs
[19:06:06] *** ineedarobot has quit IRC
[19:06:11] *** tfennelly has quit IRC
[19:06:54] *** chrisshattuck has quit IRC
[19:07:20] *** secondjeff has quit IRC
[19:08:11] *** chrisshattuck has joined #angularjs
[19:08:17] <visionary> Content-Type: text/html;charset=UTF-8
[19:08:20] *** jobelenus has quit IRC
[19:08:21] *** bengillies has quit IRC
[19:08:22] *** jobelenus_ has joined #angularjs
[19:08:43] *** rhp has joined #angularjs
[19:08:53] *** torkel_ has quit IRC
[19:09:08] *** walden|brb is now known as walden
[19:09:08] *** blueadept has joined #angularjs
[19:09:08] *** blueadept has joined #angularjs
[19:09:13] *** waylon999 has joined #angularjs
[19:09:58] *** retzloff has quit IRC
[19:09:59] *** spencercarnage has quit IRC
[19:10:14] *** boneskull has joined #angularjs
[19:10:16] *** jacuqesdancona has joined #angularjs
[19:10:16] *** DrMabuse has quit IRC
[19:10:45] *** OddDuck has joined #angularjs
[19:11:03] <chovy> visionary: hit it with curl -I
[19:11:46] *** slainer6_ has quit IRC
[19:12:18] *** moritzs has quit IRC
[19:12:19] *** mpaarating has joined #angularjs
[19:12:55] *** mehlah has quit IRC
[19:13:15] <Trow> hi
[19:13:30] *** apetro_ has joined #angularjs
[19:13:47] *** MANCHUCK has quit IRC
[19:14:02] *** slainer68 has joined #angularjs
[19:14:11] *** slainer68 has quit IRC
[19:14:36] *** MANCHUCK has joined #angularjs
[19:14:40] <Trow> i have a problem when i switch to other language the link in the adress bar chanhe once i click but it doesnt load the right json file // it loads it only when i refresh the page
[19:14:42] <Trow> http://pastebin.com/3jCMtwTE
[19:14:44] *** jacuqesdancona has quit IRC
[19:15:24] *** greggsi has quit IRC
[19:17:22] *** thomasreggi has joined #angularjs
[19:17:25] *** mven_ has quit IRC
[19:17:33] *** AxldenieD has quit IRC
[19:18:58] *** Aliks_ has joined #angularjs
[19:19:10] *** XoRoN has joined #angularjs
[19:19:23] *** JAAulde has joined #angularjs
[19:19:28] *** simeon has joined #angularjs
[19:19:38] *** simb has quit IRC
[19:19:42] <JAAulde> morning all
[19:19:50] *** JesseEichar_ has quit IRC
[19:20:06] *** Mouzi has quit IRC
[19:20:17] *** InezK_away is now known as InezK
[19:20:20] *** Nizumzen has quit IRC
[19:20:23] *** davi has joined #angularjs
[19:20:29] *** Mouzi has joined #angularjs
[19:20:47] *** mfunkie has joined #angularjs
[19:21:11] *** MuffinMan` has joined #angularjs
[19:21:15] *** jk-5 is now known as jk-5|gone
[19:21:38] *** Gooder` has quit IRC
[19:21:53] *** upsell5 has joined #angularjs
[19:21:54] *** jstimm has joined #angularjs
[19:21:58] *** MANCHUCK has quit IRC
[19:22:06] *** nitsujw has quit IRC
[19:22:10] *** jstimm has quit IRC
[19:22:20] *** nitsujw has joined #angularjs
[19:22:20] *** arntempelgibbarn has quit IRC
[19:22:26] <JAAulde> of the various angular markdown packages available in bower, is any considered to be better than the others?
[19:22:47] *** MANCHUCK has joined #angularjs
[19:23:13] *** stirlingw has joined #angularjs
[19:24:32] *** tandy has quit IRC
[19:24:33] *** plitzenberger has joined #angularjs
[19:24:34] *** michaelm has joined #angularjs
[19:24:44] *** whunt has quit IRC
[19:24:48] *** galigan has quit IRC
[19:24:53] *** pscanf has joined #angularjs
[19:24:54] *** tandy has joined #angularjs
[19:25:03] *** vintik has quit IRC
[19:25:43] *** nanoyak has joined #angularjs
[19:25:45] *** whunt has joined #angularjs
[19:26:29] *** bencc has quit IRC
[19:26:34] *** zwacky has quit IRC
[19:26:44] *** kbalderson has quit IRC
[19:26:46] *** fifthofwry has joined #angularjs
[19:27:00] *** tandy has quit IRC
[19:28:04] *** davi has quit IRC
[19:28:21] *** mchapman has joined #angularjs
[19:29:01] *** KernelCurry has quit IRC
[19:29:34] *** KernelCurry has joined #angularjs
[19:29:42] *** arussel has joined #angularjs
[19:29:48] *** dve has quit IRC
[19:29:51] *** cctom has joined #angularjs
[19:30:22] *** negval has quit IRC
[19:30:25] *** dve has joined #angularjs
[19:30:45] <visionary> chovy: HTTP/1.1 302 Found
[19:31:30] *** charlie_sanders has quit IRC
[19:31:39] *** plysiu has quit IRC
[19:31:41] *** vintik has joined #angularjs
[19:31:45] <chovy> visionary: exactly
[19:31:48] <chovy> check for that
[19:32:04] *** khodgson has quit IRC
[19:32:08] *** zumba_addict has joined #angularjs
[19:32:11] <chovy> if ( status.code === 302 ) { //they redirected me to home }
[19:32:13] *** AciD` has quit IRC
[19:32:13] *** AciD` has joined #angularjs
[19:32:29] *** richiebkr has quit IRC
[19:32:31] *** mlerq has quit IRC
[19:32:43] *** khodgson has joined #angularjs
[19:32:46] *** spencercarnage has joined #angularjs
[19:33:00] <chovy> that's a shitty api though. they should be serving 401 unauthorized
[19:33:07] *** heidi has joined #angularjs
[19:33:48] *** tandy has joined #angularjs
[19:33:51] *** ajk27 has quit IRC
[19:34:14] *** mfunkie has quit IRC
[19:34:23] *** calumet has quit IRC
[19:34:26] *** yogurt_truck has joined #angularjs
[19:34:33] *** dve has quit IRC
[19:35:36] *** MikaAK has quit IRC
[19:35:45] <visionary> chovy: yep
[19:35:46] *** tschundeee has quit IRC
[19:36:26] *** tschundeee has joined #angularjs
[19:36:27] *** fairchild has joined #angularjs
[19:37:20] *** fairchild has quit IRC
[19:37:59] *** Wizek has joined #angularjs
[19:38:04] *** Sebastien-L has quit IRC
[19:38:29] *** Wizek has joined #angularjs
[19:38:34] *** eamonn has joined #angularjs
[19:38:40] <visionary> chovy: seems like i can't capture 302 from angular...
[19:38:51] *** mfunkie has joined #angularjs
[19:39:07] *** fairchild has joined #angularjs
[19:39:15] *** szymek_ has joined #angularjs
[19:39:22] *** teeray has joined #angularjs
[19:39:30] *** fairchild is now known as fairchild_away
[19:40:20] *** jtimon has joined #angularjs
[19:40:29] *** encrypt3d_fracti has quit IRC
[19:40:31] *** fairchild_away has quit IRC
[19:40:31] *** shackleford has quit IRC
[19:40:33] *** tschundeee has quit IRC
[19:40:50] *** wilmoore has joined #angularjs
[19:41:18] *** bphogan is now known as bphogan_afk
[19:41:29] *** AlexZanf has quit IRC
[19:41:35] *** MikaAK has joined #angularjs
[19:42:07] *** blueadept has quit IRC
[19:42:11] *** fairchild has joined #angularjs
[19:42:19] *** cctom has quit IRC
[19:42:43] *** mven_ has joined #angularjs
[19:42:48] *** MaxV has joined #angularjs
[19:42:51] *** bphogan_afk is now known as bphogan
[19:43:15] *** ajk27 has joined #angularjs
[19:43:45] *** phuh has quit IRC
[19:43:45] *** hugoleodev has quit IRC
[19:43:58] *** cctom has joined #angularjs
[19:44:03] *** hugoleodev has joined #angularjs
[19:44:11] *** phuh has joined #angularjs
[19:44:14] *** jkremser has quit IRC
[19:44:16] *** mfunkie has quit IRC
[19:44:33] *** kbalderson has joined #angularjs
[19:44:56] *** oal has left #angularjs
[19:46:04] *** ajk27 has quit IRC
[19:46:04] *** cthrax has quit IRC
[19:46:05] *** conan_the_destro has quit IRC
[19:46:06] *** greggsi has joined #angularjs
[19:46:23] *** ajk27 has joined #angularjs
[19:46:29] *** e-dard has joined #angularjs
[19:46:40] *** eamonn has quit IRC
[19:47:01] *** conan_the_destro has joined #angularjs
[19:47:15] *** plitzenberger has quit IRC
[19:47:23] *** ngoyal has quit IRC
[19:47:29] *** yoshokatana_ has joined #angularjs
[19:47:31] *** amargherio has quit IRC
[19:47:33] *** yoshokatana_ has quit IRC
[19:47:41] *** galigan has joined #angularjs
[19:47:51] *** MaxV has quit IRC
[19:47:53] *** greggsi_ has joined #angularjs
[19:47:55] <e-dard> I need to implement authentication in my angular app, which is achieved by sending user/pass to a 3rd party api. I'd like to check for something in localStorage, and then redirect to login form if missing
[19:47:59] <e-dard> What's the best way to do that?
[19:48:18] *** lw has quit IRC
[19:48:24] <e-dard> Is it necessary to have a route for login, or will a controller/view do without a specific route?
[19:48:24] *** greggsi has quit IRC
[19:49:18] *** cigarshark has joined #angularjs
[19:49:19] *** htowngangsta has joined #angularjs
[19:50:08] *** tangorri has quit IRC
[19:50:24] *** bkuberek_ has joined #angularjs
[19:50:36] <jaawerth> e-dard: This should get you on the right track http://frederiknakstad.com/2013/01/21/authentication-in-single-page-applications-with-angular-js/
[19:50:43] <JonathanNeal> $http.get returns a Promise. The success callback I pass into .then should return a Promise as well. How do I return Promises in Angular without polyfilling window.Promise http://caniuse.com/promises ?
[19:50:46] <e-dard> jaawerth: haha just found that!
[19:50:49] <jaawerth> e-dard: the short answer is, you want a route for login, yes
[19:50:52] <e-dard> I'll give it a read
[19:51:05] <jaawerth> e-dard: it links to a couple of others by the same guy, he covers the concepts fairly well
[19:51:09] *** lw has joined #angularjs
[19:51:09] *** screamingbanshee has joined #angularjs
[19:51:20] <jaawerth> it isn't a trivial process but once you have it written you can just reuse that code forever ;-)
[19:51:29] *** screamingbanshee has quit IRC
[19:51:30] *** ngoyal has joined #angularjs
[19:53:06] <BahamutWC|Work> g’morning #angularjs
[19:53:12] *** pscanf has quit IRC
[19:53:15] *** tfennelly has joined #angularjs
[19:53:18] *** Trow has quit IRC
[19:53:22] <JonathanNeal> g’morning BahamutWC|Work PT
[19:53:25] <jaawerth> e-dard: wait sorry, this one might be better for your question http://www.kdelemme.com/2014/03/09/authentication-with-angularjs-and-a-node-js-rest-api/
[19:53:28] *** screamingbanshee has joined #angularjs
[19:53:32] *** bkuberek has quit IRC
[19:53:50] *** Trow has joined #angularjs
[19:53:50] *** BMCouto has quit IRC
[19:53:53] *** \du has quit IRC
[19:53:57] <e-dard> jaawerth: I'll read both, thanks
[19:54:06] *** RobinBAwesome has quit IRC
[19:54:16] *** JesseEichar_ has joined #angularjs
[19:55:35] <JonathanNeal> Seems like $q is what I’m looking for, though not sure quite how to use it vs using Promise
[19:56:25] *** cthrax has joined #angularjs
[19:56:36] *** Jmart has joined #angularjs
[19:56:40] *** nicholaswyoung has quit IRC
[19:57:16] *** Asiajey has joined #angularjs
[19:57:29] <BahamutWC|Work> JonathanNeal: $q lets you created deferred objects, which you can access the promise of with .promise
[19:57:30] *** DrShoggoth has joined #angularjs
[19:57:51] *** lw has quit IRC
[19:58:07] <JonathanNeal> BahamutWC|Work: so, when I would normally return new Promise(function (resolve) {}), I am now returning $q …. ?
[19:58:08] *** jk-5|gone is now known as jk-5
[19:58:29] *** ppppaul has quit IRC
[19:58:38] *** cspra85 has quit IRC
[19:58:53] *** lw has joined #angularjs
[19:58:59] *** LuxuryMode has joined #angularjs
[19:59:01] <Jmart> What's the best gulp compatible server for working with angular? If I try typing in one of my routes directly I always get a "cannot get /route/ page.
[19:59:05] *** lw has joined #angularjs
[19:59:22] *** DrShoggoth has quit IRC
[19:59:27] <BahamutWC|Work> JonathanNeal: I’m not sure how well your understanding of $q is, but var deferred = $q.defer() is how you create a deferred object
[19:59:37] *** richiebkr has joined #angularjs
[19:59:41] *** DrShoggoth has joined #angularjs
[20:00:08] *** RobinBAwesome has joined #angularjs
[20:00:20] <BahamutWC|Work> you can resolve it with the value of foo with deferred.resolve(foo)
[20:00:20] <BahamutWC|Work> if you need the promise, it’s deferred.promise
[20:00:20] *** Fwny has quit IRC
[20:00:21] *** recurrence has joined #angularjs
[20:00:44] *** scmx has joined #angularjs
[20:00:48] *** apetro_ has quit IRC
[20:00:50] <Foxandxss> Jmart: are you using html5mode?
[20:00:54] *** lw has quit IRC
[20:00:57] <e-dard> jaawerth: second link makes more sense. So to start with I'll make a route and do the form/controller
[20:00:58] <Jmart> yes.
[20:01:01] *** Scymex has quit IRC
[20:01:07] <Foxandxss> ah, that needs a server running indeed
[20:01:13] *** lw has joined #angularjs
[20:01:13] <Foxandxss> but any should work
[20:01:24] *** apetro_ has joined #angularjs
[20:01:42] *** greggsi_ has quit IRC
[20:01:44] <Jmart> @Foxandxss So I thought - and it does via clicked urls, but not direct type, any idea?
[20:01:57] *** plitzenberger has joined #angularjs
[20:02:04] <Foxandxss> ah ya
[20:02:10] <JonathanNeal> BahamutWC|Work: Yesterday was my first day working with Angular. I’m familiar with Promises, and Promises returning Promises, but I’m not sure how to use $q. I’m used to passing in a function (resolve, reject) {} where I determine how the promise is handled.
[20:02:15] <Foxandxss> that is more problematic
[20:02:26] *** lw has quit IRC
[20:02:40] <Foxandxss> and I have no idea, my workflow already handles that for me
[20:02:58] <jaawerth> JonathanNeal: var deferred = $q.defer(); - that gives you a "deferred" object, which has a "promise" property you can return and do your ".then" operations and such on
[20:03:02] <BahamutWC|Work> JonathanNeal: I recommend reading the api documentation on $q
[20:03:11] <jaawerth> but yeah, the documentation covers it pretty well
[20:03:14] *** eden_lane has joined #angularjs
[20:03:18] <jaawerth> it's based on the (very popular) Q library
[20:03:19] <JonathanNeal> BahamutWC|Work: well, if you mean https://docs.angularjs.org/api/ng/service/$q then I have been reading it.
[20:03:26] *** bcole808 has joined #angularjs
[20:03:37] <JonathanNeal> I am waiting for my rosetta stone moment between native JS and $q.
[20:04:01] *** mtsr has joined #angularjs
[20:04:05] <JonathanNeal> Thanks jaawerth will also check https://github.com/kriskowal/q for what I’m looking for.
[20:04:17] *** vintik has quit IRC
[20:04:23] *** zwacky has joined #angularjs
[20:04:23] *** recidive has quit IRC
[20:04:47] *** lsiv568 has quit IRC
[20:04:52] *** francisl has quit IRC
[20:05:39] *** apetro__ has joined #angularjs
[20:06:04] *** apetro_ has quit IRC
[20:06:09] *** joshbrw has joined #angularjs
[20:06:46] *** pream has joined #angularjs
[20:06:54] *** nicholaswyoung has joined #angularjs
[20:07:04] <jaawerth> JonathanNeal: What promise library are you used to? bluebird?
[20:07:19] *** lw has joined #angularjs
[20:07:28] <JonathanNeal> I’m used to native Promises.
[20:07:46] *** JesseEichar_ has quit IRC
[20:08:16] <BahamutWC|Work> JonathanNeal: here’s a link to the docs on $q - https://docs.angularjs.org/api/ng/service/$q
[20:08:21] <JonathanNeal> As in http://www.html5rocks.com/en/tutorials/es6/promises/#toc-javascript-promises (which mentioned Q), note the first code block.
[20:08:29] <BahamutWC|Work> it’s based off of Q by kriskowal
[20:08:44] *** whunt has quit IRC
[20:08:45] <BahamutWC|Work> oh, slow internet whoops
[20:08:49] *** apetro__ has quit IRC
[20:09:04] *** apetro_ has joined #angularjs
[20:09:23] <JonathanNeal> BahamutWC|Work: no problem, I appreciate the assistance. My disconnect is only in setting up a promise, eg, new Promise(function (resolve, reject) {}) and what that looks like in Q or $q
[20:09:26] *** recidive has joined #angularjs
[20:09:31] <BahamutWC|Work> JonathanNeal: $q for promises works similarly, but creating the promise is a little different
[20:09:34] *** kbiela has joined #angularjs
[20:09:46] <pream> I am getting a bad error message, can't figure out what's going on Failed to instantiate module myModule due to: {1}
[20:09:50] *** hugoleodev has quit IRC
[20:09:58] <jaawerth> JonathanNeal: Ah, it's not that different, the main thing is that you'll do your resolving and rejecting using the deferred object that $q.defer() returned, and all the promise.then stuff happens on $q.deferred.promise - other bits of the api you do right from the $q service
[20:10:03] <BahamutWC|Work> instead of like new Promise(), $q.defer() is like a class instantiation where the .promise property is the actual promise
[20:10:05] *** cthrax has quit IRC
[20:10:25] *** hugoleodev has joined #angularjs
[20:10:26] <BahamutWC|Work> internally $q.defer() does that new declaration
[20:10:35] <Trow> hi
[20:10:35] *** shackleford has joined #angularjs
[20:10:36] <jaawerth> yeah, it's basically a constructor
[20:10:37] <Trow> i have a problem when i switch to other language the link in the adress bar chanhe once i click but it doesnt load the right json file // it loads it only when i refresh the page
[20:10:38] <Trow> http://pastebin.com/3jCMtwTE
[20:10:53] *** bkuberek_ has quit IRC
[20:11:02] *** night-owl2 has joined #angularjs
[20:11:08] *** shackleford has quit IRC
[20:11:23] *** blueadept` has joined #angularjs
[20:11:28] *** LuxuryMode has quit IRC
[20:11:29] <JonathanNeal> Okay, that’s a slight shift, and I’ll do my best to translate my code, thanks jaawerth, BahamutWC|Work.
[20:11:34] <BahamutWC|Work> np
[20:11:41] *** shackleford has joined #angularjs
[20:11:59] <jaawerth> no problem - it's not so bad once you get used to it
[20:12:05] <BahamutWC|Work> JonathanNeal: should be noted, for stuff like ajax requests, you’d be using $http, which already is a superset of a $q promise
[20:12:05] *** lw has quit IRC
[20:12:06] <jaawerth> I went in the other direction when I started using bluebird on node
[20:12:35] <jaawerth> the syntax I don't care so much about, but I do prefer bluebird for other reasons
[20:12:46] <BahamutWC|Work> jaawerth: over Q?
[20:12:54] <jaawerth> yeah
[20:13:00] *** bronson has joined #angularjs
[20:13:02] *** kemm0 is now known as BobbieBarker
[20:13:03] *** bencc has joined #angularjs
[20:13:05] <chovy> visionary: only way to handle 302 is to have a proxy api that will return correct 401 code
[20:13:06] *** vintik has joined #angularjs
[20:13:09] <JonathanNeal> BahamutWC|Work: yes, I was writing the success callback on $http’s .then, and I wanted it to return a Promise. I am used to promises always returning promises.
[20:13:11] <jaawerth> It's faster, for one thing
[20:13:13] *** lw has joined #angularjs
[20:13:24] <volk_> hey guys just wondering, what is the best practice for “helper” functions that act on an angular value? should they be in a service or a factory?
[20:13:24] <jaawerth> bluebird is about as fast as regular old callbacks
[20:13:25] *** chrisshattuck has quit IRC
[20:13:27] <jaawerth> (don't ask me how)
[20:13:44] *** chrisshattuck has joined #angularjs
[20:13:45] <BahamutWC|Work> JonathanNeal: $http.get(…).then(…) returns a promise
[20:13:48] *** shaym_ has joined #angularjs
[20:13:56] <BahamutWC|Work> so you can do $http.get(…).then(…).then(…), etc.
[20:13:56] *** blueadept` has joined #angularjs
[20:14:26] <BahamutWC|Work> .success and .error does not quite behave the same if I recall correctly
[20:14:28] <s3shs> volk_, how widespread will the functions be used.
[20:14:29] <JonathanNeal> Yes, but the .then callback should return a promise as well, no?
[20:14:29] <s3shs> ?
[20:14:36] <jaawerth> volk_: Well, a service and a factory are so close to being the same thing (and you can use module.factory to create a service) that it's hard to answer that question
[20:14:43] *** blueadept` has joined #angularjs
[20:14:49] <BahamutWC|Work> JonathanNeal: .then will return a promise as well, yes
[20:14:54] <BobbieBarker> really they're just shortcuts to the provider
[20:14:54] <volk_> s3shs: maybe in a few controllers
[20:14:56] <jaawerth> volk_: but usually you'd just use a factory if they're simply helper functions
[20:15:09] <volk_> @jaawerth, ah..okay thanks.
[20:15:16] *** Sebastien-L has joined #angularjs
[20:15:21] <zumba_addict> hey guys, how's everyone? Hope everyone is doing great! Which animate library do you like most?
[20:15:22] <s3shs> volk_, there's no rule that says you can't put functions in a service object.
[20:15:29] <BobbieBarker> angular motion
[20:15:39] <jaawerth> volk_: basically a service is just a factory where "new" is invoked on the returned singleton
[20:15:39] <s3shs> Might be interesting to make $AU and put your angular utils in there.
[20:15:42] <volk_> s3shs i know theres no rule but im just thinking of best/most logical practices
[20:15:54] <JonathanNeal> .then(function () { return new Promise(); }).then(function () { /* affected by previous resolver being a promise */ }); maybe I’m thinking of DOM Promises and chaining works differently now.
[20:15:56] <BobbieBarker> http://mgcrea.github.io/angular-motion/
[20:16:00] <volk_> jaawerth: yeah so i figure if you’re making new “instances” with helper fucntions, that probably wouldnt make sense
[20:16:03] <volk_> right
[20:16:07] <BobbieBarker> ^^ directly ties into the angular strap project
[20:16:13] <BobbieBarker> but can be used stand alone
[20:16:18] <s3shs> volk_, true best practice would have both the data and the functions that act on it in the same service and allow the service to act as an object.
[20:16:38] <BahamutWC|Work> angular strap ehh
[20:16:39] <volk_> s3shs: ah interesting
[20:16:45] <volk_> s3shs: that actually makes sense. thanks
[20:16:55] *** TimmyTones has joined #angularjs
[20:16:56] <jaawerth> volk_: exactly. A factory would be the way to go. A service would be when you want a singleton object, a factory would be a constructor (or some other kind of useful function)
[20:17:01] <s3shs> Ooh! Something I said made sense! First time for everything. ;-)
[20:17:33] *** encrypt3d_fracti has joined #angularjs
[20:17:35] *** night-owl2 has quit IRC
[20:17:36] <volk_> jaawerth: are you sure you got that right? im pretty sure a facotry would be when you want a singleton object since you can `new` services
[20:17:39] * JonathanNeal highfives s3shs, rare moments for many of us
[20:17:40] <volk_> s3shs: :)
[20:17:48] <jaawerth> yeah
[20:17:53] *** lw has quit IRC
[20:17:59] *** Reite has joined #angularjs
[20:18:13] <jaawerth> basically when you use app.service it's the same thing as using app.factory and doing "return new MyConstructor();" at the end
[20:18:19] *** bzitzow has quit IRC
[20:18:24] <s3shs> ^ jaawerth
[20:18:28] <jaawerth> but you only really need new when it's a complex object
[20:18:45] <s3shs> I still create services the "old" way. :-\
[20:18:45] <volk_> jaawerth: right exactly, so if youre retruning a new constuctor, then you have a whole new object which would not be a singleton
[20:19:10] <jaawerth> I thought you just wanted helper functions?
[20:19:37] <jaawerth> if a helper function is tied to a specific "data type" then it makes sense to put it in an object
[20:19:47] <volk_> jaawerth: well now im just talking in general
[20:19:50] <jaawerth> ah
[20:19:54] <jaawerth> well, I actually do both
[20:20:06] *** Reskp has joined #angularjs
[20:20:12] <jaawerth> I keep a factory that returns the constructor function so I can make instances, and then for the service, I inject the factory and return new
[20:20:21] <jaawerth> depending on what exactly I'm doing
[20:20:27] *** Nijikokun has joined #angularjs
[20:20:48] <jaawerth> that also makes it easy to do configuration, data-protection, class inheritance, etc
[20:21:04] *** Scymex has joined #angularjs
[20:21:18] *** mfunkie has joined #angularjs
[20:21:25] <BobbieBarker> http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/ <<-- good outline of angularJS best practices
[20:22:06] *** pscanf has joined #angularjs
[20:22:28] <volk_> ah i see
[20:22:34] *** MANCHUCK_ has joined #angularjs
[20:22:40] *** pibu7 has quit IRC
[20:22:43] <BahamutWC|Work> BobbieBarker: saw that earlier today, I agree with most of it
[20:22:52] *** scmx has quit IRC
[20:23:07] <s3shs> Wait a minute, the factory that returns an object is only called once.
[20:23:12] *** ggrzybek has joined #angularjs
[20:23:16] *** esfefefefe has joined #angularjs
[20:23:18] <s3shs> Or am I missing something?
[20:23:41] *** hugorodrigues has joined #angularjs
[20:23:48] *** esfefefefe has quit IRC
[20:24:25] *** MANCHUCK has quit IRC
[20:24:28] *** torkel_ has joined #angularjs
[20:24:38] <JAAulde> of the various angular markdown packages available in bower, is any considered to be better than the others?
[20:25:41] *** cthrax has joined #angularjs
[20:25:46] *** in_deep_thought has joined #angularjs
[20:25:48] <moogumbo> What is the general pattern you guys use to deal with promises?
[20:26:08] *** zquad has joined #angularjs
[20:26:23] <moogumbo> e.g. if I do myPromise = $http.jsonp(whatever) and then I want my view to work with both that data as well as things derived from that data?
[20:26:57] *** galigan has quit IRC
[20:27:39] *** plitzenberger has quit IRC
[20:27:48] <BahamutWC|Work> jsonp is a bit hairy when it comes to promises if I remember right
[20:27:49] *** stevvooe has joined #angularjs
[20:27:59] *** whunt has joined #angularjs
[20:28:15] <in_deep_thought> why is it that the “clear completed” button doesn’t work on this: http://jsbin.com/mecum/1/ ? I seriously copied everything from this: http://codepen.io/Russbrown/pen/IgBuh except deleted the css yet the button works on that one
[20:28:21] <BahamutWC|Work> better off having an endpoint on the backend make the cross-domain call and have it available on a same-domain endpoint IMO
[20:28:31] <teslan> could somebody please take a look at my ui-router related problem http://pastebin.com/UAANeScV
[20:28:40] <BahamutWC|Work> unless you really have to avoid that extra roundtrip
[20:28:47] <moogumbo> BahamutWC|Work: Doesn't it behave roughly the same as $http.get ?
[20:28:56] <moogumbo> As far as promises are concerned, at least
[20:28:58] <jaawerth> s3shs: remember, a function is an object. If you return a constructor function, you can use that to instantiate multiple objects, or inject it into another factory that returns a singleton
[20:29:03] *** Nizumzen has joined #angularjs
[20:29:09] *** Sauvin has quit IRC
[20:29:11] <BahamutWC|Work> moogumbo: $http.jsonp will execute a callback, as per how jsonp works
[20:29:37] <moogumbo> Yes, but so far Angular has done a decent job of abstracting that away, similar to how jQuery abstracts it away
[20:29:41] <s3shs> jaawerth, oh I see what you're saying. Cool.
[20:29:50] *** plysiu has joined #angularjs
[20:30:05] <jaawerth> for regular helper functions you can just do app.factory(function() { return { helper1: function() {}, helper2: function() {}, helper3: function() {} }; }); and call it a day
[20:30:14] <moogumbo> At least, all I did was add the JSON_CALLBACK thing to the URL and then treat it just like an $http.get otherwise
[20:30:35] *** MANCHUCK_ is now known as MANCHUCK
[20:30:48] *** dylukes has quit IRC
[20:31:08] *** kvnm has joined #angularjs
[20:31:15] *** bkuberek has joined #angularjs
[20:31:16] <BahamutWC|Work> moogumbo: right, but the data comes back in that callback if I remember correctly
[20:31:30] <BahamutWC|Work> that’s the crappy part of jsonp
[20:31:49] <moogumbo> Angular handles the callback and then gives the regular JSON data to the promise callback
[20:32:29] <BahamutWC|Work> (its been a little while since I used $http.jsonp I should note, I avoid it as much as possible)
[20:32:44] *** XoRoN has quit IRC
[20:33:19] <moogumbo> That's fair... my question is more a style question. How do you handle the $http promises in controllers and views cleanly?
[20:33:36] *** encrypt3d_fracti has quit IRC
[20:33:52] <BahamutWC|Work> I like to put the $http logic in services and inject the relevant services in controllers and chain upon it there
[20:34:20] <moogumbo> Right now I'm doing $scope.myData = DataService.data and then $scope.$watch 'myData' to update view variables derived from the data
[20:34:31] <moogumbo> Yeah, I pulled the $http call itself into a service, but the controller still seems messy
[20:34:52] *** conan_the_destro has quit IRC
[20:35:19] *** conan_the_destro has joined #angularjs
[20:35:20] <BahamutWC|Work> is there any reason why the view isn’t updating appropriately with that data update when setting $scope.myData?
[20:35:33] *** MANCHUCK has joined #angularjs
[20:35:43] <moogumbo> It is
[20:35:58] <moogumbo> But the view also needs thingsDerivedFromMyData
[20:36:01] <accelerate> I wish angular hadn't gotten rid of automatic promise unwrapping.
[20:36:03] <accelerate> I liked that.
[20:36:10] <visionary> i am working on an interceptor for response and it gets called twice?
[20:36:20] <moogumbo> So if I set $scope.thingsDerviedFromMyData = doStuffWith($scope.myData) then it doesn't magically update the view when myData changes
[20:36:26] *** MuffinMan` has quit IRC
[20:37:10] <moogumbo> You see what I mean?
[20:37:18] *** mindlace has joined #angularjs
[20:37:20] <BahamutWC|Work> moogumbo: why not do something like $scope.things.derivedFromMyData then, where $scope.things = {}
[20:37:32] <BahamutWC|Work> it may not be updating the view due to $scope inheritance issues
[20:37:33] *** Johnny13371337 has joined #angularjs
[20:37:42] *** tschundeee has joined #angularjs
[20:37:47] <BahamutWC|Work> (just a guess on my part)
[20:37:54] *** Digidog has joined #angularjs
[20:38:15] <moogumbo> Hm, and $scope.things would come from the DataService?
[20:38:19] *** senayar has quit IRC
[20:38:47] <moogumbo> I don't expect it to update the view magically right now -- because it doesn't know thingsDerivedFromMyData depends on myData, unless I tell it explicitly inside $scope.$watch 'myData'
[20:38:51] *** tomh- has joined #angularjs
[20:39:20] <moogumbo> This whole question is inspired by this https://github.com/angular/angular.js/commit/5dc35b527b3c99f6544b8cb52e93c6510d3ac577
[20:40:06] <moogumbo> I wonder what exactly this means: "In most code we ended up resolving promises manually in controllers or automatically via routing and unifying the model access in this way."
[20:40:30] *** cthrax has quit IRC
[20:40:49] *** negval has joined #angularjs
[20:40:56] <BahamutWC|Work> it used to be you could do something like $scope.foo = $http.get(bar), and the result of the ajax request would be set on $scope.foo
[20:41:16] <BahamutWC|Work> but very few people ended up using that syntax, so they deprecated it and removed it from being the default behavior
[20:42:03] <moogumbo> I see, so what do people do now? Basically, should that DataService expose the promise, or the array of data, or what?
[20:42:20] <BahamutWC|Work> they chain upon promises with .then
[20:42:38] <BahamutWC|Work> so one generally does $http.get(bar).then(function (data) { $scope.foo = data; })
[20:42:46] *** encrypt3d_fracti has joined #angularjs
[20:43:14] <moogumbo> So the view initially loads with foo = undefined, and that's okay?
[20:43:29] *** Scymex has quit IRC
[20:43:41] *** Johnny13371337 has left #angularjs
[20:43:42] <BahamutWC|Work> depending on your needs, sure
[20:43:44] *** phuh has quit IRC
[20:43:52] *** kbalderson has quit IRC
[20:44:11] *** phuh has joined #angularjs
[20:44:33] *** Jdubs has joined #angularjs
[20:44:59] *** ngoyal has quit IRC
[20:45:02] *** scmx has joined #angularjs
[20:45:34] *** Aswebb has quit IRC
[20:45:39] <moogumbo> Hm
[20:45:46] *** richiebkr has quit IRC
[20:45:49] *** fairchild is now known as fairchild_away
[20:45:58] <moogumbo> Just read this, he suggest deferring the entire controller http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/
[20:46:01] *** in_deep_thought has quit IRC
[20:46:08] *** spencercarnage has quit IRC
[20:46:45] *** fairchild_away has quit IRC
[20:46:55] *** Cydmax has quit IRC
[20:47:15] *** JesseEichar_ has joined #angularjs
[20:47:25] *** waylon999 has quit IRC
[20:48:15] *** tilgovi has joined #angularjs
[20:48:16] *** screamingbanshee has quit IRC
[20:48:56] *** alanp has quit IRC
[20:49:11] *** KernelCurry has quit IRC
[20:49:18] *** alanp has joined #angularjs
[20:49:50] *** tfennelly has quit IRC
[20:49:56] *** \du has joined #angularjs
[20:49:57] *** \du has joined #angularjs
[20:49:59] *** joshbrw has quit IRC
[20:50:30] *** screamingbanshee has joined #angularjs
[20:50:30] *** fedenunez has quit IRC
[20:50:39] *** screamingbanshee has quit IRC
[20:50:53] *** pream has quit IRC
[20:51:12] <supermassiv> or preload the data w/ resolve using ngrouter/ui-router
[20:51:21] *** screamingbanshee has joined #angularjs
[20:51:23] *** richiebkr has joined #angularjs
[20:51:29] *** joeybrown has joined #angularjs
[20:51:36] <supermassiv> also mentioned there... duh
[20:51:52] <supermassiv> i like that guide :D
[20:51:55] *** fedenunez has joined #angularjs
[20:52:12] <jaawerth> huh, that's an.. interesting approach
[20:52:26] *** caitp has quit IRC
[20:52:43] *** caitp has joined #angularjs
[20:53:12] *** spencercarnage has joined #angularjs
[20:53:13] *** Scymex has joined #angularjs
[20:54:07] *** ccohn has quit IRC
[20:54:33] *** calumet has joined #angularjs
[20:54:42] *** ccohn has joined #angularjs
[20:54:50] *** instence has quit IRC
[20:54:52] *** instence_ has joined #angularjs
[20:55:09] *** patrickarlt has quit IRC
[20:55:42] *** scmx has quit IRC
[20:56:26] *** {DV8} has quit IRC
[20:56:28] *** cotko has quit IRC
[20:56:46] *** lw has joined #angularjs
[20:57:20] *** saucey has quit IRC
[20:57:54] *** greggsi has joined #angularjs
[20:59:05] *** ccohn has quit IRC
[20:59:05] *** mindlace_ has joined #angularjs
[20:59:16] *** waylon999 has joined #angularjs
[20:59:16] *** mindlace has quit IRC
[20:59:47] *** shacklef_ has joined #angularjs
[20:59:59] *** volk_ has quit IRC
[21:00:01] *** cyen_ has quit IRC
[21:00:21] *** benjamingr has quit IRC
[21:00:21] *** shacklef_ has quit IRC
[21:00:22] *** twelverobots has quit IRC
[21:00:26] *** plitzenberger has joined #angularjs
[21:00:35] *** shaym_ has quit IRC
[21:00:47] *** shacklef_ has joined #angularjs
[21:00:54] *** shackleford has quit IRC
[21:01:37] *** JasonSto_ has joined #angularjs
[21:01:52] *** patrick99e99 has quit IRC
[21:02:13] *** greggsi has quit IRC
[21:02:16] <e-dard> jaawerth: little bit confused by "adding a service", but doing appServices.factory('UserService', function($http) { …. } ?
[21:02:21] <e-dard> isn't that adding a factory?
[21:02:38] *** Cydmax has joined #angularjs
[21:03:16] *** patrickarlt has joined #angularjs
[21:03:19] <e-dard> jaawerth: what's the difference between that and bolting .service() onto the angular object in app.js?
[21:03:21] <jaawerth> e-dard: It's like this: a service is a factory, but a factory isn't necessarily a service
[21:03:24] *** foofoobar has joined #angularjs
[21:03:34] <e-dard> jaawerth: hmm, OK.
[21:03:35] <jaawerth> e-dard: .service() is just a convenience function
[21:03:38] <sonicparke|bradm> Can someone please give me a hand with restructuring JSON data. http://plnkr.co/edit/qFSva5lqTR9CXVM2uhKy?p=preview
[21:03:48] *** tschundeee has quit IRC
[21:04:03] *** dob__ has joined #angularjs
[21:04:09] <e-dard> jaawerth: I already have a .service() for something else, can I chain them? Like .service(…).service(…) ?
[21:04:13] *** JosephBergevin has quit IRC
[21:04:38] <jaawerth> e-dard: nope, because once you've used .service, it's already a singleton
[21:04:50] <jaawerth> one sec, I'll show you a plunk example
[21:04:55] <e-dard> jaawerth: cool, thanks!
[21:04:56] *** nanoyak has quit IRC
[21:04:59] *** JasonSto_ has quit IRC
[21:05:03] <e-dard> (Backend dev here…)
[21:05:06] *** JasonStoltz has quit IRC
[21:05:11] <sonicparke|bradm> There's one thing I can't quite figure out
[21:05:15] <e-dard> (Backend, non-js, dev, in fact) ;)
[21:05:36] *** mindlace has joined #angularjs
[21:05:48] *** sigurding has joined #angularjs
[21:05:54] *** lsiv568 has joined #angularjs
[21:05:55] *** mindlace_ has quit IRC
[21:05:59] *** KernelCurry has joined #angularjs
[21:06:09] *** MANCHUCK has quit IRC
[21:07:10] *** tgkokk has joined #angularjs
[21:07:12] *** dob_ has quit IRC
[21:07:13] *** bluesm has joined #angularjs
[21:08:07] *** JasonSto_ has joined #angularjs
[21:08:08] *** cthrax has joined #angularjs
[21:08:08] *** visionary has quit IRC
[21:08:28] *** lingo_ has joined #angularjs
[21:08:29] *** cspra85 has joined #angularjs
[21:08:34] *** tilgovi has quit IRC
[21:08:36] *** dob__ has quit IRC
[21:08:36] *** tschundeee has joined #angularjs
[21:08:50] *** senayar has joined #angularjs
[21:08:55] *** amedia has quit IRC
[21:08:55] *** atomical has quit IRC
[21:09:21] *** eamonn has joined #angularjs
[21:09:28] *** amedia has joined #angularjs
[21:09:36] *** richiebkr has quit IRC
[21:09:56] *** eden_lane has quit IRC
[21:09:58] *** kbalderson has joined #angularjs
[21:10:00] *** wilmoore has quit IRC
[21:10:20] *** lsiv568 has quit IRC
[21:10:50] <jaawerth> e-dard: http://plnkr.co/edit/PgGjSZ0zMXoOOOHUZ0Cx?p=preview this is the exact same object created with a .factory and .service
[21:10:57] <lingo_> using ui.router, is it possible to tell when my current route is /items and not /items/1 using the resolve? essentially if it is /items I want to use resolve to go and retrieve a list of items, and if an id is provided, then get that specific id... but right now i am finding it will do both
[21:11:22] *** simeon has quit IRC
[21:11:46] <jaawerth> e-dard: So in reality, those are both services even though I used .factory to create one of them. However, if you remove the "new" from the .factory one, then it's just created a singleton constructor function that you could use to instantiate "person" objects
[21:11:58] *** jaequery_ has joined #angularjs
[21:11:58] <e-dard> jaawerth: thanks. I think I see. The factory allows you to do a little bit or work before returning, but they're both singletons
[21:12:17] *** kvnm has quit IRC
[21:12:31] *** ggrzybek has quit IRC
[21:12:45] <jaawerth> exactly. Basically .factory is just a convenience function that creates a certain kind of provider, and .service is a convenience function that creates a certain type of .factory
[21:12:47] *** jaequery_ has quit IRC
[21:12:49] <e-dard> if I have angular.module(….).config(…..).service(….) I can just bolt .factory on the end right?
[21:12:49] <Corealis> lingo: do you mean the $routeParams service?
[21:13:00] *** simb has joined #angularjs
[21:13:07] *** atomical has joined #angularjs
[21:13:13] <jaawerth> e-dard: yeah. and you CAN do .service().service() as well - but that will just created two services
[21:13:16] *** jaequery_ has joined #angularjs
[21:13:21] *** senayar has quit IRC
[21:13:21] <e-dard> jaawerth: cool I see. Like a hirerachy of abstraction :)
[21:13:43] *** in_deep_thought has joined #angularjs
[21:13:45] *** kvnm has joined #angularjs
[21:13:46] <jaawerth> exactly! you COULD create factories and services with .provider but it's just unnecessary code
[21:13:50] <e-dard> jaawerth: but that's ok if they're different services, right?
[21:13:53] *** eamonn has quit IRC
[21:14:05] <lingo_> Corealis: if I watch $stateParams in the parent route... /items, it doesn't see the id
[21:14:06] <jaawerth> so long as it's different services that you need
[21:14:10] <e-dard> yup
[21:14:14] *** JasonSto_ has quit IRC
[21:14:19] <e-dard> cool. Thanks so much jaawerth
[21:14:28] *** tschundeee has quit IRC
[21:14:36] <jaawerth> I mean, services should be where you're storing your real "data model" other than the service, since they can be the "single source of truth" and can be injected everywhere else in your app
[21:14:36] <Corealis> lingo_: ok. Haven't used ui.router, yet. Still using ng-view
[21:14:50] *** jaequery has quit IRC
[21:14:53] <jaawerth> e-dard: I think the thing to get used to for you, since you don't come from a JS background, is that functions are first-class objects in JS.
[21:15:15] <BahamutWC|Work> jaawerth: I’d say factory is superior to service most of the time since service instantiates the callback as a class instance
[21:15:15] <jaawerth> so you can pass them around, give them properties, etc just like anything else
[21:15:31] <e-dard> yup, although I'm kind of use to that from Go and Python, in various levels
[21:15:38] <e-dard> but not as dynamic as JS!
[21:15:44] <jaawerth> BahamutWC: right, doing it as a factory gives you more leeway to mess around later on
[21:15:49] *** sigurding has quit IRC
[21:16:00] *** RobinBAwesome has quit IRC
[21:16:00] <chovy> when do i use factory, service, directive
[21:16:03] *** lordkryss has quit IRC
[21:16:06] *** ccohn has joined #angularjs
[21:16:09] <chovy> what is a factory?
[21:16:21] <oniijin> time to read some tutorials chovy
[21:16:30] <chovy> seriously?
[21:16:41] *** kbiela has quit IRC
[21:16:41] <chovy> i have to read tutorials to know what a factory is?
[21:16:45] <e-dard> oh, jaawerth, one more thing.. I was under impression when you made a service, that in the controller you have to do .controller('aCtrl', ['$scope', 'AService', function($scope, AService) { …. }]);
[21:16:49] <quan__> yes
[21:16:52] *** atomical has quit IRC
[21:17:03] <oniijin> more that, you should put some effort into learning basic things
[21:17:07] <e-dard> jaawerth: but I see controllers without the string literal for the service (just the function argument)
[21:17:09] <oniijin> don't be lazy
[21:17:15] *** cariaso has joined #angularjs
[21:17:24] <jaawerth> e-dard: Ah, you should definitely use the [] bracket notation
[21:17:34] *** pibu7 has joined #angularjs
[21:17:42] <e-dard> jaawerth: ok, I'll stick to what I'm doing then :-P
[21:17:50] *** plitzenberger has quit IRC
[21:17:55] <jaawerth> e-dard: Basically angular is smart enough to look at your function arguments list and compare it to the registered services on your module, BUT if you pass your code through a minifier, all of those arg and variable names get changed
[21:17:59] *** mikehaas763 has joined #angularjs
[21:18:27] <e-dard> jaawerth: I see, so the extra string literals take care of that?
[21:18:28] *** simb has quit IRC
[21:18:29] <Corealis> Is the "MyController as ctrl" syntax here to stay? Is "this" now preferred over "$scope"?
[21:18:39] *** krawek has joined #angularjs
[21:18:53] <jaawerth> e-dard: what's happening in the bracket notation (app.controller('MyController', ['dep1', 'dep2', 'dep3', function(dep1, dep2, dep3) {}]) is that you're passing in an array of named dependencies, so if your minifying changes the var names it doesn't matter
[21:18:54] *** vader has joined #angularjs
[21:18:55] <supermassiv> you can automagically handle that stuff with ngannotate also
[21:19:06] *** atomical has joined #angularjs
[21:19:13] <ajf-> What's the best way to manage "Objects" in angular? Like, my own Payment object that has its methods and what not. Is there an angular way for this or do I just define the functions normally ?
[21:19:26] <e-dard> jaawerth: cool.
[21:19:30] *** Reskp has quit IRC
[21:19:36] <moogumbo> While we're on this -- why is Angular style to write "controller" as "Ctrl" ?
[21:19:38] *** MANCHUCK has joined #angularjs
[21:19:45] <oniijin> less typing
[21:19:55] *** endash has quit IRC
[21:19:59] <snapwich> can you have multiple controllers per element?
[21:20:17] <snapwich> like what happens if you have a directive that has a controller on an element with an ng-controller?
[21:20:22] <Corealis> snapwich: controllers can be nested
[21:20:24] <moogumbo> oniijin: But seriously
[21:20:37] <BahamutWC|Work> directive controllers can be made available to other directives
[21:20:39] <oniijin> type it however you want
[21:20:41] <BahamutWC|Work> for example, ngModelController
[21:20:50] *** Reskp has joined #angularjs
[21:20:56] *** ededagic has joined #angularjs
[21:21:04] <BahamutWC|Work> you can utilize some api from the raw ngModel controller in other directives
[21:21:12] <snapwich> yeah, but if you have a directive controller on an element with an ng-controller, do they share the same $scope?
[21:21:17] *** _jpfm has joined #angularjs
[21:21:24] <BahamutWC|Work> if the directive does not create new $scope, sure
[21:21:25] <JonathanNeal> Another naive question; is there a guide to creating Angular plugins that impact dom elements?
[21:21:38] <mikehaas763> I'm looking for other ways to handle this situation. I have a controller on a directive. Every time that controller is invoked, I need to make a request (if an id exists yet from a previous request). I also need to remake that request every time the id is changed/updated. I get the id from a service.
[21:21:51] <mikehaas763> Here's how I'm handling it now: https://gist.github.com/anonymous/a54c4aeee80102847e17
[21:21:53] <BahamutWC|Work> JonathanNeal: DOM manipulation is best left to directives
[21:21:55] *** whunt has quit IRC
[21:22:46] <JonathanNeal> BahamutWC|Work: sure, I want to write this for our team in the most Angular way possible. They’re migrating off jQuery. I can port it to native JS no problem, but not sure how to set it up in Angular. I will google angular directives.
[21:22:47] <cthrax> BahamutWC|Work, I ran into that "new scope" issue you were alluding to the other day. <my-directive my-other-directive> where both my-directve and my-other-directive wanted an isolate scope
[21:22:51] <cthrax> Angular was not happy
[21:23:56] <oniijin> jq and ng attack things from two different sides
[21:24:03] <cthrax> JonathanNeal, as a data point, you can encapsulate jquery plugins into directives as a stopgap towards moving the functionality into other directives
[21:24:30] <cthrax> oniijin, agree, I call it "change all the things" versus "change the thing"
[21:25:04] <oniijin> I feel it's very different way to think about problems, and if try to solve things jq way using ng you're going to have a bad time
[21:25:11] <oniijin> that should be a meme
[21:25:13] *** Cavallari has quit IRC
[21:25:30] *** watsonkp has quit IRC
[21:25:30] <cthrax> hehe
[21:25:38] <quan__> in general, if you dont do shit the angular way, youre going to have a bad time
[21:25:38] <JonathanNeal> cthrax: no need, the plugin adjusted style of an element based on scroll position, no reason to add jquery back in for that.
[21:26:25] <cthrax> JonathanNeal, ah, you mentioned "migrating" so I was just letting you know it's possible to coexist without making the entire migration in one fell swoop
[21:26:33] <JonathanNeal> totally, appreciated
[21:26:36] *** lsiv568 has joined #angularjs
[21:27:29] *** zquad has quit IRC
[21:27:40] *** watsonkp has joined #angularjs
[21:27:55] *** francisl has joined #angularjs
[21:28:28] *** visionary has joined #angularjs
[21:28:30] *** Anton_ has quit IRC
[21:29:08] *** YourShadowDani has joined #angularjs
[21:29:41] *** YourShadowDani has left #angularjs
[21:30:31] *** pscanf has quit IRC
[21:30:44] *** rashidkp1 is now known as rashidkpc
[21:30:46] *** lordkryss has joined #angularjs
[21:30:50] *** XoRoN has joined #angularjs
[21:31:43] *** fairuz has joined #angularjs
[21:32:02] *** volk_ has joined #angularjs
[21:32:18] <volk_> hey guys, when would you define functions in controllers as opposed to services
[21:32:22] <chovy> https://www.youtube.com/watch?v=A6cJasNBkyI
[21:32:32] <chovy> factory, provider, service all do same thing
[21:32:36] *** Anton_ has joined #angularjs
[21:32:53] <oniijin> volk_ if there is reuse then probably service
[21:33:10] <volk_> so if it’s bound to like a singular view
[21:33:15] <volk_> probably just shove it in to controller?
[21:33:16] *** JesseEichar_ has quit IRC
[21:33:18] *** apetro_ has quit IRC
[21:33:29] <volk_> “bound” meaning used in
[21:33:46] <volk_> oniijin: ^
[21:33:54] <oniijin> should try to avoid logic on controllers
[21:33:56] *** foobarbazbat has quit IRC
[21:34:16] <volk_> like any sort of logic?
[21:34:19] *** davedev2_ has joined #angularjs
[21:34:19] *** davedev24_ has quit IRC
[21:34:26] <Corealis> I try to make the bound scope functions as small as possible and place the business-logic in services
[21:34:27] <oniijin> if you notice your controllers are starting to get fat, prob need to move stuff into services
[21:34:37] <oniijin> what he said
[21:34:50] *** torkel_ has quit IRC
[21:34:58] *** kbalderson has quit IRC
[21:35:01] <in_deep_thought> why is it that the “clear completed” button doesn’t work on this: http://jsbin.com/mecum/1/ ? I seriously copied everything from this: http://codepen.io/Russbrown/pen/IgBuh except deleted the css yet the button works on that one
[21:35:01] <in_deep_thought> [11:28am]
[21:35:01] <BahamutWC|Work> controllers should generally be simple, so it’s clear what the logic is
[21:35:06] <volk_> so say i have a function like “getFullName()” which just formats the full name
[21:35:26] <volk_> where would you shove that
[21:35:42] <volk_> getFullName of a user that is
[21:35:49] <volk_> i suppose into the user service?
[21:36:00] <snapwich> attach it to the user model
[21:36:06] <snapwich> as a prototype function
[21:36:27] *** texinwien has quit IRC
[21:36:38] *** IanOlson has joined #angularjs
[21:36:45] *** amortimer has quit IRC
[21:37:31] <volk_> makes sense.
[21:37:31] *** Reskp has quit IRC
[21:37:33] *** greggsi has joined #angularjs
[21:37:37] *** DuelShark has joined #angularjs
[21:37:46] <volk_> just to confirm snapwich , you mean user model as in a service right
[21:37:53] *** mchapman has quit IRC
[21:38:00] <Corealis> volk_: getFullName() is probably a $scope function that you bind to (ng-click or something). getFullName in turn typically calls a service method that retrieves data from backend and updates the $scope.fullName property (that some other html element is bound to)
[21:38:19] *** cthrax has quit IRC
[21:38:25] *** tgkokk has quit IRC
[21:38:52] <volk_> Corealis: see that makes sense, but whats the difference between that method, and having a user service and storing the getFullName function on there?
[21:38:58] <oniijin> i heard it makes resting easier too =p
[21:39:02] <oniijin> testing*
[21:39:08] <snapwich> no, user model as in an actual data model
[21:39:10] *** Reskp has joined #angularjs
[21:39:32] *** cariaso has left #angularjs
[21:39:34] *** plitzenberger has joined #angularjs
[21:39:37] <volk_> oh
[21:39:45] <volk_> snapwich: you dont use services as your data models?
[21:39:52] <snapwich> have a factory that creates users and have a prototype function on those users that is getFullName
[21:40:05] <snapwich> no, services are singletons. you don't want those to be data models
[21:40:14] <snapwich> they can be factorys that return data models though
[21:40:29] *** umib0zu has joined #angularjs
[21:40:30] <volk_> i thought that a factory is essentially a singleton, and a service service actually returns new instances since you use new to instantiate
[21:40:30] *** richiebkr has joined #angularjs
[21:40:43] <snapwich> they are both singletons
[21:40:52] <snapwich> the only difference is in how they are instantiated
[21:41:01] <volk_> h
[21:41:02] <volk_> oh*
[21:41:15] <volk_> so youre saying if i were to instantiate one, and then do new again , i would have the same object?
[21:41:36] <snapwich> not if you called new on it
[21:41:48] <volk_> right exactly, so how would that be a singleton?
[21:41:53] *** JasonStoltz has joined #angularjs
[21:41:57] *** greggsi has quit IRC
[21:42:08] *** tilgovi has joined #angularjs
[21:42:21] <snapwich> there's still only one instance of that constructor function, if that's what you're using it as
[21:42:22] <Corealis> volk_: your html uses ng-directives (or your own custom directive) to bind to a controller's $scope function or property. The $scope functions should be as lightweight as possible, typically just calling a service method that returns data (sync) or a promise (async). When data has been received (or the promise finishes) inside the controller's ($scope's) context, you typically update one of
[21:42:22] <Corealis> the $scope's properties to have the DOM updated.
[21:42:30] *** greggsi has joined #angularjs
[21:42:35] *** ngoyal has joined #angularjs
[21:42:39] *** IanOlson has quit IRC
[21:42:51] <JonathanNeal> I’ve attempted to write a minimal example of an Angular directive that makes a simple UI change. It works, but is it Angular and minimal enough? https://gist.github.com/jonathantneal/6f74b0d7329300cc96a3
[21:43:06] *** kvnm has quit IRC
[21:43:12] *** torkel_ has joined #angularjs
[21:43:40] <visionary> so if i have an interceptor that intercepts the response
[21:43:48] *** phuh has quit IRC
[21:43:52] <visionary> 'response': function (config) { console.log('in response interceptor.');
[21:43:53] *** Reskp has quit IRC
[21:44:03] <volk_> Corealis: yeah so that makes sense to me completely, i’m just still iffy on when to write functions on the $scope and when to just shove them into a service
[21:44:07] <visionary> why is it getting called twice
[21:44:10] <volk_> snapwich: i see
[21:44:11] <TorchDragon> JonathanNeal: I'm still a nooblet to Angular but I'd say that's about as minimal as you can get without being obfuscated.
[21:44:11] <visionary> ?
[21:44:13] *** phuh has joined #angularjs
[21:44:35] <BahamutWC|Work> JonathanNeal: in the case of changing css, there is an ng-style directive already
[21:44:48] <Corealis> volk_: Just have your $scope functions delegate calls to one or more associated services. Separation of concerns. Good design. Easier to test
[21:44:58] *** richiebkr has quit IRC
[21:45:06] <BahamutWC|Work> angular comes with a good set of core directives
[21:45:14] *** Reskp has joined #angularjs
[21:45:16] <TorchDragon> BahamutWC|Work: In his example, does making a change on element already hook into $apply?
[21:45:19] <jeffszusz> do nested scopes inherit properties from their parents?
[21:45:31] *** IanOlson has joined #angularjs
[21:45:31] <oniijin> yes
[21:45:41] <BahamutWC|Work> well, changing an element’s CSS doesn’t really need $apply
[21:45:54] <volk_> Corealis: okay fair enough, basically any business logic should go into services
[21:45:59] <TorchDragon> BahamutWC|Work: Because its linked directly into the DOM itself?
[21:46:02] <Corealis> volk_: yes
[21:46:03] *** tschundeee has joined #angularjs
[21:46:09] <volk_> Corealis: and calling those methods and mainpulating them to fit them into the DOM should be in the controller
[21:46:13] <BahamutWC|Work> TorchDragon: correct, it’s just a direct DOM manipulation
[21:46:17] *** mspier_off is now known as mspier
[21:46:28] <Corealis> volk_: NO!
[21:46:38] <volk_> so wait
[21:46:40] <oniijin> lol
[21:46:41] <Corealis> volk_: Create a directive if you need to manipulate DOM
[21:46:48] <volk_> i dont mean manipulate DOM sorry
[21:46:49] <volk_> i meant
[21:46:52] *** kvnm has joined #angularjs
[21:46:54] <snapwich> volk_: look at this example for creating models: http://blog.revolunet.com/blog/2014/02/14/angularjs-services-inheritance/
[21:47:06] <volk_> populate the dom with certain data formatted in a precise way
[21:47:11] *** michaelm has quit IRC
[21:47:13] <JonathanNeal> TorchDragon, BahamutWC|Work, thank you. I wanted a basic understanding. Now, with that being said, has someone already ported stickyjs.com (this version) to angular? I see there are some angular sticky projects but none of them say they are a port of this.
[21:47:19] <volk_> snapwich: thanks will do
[21:47:23] <quan__> when you manipulate the dom directly, god kills a kitten
[21:47:30] <Corealis> volk_: I think you should have a look at filters too
[21:47:44] <BahamutWC|Work> quan__: nothing wrong with direct DOM manipulation - the point of angular is to organize it nicely
[21:47:48] *** wallerdev has quit IRC
[21:47:50] *** cthrax has joined #angularjs
[21:47:55] <oniijin> it's ok I'm allergic to cats
[21:48:13] <jeffszusz> oniijin, is it weird to access $scope.something from the parent scope, when only the html really dictates that it's a child ?
[21:48:21] <BahamutWC|Work> oniijin on the other hand is a fiend
[21:48:23] <quan__> BahamutWC|Work: as a rule, the dom should driven by your data
[21:48:27] <volk_> Corealis: only reason i ask this question is cause im reading this angular book and he gives an example of using ng-options and does something like ng-options=“getFullName(user) for user in users”
[21:48:40] <volk_> so that would mean he has getFullName defined on the $scope
[21:48:47] <volk_> right?
[21:48:48] <oniijin> jeffszusz sounds like you're doing something weird
[21:49:02] <quan__> if youre trying to do it yourself, its a sign maybe youre killing kittens though perhaps not in all cases
[21:49:03] <BahamutWC|Work> quan__: at some level though, DOM manipulation can certainly get involved though
[21:49:08] <Corealis> volk_: I haven't used ng-options yet, but probably so, yes
[21:49:09] <quan__> this is true
[21:49:14] <oniijin> either access the scope using controlleras, or you need a service to link them
[21:49:29] <BahamutWC|Work> I’m just nuancing your comment
[21:49:43] <volk_> Corealis: yeah which made me think, why have getFullName on the $scope .. shouldn’t that be on a model?
[21:49:44] <quan__> nuance accepted
[21:49:49] *** michaelm has joined #angularjs
[21:49:57] <oniijin> he nuanced all over you face
[21:50:11] <jeffszusz> oniijin, I have a tabsController keeping track of what tab I'm in and some other info; the tab that's showing is a nested view with its own controller. in the child, I can access $scope.SomethingOnTabsScope
[21:50:12] <Corealis> you can't bind the service directly, you need a scope (view-model)
[21:50:23] <quan__> sounds unhygenic
[21:50:24] <jeffszusz> (ui.router nested views)
[21:50:29] *** richiebkr has joined #angularjs
[21:50:42] *** ngoyal has quit IRC
[21:50:45] <Corealis> volk_: you need a delegate function on the scope to be able to bind to some service method
[21:50:52] <JonathanNeal> Where in jQuery someone might have done something like $("#sticker").sticky({topSpacing:0}); in Angular, are these options better passed in via the template ui-sticky=“{topSpacing:0}” or something similar? If so, how?
[21:50:58] <volk_> Corealis: right so i guess maybe he did something like $scope.getFullName = myService.fullName
[21:51:15] *** tschundeee has quit IRC
[21:51:18] <Corealis> volk_: yes
[21:51:23] <volk_> would that be a valid practice?
[21:51:25] *** Bade has joined #angularjs
[21:51:46] <zumba_addict> does Controller as work in 1.2.16?
[21:51:58] *** backslashed has joined #angularjs
[21:52:01] *** backslashed has left #angularjs
[21:52:09] *** backslashed has joined #angularjs
[21:52:13] <oniijin> jeffszusz what's the issue
[21:52:17] <oniijin> u lost me
[21:52:23] *** icfantv has quit IRC
[21:52:30] *** backslashed has left #angularjs
[21:52:35] *** icfantv has joined #angularjs
[21:52:36] <Corealis> volk_: you need scope-methods when you have to do some imperative coding to update a property. Otherwise you bind the property directly
[21:52:42] *** trave has quit IRC
[21:52:42] *** rho has quit IRC
[21:52:48] *** dob_ has joined #angularjs
[21:52:53] <jeffszusz> I'm just asking if it's ideal to be accessing the parent's scope, when the only reason its a parent is that they are nested in the html
[21:53:09] *** pootpoot has joined #angularjs
[21:53:19] <jeffszusz> if i were to use this controller somewhere else, it might NOT be a child of that tabsController
[21:53:27] *** JoshGlzBrk has joined #angularjs
[21:53:33] <oniijin> yeah it couples your code which makes it a tad smelly
[21:53:34] <pootpoot> Is it possible to write a directive to automatically target and run a function for any <a/> element on the page?
[21:53:39] *** phuh has quit IRC
[21:53:39] *** JoshGlzBrk has quit IRC
[21:53:41] <oniijin> but if it works up to you how you want to handle it
[21:53:43] <snapwich> pootpoot: yes
[21:53:51] <snapwich> angular.directive("a", function(){});
[21:54:11] *** phuh has joined #angularjs
[21:54:15] <pootpoot> snapwich: when will that be triggered exactly?
[21:54:16] <jeffszusz> oniijin, so even though scopes inherit we should maybe just keep that in a service?
[21:54:28] <snapwich> anytime an a element is seen in your angular app during a compile phase
[21:54:44] *** volk__ has joined #angularjs
[21:54:48] *** tfennelly has joined #angularjs
[21:54:52] *** volk__ has quit IRC
[21:54:57] <oniijin> to keep things cleaner yeah
[21:55:10] *** XoRoN has quit IRC
[21:55:11] *** richiebkr has quit IRC
[21:55:19] *** IanOlson has quit IRC
[21:55:37] *** Silne30 has quit IRC
[21:55:50] *** pscanf has joined #angularjs
[21:56:23] *** Bade has quit IRC
[21:56:49] *** _jpfm has quit IRC
[21:57:22] *** tarkus has quit IRC
[21:57:33] *** screamingbanshee has quit IRC
[21:57:35] *** icfantv has quit IRC
[21:57:43] *** Digidog has quit IRC
[21:58:02] *** icfantv has joined #angularjs
[21:58:17] *** nickeddy has joined #angularjs
[21:58:23] *** icfantv has quit IRC
[21:58:36] <snapwich> pootpoot: one thing I forgot to mention, youl'll have to restrict: "E" that thing to target "a" tags. they're restricted to attributes by default
[21:59:01] *** tilgovi has quit IRC
[21:59:30] *** waylon999 has quit IRC
[22:00:01] *** jacuqesdancona has joined #angularjs
[22:00:12] *** dariocravero has joined #angularjs
[22:00:18] *** elrabin has quit IRC
[22:00:18] *** danyim_ has joined #angularjs
[22:00:27] *** icfantv has joined #angularjs
[22:00:27] *** trave has joined #angularjs
[22:00:30] *** dob_ has quit IRC
[22:00:56] *** dob_ has joined #angularjs
[22:01:07] *** arussel has quit IRC
[22:02:05] *** charlesfinley has joined #angularjs
[22:02:08] *** lite_ has quit IRC
[22:02:23] *** blueadept` has quit IRC
[22:02:48] *** fairchild has joined #angularjs
[22:02:49] *** blueadept has joined #angularjs
[22:03:03] <charlesfinley> Hi, I would like to implement an AngularJS service to handle different kinds of business logic validation
[22:03:08] *** Limix has joined #angularjs
[22:03:22] *** tilgovi has joined #angularjs
[22:03:23] <icfantv> charlesfinley: huh?
[22:03:31] <charlesfinley> I'm thinking of creating a central ValidationService service
[22:03:33] *** ftwordring has joined #angularjs
[22:03:50] <ftwordring> Anyone know off the top why my controller's constructor might be getting invoked twice? I only use it once in my app and it's not in a repeat or anything.
[22:03:58] <pootpoot> snapwich: thanks ill check it out..... do compile phases happen after the page completes, for example loading extra a elements via ajax?
[22:04:14] *** Nek has joined #angularjs
[22:04:15] *** khodgson has quit IRC
[22:04:22] *** jacuqesdancona has quit IRC
[22:04:26] <icfantv> charlesfinley: you can create a service to do whatever the heck you want. you should still do client-side validation as well
[22:04:27] *** danyim_ has quit IRC
[22:04:28] <charlesfinley> that would be requesting FormValidationService, BusinessValidationServiceOne, BusinessValidationService2, etc.
[22:04:31] *** khodgson has joined #angularjs
[22:04:40] *** dcherman2 has joined #angularjs
[22:04:46] <charlesfinley> i'm talking about the architecture
[22:04:53] <icfantv> and quite honestly, i would do the validation on submit and part of the original post/put/whatever
[22:04:54] <charlesfinley> sorry, wasn't very clear
[22:04:56] *** juampy_backlater is now known as juampy
[22:05:12] <charlesfinley> that wouldn't work
[22:05:24] <charlesfinley> mainly because the forms are f-ing long
[22:05:29] <snapwich> pootpoot: compiles happen when the app is bootstrapped and then occasionally at other times when content is dynamically loaded through ng-includes etc
[22:05:33] *** dob_ has quit IRC
[22:05:45] <snapwich> if you load stuff yourself through ajax outside of angular you'll have to manually $compile in order for angular to run your "a" directive
[22:05:47] <icfantv> charlesfinley: that screams to me to be simplified then
[22:05:51] *** hydrozen has joined #angularjs
[22:06:11] <charlesfinley> lol
[22:06:12] *** ingshtrom has quit IRC
[22:06:13] <charlesfinley> no
[22:06:14] *** ishi has joined #angularjs
[22:06:21] <charlesfinley> this is very business specific. You can't get away from that
[22:06:23] <icfantv> charlesfinley: i'm having VB flashbacks
[22:06:28] <charlesfinley> it's government document filing
[22:06:34] *** amortimer has joined #angularjs
[22:06:49] <charlesfinley> My question is about the architecture of my validation service
[22:06:50] <JonathanNeal> BahamutWC|Work: in the directive examples I’ve seen, authors are using element attributes as the arguments for the plugin. Is this the preferred method? My concern with following this convention is that multiple plugins could potentially clobber the same attribute names.
[22:06:54] <icfantv> charlesfinley: understood. angular has validation bindings for the client side.
[22:07:02] *** Siecje has quit IRC
[22:07:11] *** dcherman has quit IRC
[22:07:18] <BahamutWC|Work> JonathanNeal: you could namespace them
[22:07:21] *** Trow has quit IRC
[22:07:24] <charlesfinley> You mean valid, invalid, dirty, prestine, etc.?
[22:07:24] <icfantv> charlesfinley: i would use those as much as possible and then on submit do the validation. you don't want 400 AJAX calls going on to validate everything
[22:07:39] <icfantv> charlesfinley: yes. length, custom, whatever
[22:07:44] <charlesfinley> i'm already using those
[22:07:48] <charlesfinley> for the basic stuff
[22:07:53] <charlesfinley> think this way
[22:07:57] *** cthrax has quit IRC
[22:07:59] *** waylon999 has joined #angularjs
[22:08:04] <Thorn> what events does ng-model listen to in order to update its value? keyup, input, change, ... ?
[22:08:05] *** nitsujw has quit IRC
[22:08:13] <charlesfinley> you're sending an application for X reason.
[22:08:13] *** vader has quit IRC
[22:08:34] <charlesfinley> I must check your age and address. If address is in location Y, the postcode must be ZZZZ
[22:08:43] *** Strues has joined #angularjs
[22:08:56] *** amargherio has joined #angularjs
[22:08:58] *** whunt has joined #angularjs
[22:09:17] *** volk_ has quit IRC
[22:09:19] <charlesfinley> so i can't get away with angularjs client side validation
[22:09:26] <icfantv> charlesfinley: understood. if you expect your load to be very high, i could understand wanting to make a separate service.
[22:09:30] *** richiebkr has joined #angularjs
[22:09:30] <Strues> Is there anyone in here that uses gulp instead of grunt? Ive got a quick question
[22:09:31] *** JasonSto_ has joined #angularjs
[22:09:40] <snapwich> i use both gulp and grunt
[22:09:50] *** eamonn has joined #angularjs
[22:10:02] <charlesfinley> i don't expect it to be very high tbh
[22:10:03] *** nanoyak has joined #angularjs
[22:10:03] *** wilmoore has joined #angularjs
[22:10:04] <icfantv> charlesfinley: but presubmitting your form before you submit, just to validate it, feels wrong
[22:10:20] *** dylukes has joined #angularjs
[22:10:30] <charlesfinley> naaah
[22:10:32] *** mccarrontr1ck has quit IRC
[22:10:35] <icfantv> charlesfinley: also, why do you care how long the form is?
[22:10:37] <charlesfinley> here's an example
[22:10:53] <icfantv> charlesfinley: look, you can do whatever you want. i'm just offering suggestions.
[22:11:04] <charlesfinley> we have <button type="button" data-ng-click="validateForm()">Submit</button>
[22:11:17] <teslan> someone, please take a look at this (ui-router related) ... http://pastebin.com/UAANeScV
[22:11:23] <Strues> I'm using the directory structure recommended by google; the modular way. I cant seem to find any examples that pull the html files from the module directory instead of a views. How could I go about doing this?
[22:11:23] <icfantv> charlesfinley: personally, i would submit the form, and then have that server side code make the service call to validate the form.
[22:11:26] *** jchamberlain has quit IRC
[22:11:33] *** jchamberlain has joined #angularjs
[22:11:50] *** JasonStoltz has quit IRC
[22:11:57] <JonathanNeal> BahamutWC|Work: namespacing is without the ui prefix though, correct? Pardon the naive-ness there if that’s a given.
[22:12:04] <BahamutWC|Work> teslan: do ‘west-head@menu’ and ‘west-foot@menu'
[22:12:05] <charlesfinley> validateForm = function() { ValidationService.validateFormX(); }
[22:12:07] <icfantv> charlesfinley: no. i get it.
[22:12:08] *** jaequery_ has quit IRC
[22:12:22] *** mccarrontr1ck has joined #angularjs
[22:12:27] <BahamutWC|Work> JonathanNeal: you can choose whatever to namespace with
[22:12:38] <icfantv> charlesfinley: and again, you can do whatever you want. i, personally, would do it a different way.
[22:12:40] *** cthrax has joined #angularjs
[22:12:45] <BahamutWC|Work> it’d just be a convention that’s convenient for you to avoid any future conflicts
[22:12:59] *** patricka_ has joined #angularjs
[22:13:00] <snapwich> Strues: you might want to look into using something like: https://github.com/marklagendijk/gulp-ng-html2js
[22:13:07] *** amortimer has quit IRC
[22:13:10] *** nitsujw has joined #angularjs
[22:13:14] <icfantv> charlesfinley: because i can also circumvent your validation if you do it that way.
[22:13:25] <charlesfinley> icfantv: both client side validation and server side validation is necessary
[22:13:39] *** xaxisx has joined #angularjs
[22:13:47] <icfantv> charlesfinley: right. but if you're validating your form on the client side, you are going to have to do it again on the server
[22:13:53] *** eamonn has quit IRC
[22:13:53] <charlesfinley> yes
[22:13:56] <icfantv> so you're making an extra call
[22:13:58] <Strues> snapwich: that looks almost exactly what im looking for. Thank you
[22:14:02] <charlesfinley> we have a component based system
[22:14:06] <charlesfinley> server is just a component
[22:14:14] <charlesfinley> it must be bulletproof in all cases
[22:14:17] <icfantv> it really sounds like you are looking for validation.
[22:14:39] <icfantv> there's nothing stoping you from doing it the way you have suggested.
[22:14:50] <icfantv> i'm just saying, i wouldn't do it that way. your call
[22:15:00] <charlesfinley> are there any drawbacks by choosing my method?
[22:15:09] <icfantv> thinking...
[22:15:10] <charlesfinley> that's pretty much why i came here to discuss :D
[22:15:13] <icfantv> gotcha
[22:15:17] <ftwordring> what's the proper way to do something like a label function for an option being spit out by an ng-option?
[22:15:20] *** Strues has quit IRC
[22:15:24] <icfantv> extra server calls
[22:15:29] <ftwordring> Should I make a new directive or a filter?
[22:15:38] <charlesfinley> that's inevitable because it's a component based system.
[22:15:39] *** FIFOd[a] has quit IRC
[22:15:41] *** dariocravero has quit IRC
[22:15:53] <teslan> BahamutWC|Work ... so coool, it works ... thanks a million
[22:16:01] <BahamutWC|Work> np
[22:16:04] <icfantv> and double validation
[22:16:05] <charlesfinley> server-side has to be bulletproof
[22:16:19] <charlesfinley> yes, double validation might sound bad
[22:16:22] <charlesfinley> but think this way
[22:16:27] <icfantv> triple if you count angular's built-in validation
[22:16:38] <charlesfinley> I am able to provide immediate quality feedback on complicated forms
[22:16:42] *** volk_ has joined #angularjs
[22:16:45] <oniijin> when u drunkenly bring a girl home from the bar, u should def double validate
[22:16:47] *** patrickarlt has quit IRC
[22:16:55] *** zouave is now known as djksdjasjdksjdjk
[22:16:55] *** wallerdev has joined #angularjs
[22:16:57] <charlesfinley> oniijin: :D
[22:16:59] *** djksdjasjdksjdjk is now known as zouave
[22:17:02] <snapwich> I know this may sound crazy, but has anyone found a good way to package their CSS with their angular app. kind of like how all your html templates can be compiled into the templateCache and packaged with your .js blob?
[22:17:39] *** hugoleodev has quit IRC
[22:17:40] <BahamutWC|Work> snapwich: that’d be a limitation of CSS I’d think - it currently has to be provided by the link tag
[22:17:45] *** spencercarnage has quit IRC
[22:17:49] *** DoubleAW has quit IRC
[22:18:09] <snapwich> or you can include it with a style tag
[22:18:12] <BahamutWC|Work> the templateCache works for html templates because javascript has a way of converting those templates into actual DOM nodes
[22:18:16] *** DoubleAW has joined #angularjs
[22:18:28] <BahamutWC|Work> well true, but that’d probably cause a hellish reflow
[22:18:32] <icfantv> charlesfinley: if i have an angular AP that creates things. and it's server side pieces talk to another REST service, before creating the thing, do i ask the REST service if i can create it, or do i just try and create it and let the service reject it as a duplicate (e.g.)?
[22:18:36] <juanlas> has anyone used beforeEach for global context setup? i.e. outside of a describe( )
[22:18:50] *** hugoleodev has joined #angularjs
[22:18:51] <snapwich> i see what you're saying thouhg. however you could dynamically attach the CSS with javascript as well, probably not as pretty as html though
[22:18:56] *** squeakytoy2 has joined #angularjs
[22:19:06] <icfantv> charlesfinley: my argument is the latter. let the service reject it as a duplicate.
[22:19:06] *** SomeKittens has joined #angularjs
[22:19:14] <BahamutWC|Work> more overhead, since changing the styles will result in a lot of recomputation
[22:19:21] <charlesfinley> hmmm
[22:19:31] <BahamutWC|Work> all of the styles would have to be recomputed, as opposed to styles being computed for a fresh DOM node
[22:19:32] <snapwich> in my case that probably wouldn't be too big of a deal
[22:19:47] <icfantv> charlesfinley: because, i'd argue, it's not the application's job to detect duplicates
[22:19:49] *** spencercarnage has joined #angularjs
[22:19:52] *** hugoleodev has quit IRC
[22:19:56] <snapwich> my app is literally like a self-contained web component that gets injected into other pages that have their own html, js, css.
[22:20:06] *** BryceReynolds has joined #angularjs
[22:20:10] <icfantv> charlesfinley: it's the REST service's job.
[22:20:10] *** waylon999 has quit IRC
[22:20:13] <snapwich> right now it's all nicely packaged except for the CSS that has to be included ahead of time
[22:20:13] *** hugoleodev has joined #angularjs
[22:20:15] <charlesfinley> that's fair enough
[22:20:18] *** e-dard is now known as e-dard_afk
[22:20:23] *** jtimon has quit IRC
[22:21:06] *** andrewhl has quit IRC
[22:21:17] *** dcherman has joined #angularjs
[22:21:23] *** spencercarnage has quit IRC
[22:22:04] *** pibu7 has quit IRC
[22:22:30] *** jaequery has joined #angularjs
[22:23:44] *** dcherman2 has quit IRC
[22:24:20] *** hugoleodev has quit IRC
[22:24:35] *** rho has joined #angularjs
[22:24:55] *** nanoyak has quit IRC
[22:25:06] *** D-Boy has quit IRC
[22:26:00] *** nanoyak has joined #angularjs
[22:26:59] *** t_kjaergaard has quit IRC
[22:27:18] *** andrewhl has joined #angularjs
[22:27:46] *** andrewhl has quit IRC
[22:27:59] *** hydrozen has quit IRC
[22:28:00] *** lsiv568 has quit IRC
[22:28:09] *** lsiv568 has joined #angularjs
[22:28:29] *** dhcar is now known as dhcar_AFK
[22:28:50] *** khodgson has quit IRC
[22:28:54] *** FIFOd[a] has joined #angularjs
[22:29:01] *** volk__ has joined #angularjs
[22:29:01] *** bayousoft has quit IRC
[22:29:11] *** jmoney_ has joined #angularjs
[22:29:14] *** volk__ has quit IRC
[22:29:18] *** woebtz has joined #angularjs
[22:29:35] *** JAAulde has quit IRC
[22:30:06] *** jchamberlain has quit IRC
[22:30:29] *** francisl has quit IRC
[22:30:34] *** baz has joined #angularjs
[22:30:46] *** D-Boy has joined #angularjs
[22:31:48] *** francisl has joined #angularjs
[22:32:04] *** walden is now known as walden|brb
[22:32:50] *** FunnyLookinHat has quit IRC
[22:33:05] *** bkuberek has quit IRC
[22:33:12] *** lordkryss_ has joined #angularjs
[22:33:57] <icfantv> charlesfinley: thanks. i didn't want to effectively say "that's bad" without having some sort of analogy or alternative…
[22:34:20] *** lsiv568 has quit IRC
[22:34:30] <charlesfinley> I do understand what you're saying
[22:34:42] <charlesfinley> And i though about this as well
[22:34:46] <charlesfinley> thought*
[22:34:53] *** visionary has quit IRC
[22:35:20] *** DuelShark has quit IRC
[22:35:23] <charlesfinley> due to complicated business logic I must be able to provide immediate feedback to the user
[22:35:47] *** visionary has joined #angularjs
[22:35:48] *** michaelm has quit IRC
[22:35:52] *** jmoney_ has quit IRC
[22:36:16] *** galigan has joined #angularjs
[22:36:16] <charlesfinley> this is why I want to create a master ValidationService on the client side
[22:36:26] *** richiebkr has quit IRC
[22:36:57] *** mehlah has joined #angularjs
[22:36:58] *** xaxisx has quit IRC
[22:37:02] *** Hadrien has joined #angularjs
[22:37:11] *** lordkryss has quit IRC
[22:37:13] *** Hadrien has quit IRC
[22:38:13] *** martiis has joined #angularjs
[22:38:42] *** RobinBAwesome has joined #angularjs
[22:38:42] *** waylon999 has joined #angularjs
[22:39:10] *** ankoh has joined #angularjs
[22:39:36] *** galigan has quit IRC
[22:40:06] *** foofoobar has quit IRC
[22:40:24] <caitp> can one of you send a pull request against the master branch real quick?
[22:40:27] <caitp> would be super helpful
[22:40:37] <caitp> change anything, just don't break any tests.
[22:40:41] <caitp> change a doc, doesn't matter
[22:41:18] *** hydrozen has joined #angularjs
[22:41:18] *** fairchild has quit IRC
[22:42:47] *** tilgovi_ has joined #angularjs
[22:43:12] *** tilgovi has quit IRC
[22:43:14] *** pscanf has left #angularjs
[22:43:20] <trave> snapwich: what are your opinion of: https://github.com/substack/insert-css ?
[22:43:48] <snapwich> trave: first i've heard of it, but i'll look at it
[22:43:48] <charlesfinley> icfantv: http://hastebin.com/catezejaso.vhdl
[22:43:52] *** ngbot has joined #angularjs
[22:43:52] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/ahFuiA
[22:43:53] <ngbot> angular.js/master f3a763f Caitlin Potter: feat($q): add streamlined ES6-style interface for using $q...
[22:43:53] *** ngbot has left #angularjs
[22:43:53] *** calumet has quit IRC
[22:44:04] *** Oddman has joined #angularjs
[22:44:06] <charlesfinley> is this a smart way to do this?
[22:44:26] *** torkel_ has quit IRC
[22:44:28] <icfantv> charlesfinley: one sec, lemme peak
[22:44:31] <icfantv> peek
[22:44:47] *** lucasefe has quit IRC
[22:45:34] *** in_deep_thought has quit IRC
[22:45:52] *** AngularUI has joined #angularjs
[22:45:52] <AngularUI> [bootstrap] pkozlowski-opensource closed pull request #2505: Fixing autoselect based on comments @ https://github.com/angular-ui/boot... (master...master) http://git.io/tb5IwQ
[22:45:52] *** AngularUI has left #angularjs
[22:46:14] *** dutis has joined #angularjs
[22:46:20] *** ededagic has quit IRC
[22:46:22] <icfantv> charlesfinley: i like the validator services separate. but am not sure i like them all consolidated into one validator service that just deligates
[22:46:36] *** blueadept has quit IRC
[22:46:39] <icfantv> it does clean up you DI significantly if you have a lot of services.
[22:46:50] *** in_deep_thought has joined #angularjs
[22:47:04] <charlesfinley> i'm planning to have 5-10 different ones
[22:47:04] *** cthrax has quit IRC
[22:47:22] <ftwordring> I have some really simple behavior here regarding calling decodeURI directly vs indirectly as part of ng-option... could someone shed some light? I'm confused as to why this doesn't work in both cases: http://plnkr.co/edit/tO1I83EfGBxn5025IQ4k
[22:47:37] *** tschundeee has joined #angularjs
[22:47:40] <icfantv> charlesfinley: the delegator is easy to implement after the fact if you find you are DI'ing many of your validator services, but if you're only ever doing one or two, leave them as specifically DI'd
[22:47:54] *** walden|brb is now known as walden
[22:47:59] <icfantv> charlesfinley: would you DI them ALL into, say, one controller?
[22:48:16] *** fedenunez has quit IRC
[22:48:24] <icfantv> or would one page only need one or two specific validator services?
[22:48:24] *** ngbot has joined #angularjs
[22:48:24] <ngbot> [angular.js] IgorMinar pushed 1 new commit to master: http://git.io/SKSEag
[22:48:24] <ngbot> angular.js/master 8a27aba Chris Chua: fix(jqLite): triggerHandler support unbind self...
[22:48:25] *** ngbot has left #angularjs
[22:48:26] <nickeddy> is there a way to make a service return a promise so that I can be sure it's done doing stuff like $http calls?
[22:48:58] <icfantv> nickeddy: you mean, other than return $http…?
[22:49:06] *** akrikos has quit IRC
[22:49:08] <ftwordring> $http.get/post already returns promises
[22:49:13] <nickeddy> no i know
[22:49:17] <nickeddy> but the service does a lot of shit
[22:49:19] <charlesfinley> And DI is...? :) Sorry, I'm quite new to AngularJS - don't know the slang
[22:49:28] <icfantv> nickeddy? call .then()
[22:49:29] <ftwordring> charlesfinley: Dependency injection
[22:49:36] <charlesfinley> aaah!
[22:49:39] *** ankoh has quit IRC
[22:49:41] *** startupality has joined #angularjs
[22:49:47] *** mccarrontr1ck has quit IRC
[22:49:54] <nickeddy> icfantv: i want to do .then() on the service itself :P
[22:50:00] <charlesfinley> One validation service is already ±300 lines of code
[22:50:18] <charlesfinley> the others will be singnificantly smaller
[22:50:24] *** bphogan is now known as bphogan_afk
[22:50:25] <charlesfinley> but i prefer clean code over
[22:50:30] <icfantv> nickeddy: i don't follow
[22:50:41] <charlesfinley> some insignificant optimization
[22:51:03] <charlesfinley> tbh i'm not sure - this is why I am asking here
[22:51:08] <icfantv> charlesfinley: i don't think the length makes a difference….
[22:51:34] <blackkbot> thats not what i've heard
[22:51:39] <charlesfinley> D
[22:51:40] <charlesfinley> :D
[22:51:45] <icfantv> nickeddy: $http(…).success(…).error(…).then(…)
[22:51:47] *** mccarrontr1ck has joined #angularjs
[22:51:51] *** Ansikt has joined #angularjs
[22:51:51] <nickeddy> icfantv: currently my User service has different permission questions (essentially 'is this user part of this group?') and other things call those permission checks too early i guess and they return false because it's not done doing $http before that
[22:51:53] *** tschundeee has quit IRC
[22:51:55] <nickeddy> i'm aware of how $http works.
[22:52:17] *** mspier is now known as mspier_off
[22:52:18] <charlesfinley> icfantv: long code is harder to maintain. I prefer separation of concerns :s
[22:52:28] *** azureknight has joined #angularjs
[22:52:41] *** torkel_ has joined #angularjs
[22:52:43] *** dopry has joined #angularjs
[22:53:00] <icfantv> nickeddy: not sure i follow. you are checking permissions for what purpose?
[22:53:08] *** waylon999 has quit IRC
[22:53:28] <icfantv> charlesfinley: yes. but i have to assume that your validation code is correct
[22:53:32] *** tonycoco has joined #angularjs
[22:53:36] *** mrits has quit IRC
[22:53:56] <icfantv> nickeddy: like, do i have permission to click the save button?
[22:54:23] <nickeddy> yeah
[22:54:26] *** waylon999 has joined #angularjs
[22:54:33] <charlesfinley> this is why i'll be TDD'ing the crap out of the service
[22:54:38] <charlesfinley> :D
[22:54:52] <nickeddy> icfantv: it's for permissions editing certain columns in an ng-grid, but yeah
[22:54:54] *** xaxisx has joined #angularjs
[22:55:28] *** spaceonline has quit IRC
[22:55:42] <icfantv> nickeddy: from a UX perspective, if i don't have permission to do something, i shouldn't be able to even try.
[22:56:11] *** geoid has joined #angularjs
[22:56:13] <geoid> greetz!
[22:56:28] <icfantv> nickeddy: so, perhaps, instead of letting me see the save button and then telling me when i click it that i don't have permission, i'd argue that it's better (in most cases) to not even show the button
[22:56:37] *** FIFOd[a] has quit IRC
[22:56:58] <icfantv> nickeddy: you still need to protect the actions caused by that click (on at least the server-side)
[22:57:04] *** michaelm has joined #angularjs
[22:57:11] *** karinaOK has joined #angularjs
[22:57:12] <geoid> how can I echo a root model in my HTML if I don’t know which model it is I will need?
[22:57:14] *** waylon99_ has joined #angularjs
[22:57:37] *** ckboii89 has quit IRC
[22:57:40] <da_wunder> hmm
[22:58:02] *** trave has quit IRC
[22:58:06] <nickeddy> icfantv: yeah those are access controlled on server side... this isn't a button. it's permissions for editing fields in an ng-grid
[22:58:14] *** waylon999 has quit IRC
[22:58:16] *** fold has quit IRC
[22:58:20] *** teeray has quit IRC
[22:58:29] <geoid> i.e. I have something like this: var table = “value inserted by php”; $scope[$scope.table] = {propertyone:’blah’}
[22:58:46] <da_wunder> is it wise to _.merge($scope, SomeListConfigService.getDefaultData()); and that getDefaultData will return an object that has current page, itemsPerPage, etc?
[22:58:56] *** kemm0 has joined #angularjs
[22:58:59] <geoid> then in my HTML I want to do something like ng-show=“scope[scope.table].property1 == ‘blah’”
[22:59:13] *** BobbieBarker has quit IRC
[22:59:26] *** facundor has quit IRC
[22:59:42] <zumba_addict> hey guys, what version of angular are you using?
[22:59:52] *** Nizumzen has quit IRC
[23:00:10] <da_wunder> my point is to avoid 8 lines that are just the same on each controller
[23:00:29] <JonathanNeal> Is one of these better Angular convention? If so, which one? <div sticky="argA=foo,argB=bar”> vs <div sticky sticky-arg-a="foo" sticky-arg-b="bar”>?
[23:00:31] <icfantv> nickeddy: yea, got it. the button was just an example.
[23:00:49] *** xaxisx has quit IRC
[23:01:15] <icfantv> we inject our permissions into our controllers and add to the $scope so we can enable/disable show/hide things in the DOM just by referencing that injected permissions.
[23:01:15] *** bphogan_afk is now known as bphogan
[23:01:20] <nickeddy> icfantv: yeah fuck it i'm just going to put it in my state resolve.
[23:01:26] *** FunnyLookinHat has joined #angularjs
[23:01:32] *** DeanH has quit IRC
[23:01:33] <nickeddy> so it gets done before the rest of the controller goes
[23:01:34] <nickeddy> yay
[23:01:42] *** RedOrangeZ has quit IRC
[23:02:01] <icfantv> nickeddy: are you requesting permissions from the server on the fly?
[23:02:11] <icfantv> or loading when the user logs in and then rolling with it?
[23:02:27] *** trave has joined #angularjs
[23:02:52] <nickeddy> on the fly when they go to a certain state
[23:03:00] *** lite_ has joined #angularjs
[23:03:09] <nickeddy> can't be that trusting :)
[23:03:09] *** amedia has quit IRC
[23:03:13] *** JasonStoltz has joined #angularjs
[23:03:44] *** xaxisx has joined #angularjs
[23:04:04] *** upsell5 has quit IRC
[23:04:06] *** wilmoore has quit IRC
[23:04:31] *** mrits has joined #angularjs
[23:04:34] *** Rahul_Roy has quit IRC
[23:04:41] *** Ethix has joined #angularjs
[23:04:55] <icfantv> stupid users
[23:06:32] *** Oddman has quit IRC
[23:06:52] *** JasonSto_ has quit IRC
[23:06:58] <geoid> anyone know what I’m talking about? :)
[23:07:15] *** richiebkr has joined #angularjs
[23:07:22] *** lite_ has quit IRC
[23:07:46] *** JasonStoltz has quit IRC
[23:07:53] *** conan_the_destro has quit IRC
[23:08:07] *** drej has quit IRC
[23:08:18] *** Mouzi has quit IRC
[23:08:39] *** BillCriswell has quit IRC
[23:08:42] *** eamonn has joined #angularjs
[23:08:52] *** conan_the_destro has joined #angularjs
[23:09:10] *** cctom has quit IRC
[23:10:03] *** ericbarnes has quit IRC
[23:10:11] *** fifthofwry has quit IRC
[23:10:24] *** livingstn has quit IRC
[23:10:43] *** scmx has joined #angularjs
[23:10:53] *** Scymex has quit IRC
[23:11:50] *** richiebkr has quit IRC
[23:11:51] *** Fishy has quit IRC
[23:12:27] *** davedev2_ has quit IRC
[23:12:51] *** Sebastien-L has quit IRC
[23:12:56] *** Jae has quit IRC
[23:13:12] *** eamonn has quit IRC
[23:13:20] *** davedev24_ has joined #angularjs
[23:14:05] <anger> Can someone help me with angular-ui typeahead problem?
[23:14:22] <anger> I'm trying to combine async and custom result examples
[23:14:51] *** blueadept has joined #angularjs
[23:14:55] *** bphogan is now known as bphogan_afk
[23:15:08] *** ckboii89 has joined #angularjs
[23:15:12] *** bayousoft has joined #angularjs
[23:15:19] <anger> $http returns [{name: 'Streetname', city: 'Example}]
[23:15:30] <charlesfinley> http://hastebin.com/wipedalamo.js
[23:15:40] <charlesfinley> why OfficerValidationService is undefined? :s
[23:15:44] *** lordkryss_ is now known as lordkryss
[23:15:55] <anger> How can I get "Streetname" into the input box?
[23:16:46] *** stirlingw has quit IRC
[23:17:20] *** stirlingw has joined #angularjs
[23:18:43] *** HypnotiX has joined #angularjs
[23:19:07] *** hswolff has quit IRC
[23:19:27] *** void_0__ has quit IRC
[23:19:33] *** e-dard_afk is now known as e-dard
[23:19:41] <charlesfinley> icfantv: http://hastebin.com/wipedalamo.js - why OfficerValidationService is undefined? :D
[23:19:54] <charlesfinley> sorry, this is my first test
[23:20:00] *** void_0__ has joined #angularjs
[23:20:14] <icfantv> what line?
[23:20:19] *** tschundeee has joined #angularjs
[23:20:37] *** charuru has joined #angularjs
[23:20:42] <icfantv> factories are tricky. they get executed a boot time and a singleton is created. i got bit by that two days ago
[23:20:49] *** plitzenberger has quit IRC
[23:20:50] <icfantv> *created and returned
[23:21:20] *** TorchDragon has quit IRC
[23:21:36] *** stirlingw has quit IRC
[23:21:45] *** mindlace has quit IRC
[23:22:20] *** TorchDra_ has joined #angularjs
[23:22:23] *** whunt has quit IRC
[23:22:38] <charlesfinley> var output = OfficerValidationService.something();
[23:22:47] *** mtsr has quit IRC
[23:22:57] <charlesfinley> well singleton is what i need :/
[23:23:24] *** HypnotiX has quit IRC
[23:23:52] *** zanea|away is now known as zanea
[23:24:13] <mikehaas763> Was anyone around a couple hours ago when someone asked about the state of the 'controller as' syntax? I was hoping to get a general feel for what most people thought about it but didn't catch it before I lost it.
[23:24:16] *** richiebkr has joined #angularjs
[23:24:27] *** void_0__ has quit IRC
[23:24:31] *** startupality has quit IRC
[23:25:19] <icfantv> mikehaas763: you mean chat history?
[23:25:49] *** bayousoft has quit IRC
[23:25:51] *** dazs has quit IRC
[23:25:54] <mikehaas763> yes I lost the chat history, is anyone logging this channels history?
[23:26:07] *** mfunkie has quit IRC
[23:26:12] *** bphogan_afk is now known as bphogan
[23:26:19] <oniijin> http://goo.gl/8Wwttq log
[23:26:20] <icfantv> i am, but it's on the web
[23:26:23] *** whunt has joined #angularjs
[23:26:24] <icfantv> there ya go
[23:26:25] *** MTGap has joined #angularjs
[23:26:37] *** wilmoore has joined #angularjs
[23:26:50] *** amargherio has quit IRC
[23:26:53] *** tilgovi_ has quit IRC
[23:27:06] <icfantv> charlesfinley: put a breakpoint in your beforeeach and make sure it's getting passed in
[23:27:08] *** jklaus_ has quit IRC
[23:27:17] <icfantv> charlesfinley: basic debugging 101
[23:27:18] *** drej has joined #angularjs
[23:27:29] <icfantv> make sure it's getting injected
[23:27:37] <charlesfinley> i'm aware it's not getting passed in
[23:27:40] *** styles has quit IRC
[23:27:49] <charlesfinley> at the end of the day
[23:27:51] <charlesfinley> it's undefined
[23:27:56] *** richiebkr has quit IRC
[23:27:57] <icfantv> ok, but that's not what you led with.
[23:27:57] *** sonicparke|bradm has quit IRC
[23:27:58] *** DrMabuse has joined #angularjs
[23:27:58] <charlesfinley> how do i debug karma tests?
[23:28:04] <charlesfinley> yeah, sorry
[23:28:08] <icfantv> heh
[23:28:35] <icfantv> what does the angular.module call return?
[23:28:42] *** mronoffon_clone has quit IRC
[23:28:52] <icfantv> oh
[23:28:53] *** toastynerd has joined #angularjs
[23:29:00] <icfantv> where's your [] on your module def?
[23:29:09] <icfantv> or is that in a separate file?
[23:29:21] *** apetro_ has joined #angularjs
[23:29:22] *** fedenunez has joined #angularjs
[23:29:41] <icfantv> with the [], it creates. without, it retrieves
[23:29:54] *** mmccook has quit IRC
[23:30:13] *** Fishy has joined #angularjs
[23:30:39] <icfantv> also, your factory def seems incorrect
[23:30:50] <charlesfinley> it's in another file
[23:30:55] <icfantv> you put the function in the brackets
[23:30:57] *** davedev24_ has quit IRC
[23:31:00] <charlesfinley> http://hastebin.com/uvoxutocut.coffee
[23:31:06] <charlesfinley> here's an example of another test
[23:31:16] *** davedev24_ has joined #angularjs
[23:31:21] <charlesfinley> from the test harness
[23:31:44] *** Limix has quit IRC
[23:32:44] *** toastynerd has quit IRC
[23:33:00] <icfantv> my factory def looks like: angular.module('my-factories', []).factory('MyFactoryName', function() {});
[23:33:20] *** whunt has quit IRC
[23:33:24] <icfantv> i thought the brackets were for DI
[23:33:29] <icfantv> er, DI'd stuff
[23:33:34] <icfantv> er, dependencies
[23:33:37] <icfantv> not DI…
[23:34:28] *** RichardLitt has joined #angularjs
[23:34:30] *** wilmoore has quit IRC
[23:34:36] *** apetro_ has quit IRC
[23:35:19] *** RichardLitt has quit IRC
[23:35:20] <charlesfinley> square brackets - yeah
[23:35:33] <charlesfinley> but i think i can define factories like this
[23:35:40] <charlesfinley> even if there are no dependencies?
[23:35:50] *** hydrozen has left #angularjs
[23:36:28] *** tilgovi has joined #angularjs
[23:37:24] *** whunt has joined #angularjs
[23:37:29] *** ngbot has joined #angularjs
[23:37:29] <ngbot> [angular.js] jeffbcross pushed 1 new commit to master: http://git.io/X-ad0Q
[23:37:29] <ngbot> angular.js/master 925b208 Jeff Cross: fix(docs): change plnkr form to open in same window...
[23:37:29] *** ngbot has left #angularjs
[23:37:44] *** LastWhisper____ has quit IRC
[23:37:46] *** phuh has quit IRC
[23:37:47] *** bbrown has quit IRC
[23:37:55] *** phuh has joined #angularjs
[23:38:00] <visionary> is there a way to append .json to every request?
[23:38:30] <nickeddy> icfantv: thanks for the help by the way, got everything working
[23:38:31] *** phuh has quit IRC
[23:38:52] <icfantv> nickeddy: sure. i'm not sure i did anything though
[23:39:00] *** Jdubs has quit IRC
[23:39:00] *** ccohn has quit IRC
[23:39:06] <nickeddy> haha sometimes just talking out a problem is help
[23:39:08] *** Joshee has quit IRC
[23:39:08] *** tschundeee has quit IRC
[23:39:14] <icfantv> charlesfinley: i dunno, maybe try the other way?
[23:39:17] <BahamutWC|Work> visionary: that sounds a bit overkill
[23:39:33] *** phuh has joined #angularjs
[23:39:35] *** ccohn has joined #angularjs
[23:39:46] *** tschundeee has joined #angularjs
[23:39:59] *** imehesz has quit IRC
[23:40:27] *** ccohn has quit IRC
[23:40:33] *** apetro_ has joined #angularjs
[23:40:47] *** ccohn has joined #angularjs
[23:41:01] *** michaelm has quit IRC
[23:42:24] *** francisl has quit IRC
[23:42:27] *** DeanH has joined #angularjs
[23:42:35] *** upsell5 has joined #angularjs
[23:43:08] *** Trow has joined #angularjs
[23:43:50] *** phuh has quit IRC
[23:44:03] *** tschundeee has quit IRC
[23:44:05] *** in_deep_thought has quit IRC
[23:44:18] *** phuh has joined #angularjs
[23:44:46] *** Jdubs has joined #angularjs
[23:45:20] *** fedenunez has quit IRC
[23:45:21] *** pskrz has quit IRC
[23:45:24] *** ccohn has quit IRC
[23:46:03] <visionary> BahamutWC|Work: if i send a request with .json to an api it responds with json
[23:46:03] *** KernelCurry has quit IRC
[23:46:17] *** evilaliv3 has quit IRC
[23:46:21] *** dopry has left #angularjs
[23:46:35] *** KernelCurry has joined #angularjs
[23:46:38] *** phuh has quit IRC
[23:46:39] *** phuh_ has joined #angularjs
[23:46:48] *** xaxisx has left #angularjs
[23:47:02] *** in_deep_thought has joined #angularjs
[23:47:22] <JonathanNeal> Is there a getBoundingClientRect equivalent in AngularJS elements? https://docs.angularjs.org/api/ng/function/angular.element If there is not, how should I access the native element to execute this method?
[23:47:37] *** hdja has joined #angularjs
[23:48:04] <hdja> I have one method that calls an API and I want to call that method when some condition changes. Right now I'm using watch on several variables to call that method. The problem I see is that it gets called several times some times when more than one condition is changing. How do I get around that?
[23:48:23] *** danizord has quit IRC
[23:48:23] *** nitsujw_ has joined #angularjs
[23:48:28] *** nitsujw has quit IRC
[23:48:29] *** bencc has quit IRC
[23:48:35] *** spencercarnage has joined #angularjs
[23:49:11] *** tschundeee has joined #angularjs
[23:49:26] *** oste has quit IRC
[23:49:51] *** szymek_ has quit IRC
[23:50:41] *** thomasreggi has quit IRC
[23:51:53] *** watsonkp has quit IRC
[23:52:37] *** watsonkp has joined #angularjs
[23:52:40] *** styles has joined #angularjs
[23:52:41] *** styles has joined #angularjs
[23:53:00] *** jaequery has quit IRC
[23:53:09] *** jaequery has joined #angularjs
[23:53:20] *** mikehaas763 has quit IRC
[23:53:35] *** atomical has quit IRC
[23:54:16] *** phuh_ has quit IRC
[23:54:45] *** phuh has joined #angularjs
[23:54:46] *** bencc has joined #angularjs
[23:55:46] *** epantzar has joined #angularjs
[23:55:48] *** phuh has quit IRC
[23:55:53] *** apetro_ has quit IRC
[23:55:58] *** phuh has joined #angularjs
[23:56:15] *** _jpfm has joined #angularjs
[23:57:37] *** nanoyak has quit IRC
[23:57:45] *** thomasreggi has joined #angularjs
[23:57:53] *** charlesfinley has quit IRC
[23:57:55] <ckboii89> hello anyonere there
[23:58:03] *** whunt has quit IRC
[23:58:22] *** xavia has left #angularjs
[23:58:25] *** s3shs has quit IRC
[23:59:34] *** whunt has joined #angularjs
[23:59:35] *** shinnya has joined #angularjs
[23:59:46] *** yoshokatana has quit IRC
top

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