Switch to DuckDuckGo Search
   December 30, 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:37] *** wa5ted has joined #angularjs
[00:00:44] *** startupality has quit IRC
[00:01:18] *** wa5ted has quit IRC
[00:01:22] *** Aswebb_ has joined #angularjs
[00:01:29] *** asheinfeld has quit IRC
[00:01:38] <SchizoDuckie> damian__: i've always really liked this post, if you want something to read http://stackoverflow.com/questions/15666048/service-vs-provider-vs-factory
[00:01:38] *** wa5ted has joined #angularjs
[00:01:47] *** juanpablo_ has quit IRC
[00:01:48] *** nickgs has joined #angularjs
[00:01:50] *** shackleford has quit IRC
[00:02:04] <damian__> BobbieBarker_ what I want is to learn to structure content (ej. chapters of a book) in simple sites (the content is mainly text), I have to learn how to do menus, submenus...
[00:02:12] <robdubya> SchizoDuckie AH
[00:02:16] *** juanpablo_ has joined #angularjs
[00:02:21] <robdubya> just as a criticism point
[00:02:38] <robdubya> doing try/catch inside a promise block usually 'misses the point' of promises
[00:02:43] <SchizoDuckie> i know, i know
[00:02:49] <SchizoDuckie> this is heavily modified debug loaded stuff
[00:02:59] <SchizoDuckie> it was *so* fucking clean
[00:03:02] <SchizoDuckie> and beautiful
[00:03:04] *** zz_night-owl is now known as night-owl
[00:03:05] <robdubya> probably not the *cause* but probably isn't helping debug, likely swallowing errors
[00:03:07] *** whunt has quit IRC
[00:03:11] *** numproc has quit IRC
[00:03:14] <robdubya> move on to indexedDB and forget about :D
[00:03:25] <SchizoDuckie> well, the try/catch should at least allow a console.log to go through
[00:03:30] <SchizoDuckie> which is all i would hope for
[00:03:51] <SchizoDuckie> you may also notice my modifications to the promise.js at the top
[00:04:07] <SchizoDuckie> I completly overwrite chrome's implementation and replace it with promise.js that has logging everywhere an exception can happen
[00:04:24] <SchizoDuckie> also, no result anywhere.
[00:04:26] <robdubya> oof
[00:04:31] *** dc_ has joined #angularjs
[00:04:31] <damian__> BobbieBarker_ I saved that post for read it tonight. do you have some other ?
[00:04:34] <SchizoDuckie> my hope is on a chrome bug
[00:04:46] <BobbieBarker_> no, that post came form SchizoDuckie
[00:04:47] <BobbieBarker_> not me
[00:04:49] <SchizoDuckie> otherwise this is the end of websql for my project
[00:04:52] <BobbieBarker_> youtube is a good resource
[00:05:01] <BobbieBarker_> at times
[00:05:09] <BobbieBarker_> i'm a visual learner
[00:05:10] *** zB0hs has quit IRC
[00:05:13] <damian__> sorry SchizoDuckie do you have some other post ?
[00:05:38] <SchizoDuckie> i'll pass robdubya's link damian__: http://promise-nuggets.github.io/
[00:05:52] *** night-owl has left #angularjs
[00:05:57] <SchizoDuckie> the sooner you learn the beauty of promises the sooner the rest of angular will click as well :)
[00:06:05] <BobbieBarker_> ^^ truth
[00:06:12] *** matheusrocha89 has quit IRC
[00:06:14] *** mandric has joined #angularjs
[00:06:21] *** apertoire has joined #angularjs
[00:06:29] <damian__> thanks a lot SchizoDuckie
[00:06:45] *** matheusrocha89 has joined #angularjs
[00:06:47] *** juanpablo_ has quit IRC
[00:06:49] <SchizoDuckie> youre welcome :)
[00:07:00] *** Aswebb_ has quit IRC
[00:07:47] *** asheshambasta has joined #angularjs
[00:08:10] <SchizoDuckie> robdubya: this is the still pretty version: https://github.com/SchizoDuckie/DuckieTV/blob/angular/js/services/FavoritesService.js#L134
[00:08:18] *** encryptd_fractl has joined #angularjs
[00:08:57] *** dc_ has quit IRC
[00:09:09] <SchizoDuckie> quite bummed that i'm stuck on this. well, stuck, I want to have a fix, somehow
[00:09:25] *** asheinfeld has joined #angularjs
[00:09:46] <SchizoDuckie> submitted a chrome bug, hope that helps
[00:10:40] *** prbc has joined #angularjs
[00:10:41] *** opiates has joined #angularjs
[00:11:22] *** bmac has joined #angularjs
[00:11:25] *** nickgs has quit IRC
[00:11:29] *** ntbisket has quit IRC
[00:11:43] *** mylordi has quit IRC
[00:11:50] *** pcompton has quit IRC
[00:13:14] *** dc_ has joined #angularjs
[00:13:37] *** leolrrj has joined #angularjs
[00:14:12] *** ejb has quit IRC
[00:15:01] *** jonathanpglick has joined #angularjs
[00:15:07] *** leolrrj has quit IRC
[00:15:16] *** leolrrj has joined #angularjs
[00:15:38] *** tristanp has joined #angularjs
[00:15:49] *** torartc has joined #angularjs
[00:16:13] *** platonic has joined #angularjs
[00:16:19] *** nickgs has joined #angularjs
[00:17:15] <Perl> http://u.rtag.me/p/n4zEHt.png
[00:17:17] <Perl> clearly jesus at work
[00:18:06] <SchizoDuckie> open an adminstrator console
[00:18:08] *** qdk has quit IRC
[00:18:11] <Perl> it is an admin console
[00:18:13] *** apertoire has quit IRC
[00:18:15] <BobbieBarker_> thats what you get for trying to use NPM in windows
[00:18:16] <Perl> notice how i ran the same command twice
[00:18:19] <Perl> and the second time worked
[00:18:25] *** asheshambasta has quit IRC
[00:18:26] <SchizoDuckie> ah yes
[00:18:41] <SchizoDuckie> i wrong that read
[00:18:42] <wafflej0ck> yeah easy fix stop using windows :)
[00:18:43] <Perl> also my welcome page looks very
[00:18:46] <Perl> lacking in padding
[00:18:47] <Perl> :^(
[00:18:57] <Perl> is this meant to be
[00:19:11] <BobbieBarker_> it's a sign that you need to go d/l a linux distro
[00:19:20] <Perl> no can do
[00:19:31] <SchizoDuckie> just get a virtualbox ubuntu
[00:19:35] *** startupality has joined #angularjs
[00:19:39] <BobbieBarker_> ^^
[00:19:44] <SchizoDuckie> i run it in seamlessmode, heaven
[00:19:48] *** Bade has joined #angularjs
[00:19:52] <Perl> perhaps i should
[00:19:52] <SchizoDuckie> at work i even made the full switch
[00:19:59] <Perl> well
[00:20:00] <BobbieBarker_> I run virtual Box with linux mint, accross all 3 of my screens
[00:20:06] *** mary5030_ has joined #angularjs
[00:20:13] <SchizoDuckie> yesh works like a charm :)
[00:20:13] *** leolrrj has quit IRC
[00:20:15] <Perl> if i didn't need VS and my games, i would switch
[00:20:21] <Perl> in fact i have done so on my laptop where i don't play anything
[00:20:22] <BobbieBarker_> virtual box dude
[00:20:25] <wafflej0ck> I just run Ubuntu Gnome have Windows in a VM... gaming on the desktop
[00:20:28] <HassanCehef> why don't you dual boot?
[00:20:35] <BobbieBarker_> dual boot is a pain in the ass
[00:20:39] <Perl> because it's a hassle
[00:20:41] <BobbieBarker_> also VM's offer better recovery
[00:20:43] <wafflej0ck> it really is
[00:20:44] *** matheusrocha89 has quit IRC
[00:20:48] <Perl> i'd rather VM
[00:20:49] *** platonic has quit IRC
[00:20:49] <wafflej0ck> I did it for a while
[00:20:51] <BobbieBarker_> i snap shot my VM's
[00:20:53] <wafflej0ck> but VBox is easy
[00:20:58] *** nickgs has quit IRC
[00:21:00] *** macabre has quit IRC
[00:21:00] <HassanCehef> you need a good computer :(
[00:21:02] <BobbieBarker_> i dual booted for awhile too, but then i also realized VM's are cake
[00:21:07] <Perl> i have a good computer
[00:21:08] <SchizoDuckie> too bad it still doesnt work in windows 10
[00:21:08] <Perl> no problem
[00:21:08] <BobbieBarker_> i have 24 gigs of ram at home
[00:21:12] <BobbieBarker_> 12 at work
[00:21:14] <BobbieBarker_> still works fine
[00:21:17] <BobbieBarker_> or 16 here
[00:21:19] <BobbieBarker_> i'm not sure
[00:21:24] <SchizoDuckie> lol
[00:21:27] <SchizoDuckie> then it's all good
[00:21:28] *** tilgovi has quit IRC
[00:21:29] <BobbieBarker_> this work box isn't a beast though
[00:21:34] <Perl> i have 8, but running a seamless VM worked fine with 4
[00:21:38] <wafflej0ck> I only have 8 and it's fine really
[00:21:50] <SchizoDuckie> 'only 8' dude
[00:21:53] <HassanCehef> 'I only have 8'. I have 4
[00:21:54] <BobbieBarker_> linux doesn't need 6 gigs of ram to run like windows does
[00:21:54] <HassanCehef> :D
[00:22:02] <wafflej0ck> heh well when comparing to 24
[00:22:32] <BobbieBarker_> 4 gigs of ram in your system probably isnt enough since that is just what windows needs to breath
[00:22:35] <Perl> ddr3 is cheap so if you ever actually need more it's not a lot to upgrade
[00:22:36] <BobbieBarker_> my box at home is beast mode
[00:22:51] <BobbieBarker_> ya like Perl said, ram is the cheapest upgrade
[00:22:59] <wafflej0ck> yeah with modern windows + modern linux it does take some RAM but 8 is still fine
[00:23:05] <Perl> i'd get more than 8 but i've never actually needed more
[00:23:05] <BobbieBarker_> indeed
[00:23:18] <SchizoDuckie> dammit still no new vbox release
[00:23:24] *** mary5030 has quit IRC
[00:23:32] <SchizoDuckie> this is what i get for trying out win10
[00:23:40] <BahamutWC|Work> I have 16 GB on my home desktop, works just fine for everything
[00:23:45] *** bmac has quit IRC
[00:23:50] *** ntbisket has joined #angularjs
[00:23:52] <BahamutWC|Work> some of my friends have 24 GB - 32 GB though
[00:23:57] *** bmac has joined #angularjs
[00:24:00] *** adoming has joined #angularjs
[00:24:02] <SchizoDuckie> lol what do they do with that
[00:24:08] <BahamutWC|Work> create music
[00:24:09] *** jeremyw_ has quit IRC
[00:24:15] <wafflej0ck> ah okay
[00:24:16] <SchizoDuckie> ah okay, then i understand
[00:24:19] <BahamutWC|Work> all that memory is needed for loading samples
[00:24:30] <SchizoDuckie> back in the day we had 2mb
[00:24:39] <wafflej0ck> yeah was thinking it doesn't even make sense for graphic designers they'd want more VRAM
[00:24:39] *** mary5030_ has quit IRC
[00:24:45] <BahamutWC|Work> some samples take up over 1 GB on their own
[00:24:46] <wafflej0ck> audio makes sense though
[00:24:51] <SchizoDuckie> scream tracker and .mods ftw
[00:25:10] <wafflej0ck> that's pretty insane
[00:25:19] <wafflej0ck> how does 1 sample take that much memory?
[00:25:29] <SchizoDuckie> it's not the one sample
[00:25:31] <wafflej0ck> it's like the opposite of my bewilderment with video compression
[00:25:31] *** uris77 has quit IRC
[00:25:44] <SchizoDuckie> it's the effects overlaid and so
[00:25:56] <BahamutWC|Work> 1 GB in hard drive space that is - not sure about the memory overhead
[00:26:11] *** asheinfeld has quit IRC
[00:26:24] <BahamutWC|Work> but DAWs can take up a ton of memory…they have a habit of crashing too
[00:26:28] <jhooks> 3d modeling/rendering/animation, photo editing, video editing, music, etc
[00:26:43] <SchizoDuckie> and here i am with my beefy laptop and my sublimetext
[00:26:45] <jhooks> there's a lot of use cases for lots of RAM :>
[00:27:04] *** bejames has quit IRC
[00:27:26] *** scottsword has joined #angularjs
[00:27:36] <wafflej0ck> heh yeah as a web dev though I just don't encounter them often
[00:27:43] *** TheAceOfHearts has quit IRC
[00:27:48] <SchizoDuckie> 100 chrome processes helps
[00:27:51] <wafflej0ck> I mean on my dev machine at least
[00:28:03] <wafflej0ck> yeah that's true Chrome can be kind of a hog
[00:28:09] <BahamutWC|Work> the difference between 4 GB and 8 GB is light and day for web dev at least
[00:28:27] <BahamutWC|Work> anything more than 8, you likely won’t see too much of a perf gain
[00:28:37] <BahamutWC|Work> maybe a minor gain
[00:28:52] <wafflej0ck> yeah true I'm usign 59% of the 8GB
[00:29:04] <wafflej0ck> not doing anything special just regular stuff I work with open
[00:29:18] *** whunt_ is now known as whunt
[00:29:18] <wafflej0ck> thunderbird is a massive hog too though
[00:29:27] <SchizoDuckie> 58% here out of 8gb
[00:29:34] <SchizoDuckie> 4gb would absolutely kill it
[00:29:58] <Perl> 60% memory with http://u.rtag.me/p/iNuZmy.png
[00:30:01] <SchizoDuckie> but no vm running yet
[00:30:44] <wafflej0ck> ah well fun chatting spec gotta run out for a bit bbiab
[00:30:53] <SchizoDuckie> o/
[00:31:53] *** renlo has quit IRC
[00:31:56] <SchizoDuckie> lol wut http://www.lofibucket.com/articles/oscilloscope_quake.html
[00:32:33] <scottsword> has anybody written tests for $routeProvider's resolve? I'm writing unit tests using $location.path and $rootScope.$apple() to trigger the route change, but my spec is almost acting like its using a different .config w/o the resolve in place.
[00:32:44] <Perl> apple
[00:33:05] *** asheinfeld has joined #angularjs
[00:33:05] *** subone has quit IRC
[00:33:11] *** TheAceOfHearts has joined #angularjs
[00:33:18] *** subone has joined #angularjs
[00:33:45] <scottsword> lol
[00:33:56] <scottsword> yeah man apple is new 1.3 hottness
[00:33:58] *** Hootch has quit IRC
[00:34:17] <Perl> $rootScope.$apple().iApply()
[00:34:26] <scottsword> lol
[00:34:36] *** renlo has joined #angularjs
[00:34:39] <SchizoDuckie> $injector.get('bapple?').banana()
[00:34:41] *** mkc has joined #angularjs
[00:35:14] *** DarrenCraig has joined #angularjs
[00:36:06] *** Nurbs has quit IRC
[00:36:26] *** asheinfeld has quit IRC
[00:36:33] <adoming> Hey guys, I'm new at Angular, I am trying to use Angular's routing to resolve the necessary objects for the controller scope. I have read a few tutorials on how to do this but I still get undefined, the issue seems to be with linkData being injected into the controller. Anyone mind taking a look? https://gist.github.com/anonymous/28a0131a89b7ee1bc6e0
[00:36:41] <scottsword> well shit
[00:37:05] *** directibexDD has joined #angularjs
[00:37:32] <scottsword> adoming you link is busted
[00:37:40] <scottsword> @admoming
[00:37:42] *** younqcass has quit IRC
[00:37:58] *** ntbisket has quit IRC
[00:38:14] *** directibexDD has quit IRC
[00:38:15] *** cacts|wtf has quit IRC
[00:38:37] *** freelyfred has quit IRC
[00:38:43] <adoming> my bad https://gist.github.com/adoming3/96fc089a2be7d79d8926
[00:40:06] *** bmac has quit IRC
[00:40:23] *** dc_ has quit IRC
[00:40:28] *** lexek__ has quit IRC
[00:41:06] *** RossJH has quit IRC
[00:41:08] <ctanga> can I implement a angular 1.3 “validator” for a field similar to the “required” validator, except it only makes the field “recommended”?
[00:42:38] <SchizoDuckie> you could do some styling and always return true from your validator maybe?
[00:42:46] <ctanga> true
[00:42:49] *** subone has quit IRC
[00:43:05] <SchizoDuckie> then start throwing validation errors when it's filled inproperly
[00:43:09] *** subone has joined #angularjs
[00:43:11] *** subone has left #angularjs
[00:43:16] *** encryptd_fractl has quit IRC
[00:43:33] <Lewix> how do you call a beard that grow black and grey in english again
[00:43:46] <SchizoDuckie> salt and pepper?
[00:43:48] *** snapwich has quit IRC
[00:43:57] *** dc has joined #angularjs
[00:44:03] *** CanyonMan has quit IRC
[00:44:04] *** TheAceOfHearts has quit IRC
[00:44:09] <SchizoDuckie> http://www.thefreedictionary.com/salt-and-pepper
[00:44:21] *** ntbisket has joined #angularjs
[00:44:29] <BahamutWC|Work> never knew that was a thing
[00:44:54] <SchizoDuckie> somehow my dutch brain is filled with useless english knowledge like this
[00:45:12] <SchizoDuckie> i have never once used that in a sentence
[00:45:15] *** phrozensilver has joined #angularjs
[00:45:24] <SchizoDuckie> s/once/ever
[00:45:55] <BahamutWC|Work> and I’ve never seen it before now
[00:46:00] *** zeitgist has joined #angularjs
[00:46:41] *** Zaza has joined #angularjs
[00:46:56] <Lewix> SchizoDuckie: thanks
[00:47:07] <Lewix> SchizoDuckie: wow
[00:47:09] <SchizoDuckie> you're welcome :)
[00:47:17] <Lewix> SchizoDuckie: you guys have an amazing english
[00:47:31] *** DarrenCraig has quit IRC
[00:47:41] <SchizoDuckie> yeah, i think it's because we have subitles with all our series and movies
[00:47:52] <SchizoDuckie> instead of the surrounding countries, which trend to dub everything
[00:47:55] <Tuxity> http://frederiknakstad.com/2013/01/21/authentication-in-single-page-applications-with-angular-js/ you think it's a good way ?
[00:48:10] *** fedenunez has joined #angularjs
[00:48:13] *** startupality has quit IRC
[00:48:20] *** annlewis has joined #angularjs
[00:48:52] *** Zaza has quit IRC
[00:48:57] <SchizoDuckie> oh wow, lots of updates on the peachy 3d printer
[00:49:02] <SchizoDuckie> looking mighty fine :D
[00:49:04] *** calmbird has quit IRC
[00:50:21] *** nuizzy has quit IRC
[00:50:21] *** disorder20 has quit IRC
[00:50:25] *** tilgovi has joined #angularjs
[00:51:09] *** zeitgist has quit IRC
[00:51:17] *** komlev has quit IRC
[00:51:22] *** morenoh149 has joined #angularjs
[00:51:29] *** Perl has quit IRC
[00:51:44] *** disorder20 has joined #angularjs
[00:52:52] *** SargoDarya has joined #angularjs
[00:53:07] *** aminRX has quit IRC
[00:53:41] *** scottsword has quit IRC
[00:55:01] *** navarette has quit IRC
[00:55:33] <Lewix> SchizoDuckie: germany?
[00:55:38] <Lewix> or holland?
[00:56:29] *** morenoh149 has quit IRC
[00:56:37] *** BillCriswell has joined #angularjs
[00:56:43] *** jMyles has quit IRC
[00:56:58] <SchizoDuckie> holland Lewix
[00:57:12] *** SargoDarya has quit IRC
[00:57:32] *** qdk has joined #angularjs
[00:57:39] *** deanne has joined #angularjs
[00:58:02] *** whitebook has joined #angularjs
[00:58:04] *** asheshambasta has joined #angularjs
[00:58:42] *** Reskp has joined #angularjs
[00:59:20] *** dc has quit IRC
[01:00:37] <SchizoDuckie> g2g pplz. walking the dog and then off to bed
[01:00:40] <SchizoDuckie> hvae a good one
[01:00:44] *** asher^ has joined #angularjs
[01:01:16] *** doginal has joined #angularjs
[01:01:34] *** earthquake has quit IRC
[01:01:37] *** adoming has quit IRC
[01:02:23] *** adoming has joined #angularjs
[01:03:20] *** asher^ has joined #angularjs
[01:03:25] *** wallerdev has quit IRC
[01:03:31] *** PointBlank has quit IRC
[01:03:33] *** swist has quit IRC
[01:03:45] *** Reskp has quit IRC
[01:03:49] *** ries has quit IRC
[01:04:04] *** knownasilya has quit IRC
[01:04:33] *** PeterMetz has quit IRC
[01:04:35] *** gunn_ has joined #angularjs
[01:05:12] *** SchizoDuckie has quit IRC
[01:05:15] *** dcherman has joined #angularjs
[01:05:49] *** aminRX has joined #angularjs
[01:06:37] *** gunn has quit IRC
[01:07:04] *** bayousoft has quit IRC
[01:07:30] *** ntbisket has quit IRC
[01:07:42] *** prbc has quit IRC
[01:08:17] *** rtpg has joined #angularjs
[01:08:22] *** windsurf_ has joined #angularjs
[01:08:23] <snurfery> sup yall
[01:08:41] *** ntbisket has joined #angularjs
[01:08:57] <windsurf_> I would like to discuss test driven dev with you guys. I have skimmed over it but have never done it before.
[01:09:22] <windsurf_> I don't quite get the kinds of tests I'd want to run. Would someone give me a couple concrete examples?
[01:09:36] *** mary5030 has joined #angularjs
[01:09:54] <windsurf_> a lot of the UI interaction I imagine would be difficult to test
[01:10:34] *** JMZ_DMZ has joined #angularjs
[01:11:03] *** bayousof_ has joined #angularjs
[01:11:09] *** wallerdev has joined #angularjs
[01:11:48] <caitp> e2e tests are hard
[01:11:51] *** TheAceOfHearts has joined #angularjs
[01:11:56] <caitp> use them, get good at them
[01:12:00] <caitp> learn to make them non-flaky
[01:12:07] <caitp> or to minimize flakiness
[01:13:51] *** asheshambasta has quit IRC
[01:14:17] *** yts has quit IRC
[01:15:08] *** FunnyLookinHat has quit IRC
[01:15:23] *** damian__ has quit IRC
[01:17:37] *** JoshGlzBrk has joined #angularjs
[01:17:58] *** Skrypter has joined #angularjs
[01:18:04] *** renlo has quit IRC
[01:18:07] *** TommyO has quit IRC
[01:19:09] <jaawerth> BahamutWC|Work: Fixed the ng-attr thing! It was a somewhat quick hack so nowhere near PR-ready (and what I did is probably a bad idea even though I only modified 3 lines), but hey, at least now we know the method works http://plnkr.co/edit/SkuxH8BZXHRJAnZ6HQmp
[01:19:48] <jaawerth> lines 1543 and 6625 were added and line 6790 modified (in hacked-angular.js)
[01:19:58] *** doginal has quit IRC
[01:20:47] *** deanne has quit IRC
[01:20:48] *** JMZ_DMZ has quit IRC
[01:21:00] <jaawerth> the neat thing is, from what I can tell from reading this stuff for the first time, I THINK you can safely sub in the jqlite attr function there without causing other things to behave strangely, because Angular is already forcing the attribute into lower-case for everything but ng-attr-foo_bar
[01:21:19] *** grumpyOldRussian has joined #angularjs
[01:21:37] *** doginal has joined #angularjs
[01:22:26] *** TheAceOfHearts has quit IRC
[01:22:37] *** younqcass has joined #angularjs
[01:23:03] *** davek_ has joined #angularjs
[01:23:03] *** davek_ has joined #angularjs
[01:24:29] *** muilenbur has joined #angularjs
[01:25:17] *** fedenunez has quit IRC
[01:25:31] *** grumpyOldRussian has quit IRC
[01:26:47] *** disorder20 has quit IRC
[01:26:53] <BahamutWC|Work> well, the internals of $compile can be a bit tricky to follow, but basically there are regexes that handle this
[01:27:05] *** marc_v92 has quit IRC
[01:27:20] *** shampine has quit IRC
[01:27:34] *** serum33 has quit IRC
[01:27:35] *** Bade has quit IRC
[01:27:55] *** fedenunez has joined #angularjs
[01:28:00] *** windsurf_ has left #angularjs
[01:28:09] *** disorder20 has joined #angularjs
[01:28:31] <BahamutWC|Work> jaawerth: https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L1421-L1427
[01:29:39] *** cacts has joined #angularjs
[01:30:36] *** z3n2 has joined #angularjs
[01:30:43] <jaawerth> BahamutWC|Work: yeah, that's what sets it to camelCase, but it then passes it through the jquery attr, which forces it back to lowercase again
[01:30:45] <BahamutWC|Work> that is the area I added changes at least
[01:30:50] <BahamutWC|Work> yep
[01:30:51] *** mspier is now known as mspier|away
[01:31:30] <jaawerth> so what I did was change https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L1072 to read this.$$element[attrFn](attrName, value);
[01:32:17] *** lucasjones has quit IRC
[01:32:25] *** doginal has quit IRC
[01:32:26] <jaawerth> the tricky part is that the original jqlite function gets obliterated when the jquery replacement happens, so I did what's probably a very dirty hack to save it
[01:32:37] *** fedenunez has quit IRC
[01:32:48] <BahamutWC|Work> it probably affects the garbage collection of jqLite
[01:33:08] <jaawerth> hmm good call, should check how many references to the rest of jqlite it uses
[01:33:08] *** Skrypter_ has joined #angularjs
[01:33:24] *** mmealling has joined #angularjs
[01:33:47] *** gunn_ has quit IRC
[01:33:50] *** TheAceOfHearts has joined #angularjs
[01:34:21] *** jonathanpglick has quit IRC
[01:34:25] *** phrozensilver has quit IRC
[01:34:35] *** lucasjones has joined #angularjs
[01:34:40] <jaawerth> ...huh, just one! https://github.com/angular/angular.js/blob/master/src/jqLite.js#L589-L615
[01:35:18] <jaawerth> er, assuming of course BOOLEAN_ATTR doesn't contain a ton of yet more refs, but it looks like it's just an array of bools
[01:35:35] *** AlSquire has quit IRC
[01:35:56] *** gunn has joined #angularjs
[01:36:12] *** dc has joined #angularjs
[01:36:13] <jaawerth> object of strings, actually
[01:36:15] <BahamutWC|Work> it’s really bad that jquery doesn’t want to fix this
[01:36:20] *** Skrypter has quit IRC
[01:36:22] <BahamutWC|Work> it should be a super simple fix for them
[01:36:37] *** serum33 has joined #angularjs
[01:36:44] <BahamutWC|Work> it could even be a 2.x fix
[01:36:45] <jaawerth> agreed
[01:36:55] <jaawerth> I think the problem is they don't WANT attributes to be case-sensitive
[01:37:01] *** jonathanpglick has joined #angularjs
[01:37:03] <jaawerth> so they instead want to do some magic special SVG sauce
[01:37:16] <BahamutWC|Work> well, svg is older than jquery
[01:37:22] <jaawerth> ha, fair
[01:37:28] *** aminRX has quit IRC
[01:38:06] *** Una has joined #angularjs
[01:38:42] *** AronBrrr has quit IRC
[01:39:14] *** AronBrrr has joined #angularjs
[01:40:00] *** ejb has joined #angularjs
[01:40:27] <Skrypter_> anyone know how to get ng-repeat to spit out trailing html comments?
[01:40:51] <icfantv> Skrypter_: huh?
[01:40:55] <icfantv> example please
[01:40:59] <Skrypter_> http://stackoverflow.com/questions/27698077/how-to-include-trailing-comments-with-ng-repeat
[01:41:30] <icfantv> do you have to use a <div>
[01:41:31] <BahamutWC|Work> do you have to use inline block?
[01:41:33] <BahamutWC|Work> haha
[01:41:35] <icfantv> :-)
[01:41:35] <Skrypter_> yes
[01:41:38] <Skrypter_> lol
[01:41:46] <BahamutWC|Work> seems like bad css is the culprit to me *shrug*
[01:41:47] <icfantv> what's wrong w/ span?
[01:41:52] <icfantv> agreed
[01:41:57] *** aminRX has joined #angularjs
[01:41:57] <Skrypter_> erm
[01:42:18] <Skrypter_> im using inline-blocks for a specific case where i dont want floats
[01:42:26] *** richardbkr has quit IRC
[01:42:32] <Skrypter_> and the issue with that is inline-blocks have a small lil whitespace in between them
[01:42:46] <Skrypter_> but you can get rid of that if you put comments in between them
[01:42:46] *** richardbkr has joined #angularjs
[01:42:53] <Skrypter_> or string them all on one line of code
[01:43:01] *** whitebook has quit IRC
[01:43:10] <icfantv> Skrypter_: use a directive
[01:43:15] <BahamutWC|Work> could use flexbox
[01:43:19] <icfantv> oh god
[01:43:36] <icfantv> if i had a nickel for every time i banged myhead against my desk trying to use flexbox
[01:43:54] <Skrypter_> icfantv: and then just have a special directive go in and prune it to include the comments like i want?
[01:44:02] <BahamutWC|Work> flexbox isn’t that bad, just need to think a little differently
[01:44:03] <Skrypter_> after the ng-repeat finishes
[01:44:04] <icfantv> it's one of those things that sounds absolutely fantastic in theory and in the examples
[01:44:19] <BahamutWC|Work> you can do stuff like set fixed widths on each flex element so that you can get nice custom layouts
[01:44:23] *** JeffBuhrt has quit IRC
[01:44:25] <icfantv> BahamutWC|Work: VERY differently. but the big issue for me was that there's no bootstrap support
[01:44:37] *** Skrypter_ is now known as Skrypter
[01:44:43] <icfantv> Skrypter_: it's like gridbag for java swing
[01:44:45] <BahamutWC|Work> I just create my own custom grid system using flexbox and ditch using Bootstrap’s grids
[01:44:57] <icfantv> apparently i'm not that smart then….
[01:44:59] <icfantv> :-(
[01:45:14] *** MistahKurtz has quit IRC
[01:45:17] <Skrypter> i mean, i think flexbox is cool and all
[01:45:21] <BahamutWC|Work> the one thing flexbox does really well that is a pita to do otherwise is vertical alignment
[01:45:28] <icfantv> omg, yes
[01:45:29] <Skrypter> just had this one use case with comments tabled for like a few months
[01:45:38] <Skrypter> and never could figure out how to get it to do like i want
[01:45:56] <icfantv> Skrypter: so what are you trying to generate that had to be inline-block? maybe we can figure out a different way
[01:46:11] <BahamutWC|Work> alright, well time to go home
[01:46:13] <BahamutWC|Work> ciao!
[01:46:31] *** dc has quit IRC
[01:46:46] *** zeitgist has joined #angularjs
[01:46:51] <Skrypter> literally just plain ole boxes
[01:47:03] <Skrypter> they have headings and pictures inside the box
[01:47:13] <Skrypter> but i want them to freely move around depending on its container sizer
[01:47:26] <Skrypter> and inline-block is nice cuz it just wraps to the next line if it cant fit
[01:47:43] *** mspier|away is now known as mspier
[01:47:46] <Skrypter> and is a lil nicer than using floats or something
[01:47:49] *** dc has joined #angularjs
[01:48:26] *** soee has quit IRC
[01:48:58] *** disorder20 has quit IRC
[01:49:25] *** rikko has joined #angularjs
[01:49:31] *** Aliks has quit IRC
[01:49:37] *** mliq has joined #angularjs
[01:50:07] *** ntbisket has quit IRC
[01:51:33] <icfantv> Skrypter: and it looks like crap if you have the space?
[01:51:36] *** zeitgist has quit IRC
[01:51:54] *** dc has quit IRC
[01:51:58] <Skrypter> ya
[01:52:05] *** mliqu has quit IRC
[01:52:14] *** titanomachy has quit IRC
[01:52:17] *** denysonique has joined #angularjs
[01:52:18] <Skrypter> need those seamless edges between the boxes... yo..
[01:52:24] *** BillCriswell has quit IRC
[01:52:37] <Skrypter> lol its admittedly a very nitpicking scenario
[01:52:48] <Skrypter> but i wanted to solve it
[01:53:03] <icfantv> Skrypter: there's the negative margin trick in that post
[01:53:17] <icfantv> or a font size of zero
[01:53:29] <icfantv> i like the idea of using a CSS class rather than the comment hack
[01:54:28] *** SargoDarya has joined #angularjs
[01:54:43] *** mspier is now known as mspier|away
[01:55:01] *** renlo has joined #angularjs
[01:55:30] *** fairuz has joined #angularjs
[01:55:31] *** k-dawg has joined #angularjs
[01:55:50] *** ChadStrat has quit IRC
[01:56:03] *** dc has joined #angularjs
[01:56:33] <Skrypter> the font zero is a no go, messes with my font EM nesting
[01:57:08] <Skrypter> and the negative margin... doesn't always line up every time (sub-pixel rounding)
[01:58:02] *** dc has quit IRC
[01:58:07] *** emocakes has joined #angularjs
[01:58:17] *** nerdfiles has quit IRC
[01:58:45] *** fotoflo has quit IRC
[01:59:23] *** caitp has quit IRC
[01:59:30] *** Reskp has joined #angularjs
[02:00:40] *** dc has joined #angularjs
[02:00:54] *** whitebook has joined #angularjs
[02:01:23] *** DarrenCraig has joined #angularjs
[02:01:43] *** fotoflo has joined #angularjs
[02:01:44] *** JeffBuhrt has joined #angularjs
[02:02:44] *** adoming has quit IRC
[02:02:52] *** Immutef has quit IRC
[02:03:11] *** Immutef has joined #angularjs
[02:03:11] *** nerdfiles has joined #angularjs
[02:03:42] <icfantv> Skrypter: you're not making this easy
[02:04:06] <Skrypter> i know...
[02:04:07] *** leolrrj has joined #angularjs
[02:04:09] *** adoming has joined #angularjs
[02:04:19] *** Reskp has quit IRC
[02:04:26] <Skrypter> its fine if like someone was able to say "thats just not possible with ng-repeat"
[02:04:36] <Skrypter> but i havent heard that yet
[02:04:43] *** ron_frown has joined #angularjs
[02:05:00] *** dc_ has joined #angularjs
[02:05:05] *** TyrfingMjolnir has quit IRC
[02:05:17] *** Reskp has joined #angularjs
[02:05:19] *** dc_ has quit IRC
[02:05:24] *** fedenunez has joined #angularjs
[02:05:26] *** PeterMetz has joined #angularjs
[02:05:50] *** Menorah has quit IRC
[02:06:13] *** jhooks has quit IRC
[02:06:14] <m0> Hello, I have this http://plnkr.co/edit/HFVyiNe1uF65w7hWcX66?p=preview and I am using ngInclude. How can I pass the variable "id" to it?
[02:06:58] *** dc has quit IRC
[02:07:02] *** evotuned_ has quit IRC
[02:07:05] *** fred-fri has joined #angularjs
[02:07:06] *** jdivock has joined #angularjs
[02:07:17] *** HassanCehef has quit IRC
[02:07:18] *** caitp has joined #angularjs
[02:07:22] <icfantv> Skrypter: well, if you minify the html, it'll work.
[02:07:30] <Skrypter> ah.
[02:07:37] *** evotuned has joined #angularjs
[02:07:48] <icfantv> Skrypter: at this point, i would create a directive, and build up the DOM myself. that would guarantee no spacing.
[02:07:57] <Skrypter> ill probably try that way
[02:08:07] <icfantv> and that's not a hack
[02:08:26] *** leolrrj has quit IRC
[02:08:34] *** dc has joined #angularjs
[02:08:38] <icfantv> just so you're aware, there's no real ng-repeat anymore. you'd just pass in the array of objects to your directive
[02:08:45] *** leolrrj has joined #angularjs
[02:08:51] <Skrypter> o_O
[02:09:05] <Skrypter> oh
[02:09:08] <Skrypter> i get you.
[02:09:08] *** ziyadb has quit IRC
[02:09:19] <icfantv> m0: i think templates are scoped to the controller that wraps them
[02:09:35] *** Menorah has joined #angularjs
[02:10:03] *** PeterMetz has quit IRC
[02:10:11] *** dc has quit IRC
[02:10:24] *** Reskp has quit IRC
[02:10:30] <fred-fri> is it a good idea to have a single controller with all crud methods and have multiple views (e.g. create, edit, delete, list etc) share that one same CRUD controller? or should it be split up into one controller for each view?
[02:11:44] *** evotuned has quit IRC
[02:12:26] *** tSpartak has joined #angularjs
[02:12:40] *** Christer has joined #angularjs
[02:12:51] *** renlo has quit IRC
[02:12:57] *** leolrrj has quit IRC
[02:13:36] <icfantv> fred-fri: i'd put those crud operations in a service or factory
[02:13:51] <icfantv> and inject that into your controllers
[02:14:07] <m0> icfantv: I want to pass data to the underlying view though, it has its own controller. http://plnkr.co/edit/HFVyiNe1uF65w7hWcX66?p=preview
[02:14:17] <fred-fri> icfantv: that would make more sense yeah
[02:14:44] *** nemothekid has quit IRC
[02:14:51] <m0> icfantv: In that plnkr, every navigation has an id, I want the controller in the ng-include to know about it.
[02:15:11] <m0> icfantv: in this case PageController should know about the id of the page.
[02:15:11] *** nemothekid has joined #angularjs
[02:15:17] <m0> How would you do it?
[02:15:26] <icfantv> m0: i understand what you want to do, i just don't think ng-include out of the box supports that. my cursory googling seems to reinforce that
[02:15:40] <icfantv> because it kind of defeats the purpose of templates
[02:15:53] *** SargoDarya has quit IRC
[02:15:55] *** ChadStrat has joined #angularjs
[02:15:59] *** TeddyMurray has quit IRC
[02:16:02] *** johnkevinmbasco has joined #angularjs
[02:16:03] <icfantv> m0: you have to set that id on your controller's scope
[02:16:05] <m0> icfantv: what would the proper way doing this would be?
[02:16:07] *** ejb has quit IRC
[02:16:09] <icfantv> and reference that field in your template
[02:16:19] <icfantv> $scope.myAwesomeField = "happy";
[02:16:37] <icfantv> <div>{{ myAwesomeField }}</div>
[02:16:43] <m0> icfantv: But my controller scope has changed, look in page.html, it is wrapped in its own controller. I am doing this because each page needs to do a xhr to get lots of data.
[02:16:53] *** morenoh149 has joined #angularjs
[02:17:24] *** merobertsjr has quit IRC
[02:17:28] <gladely> when using the 1.3 bind-once syntax, <div>{{::expression}}</div> - shouldn't the total watch count (as discovered by traversing $rootScope.$$watchers) not include the bind-once variants?
[02:17:56] <johnkevinmbasco> Hi guys, when structuring your angularjs apps as module by feature, do you put the tests inside the folder of the module? or outside? example the proj root directory "proj/tests/"
[02:18:01] <johnkevinmbasco> and why?
[02:18:14] *** mjw56 has joined #angularjs
[02:18:29] <m0> icfantv: Can't I change the scope of the ng-include?
[02:18:57] <icfantv> m0: so have your onload function set it
[02:19:21] <m0> icfantv: in the plnkr I am using an onload function
[02:19:44] *** k-dawg has quit IRC
[02:20:13] <m0> So controllers in Angular are inheritable?
[02:20:18] <icfantv> m0: right. so have your onload function set it on the scope.
[02:20:35] <icfantv> m0: yes, and no.
[02:20:40] <icfantv> m0: controllers can be nested
[02:20:50] *** caitp has quit IRC
[02:20:52] *** motionman has joined #angularjs
[02:20:58] <icfantv> m0: and methods/fields are inherited by child controllers unless overridden
[02:21:29] <icfantv> m0: and on that note, that's why you NEVER define a primitive field on a controller. because those values are copied to the children….not referenced.
[02:21:44] *** fred-fri has quit IRC
[02:22:06] <icfantv> m0: <div ng-controller="ControllerOne>…<div ng-controller="ControllerTwo">…</div>….</div>
[02:22:35] *** shampine has joined #angularjs
[02:23:12] <icfantv> m0: make sense?
[02:23:24] <icfantv> i have to go, i just realized i'm stupid late....
[02:23:26] <m0> icfantv: Yea makes sense
[02:24:01] *** Rejected has quit IRC
[02:24:06] <m0> icfantv: thanks, I am just wondering what the best approach would be in my case if I want to have a controller for each ng-include so it can fetch data. But the parent should tell it the id to fetch.
[02:24:24] <gladely> you should try ui-router and views.
[02:24:40] <gladely> https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views
[02:24:40] <progrock> is there an easy way to call a function inside a directive from the state's cotroller?
[02:24:46] *** CitizenKane has joined #angularjs
[02:25:06] *** Menorah has quit IRC
[02:25:36] <m0> gladely: I am using ui-router, but it doesn't work for me, cause it enforces URL heirarchy. I don't want my router to change when I change that navigation.
[02:25:46] *** Aliks has joined #angularjs
[02:27:15] *** ejb has joined #angularjs
[02:27:43] *** Paraconsistency has joined #angularjs
[02:27:44] <progrock> I'm setting up my directive scope as: { val: '=ngModel' } and passing in an object with data... I'm then defining a function inside the directive's link function: scope.preview = function() { ... } .... I want to be able to call that function from the states controller... what am I doing wrong?
[02:27:51] *** shampine has quit IRC
[02:27:52] <m0> gladely: I am creating a component which lives globallay (think of it as Facebook Chat) Ui-Router doesn't support multiple independent state providers only a single. I was thinking of modifying ui-router code so we can have multiple state providers but that is more work to be done.
[02:28:18] *** Paraconsistency has left #angularjs
[02:28:29] *** AronBrrr has quit IRC
[02:28:30] <gladely> gotcha.
[02:28:47] *** AronBrrr has joined #angularjs
[02:28:53] *** icfantv has quit IRC
[02:29:49] *** evotuned has joined #angularjs
[02:29:57] *** whiteboo_ has joined #angularjs
[02:30:04] *** Jet4Fire has quit IRC
[02:31:01] <progrock> oh, maybe I need to use controller not link on the directive?
[02:31:10] *** jtimon has joined #angularjs
[02:31:14] *** whitebook has quit IRC
[02:31:17] *** {DV8} has joined #angularjs
[02:31:22] <m0> The way I fixed it is by letting the parent controller know the selected page http://plnkr.co/edit/HFVyiNe1uF65w7hWcX66?p=preview
[02:31:36] *** codeman has quit IRC
[02:31:39] *** phrozensilver has joined #angularjs
[02:31:44] <m0> I dont know if that is the right way, Angular makes development more difficult that it should really be ...
[02:31:53] *** nemothekid has quit IRC
[02:32:00] *** Foxandxss has quit IRC
[02:32:02] <progrock> oh wait, thats for directive to diretive communciation... can anyone help, i know this must be easy, and I'm just missing something
[02:32:12] <pontiki> that's how it knows your serious
[02:32:26] *** tristanp has quit IRC
[02:32:32] *** prbc has joined #angularjs
[02:32:34] *** nickgs has joined #angularjs
[02:32:40] *** nemothekid has joined #angularjs
[02:32:59] <m0> progrock: for directive to directive communication, one directive exposes the controller which is like an api. And the other directive just requires the directive and through its link function it reads it. There is an example on angular docs on directives at the very end.
[02:33:18] *** psi_ has joined #angularjs
[02:33:41] *** richardbkr has quit IRC
[02:34:05] <progrock> m0: I want directive to controller, not directive to directive
[02:34:07] *** jonathanpglick has quit IRC
[02:34:18] *** tomh- has quit IRC
[02:34:28] *** dcherman has quit IRC
[02:34:29] *** titanomachy has joined #angularjs
[02:34:31] <m0> progrock: you do that through a service.
[02:34:32] <progrock> m0: I wanna call a fucntion inside the directive from the state that includes the directives contrller
[02:34:34] *** Johnny13371337 has quit IRC
[02:34:36] *** z3n2 has quit IRC
[02:34:36] *** b1rkh0ff has quit IRC
[02:34:39] *** Shealan has joined #angularjs
[02:34:42] *** tristanp has joined #angularjs
[02:34:53] *** marr has quit IRC
[02:35:04] <progrock> m0: a service? really.... now I'm confused, lol... anychance you can point me to an example
[02:35:39] <jaawerth> progrock: Yeah, this isn't actually trivial - you CAN use a service, but services are singletons. There are a few ways you can go about exposing an API directly between controller and directive
[02:35:42] *** AronBrrr has quit IRC
[02:36:01] *** AronBrrr has joined #angularjs
[02:36:26] *** Psi|4ward has quit IRC
[02:37:10] *** nemothekid has quit IRC
[02:37:14] <jaawerth> progrock: one thing you can do is use '&' to pass in an expression that you can execute in the context of the parent scope. You can also do a manual version of this by reading an attributes (or collection thereof, or an object passed in via isolate scope) and doing $parse(attrs.whatever/scope.whatever)(scope.$parent)({$someLocal: foo})
[02:37:25] *** tristanp has quit IRC
[02:37:45] <progrock> jaawerth: yeah, thats my issue.. I know I can pass in a function... but I want the other way, I want the directive to define the funciton
[02:37:46] <jaawerth> progrock: but of course that's more for dropping in expressions to execute for things like event listeners. The other thing you could do is mimick the way Angular's <form> directive works
[02:37:52] *** Shealan has quit IRC
[02:37:57] *** tristanp has joined #angularjs
[02:38:10] <progrock> jaawerth: thinking I could get away with using events.. tho not ideal at all... especially if I were to have 2 of the same directive on the same pge
[02:38:16] <jaawerth> it's kinda hacky though, because you have to use something like $timeout in the controller to make sure you'er waiting for the controller stuff to populate..
[02:38:48] <progrock> I'm not egainst using $timeout.. its a simple enough app that it wouldnt get to oconfusing
[02:39:17] <progrock> I jsut have a preview directive that gets the data, but need to call the preview function to generate the preview when the user wants to
[02:39:18] <jaawerth> but one approach would be to do something like var parentProp = attrs.someAttr; scope.$parent[someAttr] = this;
[02:39:24] *** sbellina has quit IRC
[02:39:50] <jaawerth> that's basically how <form> does it when a "name" is set on the attributes, though you'd want to double-check the code to be sure
[02:39:57] <gladely> can't the second scope be a directive, and then you can just require: '^parentDirective' ?
[02:40:22] *** Lewix has quit IRC
[02:40:27] *** lenswipe has joined #angularjs
[02:40:28] <lenswipe> hey guys
[02:40:29] <jaawerth> but it's worked when I've played with doing it that way. you just have to use $timeout or something like it (a bindOnce also works) in the parent controller
[02:40:45] <lenswipe> wonder if someone could tell me...what`s the convention for structuring unit tests?
[02:40:46] <jaawerth> also I recommend using controllerAs if you do this, so you aren't polluting scopes
[02:40:49] <lenswipe> specifically jasmine unit tests
[02:40:58] <lenswipe> https://gist.github.com/f6c24a4c5192fc0ea11b i have that so far
[02:41:07] <progrock> hmm, really figured this would be more straight forward/common
[02:41:28] <lenswipe> if i wanted to make the second test more detailed to say compare the content of the array etc. should that go in a new it block, a new describe block or neither or what?
[02:41:37] *** tristanp has quit IRC
[02:41:50] *** tristanp has joined #angularjs
[02:42:30] <jaawerth> progrock: well, the traditional approach is to use something like attrs.$observe to watch a flag and trigger the function as necessary.. or to not use isolate scope
[02:42:30] <progrock> jaawerth: wait.. scope.$parent would let me define a function that the controler could access?
[02:42:38] *** shampine has joined #angularjs
[02:42:42] <progrock> ohh
[02:42:46] <jaawerth> progrock: yeah, scope.$parent is still the parent controller even if it's an isolate scope
[02:42:48] <progrock> that oculd work, lol
[02:42:56] <jaawerth> it does! It's just not elegant
[02:43:17] <jaawerth> anyway, I gotta head out. good luck!
[02:43:21] <progrock> I'm saying the watching a attribute inside the object passed to the directive by the controlelr, insdie the controller.. to call preview
[02:43:44] *** jdivock has quit IRC
[02:43:48] *** whiteboo_ has quit IRC
[02:44:40] *** wolfman2000 has joined #angularjs
[02:45:30] *** uris77 has joined #angularjs
[02:47:32] *** zeitgist has joined #angularjs
[02:49:10] *** g-nom3 has quit IRC
[02:49:27] *** Bardosity has joined #angularjs
[02:49:48] *** mandric has quit IRC
[02:50:57] <Bardosity> Hey guys, I am working with a .NET site for the first time. I have some ngShow directives in an area of the page that I just found out gets dynamically reloaded with .NET magic
[02:51:51] <Bardosity> As a result, the bootstrapping only works at the initial page load, but not once a part of the page reloads.
[02:52:23] *** ron_frown has quit IRC
[02:52:25] *** TyrfingMjolnir has joined #angularjs
[02:52:42] *** zeitgist has quit IRC
[02:53:08] *** Evanion has joined #angularjs
[02:53:47] <Tuxity> guys, i'm going to try to implement a token auth between my angular app and api with silex, my recommendations ? existing modules or idk
[02:54:18] <Bardosity> You mean JWT?
[02:54:18] <progrock> weird... I have: if (!newVal) return; console.log(newVal); .... somehow the first log is 'false'
[02:54:22] <progrock> that's weird
[02:54:49] <Bardosity> is it ‘false’ as in a string that says “false”?
[02:54:50] <progrock> oh god, I need sleep
[02:54:53] <Bardosity> or false as a bookean?
[02:54:56] <Bardosity> Boolean
[02:55:02] *** DarrenCraig has quit IRC
[02:55:04] <progrock> yeah, string... I'm stupid
[02:55:10] *** DarrenCraig has joined #angularjs
[02:55:20] <progrock> first time I ever made that mistake in 10 years, lol
[02:55:34] <Tuxity> jwt Bardosity ?
[02:55:39] <Bardosity> if (!newVal || newVal === ‘false’)
[02:55:46] * Tuxity google that thing
[02:56:03] <Tuxity> aaah
[02:56:04] <Bardosity> http://jwt.io/
[02:56:05] <Tuxity> yes
[02:56:31] <Tuxity> in fact I don't really know where I should begin
[02:56:37] *** terakilobyte has joined #angularjs
[02:56:37] <AronBrrr> lol i’ve done that
[02:56:38] <Tuxity> which kind of auth
[02:56:46] <Tuxity> oauth etc
[02:56:47] <Bardosity> Silex uses Composer, doesn’t it?
[02:56:49] <Tuxity> kinda lost
[02:56:52] <Tuxity> yep
[02:56:57] *** seriema has quit IRC
[02:57:05] *** mikerrrrrr has quit IRC
[02:57:11] <Bardosity> Firstly, Oauth will make you feel dumb, no matter how ace you are
[02:57:27] *** Menorah has joined #angularjs
[02:57:34] *** ejb has quit IRC
[02:57:46] <Bardosity> Auth0 has the best docs on JWT
[02:57:48] *** Evanion has quit IRC
[02:57:53] <Tuxity> okay
[02:58:03] <AronBrrr> lol i’ve done that
[02:58:06] <Bardosity> Loads of examples and an AngularJS service, too
[02:58:07] <Bardosity> https://auth0.com/docs/jwt
[02:58:17] *** ron_frown has joined #angularjs
[02:58:24] <progrock> great, got this working, without it being too funky
[02:58:37] <Bardosity> I am still raging out at .NET
[02:58:45] <AronBrrr> lol i’ve done that
[02:58:48] <AronBrrr> oops jeez
[02:58:55] <progrock> I like how afer jaawerth brings up a complex funky way, he briefly mentions a stupid easy way I was overlooking
[02:59:07] <Tuxity> thanks for the tip Bardosity
[02:59:13] <Bardosity> No worries
[02:59:15] *** zeezey has quit IRC
[02:59:17] <progrock> .NET, heh.. glad I never had to touch that stuff
[02:59:29] *** adoming has quit IRC
[02:59:37] <Bardosity> This is my first time, adding Angular to a site that is already built
[02:59:41] <Bardosity> Tears
[03:00:46] *** asher^ has quit IRC
[03:01:05] <jaawerth> progrock: it's how I do!
[03:01:10] *** asher^ has joined #angularjs
[03:01:14] *** asher^ has quit IRC
[03:01:29] <progrock> haha
[03:01:30] *** kakashiAL has joined #angularjs
[03:01:33] <jaawerth> progrock: wait, which one are you interpreting as which? they're all a little funky
[03:01:59] *** busticated has quit IRC
[03:02:05] <progrock> haha, I just passed in a boolean to watch in the directive...so everytime the controller toggles it, the directive calls the function
[03:02:15] <jaawerth> ah, yeah
[03:02:29] *** g-nom3 has joined #angularjs
[03:02:37] <jaawerth> if you can do that (or even use attrs.$observe for better performance), yeah that's best
[03:02:45] <jaawerth> the other way is you need to expose a full API like ngModelController does
[03:02:48] <progrock> actually, I make it so the boolean has to be true to call it, and evrytime its changed, it gets changed back to false automatically... a little extra code, but for some reason I like that more
[03:02:49] <jaawerth> is if*
[03:02:52] *** DarrenCraig has quit IRC
[03:02:59] *** sbellina has joined #angularjs
[03:03:03] *** whitebook has joined #angularjs
[03:03:20] <progrock> oh yeah, I suppose I could do attrs$observe
[03:03:30] <jaawerth> not a HUGE deal, you can always optimize later
[03:03:42] <jaawerth> anyway, now I'm gonna head out for real. later!
[03:03:44] *** Fire-Dragon-DoL has quit IRC
[03:03:58] <progrock> yeah I dont need optimization.. but I think that is a little cleaner
[03:04:27] *** kakashiA1 has quit IRC
[03:04:31] <progrock> jaawerth: if I do attrs.$observe I dont need to add it to the directive scope?... oh wait.. but then I can't change the value from the directive
[03:04:34] <progrock> so maybe that doesnt work
[03:05:24] *** asher^ has joined #angularjs
[03:05:42] *** bayousof_ has quit IRC
[03:05:46] <m0> I am really confused why does alert dialog happen just once when I navigate through page ? http://plnkr.co/edit/HFVyiNe1uF65w7hWcX66?p=preview
[03:05:57] <progrock> man, been messing around with angular-material, replacing bootstrap... kinda concerned I might be imtiing my audience a bit.... tho I feel lke most people are using new versions fo their browser
[03:06:10] *** sandalon has joined #angularjs
[03:06:22] *** Reskp has joined #angularjs
[03:07:08] <progrock> I feel like angular-material needs more components tho...
[03:09:00] <progrock> and the site seems t jsut have examples... not real details on them, nor a real api reference
[03:09:19] *** Zentdayn has quit IRC
[03:10:00] *** ctanga has quit IRC
[03:10:12] *** grumpyOldRussian has joined #angularjs
[03:10:29] <progrock> man, I remember when I jsut got back into web development after a 7-8 year break... and semantic html was a big deal... all design in css, etc.... seems like that has changes quite a bit, lol
[03:10:43] *** Reskp has quit IRC
[03:10:47] *** night-owl has joined #angularjs
[03:10:51] *** Zebra111_ has quit IRC
[03:10:53] *** bayousoft has joined #angularjs
[03:10:59] *** shampine has quit IRC
[03:11:37] *** Zebra111 has joined #angularjs
[03:11:47] *** evotuned has quit IRC
[03:12:19] *** evotuned has joined #angularjs
[03:12:45] <lenswipe> if i wanted to make the second test more detailed to say compare the content of the array etc. should that go in a new it block, a new describe block or neither or what?
[03:12:48] <lenswipe> https://gist.github.com/f6c24a4c5192fc0ea11b i have that so far
[03:12:59] *** SargoDarya has joined #angularjs
[03:13:03] <lenswipe> anoyne able to help?
[03:13:17] *** fotoflo has quit IRC
[03:13:25] <progrock> lenswipe: when you get real good at writing test code, if you want a part time job doing it.. LMK
[03:13:28] <progrock> :)
[03:13:40] <lenswipe> progrock, that`s nice but I have a job
[03:13:42] <lenswipe> thanks anyway :)
[03:13:54] <progrock> haha, worth a try
[03:13:56] <lenswipe> progrock, why do you bring it up?
[03:13:59] <progrock> test code is my nemesis
[03:14:04] <lenswipe> yeah i hate it tooo
[03:14:11] <lenswipe> but i want to get into the habit of it because good practice
[03:14:18] <Tuxity> Bardosity looks really simple and awesome, but not free :(
[03:14:19] *** Menorah has quit IRC
[03:14:27] <lenswipe> progrock, I made this with a friend~ https://bitbucket.org/jsondecode/pillars
[03:14:28] *** grumpyOldRussian has quit IRC
[03:14:33] <progrock> yeah, it is good practice... something that rarely defines my code
[03:14:45] *** seriema has joined #angularjs
[03:14:49] <lenswipe> it ships with angular already setup and has bower and a whole bunch of other cool shit
[03:14:58] <lenswipe> including Jasmine and Karma setup too :)
[03:15:21] <progrock> scaffold?
[03:15:30] <lenswipe> yeah
[03:15:48] <lenswipe> what I want to know is this: https://gist.github.com/f18ec5ed77898e4f6ddd I'm writing unit tests for that service and I want to test the add functionality properly
[03:16:03] <lenswipe> my friend said i should test more than the length of the array and he`s right
[03:16:12] <lenswipe> the question is, where should that test go?
[03:16:15] <lenswipe> a new it() block?
[03:16:23] <progrock> it kills me.. I'm soo lazy now a days.. and I still cant find a scaffold that does what I want, and roganizes shit right... liek I found one that was perfeect... except it did angualr in the funky google recommended recursive directry structure
[03:16:26] <Bardosity> Tuxity: Auth0’s service is not free, but their JWT docs are great
[03:16:34] <progrock> then the one that did it close to my style, wasnt nearly as good
[03:16:34] <Bardosity> And their AngularJS service is free
[03:16:41] <Bardosity> https://github.com/firebase/php-jwt
[03:16:48] *** JR___ has joined #angularjs
[03:16:48] *** wallerdev has quit IRC
[03:16:49] <progrock> I sorta merged them.. btu was very quick and lazily done
[03:16:55] *** evotuned has quit IRC
[03:16:57] *** sandalon has quit IRC
[03:17:01] <Bardosity> Tuxity: That’s how toyu do things on the server side
[03:17:03] *** rickhanlonii has quit IRC
[03:17:15] <lenswipe> progrock, try the one I wrote
[03:17:21] <lenswipe> progrock, it`s gulp and bower based
[03:17:22] *** dcherman has joined #angularjs
[03:17:28] <Tuxity> aaaah
[03:17:34] <progrock> well thats a start, I'll check it out
[03:17:37] <lenswipe> thanks
[03:17:41] <lenswipe> it`s not very well documented though
[03:17:42] <Tuxity> it's just for the doc you link me that
[03:17:45] <progrock> tho confused why you would go bitbucket not github
[03:17:53] <lenswipe> progrock, because bitbucket is private
[03:17:58] <lenswipe> which is what this project originally was
[03:18:19] <lenswipe> it has bower integration too
[03:18:27] <lenswipe> you want jquery?
[03:18:31] <progrock> gotcha, I;d just pay for git if i needed the private
[03:18:39] <lenswipe> just add it to bower.json and it will get baked into vendor.js
[03:18:43] <lenswipe> ..we are using git
[03:18:45] <lenswipe> ...on bitbucket.
[03:18:48] <progrock> but my outside of work stuff pretty much eventualy always goes public OS
[03:19:04] <progrock> trying to get the website done for my new project... but I want itto do soo much, lol
[03:19:16] <lenswipe> :P
[03:19:17] <progrock> at least I got firebase hooked up into it, saved me a ton of backend work
[03:19:20] <lenswipe> yeah
[03:19:25] <lenswipe> well i think we have an issue tracker on there
[03:20:05] <progrock> gotta get my coworker to design it... tempted to do a kickstarter to get soem cash to pay people for design and test code ;) and maybe a few bucks to myself to motivate me to funally finish this
[03:20:28] <progrock> been writing my second charting library for over a year now.. finally getting close to ready to release it public
[03:20:44] <lenswipe> i can do design work
[03:20:48] <progrock> given ony worked on it on random weekends, and rewrote the core structure like 8 tmiems now.. but finally pretty happy with it
[03:20:50] <lenswipe> unfortunatley I`m snowed under with other shit right now :
[03:20:51] <lenswipe> :p
[03:21:06] <progrock> my coworker is a fantastic designer, and knows how I work very well... so hes def gonna take care of it
[03:21:21] <lenswipe> yeah - i have a relationship like that with a guy that I`m working on other stuff with
[03:21:25] <progrock> dont ned anythign too fancy.. its gonna be OS... but want it to look good... he'll be able to do it wuick
[03:21:37] <lenswipe> what I want to know is this: https://gist.github.com/f18ec5ed77898e4f6ddd is my service that I`m trying to test the add functionality
[03:21:41] <progrock> currently playing with angular-materiaal for some of the structure.. so his ob may be easy
[03:21:43] <lenswipe> currently im testing the length of the array
[03:21:52] <lenswipe> my friend says that i should test the array content and he`s right
[03:21:57] <lenswipe> does that get it`s own it block or what
[03:22:00] <lenswipe> or it`s own describe block
[03:22:16] <lenswipe> actually, GF is getting ready for bed so I`m gonna go to bed
[03:22:18] <progrock> heh, wish I could help... I dont write test code... luckily other people do that for me usually
[03:22:20] <lenswipe> maybe catch you around thouhg?
[03:22:24] *** Evanion has joined #angularjs
[03:22:30] <lenswipe> if you have issues with that repo open an issue :0
[03:22:32] <lenswipe> :)
[03:22:38] *** Oddman has quit IRC
[03:22:45] <progrock> I'll check it out and see if its how i like to set things up
[03:22:49] <lenswipe> cool
[03:23:01] <lenswipe> gimme some feedback if not and I`ll (maybe) take it on board :)
[03:23:11] <lenswipe> maybe post an enhancement or sth
[03:23:19] *** platonic has joined #angularjs
[03:23:20] <progrock> man, I do like angular-material's tabs, and they are super simple... beats the BS bootstrap shit I had previously
[03:23:33] <lenswipe> nightmhm
[03:23:45] *** sandalon has joined #angularjs
[03:23:46] *** lenswipe has quit IRC
[03:25:42] *** RedOrangeZ has quit IRC
[03:26:07] *** BahamutWC has joined #angularjs
[03:26:29] *** ASUChander has quit IRC
[03:27:15] *** trendy0 has joined #angularjs
[03:27:53] *** zeezey has joined #angularjs
[03:28:00] *** mitc0185 has quit IRC
[03:28:16] *** platonic has quit IRC
[03:29:06] *** mary5030 has quit IRC
[03:29:42] *** mary5030 has joined #angularjs
[03:29:50] *** snadon has joined #angularjs
[03:30:04] *** gunn has quit IRC
[03:30:50] *** z3n2 has joined #angularjs
[03:31:49] *** Aliks has quit IRC
[03:31:51] *** mven has joined #angularjs
[03:33:01] *** younqcass has quit IRC
[03:33:22] *** younqcass has joined #angularjs
[03:33:34] *** SargoDarya has quit IRC
[03:33:35] *** younqcass has quit IRC
[03:34:01] *** mary5030 has quit IRC
[03:34:09] *** mitc0185 has joined #angularjs
[03:34:28] *** phrozensilver has quit IRC
[03:34:52] *** trendy0 has quit IRC
[03:34:58] *** genu has joined #angularjs
[03:35:54] *** Menorah has joined #angularjs
[03:36:04] <genu> Hey, how do you have a dynamic class name in angular. For example I want to have something like <div class="column-2"/> but the "2" is actually dynamic... :/ I've tried playing around with ngClass...but not success
[03:36:24] *** rickhanlonii has joined #angularjs
[03:36:29] *** cacts has quit IRC
[03:37:10] *** Milkweed has quit IRC
[03:38:01] *** mary5030 has joined #angularjs
[03:38:04] <wafflej0ck> genu, ngclass is the way
[03:38:23] <wafflej0ck> genu, well it's definitely one way at least
[03:38:30] *** gunn has joined #angularjs
[03:38:33] *** Christer has quit IRC
[03:38:43] *** walter_ has joined #angularjs
[03:38:54] <wafflej0ck> pretty sure you can actually use interpolation for the regular class as well like class="column-{{someNum}}"
[03:39:32] <genu> how? say I have $scope.number = 2. Are you thinking something like this: ng-class="{'column-{{number}}: number}"?
[03:39:58] <genu> wafflej0ck: or ng-class="{'column-number: number}"
[03:40:07] *** Una has quit IRC
[03:40:09] <genu> those don't seem to do it... :/
[03:40:18] *** walter_ has left #angularjs
[03:40:22] *** dc has joined #angularjs
[03:41:17] *** bilegt has joined #angularjs
[03:41:42] <progrock> man this gulp connect livereload refreshes before gulps done building... anyone run into, and fix this issue before?
[03:41:55] <progrock> grunt's livereload always occured after it was done
[03:42:46] *** whitebook has quit IRC
[03:43:20] *** whitebook has joined #angularjs
[03:43:53] *** iamaregee2 has quit IRC
[03:45:23] *** rileylark has joined #angularjs
[03:45:26] *** Una has joined #angularjs
[03:45:28] *** annlewis has quit IRC
[03:45:30] *** iamaregee2 has joined #angularjs
[03:46:07] *** jtimon has quit IRC
[03:47:38] <wafflej0ck> genu, http://plnkr.co/edit/EOgwrUUB0s1NRI8Ps65b?p=preview
[03:47:42] *** JR___ has quit IRC
[03:48:12] *** whitebook has quit IRC
[03:48:17] *** zeitgist has joined #angularjs
[03:48:58] <genu> thanks, thats kinda the route that I went. The only downside of that is that you can have a class="column-" if num is unset.
[03:49:36] *** say2joe has quit IRC
[03:50:04] *** dc has quit IRC
[03:50:20] *** Skrypter has quit IRC
[03:50:31] *** zeezey has quit IRC
[03:50:36] *** Skrypter has joined #angularjs
[03:50:40] *** dc_ has joined #angularjs
[03:52:14] *** TheAceOfHearts has quit IRC
[03:52:14] *** mandric has joined #angularjs
[03:52:28] *** aminRX has quit IRC
[03:52:34] *** mandric has quit IRC
[03:52:59] *** torartc has quit IRC
[03:53:09] *** zeitgist has quit IRC
[03:54:23] *** evilaliv3 has quit IRC
[03:54:41] *** mitc0185 has quit IRC
[03:56:02] *** ASUChander has joined #angularjs
[03:56:30] *** sandalon has quit IRC
[03:58:58] *** rileylark has quit IRC
[03:59:39] *** Nivag has quit IRC
[03:59:40] *** kakashiA1 has joined #angularjs
[03:59:48] *** uris77 has quit IRC
[04:00:16] *** aminRX has joined #angularjs
[04:00:16] *** trustyhank has joined #angularjs
[04:00:49] *** trendy0 has joined #angularjs
[04:00:50] *** prbc has quit IRC
[04:00:55] *** mitc0185 has joined #angularjs
[04:01:19] *** JesseH has quit IRC
[04:02:49] *** TyrfingMjolnir has quit IRC
[04:03:16] *** kakashiAL has quit IRC
[04:05:05] *** aminRX has quit IRC
[04:05:22] <Fifty5Plus> there you go wafflej0ck with your data driven programming .... LOVE IT :)
[04:06:00] *** rickhanl_ has joined #angularjs
[04:06:19] <Fifty5Plus> there you go wafflej0ck with your data driven programming .... I LOVE IT :)
[04:06:52] *** terakilobyte has quit IRC
[04:06:53] *** dejanr has joined #angularjs
[04:07:06] *** Reskp has joined #angularjs
[04:09:07] *** Reskp_ has joined #angularjs
[04:09:36] *** rickhanlonii has quit IRC
[04:10:17] *** rickhanl_ has quit IRC
[04:10:17] *** Hackwar1 has quit IRC
[04:10:32] *** Hackwar has joined #angularjs
[04:11:09] *** zeezey has joined #angularjs
[04:11:29] *** whunt has quit IRC
[04:11:46] *** Reskp has quit IRC
[04:11:49] *** sbellina has quit IRC
[04:12:37] *** kp666 has joined #angularjs
[04:12:52] *** evotuned has joined #angularjs
[04:13:45] *** Reskp_ has quit IRC
[04:13:59] *** TheAceOfHearts has joined #angularjs
[04:14:23] *** BobbieBarker has joined #angularjs
[04:14:40] *** zwacky has quit IRC
[04:14:43] *** mitc0185 has quit IRC
[04:16:12] *** torartc has joined #angularjs
[04:16:19] *** annlewis has joined #angularjs
[04:17:50] *** fedenunez has quit IRC
[04:18:08] *** annlewis_ has joined #angularjs
[04:18:13] *** Left_Turn has quit IRC
[04:18:14] *** annlewis has quit IRC
[04:20:03] *** torartc has quit IRC
[04:20:23] *** ron_frown has quit IRC
[04:20:24] *** jga_ has quit IRC
[04:20:38] *** robdubya has quit IRC
[04:20:42] *** ron_frown has joined #angularjs
[04:20:45] *** whitebook has joined #angularjs
[04:20:47] *** jaredjones has quit IRC
[04:20:50] *** jga_ has joined #angularjs
[04:21:15] *** jaredjones has joined #angularjs
[04:21:31] *** evotuned has quit IRC
[04:21:33] *** Circlefusion has quit IRC
[04:22:53] *** annlewis_ has quit IRC
[04:24:02] *** LakWork has quit IRC
[04:24:22] *** Circlefusion has joined #angularjs
[04:26:29] *** trendy0 has quit IRC
[04:26:55] *** ron_frown has quit IRC
[04:27:09] *** Cronoh has quit IRC
[04:27:40] *** ron_frown has joined #angularjs
[04:28:09] *** Aliks has joined #angularjs
[04:28:55] *** nickgs has quit IRC
[04:28:59] *** scottsword has joined #angularjs
[04:29:16] *** whiteboo_ has joined #angularjs
[04:29:21] *** cakirke has quit IRC
[04:29:28] *** bilegt has quit IRC
[04:29:35] *** renlo has joined #angularjs
[04:30:11] *** tristanp has quit IRC
[04:30:46] *** SargoDarya has joined #angularjs
[04:31:00] *** whitebook has quit IRC
[04:31:02] *** nickgs has joined #angularjs
[04:31:03] *** fedenunez has joined #angularjs
[04:31:15] *** nuizzy has joined #angularjs
[04:31:32] *** tristanp has joined #angularjs
[04:31:54] *** phrozensilver has joined #angularjs
[04:32:02] *** tristanp has quit IRC
[04:32:19] *** tristanp has joined #angularjs
[04:32:51] *** boxmein has quit IRC
[04:33:17] *** JR___ has joined #angularjs
[04:33:33] *** ntbisket has joined #angularjs
[04:33:42] *** freeman42 has quit IRC
[04:34:53] *** z3n2 has quit IRC
[04:34:53] *** JR___ has quit IRC
[04:35:14] *** SargoDarya has quit IRC
[04:37:00] *** Fenikkusu has joined #angularjs
[04:37:26] *** karlbright has joined #angularjs
[04:38:40] *** Fenikkusu has quit IRC
[04:38:57] *** Cronoh has joined #angularjs
[04:39:34] *** ASUchander1 has joined #angularjs
[04:40:01] *** Fenikkusu has joined #angularjs
[04:40:16] *** conan_the_destro has quit IRC
[04:40:25] *** ASUchander1 has joined #angularjs
[04:40:51] *** Fenikkusu has joined #angularjs
[04:41:10] *** nickgs has quit IRC
[04:41:40] *** bilegt has joined #angularjs
[04:41:45] *** nickgs has joined #angularjs
[04:42:23] *** ASUChander has quit IRC
[04:45:55] *** nuizzy has quit IRC
[04:48:26] *** JoshGlzBrk has quit IRC
[04:48:34] *** torartc has joined #angularjs
[04:49:03] *** zeitgist has joined #angularjs
[04:49:12] *** BobbieBarker has quit IRC
[04:50:09] *** chrisshattuck has joined #angularjs
[04:50:59] *** torartc has quit IRC
[04:51:52] *** theotherguy has joined #angularjs
[04:53:05] *** Fishy has quit IRC
[04:54:15] *** zeitgist has quit IRC
[04:54:43] *** morenoh149 has quit IRC
[04:55:00] *** morenoh149 has joined #angularjs
[04:56:14] *** mjw56 has quit IRC
[04:56:14] *** Oceed has quit IRC
[04:56:24] *** fedenunez has quit IRC
[04:57:21] *** Oceed has joined #angularjs
[04:58:47] *** ntbisket has quit IRC
[04:59:04] *** earthquake has joined #angularjs
[04:59:06] *** grumpyOldRussian has joined #angularjs
[04:59:09] *** leolrrj has joined #angularjs
[05:00:46] *** JMZ_DMZ has joined #angularjs
[05:01:51] *** scottsword has quit IRC
[05:01:53] *** ome has joined #angularjs
[05:02:40] *** bilegt has quit IRC
[05:03:41] *** grumpyOldRussian has quit IRC
[05:03:49] *** nickgs has quit IRC
[05:05:28] *** asher^ has quit IRC
[05:06:07] *** dc_ has quit IRC
[05:06:26] *** jordandotdev has quit IRC
[05:07:56] *** phrozensilver has quit IRC
[05:09:20] *** cornerma1 has joined #angularjs
[05:09:47] *** genu has quit IRC
[05:09:58] *** leolrrj has quit IRC
[05:10:04] *** Reskp has joined #angularjs
[05:11:24] *** JR___ has joined #angularjs
[05:11:28] *** dc_ has joined #angularjs
[05:11:58] *** jamieshepherd has quit IRC
[05:12:14] *** platonic has joined #angularjs
[05:12:34] *** cornerman has quit IRC
[05:12:39] *** theotherguy has quit IRC
[05:12:42] *** cornerma1 is now known as cornerman
[05:14:36] *** Reskp has quit IRC
[05:14:45] *** Prat has joined #angularjs
[05:15:22] *** aminRX has joined #angularjs
[05:15:29] *** Prat has quit IRC
[05:15:50] *** advy has joined #angularjs
[05:16:23] *** platonic has quit IRC
[05:16:35] *** annlewis has joined #angularjs
[05:16:36] *** rickhanlonii has joined #angularjs
[05:17:21] *** Lewix has joined #angularjs
[05:17:21] *** Lewix has joined #angularjs
[05:19:49] *** mven has quit IRC
[05:20:39] *** nerdfiles has quit IRC
[05:20:53] *** annlewis has quit IRC
[05:22:22] *** rchavik has joined #angularjs
[05:23:11] *** dejanr has quit IRC
[05:23:19] *** diegoviola has quit IRC
[05:23:23] *** whiteboo_ has quit IRC
[05:25:23] *** jhooks has joined #angularjs
[05:26:37] *** mary5030 has quit IRC
[05:27:02] *** ChadStrat has quit IRC
[05:27:11] *** mary5030 has joined #angularjs
[05:28:40] *** mary5030_ has joined #angularjs
[05:29:30] *** evotuned has joined #angularjs
[05:30:26] *** nickgs has joined #angularjs
[05:30:39] *** bmac has joined #angularjs
[05:31:42] *** mary5030 has quit IRC
[05:32:01] *** asher^ has joined #angularjs
[05:32:31] *** SargoDarya has joined #angularjs
[05:33:54] *** robdubya has joined #angularjs
[05:34:51] *** dejanr has joined #angularjs
[05:35:15] *** sl33k_ has joined #angularjs
[05:36:22] *** terakilobyte has joined #angularjs
[05:37:04] *** SargoDarya has quit IRC
[05:37:09] *** abram has joined #angularjs
[05:39:27] *** SomeKittens has quit IRC
[05:41:37] *** burzum2 has joined #angularjs
[05:43:10] *** zain has joined #angularjs
[05:43:11] *** burzum has quit IRC
[05:43:55] *** iamaregee2 has quit IRC
[05:44:02] *** zain has quit IRC
[05:46:14] *** tilgovi has quit IRC
[05:48:25] *** torartc has joined #angularjs
[05:49:41] *** iamaregee2 has joined #angularjs
[05:49:49] *** zeitgist has joined #angularjs
[05:49:58] *** iamaregee2 has quit IRC
[05:51:03] *** iamaregee2 has joined #angularjs
[05:52:43] *** iamaregee2 has quit IRC
[05:53:18] *** Beatzebub has joined #angularjs
[05:53:24] *** iamaregee2 has joined #angularjs
[05:53:57] *** iamaregee2 has quit IRC
[05:54:04] *** b1rkh0ff has joined #angularjs
[05:54:34] *** torartc has quit IRC
[05:54:42] *** zeitgist has quit IRC
[05:54:44] *** iamaregee2 has joined #angularjs
[05:55:01] *** muilenbur has quit IRC
[05:56:19] <progrock> man, the amount of space google's material-design-icons bower install takes is insane... I'm running out of space while installing when I originally had 850MB to spare
[05:56:31] *** karlbright has quit IRC
[05:56:33] <progrock> does bower grab like te entire git repo, history and all?
[05:56:48] *** nemothekid has joined #angularjs
[05:57:48] *** wimbley has joined #angularjs
[05:59:58] *** heizkessel has joined #angularjs
[06:01:04] *** motionman has quit IRC
[06:02:06] *** torartc has joined #angularjs
[06:02:52] *** tSpartak has quit IRC
[06:05:02] <Skrypter> anyone ever play with focus an element after its made visible
[06:05:10] <Skrypter> i dont mean ng-hide/show
[06:05:29] <Skrypter> but the visibility: visible, hidden property
[06:06:01] *** Cronoh has quit IRC
[06:06:35] *** Cronoh has joined #angularjs
[06:07:05] *** egorpe has joined #angularjs
[06:07:50] *** Cronoh has quit IRC
[06:08:19] *** Cronoh has joined #angularjs
[06:09:19] *** ngeksyo2 has joined #angularjs
[06:10:44] *** Reskp has joined #angularjs
[06:10:53] *** morenoh149 has quit IRC
[06:11:33] *** moogey has quit IRC
[06:11:46] *** torartc has quit IRC
[06:12:11] *** bitri_ has joined #angularjs
[06:12:20] *** nemothekid has quit IRC
[06:12:31] *** earthquake has quit IRC
[06:12:41] *** bmac has quit IRC
[06:12:51] *** nemothekid has joined #angularjs
[06:12:59] *** torartc has joined #angularjs
[06:13:05] *** ngeksyo has quit IRC
[06:13:27] *** nerdfiles has joined #angularjs
[06:14:05] *** soee has joined #angularjs
[06:14:53] *** Reskp has quit IRC
[06:14:56] *** JR___ has quit IRC
[06:15:02] *** slopjong has quit IRC
[06:16:36] *** annlewis has joined #angularjs
[06:17:21] *** JMZ_DMZ has quit IRC
[06:17:59] *** JR___ has joined #angularjs
[06:18:00] *** Bade has joined #angularjs
[06:19:20] *** johnkevinmbasco has quit IRC
[06:19:30] *** snurfery has quit IRC
[06:20:36] *** balr0g has joined #angularjs
[06:20:48] *** lolmaus has quit IRC
[06:21:11] *** annlewis has quit IRC
[06:22:32] *** terakilobyte has quit IRC
[06:24:08] *** snadon has quit IRC
[06:24:11] *** evotuned has quit IRC
[06:24:36] *** TheAceOfHearts has quit IRC
[06:25:38] *** torartc has quit IRC
[06:25:45] *** rickhanlonii has quit IRC
[06:27:01] *** opiates has quit IRC
[06:27:23] *** opiates has joined #angularjs
[06:27:56] *** rickhanlonii has joined #angularjs
[06:28:25] *** narutimateum has quit IRC
[06:29:26] *** Fenikkusu has quit IRC
[06:31:39] *** chrisshattuck has quit IRC
[06:31:53] *** mercwithamouth has joined #angularjs
[06:31:56] *** Fenikkusu has joined #angularjs
[06:32:26] *** mylordi has joined #angularjs
[06:33:12] *** rickhanlonii has quit IRC
[06:33:46] *** CitizenKane has quit IRC
[06:34:20] *** SargoDarya has joined #angularjs
[06:34:29] *** SargoDarya has joined #angularjs
[06:35:22] *** rickhanlonii has joined #angularjs
[06:36:11] *** kapil__ has joined #angularjs
[06:36:21] *** Nivag has joined #angularjs
[06:37:05] *** khobalt has joined #angularjs
[06:38:28] *** danecando has quit IRC
[06:38:42] *** Fenikkusu has quit IRC
[06:39:58] *** danecando has joined #angularjs
[06:40:12] *** JR___ has quit IRC
[06:41:18] *** mzabriskie has joined #angularjs
[06:41:29] *** danecando has quit IRC
[06:42:06] *** roronoa_joenoez has joined #angularjs
[06:42:21] *** besson3c has quit IRC
[06:42:40] *** danecando has joined #angularjs
[06:42:44] *** ali has joined #angularjs
[06:43:08] *** ali is now known as Guest4716
[06:43:50] *** JR___ has joined #angularjs
[06:46:36] *** Raging_Hog has joined #angularjs
[06:47:42] *** bitri_ has quit IRC
[06:47:43] *** rickhanl_ has joined #angularjs
[06:48:02] *** grumpyOldRussian has joined #angularjs
[06:48:59] *** rickhanlonii has quit IRC
[06:50:35] *** zeitgist has joined #angularjs
[06:52:08] *** rickhanlonii has joined #angularjs
[06:52:12] *** rickhanl_ has quit IRC
[06:52:53] *** grumpyOldRussian has quit IRC
[06:53:07] *** mary5030_ has quit IRC
[06:53:09] *** SargoDarya has quit IRC
[06:53:39] *** mary5030 has joined #angularjs
[06:53:48] *** jordandotdev has joined #angularjs
[06:54:10] *** soee has quit IRC
[06:54:34] *** optikalmouse has joined #angularjs
[06:55:47] <progrock> man, I definitely love bower and npm, makes it so much easier to get everything you need... but its insane how much space youe standard set of packages takes up
[06:55:48] *** zeitgist has quit IRC
[06:55:49] *** morenoh149 has joined #angularjs
[06:56:07] <progrock> a simple website that used to be like 1MB is not 500MBs
[06:56:15] <progrock> now*
[06:56:45] *** soee has joined #angularjs
[06:56:46] <progrock> and of course I'm on a chromebook with I believe a 16gb ssd, lol
[06:56:58] *** rickhanlonii has quit IRC
[06:58:31] *** mary5030 has quit IRC
[06:58:57] *** nickgs has quit IRC
[07:00:19] *** tilgovi has joined #angularjs
[07:00:49] *** platonic has joined #angularjs
[07:05:29] *** platonic has quit IRC
[07:06:24] *** dcherman has quit IRC
[07:08:36] *** evotuned has joined #angularjs
[07:11:20] *** heizkessel is now known as yasaikun
[07:11:40] *** Reskp has joined #angularjs
[07:12:36] *** earthquake has joined #angularjs
[07:12:54] *** JR___ has quit IRC
[07:14:57] *** LakWork has joined #angularjs
[07:15:02] *** rtpg_ has joined #angularjs
[07:16:24] *** Reskp has quit IRC
[07:16:29] *** rtpg has quit IRC
[07:16:37] *** annlewis has joined #angularjs
[07:17:02] *** smoke1 has joined #angularjs
[07:17:13] *** JR___ has joined #angularjs
[07:17:45] *** sbrady has joined #angularjs
[07:18:37] *** tristanp has quit IRC
[07:20:25] *** smoke1 has left #angularjs
[07:20:57] *** annlewis has quit IRC
[07:23:12] *** trustyhank has quit IRC
[07:28:22] *** IvailoStoianov has joined #angularjs
[07:28:33] *** soee has quit IRC
[07:29:56] *** soee has joined #angularjs
[07:30:14] *** sl33k_ has quit IRC
[07:30:17] *** sbrady has quit IRC
[07:31:56] *** asher^ has quit IRC
[07:32:03] *** ron_frown has quit IRC
[07:33:10] *** WebDevOfDoom has joined #angularjs
[07:33:17] *** snurfery has joined #angularjs
[07:36:15] *** ezakimak has quit IRC
[07:36:32] *** mzabriskie has quit IRC
[07:36:44] *** snurfery has quit IRC
[07:38:45] *** BahamutWC|Laptop has joined #angularjs
[07:40:36] *** khobalt has quit IRC
[07:40:37] *** asher^ has joined #angularjs
[07:40:53] *** torando has quit IRC
[07:43:33] *** cacts has joined #angularjs
[07:44:49] *** YannLiao has joined #angularjs
[07:45:07] *** soee has quit IRC
[07:46:39] *** WebDevOfDoom has quit IRC
[07:47:55] *** WebDevOfDoom has joined #angularjs
[07:49:47] *** YannLiao has quit IRC
[07:49:47] *** {DV8} has quit IRC
[07:50:18] *** jhooks has quit IRC
[07:50:46] *** larsam has quit IRC
[07:51:00] *** SargoDarya has joined #angularjs
[07:51:21] *** zeitgist has joined #angularjs
[07:52:17] *** Yann has joined #angularjs
[07:52:19] *** WebDevOfDoom has quit IRC
[07:52:20] *** night-owl is now known as zz_night-owl
[07:52:24] *** aminRX has quit IRC
[07:52:40] *** Yann is now known as Guest53932
[07:52:49] <s3shs> Whoa.
[07:52:56] <s3shs> Seems something is wrong.
[07:53:04] <s3shs> ^ progrock
[07:53:09] <Guest53932> what?
[07:53:30] *** pHcF_ has quit IRC
[07:54:51] <s3shs> Skrypter, https://docs.angularjs.org/api/ng/directive/ngFocus maybe?
[07:55:06] <s3shs> No, that's a response /to/ a focus.
[07:55:39] <s3shs> Skrypter, here: http://stackoverflow.com/questions/24415168/setting-focus-on-an-input-field-after-ng-show
[07:56:13] <Skrypter> i have something similar im running
[07:56:15] *** zeitgist has quit IRC
[07:56:25] <Skrypter> but its squirrly when using visibility property
[07:56:51] *** tristanp has joined #angularjs
[07:56:51] <Skrypter> the focus fires too quickly before an element is visibility: visible
[07:57:02] <Skrypter> http://stackoverflow.com/questions/27700171/focus-text-input-after-toggling-visibility-using-angularjs-directives
[07:58:45] <s3shs> Then set a timeout longer.
[07:59:02] *** drag0nius has joined #angularjs
[08:00:12] <Skrypter> right, my first instinct is to just dump like a 500 millisecond wait on it
[08:00:49] <Skrypter> but... i was wondering if there was a way to let it trigger precisely when its ready
[08:01:09] *** JR____ has joined #angularjs
[08:01:12] <Skrypter> depending on the page load, 10 ms is enough sometimes, othertimes 500 ms is needed
[08:01:52] *** larsam has joined #angularjs
[08:01:53] *** JR___ has quit IRC
[08:02:47] *** scottsword has joined #angularjs
[08:03:07] <s3shs> Hmm. What if you wrap that in an ng-if instead of a ng-show?
[08:03:26] *** t_p has joined #angularjs
[08:03:35] *** jaydubya has quit IRC
[08:03:36] <s3shs> Because the innards of the div should be set up by the time ng-show fires. But it sounds like it's not somehow?
[08:03:46] *** dejanr has quit IRC
[08:04:13] *** jaydubya has joined #angularjs
[08:04:18] *** mary5030 has joined #angularjs
[08:05:09] <Skrypter> yea.. its quirky. if i throw in some console.log's and check for the class, i can see that the focus fires before the visibility: hidden; has been taken off
[08:05:41] <Skrypter> i'm trying to figure out how ng-show/hide does it without running into the same problem
[08:05:54] <Skrypter> cuz u cant focus something when its display: none; either
[08:06:13] *** MistahKurtz has joined #angularjs
[08:06:17] <Skrypter> but if i use an actual ng-show, everything works, so it handles it properly somehow
[08:07:09] *** scottsword has quit IRC
[08:08:19] *** jaydubya has quit IRC
[08:08:37] *** mary5030 has quit IRC
[08:10:16] <s3shs> Set the priority of your focusser higher than ng-show.
[08:10:43] <Skrypter> okay interesting, ive never heard of that, could you point me to a link about that?
[08:11:32] *** SargoDarya has quit IRC
[08:11:34] <s3shs> All angular directives take a focus setting.
[08:11:37] <s3shs> Sorry. Long long day.
[08:11:43] <s3shs> All angular directives take a priority setting.
[08:11:57] *** angulardude has joined #angularjs
[08:12:00] <Skrypter> heh
[08:12:01] <angulardude> hello
[08:12:08] <angulardude> so many angular people on
[08:12:23] *** angulardude has quit IRC
[08:12:24] *** Reskp has joined #angularjs
[08:12:35] <s3shs> Skrypter, https://groups.google.com/forum/#!topic/angular/Q59UMU-Z2z4
[08:12:44] *** nabdev has joined #angularjs
[08:12:46] <Skrypter> excellent
[08:12:49] <Skrypter> ty
[08:12:59] <s3shs> yw
[08:13:06] *** SchizoDuckie has joined #angularjs
[08:13:35] *** tremble has joined #angularjs
[08:13:48] *** serengeor has joined #angularjs
[08:14:22] *** Guest53932 has quit IRC
[08:15:32] *** lolmaus has joined #angularjs
[08:16:33] *** annlewis has joined #angularjs
[08:17:06] *** Reskp has quit IRC
[08:17:28] *** emocakes has quit IRC
[08:17:37] *** MIR100 has joined #angularjs
[08:18:05] <Skrypter> hm, apparently default priority is 0, and both ng-show/hide use priority level 0 too
[08:20:53] *** JR____ has quit IRC
[08:21:06] *** b1rkh0ff1 has joined #angularjs
[08:21:11] *** JR___ has joined #angularjs
[08:21:41] *** annlewis has quit IRC
[08:21:51] *** ome has quit IRC
[08:22:50] *** dllama has quit IRC
[08:23:03] *** mercwithamouth has quit IRC
[08:23:37] *** jonathanpglick has joined #angularjs
[08:29:21] *** D-Boy has quit IRC
[08:29:28] *** D-Boy has joined #angularjs
[08:29:28] *** D-Boy has joined #angularjs
[08:30:13] *** JR___ has quit IRC
[08:30:16] *** JR____ has joined #angularjs
[08:31:05] *** besson3c has joined #angularjs
[08:31:16] <s3shs> Can you go negative on your focus?
[08:31:47] <s3shs> Alternatively you could just create your ngShowAndFocus that does both.
[08:32:51] *** mercwithamouth has joined #angularjs
[08:33:24] <SchizoDuckie> he wants to set focus to an element after showing it?
[08:33:32] *** Dgc has joined #angularjs
[08:33:44] *** Dgc has quit IRC
[08:34:15] <s3shs> yeah
[08:34:16] *** JBreit has joined #angularjs
[08:34:42] <SchizoDuckie> https://github.com/SchizoDuckie/DuckieTV/blob/angular/js/services/TraktTV.js#L281 i made this little directive
[08:35:01] <SchizoDuckie> it watches a property on $scope and applies focus when it's true
[08:35:47] <Skrypter> checking it out SchizoDuckie
[08:35:50] *** zarglex has joined #angularjs
[08:35:55] <SchizoDuckie> so you can also $timeout that thing that sets the flag
[08:35:57] *** besson3c has quit IRC
[08:36:00] <SchizoDuckie> works well in duckietv
[08:36:04] *** TripTastic has quit IRC
[08:36:08] <SchizoDuckie> anyway, got to get to work, good luck :)
[08:36:10] *** Cronoh has quit IRC
[08:36:11] <Skrypter> looks like u have something similar to me
[08:36:13] *** wpfcg has joined #angularjs
[08:36:17] <Skrypter> with throwing in 500 ms delay
[08:36:29] <SchizoDuckie> yeah it doesn't work without the delay
[08:36:41] <Skrypter> ah yah, thats what i was hoping to solve
[08:36:46] <Skrypter> without an arbitrary delay
[08:36:49] <SchizoDuckie> could be that the link needs to be in another part of the directive
[08:36:52] *** grumpyOldRussian has joined #angularjs
[08:36:59] <SchizoDuckie> since there's multiple compile steps blabla for a directive
[08:37:03] <Skrypter> i see
[08:37:04] <SchizoDuckie> but i'll leave you guys to that
[08:37:06] <Skrypter> ty
[08:37:19] *** Cronoh has joined #angularjs
[08:37:21] <SchizoDuckie> np,good luck :)
[08:37:40] *** Lewix has quit IRC
[08:37:42] <SchizoDuckie> o/
[08:37:46] *** balr0g has quit IRC
[08:38:04] *** tristanp has quit IRC
[08:38:33] *** Tajbir has joined #angularjs
[08:39:00] *** nemothekid has quit IRC
[08:39:28] *** Reskp has joined #angularjs
[08:39:57] <wpfcg> Hey guys!
[08:40:05] <wpfcg> Im trying to use alias for DI
[08:40:15] <wpfcg> http://pastebin.com/P4zaTHsi
[08:40:23] <wpfcg> This works
[08:40:32] <wpfcg> Are there any drawbacks with this?
[08:40:41] <wpfcg> Haven't seen people use this much
[08:41:04] *** grumpyOldRussian has quit IRC
[08:41:43] *** joroc has joined #angularjs
[08:41:49] *** joroci has quit IRC
[08:42:21] *** jacuqesdancona has joined #angularjs
[08:42:25] *** earthquake has quit IRC
[08:42:33] *** nemothekid has joined #angularjs
[08:42:41] *** SchizoDuckie has quit IRC
[08:43:27] *** Reskp has quit IRC
[08:44:29] *** damian__ has joined #angularjs
[08:44:35] *** doginal has joined #angularjs
[08:45:16] *** leolrrj has joined #angularjs
[08:46:24] *** test has joined #angularjs
[08:46:48] *** eburcat has joined #angularjs
[08:46:56] <wpfcg> Anyone here?
[08:46:57] *** eburcat has quit IRC
[08:47:05] *** eburcat has joined #angularjs
[08:47:06] *** test has quit IRC
[08:47:06] *** plekplek has joined #angularjs
[08:47:10] *** sl33k_ has joined #angularjs
[08:47:13] *** KushS has joined #angularjs
[08:48:17] *** mercwithamouth has quit IRC
[08:48:44] *** cacts has quit IRC
[08:48:47] *** joroc is now known as joroci
[08:49:08] *** Tajbir has quit IRC
[08:49:15] *** nemothekid has quit IRC
[08:49:34] *** platonic has joined #angularjs
[08:49:58] *** bono has joined #angularjs
[08:50:10] *** mercwithamouth has joined #angularjs
[08:51:37] *** JR____ has quit IRC
[08:52:07] *** zeitgist has joined #angularjs
[08:53:32] *** Trow has joined #angularjs
[08:53:59] *** platonic has quit IRC
[08:54:49] *** JR____ has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:23] *** fairuz has quit IRC
[08:56:00] *** abram has quit IRC
[08:57:09] *** fairuz has joined #angularjs
[08:57:21] *** zeitgist has quit IRC
[08:57:35] *** Grokling_ has joined #angularjs
[08:58:16] *** ximenean___ has joined #angularjs
[09:01:00] *** zz_night-owl is now known as night-owl
[09:01:37] *** Trow has quit IRC
[09:01:54] *** Trow has joined #angularjs
[09:02:43] *** bono has quit IRC
[09:04:28] *** terakilobyte has joined #angularjs
[09:07:37] *** mercwithamouth has quit IRC
[09:07:55] *** rchavik has quit IRC
[09:07:58] *** SargoDarya has joined #angularjs
[09:08:28] *** dsdeiz has joined #angularjs
[09:09:12] *** dude has joined #angularjs
[09:09:32] *** platonic has joined #angularjs
[09:10:03] *** dude is now known as Guest23459
[09:10:14] *** sbellina has joined #angularjs
[09:10:29] *** Guest23459 has quit IRC
[09:11:51] *** joroc has joined #angularjs
[09:11:54] *** Trow has quit IRC
[09:12:22] *** Trow has joined #angularjs
[09:12:41] *** SargoDarya has quit IRC
[09:13:55] *** joroci has quit IRC
[09:14:48] *** sbellina has quit IRC
[09:15:07] *** dejanr has joined #angularjs
[09:16:03] *** asher^ has quit IRC
[09:16:32] *** annlewis has joined #angularjs
[09:16:54] *** MistahKurtz has quit IRC
[09:16:58] *** inkswolf has joined #angularjs
[09:17:54] *** one_zero has quit IRC
[09:17:58] *** wpfcg has quit IRC
[09:19:23] *** tremble has quit IRC
[09:19:30] *** inkswolf has left #angularjs
[09:19:40] *** jonathanpglick has quit IRC
[09:21:25] *** annlewis has quit IRC
[09:24:07] *** rchavik has joined #angularjs
[09:25:49] *** JR____ has quit IRC
[09:28:39] <terakilobyte> trying to use angular ui tabs, they seem to be breaking my scope in my controller. Is that normal?
[09:30:39] *** AronBrrr has quit IRC
[09:31:01] *** JR____ has joined #angularjs
[09:32:17] *** AronBrrr has joined #angularjs
[09:34:53] *** casatt has joined #angularjs
[09:35:45] *** startupality has joined #angularjs
[09:35:49] *** leolrrj has joined #angularjs
[09:35:50] *** Dido has quit IRC
[09:35:50] *** leolrrj has quit IRC
[09:37:02] *** asheshambasta has joined #angularjs
[09:37:27] *** Aliks has quit IRC
[09:38:42] *** deepy has joined #angularjs
[09:38:56] *** Bade has quit IRC
[09:38:59] *** doginal has quit IRC
[09:39:25] <deepy> How would I handle settings/configuration? I also have a need to change these during run-time and I kinda want them to persist too
[09:39:27] *** evok has quit IRC
[09:39:37] *** ome has joined #angularjs
[09:39:39] *** doginal has joined #angularjs
[09:40:03] *** rahul_ has joined #angularjs
[09:40:18] <rahul_> hello
[09:40:23] <rahul_> i want a help
[09:41:08] *** rahul_ has quit IRC
[09:42:09] *** Usuario has joined #angularjs
[09:43:37] *** Usuario is now known as frobs
[09:43:57] *** doginal has quit IRC
[09:46:21] *** egorpe has quit IRC
[09:46:24] *** startupality has quit IRC
[09:46:59] *** Menorah has quit IRC
[09:49:25] *** cthrax has quit IRC
[09:49:37] *** startupality has joined #angularjs
[09:50:31] *** ries has joined #angularjs
[09:50:53] *** JR____ has quit IRC
[09:51:30] *** Sadin has quit IRC
[09:51:54] *** Nivag_ has quit IRC
[09:52:13] *** jaydubya has joined #angularjs
[09:52:30] *** PeterMetz has joined #angularjs
[09:52:52] *** zeitgist has joined #angularjs
[09:53:31] *** RedOrangeZ has joined #angularjs
[09:54:32] *** RossJH has joined #angularjs
[09:55:02] *** wimbley has quit IRC
[09:55:34] *** jstroem has joined #angularjs
[09:56:35] *** jaydubya has quit IRC
[09:57:46] *** shau has joined #angularjs
[09:57:48] *** zeitgist has quit IRC
[09:58:05] *** SchizoDuckie has joined #angularjs
[09:58:38] <SchizoDuckie> o/
[09:59:58] *** Menorah has joined #angularjs
[10:00:02] *** startupality has quit IRC
[10:00:13] *** ximenean___ has quit IRC
[10:00:21] *** NormySan has joined #angularjs
[10:01:02] *** AlSquire has joined #angularjs
[10:06:20] *** freeAir has joined #angularjs
[10:07:14] *** yasaikun has left #angularjs
[10:08:28] *** Guest33 has joined #angularjs
[10:09:27] <Guest33> hello, i have a css animation on a directive for a template, but whenever i hide the template and view it again, the animation keeps activiating, not sure why this is happening
[10:09:43] *** SargoDarya has joined #angularjs
[10:11:26] *** r1zz0m4t1c has joined #angularjs
[10:13:05] *** mite_mitreski has joined #angularjs
[10:14:26] *** phrozensilver has joined #angularjs
[10:15:57] *** tangorri has joined #angularjs
[10:16:34] *** startupality has joined #angularjs
[10:16:36] *** annlewis has joined #angularjs
[10:17:09] <jacuqesdancona> morning
[10:17:26] <Guest33> hi jac
[10:17:33] <Guest33> would you by any chance have any idea regarding my question?
[10:17:54] <jacuqesdancona> I just joined, what is your question?
[10:18:00] <jacuqesdancona> oh nevermind
[10:18:14] <Guest33> Yeah, I am using a 'slide-menu' with ionic and angularjs
[10:18:32] <Guest33> and i have a css animation using animation.css on a div through a directive
[10:18:51] <Guest33> when i view another template from the slide-menu, and slide back to the home.html, the animation restarts
[10:19:02] <Guest33> and this is not suppose to happen, not sure why this is happening
[10:19:28] <jacuqesdancona> with ng-show/ng-hide?
[10:19:36] <Guest33> no not with ng-show/ng-hide
[10:19:37] <Guest33> http://jsfiddle.net/rzkqx0ks/
[10:19:42] <Guest33> i added the javascript there
[10:19:50] <Guest33> i'm using the animation.css plugin
[10:19:58] *** besson3c has joined #angularjs
[10:20:25] *** Sebastien-L has joined #angularjs
[10:21:18] *** phrozensilver has quit IRC
[10:21:22] *** Evanion has quit IRC
[10:21:31] *** annlewis has quit IRC
[10:21:42] *** evilaliv3 has joined #angularjs
[10:22:12] *** swirlycheetah has joined #angularjs
[10:22:47] *** gunn has quit IRC
[10:23:04] *** boonkerz- has quit IRC
[10:24:11] *** apipkin has quit IRC
[10:24:11] *** crazybotsmoker has quit IRC
[10:24:20] <jacuqesdancona> just a guess, is data.cover_url changed when going back to home.html?
[10:24:27] *** besson3c has quit IRC
[10:25:20] *** janoelze has quit IRC
[10:25:36] *** evotuned has quit IRC
[10:25:38] <jacuqesdancona> it it's updated, that watcher will notice and (re)add the classes
[10:25:43] *** rikkus has quit IRC
[10:25:44] *** Templarian has quit IRC
[10:25:44] *** blackjid_ has quit IRC
[10:25:45] *** grumpyOldRussian has joined #angularjs
[10:25:47] <Guest33> no it is not
[10:26:03] *** apipkin has joined #angularjs
[10:26:06] *** eristic has quit IRC
[10:26:13] <Guest33> what happens is the 'animation fadeInRight' activates when i go back to the home.html
[10:26:20] <Guest33> even when the data.cover_url does not change yet
[10:26:21] *** rikkus has joined #angularjs
[10:26:27] *** janoelze_ has joined #angularjs
[10:26:29] *** Shadda has quit IRC
[10:26:34] *** sidthekid has joined #angularjs
[10:27:31] *** blackjid_ has joined #angularjs
[10:27:41] *** zeitgist has joined #angularjs
[10:27:43] <jacuqesdancona> it'll always be activated, you have a $timeout
[10:27:49] *** Templarian has joined #angularjs
[10:28:13] *** marr has joined #angularjs
[10:28:21] <jacuqesdancona> after every data.cover_url change, the animated fadeInRight classes are added
[10:28:23] *** crazybotsmoker has joined #angularjs
[10:28:53] *** eristic_ has joined #angularjs
[10:29:03] <Guest33> hm then should i remove the $timeout?
[10:29:41] *** cojack has joined #angularjs
[10:29:46] <Guest33> is there another option then $timeout? My code is not good practice at the moment, but basically i was trying to removeClass after 500 milliseconds, but $timeout was the only thing i could think of with angular
[10:29:49] <jacuqesdancona> that's up to you, but I read that code as When data.cover_url changes, add classes, then wait 500ms, then add other classes
[10:29:56] *** jonathanpglick has joined #angularjs
[10:30:07] <jacuqesdancona> and if those other classes do anything with making an element visible, those animations will be visible
[10:30:25] *** sidthekid has quit IRC
[10:30:25] *** grumpyOldRussian has quit IRC
[10:30:35] <Guest33> but at the moment, the animation happens even when data.cover_url does not change hm
[10:31:07] *** sl33k_ has quit IRC
[10:31:13] <Guest33> maybe this has to do with ionic not sure
[10:31:20] *** Shadda has joined #angularjs
[10:31:21] <jacuqesdancona> I don't know, haven't worked with ionic
[10:31:35] <jacuqesdancona> But I don't really think so
[10:31:50] <Guest33> ah okay, i'll do more test and try to figure it out, thanks though!
[10:31:50] <jacuqesdancona> what you're saying is 'classes are magically added to an element'
[10:31:53] *** SargoDarya has quit IRC
[10:31:56] <Guest33> yeah lol
[10:32:17] <jacuqesdancona> which is probably not what's happening :)
[10:32:42] *** SchizoDuckie has quit IRC
[10:32:45] <jacuqesdancona> is it rerunning the css animation?
[10:32:46] <jacuqesdancona> or just once?
[10:33:12] <Guest33> yeah everytime i go back to the home.html from the slide-menu, it happens once
[10:33:16] <Guest33> just once
[10:33:48] <jacuqesdancona> so, the element which is showing that animation, is it hidden before going back to home.html?
[10:33:54] *** teddyp1cker has joined #angularjs
[10:34:28] <jacuqesdancona> so maybe you're hiding, then showing an element with animation classes still on it
[10:34:49] *** jstroem has quit IRC
[10:34:50] <jacuqesdancona> I don't know, it's just guessing without the actual menu routeChanges
[10:34:57] *** dejanr has quit IRC
[10:34:59] *** jstroem has joined #angularjs
[10:34:59] *** pilva has joined #angularjs
[10:35:39] <Guest33> i just see that when i go to another template, home.html goes to 'cached' view , and sets it opacity at 0
[10:36:16] *** Grumelo has joined #angularjs
[10:36:34] *** Trow has quit IRC
[10:36:44] *** Trow has joined #angularjs
[10:36:44] *** jur has joined #angularjs
[10:36:48] *** zlalanne has quit IRC
[10:36:49] *** jur is now known as SchizoDuckie
[10:37:15] *** dejanr has joined #angularjs
[10:39:29] *** startupality has quit IRC
[10:39:38] <SchizoDuckie> woohoo, last workday of the year
[10:39:43] <SchizoDuckie> and last workday of the week \o/
[10:39:44] *** slopjong has joined #angularjs
[10:40:21] <Guest33> jacuqesdancona, i just added $element.removeClass('animated fadeInRight') at the very end and this seems to solve my problem
[10:40:22] <Guest33> at the moment
[10:40:37] *** doginal has joined #angularjs
[10:40:38] *** Sven__ has joined #angularjs
[10:42:01] *** k-dawg has joined #angularjs
[10:43:02] <Sven__> Hi there, what's the best practice in Angular to build a autocomplete tagging form, where both predefined tags and new custom tags are possible? So something simular to the recipient field of a email-client
[10:43:05] <jacuqesdancona> ok cool :)
[10:43:08] *** renlo has quit IRC
[10:43:29] *** jonathanpglick has quit IRC
[10:43:55] *** tarnus has joined #angularjs
[10:45:40] *** doginal has quit IRC
[10:46:23] *** Trow has quit IRC
[10:48:11] *** tkx has joined #angularjs
[10:48:23] *** tarnus has quit IRC
[10:48:56] *** cotko has joined #angularjs
[10:49:57] *** startupality has joined #angularjs
[10:50:31] *** younqcass has joined #angularjs
[10:50:33] <tkx> Hi, I've been let down by a developer on a small project. It requires converting an app to angular for use with Ionic Framework. If anybody is interested PM me.
[10:52:49] *** gunn has joined #angularjs
[10:53:04] *** Trow has joined #angularjs
[10:53:31] *** Sven__ has quit IRC
[10:55:28] *** younqcass_ has joined #angularjs
[10:55:55] *** younqcass has quit IRC
[10:55:55] *** younqcass_ is now known as younqcass
[10:57:35] *** Aliks has joined #angularjs
[10:59:24] <burzum2> im getting a list of elements from the DB is there a way to dynamically load different directives? what I basically want to do is this <cms-{{element.CmsPageElement.element_type}}> but this doesn't work for obvious reasons.
[11:01:08] <bealtine> maybe one of the ng-switch-when might help
[11:01:16] *** renlo has joined #angularjs
[11:01:21] <bealtine> if you know the type
[11:01:29] *** t_p has quit IRC
[11:01:37] *** Raging_Hog has quit IRC
[11:01:50] *** Raging_Hog has joined #angularjs
[11:01:58] *** gunn has quit IRC
[11:02:18] <jacuqesdancona> burzum2: what I did in a similar usecase is write a small directive which $compiles and writes those elmements to the dom
[11:02:32] <burzum2> bealtine i would prefer to not have a list in js, the idea is that the type comes from the db and just renders the directive based on the element type if it exists
[11:02:44] <jacuqesdancona> ng-switch would work, but then it has to be hardcoded
[11:02:46] <bealtine> that's not in js
[11:02:50] <burzum2> jacquesdancona is that efficient and best practice?
[11:02:53] <bealtine> it's in the html
[11:02:55] *** aditya_vy has joined #angularjs
[11:03:01] <burzum2> bealtine, let me lookup that directive
[11:03:24] <bealtine> yeah it does need hardcoding
[11:03:44] <burzum2> bealtine, thats my point :) i dont want to hardcode something based on the type to make it easy to add new types
[11:03:51] *** boonkerz- has joined #angularjs
[11:04:02] *** burzum2 is now known as burzum
[11:04:16] <jacuqesdancona> I haven't found a better way yet
[11:04:27] <jacuqesdancona> I'm using it for forms, where every element can be a directive or an inputtype
[11:04:51] <joroc> anyone using angular-gestures module?
[11:05:06] <bealtine> well then what jacquesdancona suggests should work
[11:05:08] <jacuqesdancona> our forms come from 1000s lines of json, because they're shared between web and mobile app
[11:05:20] <bealtine> depends on the complexity
[11:05:32] *** advy has quit IRC
[11:06:31] *** renlo has quit IRC
[11:06:33] *** fernandojsg has joined #angularjs
[11:06:39] <burzum> im not going to have thousand lines for an element :) well it can get pretty complex. im basically implement a widget per element type, this can in the most complex case be a complete gallery management for example. uploading image(s) and setting a primary image, defining how many images should be displayed. carousel or not and so on but this shouldn't be a problem
[11:07:19] *** r1zz0m4t1c has quit IRC
[11:07:42] *** ronskisika has joined #angularjs
[11:07:44] *** Raging_Hog has quit IRC
[11:07:51] <burzum> jacquesdancona so I guess your directive just takes some args and picks a template based on that args and compiles it and injects it?
[11:08:15] <fernandojsg> hi everyone
[11:08:21] <jacuqesdancona> burzum: yes
[11:08:24] <masscrx> hi
[11:08:25] <burzum> ok thanks
[11:08:37] <jacuqesdancona> well, because of complexity I don't use template files, but write them inline :'(
[11:08:42] <bealtine> sounds like a nice idea
[11:09:07] <jacuqesdancona> but best thing would be to just use templating, yes
[11:10:09] *** chr1stopher has joined #angularjs
[11:10:59] *** jstroem has quit IRC
[11:11:02] *** Beatzebub has quit IRC
[11:11:11] *** sbellina has joined #angularjs
[11:11:27] <masscrx> I have select tag with ng-model="service.customer" and repeat="customer.id as customer in customers" but for backend I need send only customer.id for service (Foreign key in db) what approach should I use in this case? I usually before sending data to backend get only id from service.customer, make service.customer as undefined and send only id
[11:11:46] *** joroci has joined #angularjs
[11:12:40] *** juampy has joined #angularjs
[11:12:47] *** optikalmouse has quit IRC
[11:14:37] *** joroc has quit IRC
[11:14:49] *** fairuz has quit IRC
[11:14:50] *** casatt has quit IRC
[11:15:39] *** sbellina has quit IRC
[11:15:41] *** b1rkh0ff has quit IRC
[11:16:20] <jacuqesdancona> masscrx: if you can use ng-options instead of an ng-repeat
[11:16:35] *** annlewis has joined #angularjs
[11:16:44] <jacuqesdancona> <select ng-options="item.id as item.label for item in values " ng-model="selected">?
[11:16:58] <jacuqesdancona> else it's manually stripping afaik
[11:17:18] *** juampy has quit IRC
[11:18:05] <masscrx> this is directive ui-select2 for angular
[11:18:20] <jacuqesdancona> oh, then I really don't 'know
[11:18:31] <jacuqesdancona> but check their docs :)
[11:19:19] *** fixl has joined #angularjs
[11:21:04] *** leolrrj has joined #angularjs
[11:21:41] *** annlewis has quit IRC
[11:22:20] <masscrx> ok but for example in db I have column customer_id for services table, so shall I use ng-model as service.customer or service.customer_id ?
[11:22:22] *** inkswolf has joined #angularjs
[11:23:03] *** joroci has quit IRC
[11:23:07] *** boonkerz- has quit IRC
[11:23:09] *** sl33k_ has joined #angularjs
[11:23:17] <masscrx> another words, if I have array of objects, ng-model should be reference to value or to object ?
[11:24:02] *** marr has quit IRC
[11:24:08] *** anivemin has joined #angularjs
[11:24:36] *** komlev_ has joined #angularjs
[11:25:23] *** boonkerz- has joined #angularjs
[11:25:39] *** DANISH has joined #angularjs
[11:26:00] <fernandojsg> one questions, how do you use to manage routes on config? Do you have a main app.js with all the routes, or do you have a specific file for each view defining the route for this view?
[11:26:08] *** evotuned has joined #angularjs
[11:26:34] *** dc_ has quit IRC
[11:27:37] *** Aliks has quit IRC
[11:27:44] *** leolrrj_ has joined #angularjs
[11:27:49] *** okdamn has joined #angularjs
[11:27:51] *** okdamn has left #angularjs
[11:27:53] <kakashiA1> I try to use another module and I get these errors:
[11:27:54] <kakashiA1> Error: [$injector:nomod]....and Error: [$injector:modulerr]
[11:27:56] <kakashiA1> I checked the file with the module that I want to use (it loads)
[11:27:58] <kakashiA1> I also checked the name of the module (there is no typo) so what can I do?
[11:28:13] *** Aliks has joined #angularjs
[11:28:29] *** tilgovi has quit IRC
[11:28:54] *** Zemzemi has joined #angularjs
[11:29:30] *** SargoDarya has joined #angularjs
[11:29:49] *** PeterMetz has quit IRC
[11:30:39] *** evotuned has quit IRC
[11:30:59] *** uris77 has joined #angularjs
[11:31:36] *** leolrrj has quit IRC
[11:32:16] *** MIR100 has quit IRC
[11:32:41] *** Solid1_afk is now known as Solid1
[11:32:49] *** Aliks has quit IRC
[11:33:42] *** chr1stopher has left #angularjs
[11:33:53] *** SargoDarya has quit IRC
[11:34:10] *** komlev_ has quit IRC
[11:35:03] *** jaydubya has joined #angularjs
[11:35:31] *** stephen has joined #angularjs
[11:35:43] <jacuqesdancona> masscrx: that's really just up to you
[11:36:11] <SchizoDuckie> kakashiA1: use the non-minified version of angular. it should give you more info
[11:36:27] *** jordandotdev has quit IRC
[11:36:29] *** saucey has quit IRC
[11:36:32] *** dejanr has quit IRC
[11:37:24] *** frem has quit IRC
[11:37:28] *** chr1stopher has joined #angularjs
[11:37:41] <kakashiA1> SchizoDuckie: okay will do that, but you have no idea what can cause this problem?
[11:37:44] *** juampy has joined #angularjs
[11:38:10] <jacuqesdancona> you're missing a dependency, maybe a typo?
[11:38:19] <SchizoDuckie> you can tell as soon as you have the extended info. could be a parse error, could be a dependency loading failed
[11:38:42] *** tristanp has joined #angularjs
[11:38:55] *** leolrrj has joined #angularjs
[11:38:55] * kakashiA1 downloads the non min version of angular
[11:39:15] *** DANISH has left #angularjs
[11:40:58] *** saucey has joined #angularjs
[11:41:19] <fernandojsg> What do you think about ui-router vs ngroute? It's possible to use ui-router aswell without problem? thinking in future compatibility and so on?
[11:42:00] *** leolrrj_ has quit IRC
[11:42:29] <bealtine> ng-route is to be replaced soon
[11:42:45] <fernandojsg> bealtine: ok, so better stick on ui-router?
[11:42:54] <fernandojsg> bealtine: or there's something else
[11:43:14] *** jtimon has joined #angularjs
[11:43:18] *** tristanp has quit IRC
[11:43:31] <bealtine> i use ui-router for now
[11:43:49] <leolrrj> guys can u suggest me a good mockups builder for apps screens? user experience etc? Three years ago I used to play with balsamiq mockups but today I don't know if there's a better tool...
[11:43:49] *** stephen has quit IRC
[11:43:51] <fernandojsg> ok thank you
[11:44:49] *** basiclaser_ has joined #angularjs
[11:46:27] *** doginal has joined #angularjs
[11:46:40] *** Zemzemi has quit IRC
[11:48:20] *** b1rkh0ff has joined #angularjs
[11:49:14] *** Menorah has quit IRC
[11:49:30] *** greengriminal has joined #angularjs
[11:50:48] *** MetaCosm has quit IRC
[11:51:00] *** doginal has quit IRC
[11:51:33] <kakashiA1> SchizoDuckie: this is my error message: https://paste.xinu.at/1tfuTZ/
[11:51:34] <juampy> leolrrj, invisionapp
[11:51:43] <juampy> it's very good
[11:52:05] <SchizoDuckie> okay, so you're using the module app.service at a point where itÅ› not defined yet kakashiA1
[11:52:20] <SchizoDuckie> check your scripts order
[11:52:43] *** MetaCosm has joined #angularjs
[11:52:54] <kakashiA1> var app = angular.module('app.service') <---here I defined it
[11:53:49] <kakashiA1> and I load it before the module that needs it
[11:54:14] <Grokling_> kakashiA1: That's not a definition - that
[11:54:20] <Grokling_> is a reference.
[11:54:52] <kakashiA1> Grokling_: I see your point
[11:55:36] <SchizoDuckie> kakashiA1: app = angular.module('app.service',[])
[11:55:52] <kakashiA1> SchizoDuckie, Grokling_: thanks bros! it works now!
[11:56:00] <SchizoDuckie> yw :)
[11:56:01] <kakashiA1> (and I learned something again)
[11:56:02] *** stephen has joined #angularjs
[11:56:13] <SchizoDuckie> excellent
[11:56:34] *** evotuned has joined #angularjs
[11:57:38] *** anivemin has quit IRC
[11:57:40] *** bayousoft has quit IRC
[12:00:59] *** Perl has joined #angularjs
[12:01:28] *** Left_Turn has joined #angularjs
[12:02:12] *** Evanion has joined #angularjs
[12:03:28] *** apertoire has joined #angularjs
[12:04:47] *** Sky[x] has joined #angularjs
[12:05:00] *** anivemin has joined #angularjs
[12:05:02] *** cobakobodob has joined #angularjs
[12:05:08] *** Foxandxss has joined #angularjs
[12:06:06] *** cobakobodob has quit IRC
[12:06:34] *** Grokling_ has quit IRC
[12:08:09] *** rikko has quit IRC
[12:08:51] *** besson3c has joined #angularjs
[12:09:30] *** arete74 has joined #angularjs
[12:09:43] *** Bardosity has quit IRC
[12:10:16] *** inkswolf has quit IRC
[12:10:42] *** evotuned has quit IRC
[12:11:16] <fernandojsg> can someone explain me why is necessary (or maybe i'm doing it wrong) to include template: '<ui-view/>' when creating an abstract view for ui-router ?
[12:11:30] *** KettleCooked has joined #angularjs
[12:11:33] *** cobakobodob has joined #angularjs
[12:11:33] <kakashiA1> I have: var app = angular.module('app.service', []).factory('updateUser' function.....
[12:11:34] <kakashiA1> and importing the module works, but if I use that factory in my other controller of another module I get this error:
[12:11:36] <kakashiA1> Error: [$injector:unpr] Unknown provider: $scopeProvider <- $scope <- updateUser
[12:12:17] <SchizoDuckie> youŕe using $scope as a dependency on the wrong level?
[12:12:18] *** inkswolf has joined #angularjs
[12:13:13] <KettleCooked> How can I broadcast/notify Controllers from a Service, WITHOUT polluting the global $rootScope with events? Something like service.on('event', myControllersFunction) inside the controller. Reading tons of stackoverflow and blog posts about it but everyone trips up.
[12:13:25] <kakashiA1> I am using $scope but dont know what you mean with "on the wrong level"
[12:13:26] *** sl33k_ has quit IRC
[12:13:37] <SchizoDuckie> show some code please kakashiA1
[12:13:48] <SchizoDuckie> KettleCooked: i'm abusing the same method with DuckieTV
[12:13:53] *** besson3c has quit IRC
[12:13:56] <SchizoDuckie> just $rootScope.$broadcast(myevent)
[12:14:08] <SchizoDuckie> but it's nasty because then you rely on $rootscope
[12:14:12] <KettleCooked> exactly!
[12:14:26] <KettleCooked> All answers point to this solution, while raising fingers saying it's bad. What the hell.
[12:14:27] <SchizoDuckie> theoretically, you should create some sort of eventbus architecture
[12:14:37] <SchizoDuckie> but $rootscope is the perfect eventbus imo
[12:14:39] *** grumpyOldRussian has joined #angularjs
[12:14:55] <KettleCooked> Yeah that's one solution, perhaps Observer pattern inside the Service, but that's a lot of boilerplate.
[12:15:10] <kakashiA1> SchizoDuckie: it works now, I just removed scope from my factory
[12:15:37] <SchizoDuckie> wether or not you create an extra EventBus class that handles $on and $broadcast, you end up with the same code as $rootScope.$on $rootScope.$broadcast imo KettleCooked
[12:15:41] *** Sky[x] has quit IRC
[12:15:53] <SchizoDuckie> not sure what the guruÅ› here think about that
[12:16:01] *** evilaliv3 has quit IRC
[12:16:04] <SchizoDuckie> dammit i need to change my keyboard layout
[12:16:34] *** annlewis has joined #angularjs
[12:16:37] <KettleCooked> SchizoDuckie, well you can put the observer stuff inside the Service. But then you have to do it in all services.
[12:16:44] <stephen> To what SchizoDuckie ?
[12:17:02] <KettleCooked> SchizoDuckie, like the most voted answer here: http://stackoverflow.com/questions/12576798/how-to-watch-service-variables
[12:17:07] <SchizoDuckie> global event emitting/brodacasting stephen
[12:17:11] *** apertoire has quit IRC
[12:17:18] <stephen> SchizoDuckie: Yuck.
[12:17:28] <stephen> Services bro...
[12:17:33] *** Solid1 is now known as Solid1_afk
[12:17:55] <SchizoDuckie> stephen: yes, but you may not need the dependencies everywhere
[12:18:20] *** blackkbot has joined #angularjs
[12:18:32] <stephen> SchizoDuckie: Exactly the reason to use services instead of rootscope.
[12:18:40] <stephen> DI when needed.
[12:19:03] <stephen> Then again, you could do a version involving both
[12:19:06] *** grumpyOldRussian has quit IRC
[12:19:06] <KettleCooked> stephen: do you have any advice on how to send and event/somehow notify a Controller from a Service without using $rootScope?
[12:19:23] <SchizoDuckie> that's what i've done stephen. where it doesn't make sense i broadcast, otherwise just di.
[12:19:35] <KettleCooked> I have that situation now, and I feel it should be very simple somehow. 2 controllers that may or may not exist, if they do, they want to know what happens in the Service.
[12:19:35] <stephen> KettleCooked: Sure, I can help with that.
[12:20:03] <stephen> KettleCooked: are you asking for SchizoDuckie, or do you have a separate problem?
[12:20:12] <KettleCooked> I'm asking for my specific situation
[12:20:19] *** Hootch has joined #angularjs
[12:20:25] <SchizoDuckie> stephen: I was responding to KettleCooked's question
[12:20:50] <KettleCooked> I have two controllers that shouldn't know about each other. I have a Service. Both Controllers access the Service. The Service does not know about the Controllers (naturally)
[12:20:53] <stephen> KettleCooked: Ok, sorry Im just getting back. Can you explain the larger picture? I've been doing this a long time, I know I can give you a solution
[12:21:17] <stephen> KettleCooked: Gotcha so far
[12:21:19] <KettleCooked> So far my research points to using $rootScope.$broadcast from the Service to notify the Controllers about anything that's updated
[12:21:23] *** annlewis has quit IRC
[12:21:38] <KettleCooked> At the same time, I feel it's the wrong solution, mainly due to polluting global rootscope. Messy.
[12:21:38] <stephen> What's being updated?
[12:21:56] <KettleCooked> For now just a text string, anything basically.
[12:21:58] *** jstroem has joined #angularjs
[12:22:11] <stephen> Ok, so Angular's way about this is binding
[12:22:35] <stephen> So, can you give me more understanding about how the controllers are using or consuming the updated data?
[12:22:45] <KettleCooked> sure one sec
[12:23:19] *** pushpak has joined #angularjs
[12:23:29] *** Caroga_afk is now known as Caroga
[12:24:06] <KettleCooked> I'm not doing anything advanced at all really, since I'm designing this as I'm learning. But my GridController shows the name of GridService.currentlySelected. currentlySelected is just a simple object
[12:24:21] *** Sky[x] has joined #angularjs
[12:24:39] <stephen> So GridService.currentlySelected.name?
[12:24:54] *** marr has joined #angularjs
[12:25:12] <KettleCooked> Yes. GridController detects clicks on the different slots in my grid. When that happens, it calls a function on the service to say that "hey I selected this slot, do your thing". The GridService checks if it's OK to select the slot at this moment.
[12:25:49] <KettleCooked> Assume it's OK, so we select a new slot. This happens instantly, so I can easily reflect this in my GridController by specifically checking for this after the function call.
[12:25:49] <stephen> Ok, and GridController, you say, "Shows" it. Controllers aren't UI. You have a view with a ng-model bound? or ng-controller?
[12:26:03] *** inkswolf has quit IRC
[12:26:08] *** jstroem has quit IRC
[12:26:12] *** rhp has quit IRC
[12:26:20] *** h0ru5 has joined #angularjs
[12:26:36] <KettleCooked> Yes, I do, ng-controller="GridController". It shows all slots basically. Now. I have this OTHER controller DeviceController, which shows GridService.currentlySelected
[12:26:41] *** crised has joined #angularjs
[12:27:03] <stephen> Ok, so you're injecting GridService into GridController.
[12:27:06] <crised> Hi, Which websocket library would you use with angular? With node.js as backend
[12:27:11] <crised> Would you use socket.io?
[12:27:28] <KettleCooked> Yes. I just realized, maybe I'm doing this wrong - to show the GridService.currentlySelected, in my Controllers, I do "$scope.currentlySelected = GridService.currentlySelected"
[12:27:29] <SchizoDuckie> crised: look into faye.node
[12:27:36] <stephen> KettleCooked: Am I right about GridService.currentlySelected.name?
[12:27:37] <SchizoDuckie> you'll save yourself a lot of problems
[12:27:48] <stephen> CurrentlySelected an object like that?
[12:28:10] <KettleCooked> Yes. Although I put the whole object into the controllers, not just the name. But yes, in the view I do {{currentlySelected.name}}
[12:28:31] <stephen> :-) Now you're getting it
[12:28:36] <crised> SchizoDuckie: but that, doesn't actually use websockets?
[12:28:53] *** chr1stopher has quit IRC
[12:29:19] <KettleCooked> I think it all boils down to, how can a change in the GridService.currentlySelected be reflected to the Controllers scope?
[12:29:20] <stephen> KettleCooked: You may need to do $scope.GridService = GridService
[12:29:37] *** uris77 has quit IRC
[12:29:44] <KettleCooked> ah and then {{GridService.currentlySelected.name}} ?
[12:29:46] <stephen> Then "{{GridService.currentlySelected.name}}"
[12:29:49] <stephen> Yup
[12:29:49] <KettleCooked> :)
[12:30:03] <KettleCooked> Sounds weird to access the Service directly in the view, is that kosher? :)
[12:30:04] <crised> SchizoDuckie: Did you know that there is a newer version of Socket.io that uses engine.io
[12:30:21] <SchizoDuckie> crised: npe. my last socket.io stuff was years ago
[12:30:31] <SchizoDuckie> putting a service ont he scope? ieuw?
[12:30:34] <stephen> If you don't like the UI knowing about the service, then write a small function that returns the currentlySelected object from the service inside the controller (to make it a reference instead of copying)
[12:30:52] *** SchizoDuckie is now known as Schizo|Lunch
[12:30:56] <stephen> function getCurrentlySelected() { return GridService.currentlySelected; }
[12:31:05] *** SargoDarya has joined #angularjs
[12:31:12] <stephen> Then {{ getCurrentlySelected().name }} in the UI
[12:31:25] <crised> Schizo|Lunch: Why do you say it saves a lot of problem?
[12:31:40] <stephen> Though that kind might break 2 way binding, not sure
[12:31:45] *** fernandojsg has quit IRC
[12:31:50] *** evilaliv3 has joined #angularjs
[12:31:53] <KettleCooked> stephen: Alright, sounds good. So let's say I want detect if GridService.currentlySelected becomes null/undefined, and detect in the Controller.
[12:32:00] <crised> Schizo|Lunch: npe -> negative player experience?
[12:32:05] *** uris77 has joined #angularjs
[12:32:11] <KettleCooked> This is planned to happen, since you can unselect the slots in the grid. So nothing is selected.
[12:32:34] <KettleCooked> And in that case my second controller is supposed to react in a different way, basically hide lots of extra stuff.
[12:32:49] *** tarnus has joined #angularjs
[12:33:13] <KettleCooked> With $rootScope.$broadcast I can listen to the change event and see if the value is null/undefined, and handle it a simple function. But with data binding - no idea how
[12:33:22] <stephen> KettleCooked: You'll want the Service version then. Since binding breaks when you start getting primitives, you have to be careful
[12:33:44] <stephen> KettleCooked: But, basically you just need an ng-if in your ui
[12:34:21] <stephen> <div ng-if="GridService.currentlySelected">
[12:34:21] <KettleCooked> That will end up putting too much business logic in my view, in the long run. I want to use the Controller to decide the state of business.
[12:34:42] <stephen> Nope, you're just determining visibility
[12:34:42] <KettleCooked> Maybe I'm overreacting, but I think it will be convoluted
[12:35:10] <stephen> It's the right way, basically all the elements underneath it never get rendered if it's false
[12:35:24] *** poacher2k has joined #angularjs
[12:35:48] <stephen> But, you can add a function like I described before if you prefer in the controller. Then just have the UI bind to that function
[12:36:43] <KettleCooked> Ok. Interesting approach, I suppose it COULD work although I'm feeling there's bound to be edge cases where I'll resort to $rootScopes broadcast instead.
[12:36:46] <stephen> function isCurrentlySelectedVisible() { return GridService.currentlySelected != false; }
[12:37:06] <stephen> Earnestly, events are going to make you lose all the wonderful binding Angular offers
[12:37:11] <stephen> It's not built for it.
[12:37:17] *** tarnus has quit IRC
[12:37:23] <KettleCooked> There isn't really way to notify controllers from a service without the root scope?
[12:37:27] <stephen> You should strive to use these methods (retaining the reference chain) wherever possible
[12:37:44] <KettleCooked> Yeah I'll try my best to do it the Angular way and see how far I get :)
[12:37:45] <stephen> KettleCooked: Of course there is
[12:37:54] *** sl33k_ has joined #angularjs
[12:37:56] <KettleCooked> Ok but how then? It's what I'm looking for :)
[12:38:17] <KettleCooked> By notify I mean trigger a function for example, as if listening to an event
[12:38:31] <stephen> KettleCooked: Have controllers register themselves at the beginning
[12:38:43] <stephen> Ok, so we have a "NotifyService"
[12:38:44] *** Nurbs has joined #angularjs
[12:38:54] <KettleCooked> Check
[12:39:21] <stephen> NotifyService has an array called "callbacks"
[12:39:24] *** plekplek has quit IRC
[12:39:33] <KettleCooked> Like observer-pattern?
[12:39:40] <stephen> Basically
[12:39:47] *** plekplek has joined #angularjs
[12:39:56] <stephen> You just have the controller pass a reference of it's internal method to the Service
[12:40:04] <KettleCooked> stephen, like highest voted answer here: http://stackoverflow.com/questions/12576798/how-to-watch-service-variables ?
[12:40:07] <stephen> And the service keeps those references in an array
[12:40:36] <stephen> Web is acting stupid, I'll have to check that later
[12:41:13] <KettleCooked> alright but yeah it basically says what you're saying :) So yeah, that's a solution that works I suppose, only drawback is the extra boilerplate in case you want many services that does act this way.
[12:41:39] *** doginal has joined #angularjs
[12:41:39] <KettleCooked> In my opinion, not too big of deal, can definitely live with that, but I'm curious - do you know a way to extend Services in Angular to always include this somehow?
[12:42:09] *** startupality has quit IRC
[12:42:11] <stephen> KettleCooked: Services can inject other services.
[12:42:20] <KettleCooked> bingo
[12:43:22] *** davi has joined #angularjs
[12:43:35] <stephen> Understand that the actual angular.service() is useful for wrapping JavaScript classes you've already made
[12:43:37] *** ximenean___ has joined #angularjs
[12:43:38] *** startupality has joined #angularjs
[12:43:42] <stephen> Otherwise use factories
[12:43:46] *** ximenean___ has quit IRC
[12:44:40] <Perl> http://u.rtag.me/p/txeYzY.png
[12:44:46] <stephen> Now, there's another option KettleCooked.
[12:44:48] <Perl> is the default page for yo angular supposed to look like this
[12:44:49] *** kp666 has quit IRC
[12:44:54] <KettleCooked> ok?
[12:45:06] *** ximenean___ has joined #angularjs
[12:45:18] <stephen> KettleCooked: Regarding "extending all the services to do that"
[12:45:34] <stephen> You generally wouldn't want to, incase you need other types of services.
[12:45:57] *** doginal has quit IRC
[12:46:10] <stephen> Well, I guess I already explained that
[12:46:14] *** woah has joined #angularjs
[12:46:29] *** ronskisika has quit IRC
[12:46:29] *** SargoDarya has quit IRC
[12:46:39] <KettleCooked> I'm trying to figure out how injecting another service into any service could solve the observer pattern boilerplate
[12:46:49] *** ximenean___ has quit IRC
[12:46:57] *** RangerRick has quit IRC
[12:47:11] <KettleCooked> every service still will need the functions to add functions to the array
[12:47:16] *** RangerRick has joined #angularjs
[12:47:16] <KettleCooked> (callbacks)
[12:47:25] *** ximenean___ has joined #angularjs
[12:47:36] <stephen> Create a service which holds onto the array, calls every method in the array, and has a method which can be called to initiate those calls
[12:47:47] *** Rejected has joined #angularjs
[12:48:17] <stephen> Inject that service into any Controller which needs to register, also inject it into any service which needs to notify
[12:48:22] *** fairuz has joined #angularjs
[12:48:37] *** lexek__ has joined #angularjs
[12:48:44] <stephen> Then every other service just has to call NotifyService.notify()
[12:49:05] <KettleCooked> aha, makes sense, thanks :)
[12:49:13] *** younqcass has quit IRC
[12:49:16] <stephen> The controllers will need one thing more
[12:49:32] *** anivemin has quit IRC
[12:49:49] <stephen> It'll need the name of the service which is notifying it incase it has multiple injected.
[12:50:24] *** ximenean___ has quit IRC
[12:50:45] *** whitebook has joined #angularjs
[12:50:45] <stephen> So make a way for the service to mark that sensibly with the notifyService, and in a way which the controller can use to determine which Serivce's object it needs to work with
[12:51:07] <stephen> Following a reasonable naming pattern when you inject services should be enough
[12:51:58] <stephen> But, do you understand what you are creating?
[12:52:06] <KettleCooked> a monster!
[12:52:12] <stephen> It's rewriting angular's $watch
[12:52:12] *** whiteboo_ has joined #angularjs
[12:52:35] <KettleCooked> yeah I know, so might as well use rootscope :D
[12:52:50] <stephen> I recommend you go and read the source for services, $watch, and provide
[12:52:55] <stephen> They are actually VERY short
[12:53:30] <stephen> What, if I can ask, is your reasoning that rootscope events are better?
[12:53:39] *** anivemin has joined #angularjs
[12:54:04] <KettleCooked> I mean in that case I'm ready to work starting now, instead of writing a custom notify service etc
[12:54:27] <KettleCooked> so not so much 'better' as 'good enough at the moment' I suppose
[12:54:42] <stephen> True. We started our project in much the same way
[12:55:04] *** whitebook has quit IRC
[12:55:19] <stephen> If you need it to be maintainable, the trick to keeping that system is to make a solid system for identifying which broadcasts are important to your controller.
[12:55:29] *** RossJH has quit IRC
[12:56:19] <stephen> You'll probably still end up making a small service which takes the event and breaks down the channel name, event name, object, and value simply as a utility class
[12:56:20] <KettleCooked> I feel that namespacing events can go a long way at least. broadcast('grid:slotSelected')
[12:56:33] <stephen> absolutely it can.
[12:56:44] *** foofoobar has joined #angularjs
[12:57:38] *** evilaliv3 has quit IRC
[12:57:44] *** foofoobar has quit IRC
[12:57:44] <KettleCooked> stephen: this is what I'm creating basically, but in html: http://www.fractalaudio.com/images/lightbox/axe-edit/axe-edit-1024.jpg
[12:57:57] <stephen> Is that available in https?
[12:58:03] *** evilaliv3 has joined #angularjs
[12:58:09] *** poacher2k has quit IRC
[12:58:12] <stephen> My connection is only showing https for some reason at the moment
[12:58:26] <KettleCooked> no sorry that server doesn't seem to use it
[12:58:32] *** VictorBjelkholm has joined #angularjs
[12:58:58] <KettleCooked> this one: https://i.ytimg.com/vi/HdeB3sqb0rk/maxresdefault.jpg
[12:59:05] *** cobakobodob has quit IRC
[13:00:13] *** ChadStrat has joined #angularjs
[13:00:34] *** cobakobodob has joined #angularjs
[13:00:38] *** herzi has joined #angularjs
[13:01:04] *** cobakobodob has joined #angularjs
[13:01:48] *** cobakobodob has quit IRC
[13:01:48] <stephen> Nice
[13:01:57] <stephen> Using the Web Audio API?
[13:02:04] *** cobakobodob has joined #angularjs
[13:02:25] *** alpha080 has joined #angularjs
[13:02:33] *** cobakobodob has joined #angularjs
[13:02:59] <stephen> KettleCooked: I completely understand where you are going here now.
[13:03:12] *** cakirke has joined #angularjs
[13:03:48] <KettleCooked> stephen, nah it's actually not going to use audio at all, but it's like a preset editor.
[13:03:54] *** denysonique has quit IRC
[13:03:56] <KettleCooked> I just thought of something.. that seems to work
[13:04:34] *** Schizo|Lunch has quit IRC
[13:04:39] <KettleCooked> stephen, In my Controller, I supply the GridService with my Controllers $scope. In the Service then, I just loop through the scopes and broadcast on the scopes ONLY.
[13:05:16] <stephen> Half-n-Half, yessir
[13:05:22] <stephen> Like we talked earlier.
[13:05:35] <KettleCooked> It feels good in that it seems to be working and I'm not polluting global scope. However, question is what happens when a controller is no longer relevant and later reinstantiated - will it break
[13:05:45] <KettleCooked> or rather, leave scope references in places where there shouldn't be
[13:05:54] <stephen> Two things:
[13:06:22] *** cobakobodob has quit IRC
[13:06:37] *** cobakobodob has joined #angularjs
[13:06:52] *** tangorri has quit IRC
[13:07:18] <stephen> Well, one really
[13:07:35] <stephen> $scope.$on('$destroy', function() { .... })
[13:07:53] <stephen> Make sure it deregisters itself inside that
[13:08:05] <KettleCooked> ah thanks I was just googling for that
[13:08:26] *** abc_ has joined #angularjs
[13:08:34] *** abc_ has left #angularjs
[13:08:38] *** Sebastien-L has quit IRC
[13:09:04] <stephen> Instead of passing around heavy function references between the two, it's probably better to have the service give the controller a unique key of some sort.
[13:09:57] <stephen> Then just have the controller send the id back to the service async so that it's destruction doesn't block the UI... (or maybe you want it to, try both)
[13:10:10] *** younqcass has joined #angularjs
[13:11:03] <stephen> KettleCooked: What you really want here is called a WeakMap.
[13:11:25] <stephen> WeakMaps won't prevent their underlying objects from being garbage collected.
[13:11:28] *** denysonique has joined #angularjs
[13:11:47] *** ceephax has joined #angularjs
[13:11:47] <stephen> In that case you wouldn't need to deregister them.
[13:12:05] *** sbellina has joined #angularjs
[13:12:08] *** saucey has quit IRC
[13:12:10] <KettleCooked> Yeah like addEventListern(useWeakReference = true) (if you've happened to have done any AS3 :)
[13:12:11] <stephen> But WeakMaps are fairly new and I don't know what your browser support scope looks like
[13:12:29] *** sl33k_ has quit IRC
[13:12:34] <KettleCooked> I'm thinking above IE8 at least
[13:12:35] <stephen> I wrote my share of ActionScript way back in the day
[13:13:20] *** y|haimo has joined #angularjs
[13:13:27] <y|haimo> hi
[13:13:37] *** qdk has quit IRC
[13:13:48] *** cobakobodob has quit IRC
[13:13:49] <stephen> KettleCooked: Yeah, no weakmaps then.
[13:13:56] <stephen> y|haimo: Howdy
[13:14:00] *** cannap has joined #angularjs
[13:14:11] *** cobakobodob has joined #angularjs
[13:14:22] <stephen> KettleCooked: Do you mind if I msg you right quick?
[13:14:30] <KettleCooked> no sure go ahead
[13:15:21] *** LakWork has quit IRC
[13:15:44] *** guilbep has joined #angularjs
[13:16:19] *** ChadStrat has quit IRC
[13:16:27] *** sbellina has quit IRC
[13:16:36] *** annlewis has joined #angularjs
[13:18:46] *** woah has quit IRC
[13:20:35] *** dejanr has joined #angularjs
[13:21:43] *** annlewis has quit IRC
[13:22:18] *** DarrenCraig has joined #angularjs
[13:22:22] *** fedenunez has joined #angularjs
[13:22:27] *** AciD`` has joined #angularjs
[13:23:02] *** h0ru5 has quit IRC
[13:23:06] *** DarrenCraig has quit IRC
[13:23:37] *** DarrenCraig has joined #angularjs
[13:25:00] *** asheshambasta has quit IRC
[13:25:37] *** tangorri has joined #angularjs
[13:25:40] *** dejanr has quit IRC
[13:25:53] *** PrinceAMD has joined #angularjs
[13:26:22] *** Cronoh has quit IRC
[13:26:45] *** boonkerz- has quit IRC
[13:28:05] *** boonkerz- has joined #angularjs
[13:28:30] *** chr1stopher has joined #angularjs
[13:28:51] *** DarrenCraig has quit IRC
[13:30:03] *** cobakobodob has quit IRC
[13:30:13] *** cavallari has joined #angularjs
[13:30:23] *** cobakobodob has joined #angularjs
[13:30:24] *** zwacky has joined #angularjs
[13:30:36] <crised> for a novice in css, building a simple app, would I use css, Sass, Stylus or Less?
[13:31:01] *** SchizoDuckie has joined #angularjs
[13:31:12] *** durnik has quit IRC
[13:31:21] <crised> my app will use bootstrap
[13:32:11] *** cobakobodob has quit IRC
[13:32:24] <Perl> use whatever you're comfortable with
[13:32:33] *** cobakobodob has joined #angularjs
[13:32:51] <Perl> you don't want to overcomplicate things if you're starting out
[13:33:00] <crised> Perl: what does it mean? just use css?
[13:33:10] <crised> vanilla css?
[13:33:25] *** [Non] has joined #angularjs
[13:33:28] <[Non]> hello people.
[13:33:29] <Perl> i'd say so, yeah
[13:33:31] <Perl> until you're comfortable
[13:33:33] <Perl> then try new things
[13:33:38] <crised> Perl: ok
[13:33:41] * SchizoDuckie searches for vanillacss.js
[13:33:56] <[Non]> i want to use jquery isLoggedIn function in angularjs, maincontroller
[13:33:59] <[Non]> can i do that?
[13:34:13] <SchizoDuckie> sure
[13:34:20] <Perl> ohey SchizoDuckie
[13:34:30] <SchizoDuckie> o/ Perl
[13:34:34] <[Non]> sure for me?
[13:34:34] *** vbabiy has joined #angularjs
[13:34:37] <crised> ngroute vs uiroute for a simple app?
[13:34:58] <SchizoDuckie> ngroute, built-in
[13:35:22] <crised> SchizoDuckie: thanks
[13:35:30] <Perl> wow
[13:35:50] <[Non]> so no one know that?
[13:35:52] <Perl> built in route looks pretty simple, looking at the angular generator's default page
[13:35:56] <bealtine> use ngroute for simple stuff and once you understand routing try ui-route
[13:36:08] *** test2_ has joined #angularjs
[13:36:16] <SchizoDuckie> once you have the need for something harder, try ui-route :)
[13:37:01] *** durnik has joined #angularjs
[13:37:48] *** Evanion has quit IRC
[13:37:57] <Perl> a question for anyone following atm, what's your favourite windows text editor to work with
[13:38:05] <Perl> i like brackets, but it's a lot slower than sublime
[13:38:10] <SchizoDuckie> sublimetext 3 <3
[13:38:46] <Perl> any packages you'd recomment for st3?
[13:38:51] <Perl> recommend*
[13:39:07] <SchizoDuckie> lemme see
[13:39:08] <y|haimo> sublime/webstorm
[13:39:09] <test2_> How can i let the angularjs submit do a "normal" form submit http://laravel.io/bin/0ePD4
[13:39:10] *** PeterMetz has joined #angularjs
[13:39:25] *** Solid1_afk is now known as Solid1
[13:39:50] <Perl> webstorm seems interesting
[13:39:53] *** martianboy has joined #angularjs
[13:40:03] *** Solid1 is now known as Solid1_afk
[13:40:07] <y|haimo> its great. heavier than sublime but cheaper
[13:40:16] <y|haimo> and gives you a lot of stuff out of the box
[13:40:18] <SchizoDuckie> @perl: jshint, fixmyjs, javascript beautify sublimelinter, sublimecodeintel, sidebarenhancements
[13:40:28] *** kile has joined #angularjs
[13:40:34] *** kile has left #angularjs
[13:40:39] <SchizoDuckie> webstorm is quite heavy. i use phpstorm at work
[13:40:48] <Perl> y|haimo: not cheaper, though
[13:40:59] <Perl> actually it is, but by very little
[13:41:03] <jacuqesdancona> I'm reading the result of a test I've made for a sollicitant, he set up 2 different run blocks for the same module in two different files
[13:41:03] <SchizoDuckie> but at home i stil default to sublime
[13:41:10] <Perl> sublime is €57, webstorm €47
[13:41:18] *** doginal has joined #angularjs
[13:41:22] <Perl> if i were to buy one, i'd rather buy sublime
[13:41:36] *** Milkweed has joined #angularjs
[13:41:41] <y|haimo> ~20%?
[13:41:42] <jacuqesdancona> ugh
[13:41:44] <Perl> oh apparently it's free for students
[13:41:51] <SchizoDuckie> i'm still just closing the nag window :P
[13:41:53] *** sandalon has joined #angularjs
[13:41:54] <SchizoDuckie> it's muscle memory already
[13:42:04] <Perl> i was, until i patched the nag window
[13:42:23] <Perl> but i plan on buying it once im convinced its the best option
[13:42:24] <Perl> :P
[13:42:26] <SchizoDuckie> :P :P
[13:43:06] <Perl> i really need to get an ISIC card
[13:43:32] <Perl> so many discounts and so much free stuff
[13:43:38] *** TheAceOfHearts has joined #angularjs
[13:43:39] <SchizoDuckie> i'm gonna buy st3 when my tax return comes in :P
[13:43:50] <[Non]> have anyone tried use jquery function in angularjs controller?
[13:43:52] *** SargoDarya has joined #angularjs
[13:44:02] *** Guest4716 has quit IRC
[13:44:04] *** swist has joined #angularjs
[13:44:39] <SchizoDuckie> should be no problem [Non] since they're all global
[13:45:26] *** RossJH has joined #angularjs
[13:45:35] *** inkswolf has joined #angularjs
[13:45:37] *** vbabiy has quit IRC
[13:45:50] *** whiteboo_ has quit IRC
[13:46:03] *** Ghostnon has joined #angularjs
[13:46:22] <Ghostnon> its giving me
[13:46:23] <Ghostnon> Error: getRequestCode is not defined
[13:46:29] *** doginal has quit IRC
[13:46:34] <Ghostnon> this error message
[13:46:46] *** vbabiy has joined #angularjs
[13:46:53] <Ghostnon> when im trying to use jquery function in controller
[13:47:10] <SchizoDuckie> you actually included jquery.js ?
[13:48:18] <SchizoDuckie> getrequestcode is a non standardmethod afaik
[13:48:21] <SchizoDuckie> where is it defined?
[13:48:37] *** swist has quit IRC
[13:48:45] <Ghostnon> yes of course
[13:48:48] *** teddyp1cker has quit IRC
[13:48:52] *** omsmith has quit IRC
[13:49:35] *** Evanion has joined #angularjs
[13:50:33] *** SargoDarya has quit IRC
[13:50:56] <Ghostnon> http://pastebin.com/Ji4T0Wyu
[13:52:05] *** test2_ has quit IRC
[13:52:20] *** Sebastien-L has joined #angularjs
[13:52:22] *** ries has quit IRC
[13:52:55] *** anivemin has quit IRC
[13:54:35] *** ghostsnone has joined #angularjs
[13:54:38] <ghostsnone> pffff
[13:54:48] *** Robin_ has joined #angularjs
[13:55:11] <ghostsnone> did anyone answer my questin?
[13:55:12] *** fernandojsg has joined #angularjs
[13:55:20] <SchizoDuckie> ghostsnone: i don't see getrequestcode being defined
[13:55:25] *** anan has joined #angularjs
[13:55:26] <fernandojsg> Hi everyone
[13:55:32] *** pilva1 has joined #angularjs
[13:55:39] <Robin_> Hi guys! I have a form and I need to add a new row after the last one has been filled in correctly. What's the best practice to do this? All form elements are wrapped in a <tr>
[13:55:42] *** evotuned has joined #angularjs
[13:55:54] *** jstroem has joined #angularjs
[13:56:04] *** pilva has quit IRC
[13:56:29] *** teddyp1cker has joined #angularjs
[13:56:43] <fernandojsg> I'm having problems while using ui-router. I've a top menu (bootstrap) with some general options, login/logout and to switch between the different routes. To change the routes I use just it url path, but if I want to perform a custom action like login or logout, which is the correct way to achive it? Another controller just for the header?
[13:56:43] *** kirfu1 has joined #angularjs
[13:56:45] <ghostsnone> okay its done now thank you
[13:57:14] <anan> I created project and creating the templates using angular js ,but not working
[13:57:44] *** besson3c has joined #angularjs
[13:57:51] <anan> in the main.html created the templates but not loading
[13:57:54] *** danecando has quit IRC
[13:58:33] *** freeman42 has joined #angularjs
[13:59:25] *** anivemin has joined #angularjs
[13:59:51] *** hswolff has quit IRC
[14:00:22] *** mmealling has quit IRC
[14:00:23] *** evotuned has quit IRC
[14:00:24] <Robin_> Hi guys! I have a form and I need to add a new row after the last one has been filled in correctly. What's the best practice to do this? All form elements are wrapped in a <tr>
[14:00:27] *** tarnus has joined #angularjs
[14:01:08] *** Liquori has joined #angularjs
[14:01:38] *** younqcass_ has joined #angularjs
[14:01:53] *** younqcass has quit IRC
[14:02:02] <Perl> y|haimo: SchizoDuckie: http://u.rtag.me/p/xKUm5o.png
[14:02:03] <stephen> Robin_: Let me get this straight
[14:02:03] <Perl> it begins
[14:02:05] *** younqcass_ is now known as younqcass
[14:02:18] *** besson3c has quit IRC
[14:02:24] <Perl> student version :^)
[14:02:27] <stephen> You want to create a new row after the current row validates?
[14:02:28] <SchizoDuckie> Perl nice :)
[14:02:36] *** hswolff has joined #angularjs
[14:02:39] <y|haimo> enjoy :)
[14:02:46] <Perl> got a classmate of mine to register for me
[14:02:52] <Perl> he doesn't know shit about code anyway
[14:03:03] <y|haimo> i like it that it has a builtin grunt/karma/angular integration
[14:03:08] <Perl> oh?
[14:03:23] *** BahamutWC has quit IRC
[14:03:25] *** cebor has quit IRC
[14:03:32] *** grumpyOldRussian has joined #angularjs
[14:03:53] *** BahamutWC has joined #angularjs
[14:04:07] *** NormySan has quit IRC
[14:04:28] <Robin_> Stephen, I have a table with TRs. Everytime I fill in the last TR in the field, I want to automatically have added a new TR with empty fields.
[14:05:08] *** mliq has quit IRC
[14:05:30] *** cebor has joined #angularjs
[14:05:38] *** Evanion has quit IRC
[14:05:51] *** ansu has quit IRC
[14:05:55] *** nypraise has joined #angularjs
[14:06:03] <SchizoDuckie> add another tr at the bottom with an ng-if on $form.valid?
[14:06:14] *** teddyp1cker has quit IRC
[14:06:30] *** TyrfingMjolnir has joined #angularjs
[14:06:34] *** anivemin has quit IRC
[14:07:31] *** cavallari has quit IRC
[14:07:44] <Robin_> Good point. do I make a function then and pass the $form.valid as a parameter?
[14:07:53] <Perl> .. http://u.rtag.me/p/ErDO06.png :|
[14:08:17] *** martianboy has quit IRC
[14:08:29] *** grumpyOldRussian has quit IRC
[14:08:32] <Perl> yes, they're in my PATH and yes, they work outside of WebStorm
[14:08:43] *** sl33k_ has joined #angularjs
[14:08:56] *** inkswolf has left #angularjs
[14:09:14] <swirlycheetah> long polling an api, where would you put the polling logic?
[14:09:19] <SchizoDuckie> Perl: check their docs. theyre quite good
[14:09:37] *** fernandojsg has quit IRC
[14:09:40] *** anivemin has joined #angularjs
[14:09:51] <SchizoDuckie> what do you mean by long polling?
[14:09:51] *** ansu has joined #angularjs
[14:09:51] *** sandalon has quit IRC
[14:09:55] <SchizoDuckie> a setinterval?
[14:10:15] <swirlycheetah> SchizoDuckie: basically yes
[14:10:41] *** startupality has quit IRC
[14:10:57] *** loverajoel has joined #angularjs
[14:11:00] <SchizoDuckie> swirlycheetah: i built it like this for communicating with utorrent via jsonp https://github.com/SchizoDuckie/DuckieTorrent/blob/master/js/duckietorrent.torrent.js#L347
[14:11:08] <SchizoDuckie> as simple as possible
[14:11:41] *** asheshambasta has joined #angularjs
[14:11:46] *** startupality has joined #angularjs
[14:11:57] *** inkswolf has joined #angularjs
[14:12:20] *** greves has joined #angularjs
[14:12:27] <jacuqesdancona> Are there any Dutch angular devs here? PM me because we're hiring. It's apparently very difficult in the Netherlands to find any decent devs.
[14:13:07] <SchizoDuckie> yes there are, an i’m not looking :P
[14:13:08] <Perl> jacuqesdancona: you da real mvp
[14:13:32] <swirlycheetah> thanks SchizoDuckie, will take a deeper dive but that looks nice
[14:14:05] <Perl> i'm from Estonia and my relative runs a web dev company and always complains that there's noone to hire
[14:14:07] <Robin_> SchizoDuckie: Good point. do I make a function then and pass the $form.valid as a parameter?
[14:14:18] <Perl> its weird cause we're considered an IT-Advanced country
[14:14:43] <SchizoDuckie> Perl: it’s the same around the world
[14:14:53] <stephen> Robin_: Yeah, whatever submit mechanism you are using needs to check $form.valid before calling the function to create the new row
[14:14:59] <SchizoDuckie> because all thegood guys are locked in and the recruiters are ruining the market
[14:15:08] *** danecando has joined #angularjs
[14:15:13] <Perl> i'd love to work doing this stuff once i get used to it
[14:15:13] <SchizoDuckie> at my previous job we pulled people from all over the world
[14:15:24] <Perl> i've only been doing native dev with .NET before
[14:15:27] <jacuqesdancona> meh, we've got 5 node backend devs, 2 frontend angular devs
[14:15:31] <Perl> so i'm not the best with web stuff, but i'm getting there
[14:15:32] <jacuqesdancona> work is piling up here
[14:15:37] *** hell_razer has joined #angularjs
[14:15:38] <stephen> Robin_: as for creating the new row, write a directive which represents the row, then have parent context house the new row create/ validation method
[14:15:39] <Perl> also C
[14:15:55] <greves> hey guys i am semi-new to the js single page web app development stuff, and browsing angular/ember/backbone/what have you... anyone give me some tips on why angular might be a good/bad choice?
[14:15:58] *** hell_razer has quit IRC
[14:16:09] <greves> nederlands kan ook :P
[14:16:19] <stephen> whenever that function is called and passed Robin_, append a new dom element with that directive
[14:16:37] <swirlycheetah> jacuqesdancona: if you want remote part time i'm available =)
[14:16:38] *** DarrenCraig has joined #angularjs
[14:16:39] *** annlewis has joined #angularjs
[14:17:36] <jacuqesdancona> nah, sorry swirlycheetah
[14:17:41] <Robin_> stephen: the table is built with tr ng-repeat and an array. So I would have to check on the pageload if the form is valid and then push to the array?
[14:18:12] *** boxmein has joined #angularjs
[14:18:13] <stephen> Robin_: pageload?
[14:18:20] <jacuqesdancona> greves: have a look at http://todomvc.com/
[14:18:20] *** whitebook has joined #angularjs
[14:18:23] <stephen> Robin_: is this a single page app?
[14:19:02] *** eburcat has quit IRC
[14:19:30] *** Ghostnon has quit IRC
[14:19:33] *** [Non] has quit IRC
[14:19:59] <Robin_> it's a single page app, and I mean when the page loads it should check if it has to add a new item to the array
[14:20:00] <stephen> Robin_: I think you have the general idea right. After each row is completed, the validation method runs, and, if passed, another function would push an object to your main array. Then the ng-repeat would make another row on it's own.
[14:20:28] *** mrwn has joined #angularjs
[14:20:37] *** sl33k_ has quit IRC
[14:20:40] *** nodedfree has quit IRC
[14:20:43] *** nypraise has quit IRC
[14:20:46] <greves> jacuqesdancona wowzers
[14:20:54] <greves> don't know how this didn't come up in googligns
[14:21:31] *** chr1stopher has left #angularjs
[14:21:44] *** Simone\ has quit IRC
[14:21:54] *** annlewis has quit IRC
[14:22:10] *** Simone\ has joined #angularjs
[14:22:28] <Robin_> Stephen how would you check after each row is completed?
[14:22:56] *** ntbisket has joined #angularjs
[14:23:07] <Perl> dart looks like javascript and java had sex and produced a faulty chromosomed offspring
[14:23:33] <SchizoDuckie> Perl: all ‘compile to js’ code looks like that
[14:23:47] <Perl> ive just been looking at examples on the page jacuqesdancona linked
[14:24:58] <SchizoDuckie> i see no links?
[14:25:11] <Perl> <jacuqesdancona> greves: have a look at http://todomvc.com/
[14:25:20] <SchizoDuckie> oh, that ;)
[14:25:42] <Perl> oh SchizoDuckie
[14:25:46] *** joroci has joined #angularjs
[14:25:52] <Perl> someone mentioned that CRUD in my directives is bad
[14:25:55] *** Oddman has joined #angularjs
[14:26:02] *** ejb has joined #angularjs
[14:26:06] <Perl> what do i do about a search bar that does api calls?
[14:26:09] <greves> haha yeah DART looks pretty nuts
[14:26:11] *** caitp has joined #angularjs
[14:26:13] *** Jagga has joined #angularjs
[14:26:28] <joroci> hey, how would you use ngmodeloptions debounce to search when the value is updated? $scope.$watch?
[14:26:32] <SchizoDuckie> make sure that your directives forward code like that to a service Perl
[14:26:38] *** saucey has joined #angularjs
[14:26:42] *** Jagga has quit IRC
[14:26:45] <SchizoDuckie> there’s no problem with a directive that does an api call, as long as it’s routed via a service
[14:26:47] <Perl> so i should make search a service?
[14:27:03] <SchizoDuckie> yep :)
[14:27:08] <Perl> nice, thanks
[14:27:31] <greves> wow docs for angular look amazing
[14:27:33] <joroci> please :)?
[14:27:42] <SchizoDuckie> the cool thing is then that you can change the implementation of the search, e.g. swap it out with a different engine, and then keep the directive working
[14:27:43] <greves> i was browsing through ember stuff the other day, doesn't even compare
[14:28:15] <Perl> i'm going to rebuild my db site from the ground up in a bit
[14:28:25] <Perl> going to use the built in route i think
[14:28:25] *** stylemistake is now known as sm|s2
[14:28:35] <Perl> don't need anything as advanced as uiroute i suppose
[14:29:04] <Perl> i want people to be able to share the links to items in the db and to searches
[14:29:06] *** nodedfree has joined #angularjs
[14:29:12] <Perl> so i want the search keywords and item ids to be reflected in the url
[14:29:12] <jacuqesdancona> joroci: yes or $formatters, $parsers?
[14:29:14] <Perl> can i do that?
[14:29:20] *** juampy has quit IRC
[14:29:31] <jacuqesdancona> it depends on what you actually want to do
[14:29:49] <SchizoDuckie> just build a url query string with a route?
[14:30:29] <Perl> oh is https://docs.angularjs.org/api/ngRoute/service/$routeParams what i'm looking for?
[14:31:01] <SchizoDuckie> yep :)
[14:31:16] *** anivemin has quit IRC
[14:31:28] <Perl> nice
[14:31:40] *** Lewix has joined #angularjs
[14:31:41] *** Lewix has joined #angularjs
[14:31:43] <Perl> remind me to order you pizza some day
[14:32:02] <stephen> Robin_: Read https://docs.angularjs.org/guide/forms
[14:32:37] <SchizoDuckie> haha just go to reddit.com/r/randomactsofpizza and buy one for somebody that actually needs one
[14:33:09] *** sl33k_ has joined #angularjs
[14:33:16] <SchizoDuckie> and tell them to enjoy it from me :)
[14:33:31] <Perl> perhaps i should :P
[14:33:43] *** pushpak has quit IRC
[14:34:49] *** qdk has joined #angularjs
[14:35:47] <SchizoDuckie> but thanks, i’m flattered :)
[14:36:12] *** anivemin has joined #angularjs
[14:36:14] *** DarrenCraig has quit IRC
[14:36:38] <Perl> everyone who takes their time to help newcomers needs to be rewarded
[14:37:35] *** ejb has quit IRC
[14:37:46] *** r1zz0m4t1c has joined #angularjs
[14:37:46] <SchizoDuckie> well i ain’t no guru. just started angular in february this year, but i have a good grasp
[14:39:18] *** hecspc has joined #angularjs
[14:39:44] *** Furi25 has joined #angularjs
[14:40:49] *** DarrenCraig has joined #angularjs
[14:41:04] *** anivemin has quit IRC
[14:41:32] *** kapil__ has quit IRC
[14:41:54] <SchizoDuckie> there, my weekend has started!
[14:41:59] <SchizoDuckie> no more work this year \o/
[14:42:10] *** doginal has joined #angularjs
[14:42:27] <caitp> but it's tuesday
[14:42:39] <SchizoDuckie> exactly!
[14:42:42] <SchizoDuckie> u jealous? :P
[14:42:51] <caitp> no, i'm on vacation in florida
[14:43:13] <SchizoDuckie> dammit :P now i’m jealous
[14:44:04] *** ChadStrat has joined #angularjs
[14:44:08] <caitp> 30C beats the 2C back home :>
[14:44:12] *** anivemin has joined #angularjs
[14:44:21] <SchizoDuckie> any time
[14:44:57] *** kirfu1 has quit IRC
[14:45:05] <y|haimo> hey, i was wondering if you could tell, from the injectee pov, who is the injector function?
[14:45:14] *** sl33k_ has quit IRC
[14:45:29] *** mrru has joined #angularjs
[14:45:30] <y|haimo> in particular, if it makes any difference, from a decorator pov
[14:45:44] *** alpha080 has quit IRC
[14:45:49] <SchizoDuckie> not without voodoo afaik. why do you have the need for that?
[14:46:08] <Perl> how lovely
[14:46:09] *** ntbisket has quit IRC
[14:46:13] <Perl> WebStorm sets up a project for me
[14:46:16] <Perl> then complains about everything
[14:46:16] <Perl> http://u.rtag.me/p/uQ7GkZ.png
[14:46:49] <SchizoDuckie> yeah there’s some problems with the command line environment it’s getting
[14:47:05] <Perl> that and the countless warnings in index
[14:47:06] <y|haimo> need it for a middleware im making
[14:47:07] *** leolrrj has quit IRC
[14:47:13] *** doginal has quit IRC
[14:47:20] <Perl> looks like sublime it is
[14:47:26] <Perl> gonna scroll back up and find the packages you suggested
[14:47:41] *** SargoDarya has joined #angularjs
[14:47:43] *** leolrrj has joined #angularjs
[14:47:54] *** nodedfree has quit IRC
[14:48:40] *** sbellina has joined #angularjs
[14:49:12] <y|haimo> could i bug you in your vacation caitp? :)
[14:49:51] *** omsmith has joined #angularjs
[14:49:56] <caitp> you can but i might not have an answer :>
[14:50:14] *** mmealling has joined #angularjs
[14:50:27] <y|haimo> is there a way from the injectee pov, to tell who is the injector function?
[14:50:46] *** inkswolf has left #angularjs
[14:50:52] <y|haimo> meaning, a way to have a factory, for example, to know which controller injected it
[14:50:57] *** DarrenCraig has quit IRC
[14:51:28] *** elrabin has joined #angularjs
[14:51:38] *** nodedfree has joined #angularjs
[14:51:59] *** ntbisket has joined #angularjs
[14:52:10] *** ximenean___ has joined #angularjs
[14:52:54] <SchizoDuckie> y|haimo: it does sound like that just needs a wrapper factory to automatcally use the correct dependency
[14:52:54] <caitp> y|haimo, no
[14:53:22] <y|haimo> damn, ok. thanks
[14:53:56] *** mchapman has joined #angularjs
[14:54:01] *** trendy0 has joined #angularjs
[14:54:21] *** ziyadb has joined #angularjs
[14:54:28] *** ziyadb has joined #angularjs
[14:54:29] *** ziyadb has joined #angularjs
[14:54:56] *** annlewis has joined #angularjs
[14:55:02] *** shau has quit IRC
[14:55:47] *** TheAceOfHearts has quit IRC
[14:55:57] *** nodedfree has quit IRC
[14:55:57] *** theotherguy has joined #angularjs
[14:56:32] <Perl> SchizoDuckie: what was that proxy thing for remote api calls tested locally
[14:56:38] *** freeAir has quit IRC
[14:57:25] *** andre_ has joined #angularjs
[14:57:39] *** travm has joined #angularjs
[14:57:55] *** laskoski has joined #angularjs
[14:57:56] *** travm is now known as travm-afk
[14:58:20] *** BillCriswell has joined #angularjs
[14:58:24] <SchizoDuckie> uh?
[14:58:39] *** DarrenCraig has joined #angularjs
[14:58:48] *** TheAceOfHearts has joined #angularjs
[14:58:56] *** travm-afk has quit IRC
[14:59:04] *** damian__ has quit IRC
[14:59:09] *** nodedfree has joined #angularjs
[15:00:00] *** travm has joined #angularjs
[15:00:52] *** ChadStrat has quit IRC
[15:01:22] *** elrabin has quit IRC
[15:01:55] *** elrabin has joined #angularjs
[15:02:09] *** Evanion has joined #angularjs
[15:03:08] *** robal has joined #angularjs
[15:03:19] *** whiteboo_ has joined #angularjs
[15:03:23] *** davi has quit IRC
[15:03:28] *** cleme1mp_ has joined #angularjs
[15:03:50] <SchizoDuckie> brb mirc update
[15:04:02] *** Skrypter has quit IRC
[15:04:31] <Perl> oh whoops it wasn't you that said it last night
[15:04:33] <Perl> <jaawerth> I particularly like that they have a proxy config file for the livereload server that lets you proxy certain requests to an outside API
[15:04:35] *** Skrypter has joined #angularjs
[15:04:35] *** juanpablo_ has joined #angularjs
[15:04:41] *** nerdfiles has quit IRC
[15:04:45] *** cleme1mp has quit IRC
[15:05:10] *** tSpartak has joined #angularjs
[15:06:30] *** elrabin has quit IRC
[15:06:41] *** whitebook has quit IRC
[15:07:04] *** elrabin has joined #angularjs
[15:07:10] *** JeffBuhrt has quit IRC
[15:07:28] *** SchizoDuckie has quit IRC
[15:08:07] *** SchizoDuckie has joined #angularjs
[15:08:44] *** knownasilya has joined #angularjs
[15:09:28] *** SargoDarya has quit IRC
[15:09:28] *** marko_ has joined #angularjs
[15:09:29] *** dejanr has joined #angularjs
[15:09:29] *** Skrypter has quit IRC
[15:10:40] *** ximenean___ has quit IRC
[15:10:50] *** ntbisket has quit IRC
[15:11:13] *** TheAceOfHearts has quit IRC
[15:11:13] *** FIFOd[a] has joined #angularjs
[15:11:31] *** elrabin has quit IRC
[15:12:04] *** elrabin has joined #angularjs
[15:12:17] *** cannap has quit IRC
[15:13:24] *** mandric has joined #angularjs
[15:14:13] *** dejanr has quit IRC
[15:15:10] *** ChadStrat has joined #angularjs
[15:15:49] *** mandric has quit IRC
[15:15:57] *** iLoop2 has joined #angularjs
[15:16:06] *** andre_ has left #angularjs
[15:17:11] *** roronoa_joenoez has quit IRC
[15:17:57] <joroci> hey, how would you use ngmodeloptions debounce to search when the value is updated? $scope.$watch?
[15:18:17] *** jaredwilli has joined #angularjs
[15:18:31] *** clemux has quit IRC
[15:18:34] *** marko_ is now known as cannap
[15:18:46] *** durnik has quit IRC
[15:18:56] *** jr3 has joined #angularjs
[15:19:17] *** durnik has joined #angularjs
[15:19:17] *** ximenean___ has joined #angularjs
[15:20:05] *** greengriminal has quit IRC
[15:20:35] *** annlewis has quit IRC
[15:21:01] <SchizoDuckie> joroci: i have something like this: <input ng-model="search.query" ng-model-options="{debounce: 500}" placeholder="{{'HOMESERIES/addshow-type-series-name/placeholder'|translate}}" ng-change="findSeries()" focus-watch="'searchingForSerie'" class="form-control" >
[15:21:32] *** JeffBuhrt has joined #angularjs
[15:23:01] *** arzul has joined #angularjs
[15:23:26] *** beppe85 has joined #angularjs
[15:24:16] <crised> "socket.io": "^1.0.6",
[15:24:26] <crised> What does ^ in package.json means?
[15:24:57] <joroci> so the ng-change will fire when debounce
[15:25:10] *** boxmein has quit IRC
[15:25:37] *** boxmein has joined #angularjs
[15:25:47] <caitp> crised, it means it will use the newest version within the same major version
[15:26:06] *** muffy has joined #angularjs
[15:26:11] <caitp> so basically it will install 1.<newest minor release>.<newest patch release>
[15:26:30] *** muffy is now known as Guest42682
[15:26:31] <crised> caitp: mmm ok, thanks
[15:26:50] <crised> caitp: I'm still curious to find out which version of socket.io does yeoman angular-fullstack generator uses
[15:26:52] <SchizoDuckie> crised: lock down your version to a specific number.
[15:26:55] <Guest42682> hi
[15:27:07] <crised> of socket.io of course
[15:27:09] *** bitri_ has joined #angularjs
[15:27:18] <SchizoDuckie> bbl shower
[15:27:20] *** vonnegut has quit IRC
[15:27:26] *** Sawbones has joined #angularjs
[15:27:48] <robal> hi everyone. I'm new to angular and need some advice. I'm trying to use the results of a service query in my controller, but that information is not available at that point.. a part of the scope needs to be loaded with a promise.
[15:27:50] <Guest42682> I have a question how can I create single page app using angular js? please help
[15:28:02] *** arete74 has left #angularjs
[15:29:11] <SchizoDuckie> robal: you can just call your promise returning function from the controller
[15:29:30] <dmamills> Guest42682: I'd recomment finding and reading tutorial
[15:29:36] <crised> Which version of socket.io does this use ? https://github.com/btford/angular-socket-io/tree/v0.6.1
[15:29:46] <SchizoDuckie> so $scope.fetchData = function() { return myService.doSomethingThatTakesAWhile().then(function(result) { return result.thedataiwant }))
[15:30:02] *** mitc0185 has joined #angularjs
[15:30:05] <Perl> Guest42682: that's a very vague question
[15:30:29] <robal> SchizoDuckie: but that promise call needs to know what recource it's loading, and that information is stored in another json file which is not loaded right away
[15:30:41] *** stephen has quit IRC
[15:31:19] *** ChadStrat has quit IRC
[15:32:03] <robal> SchizoDuckie: maybe I need to load the json file again within the promise? and then iterate over it. I guess I don't really need the service anymore then..
[15:32:11] *** iamaregee2 has quit IRC
[15:32:21] *** dejanr has joined #angularjs
[15:32:50] <robal> SchizoDuckie: I'll play around a bit, I think I might have an idea :)
[15:33:00] <robal> thanks :)
[15:34:08] *** Diego_ has joined #angularjs
[15:34:22] *** annlewis has joined #angularjs
[15:34:28] <Diego_> hi everyone !
[15:34:57] <Diego_> I'm new to angular and was wondering wether I could use it with codeigniter without making CI an API
[15:35:06] <Diego_> is it possible ? thx
[15:35:29] *** dsdeiz has quit IRC
[15:35:38] *** TheAceOfHearts has joined #angularjs
[15:36:01] *** DarrenCraig has quit IRC
[15:36:54] <Guest42682> I have static html website, I want to browse through pages without reloading entire page (only content bit), it means header shouldn't be refresh which contain menubar. anyone can help in achieving this functionality??
[15:37:02] *** mercwithamouth has joined #angularjs
[15:37:17] <Perl> routeProvider?
[15:37:17] *** dejanr has quit IRC
[15:37:38] *** Hootch has quit IRC
[15:37:42] <beppe85> Guest42682: that's ubiquitous in angularjs
[15:37:59] <Diego_> maybe if you use the menu and the content in different views
[15:38:08] <Diego_> ngRoute also
[15:38:24] *** Diego_ has quit IRC
[15:38:39] *** trendy0 has quit IRC
[15:38:54] *** sm|s2 has quit IRC
[15:39:02] *** mitc0185 has quit IRC
[15:39:10] *** aminRX has joined #angularjs
[15:39:12] <Guest42682> thank you guys, do you have any link or reference example?
[15:39:42] *** uris77 has quit IRC
[15:40:26] <beppe85> Diego_: i think you need to make it an API if you want SPA
[15:40:34] *** Snugug has joined #angularjs
[15:41:09] *** vonnegut has joined #angularjs
[15:41:31] *** doginal has joined #angularjs
[15:41:35] <beppe85> Diego_: if you deliver a full html the browser would bootstrap angular everytime
[15:41:50] <Perl> Guest42682: https://docs.angularjs.org/api/ngRoute/service/$route#example
[15:41:58] *** whiteboo_ has quit IRC
[15:42:26] <beppe85> Diego_: so I don't find this approach an favorable use case for for angular
[15:42:38] *** eburcat has joined #angularjs
[15:43:09] *** uris77 has joined #angularjs
[15:43:21] <Guest42682> Perl: Thanks!
[15:43:22] *** herzi has quit IRC
[15:43:41] *** besson3c has joined #angularjs
[15:43:46] <beppe85> Guest42682: instead of ngRoute (angular official router) I prefer ui.router http://angular-ui.github.io/ui-router/site/#/api/ui.router
[15:44:11] *** freeAir has joined #angularjs
[15:44:30] *** evotuned has joined #angularjs
[15:44:37] <beppe85> Guest42682: because it is based around states instead of uri's
[15:44:43] <Guest42682> Beppe85: whats the difference in both
[15:44:47] *** aditya_vy has quit IRC
[15:45:02] *** ntbisket has joined #angularjs
[15:45:17] *** breakingthings has joined #angularjs
[15:45:21] <beppe85> Guest42682: uri's vs states
[15:45:30] *** travm is now known as travm-afk
[15:45:53] <robal> is it possible to iterate over a list in the scope and perform a method call on each item?
[15:46:30] *** travm-afk has quit IRC
[15:46:48] *** doginal has quit IRC
[15:46:54] *** ntbisket has quit IRC
[15:47:36] *** tkdaj has left #angularjs
[15:47:56] *** dcherman has joined #angularjs
[15:48:31] <SchizoDuckie> robal: a promise can call a promise :) that's the beautiy of it :)
[15:48:35] *** KettleCooked has quit IRC
[15:48:59] *** evotuned has quit IRC
[15:49:00] *** freeAir has quit IRC
[15:49:37] *** beppe85 has quit IRC
[15:50:02] <SchizoDuckie> for my websql wrapper i have a whole dynamic chain of promises when the page loads -> open database, check if it needs to create tables (with some queries), after they finish, allow the original call to pass through -> execute another query -> parse the results, then call the original .then() that initiated it all
[15:50:33] <robal> SchizoDuckie: awesome, thnx. that will solve my problem :) I'm off to find an example :D
[15:51:19] *** juampy has joined #angularjs
[15:52:25] <SchizoDuckie> robal: here's a promise chain in full effect https://github.com/SchizoDuckie/DuckieTV/blob/angular/js/services/FavoritesService.js#L172
[15:52:26] *** grumpyOldRussian has joined #angularjs
[15:52:39] *** bmac has joined #angularjs
[15:53:04] <SchizoDuckie> note that return (promise) pattern? that's what you want
[15:53:17] *** mercwithamouth has quit IRC
[15:53:32] <GreenJello> you don't need to nest promises like that SchizoDuckie
[15:53:33] *** cakirke has quit IRC
[15:53:48] <SchizoDuckie> GreenJello: in this case i do
[15:53:55] <SchizoDuckie> there's database queries in each step
[15:53:59] <SchizoDuckie> and i need insertId's
[15:54:23] *** cleme1mp_ has quit IRC
[15:54:33] *** mercwithamouth has joined #angularjs
[15:54:58] <SchizoDuckie> but i could be completely missing something? enlihten me :)
[15:55:04] <SchizoDuckie> enlighten
[15:55:54] *** sgen has quit IRC
[15:56:15] *** Guest42682 has quit IRC
[15:56:50] *** ChadStrat has joined #angularjs
[15:56:56] *** grumpyOldRussian has quit IRC
[15:57:02] *** FunnyLookinHat has joined #angularjs
[15:57:05] *** nickgs has joined #angularjs
[15:57:25] *** Fishy__ has joined #angularjs
[15:57:40] *** jumpstracks has joined #angularjs
[15:58:09] <robal> allright, so I can return an array, and call a then on that array. this stuff is a bit minboggling to me still. I am going to play around with it, see if I can make it work :D thanks for your help! (and nice app btw! :) )
[15:58:19] *** rtpg_ has quit IRC
[15:58:26] <SchizoDuckie> robal : no, you return a promise from your factory
[15:58:38] *** encryptd_fractl has joined #angularjs
[15:58:50] <SchizoDuckie> and in the .then() for the promise, you can either put another promise, or a function that returns a value for the result of the promise
[15:58:52] *** rtpg has joined #angularjs
[15:59:08] <TheAceOfHearts> Foxandxss: you there?
[15:59:08] <robal> SchizoDuckie: ah right, yeah, I clearly need some practice :)
[15:59:28] <SchizoDuckie> it'll come to you :) think of a promise like a bank checque
[15:59:37] *** dcherman has quit IRC
[15:59:38] <robal> SchizoDuckie: that second return, will it return a result for the first promise?
[15:59:50] *** KushS has quit IRC
[16:00:27] *** pzuraq has quit IRC
[16:00:31] <SchizoDuckie> correct :)
[16:00:53] <GreenJello> SchizoDuckie, https://bpaste.net/show/d0842aaeeac9
[16:00:53] <robal> great, that was unclear to me before, thanks :)
[16:01:29] *** torartc has joined #angularjs
[16:01:57] <SchizoDuckie> ah, very nice GreenJello!
[16:02:02] <SchizoDuckie> ofcourse
[16:02:40] *** Aswebb_ has joined #angularjs
[16:02:59] <SchizoDuckie> see, i ain't no guru yet either :D
[16:03:38] *** ries has joined #angularjs
[16:03:43] *** rtpg has quit IRC
[16:03:46] *** greves has quit IRC
[16:04:00] <Perl> that looks nice and clean
[16:04:07] *** rho has joined #angularjs
[16:04:10] *** ctanga has joined #angularjs
[16:04:19] <FIFOd[a]> Is there any reason to wrap angular.module("", []).controller(); statements in IIFE? I've started to see this code elsewhere but I don't think it provides any value. Am I correct?
[16:04:28] *** rho has quit IRC
[16:04:29] *** rho has joined #angularjs
[16:04:43] <FIFOd[a]> (especially if code is minified into a single file and does this automatically?)
[16:04:52] *** Skrypter has joined #angularjs
[16:05:34] <GreenJello> FIFOd[a], it's sometimes done if you're using AMD
[16:05:42] *** eburcat has quit IRC
[16:05:46] *** jumpstracks has quit IRC
[16:05:47] *** eburcat_ has joined #angularjs
[16:05:49] *** cleme1mp has joined #angularjs
[16:05:51] <GreenJello> otherwise, not really, just don't define variables outside of any functions
[16:06:13] *** SargoDarya has joined #angularjs
[16:06:14] <FIFOd[a]> GreenJello: okay, that's what I thought, not really using AMD
[16:06:32] *** mary5030 has joined #angularjs
[16:06:46] *** nickgs has quit IRC
[16:07:10] *** teddyp1cker has joined #angularjs
[16:07:57] *** sl33k_ has joined #angularjs
[16:08:38] *** dc_ has joined #angularjs
[16:10:02] *** elrabin_ has joined #angularjs
[16:10:46] *** travm has joined #angularjs
[16:11:03] *** zeezey has quit IRC
[16:11:27] *** lawd has joined #angularjs
[16:11:36] <lawd> hi anyone have experience with ui-grid
[16:11:45] <TheAceOfHearts> I started using it yesterday
[16:11:47] *** pspfolio has joined #angularjs
[16:11:49] <TheAceOfHearts> *sips coffee*
[16:11:51] <TheAceOfHearts> so yes
[16:11:59] <lawd> do you know if it's possible to change the table header colors
[16:12:05] *** teddyp1cker has quit IRC
[16:12:10] <TheAceOfHearts> I think it is
[16:12:37] <lawd> o reallyhow?
[16:12:58] <lawd> i can't find anything online
[16:12:58] <TheAceOfHearts> http://ui-grid.info/docs/#/tutorial/115_headerCellClass ?
[16:13:05] <TheAceOfHearts> did you look at the tutorial..?
[16:13:13] <lawd> nah
[16:13:15] <lawd> not the text
[16:13:19] <lawd> i mean the cell background
[16:13:22] *** serengeor has quit IRC
[16:13:40] *** elrabin has quit IRC
[16:14:00] <TheAceOfHearts> I think it's possible to edit the template for the header
[16:14:03] <TheAceOfHearts> so you could set it there I guess
[16:14:12] *** leolrrj has quit IRC
[16:14:14] *** asheshambasta1 has joined #angularjs
[16:14:33] *** Skrypter has quit IRC
[16:14:35] <TheAceOfHearts> but like
[16:14:43] <TheAceOfHearts> do you wanna edit it programmatically or just change the style for all of em?
[16:14:52] *** asheshambasta has quit IRC
[16:15:08] *** zumba_addict has joined #angularjs
[16:15:12] <TheAceOfHearts> http://ui-grid.info/docs/#/tutorial/114_row_header they have this, so you can set the template
[16:15:16] *** pHcF has joined #angularjs
[16:16:05] *** dc_ has quit IRC
[16:17:37] *** y|haimo has quit IRC
[16:17:45] *** hahaha has joined #angularjs
[16:18:13] <hahaha> somethings wrong wih the javascripts project?
[16:18:45] <TheAceOfHearts> yeah, it's made with JS, it's been wrong since the start~
[16:19:06] <swirlycheetah> aw snap
[16:19:15] <TheAceOfHearts> haha, jk, I like JS
[16:19:17] <hahaha> i never see any changes of the demo code
[16:20:07] *** cboden has joined #angularjs
[16:20:17] *** ejb has joined #angularjs
[16:20:38] <hahaha> im talking about the page in angularjs.org btw
[16:22:11] *** elrabin has joined #angularjs
[16:23:03] <zumba_addict> hi folks, I'm using netcat to send HEAD command to get the header response. I see content-length which is what I'm looking for. However, using $http.head pointing to the same file, I don't see content-length in the response. What am I missing?
[16:24:10] <kba> zumba_addict: are you sure the content-length is being sent?
[16:24:13] <hahaha> have u ever tried googling the answer?
[16:24:19] <zumba_addict> yes
[16:24:46] *** dc_ has joined #angularjs
[16:24:49] *** mrwn has quit IRC
[16:25:06] <SchizoDuckie> wooohoo! \o/ it's a chrome bug
[16:25:07] *** jumpstracks has joined #angularjs
[16:25:15] <zumba_addict> http://pastebin.com/vi6aE6Pq
[16:25:17] *** boonkerz- has quit IRC
[16:25:19] *** elrabin_ has quit IRC
[16:25:20] <SchizoDuckie> https://code.google.com/p/chromium/issues/detail?id=445352
[16:25:37] <cboden> After my app has been running for a day each digest loop takes about 40 seconds to complete. My page is otherwise responsive to user interaction. I have less than 100 watches all together and profiling shows that the longest CPU cycle is only taking 2 seconds. Any ideas on what I should do next?
[16:26:15] *** Snugug has quit IRC
[16:26:23] *** SargoDarya has quit IRC
[16:26:36] <SchizoDuckie> cboden: setTimeout(window.location.reload, 60*60*4*1000) ?
[16:26:43] *** boonkerz- has joined #angularjs
[16:26:52] <zumba_addict> and Chrome dev tools kba, http://i.imgur.com/riMITzv.png
[16:27:07] *** boonkerz- has quit IRC
[16:27:17] <SchizoDuckie> but usually that tells you that there's some memory leak somewhere
[16:27:26] *** jaredwilli has quit IRC
[16:27:28] <SchizoDuckie> you can use chrome's profiler to see what's happening with memory allocations and such
[16:27:36] <kba> zumba_addict: I don't see a content-length there
[16:27:39] <lawd> sorry TheAceOfHearts was afk. i'll look into that
[16:27:44] <kba> or is that what you wanted to show me?
[16:27:48] <zumba_addict> exactly, that's what I'm saying
[16:27:50] <hahaha> hey guys. the javascript projects in the angularjs.org is not working.. any ideas why?
[16:27:57] <kba> how did you confirm it actually sends the content-length?
[16:28:00] <zumba_addict> i'm getting it when I use netcat from command line
[16:28:03] <cboden> SchizoDuckie: Thanks, I’ll take a look at memory profiler. (not reload() though =P)
[16:28:03] <kba> I see
[16:28:04] *** loverajoel has quit IRC
[16:28:08] <zumba_addict> did you see my pastebin link above?
[16:28:11] <zumba_addict> http://pastebin.com/vi6aE6Pq
[16:28:26] *** boonkerz- has joined #angularjs
[16:28:40] <kba> right
[16:28:51] *** mitc0185 has joined #angularjs
[16:29:34] *** speaking1ode has joined #angularjs
[16:29:49] *** Snugug has joined #angularjs
[16:30:00] *** cantyjeffrey has joined #angularjs
[16:30:09] <hahaha> the demo code is misleading in javascript projects code. people might think what is 'window.projectsArray'?
[16:30:13] <kba> and it's the exact same request you perform, zumba_addict?
[16:30:22] <zumba_addict> yes
[16:30:41] <kba> the literal Content-Length doesn't show up anywhere in the angularjs source code, so I find it odd if it's filtered out
[16:30:42] <zumba_addict> it's both shown in the pastebin and chrome dev tools :)
[16:30:54] <hahaha> angularjs.org is cheating with their demo code hahaha
[16:31:14] *** jaredwilli has joined #angularjs
[16:31:22] <zumba_addict> no, you won't find it in source code because it's a response
[16:31:26] *** speaking1ode is now known as speakingcode-wor
[16:31:33] <zumba_addict> so I'm wondering if it's the server that's preventing it
[16:31:39] <zumba_addict> it's weird because it's the same machine
[16:31:41] *** sdweb has joined #angularjs
[16:31:57] *** dc_ has quit IRC
[16:31:57] <kba> I meant if AJS deliberately filtered it out
[16:32:01] *** Lewix has quit IRC
[16:32:19] *** sdweb has quit IRC
[16:32:22] <kba> I remember experiencing or reading about something similar a while back, just trying to figure out what it was
[16:32:26] <TheAceOfHearts> zumba_addict: try doing the request with just XMLHttpRequest :P
[16:32:33] <TheAceOfHearts> and see if it's part of the request object
[16:32:35] <zumba_addict> :D
[16:32:41] <zumba_addict> will do
[16:32:50] <TheAceOfHearts> but it shouldn't be filtered out
[16:32:57] <zumba_addict> yup
[16:33:00] *** Inoperable has joined #angularjs
[16:33:40] *** Snugug has quit IRC
[16:34:08] <hahaha> anyone here the maintainer of the ajs site?
[16:34:09] <kba> This might be a stupid guess, but when you did it in the command line, "HTTP/1.0" was appended and I'm not sure if that's the same case for the dev tool screenshot
[16:34:19] <kba> maybe it's using a weaker standard
[16:34:31] <kba> or server assumes it's making a HTTP/1.1 request which doesn't send that back or something
[16:34:54] *** jhooks has joined #angularjs
[16:36:09] <kba> http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
[16:36:11] <kba> 1.Any response message which "MUST NOT" include a message-body (such as the 1xx, 204, and 304 responses and any response to a HEAD request) is always terminated by the first empty line after the header fields, regardless of the entity-header fields present in the message.
[16:36:12] <zumba_addict> ok
[16:36:19] <kba> There it is.
[16:36:31] <kba> You're getting a 200 back on command line
[16:36:36] <kba> but a 304 in the screenshot
[16:36:42] <zumba_addict> awesome
[16:36:57] <zumba_addict> so now, how do we tell $http.head to use http 1.0?
[16:37:10] <kba> I don't think it's because of HTTP/1.0 after all
[16:37:19] *** GeertJohan has quit IRC
[16:37:22] <kba> I think it's because you're getting a 304 back, not a 200
[16:37:33] <zumba_addict> I tried HTTP/1.1 in command line, it still returned Content-Length
[16:37:39] <kba> so if it's the same request, I assume your app has some state that you don't preserve when making the request from the command line
[16:37:51] <zumba_addict> k
[16:37:57] *** sl33k_ has quit IRC
[16:38:00] <kba> do you have a session/cookie?
[16:38:07] <zumba_addict> yes
[16:38:16] *** hahaha has quit IRC
[16:38:19] *** travm has quit IRC
[16:38:29] <kba> that is causing your app to send back a 304 instead of a 200
[16:38:32] <kba> so it's a bug in your app
[16:38:34] *** s00pcan__ has quit IRC
[16:38:38] <zumba_addict> oh
[16:38:45] <quantax> youre prob losing session
[16:38:49] *** nickgs has joined #angularjs
[16:38:55] *** Lewix has joined #angularjs
[16:39:24] <kba> yes, when performing the nc request, he gets a 200 back. But when he's "logged in" or whatever and performs the same request, the app does something weird and sends back a 304
[16:39:30] *** mercwithamouth has quit IRC
[16:39:41] <lawd> anyone have experience with smart table
[16:40:01] <zumba_addict> you are right kba, i see 304 on my head request
[16:40:05] <zumba_addict> that is weird
[16:40:15] <zumba_addict> i mean response
[16:40:22] <kba> yes, it says so in the screenshot, just didn't notice before
[16:40:36] <zumba_addict> so what could I be doing wrong again?
[16:40:51] *** Snugug has joined #angularjs
[16:40:53] <kba> you're sending back a 304 is what you're doing wrong ;)
[16:41:02] <kba> hard to say more, I don't know anythin about your backend
[16:41:06] <kba> what language? framework?
[16:41:11] <SchizoDuckie> zumba_addict: do you have a cache:false in your request?
[16:41:25] *** s00pcan_ has joined #angularjs
[16:41:33] <zumba_addict> I got it working
[16:41:39] <zumba_addict> i added ?298573289532
[16:41:45] <zumba_addict> it now got 200 :D
[16:41:45] <SchizoDuckie> so it's cache
[16:41:46] *** doginal has joined #angularjs
[16:41:48] <zumba_addict> yeah
[16:41:50] <zumba_addict> awesome kba
[16:41:55] <SchizoDuckie> add cache:false
[16:42:03] <zumba_addict> and yes, I think I'm caching it
[16:42:04] *** woah has joined #angularjs
[16:42:05] <zumba_addict> I remember now
[16:42:14] <zumba_addict> you rock guys! :D
[16:42:14] <kba> ah, of course
[16:42:23] <SchizoDuckie> 304 means there's cache *somewhere*
[16:42:27] <zumba_addict> got it
[16:42:29] <SchizoDuckie> and it must be initiated by the client
[16:42:33] <zumba_addict> i won't forget that from now on
[16:42:33] <lawd> yo anyone ever use smart table before
[16:42:48] <zumba_addict> thank you so much much much!!!! :D
[16:42:55] <kba> you're welcome! :)
[16:43:17] <SchizoDuckie> :)
[16:43:53] <zumba_addict> glad we figure it out before reaching my train station
[16:43:57] <zumba_addict> figured
[16:44:07] *** nickgs has quit IRC
[16:44:36] *** travm has joined #angularjs
[16:45:16] *** evotuned has joined #angularjs
[16:45:17] *** zumba_addict has quit IRC
[16:45:27] *** samuelt_ has joined #angularjs
[16:45:47] *** zumba_addict has joined #angularjs
[16:45:52] <zumba_addict> got disconnected
[16:45:53] *** bayousoft has joined #angularjs
[16:45:54] <zumba_addict> I noticed though the number on the etag on the response header is the same value as the content-length. Is that reliable?
[16:46:11] <SchizoDuckie> welp, nope lol
[16:46:12] <zumba_addict> the etag showed up when using cache
[16:46:14] *** Majick_ has joined #angularjs
[16:46:16] <zumba_addict> got it
[16:46:41] <zumba_addict> anything cached should not be relied upon
[16:46:52] <SchizoDuckie> for an etag you usually just md5 or sha1 your repsponse, or the last time that request was cached on disk or so
[16:46:55] *** doginal has quit IRC
[16:47:01] <zumba_addict> cool
[16:47:13] *** juampy is now known as juampy_brb
[16:47:24] *** scottsword has joined #angularjs
[16:47:29] <SchizoDuckie> ofcourse you want something that can save you the database query on the server
[16:47:29] *** scottsword has quit IRC
[16:47:47] *** ximenean___ has quit IRC
[16:48:22] *** instantaphex has joined #angularjs
[16:48:40] *** Majick has quit IRC
[16:48:48] <zumba_addict> k
[16:48:55] *** Majick_ is now known as Majick
[16:49:00] <instantaphex> can you mix ng-controller in templates with ui router controller: 'controller' ?
[16:49:23] *** shackleford has joined #angularjs
[16:49:40] <instantaphex> I have a <body ng-controller='RootController'> in the html and also on my routes I have included a controller in the state object
[16:49:53] *** evotuned has quit IRC
[16:49:55] <instantaphex> but the body tag's ng-controller seems to be overriding
[16:49:57] <Guest33> hey guys, quick question - in template1.html, i want to click on a div and display template1.html with an animation that slides up, what is the best way to do this with angular?
[16:50:04] <Guest33> oops d
[16:50:11] <Guest33> display templat2.html ""
[16:50:32] <instantaphex> Guest33: check out ng-animate
[16:50:50] *** trustyha_ has joined #angularjs
[16:50:54] <Guest33> Do I use it with a $stateProvider or with a urlRouterProvider?
[16:51:00] <Guest33> little confused about them
[16:51:07] *** shackleford has quit IRC
[16:51:17] <robal> SchizoDuckie: I did it! it all loads through a chained promise now, thanks a lot!!!! :D
[16:51:39] <zumba_addict> alrighty folks, I'll be back in 20 mins, leaving train now
[16:51:42] *** shackleford has joined #angularjs
[16:52:01] <SchizoDuckie> schwing, very nice robal :) feels good huh?
[16:52:19] *** plekplek has quit IRC
[16:52:31] *** cojack has quit IRC
[16:52:32] <robal> yeah great :) and the page itself loads instantly, very nice to see :)
[16:52:48] *** woah has quit IRC
[16:52:56] <TheAceOfHearts> http://i.imgur.com/8zT0Pem.png lol
[16:53:06] <SchizoDuckie> LOL
[16:53:09] *** k-dawg has quit IRC
[16:54:03] *** codeman has joined #angularjs
[16:54:15] *** IvailoStoianov has quit IRC
[16:54:35] *** macabre has joined #angularjs
[16:54:38] *** zumba_addict has quit IRC
[16:54:39] *** CitizenKane has joined #angularjs
[16:54:47] *** eburcat_ has quit IRC
[16:55:12] *** icfantv has joined #angularjs
[16:58:16] *** nickgs has joined #angularjs
[16:59:18] *** rtpg has joined #angularjs
[16:59:33] *** swirlycheetah has quit IRC
[16:59:59] *** bitri_ has quit IRC
[17:00:18] *** biba8163 has joined #angularjs
[17:00:31] *** eburcat has joined #angularjs
[17:00:45] *** fedenunez has quit IRC
[17:00:53] *** mven has joined #angularjs
[17:00:56] *** darryl has quit IRC
[17:01:08] *** mven has quit IRC
[17:02:16] *** Banning has joined #angularjs
[17:02:57] <Banning> I just got done watching this video that is over a year old and they talk about integration with requirejs but give no details as to the name of the project to follow progress does anyone know if any progress has been made? here is the video https://www.youtube.com/watch?v=W13qDdJDHp8
[17:03:18] *** trendy0 has joined #angularjs
[17:04:07] *** IvailoStoianov has joined #angularjs
[17:04:09] *** Slowintrepid has joined #angularjs
[17:04:17] *** zarglex has quit IRC
[17:04:40] *** rtpg has quit IRC
[17:05:05] *** tristanp has joined #angularjs
[17:05:20] *** jonathanpglick has joined #angularjs
[17:05:58] *** CitizenKane has quit IRC
[17:06:34] <Banning> I just got done watching this video that is over a year old and they talk about integration with requirejs but give no details as to the name of the project to follow progress does anyone know if any progress has been made? here is the video https://www.youtube.com/watch?v=W13qDdJDHp8
[17:06:41] *** rho has quit IRC
[17:07:52] <BobbieBarker_> did you try google before you tried spamming in here?
[17:08:31] <BobbieBarker_> http://lmgtfy.com/
[17:08:37] <BobbieBarker_> ^^ i think you're looking for that
[17:08:40] *** AndChat|6036 has joined #angularjs
[17:08:51] <Banning> yup beeing going all over trying to find something thanks for the link i'll check it out
[17:09:02] <BobbieBarker_> http://lmgtfy.com/?q=requirejs
[17:09:07] <BobbieBarker_> try that one sorry
[17:09:16] <Banning> doh didnt read the link before clicking of course i've tried that you nut
[17:09:18] <lawd> hey is there a way to ng-show a bootstrap glyphicon on click
[17:09:22] *** biba8163 has quit IRC
[17:09:38] <SchizoDuckie> they are preparing for a little celebrayory fire in my hometown http://www.regio15.nl/index.php/nieuws/lijst-weergave/28-overige/21864-wie-heeft-de-grootste-live-te-volgen
[17:09:39] <TheAceOfHearts> anything is possible
[17:09:44] *** r1zz0m4t1c has quit IRC
[17:10:09] <Banning> i found this its pretty cool https://github.com/marcoslin/angularAMD but if the angular team is doing something official i'd like to try and track that down
[17:10:14] <Banning> if no one in here can help me thats fine
[17:10:34] <Banning> scouring their google group now for info
[17:10:48] *** sl33k_ has joined #angularjs
[17:11:00] <GreenJello> Banning, angular 2 will work better with requirejs
[17:11:45] <Tuxity> Hi guys, a question, I've implemented a jwt auth, but I'm not sure how should I handle the user session I mean the security side.
[17:12:13] <Banning> ok thanks! :)
[17:12:18] *** mica has joined #angularjs
[17:12:23] <Tuxity> once the api has check the login and password, what should I put in the token ? No isAdmin variables etc ... right ?
[17:12:34] *** mica has left #angularjs
[17:14:24] *** ximenean___ has joined #angularjs
[17:14:39] *** sm|s2 has joined #angularjs
[17:15:15] *** zwacky has quit IRC
[17:15:18] *** marc_v92 has joined #angularjs
[17:15:18] *** balr0g has joined #angularjs
[17:15:33] *** StryKaizer has joined #angularjs
[17:15:40] *** bitri_ has joined #angularjs
[17:17:29] *** loverajoel has joined #angularjs
[17:18:15] *** nickgs has quit IRC
[17:18:49] *** suresh has joined #angularjs
[17:18:58] *** rho has joined #angularjs
[17:19:30] *** cornerma1 has joined #angularjs
[17:19:42] *** Johnny13371337 has joined #angularjs
[17:19:47] *** Johnny13371337 has left #angularjs
[17:20:17] *** tinyfly has joined #angularjs
[17:20:37] *** fedenunez has joined #angularjs
[17:21:06] *** Guest33 has quit IRC
[17:21:19] *** suresh has quit IRC
[17:21:34] *** eburcat_ has joined #angularjs
[17:21:49] *** eburcat has quit IRC
[17:21:49] *** juampy_brb is now known as juampy
[17:21:51] *** bayousoft has quit IRC
[17:21:52] *** bitri_ has quit IRC
[17:22:10] *** leolrrj has joined #angularjs
[17:22:17] *** vonnegut has quit IRC
[17:22:17] <AndChat|6036> what's the market rate or salary for angularJS skillset in your area?
[17:22:23] *** cornerman has quit IRC
[17:22:34] *** cornerma1 is now known as cornerman
[17:23:01] *** iLoop2 has quit IRC
[17:23:02] *** sl33k_ has quit IRC
[17:23:09] <SchizoDuckie> $999.00 /hr
[17:23:44] *** SargoDarya has joined #angularjs
[17:23:51] *** evanjs has joined #angularjs
[17:23:59] *** mikerrrrrr has joined #angularjs
[17:24:05] *** nickgs has joined #angularjs
[17:24:37] *** boxmein has quit IRC
[17:25:12] *** ChadStrat has quit IRC
[17:26:44] *** arabot has joined #angularjs
[17:26:52] *** disorder20 has joined #angularjs
[17:26:54] *** sl33k_ has joined #angularjs
[17:27:00] *** Robin_ has quit IRC
[17:27:55] <TheAceOfHearts> https://www.dropbox.com/s/jbah9m208l8kla8/Screenshot%202014-12-30%2008.27.44.png?dl=0 which one do you guys prefer? A or B?
[17:28:01] *** Banning has quit IRC
[17:28:47] *** soee has joined #angularjs
[17:29:06] *** SargoDarya has quit IRC
[17:29:38] *** busticated has joined #angularjs
[17:29:55] *** jaredwilli has quit IRC
[17:29:57] <SchizoDuckie> mind if i choose option c ?
[17:30:19] <SchizoDuckie> is it really neccesairy that you store the result on this / self ?
[17:30:33] *** moogey has joined #angularjs
[17:30:39] *** dejanr has joined #angularjs
[17:30:51] <SchizoDuckie> why not promise.then(function(value) {return value })
[17:31:17] *** boxmein has joined #angularjs
[17:31:30] <TheAceOfHearts> it's on a controller that loads data
[17:31:42] *** Fishy__ has quit IRC
[17:31:47] <SchizoDuckie> if you put it in $scope directly you don't have to bind
[17:31:48] <TheAceOfHearts> if you just do return value you're propagating the value to another promise
[17:31:55] <TheAceOfHearts> I think that's deprecated
[17:32:04] <TheAceOfHearts> it also has iffy error handling
[17:32:07] *** trustyha_ has quit IRC
[17:32:20] <TheAceOfHearts> but if I were willing to do that then I would just be doing this.doSomething = function () { return promise; }
[17:33:23] *** KettleCooked has joined #angularjs
[17:34:11] *** phrozensilver1 has joined #angularjs
[17:34:43] *** juampy has quit IRC
[17:34:54] <KettleCooked> In a directive I can set an isolate scope, and I can set transclude true/false. What is the difference between (a Directive without isolate scope and transclude: TRUE) and (a Directive without isolate scope and transclude: FALSE) ?
[17:35:11] <KettleCooked> Both will access the scope outside it.
[17:35:25] *** sl33k_ has quit IRC
[17:35:28] *** MistahKurtz has joined #angularjs
[17:36:08] *** dejanr has quit IRC
[17:36:27] *** komlev has joined #angularjs
[17:37:08] *** vonnegut has joined #angularjs
[17:37:08] *** earthquake has joined #angularjs
[17:38:55] *** MistahKurtz has quit IRC
[17:40:05] *** disorder20 has quit IRC
[17:40:23] *** snapwich has joined #angularjs
[17:41:19] *** grumpyOldRussian has joined #angularjs
[17:41:54] <burzum> any idea why this code is not sending the post data as json? http://pastebin.com/LsZJGv2Z I see in google chromes inspector that the accept type is json but the payload is not :( according to the documentation anything that is not a string will be jsonized. ive debugged the element and it shows type object in the console.
[17:42:05] *** rchavik has quit IRC
[17:43:19] *** Grumelo has quit IRC
[17:44:32] <SchizoDuckie> burzum: check the top answer here: http://stackoverflow.com/questions/17547227/angular-js-post-request-not-sending-json-data
[17:45:17] *** nickgs has quit IRC
[17:45:23] *** grumpyOldRussian has quit IRC
[17:45:47] <Perl> what vm software would you recomment
[17:45:51] <Perl> recommend* goddamnit
[17:45:54] <Perl> for a linux dev VM
[17:45:54] *** chrisshattuck has joined #angularjs
[17:45:56] <SchizoDuckie> virtualbox
[17:46:17] <Perl> getting tired of windows's shit
[17:46:21] <Perl> but still need it
[17:46:49] *** nickgs has joined #angularjs
[17:46:58] *** eburcat_ has quit IRC
[17:47:44] *** moogey has quit IRC
[17:47:46] *** conan_the_destro has joined #angularjs
[17:48:54] *** sl33k_ has joined #angularjs
[17:49:20] *** moogey has joined #angularjs
[17:49:46] <burzum> SchizoDuckie well, this still doesn't send it as json but I just figured out that my workmate minified the config file of another app in the build and this was overriding the default transformRequest... arrrgh!
[17:50:02] <burzum> so my code works fine after i kicked that file from the build process
[17:50:02] *** Perl has quit IRC
[17:50:07] <burzum> thanks anyway! :)
[17:51:09] *** Perl has joined #angularjs
[17:51:12] *** earthquake has quit IRC
[17:51:32] *** snadon has joined #angularjs
[17:51:53] *** heleyboo has joined #angularjs
[17:51:55] <heleyboo> hi
[17:52:01] *** ChadStrat has joined #angularjs
[17:52:05] *** ejb has quit IRC
[17:52:11] *** abram_ is now known as abram
[17:52:20] *** heleyboo has quit IRC
[17:53:32] *** trendy0 has quit IRC
[17:53:35] *** jacuqesdancona has quit IRC
[17:54:11] *** jacuqesdancona has joined #angularjs
[17:54:12] *** frankh_ has joined #angularjs
[17:54:56] *** sl33k_ has quit IRC
[17:56:57] *** terakilobyte has quit IRC
[17:57:37] *** disusered has joined #angularjs
[17:58:34] *** jacuqesdancona has quit IRC
[17:58:40] *** Skrypter has joined #angularjs
[17:58:59] *** tinyfly has quit IRC
[17:59:20] *** cthrax has joined #angularjs
[17:59:29] *** tinyfly has joined #angularjs
[18:00:26] *** tristanp has quit IRC
[18:00:30] *** sl33k_ has joined #angularjs
[18:01:34] *** tristanp has joined #angularjs
[18:02:04] *** basiclaser_ has quit IRC
[18:02:16] *** asheinfeld has joined #angularjs
[18:02:23] *** frobs has quit IRC
[18:03:04] *** timj has joined #angularjs
[18:03:25] *** Skrypter has quit IRC
[18:04:04] <timj> Hi there. I'm stuck while writing a directive but not sure how to put that into a question on SO. Anyone here who could have a look?
[18:04:46] *** titanomachy has quit IRC
[18:04:53] *** sl33k_ has quit IRC
[18:05:00] <timj> It's a bit of a weird one :)
[18:05:21] *** Sky[x] has quit IRC
[18:05:45] <Perl> it would be a lot easier for people to help you if you just explained your problem :P
[18:06:02] <timj> :D
[18:06:10] <timj> http://jsfiddle.net/HB7LU/9557/
[18:06:13] <timj> Here is my code.
[18:06:26] <timj> All I want is to get rid of the template
[18:06:26] <timj> but that breaks it
[18:06:38] *** Sky[x] has joined #angularjs
[18:06:40] <Foxandxss> TheAceOfHearts: pong
[18:06:59] *** nickgs has quit IRC
[18:07:58] *** sl33k_ has joined #angularjs
[18:08:03] *** teddyp1cker has joined #angularjs
[18:08:10] <TheAceOfHearts> yay
[18:08:24] <TheAceOfHearts> Foxandxss: first of all, A or B? https://www.dropbox.com/s/jbah9m208l8kla8/Screenshot%202014-12-30%2008.27.44.png?dl=0
[18:08:30] *** max__ has joined #angularjs
[18:08:54] *** max__ is now known as Guest99743
[18:09:04] <timj> B
[18:09:42] <Foxandxss> I like games
[18:09:43] *** nickgs has joined #angularjs
[18:09:45] <zomg> I want to say A just because I don't like var self = this;, but bind is also kinda shitty in JS just for doing something like this :p
[18:09:57] <Foxandxss> I am with zomg
[18:10:38] *** StryKaizer has quit IRC
[18:10:39] <zomg> Fat arrows in ES6 would solve this nicely...
[18:10:43] *** merobertsjr has joined #angularjs
[18:10:49] <Foxandxss> indeed
[18:10:55] <timj> if you use ES6 you can go .... well someone just said it :D
[18:10:57] *** PeterMetz has quit IRC
[18:11:37] *** RossJH has quit IRC
[18:11:40] <TheAceOfHearts> yeah
[18:11:42] <TheAceOfHearts> I know
[18:11:43] <SchizoDuckie> http://www.montulli.org/theoriginofthe%3Cblink%3Etag lol
[18:12:08] <SchizoDuckie> inventors of the <blink> tag were drunk :P
[18:12:11] <breakingthings> rest in peeps <blink>
[18:12:17] *** max_dev1 has quit IRC
[18:12:44] *** teddyp1cker has quit IRC
[18:12:54] <TheAceOfHearts> so, Foxandxss, I need a sanity check; I'm making a directive, I'm planning on having all of the behavior in a controller and the link function just has a watcher that calls a method on the controller; that seems like the most testable approach
[18:12:56] <timj> I don't know how to remove the template from this directive without breaking the code. Please help. http://jsfiddle.net/HB7LU/9557/
[18:12:57] <zomg> <blink> is so famous that it even has a band named after it
[18:12:59] <zomg> Blink 182
[18:13:06] *** trampi has joined #angularjs
[18:13:30] <Foxandxss> TheAceOfHearts: yes, it is not weird to delegate the logic to the controller and leaving the link function as the "view model"
[18:13:35] <Foxandxss> to have the events, watchers, etc
[18:13:46] <TheAceOfHearts> excellent :D
[18:14:10] <zomg> I'm attempting to model electronic circuits in JS
[18:14:15] <zomg> on a basic level
[18:14:26] <zomg> feeling like this would be so much nicer in something else than js :p
[18:15:03] <SchizoDuckie> nah, uo can model anything in js
[18:15:15] <SchizoDuckie> pretty cool idea tho!
[18:15:25] *** lawd has quit IRC
[18:15:40] <SchizoDuckie> especially if you can show me with some code what a specific electric component would do
[18:15:40] <zomg> sure you can but I mean it would be more elegant in something else =)
[18:15:47] *** chrisshattuck has quit IRC
[18:15:47] <SchizoDuckie> maybe then i can learn some electronic finally :)
[18:15:51] *** soee has quit IRC
[18:16:00] <zomg> SchizoDuckie: yes, I wanted to make a CPU from this eventually
[18:16:01] <TheAceOfHearts> zomg: it's all NAND gates all the way down
[18:16:02] <zomg> :P
[18:16:08] <zomg> TheAceOfHearts: that's what I said just the other day isn't it
[18:16:09] <zomg> :D
[18:16:13] <zomg> it might've been on ##javascript though
[18:16:14] *** chrisshattuck has joined #angularjs
[18:16:34] <SchizoDuckie> did you check out that excellent gameboy emulator in js article?
[18:16:45] <zomg> The guy who made it is on the js channel
[18:16:50] <zomg> don't remember if I read that much about it though
[18:16:54] <SchizoDuckie> ah good :)
[18:16:55] *** chrisshattuck has quit IRC
[18:16:55] <zomg> I've seen the article though
[18:17:00] <SchizoDuckie> imran nazar
[18:17:14] *** soee has joined #angularjs
[18:17:22] *** zumba_addict has joined #angularjs
[18:17:23] *** disorder20 has joined #angularjs
[18:17:36] <SchizoDuckie> http://imrannazar.com/GameBoy-Emulation-in-JavaScript for anyone wondering
[18:17:57] *** asheinfeld has quit IRC
[18:18:31] *** evilaliv3 has quit IRC
[18:18:39] *** asheinfeld has joined #angularjs
[18:18:47] *** Ix-Xitan has joined #angularjs
[18:18:47] *** Ix-Xitan is now known as PointBlank
[18:19:46] *** Hestil has joined #angularjs
[18:19:53] *** jaredwilli has joined #angularjs
[18:21:06] *** siddart has quit IRC
[18:21:23] *** siddart has joined #angularjs
[18:21:35] *** bitri_ has joined #angularjs
[18:21:58] *** shampine has joined #angularjs
[18:22:15] *** nemothekid has joined #angularjs
[18:22:21] *** nerdfiles has joined #angularjs
[18:22:25] *** tangorri has quit IRC
[18:22:34] *** jaredwilli has quit IRC
[18:22:35] *** Oddman has quit IRC
[18:23:19] *** swist has joined #angularjs
[18:24:50] <progrock> man, I wish I could have a ui-view's content replace it's container... like a diretive's replace option
[18:24:54] *** guilbep has quit IRC
[18:25:44] *** Sebastien-L has quit IRC
[18:25:56] <progrock> sadly, if I do a ui-view element, the browser treats it kinda like a div, right?
[18:26:20] *** SargoDarya has joined #angularjs
[18:26:26] *** Milk_weed has joined #angularjs
[18:26:39] *** nickgs has quit IRC
[18:26:58] *** nemothekid has quit IRC
[18:27:00] *** doginal has joined #angularjs
[18:27:05] *** timj has quit IRC
[18:27:06] *** pushpak has joined #angularjs
[18:27:21] *** jaredwilli has joined #angularjs
[18:27:26] *** iribarne has joined #angularjs
[18:27:49] <moogey> progrock: can you make it a span?
[18:27:57] <moogey> It should work as an attribute as well
[18:28:14] *** boonkerz- has quit IRC
[18:29:12] *** night-owl is now known as zz_night-owl
[18:29:29] *** aminRX has quit IRC
[18:30:04] *** pHcF has quit IRC
[18:30:12] *** Milk_weed has quit IRC
[18:30:22] *** boonkerz- has joined #angularjs
[18:30:51] *** mspier|away is now known as mspier
[18:30:58] *** nickgs has joined #angularjs
[18:31:03] *** boonkerz- has quit IRC
[18:32:30] *** Lewix has quit IRC
[18:32:50] *** swist has quit IRC
[18:33:29] *** boonkerz- has joined #angularjs
[18:34:08] *** boonkerz- has quit IRC
[18:34:13] *** z3n2 has joined #angularjs
[18:34:50] *** mlpug has joined #angularjs
[18:34:58] *** caitp has quit IRC
[18:35:20] <jaawerth> progrock: what's the use-case there? You should be able to use whatever CSS you need to make it behave however you want. Plus, as moogey mentioned, you can use it as an attribute on pretty much any kind of container you want
[18:35:21] *** doginal has quit IRC
[18:35:48] *** aminRX has joined #angularjs
[18:35:58] <moogey> *comic book announcer voice*
[18:35:58] <moogey> Here comes jaawerth to save the day!!!
[18:36:02] *** doginal has joined #angularjs
[18:36:13] *** boonkerz- has joined #angularjs
[18:36:23] *** codeman has quit IRC
[18:36:25] <jaawerth> lol
[18:36:55] *** evotuned has joined #angularjs
[18:37:23] *** caitp has joined #angularjs
[18:37:37] *** phrozensilver1 has quit IRC
[18:38:05] *** mdw has joined #angularjs
[18:38:12] <jaawerth> gotta help progrock when possible to give 'em more time make that newer, awesomer nvd3!
[18:38:34] *** cavallari has joined #angularjs
[18:39:25] *** codeman has joined #angularjs
[18:39:43] *** SonikBoom has joined #angularjs
[18:40:28] *** jumpstracks has quit IRC
[18:40:55] *** jaredwilli has quit IRC
[18:41:04] <moogey> nvd3?
[18:41:07] *** saucey has quit IRC
[18:41:29] *** SargoDarya has quit IRC
[18:41:51] *** crised has quit IRC
[18:42:16] *** caitp has quit IRC
[18:42:23] <instantaphex> is there any good way to debug a controller that is not loading? It's being referenced in UI Router state
[18:42:49] *** v2zz has joined #angularjs
[18:43:13] *** nemothekid has joined #angularjs
[18:43:30] *** jaredwilli has joined #angularjs
[18:43:37] <jaawerth> moogey: haha yeah, iirc progrock either originally wrote nvd3 or at least a large part of it, and has been working on a newer, from-scratch d3-based library
[18:43:38] <instantaphex> The file is being loaded in the browser and in the UI router state, I'm naming it as the controller
[18:44:03] *** nickgs has quit IRC
[18:44:09] <moogey> oh interesting
[18:44:38] <gladely> what's the new d3 wrapper?
[18:44:40] *** PayPaul has joined #angularjs
[18:44:43] <moogey> instantaphex: you could inline it in the html and test it there
[18:44:51] <moogey> then figure out why it's not getting loaded
[18:44:52] <jaawerth> I don't know if it actually exists yet ;-)
[18:44:57] <instantaphex> Good call, I'll try that
[18:44:59] *** jpstone has joined #angularjs
[18:45:02] <gladely> is there a github yet, I'd like to follow if so, we' use the nvd3 today.
[18:45:38] *** pibu7 has joined #angularjs
[18:45:40] <jaawerth> hehe, I'm afraid I've said all I know
[18:45:52] *** IvailoStoianov_ has joined #angularjs
[18:46:03] *** ChadStrat has quit IRC
[18:46:04] <jaawerth> I also look forward to a public repo, but I have no idea if there is one yet
[18:46:37] <jaawerth> I often use nvd3 too though, takes out a lot of the gruntwork for making pretty graphs with d3
[18:46:47] <instantaphex> inlining inside the template loaded it, but I still have no idea what could be causing it not to be loaded by UI router
[18:47:20] <instantaphex> Have you guys used c3? Is nvd3 similar to that? I've never tried it.
[18:47:24] <jaawerth> are you loading it by name?
[18:47:37] <jaawerth> if you make a plnkr we might be able to help, but it's tough to visualize without seeing it in action
[18:47:40] *** Lewix has joined #angularjs
[18:47:40] *** Lewix has joined #angularjs
[18:47:44] <Perl> http://u.rtag.me/p/Sn5yod.png ok chromium u dont have to yell at me
[18:47:45] <instantaphex> yeah, in the template's div I'm using ng-controller="HomeController as HomeVm"
[18:47:57] *** IvailoStoianov has quit IRC
[18:48:12] *** IvailoStoianov_ is now known as IvailoStoianov
[18:48:12] <jaawerth> no I mean, in ui router
[18:48:13] *** nerdfiles has quit IRC
[18:48:18] <jaawerth> what's your state config look like?
[18:48:23] <jaawerth> when not inlining it?
[18:48:47] *** tinyfly has quit IRC
[18:48:58] <instantaphex> Yeah in UI router I'm doing controller: 'HomeController' inside the config block
[18:49:35] *** jumpstracks has joined #angularjs
[18:49:41] *** ejb has joined #angularjs
[18:50:23] *** grumpyOldRussian has joined #angularjs
[18:51:21] <instantaphex> The state itself works, the template is being loaded when I navigate to it. The controller just doesn't instantiate.
[18:51:24] *** mzabriskie has joined #angularjs
[18:51:25] *** tkx has quit IRC
[18:51:43] *** ChadStrat has joined #angularjs
[18:51:52] *** ome has quit IRC
[18:51:52] *** charlie__ has joined #angularjs
[18:52:22] *** Evanion has quit IRC
[18:52:37] <moogey> instantaphex can you reproduce it in a plnkr
[18:52:49] *** charlie__ has left #angularjs
[18:53:00] <instantaphex> I'm looking into that now
[18:53:21] *** Sebastien-L has joined #angularjs
[18:54:16] <instantaphex> I'm just using a bunch of node_modules from my client, some of which abstract the state creation
[18:55:07] *** ngbot has joined #angularjs
[18:55:07] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/7xgjMg
[18:55:07] <ngbot> angular.js/master 1c76bf7 Mike Sidorov: chore(*): add .gitattributes with new lines configuration...
[18:55:07] *** ngbot has left #angularjs
[18:56:19] *** zwacky has joined #angularjs
[18:56:32] *** TommyO has joined #angularjs
[18:57:28] <jaawerth> there are node modules for generating ui-router states? I had no idea!
[18:58:02] *** awesomejosh has joined #angularjs
[18:58:20] *** saucey has joined #angularjs
[18:58:23] *** Oddman has joined #angularjs
[18:58:33] *** PayPaul has quit IRC
[18:59:27] *** paypaul has joined #angularjs
[18:59:29] *** Skrypter has joined #angularjs
[18:59:55] <saucey> hey guys
[19:00:02] *** AlexZan has quit IRC
[19:00:19] *** debunk has quit IRC
[19:00:25] <saucey> what do i make my menu accessible through all my controllers
[19:00:46] *** rtpg has joined #angularjs
[19:01:12] <kba> saucey: you need to be more specific
[19:01:45] *** woah has joined #angularjs
[19:01:54] <saucey> i have a dashboard contoller that get my menu items
[19:01:58] *** ngbot has joined #angularjs
[19:01:58] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/bXQghQ
[19:01:58] <ngbot> angular.js/master 1e5e527 Raphael Luba: docs($templateRequest): fix "returns" description to match code...
[19:01:58] *** ngbot has left #angularjs
[19:01:59] <saucey> i set my scope on this model
[19:02:16] <saucey> but i want the scope to be on every page
[19:02:18] <kba> what do you mean by setting your scope on this model?
[19:02:47] *** Oddman has quit IRC
[19:03:05] <moogey> saucey: that's when it's time to use a service
[19:03:14] <saucey> ok
[19:03:24] *** mdw has quit IRC
[19:03:27] *** PrinceAMD[Work] has joined #angularjs
[19:03:48] <saucey> ok
[19:03:54] *** VictorBjelkholm has quit IRC
[19:03:59] *** Skrypter has quit IRC
[19:04:15] *** jMyles has joined #angularjs
[19:04:29] *** mitc0185 has quit IRC
[19:04:51] *** jacuqesdancona has joined #angularjs
[19:04:58] *** yelvert has joined #angularjs
[19:05:15] <saucey> kba: i created a service for this
[19:05:18] *** rtpg has quit IRC
[19:05:51] *** Snugug has quit IRC
[19:05:52] *** whunt has joined #angularjs
[19:06:39] *** PrinceAMD has quit IRC
[19:07:08] *** wallerdev has joined #angularjs
[19:07:14] *** elrabin has quit IRC
[19:07:49] *** elrabin has joined #angularjs
[19:08:22] *** ChadStrat has quit IRC
[19:08:59] *** jacuqesdancona has quit IRC
[19:09:06] *** Leon has joined #angularjs
[19:09:29] *** paypaul has quit IRC
[19:09:53] <Lewix> Foxandxss: there?
[19:10:16] <Foxandxss> Lewix: more or less, more less than more
[19:10:16] <Foxandxss> heh
[19:10:28] *** Leon has joined #angularjs
[19:11:46] *** timj has joined #angularjs
[19:13:04] <SchizoDuckie> BahamutWC:My chrome issue got confirmed
[19:13:13] <SchizoDuckie> prio-1 regression
[19:14:15] *** loverajo_ has joined #angularjs
[19:15:06] <Lewix> Foxandxss: so i was using $route.current.resolve.property_I_set in one of my factories without issue. I decided to move it out in a newly created factory that i inject in the previously mentioned factory- now it's $route.current is undefined. I don't understand why the route is suddenly not available anymore
[19:15:22] *** iribarne has quit IRC
[19:15:46] <Foxandxss> sorry, that is too much, would need to debug that and I am busy with other stuff right now
[19:16:16] *** tinyfly has joined #angularjs
[19:16:42] *** ngbot has joined #angularjs
[19:16:42] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 521c12c to b43fa3b: http://git.io/T1t-bQ
[19:16:42] *** ngbot has left #angularjs
[19:17:03] *** Inoperable has quit IRC
[19:17:12] *** mchapman has quit IRC
[19:17:47] *** ngbot has joined #angularjs
[19:17:47] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from b43fa3b to deb3cb4: http://git.io/BYzbIA
[19:17:47] *** ngbot has left #angularjs
[19:18:07] *** loverajoel has quit IRC
[19:18:17] *** asheshambasta1 has quit IRC
[19:18:18] *** sl33k_ has quit IRC
[19:18:22] *** leolrrj has quit IRC
[19:18:34] *** mzabriskie has quit IRC
[19:18:34] <Lewix> Foxandxss: no worries
[19:18:49] *** ngbot has joined #angularjs
[19:18:49] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from deb3cb4 to 3e42b22: http://git.io/CZm5JA
[19:18:49] *** ngbot has left #angularjs
[19:18:52] *** doginal has quit IRC
[19:19:09] *** Aliks has joined #angularjs
[19:19:14] *** mzabriskie has joined #angularjs
[19:19:17] *** leolrrj has joined #angularjs
[19:19:19] *** z3n2 has quit IRC
[19:19:33] *** mzabriskie has quit IRC
[19:20:03] *** dejanr has joined #angularjs
[19:20:33] *** pHcF has joined #angularjs
[19:20:49] *** teddyp1cker has joined #angularjs
[19:21:14] *** sl33k_ has joined #angularjs
[19:22:22] *** elrabin has quit IRC
[19:22:30] *** reynierpm has joined #angularjs
[19:22:34] *** reynierpm has left #angularjs
[19:22:43] *** mrwn has joined #angularjs
[19:22:58] *** elrabin has joined #angularjs
[19:23:18] *** iribarne has joined #angularjs
[19:23:30] *** tinyfly has quit IRC
[19:23:32] *** whunt has quit IRC
[19:23:38] *** jumpstracks has quit IRC
[19:24:50] *** dejanr has quit IRC
[19:25:28] *** TeddyMurray has joined #angularjs
[19:25:33] *** whunt has joined #angularjs
[19:25:40] *** sl33k_ has quit IRC
[19:26:03] *** tinyfly has joined #angularjs
[19:26:11] *** nickgs has joined #angularjs
[19:26:26] *** rud_ has joined #angularjs
[19:26:31] *** MJD has quit IRC
[19:26:37] *** rud has quit IRC
[19:26:37] *** rud_ is now known as rud
[19:27:00] *** elrabin has quit IRC
[19:27:08] *** iksik has quit IRC
[19:27:14] *** elrabin has joined #angularjs
[19:28:03] *** IvailoStoianov has quit IRC
[19:28:13] *** iksik has joined #angularjs
[19:28:13] *** iksik has joined #angularjs
[19:28:29] *** sl33k_ has joined #angularjs
[19:30:25] *** shackleford has quit IRC
[19:30:28] *** apparition168 has quit IRC
[19:30:40] *** apparition168 has joined #angularjs
[19:31:08] *** teddyp1cker has quit IRC
[19:32:31] *** jumpstracks has joined #angularjs
[19:32:44] *** TommyO has quit IRC
[19:32:46] <instantaphex> Ok so I made a plunker
[19:32:51] *** whatadewitt has joined #angularjs
[19:33:01] *** tinyfly has quit IRC
[19:33:02] <instantaphex> and I've obviously misunderstood something because it isn't working in this plunker either
[19:33:06] <instantaphex> http://plnkr.co/edit/MqOfjbYYSaEDIALgxAMi?p=preview
[19:33:57] <Lewix> SchizoDuckie: How to console.log in a listener so that the log happen only when it just listened synchronously scope.$on(function(e,a) {do_something ; console.log}) --> console.log might happen before do_something
[19:34:01] *** titanomachy has joined #angularjs
[19:34:10] *** TommyO has joined #angularjs
[19:34:37] <whatadewitt> hey i'm having some issues figuring out a unit test, i have an "authorization" factory, and if the user selects "remember me" i set a custom storage service to use 'localStorage' or 'sessionStorage' but when the test runs it doesn't appear to actually update that value like it does when i run it as a user...
[19:34:47] <whatadewitt> any ideas?
[19:35:09] *** iribarne has quit IRC
[19:35:39] *** woah has quit IRC
[19:36:31] *** __alex has quit IRC
[19:36:35] *** yts has joined #angularjs
[19:36:43] *** pibu7 has quit IRC
[19:36:44] *** jtimon has quit IRC
[19:37:02] *** cebor has quit IRC
[19:37:19] *** mrru has quit IRC
[19:37:29] *** sinclair has quit IRC
[19:37:37] *** __alex has joined #angularjs
[19:37:55] *** jtimon has joined #angularjs
[19:37:58] <instantaphex> whatadewitt: you mean it doesn't actually save the data to local storage or session storage?
[19:38:02] *** sinclair has joined #angularjs
[19:38:05] *** Zren_ has joined #angularjs
[19:38:14] *** platonic has quit IRC
[19:38:15] *** caitp has joined #angularjs
[19:38:30] *** cebor has joined #angularjs
[19:38:48] *** freeAir has joined #angularjs
[19:38:54] *** iribarne has joined #angularjs
[19:38:58] *** SargoDarya has joined #angularjs
[19:39:02] *** lolmaus has quit IRC
[19:39:03] *** leolrrj has quit IRC
[19:39:07] *** MJD has joined #angularjs
[19:39:29] *** leolrrj has joined #angularjs
[19:39:36] <robdubya> SchizoDuckie interesting!
[19:39:42] <whatadewitt> instantphex: in my authorization service (sorry i said 'factory' earlier) i am checking to see if the user passed a "remember me" flag, and i set the "storagetype" on the storageservice to "local" or "session", but when i check it in the test it's ALWAYS 'local'
[19:40:01] <whatadewitt> it just doesn't update
[19:40:09] *** Fishy has joined #angularjs
[19:40:12] <robdubya> Lewix don't use console to debug. use the... debugger
[19:40:14] <jaawerth> whatadewitt: gotta mock localStorage
[19:40:30] <whatadewitt> i wish i could add console.logs or dumps or debuggers to my authorization factory so i could see if that is even getting called
[19:40:39] *** Zren has quit IRC
[19:40:40] <BahamutWC|Work> fun exchange on github jaawerth :P
[19:40:42] <whatadewitt> jaawerth: localStorage or the storage service?
[19:40:45] *** jstroem has quit IRC
[19:40:58] <jaawerth> whatadewitt: unit tests won't actually save anything the same way they won't actually call an API, you'd need E2E tests for that. Um... probably easier to mock the storage service
[19:41:04] <jaawerth> whatadewitt: http://ngokevin.com/blog/angular-unit-testing/ talks about it a bit
[19:41:13] *** dc_ has joined #angularjs
[19:41:26] <whatadewitt> jaawerth: what you're saying makes too much sense :P i will check out that post, thank you...
[19:41:32] *** AndChat|386804 has joined #angularjs
[19:41:34] <instantaphex> jaawerth: were you able to view my plunker?
[19:41:35] <jaawerth> BahamutWC|Work: It's interesting! I haven't poked my nose much into the Angular github chatter before.
[19:41:50] <jaawerth> BahamutWC|Work: Sorry your handy new feature is being borked by jquery though
[19:41:58] <BahamutWC|Work> *shrug*
[19:42:05] *** b1rkh0ff has quit IRC
[19:42:13] <BahamutWC|Work> I just hacked on that for fun and bounced off ideas with Igor
[19:42:29] <Lewix> robdubya: ok. I would still like to find a good way to console.log suncrhonously without using defer
[19:42:41] *** leolrrj has quit IRC
[19:42:48] *** leolrrj has joined #angularjs
[19:43:00] *** zwacky has quit IRC
[19:43:19] *** freeAir has quit IRC
[19:43:45] *** cotko has quit IRC
[19:43:52] *** Fishy has quit IRC
[19:44:08] *** Guest68461 is now known as adam12
[19:44:45] *** Snugug has joined #angularjs
[19:44:47] *** jacquesdancona has quit IRC
[19:44:49] *** lexek__ has quit IRC
[19:44:58] *** adam12 is now known as Guest22806
[19:44:59] *** platonic has joined #angularjs
[19:45:03] *** Fishy has joined #angularjs
[19:45:17] *** freeman42 has quit IRC
[19:45:46] *** tomh- has joined #angularjs
[19:46:15] <jaawerth> BahamutWC|Work: it's an interesting sort of catch 22, because angular both IS and ISN'T attached at the hip to jquery
[19:46:25] *** nerdfiles has joined #angularjs
[19:46:33] <BahamutWC|Work> yep
[19:46:36] <sweeper> don't I know it
[19:46:47] *** Liquori has quit IRC
[19:46:59] <sweeper> anyone ever run into IE-specific memory leaks when disposing of jquery-generated iframes in an angular app?
[19:47:05] <saucey> jaaweth: how do i create a menu dynamically for all my routes/controllers
[19:47:20] *** SargoDarya has quit IRC
[19:47:36] <jaawerth> um, that is a very open question
[19:47:36] *** windsurf_ has joined #angularjs
[19:47:56] <sweeper> saucey: you probably don't want to do that
[19:48:24] <saucey> well just a normal nav without including it in everyview
[19:48:26] <sweeper> I mean it sounds like a cool idea, buuut
[19:48:39] <jaawerth> ah well, if that's all you want you just need to put it outside your ng-view/ui-view
[19:48:44] <jaawerth> basically a wrapper
[19:48:51] *** jstroem has joined #angularjs
[19:48:53] *** Liquori has joined #angularjs
[19:48:57] <instantaphex> Ok, I figured it out and now I feel like a retard
[19:49:00] <jaawerth> or if you're using ui-router you can just have the nav be a separate named view that's attached to each state
[19:49:07] <instantaphex> the controller and controllerAs need to be inside the views object
[19:49:26] *** TommyO has quit IRC
[19:49:28] <jaawerth> instantaphex: haha yep - I was confused because by the time I clicked you plnkr I think you were halfway towards fixing it?
[19:49:43] <instantaphex> yeah...
[19:49:48] <instantaphex> I haven't used UI router before
[19:49:57] *** jtimon has quit IRC
[19:50:01] <jaawerth> sweeper: Isn't IE itself a memory leak?
[19:50:14] <caitp> no
[19:50:19] <jaawerth> shh
[19:50:22] <gladely> its certainly a braindrain.
[19:50:31] *** nemothekid has quit IRC
[19:50:43] <sweeper> jaawerth: this goes above and beyond to the point where it actually stops the jq plugin from functioning after a half dozen iterations :/
[19:50:45] <saucey> jaawerth: ok il have to check that out not quiet sure
[19:50:46] *** nemothekid has joined #angularjs
[19:50:53] *** whunt has quit IRC
[19:51:01] <saucey> do i need like some kind of rootscope
[19:51:10] <sweeper> I'm binding the jquery destroy event, and tearing down everything inside the iframe, but it just keeps happening
[19:51:22] <jaawerth> saucey: you'd just give the nav its own controller
[19:51:37] <saucey> i see
[19:51:48] <jaawerth> or maybe write a nav service to handle its data model if you need it to interact with a bunch of other controllers in your app (rather than just changing route/state)
[19:51:50] *** jhooks has quit IRC
[19:51:59] *** b1rkh0ff has joined #angularjs
[19:52:06] <saucey> ye
[19:52:13] <saucey> so ive wrote a service
[19:52:22] *** marr has quit IRC
[19:52:32] <jaawerth> sweeper: oof sounds rough. I haven't seen much in the way of IE-specific iframe issues on account of not having to do much with iframes...
[19:52:35] <saucey> http://laravel.io/bin/E3yv9
[19:52:45] <jaawerth> I'd imagine it has something to do with domain stuff on IE though
[19:52:47] <jaawerth> that's always a killer
[19:52:53] <sweeper> domain stuff?
[19:53:03] <sweeper> (tellmemore)
[19:53:12] <Lewix> what happen at a higher level when the user request an angular app - is it one or many instance of the app that is initialized
[19:53:23] <jaawerth> yeah, IIRC there are certain, um, walls that IE puts up that makes it tough to interact with content in an iframe except through window to window messaging ands tuff
[19:53:23] *** jhooks has joined #angularjs
[19:53:26] <sweeper> we need to launch this thing today and the support staff for the jq/iframe thing are all gone
[19:53:29] *** gunn has joined #angularjs
[19:53:31] *** chr1stopher has joined #angularjs
[19:53:33] <jaawerth> I haven't done a ton with it, but when I have I've had to deal with this
[19:53:36] *** leolrrj has quit IRC
[19:53:47] <sweeper> hmmm
[19:53:55] <sweeper> is there a more technical term to aid my googling?
[19:54:00] <jaawerth> if you haven't searched already, I remember bumping into a bunch of SO stuff on it
[19:54:02] *** leolrrj has joined #angularjs
[19:54:15] *** whunt has joined #angularjs
[19:54:29] <jaawerth> that was more to do with content injection in a separate window though
[19:54:38] <jaawerth> but I recall stumbling upon iframe stuff
[19:54:55] <sweeper> oh yes, I see some things
[19:54:58] *** MalfaitRobin has joined #angularjs
[19:54:58] *** Snugug has quit IRC
[19:54:59] <sweeper> thanks
[19:55:02] *** laskoski has quit IRC
[19:55:15] *** nuizzy has joined #angularjs
[19:55:52] *** jstroem has quit IRC
[19:55:52] *** nuizzy has quit IRC
[19:56:05] *** nuizzy has joined #angularjs
[19:56:21] *** fedenunez has quit IRC
[19:56:33] *** Snugug has joined #angularjs
[19:56:57] <jaawerth> saucey: scopes shouldn't be used for the data model in a service - the service is where you keep the "source of truth" or handle communication and application logic. the scopes are mainly just where a controller sticks/preps the data for the view
[19:57:20] <saucey> ok
[19:57:23] <jaawerth> that's all I got for you today though, gotta focus on my stuff ;-)
[19:57:30] <saucey> ok kool
[19:57:34] *** fedenunez has joined #angularjs
[19:57:41] *** salmela has joined #angularjs
[19:57:43] *** Cronoh has joined #angularjs
[19:58:04] *** Fenikkusu has joined #angularjs
[19:58:07] *** travm has quit IRC
[19:58:14] *** mite_mitreski has quit IRC
[19:58:25] *** leolrrj has quit IRC
[19:58:37] *** loverajo_ has quit IRC
[19:58:40] *** marc_v92 has quit IRC
[19:59:07] <Fenikkusu> When you return a value in a promise, that value should be passed to the next .then call, or so I understand. I'm having an issue where the original data is being passed to the next .then, not the returned value.
[19:59:38] *** travm has joined #angularjs
[19:59:42] <Perl> http://u.rtag.me/p/3Uy7IJ.png
[19:59:44] *** dcherman has joined #angularjs
[19:59:48] <Perl> but will load undefined which is version undefined
[19:59:52] <Perl> thank god for that, right
[20:00:00] <robdubya> Fenikkusu post your code
[20:00:00] *** marc_v92 has joined #angularjs
[20:00:23] *** zumba_addict has quit IRC
[20:00:23] *** tinyfly has joined #angularjs
[20:01:11] *** shackleford has joined #angularjs
[20:02:01] *** mspier is now known as mspier|away
[20:02:29] *** ejb has quit IRC
[20:03:33] *** ttt__ has joined #angularjs
[20:03:41] *** whatadewitt_ has joined #angularjs
[20:03:48] *** snadon has left #angularjs
[20:04:10] *** ttt__ has quit IRC
[20:04:10] *** whatadewitt has quit IRC
[20:04:21] *** whatadewitt_ is now known as whatadewitt
[20:05:01] *** zlalanne has joined #angularjs
[20:05:08] *** DarrenCraig has joined #angularjs
[20:05:18] *** ejb has joined #angularjs
[20:05:20] *** mven has joined #angularjs
[20:05:23] *** shackleford has quit IRC
[20:05:27] *** travm has quit IRC
[20:05:29] <Fenikkusu> I don't really have the ability to get this up and running fully in a jsfiddle, as it is part jasmine. http://pastebin.com/LYeAxfQh The console gives me b, a, but jasmine errors because oData is the original http data.
[20:05:31] <instantaphex> Is there a way to suppress warnings when there is a $stateChangeError?
[20:05:46] *** travm has joined #angularjs
[20:05:47] *** Aswebb_ has quit IRC
[20:05:58] *** sbellina has quit IRC
[20:06:18] *** sbellina has joined #angularjs
[20:06:43] <robdubya> what the fuuuuck are you doing there
[20:06:43] *** s00pcan has quit IRC
[20:06:43] *** s00pcan_ has quit IRC
[20:06:46] *** IvailoStoianov has joined #angularjs
[20:07:10] <Fenikkusu> rofl
[20:07:23] *** ChadStrat has joined #angularjs
[20:07:25] *** ximenean___ has quit IRC
[20:07:38] *** juanpablo_ has quit IRC
[20:07:39] *** JBreit has quit IRC
[20:07:44] *** leolrrj has joined #angularjs
[20:07:51] <Fenikkusu> Basically we don't want to cache results, want to ensure all requests don't duplicate
[20:07:57] *** Cronoh has quit IRC
[20:08:02] *** juanpablo_ has joined #angularjs
[20:08:04] *** s00pcan has joined #angularjs
[20:08:32] *** debunk has joined #angularjs
[20:08:33] *** opiates has quit IRC
[20:08:43] <Fenikkusu> but want*
[20:09:00] <robdubya> which is the default behavior
[20:09:15] <robdubya> and angular already checks if its JSON or not, btw
[20:09:24] *** Shrooms has joined #angularjs
[20:09:36] *** Shrooms has joined #angularjs
[20:09:53] <Fenikkusu> Not in my experience. I had a page making 4 different requests to the same url on load.
[20:10:26] <Fenikkusu> I realize it does, but I know that everything ran through this function must be JSON, so I want it to error out in the even non-JSON isn't received.
[20:10:38] <Fenikkusu> non-JSON is received*
[20:10:58] *** mven has quit IRC
[20:11:13] <robdubya> oh you DO want to cache results?
[20:11:28] <SchizoDuckie> oh wow. it's been a while since i've seen anybody use hungarian notation
[20:12:09] *** nickgs has quit IRC
[20:12:13] *** dejanr has joined #angularjs
[20:12:22] <mylordi> if I want all my directives using shared variables in a service to update when some values changes, should I use broadcast? or watchCollection? or custom callback? or observe?
[20:12:25] <drag0nius> is there some easy way to invalidate http cache for url?
[20:12:30] <robdubya> and it would be WAY easier to just cache the promise in the factory and return it
[20:12:42] *** mrwn has quit IRC
[20:12:43] *** bitri_ has quit IRC
[20:12:51] *** ngbot has joined #angularjs
[20:12:52] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 3e42b22 to 0f9fd2f: http://git.io/ZH8YTw
[20:12:52] *** ngbot has left #angularjs
[20:12:52] <robdubya> since you can re-use the response a bunch of times
[20:13:15] <Fenikkusu> SchizoDuckie, I prefer it. Makes the code easier to read and understandable, plus I come from a background in VB.
[20:14:00] *** mven has joined #angularjs
[20:14:07] *** Reskp has joined #angularjs
[20:14:11] *** teddyp1cker has joined #angularjs
[20:14:15] <Fenikkusu> robdubya, No, I don't want to cache it. I just want to prevent it from making the same request multiple times in a row. IE: (bad I know) In a ng-repeat
[20:14:30] <robdubya> ...isn't that the same thing?
[20:14:33] *** juanpablo_ has quit IRC
[20:14:36] *** juanpablo__ has joined #angularjs
[20:14:43] *** startupality has quit IRC
[20:15:09] *** Skrypter has joined #angularjs
[20:15:16] <OnkelTem> Hi
[20:15:17] <SchizoDuckie> I'm quite happy i switched a long time ago to a regular namingn convention. Using hungarian with angular is quite dashing :D
[20:15:23] <SchizoDuckie> but it's all personal preference ofcourse :)
[20:15:25] *** marc_v92 has quit IRC
[20:15:32] *** travm has quit IRC
[20:15:38] <Fenikkusu> Allow me to put it this way. If I request a page while a previous request is processing, I want to return the original promise. If the original promise has finished, I want to make a new promise
[20:15:40] *** nemothekid has quit IRC
[20:15:45] *** HassanCehef has joined #angularjs
[20:15:56] <OnkelTem> Any ideas why angular app could make Chrome go crazy? It requests the same URL in cycle (404 response)
[20:16:03] <OnkelTem> I have to kill Chrome
[20:16:33] *** cthrax has quit IRC
[20:16:34] *** travm has joined #angularjs
[20:16:35] <SchizoDuckie> Fenikkusu: i have something, hang on
[20:16:49] *** JBreit has joined #angularjs
[20:16:56] *** nickgs has joined #angularjs
[20:16:57] *** marc_v92 has joined #angularjs
[20:17:03] <SchizoDuckie> https://github.com/SchizoDuckie/DuckieTV/blob/angular/js/services/TraktTV.js#L75
[20:17:04] *** ngbot has joined #angularjs
[20:17:05] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 0f9fd2f to 0e2ac3c: http://git.io/XdpMoQ
[20:17:05] *** ngbot has left #angularjs
[20:17:18] <SchizoDuckie> you could ofcourse bypass the auto-kill, but i think you'll get the idea
[20:17:59] <SchizoDuckie> it basically holds the request promise, and cancels it when it's allowed to. in your case it'd return the promise
[20:18:10] *** travm has quit IRC
[20:18:45] *** shackleford has joined #angularjs
[20:19:06] *** JohnBat26 has joined #angularjs
[20:19:22] *** cthrax has joined #angularjs
[20:19:24] *** caitp has quit IRC
[20:19:53] *** Skrypter has quit IRC
[20:20:22] <robdubya> Fenikkusu http://plnkr.co/edit/muIAOq0ZM2Bg5hElue3C?p=preview
[20:20:31] <robdubya> simple example (watch the console)
[20:21:11] *** JeffBuhrt has quit IRC
[20:21:22] *** mdw has joined #angularjs
[20:21:55] *** travm has joined #angularjs
[20:22:13] *** fixl has quit IRC
[20:22:28] *** nemothekid has joined #angularjs
[20:22:35] *** seriema_ has joined #angularjs
[20:22:37] <breakingthings> is there any real opinion about Jasmine vs. Mocha
[20:22:47] *** travm has quit IRC
[20:22:50] *** seriema has quit IRC
[20:23:44] <SchizoDuckie> opinions are like assholes
[20:23:47] <SchizoDuckie> everybody has one
[20:23:57] *** Tuxity is now known as Tuxity`away
[20:24:03] *** Lorthirk has joined #angularjs
[20:24:25] <breakingthings> of course, but I mean moreso valid reasons why one might find the one more pertinent than the other
[20:24:36] *** travm has joined #angularjs
[20:24:41] *** ngbot has joined #angularjs
[20:24:41] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 0e2ac3c to 4836dac: http://git.io/tpGn4g
[20:24:41] *** ngbot has left #angularjs
[20:24:42] <breakingthings> I don't just want to hear "this one sucks" :)
[20:24:55] *** Lorthirk has left #angularjs
[20:25:18] <breakingthings> So far all I've really been finding is that Mocha is more meant to be integrated with other plugins like chai and sinon whereas Jasmine comes a la carte with these things
[20:25:18] <SchizoDuckie> can't help you with that, i'm still trying to get my first tests up and running
[20:25:56] *** Tuxity`away is now known as Tuxity
[20:26:06] *** travm has quit IRC
[20:26:32] *** travm has joined #angularjs
[20:27:57] *** startupality has joined #angularjs
[20:28:04] *** slickuser has joined #angularjs
[20:28:04] *** slickuser has joined #angularjs
[20:29:11] *** Evanion has joined #angularjs
[20:29:15] *** ngbot has joined #angularjs
[20:29:15] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 4836dac to 1eb6036: http://git.io/isa52g
[20:29:15] *** ngbot has left #angularjs
[20:29:41] *** Manaus has joined #angularjs
[20:29:47] *** BobbieBarker has joined #angularjs
[20:30:08] *** travm has quit IRC
[20:30:17] *** ngbot has joined #angularjs
[20:30:18] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 1eb6036 to 2e721a7: http://git.io/J0Z7Tw
[20:30:18] *** ngbot has left #angularjs
[20:30:35] <robdubya> angular and karma/jasmine go together like peas and carrots
[20:30:51] *** marc_v92 has quit IRC
[20:31:21] *** ngbot has joined #angularjs
[20:31:21] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from 2e721a7 to e9bf93d: http://git.io/S-y8Aw
[20:31:21] *** ngbot has left #angularjs
[20:31:28] *** BobbieBarker_ has quit IRC
[20:31:29] *** Sebastien-L has quit IRC
[20:31:45] *** Reskp has quit IRC
[20:32:01] *** fixl has joined #angularjs
[20:32:20] *** ngbot has joined #angularjs
[20:32:20] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from e9bf93d to d224fe8: http://git.io/ffD0UA
[20:32:20] *** ngbot has left #angularjs
[20:32:20] *** jonathanpglick has quit IRC
[20:32:22] <SchizoDuckie> anybody have any idea how I could have my users submit (anonymously) new search enigne data for my app? I have no backend, and don't want to force users to register on github
[20:32:23] *** tristanp has quit IRC
[20:33:20] *** matheusrocha89 has joined #angularjs
[20:33:39] *** slickuser has left #angularjs
[20:33:45] <SchizoDuckie> I was thinking about just automagically submitting a to gist.github.com, but then i need some way to notify myself
[20:34:10] *** freeman42 has joined #angularjs
[20:34:10] *** ngbot has joined #angularjs
[20:34:10] <ngbot> [angular.js] jeffbcross fast-forwarded g3_v1_4 from d224fe8 to 3616b9b: http://git.io/qt0DzA
[20:34:10] *** ngbot has left #angularjs
[20:34:18] *** evotuned has quit IRC
[20:34:34] *** tristanp has joined #angularjs
[20:34:59] *** evotuned has joined #angularjs
[20:35:41] *** iribarne has quit IRC
[20:36:01] *** nickgs has quit IRC
[20:36:03] <dmamills> SchizoDuckie: if you post them as gists, you could probably poll the gist api periodically to see if any new gists have been added
[20:36:28] <SchizoDuckie> yeah, ofcourse :) i could tag them and use a search query :) good idea
[20:37:42] *** nickgs has joined #angularjs
[20:38:13] *** titanomachy has quit IRC
[20:38:25] *** earthquake has joined #angularjs
[20:38:50] <SchizoDuckie> and i can import the nodejs module, so I don't even have to work any scraping magic :D
[20:39:34] *** dra_ has quit IRC
[20:39:37] *** travm has joined #angularjs
[20:40:32] *** Sawbones has quit IRC
[20:41:31] *** titanomachy has joined #angularjs
[20:41:38] *** NormySan has joined #angularjs
[20:41:42] <breakingthings> robdubya: Does that imply that they integrate well with eachother in comparison to Mocha, or just that it gives you a warm feeling in your heart? :P
[20:41:47] *** travm has quit IRC
[20:42:05] *** Cronoh has joined #angularjs
[20:42:36] *** zeitgist has quit IRC
[20:42:47] *** cthrax has quit IRC
[20:42:51] *** nemothekid has quit IRC
[20:43:09] *** Shrooms has quit IRC
[20:43:10] *** DarrenCraig has quit IRC
[20:43:15] *** windsurf_ has quit IRC
[20:44:29] *** SargoDarya has joined #angularjs
[20:44:46] *** caitp has joined #angularjs
[20:47:29] *** Oddman has joined #angularjs
[20:47:44] *** travm has joined #angularjs
[20:47:45] *** Oddman has joined #angularjs
[20:47:45] *** shackleford has quit IRC
[20:48:12] *** ximenean___ has joined #angularjs
[20:48:12] *** fedenunez has quit IRC
[20:48:52] *** loverajoel has joined #angularjs
[20:49:26] *** blahsphemer has joined #angularjs
[20:49:32] *** platonic has quit IRC
[20:49:46] <blahsphemer> Is there any way to display a kibana dashboard or panel inside an AngularJS app?
[20:49:47] <robdubya> breakingthings more or less :)
[20:50:06] <robdubya> i prefer mocha in nodeland and karma in angularland
[20:50:18] *** renlo has joined #angularjs
[20:50:24] <breakingthings> ah
[20:50:36] <breakingthings> I appreciate that input then
[20:50:51] <jaawerth> I haven't used mocha a ton but karma has been solid for me in angularville
[20:51:07] <jaawerth> protractor is slowly growing on me for doing E2E stuff, too
[20:51:12] *** travm has quit IRC
[20:51:24] <jaawerth> but I was bound to like it from the beginning, since it wraps webdriver which wraps selenium
[20:51:29] *** jumpstracks has quit IRC
[20:51:34] <jaawerth> and selenium is neat
[20:51:46] *** shackleford has joined #angularjs
[20:52:22] *** busticated has quit IRC
[20:52:22] *** anix has joined #angularjs
[20:52:53] *** nerdfiles has quit IRC
[20:53:28] *** danecando has quit IRC
[20:54:18] *** platonic has joined #angularjs
[20:54:55] <robdubya> SchizoDuckie do you have a link to your bug?
[20:55:00] *** earthquake has quit IRC
[20:55:08] <robdubya> also, screw you guys, i'm switching to dart
[20:55:14] <jaawerth> yeah right
[20:55:23] <SchizoDuckie> robdubya: https://code.google.com/p/chromium/issues/detail?id=445352
[20:55:30] *** pspfolio has quit IRC
[20:55:46] *** valmotor2 has joined #angularjs
[20:56:22] *** TommyO has joined #angularjs
[20:56:32] *** sl33k_ has quit IRC
[20:56:37] <robdubya> lol @ i'm not crazy
[20:56:37] *** asheshambasta has joined #angularjs
[20:56:40] <robdubya> always comforting
[20:56:55] <SchizoDuckie> uhu :D
[20:56:56] *** iribarne has joined #angularjs
[20:57:01] *** busticated has joined #angularjs
[20:57:05] <valmotor2> there is a tutorial on web with the latest version of angular and nodejs whom are building an application ?
[20:57:08] <SchizoDuckie> even though the nickname might suggest otherwise
[20:57:18] <valmotor2> sorry for english , i hope someone can understand me
[20:58:43] <robdubya> what the hell, what a weird source for that bug
[20:59:07] <SchizoDuckie> i'm not sure that the whole link is the source of the bug
[20:59:11] <SchizoDuckie> rather that specific build
[20:59:43] *** jonathanpglick has joined #angularjs
[20:59:44] <SchizoDuckie> somewhere here : https://chromium.googlesource.com/chromium/src/+log/e4e54020f30d474dd4dd21b0f1620904c9d785f7
[21:00:02] *** cavallari has quit IRC
[21:00:02] *** matheusrocha89 has quit IRC
[21:00:28] <SchizoDuckie> fun part is that in there there's a v8 upgrade as well
[21:00:42] *** sl33k_ has joined #angularjs
[21:00:50] *** pibu7 has joined #angularjs
[21:01:38] *** JeffBuhrt has joined #angularjs
[21:01:49] *** Oddman has quit IRC
[21:01:52] <blahsphemer> any help?
[21:01:55] <jaawerth> valmotor2: well one of the beauties of angular is that it operates sort of separately from your backend, just talking to it via an API, like a local app that calls out to a server. I find it better to just learn the node stuff and the angular stuff and make them talk to each other (though it is nice when you can do code-sharing tricks)
[21:01:59] *** evok has joined #angularjs
[21:02:09] <jaawerth> there are probably fullstack tutorials out there but I have little interest in them
[21:02:16] <jaawerth> I bet MEAN has one
[21:02:16] *** rtpg has joined #angularjs
[21:02:20] *** freeman42 has quit IRC
[21:02:27] *** MJD has quit IRC
[21:02:44] <jaawerth> robdubya: speaking of links to bugs, this has turned into a fun little discussion https://github.com/angular/angular.js/issues/10572
[21:03:31] *** travm has joined #angularjs
[21:03:47] *** Oddman has joined #angularjs
[21:04:38] <robdubya> fail
[21:04:40] *** seriema_ has quit IRC
[21:05:33] *** jpiasetz has joined #angularjs
[21:05:45] <jaawerth> haha yeah my hacky fix was not well received, but I kinda expected that based on the approach. that's why I didn't submit it as a PR!
[21:06:16] *** Leon has quit IRC
[21:06:37] *** rtpg has quit IRC
[21:06:39] *** moogey is now known as moogey_eat
[21:06:49] *** jstroem has joined #angularjs
[21:06:51] *** travm has quit IRC
[21:07:10] <jaawerth> I kinda wish angular wasn't so reliant on jq in the first place... I get WHY it is, though, and you wouldn't want to keep running jqlite internally when jq is also on the project, that's just wasted memory
[21:07:14] *** fedenunez has joined #angularjs
[21:07:17] *** SargoDarya has quit IRC
[21:07:21] *** busticated has quit IRC
[21:07:21] *** MJD has joined #angularjs
[21:07:33] *** subone has joined #angularjs
[21:07:42] <valmotor2> jaawerth: it's a new type language for me , i developed in the past only in php, and now i want to make a real time application with angular and nodejs where i want to integrate sip and asterisk
[21:08:02] <valmotor2> to make a call center application
[21:08:08] *** Nivag_ has joined #angularjs
[21:08:16] <TweedleDee> when you do an <li ng-repeat> and have a few divs inside for formatting, how do I make the bullet at the front of the list instead of after it? here is a picture example of how i DO NOT want it..
[21:08:17] <TweedleDee> http://snag.gy/AEhKD.jpg
[21:08:18] *** bmac has quit IRC
[21:08:21] <robdubya> valmotor2 you should think about them as two distinct things
[21:08:22] *** PointBlank has quit IRC
[21:08:24] <robdubya> a server
[21:08:30] <robdubya> and a client(s)
[21:08:35] *** Ix-Xitan has joined #angularjs
[21:08:35] *** Ix-Xitan is now known as PointBlank
[21:08:39] *** RossJH has joined #angularjs
[21:08:43] *** codeurge has joined #angularjs
[21:09:02] *** lolmaus has joined #angularjs
[21:09:02] *** whunt has quit IRC
[21:09:23] <subone> I'm still trying to figure out ng-options, if anyone can be of any help. I have ng-options="type.name as type.name for type in types", but the select is intermittently blank. The option that should be selected has selected="selected", but it is not displaying that option in the select, it is just blank.
[21:09:38] *** Hestil has quit IRC
[21:10:04] <jaawerth> subone: It's data-driven. Rather than setting it as selected the traditional way on the DOM, you need to select the relevant option in your data model
[21:10:15] *** Reskp has joined #angularjs
[21:10:53] *** danecando has joined #angularjs
[21:10:57] *** jstroem has quit IRC
[21:11:00] *** travm has joined #angularjs
[21:11:20] <subone> jaawerth: It is set in the model, and the isSelected function in the select directive is returning true, and the correct element has the selected attribute in the resulting HTML, but it intermittently does not display that value, sometimes it does, sometimes it just displays blank
[21:11:32] <TweedleDee> I found a hack ( at least IMO it is ) replace <li> with <div> and before my three bootstrap div's just put &#149;
[21:11:36] *** rileylark has joined #angularjs
[21:11:44] <TweedleDee> *shrug* fuck it end user will never know
[21:11:49] <jaawerth> subone: Do you have a plunk?
[21:11:57] *** pushpak has quit IRC
[21:12:01] <subone> I am not able to replicate yet in a plunk
[21:12:04] *** Oceed has quit IRC
[21:12:18] <subone> maybe something to do with timing, not sure
[21:12:18] <jaawerth> hm.. for an intermittent issue like that it'd be hard to debug without one...
[21:12:19] *** umib0zu has joined #angularjs
[21:12:20] *** jiggliemon has joined #angularjs
[21:12:21] *** iribarne has quit IRC
[21:12:27] <jaawerth> well, it's all based on the digest cycle
[21:12:31] *** elrabin_ has joined #angularjs
[21:12:45] <jaawerth> when you say "intermittent" do you mean sometimes it works an sometimes it doesn't, or it's blank for a bit and then it selects the right one?
[21:13:07] <jaawerth> also... you said something about it being in a directive?
[21:13:14] *** marr has joined #angularjs
[21:13:14] <robdubya> yeah timing shuoldnt be an issue unless you're doing something wack
[21:13:39] *** fedenunez has quit IRC
[21:13:42] <jaawerth> yeah. if you've got race conditions, you'd want to be using promises to avoid them
[21:13:50] <subone> For the times that it displays correctly, it seems to go from the default option directly to the correctly selected value based on the model. When it doesn't display is goes right from the default option to blank
[21:14:01] <subone> visually
[21:14:13] <jaawerth> where is the data for the pre-selected option coming from?
[21:14:23] <jaawerth> and when it goes blank, are all of your options still there?
[21:14:28] <subone> ng-model="contact.type"
[21:14:46] <jaawerth> is contact.type an object or a primitive?
[21:15:10] <subone> primitive
[21:15:12] *** PointBlank has quit IRC
[21:15:18] *** Ix-Xitan has joined #angularjs
[21:15:18] *** Ix-Xitan is now known as PointBlank
[21:15:23] *** travm has quit IRC
[21:15:31] <subone> Which is why I used type.name as type.name
[21:15:31] *** tristanp has quit IRC
[21:15:42] *** elrabin has quit IRC
[21:16:16] *** tristanp has joined #angularjs
[21:16:31] *** cthrax has joined #angularjs
[21:16:33] *** travm has joined #angularjs
[21:16:41] <subone> and as I have been troubleshooting I looked into the way select directive is setup and it needs that "select as" for it to test the value as a primitive like this, which works, it correctly identifies the selected value every time, but for some reason it isn't displayed
[21:17:00] *** vlad_starkov has quit IRC
[21:17:19] *** blahsphemer has quit IRC
[21:17:23] <robdubya> not doing anything wacky like setting the value from a non-angular context?
[21:18:09] <robdubya> food time, i shall return
[21:18:43] *** besson3c has quit IRC
[21:18:57] <jaawerth> subone: like robdubya said, where are you getting the data from in the controller? is it something async?
[21:19:29] <subone> Yes, Contact.get({ id: contact }) where Contact is a $resource
[21:19:55] <jaawerth> are you setting it using the $resource data directly, or the $promise?
[21:20:30] <subone> $scope.contact = Contact.get({ id: someId })
[21:20:31] *** yelvert has quit IRC
[21:20:39] <mylordi> how can link reach the controller $scope from it's isolate scope
[21:21:32] <subone> mylordi: require: '^controllerName'
[21:21:43] *** ChrisC_ has joined #angularjs
[21:21:52] *** kenhowardpdx has joined #angularjs
[21:22:15] *** cthrax has quit IRC
[21:22:48] <mylordi> subone: the controller is the controller of this same directive -- nameless(?)
[21:23:03] *** pspfolio has joined #angularjs
[21:23:30] <subone> mylordi: if you have a controller on the same directive it's name should be the name of the directive I think
[21:23:47] <subone> but I don't think you'll need the ^ in that case
[21:23:47] *** Oddman has quit IRC
[21:24:37] <subone> unless you are talking about having this directive nested in itself
[21:25:14] *** mlpug has quit IRC
[21:25:24] *** travm has quit IRC
[21:25:49] <mylordi> my directive baLikes is not defined.. would I have to inject it? but..
[21:25:49] *** codeurge has quit IRC
[21:26:00] *** nuizzy has quit IRC
[21:26:22] <mylordi> then I get unknown provider.. if I try to inject this directive in this directive
[21:26:48] <mylordi> e.g. .directive('baLikes', function(baLikes,...
[21:27:26] <subone> no not injecting a service
[21:27:26] <mylordi> I tried scope.$parent also.. no error, but it didn't seem to change the controller's $scope.. not sure why
[21:27:56] *** travm has joined #angularjs
[21:28:00] <jaawerth> subone: http://plnkr.co/edit/NN6zcGl70TWJUXcPisKe?p=preview
[21:28:03] *** Aliks has quit IRC
[21:28:10] <subone> is your directive in configuration format? e.g. return { restrict: 'A', link: (){}}
[21:28:13] <mylordi> subone, I want link to talk to change a variable in the same directives controller $scope
[21:28:18] <mylordi> yes
[21:28:21] <jaawerth> subone: that's your issue. a $resource's .get method gets you a resource object and asynchronously populates it with the data
[21:28:21] *** Manaus has quit IRC
[21:28:25] <mylordi> isolate scope for now
[21:28:37] *** Aliks has joined #angularjs
[21:28:39] <subone> jaawerth: Why is that an issue?
[21:28:55] *** cytg_ has quit IRC
[21:29:22] <jaawerth> subone: because if you're trying to set your model to the resource object that won't match, and if you try to set it to a property of the object, it's going to pass it undefined because it's trying to access the property before the data has come back
[21:29:39] *** caitp has quit IRC
[21:29:42] *** younqcass has quit IRC
[21:29:58] *** mspier|away is now known as mspier
[21:30:25] *** dcherman has quit IRC
[21:30:42] <jaawerth> subone: You could probably work around this by not using "item.name as item.name" and instead using the entire object but using "track by" so it uses a property for the comparison
[21:30:44] *** WebDevOfDoom has joined #angularjs
[21:30:55] <mylordi> so how do I access $scope from an isolate scope link directive's link function?
[21:31:04] <jaawerth> BUT I'm not sure how the async stuff would respond - I find using promises (like in my plunk) simpler
[21:31:29] <jaawerth> mylordi: eh? the link function gets the scope as a param, $scope is just a service for accessing a scope in a controller
[21:31:30] *** Helzibah_ is now known as Helzibah
[21:31:34] *** Fishy has quit IRC
[21:31:48] <jaawerth> mylordi: do you mean the parent's scope?
[21:31:59] <mylordi> jaawerth: i want my controller to be able to access a variable set in my link function
[21:32:08] *** ChrisC_ has left #angularjs
[21:32:35] *** senayar has joined #angularjs
[21:32:45] <mylordi> my link function uses an isolate scope variable to set a value which I'd like to access from my controller (for $rootScope.$on)
[21:33:06] *** Aliks has quit IRC
[21:33:21] *** MalfaitRobin has quit IRC
[21:33:21] *** blahsphemer has joined #angularjs
[21:33:23] <jaawerth> hrm.. what's the exact use-case?
[21:33:24] <Fenikkusu> Finally got to the bottom of my issue. Apparently $http flips out somehow if you do var foo = $http['get']; foo(...)
[21:33:28] <jaawerth> and where does $rootScope.$on come in?
[21:33:28] *** travm has quit IRC
[21:33:53] *** travm has joined #angularjs
[21:33:56] <Fenikkusu> Though it could be $httpBackend
[21:34:13] <jaawerth> not saying you're doing it wrong necessarily, because I don't know the use-case, but 9 times out of 10, scope events are not the best tool for the job in angular
[21:34:36] *** Oddman has joined #angularjs
[21:35:00] *** dcherman has joined #angularjs
[21:35:07] *** IvailoStoianov has quit IRC
[21:35:21] *** iribarne has joined #angularjs
[21:35:24] *** nahoskins has joined #angularjs
[21:35:24] *** WebDevOfDoom has quit IRC
[21:35:47] *** Uti-B has joined #angularjs
[21:35:56] <senayar> mylordi: if you want to access value from your controller just use $scope.$emit in your directive and $scope.$on into your controller
[21:36:00] <chr1stopher> hmm i would love to combine ngclass with ngrepeat and use the index of the repeat in my class; would be really happy if anybody could have a look at my snippet: https://piratepad.ca/p/U3KsLIZLgd did not figure it out till now
[21:36:07] *** TommyO has quit IRC
[21:36:11] *** Linell has joined #angularjs
[21:36:21] <mylordi> jaawerth, I get a likesCount passed to baLikes directive, it's used in link function. I listen on changes for it in controller
[21:36:26] <mylordi> it all works now
[21:36:29] *** PointBlank has quit IRC
[21:36:43] *** v2zz has quit IRC
[21:36:46] *** vlad_starkov has joined #angularjs
[21:36:47] *** cakirke has joined #angularjs
[21:36:52] *** Uti-B has quit IRC
[21:36:52] <mylordi> I called a setter function $scope.setSid(sid) that I put in controller, and called that from the link
[21:37:00] *** ChadStrat has quit IRC
[21:37:11] *** Ix-Xitan has joined #angularjs
[21:37:11] *** Ix-Xitan is now known as PointBlank
[21:37:16] <mylordi> senayar: good idea
[21:37:34] *** Hestil has joined #angularjs
[21:37:43] *** ChadStrat has joined #angularjs
[21:37:48] *** travm has quit IRC
[21:37:48] *** syphar_ has quit IRC
[21:38:00] *** syphar_ has joined #angularjs
[21:38:01] *** vbabiy has quit IRC
[21:38:14] <jaawerth> hehe
[21:38:30] *** platonic has quit IRC
[21:38:31] *** jonathanpglick has quit IRC
[21:38:31] <jaawerth> beyond a certian point if you want directive-to-parent communication it makes more sense to just use inherited scope instead BUT
[21:38:35] *** vbabiy has joined #angularjs
[21:38:45] *** syphar_ is now known as syphar
[21:38:48] <jaawerth> another thing I've done to expose a full API is copy how angular made the <form> directive with ngModel
[21:38:48] *** travm has joined #angularjs
[21:38:53] *** syphar has quit IRC
[21:39:00] *** tristanp has quit IRC
[21:39:04] *** syphar has joined #angularjs
[21:39:48] <jaawerth> IE, I check a property set on the view, and expose the directive's controller to scope.$parent[attrName]
[21:39:59] <jaawerth> but that's pretty overly complicated and you'd only want to do that if you want to expose a complex API
[21:40:03] *** TheAceOfHearts has quit IRC
[21:40:37] <BobbieBarker> FACEPUNCH
[21:40:46] *** morenoh149 has quit IRC
[21:41:55] *** whatadewitt has quit IRC
[21:42:05] *** MalfaitRobin has joined #angularjs
[21:42:19] *** tristanp has joined #angularjs
[21:43:15] *** phrozensilver has joined #angularjs
[21:43:19] *** renlo has quit IRC
[21:43:37] *** phrozensilver has quit IRC
[21:44:02] *** phrozensilver has joined #angularjs
[21:44:21] *** pspfolio has quit IRC
[21:44:30] <SchizoDuckie> chr1stopher: http://plnkr.co/edit/YGxMXK8KD5PnvvUReUhk?p=preview
[21:46:11] *** cacts has joined #angularjs
[21:46:27] *** renlo has joined #angularjs
[21:47:16] <chr1stopher> SchizoDuckie: thank you. is this needed "track by $index" ?
[21:47:30] *** merobertsjr has quit IRC
[21:47:47] *** balr0g has quit IRC
[21:48:00] *** merobertsjr has joined #angularjs
[21:48:21] *** ngbot has joined #angularjs
[21:48:22] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/OVd4IQ
[21:48:22] <ngbot> angular.js/master 2ff7edf Rus1: docs(ngInclude): replace <tt> with <code>...
[21:48:22] *** ngbot has left #angularjs
[21:48:35] <mylordi> another issue: I see class="ng-binding" on a div, and I didn't put it there. It's changing my state/url, not sure where it's coming from.. any ideas?
[21:48:44] *** ngbot has joined #angularjs
[21:48:44] <ngbot> [angular.js] caitp pushed 1 new commit to v1.3.x: http://git.io/obHU3Q
[21:48:45] <ngbot> angular.js/v1.3.x b839f73 Rus1: docs(ngInclude): replace <tt> with <code>...
[21:48:45] *** ngbot has left #angularjs
[21:48:56] *** ngbot has joined #angularjs
[21:48:57] <ngbot> [angular.js] caitp pushed 1 new commit to v1.2.x: http://git.io/RITQbg
[21:48:57] <ngbot> angular.js/v1.2.x 3cbf542 Rus1: docs(ngInclude): replace <tt> with <code>...
[21:48:57] *** ngbot has left #angularjs
[21:49:18] <mylordi> nvm, found.. user error.. thx inspector
[21:49:21] *** caitp has joined #angularjs
[21:49:21] *** Sky[x] has quit IRC
[21:49:46] *** jasonp has joined #angularjs
[21:49:48] *** Sky[x] has joined #angularjs
[21:50:13] *** MalfaitRobin has quit IRC
[21:51:36] *** startupality has quit IRC
[21:52:02] *** saucey has quit IRC
[21:52:12] <SchizoDuckie> nope chr1stopher, it's added automagically
[21:52:18] *** startupality has joined #angularjs
[21:52:39] <SchizoDuckie> I just added it there to show that it's creating an $index variable
[21:52:41] <chr1stopher> SchizoDuckie: ok. works great. thank you
[21:53:04] <SchizoDuckie> yer welcome :)
[21:54:16] <macabre> i'm using ui-bootstrap and having some issues with modals. i'm not sure exactly why $scope.dp is undefined inside the modalInstance promise: https://gist.github.com/tjq1/ca7d3b3a4a2ef0cf78eb
[21:54:49] *** jacuqesdancona has joined #angularjs
[21:54:50] *** Oddman has quit IRC
[21:55:04] *** ajenkins has joined #angularjs
[21:56:30] *** codeurge has joined #angularjs
[21:56:55] *** Trow has quit IRC
[21:57:07] *** earthquake has joined #angularjs
[21:57:16] *** PointBlank has quit IRC
[21:57:40] <jhooks> macabre because it is on the $scope with the open method, and not the scope of the dialog/modal
[21:57:52] *** whunt has joined #angularjs
[21:57:54] *** Ix-Xitan has joined #angularjs
[21:57:54] *** Ix-Xitan is now known as PointBlank
[21:58:46] <mylordi> href and ng-href aren't taking me anywhere.. i see the destination url in the bottom left of browser, just not going there..
[21:58:47] <mylordi> ideas?
[21:58:54] <jhooks> macabre pass the RESULT of the promise with the "close" method
[21:58:59] *** sl33k_ has quit IRC
[21:58:59] *** Skrypter has joined #angularjs
[21:59:10] *** jacuqesdancona has quit IRC
[22:00:47] *** nuizzy has joined #angularjs
[22:01:45] *** teddyp1cker has quit IRC
[22:01:54] <macabre> jhooks: so move the result up to the close method?
[22:02:09] *** whunt_ has joined #angularjs
[22:02:50] *** Linell has quit IRC
[22:03:35] *** bmac has joined #angularjs
[22:03:43] *** titanomachy has quit IRC
[22:03:53] *** SargoDarya has joined #angularjs
[22:04:53] *** whunt has quit IRC
[22:05:27] *** nickgs has quit IRC
[22:06:55] *** whunt_ is now known as whunt
[22:07:01] *** ajenkins has quit IRC
[22:07:20] *** nickgs has joined #angularjs
[22:07:28] *** travm has quit IRC
[22:07:38] *** Trow has joined #angularjs
[22:08:34] *** nemothekid has joined #angularjs
[22:09:09] *** leolrrj has quit IRC
[22:09:16] *** PrinceAMD[Work] has quit IRC
[22:09:24] *** Somatt_ has joined #angularjs
[22:10:01] *** travm has joined #angularjs
[22:10:55] *** chr1stopher has quit IRC
[22:12:02] *** titanomachy has joined #angularjs
[22:12:27] *** livingstn has joined #angularjs
[22:13:39] *** leolrrj has joined #angularjs
[22:13:54] *** merobertsjr has quit IRC
[22:14:26] *** ShaiTan has quit IRC
[22:14:43] <robdubya> ui-bootstrap's modals are by far the best implementation out there.
[22:15:10] *** grumpyOldRussian has quit IRC
[22:15:12] <jaawerth> I'm kind of interesting in using material's bottomsheet in place of a modal for some things
[22:15:12] *** evotuned has quit IRC
[22:15:16] *** asheshambasta has quit IRC
[22:15:23] <jaawerth> er, interested*
[22:15:59] <robdubya> if they're like ionic's, good luck
[22:16:08] <jhooks> macabre whatever you pass as an argument to the close method will be the result in the success handler of the promise's then method
[22:16:17] <nahoskins> anyone got any opinion on sailsjs
[22:16:25] <nahoskins> or that loopback thing
[22:16:26] <robdubya> never heard of it
[22:16:31] <nahoskins> its ORM on node
[22:16:31] <robdubya> ;-)
[22:16:33] <jaawerth> you card, you
[22:16:45] *** s00pcan has quit IRC
[22:16:48] <robdubya> its hot like fire nahoskins
[22:16:55] <nahoskins> hot like fire!
[22:16:58] <renlo> do you guys make it so that xsrf token headers are required for get requests (user data), or just for posts
[22:17:04] *** besson3c has joined #angularjs
[22:17:12] <jaawerth> robdubya is the guy when it comes to integrating angular and sails
[22:17:19] <nahoskins> oh yeah
[22:17:29] <nahoskins> you gots you a git repo to fork
[22:17:54] <robdubya> https://github.com/balderdashy/angularSails
[22:18:07] *** horsecowdog has joined #angularjs
[22:18:09] <nahoskins> there were some guys making noises about sails not being "professional" enough for production
[22:18:12] *** nemothekid has quit IRC
[22:18:14] *** iribarne has quit IRC
[22:18:17] <robdubya> those guys are muppets
[22:18:22] <nahoskins> thats what i thought
[22:18:22] *** wallerdev has quit IRC
[22:18:36] <robdubya> my job today (when i'm done with my real job) is to finish off the .11 upgrade / branch
[22:18:40] *** senayar has quit IRC
[22:19:04] <jaawerth> robdubya: oh hey.. you might just say "use sails!" but I want your thoughts on this. I'm building an API model for a specific product's API, but I want to be able to reuse both on Angular and node. Was thinking I would either use $http and $interpolate or lodash templates depending on platform (and use node-request) OR wrap $resource.. but if I did that reusing would be tough. Know of any node API consumption modules that would behave closely enough to an
[22:19:04] <jaawerth> gular for my needs?
[22:19:16] <robdubya> build sails in dart!
[22:19:19] <robdubya> wat
[22:19:20] <robdubya> reading
[22:19:23] <jaawerth> lol
[22:19:27] <jaawerth> sorry, wall of text
[22:19:51] *** Menorah has joined #angularjs
[22:20:02] <robdubya> i'm partial nowadays to the new fetch polyfill
[22:20:12] <robdubya> which is fetch(url,options).then(...
[22:20:14] *** AWAW has quit IRC
[22:20:21] <renlo> can anyone familiar with protecting against xsrf answer this question: is it important to include some form of xsrf tokens for get requests? Currently I have it set up for posts only, with my application GETs just get the data (query strings dont change anything). Is it still important to protect against xsrf for get requests?
[22:20:39] <jaawerth> huh, fetch didn't even occur to me
[22:20:39] *** nickgs has quit IRC
[22:20:43] *** asheshambasta has joined #angularjs
[22:20:47] *** Lewix has quit IRC
[22:20:51] *** AWAW has joined #angularjs
[22:20:55] <jaawerth> and using es-6 promises?
[22:20:59] <robdubya> wont work on node, but it seems like a solid interface to mock
[22:21:01] <nahoskins> robdubya: you are building sails in dart? eh?
[22:21:06] *** dra_ has joined #angularjs
[22:21:09] *** horsecowdog has quit IRC
[22:21:13] *** Shai-Tan has joined #angularjs
[22:21:30] <robdubya> for node -> use request + bluebird
[22:21:38] <jaawerth> that was my backup plan, yeah
[22:21:49] <jaawerth> either request or https://www.npmjs.com/package/rest
[22:21:59] <robdubya> the key would be that both your node request and your angular request library use the same interface
[22:22:08] <robdubya> then you can di to swap em
[22:22:09] <jaawerth> yeah
[22:22:24] <jaawerth> luckily, $interpolate and _.template are close enough that I can swap them without issues
[22:22:28] <jaawerth> (or just use lodash on both)
[22:22:48] <jaawerth> or just regexps, but I think interpolation would be more flexible
[22:23:20] *** TheAceOfHearts has joined #angularjs
[22:23:24] *** Aliks has joined #angularjs
[22:23:24] <robdubya> my fav thing in es6 so far is string literals
[22:23:32] <jaawerth> as for bluebird, I never use anything else on node. I've recently been thinking about experimenting with adding lodash methods to $q to give it some of my favorite bluebird functions
[22:24:09] <robdubya> `<div>${this.name}</div>`
[22:24:11] <robdubya> madness
[22:24:12] *** SargoDarya has quit IRC
[22:24:15] <jaawerth> OR, so I don't have to mess with $qProvider, trying to write some lodash mixins to handle it
[22:24:26] <jaawerth> that's pretty cool. I clearly need to start ES6ing it up
[22:24:38] <jaawerth> you don't run into any performance issues with all those polyfills?
[22:25:19] <robdubya> in BahamutWC|Work and i's highly scientific testing, fetch seems to perform as well as $http if not better
[22:25:26] *** {DV8} has joined #angularjs
[22:25:45] <jaawerth> interesting
[22:25:46] <robdubya> the trick being that its outside of the digest loop, which is both a blessing and a curse
[22:25:50] <jaawerth> what about the other stuff?
[22:26:03] <jaawerth> you do webcomponent stuff now too, right? things outside of angularland?
[22:26:05] *** codeurge has quit IRC
[22:26:06] *** Sky[x] has quit IRC
[22:26:08] <robdubya> the 'hit', if any, comes from async loading
[22:26:38] <jaawerth> oh, you don't just wrap it into the digest loop with a service that calls $apply?
[22:26:39] <robdubya> but i haven't noticed any big issues with stuff, and i'm using the shit out of let and classes and whatnot
[22:26:56] <subone> jaawerth: I was able to replicate it. It occurs when `resource` is resolved before `types`: http://plnkr.co/edit/LlewMiwJoCUZ03QyIWsa?p=preview
[22:27:05] *** nemothekid has joined #angularjs
[22:27:05] <robdubya> still working on the cleanest pattern to integrate
[22:27:15] *** aminRX has quit IRC
[22:27:18] <robdubya> right now i'm doing a doStuff().then(whatever).finally(triggerDigest)
[22:27:20] <jaawerth> honestly I'd love to start working outside of the dirty checking
[22:27:34] *** jpstone has quit IRC
[22:27:44] *** Somatt_ has quit IRC
[22:27:54] <robdubya> we're getting all performance nutty so having a bit of control of digest is nice
[22:28:01] *** jMyles has quit IRC
[22:28:03] <nahoskins> took a look at the repo you sugested
[22:28:04] <jaawerth> since I never have to support IE8 for internal stuff, I'm really tempted to try polishing that Object.observe thing I was playing with a couple weeks kago and patching it into the digest cycle
[22:28:04] <subone> jaawerth: notice in that example how "Bcd" is selected="selected", but still does not display in the select box
[22:28:18] <robdubya> basically i'm implementing our "platform" level code entirely in ES6
[22:28:23] <subone> Is that a browser issue maybe?
[22:28:30] *** younqcass has joined #angularjs
[22:28:39] <robdubya> so if we decide to go angular2, polymer, famous, w/e, its plug and play
[22:28:45] <robdubya> vs unfucking 11ty factories
[22:28:55] <subone> hmm, it does work in firefox
[22:28:58] <subone> seems like a bug
[22:29:23] *** pilva1 has quit IRC
[22:29:44] *** Sadin has joined #angularjs
[22:30:13] *** Shai_Tan has joined #angularjs
[22:31:01] *** aminRX has joined #angularjs
[22:31:05] <jaawerth> subone: that's because the resource itself returns immediately, that's how $resource works
[22:31:29] <subone> What's that?
[22:31:31] <robdubya> stupid $resource
[22:31:42] *** jMyles has joined #angularjs
[22:31:45] *** whunt has quit IRC
[22:31:46] <jaawerth> resource returns the resource object immediately, and then populates it with the data when the promise is resolved
[22:31:53] <subone> jaawerth: note, if you change the timeouts so that types returns before resource it works fine
[22:32:00] *** iribarne has joined #angularjs
[22:32:02] <robdubya> Foos.query() -> returns empty array sync -> then fills it in later
[22:32:14] <jaawerth> yeah, we're talking about how ngResource works, subone
[22:32:22] <subone> My guess is you don't want different results in different browsers, which is what I'm seeing
[22:32:48] <subone> I know how ngResource works... was my mock not sufficient?
[22:33:05] *** EQp has joined #angularjs
[22:33:24] <subone> Try it in Chrome and in others http://plnkr.co/edit/LlewMiwJoCUZ03QyIWsa?p=preview
[22:33:34] *** Shai-Tan has quit IRC
[22:33:56] *** Lewix has joined #angularjs
[22:33:56] *** Lewix has joined #angularjs
[22:33:59] *** busticated has joined #angularjs
[22:34:37] *** breakingthings has quit IRC
[22:34:40] <subone> Are you guys seeing what I'm describing?
[22:34:43] *** apparition168 has quit IRC
[22:35:09] <jaawerth> subone: I am. But my point is that if you use the promise like I am here (I updated it since you last saw it), it works exactly as expected http://plnkr.co/edit/NN6zcGl70TWJUXcPisKe?p=preview
[22:35:15] *** apparition168 has joined #angularjs
[22:35:37] <EQp> I'm looking for a date/time picker that will tie into angular 1.3.x. I've seen ui-bootstrap, but that requires 1.2.x, and I'm already using another module that requires 1.3.x. Anything else out there that is as good as ui-bootstrap that works with 1.3.x?
[22:35:45] <jaawerth> here I'm using the bare resource object that gets returned by the promise
[22:35:52] <robdubya> date pickers universally suck
[22:35:53] <jaawerth> by the one returned by the promise is pre-populated
[22:35:54] *** PointBlank has quit IRC
[22:36:07] *** DV8_ has joined #angularjs
[22:36:15] <Perl> i just use angular material for UI
[22:36:15] *** Ix-Xitan has joined #angularjs
[22:36:16] *** Ix-Xitan is now known as PointBlank
[22:36:18] <Perl> because praise duarte
[22:36:22] <Perl> it has a nice date picker too
[22:36:37] <jaawerth> oh, and I"m using "track by" to compare the objects by a property while still treating the ng-model as the entire object
[22:36:50] *** Oddman has joined #angularjs
[22:37:00] <jaawerth> but those other bits are minor details, using the $promise will fix it with either approach
[22:37:52] *** cthrax has joined #angularjs
[22:38:27] <jaawerth> subone: so basically I"m saying the assumptiong that ngResource's docs like to claim, that the async nature of how the objects populate isn't a big deal, is really just not true in every case and it's something of an anti-pattern with async. In fact, that's partly why a lot of people aren't huge fans of $resource. When I use it, I pretty much always use the promise
[22:38:54] <jaawerth> isn't a big deal because of how the view will just update when the data populates, I mean
[22:38:57] *** platonic has joined #angularjs
[22:39:11] <subone> jaawerth: Are you saying "select as" is useless?
[22:39:17] *** asheshambasta has quit IRC
[22:39:19] <jaawerth> lol
[22:39:25] *** livingstn has quit IRC
[22:39:25] <jaawerth> nah, it depends on what you're doing
[22:39:43] *** {DV8} has quit IRC
[22:40:16] *** merobertsjr has joined #angularjs
[22:40:21] <subone> My understanding is that this is precisely what it is for. The code is implemented in such a way, and everything in the logic and the DOM says it should be working, and it does in fact work in Firefox, but not in Chrome.
[22:41:08] *** earthquake has quit IRC
[22:41:38] *** KushS has joined #angularjs
[22:42:10] <EQp> I'm not seeing any date/time picker on angular material's site. Interesting stuff otherwise thou.
[22:42:25] <Perl> oh, crap, that was material-ui
[22:43:16] <Perl> http://material-ui.com/#/components/date-picker
[22:43:22] *** z3n2 has joined #angularjs
[22:43:23] <Perl> uses reactjs though, iirc
[22:43:24] *** Reskp has quit IRC
[22:43:38] <EQp> Yah I see that...hmm...
[22:43:42] <Perl> sad
[22:43:46] *** matheusrocha89 has joined #angularjs
[22:43:51] <Perl> because everything about it looks great
[22:44:34] *** platonic has quit IRC
[22:44:34] <subone> The code is implemented such that if there is a selectAs, the same expression is evaluated and is used in the comparison with the viewValue (hence using "track by" with "select as" is redundant and not recommended). If I run through that code it returns true on the correct element, and the DOM shows that that element does in fact have a 'selected' attribute, but in Chrome it does not display the value. Maybe if I "refresh" the availabl
[22:44:50] <jaawerth> you got cut off
[22:44:56] *** dc_ has quit IRC
[22:45:03] <subone> If I run through that code it returns true on the correct element, and the DOM shows that that element does in fact have a 'selected' attribute, but in Chrome it does not display the value. Maybe if I "refresh" the available types ("array" part of the ngoptions) it will work?
[22:45:29] <subone> I just got a report, it also shows blank in IE11
[22:46:09] <robdubya> its probably a timing issue in the way they handle promises/async stuff, if i had to guess
[22:46:40] *** dc_ has joined #angularjs
[22:46:43] <subone> What's the easiest way to mark a scope model as dirty without changing it
[22:46:48] <EQp> here's one maybe: https://github.com/dalelotts/angular-bootstrap-datetimepicker
[22:47:10] *** phrozensilver has quit IRC
[22:47:16] *** mmealling has quit IRC
[22:47:37] *** MuffinMan` has joined #angularjs
[22:47:54] *** whunt has joined #angularjs
[22:48:03] *** Lewix has quit IRC
[22:48:59] *** gunn has quit IRC
[22:49:53] *** rud has quit IRC
[22:50:30] <jaawerth> subone: I'd have to check the docs, but IIRC "select as" is not the same as "foo.bar as foo.baz". Also, using "track by" with your plunk fixes it
[22:50:40] *** iribarne has quit IRC
[22:50:46] *** evotuned has joined #angularjs
[22:50:57] *** morenoh149 has joined #angularjs
[22:51:01] <jaawerth> subone: like so http://plnkr.co/edit/m9yGfiyQJWYNpfM0YhnF?p=preview
[22:51:30] <jaawerth> subone: actually ignore that first thing I said
[22:51:44] <jaawerth> subone: on account of it being stupid
[22:51:44] <jaawerth> heh
[22:51:50] *** sri has joined #angularjs
[22:52:11] *** tinyfly has quit IRC
[22:52:14] *** sri is now known as Guest68708
[22:52:26] *** Siraris has joined #angularjs
[22:52:27] *** mrru has joined #angularjs
[22:52:41] <Siraris> Does anyone have familiarity with testing controllers used with directives in jasmine?
[22:52:59] <Siraris> I’m having trouble getting Jasmine to find the controller I created, and I feel like I’m doing something wrong
[22:53:18] <Guest68708> anyone knows how to stop url change on each location.path ?
[22:53:33] *** adben- has joined #angularjs
[22:53:34] *** senayar has joined #angularjs
[22:53:34] *** KushS has quit IRC
[22:53:34] <Guest68708> I want to navigate to new view but url shouldn't change
[22:53:37] *** asheshambasta has joined #angularjs
[22:53:53] <Fenikkusu> What is the proper way to invalidate a promise success?
[22:54:22] <Guest68708> anyone knows how to restrict url change on location.path ?
[22:54:36] <Guest68708> I dont want url to be replaced on location.path call
[22:54:43] *** Sky[x] has joined #angularjs
[22:55:07] *** nickgs has joined #angularjs
[22:55:13] <subone> jaawerth: The docs recommend not using them together, can you tell me why if this works as you say it does?
[22:55:26] <jaawerth> subone: it's ironic, right? heh
[22:55:29] <jaawerth> I'm looking at that now
[22:55:37] <jaawerth> that is, I'm working through why it's happening
[22:55:50] *** jaredwilli has quit IRC
[22:55:55] <subone> Thank you for your attention
[22:55:55] <jaawerth> per the docs' example, the reason it isn't causing *problems* here is that I'm using the same "track by" as the "as" statement
[22:56:03] *** merobertsjr has quit IRC
[22:56:04] <jaawerth> so it doesn't cause the issue noted in the docs
[22:56:04] *** ries has quit IRC
[22:56:11] <jaawerth> however, it's true that you shouldn't need both
[22:56:17] *** JohnBat26 has quit IRC
[22:56:49] *** asheinfeld has quit IRC
[22:57:17] *** Fishy has joined #angularjs
[22:57:50] *** iribarne has joined #angularjs
[22:58:00] *** travm is now known as travm-afk
[22:58:34] *** ximenean___ has quit IRC
[22:58:54] *** travm-afk is now known as travm
[22:59:13] *** codeurge has joined #angularjs
[22:59:14] <subone> jaawerth: If I take your last example and reverse the timeouts so that the types resolve before the resource, it breaks it http://plnkr.co/edit/wb7o8vZmIpDNf8CoaKMt?p=preview
[22:59:16] <jaawerth> oh wait
[22:59:24] <subone> So, it is dependant on which resolves first
[22:59:42] <subone> same as before, just slightly different results
[23:00:22] <subone> with mine, depending on the order of resolves, I get blank or correctly selected, yours is either correctly selected or the default option
[23:00:24] *** BillCriswell has quit IRC
[23:00:25] <jaawerth> yeah sorry, I was missing the part where you're populating both the selected item AND the options async
[23:00:30] <Siraris> Does anyone have familiarity with testing controllers used with directives in jasmine? I’m having trouble getting Jasmine to find the controller I created, and I feel like I’m doing something wrong.
[23:00:40] *** leolrrj has quit IRC
[23:00:41] <jaawerth> that's certainly what's throwing it off
[23:01:07] *** leolrrj has joined #angularjs
[23:01:16] *** Hestil has quit IRC
[23:01:40] *** fotoflo has joined #angularjs
[23:01:49] *** ejb has quit IRC
[23:02:00] <KettleCooked> I want to do some jQuery stuff on my DOM stuff in my Directive stuff, where ought I put this stuff? In the link method perchance?
[23:02:04] <fotoflo> Anyone here familiar with using resolve in ui-router?
[23:02:23] *** komlev has quit IRC
[23:02:29] <subone> KettleCooked: depends
[23:02:43] <subone> KettleCooked: Do you need scope?
[23:02:55] <robdubya> fotoflo yes
[23:03:18] <fotoflo> robdubya: ah yes, we were talking about this a few days ago.
[23:03:19] <KettleCooked> hmm.. my 'component' that consists of my Directive and a module along with it has everything it needs data-wise, so no?
[23:03:26] <KettleCooked> subone, I'm gonna go with no
[23:03:48] *** rtpg has joined #angularjs
[23:04:07] *** cthrax has joined #angularjs
[23:04:09] *** RedOrangeZ2 has joined #angularjs
[23:04:33] <fotoflo> i have a funciton in my userService called isAuthenticated() which returns a promise with either a user object, or false. I would like to predicate the ‘main’ state’s loading on that. If it returns false change state to ‘login’
[23:04:35] <subone> KettleCooked: Do you need other directives to be able to communicate with this one before the DOM changes should occur?
[23:04:51] *** loverajoel has quit IRC
[23:05:00] *** arek_deepinit has joined #angularjs
[23:05:21] <KettleCooked> subone: I THINK not but I have no idea really since I'm designing and learning at the same time. Let's go with no, and I'll have to cross that bridge later if need b
[23:05:21] <robdubya> fotoflo so
[23:05:23] <robdubya> reject the promise
[23:05:32] <robdubya> then catch it in the $stateChangeError handler
[23:05:37] <robdubya> i thik i have a plunk of this, sec
[23:05:55] <robdubya> ps, they never restored my plunks, i lost like 2k of them :(
[23:05:55] *** FIFOd[a] has quit IRC
[23:05:58] *** RedOrangeZ has quit IRC
[23:06:03] <fotoflo> oy
[23:06:05] *** leolrrj has quit IRC
[23:06:14] <arek_deepinit> 2k plunks :D
[23:06:21] <subone> KettleCooked: Are you manipulating DOM outside of your directive? or just modifying your directive element? children?
[23:06:27] *** nickgs has quit IRC
[23:06:28] <BahamutWC|Work> 2k plunks...
[23:06:33] *** Snugug has quit IRC
[23:06:35] <fotoflo> thats a lot of plunks!
[23:06:45] <arek_deepinit> plunk'a'lot
[23:06:51] *** gunn has joined #angularjs
[23:06:56] <KettleCooked> subone: just the stuff within the directive
[23:06:59] <robdubya> i aint a player i just plunk a lot
[23:07:25] <KettleCooked> I basically have an input, that I want to do a $('.myInput').knob - which is a jquery plugin that turns it into a nice little knob
[23:07:39] <subone> ic
[23:07:40] *** grumpyOldRussian has joined #angularjs
[23:07:55] <KettleCooked> naturally I will have to have something else than that generic class since it would otherwise make ALL inputs with that class into knobs
[23:08:02] <KettleCooked> so that might be something to take into account
[23:08:06] <robdubya> fotoflo http://plnkr.co/edit/I03mXKCZpzupn8WAk0tH?p=info
[23:08:12] *** rtpg has quit IRC
[23:08:19] <fotoflo> reading
[23:08:41] *** OnkelTem has quit IRC
[23:09:08] *** RedOrangeZ2 has quit IRC
[23:09:33] <subone> KettleCooked: I'd say link is your winner then
[23:09:41] <arek_deepinit> KettleCooked: i guess You could create class based directive
[23:09:46] *** shackleford has quit IRC
[23:10:08] *** SFeser has quit IRC
[23:10:11] *** OnkelTem has joined #angularjs
[23:10:37] *** rileylark has quit IRC
[23:10:51] *** nickgs has joined #angularjs
[23:10:55] <KettleCooked> arek_deepinit, what would the benefit be? I have no problem creating them as it is now, it's just a matter of 'where do I put the code that jQuery-mods them?'
[23:11:27] *** JeffBuhrt has quit IRC
[23:11:31] *** Lewix has joined #angularjs
[23:11:47] *** cthrax has quit IRC
[23:11:56] *** cboden has quit IRC
[23:12:02] <arek_deepinit> KettleCooked: benefit is obvious You have it attached to all elements with class no need for attr
[23:12:21] <robdubya> just do <my-knob ng-model="foo.bar>
[23:12:23] <robdubya> and be done with it
[23:12:24] <subone> KettleCooked: I think what arek_deepinit means is that you could do restrict: 'A' and name the directive after the class to be knobbed, then you can do element.knob(), rather than have to search for it with jQuery again
[23:12:25] *** freeman42 has joined #angularjs
[23:12:59] <robdubya> huehue my knob
[23:13:03] <arek_deepinit> subone: nope i mean acually C for class
[23:13:20] <subone> er... yeah, my mistake
[23:13:23] <subone> mistyped that
[23:13:29] <arek_deepinit> subone: np:D
[23:13:29] <robdubya> its a custom element, treat it as such
[23:13:30] <subone> restrict: 'C'
[23:13:31] <subone> :)
[23:13:41] <KettleCooked> but, I can STILL do element.knob() right?
[23:13:51] <KettleCooked> without restricting
[23:13:58] <subone> KettleCooked: Assuming your directive was already on that element
[23:14:07] *** one_zero has joined #angularjs
[23:14:16] <KettleCooked> oh yes it is
[23:14:16] <robdubya> this thing? http://anthonyterrien.com/knob/
[23:14:26] <subone> then yeah, no reason to use jQuery there
[23:14:26] <jaawerth> subone: yeah anyway, this is a lot simpler than it looks
[23:14:41] <jaawerth> basically as you said, it's just that the ng-model is populated before the actual options
[23:14:55] <KettleCooked> robdubya, good guess! One of them I've looked at. But actually this one: http://www.domitable.com/static/side-projects/jquery-plugins/knobRot/demo.html
[23:14:57] <jaawerth> the way the various browsers select an item on the DOM is, I believe, different
[23:15:07] <subone> KettleCooked: link: function(scope, element, attrs) { element.knob(); }
[23:15:12] <jaawerth> and the browsers are not good at all about preserving the "selected" stuff
[23:15:13] *** asheshambasta has quit IRC
[23:15:25] <subone> ok
[23:15:27] <KettleCooked> Link it is. I shall now proceed to tweak my knob.
[23:15:28] <jaawerth> in other words, you just need to make sure the values are populated before the selection
[23:15:38] *** rupe120 has joined #angularjs
[23:15:40] <subone> ok
[23:15:41] <robdubya> which would be easy w/ promises
[23:15:49] <robdubya> not so easy with stupid $resource
[23:16:04] <arek_deepinit> resource :()
[23:16:15] <subone> Wish that was better described in the docs
[23:16:15] *** Essence has joined #angularjs
[23:16:17] <robdubya> oh snap, random thought. since angular2 is all darty and shit, i could write my core data thing in Dart for great justice
[23:16:49] <jaawerth> subone: yeah, it's an edge case they should probably add
[23:17:02] <jaawerth> ng-options in general could either stand to be simplified or explained at length
[23:17:04] *** elrabin_ has quit IRC
[23:17:11] <subone> So, basically it's broken if the availableOptions isn't a defined value
[23:17:15] *** bmac has quit IRC
[23:17:21] <fotoflo> robdubya: looking at your plunk, where does the User factory come from in the config i dont see it bieng injected.
[23:17:21] <arek_deepinit> jaawerth: ng-options is simple
[23:17:22] *** iribarne_ has joined #angularjs
[23:17:34] <robdubya> its injected in the resolve itself fotoflo
[23:17:38] *** elrabin has joined #angularjs
[23:17:43] <robdubya> line 9
[23:17:44] *** mrru has quit IRC
[23:17:51] <subone> I'd hardly call it an edge case, we do this constantly in app dev, get a list of things and get the users selection, show them
[23:18:07] <jaawerth> robdubya, arek_deepinit: well in this particular case, $resource is irrelevant. The issue occurs even if you use promises, if one promise resolves before the other
[23:18:15] *** horsecowdog has joined #angularjs
[23:18:19] <subone> arek_deepinit: You're welcome to help explain this behavior if it is so simple
[23:18:27] <jaawerth> you have to make sure you do some promise chaining to make sure that one value doesn't populate before the other
[23:18:36] <fotoflo> robdubya: hmm i see that, but how does it even get to that context?
[23:18:44] <robdubya> thats what i mean, would be easy to do the right flow with promises
[23:18:50] <jaawerth> oh, I agree
[23:18:58] <fotoflo> robdubya: ok ill shutup and try it :-)
[23:19:01] <robdubya> good idea :)
[23:19:08] <subone> jaawerth: But of course, I'd like to display all of the rest of the 'resource' even before the availableTypes have resolved
[23:19:24] *** bayousoft has joined #angularjs
[23:19:24] <arek_deepinit> jaawerth: why wont You sue all()?
[23:19:29] <jaawerth> but subone does have a point that it is a bit quirky that it works differently across browsers. Might stand to have a note to say you must populate your options before your ng-model value
[23:19:30] *** shackleford has joined #angularjs
[23:19:32] <arek_deepinit> *use lol
[23:19:44] <jaawerth> arek_deepinit: yeah, that's exactly what I'd do
[23:19:54] <robdubya> fotoflo you can do resolve: { user: [ 'User', function(User){ if it makes you feel better
[23:19:54] <jaawerth> I'm just acknowledging subone's point
[23:20:08] <fotoflo> oh i see
[23:20:08] <fotoflo> yes
[23:20:12] <jaawerth> (that this behavior should be documented)
[23:20:20] *** codeurge has quit IRC
[23:20:26] *** iribarne has quit IRC
[23:20:26] *** iribarne_ is now known as iribarne
[23:21:08] <subone> arek_deepinit: Are you suggesting I use $q.all() to restrict my $scope.resource from being set until after the list of types is resolved? Then I am prevented from displaying the rest of my resource
[23:21:22] *** SargoDarya has joined #angularjs
[23:21:52] *** bmac has joined #angularjs
[23:22:46] <subone> Anyway, I know there are work-arounds, I mean I can use ng-repeat and it works fine and avoids this issue entirely. But in my opinion, ng-options does not work as I'd expect, nor is it documented to that extent.
[23:23:04] *** ctanga has quit IRC
[23:23:13] <arek_deepinit> subone: but what is problem specifically?
[23:23:27] <subone> And since the documentation for ng-options claims it is less resource intensive than ng-repeat, you can see why i wanted to get it to work
[23:24:14] <fotoflo> robdubya: is there some reason for the underscores in those function names?
[23:24:16] <subone> arek_deepinit: http://plnkr.co/edit/LlewMiwJoCUZ03QyIWsa?p=preview
[23:24:27] <Lewix> jaawerth: what exaclty does the property resolve of $routes expect? a function? or a factory?
[23:24:32] <robdubya> fotoflo personal pref
[23:24:35] <Lewix> or a string?
[23:24:46] *** horsecowdog has quit IRC
[23:24:56] *** elrabin has quit IRC
[23:25:04] <robdubya> Lewix http://plnkr.co/edit/I03mXKCZpzupn8WAk0tH?p=info
[23:25:08] *** elrabin has joined #angularjs
[23:25:44] *** SargoDarya has quit IRC
[23:26:04] *** Slowintrepid has quit IRC
[23:26:07] <Lewix> robdubya: thanks so a function that return whatever
[23:26:08] <subone> arek_deepinit: Note how the "Bcd" option is selected in the DOM, but Chrome and IE11 show a blank (works in Firefox). If you reverse the timeouts so that resource resolves before types, it works fine.
[23:26:17] <Lewix> robdubya: i wish the documentation was clerarer
[23:26:23] <Lewix> clearer* on that end
[23:26:28] *** jaredwilli has joined #angularjs
[23:26:29] <robdubya> returns a *promise
[23:26:42] *** jonathanpglick has joined #angularjs
[23:26:44] *** Pookz has joined #angularjs
[23:26:52] *** jonathanpglick has quit IRC
[23:27:25] <jaawerth> subone: here's how I'd do it by the way http://plnkr.co/edit/m9yGfiyQJWYNpfM0YhnF?p=preview
[23:27:39] *** AWAW has quit IRC
[23:27:53] <Lewix> robdubya: i see- what does the doc mean by {string | function() }
[23:28:31] *** AWAW has joined #angularjs
[23:29:01] <subone> jaawerth: you broke retry
[23:29:09] <arek_deepinit> subone: why dont u use ng-selected?
[23:29:32] *** bayousoft has quit IRC
[23:29:36] <Lewix> robdubya: in your code, when do you call whatever you're resolving? User.authent
[23:29:43] *** HassanCehef has quit IRC
[23:29:52] <subone> arek_deepinit: because that means using ng-repeat. As I said I can do it fine with ng-repeat, it works fine, but I'd like to get the benefits ng-options suggests it has
[23:30:05] <jaawerth> subone: lol, forgot about retry
[23:30:11] *** JeffBuhrt has joined #angularjs
[23:30:13] *** rupe120 has quit IRC
[23:30:21] <subone> It just doesn't work at all as I'd expect. There's nothing in the docs that says one value should be set before the other
[23:31:00] <jaawerth> wait how did I break retry?
[23:31:07] *** bayousoft has joined #angularjs
[23:31:12] <jaawerth> it works for me
[23:31:15] *** JeffBuhrt has quit IRC
[23:31:15] *** merobertsjr has joined #angularjs
[23:31:16] *** iribarne has quit IRC
[23:31:34] <subone> jaawerth: I know there are work arounds, but shouldn't it just work the way I had it? This is a bunch of extra work
[23:31:38] *** PointBlank has quit IRC
[23:31:56] <jaawerth> if you're using promises in the first place, it's three extra lines of code to make sure things happen in the right order
[23:32:00] <jaawerth> that's why we always advocate promises
[23:32:27] *** Ix-Xitan has joined #angularjs
[23:32:27] *** Ix-Xitan is now known as PointBlank
[23:32:47] <fotoflo> Rob: I got it working! Youz a genius!
[23:32:59] <fotoflo> stiill have one problem though
[23:33:50] *** umib0zu has quit IRC
[23:33:56] *** Reskp has joined #angularjs
[23:34:11] <fotoflo> http://pastebin.com/RucK6yQX — how do i get me into the ChannelCtrl?
[23:35:04] *** jaredwilli has quit IRC
[23:35:08] <subone> The documentation states "ngOptions should be used when the <select> model needs to be bound to a non-string value". So, does that mean if my case is simpler and can use a string value I should use ng-repeat, where I won't get the "benefits such as reducing memory and increasing speed by not creating a new scope for each repeated instance"?
[23:36:09] <subone> I guess I should shut-up and check-in some code...
[23:36:11] <subone> lol
[23:36:11] *** sgen has joined #angularjs
[23:36:35] <robdubya> fotoflo function ChannelCtrl(me){ ...
[23:37:02] *** TommyO has joined #angularjs
[23:37:10] *** eburcat has joined #angularjs
[23:37:55] <Lewix> jaawerth: can you help me figure out how resolve work exactly - so far i only understand that it returns a promise, I just found out that it invoke whatever it returns. Also the doc talk about two different ways to use resolve that I don't understand
[23:38:55] *** oste has joined #angularjs
[23:38:58] *** nickgs has quit IRC
[23:39:07] <subone> I'm still at a loss for WHY one promise resolving before the other could cause this
[23:39:29] <jaawerth> it's about the options populating after the model
[23:39:32] *** oste has quit IRC
[23:39:49] <jaawerth> it's a quirk
[23:39:57] <jaawerth> the same thing will happen if you just make a "set types" and "set items" button
[23:40:15] *** oste has joined #angularjs
[23:40:18] <subone> but why? What does it matter when angular sets the element to selected?
[23:40:37] *** snurfery has joined #angularjs
[23:40:42] <snurfery> sup yall
[23:40:53] <jaawerth> I could handwave but the honest truth is I'd need to spend some time with the source to tell you for sure
[23:40:54] <oste> if i have two directives in my html, is there an easy way to make sure only one is binding?
[23:41:03] <subone> The browser should respond in kind. Under what circumstances would the DOM option element be selected, but the browser not display it?
[23:41:36] <oste> two of the same directives that is <span my-direcive=“doOnce()”></span>
[23:41:38] <subone> I'm going to try to look into it further
[23:41:39] <jaawerth> Lewix: Uh, well I probably don't have time to answer a bunch of questions (used up a lot on this ng-options thing, heh) but basically, a resolve is for unwrapping promises for you. When you use a resolve, your route/state and its controllers won't actually load until the promises are resolved and the data is ready for injection
[23:41:45] <oste> then i have it again <span my-direcive=“doOnce()”></span>
[23:42:07] <jaawerth> Lewix: this leaves you free to not have to juggle promises in your state's controllers themselves, and just work with the data, which is injected by the resolve
[23:42:16] <oste> trouble is, this directive gets fired twice - when i just want it fired once
[23:42:25] <oste> i cannot control how many times it appears in html
[23:43:22] <jaawerth> Lewix: that's why it also invokes whatever it returns. It waits on any promises for async stuff - its promise resolving is what triggers your state to fully load, and it will only do that it's got dta to provide
[23:43:27] *** phrozensilver1 has joined #angularjs
[23:43:29] <robdubya> weird, jaawerth, appears the work either way for me
[23:43:31] <robdubya> *to work
[23:43:43] <jaawerth> oh?
[23:43:54] *** arek_deepinit has quit IRC
[23:43:54] <jaawerth> regular chrome or dev chrome?
[23:44:02] *** MJD has quit IRC
[23:44:15] <robdubya> regular
[23:44:31] <robdubya> trying in canary
[23:44:44] *** knuckolls has joined #angularjs
[23:44:51] *** terakilobyte has joined #angularjs
[23:44:55] <robdubya> yep. fine in canary too
[23:45:09] <jaawerth> what the.. it's working for me now too
[23:45:22] <jaawerth> oh wait nevermind
[23:45:28] <jaawerth> forgot I had tinkered with the timing of things
[23:45:29] *** freeman42 has quit IRC
[23:45:29] <fotoflo> robdubya: you mean as an injectable when I load it?
[23:45:50] <jaawerth> robdubya: you mean THSI works? http://plnkr.co/edit/p7klNJ0rYRlha6t6h4gq?p=preview
[23:45:55] <jaawerth> THIS*
[23:46:07] *** s3shs has quit IRC
[23:46:16] <jaawerth> oh woops, I removed all the promisey stuff when I reverted it..
[23:46:33] <jaawerth> but still, if you change the timing so it's the otehr way around, it works
[23:46:34] *** soee has quit IRC
[23:46:59] <robdubya> http://plnkr.co/edit/njBqWb2LUcQnLUhI1fTX?p=preview
[23:47:14] <Lewix> jaawerth: thanks. great explanation
[23:47:43] *** z3n2 has quit IRC
[23:48:03] *** soee has joined #angularjs
[23:49:34] *** annlewis has quit IRC
[23:49:35] *** iribarne has joined #angularjs
[23:49:42] *** whunt_ has joined #angularjs
[23:49:45] *** zz_night-owl is now known as night-owl
[23:49:54] *** dc_ has quit IRC
[23:50:03] *** SFeser has joined #angularjs
[23:50:20] *** Fishy has quit IRC
[23:50:21] *** uris77 has quit IRC
[23:50:32] *** Fire-Dragon-DoL has joined #angularjs
[23:50:53] *** dc_ has joined #angularjs
[23:51:49] *** ries has joined #angularjs
[23:51:53] <fotoflo> robdubya: or do you mean when i declare the controller in the $stateprovider.state.view.controller i should delcare with me in there somehow?
[23:51:54] *** nuizzy has quit IRC
[23:52:08] <robdubya> as an injectable in the controller definitition
[23:52:15] *** jiggliemon has quit IRC
[23:52:23] <robdubya> if you do resolve: { foos: ['Foo', function(Foo){ return Foo.load() }
[23:52:28] *** whunt has quit IRC
[23:52:32] *** nuizzy has joined #angularjs
[23:52:37] <robdubya> then .controller('FooController', function(foos){ ...
[23:52:38] *** Fire-Dragon-DoL has joined #angularjs
[23:52:59] *** buzzlewoo has joined #angularjs
[23:53:14] <fotoflo> right now i have it as a string: controller: 'ChannelCtrl'
[23:54:01] <robdubya> right. tht's fine. but in your ChannelCtrl declaration
[23:54:08] <jaawerth> robdubya: interesting! looks like it's because you're using id instead of name
[23:54:11] <fotoflo> ChannelCtrl.$inject = ['$scope', 'me']; function ChannelCtrl($scope, me) {
[23:54:14] <fotoflo> like this?
[23:54:20] <robdubya> yep
[23:54:45] *** apertoire has joined #angularjs
[23:55:13] <fotoflo> robdubya: actually i tried that, not working… perhaps because it’s in a child controller?
[23:55:27] *** AlSquire has quit IRC
[23:55:41] <fotoflo> maybe i should use the me from the parent controller and only refer to that me
[23:55:47] *** whunt_ is now known as whunt
[23:57:05] *** shackleford has quit IRC
[23:57:31] *** chrisshattuck has joined #angularjs
[23:57:42] <jaawerth> fotoflo: wait, child controller as in the child state of the one in which you're using the resolve, or child controller as in an inline controller within the state?
[23:57:50] *** chrisshattuck has quit IRC
[23:58:35] *** knuckolls has quit IRC
[23:58:35] <fotoflo> jaawerth: http://pastebin.com/RucK6yQX — the
[23:58:49] <fotoflo> the main state resolves ‘me'
[23:59:02] <fotoflo> and injects it into the LayoutController presumably
[23:59:12] <jaawerth> IIRC you need a resolve in the child state to catch the results of the one in the parent
[23:59:28] <jaawerth> hmm nope
[23:59:36] <jaawerth> that's false, nevermind that
[23:59:58] *** knuckolls has joined #angularjs
top

   December 30, 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 | >