Switch to DuckDuckGo Search
   July 13, 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:50] *** jtimon has joined #angularjs
[00:00:55] <Al`> hmm I'm only using setTimeout to fake an http get
[00:00:55] *** pgmeira has joined #angularjs
[00:01:10] *** pgmeira has left #angularjs
[00:01:19] <oniijin> are u using settimeout or $timeout
[00:01:39] *** roymilder has quit IRC
[00:01:45] <oniijin> if u dont use the ng provided timeout then most likely your updates arent being seen
[00:02:00] *** dharrigan has quit IRC
[00:02:05] <Al`> ok let me try that
[00:02:13] *** Mouzi has quit IRC
[00:02:18] *** fold has quit IRC
[00:02:56] *** Aerospark has joined #angularjs
[00:03:23] *** darrin has quit IRC
[00:04:18] <Al`> yea timeout fixes it
[00:04:21] <Al`> $timeout*
[00:04:38] <Al`> thanks :-)
[00:04:42] <Al`> although I need to understand why :D
[00:05:27] <oniijin> digest cycle
[00:05:38] <oniijin> if you do things async outside of ngland ng wont know about it
[00:05:42] *** roymilder has joined #angularjs
[00:05:48] <oniijin> alternatively u can wrap your stuff in $apply
[00:05:50] <oniijin> (maybe)
[00:07:09] <Al`> ahh
[00:07:15] <Al`> yea the docs make sense
[00:07:17] <Al`> thanks for that
[00:07:24] *** bayousoft has quit IRC
[00:07:34] *** brianturgeon has joined #angularjs
[00:07:40] <emeve89> @oniijin good point!
[00:07:47] *** dutis has quit IRC
[00:07:56] <oniijin> huh
[00:08:17] *** bkuberek_ has quit IRC
[00:08:29] <emeve89> bad luck Brazil!
[00:08:30] *** JoshGlzBrk has joined #angularjs
[00:09:28] *** tylerlh has joined #angularjs
[00:09:49] <noobee> is it safe to upload image as base64?
[00:09:49] *** vonnegut has quit IRC
[00:09:58] *** roymilder has quit IRC
[00:10:13] <caitp> no it's unsafe
[00:10:17] <caitp> it could destroy the planet
[00:10:19] <caitp> or worse, the interwebs
[00:10:38] *** kalehv_ has quit IRC
[00:11:08] *** kirfu has joined #angularjs
[00:11:19] *** michaelm has joined #angularjs
[00:11:42] *** Ir1sh_ has joined #angularjs
[00:11:55] <oniijin> is emeve89 a bot
[00:12:09] <emeve89> noo, im not a bot
[00:12:12] <noobee> @Caitp really?
[00:12:15] <noobee> what the f man
[00:12:28] <noobee> i can destroy the planet by using that?
[00:12:34] <caitp> you totally can
[00:12:35] <caitp> don't do it
[00:12:42] <noobee> nooooooooooooooooooooooooooo
[00:12:47] <noobee> so we all will be dead?
[00:12:53] <caitp> yep
[00:13:00] <noobee> should i try?
[00:13:04] <caitp> if you want
[00:13:13] <noobee> i dont want to be planet destroyer
[00:13:21] <noobee> how will the planet be destroyed?
[00:13:23] <noobee> tsunami?
[00:13:29] *** T0lkman has quit IRC
[00:13:32] *** tylerlh has quit IRC
[00:13:38] <noobee> sudden poff?
[00:13:38] <caitp> idk
[00:13:41] <caitp> i'm not a scientist
[00:14:03] <noobee> you just said uploading base64 would destroy the planet?
[00:14:14] *** joaoh82 has quit IRC
[00:14:17] *** brianturgeon has quit IRC
[00:14:56] *** KushS has joined #angularjs
[00:15:04] *** Ir1sh has quit IRC
[00:17:24] *** dshoreman has joined #angularjs
[00:18:54] *** mennea has quit IRC
[00:19:17] *** Notte has quit IRC
[00:19:31] <wafflejock> most likely the conversion will cause an internet meltdown
[00:19:49] <wafflejock> cloud meltdown
[00:20:14] <marcospgp> the clouds will turn to big googles and then bing releases the sharks
[00:20:20] <marcospgp> from them on it's nuclear winter
[00:20:30] *** t1mmen has quit IRC
[00:20:46] <oniijin> caitp is going to travel back in time and destroy you before you kill the world
[00:20:52] <wafflejock> just like the LHC good thing time travelers will save us
[00:20:53] <oniijin> or am I confusing her with T1000
[00:21:10] *** sgnl has quit IRC
[00:21:32] *** yoshokatana has joined #angularjs
[00:21:34] *** freeman42 has joined #angularjs
[00:22:03] <wafflejock> yeah started noticing all the paradoxes in terminator last time I watched it like the chip that comes from the terminators arm that inspires the scientist to create skynet
[00:22:24] *** morenoh149 has joined #angularjs
[00:23:03] <oniijin> dont think bout paradocxes in time travel movies
[00:23:04] <oniijin> lol
[00:23:43] <robdubya> Some say the world will end in fire,
[00:23:43] <robdubya> Some say in ice.
[00:23:43] <robdubya> From what I’ve tasted of desire
[00:23:43] <robdubya> I hold with those who favor fire.
[00:23:43] <robdubya> But if it had to perish twice,
[00:23:43] <robdubya> I think I know enough of hate
[00:23:44] <robdubya> To say that for destruction ice
[00:23:44] <robdubya> Is also great
[00:23:44] <robdubya> And would suffice.
[00:24:33] *** mtsr has quit IRC
[00:25:05] <oniijin> dork
[00:25:25] *** anjumkaiser has joined #angularjs
[00:25:33] *** jtimon has quit IRC
[00:26:14] *** faviouz has joined #angularjs
[00:27:18] *** vonnegut has joined #angularjs
[00:27:19] *** apetro_ has joined #angularjs
[00:27:28] *** lw has quit IRC
[00:27:53] *** vonnegut has quit IRC
[00:29:16] *** apetro_ has quit IRC
[00:29:44] *** apetro_ has joined #angularjs
[00:29:57] *** jstimm has joined #angularjs
[00:30:07] *** Tidwell has joined #angularjs
[00:30:07] *** jstimm has quit IRC
[00:30:51] *** chrisbirk has quit IRC
[00:31:51] *** LuxuryMode has quit IRC
[00:33:18] *** tumdedum has quit IRC
[00:34:04] *** apetro_ has quit IRC
[00:34:04] *** strfcks has quit IRC
[00:35:03] *** LuxuryMode has joined #angularjs
[00:36:18] *** arizzo has joined #angularjs
[00:36:27] *** fedenunez has joined #angularjs
[00:37:07] *** sal1191 has quit IRC
[00:37:12] <wafflejock> to dork it up further the Earth will be going up in fire as the Sun dies and then will cool into an icey ball after http://io9.com/what-the-death-of-the-sun-will-look-like-471796727
[00:37:29] <wafflejock> so Mr Frost wins
[00:38:07] *** sal1191 has joined #angularjs
[00:38:43] *** tumdedum has joined #angularjs
[00:39:07] <marcospgp> well none of us will be here to see that :c
[00:39:38] <wafflejock> yeah I bank if humanity makes it anywhere near that timescale we'll be fine
[00:39:48] <wafflejock> marcospgp: not banking on the singularity eh :P
[00:40:07] <marcospgp> banking?
[00:40:10] <wafflejock> betting
[00:40:17] <wafflejock> guessing
[00:40:21] <marcospgp> oh, are you british? aha
[00:40:31] <wafflejock> no I'm from Chicagoland area
[00:40:40] <wafflejock> watch a lot of british stuff though so it might slip into my language
[00:40:45] <marcospgp> hm you guys say chicago land
[00:40:50] <marcospgp> here we add city to places
[00:40:57] <marcospgp> which are not cities
[00:41:01] <marcospgp> (country side aha)
[00:41:08] <marcospgp> such as
[00:41:10] <marcospgp> fornelos city
[00:41:30] <marcospgp> read four neh lohs
[00:41:38] <wafflejock> ah yeah well "Chicagoland" just refers to Chicago and the surrounding towns since no one knows what they are
[00:41:47] <wafflejock> I'm actually in in Oak Park
[00:42:07] <wafflejock> but if I said that no one would know where I am still
[00:42:10] <marcospgp> oak park bark
[00:42:16] <marcospgp> start mark
[00:42:20] <marcospgp> stark
[00:42:38] *** AlSquire has quit IRC
[00:42:50] *** freeman42 has quit IRC
[00:44:14] <wafflejock> yeah if you walk 1 block east from my place you're in Chicago officially and I can take the Loop train around the city so it's a weird in between place... not as dense as the city but not as spread out as the suburbs further west
[00:44:31] *** vonnegut has joined #angularjs
[00:44:40] *** faviouz has quit IRC
[00:44:50] *** vonnegut has quit IRC
[00:46:23] <wafflejock> marcospgp: Portugal?
[00:46:25] *** sdouglas has quit IRC
[00:47:08] <marcospgp> wafflejock: yea!
[00:47:19] *** Al` has quit IRC
[00:47:40] <marcospgp> the us does sound like a nice place to live, but idk... imperial ahaha
[00:48:01] <robdubya> the US isn't so much a place as 50 different places
[00:48:21] <drej> what about the US sounds like a good place to live ?
[00:49:28] <marcospgp> sorry (:
[00:49:44] <marcospgp> about us and not US
[00:49:59] <marcospgp> hm for starters I like speaking english
[00:50:15] <marcospgp> and the only place you do that in europe is britain
[00:50:20] <drej> you can do it in canada
[00:50:23] *** conner_ has quit IRC
[00:50:23] <drej> or australia
[00:50:26] <drej> or new zealand
[00:50:27] <marcospgp> but i wouldnt go to britain aha
[00:50:32] <drej> and in most of those places, you dont get shot randomly
[00:50:36] <drej> as a bonus
[00:50:42] <marcospgp> well but I want to see aliens
[00:50:49] <wafflejock> drej: where's the fun in that
[00:50:50] <marcospgp> and everyone knows when aliens come they will visit the US first
[00:51:09] <chovy> is 1.3 safe? I just found a nasty bug with $resource where it was sending post requests to query string.
[00:51:11] <drej> marcospgp: you dont know that, it depends on where will smith's living at the time
[00:51:16] <drej> he might move to europe somewhere
[00:51:29] *** emeve89 has quit IRC
[00:51:31] <marcospgp> he might
[00:51:32] *** ilmgb has quit IRC
[00:51:32] <marcospgp> or not
[00:51:49] <marcospgp> obama is not letting alien magnets escape
[00:51:55] <marcospgp> obamacare
[00:51:57] <marcospgp> obamacares
[00:52:00] <marcospgp> about will smith
[00:52:24] *** bayousoft has joined #angularjs
[00:53:16] <wafflejock> chovy: well it's still beta right?
[00:53:38] *** JoshGlzBrk has quit IRC
[00:54:22] *** ilmgb has joined #angularjs
[00:54:45] *** weaktea__ has quit IRC
[00:54:46] <chovy> wafflejock: i know. i just wanted to be sure it wasn't me
[00:55:00] *** encryptd_fractl has joined #angularjs
[00:56:03] <wafflejock> chovy: yeah not sure but I would expect everything is being tested in the beta deploys too so if you can reproduce a problem and it's not listed in the CHANGELOGs anywhere probably worth filing an issue/bug
[00:56:16] <chovy> ok.
[00:56:25] *** foofoobar has quit IRC
[00:57:01] <robdubya> that would be sort of a glaring error
[00:57:17] <wafflejock> marcospgp: you might like this if you haven't seen it already https://www.youtube.com/watch?v=ASSOQDQvVLU
[00:58:32] *** CaptainJamy has joined #angularjs
[00:58:34] <CaptainJamy> Hi
[00:58:44] *** fedenunez has quit IRC
[00:58:48] <robdubya> just saw an ad for the Gone Girl movie. looks awesome
[00:58:49] <robdubya> /random
[00:59:24] *** encryptd_fractl has quit IRC
[00:59:25] <CaptainJamy> For some reason I can't send anything in the js IRC, any chance you guys can help me out? It's a quick problem
[00:59:34] <marcospgp> wafflejock: i feel bad about american kids having history classes
[01:00:03] <robdubya> CaptainJamy we'll certainly give it a whirl
[01:00:10] <robdubya> its saturday tho, so no promises
[01:00:56] <CaptainJamy> http://puu.sh/a8F7M/2df89974d2.png This is my code. The div in question IS 100px wide, however the border radius stays the same. Maybe I'm making a silly mistake. If it makes any difference, the width is set inline and not in a CSS stylesheet.
[01:01:14] *** DrMabuse has quit IRC
[01:01:27] *** vonnegut has joined #angularjs
[01:02:23] <robdubya> wow wafflejock i didnt know about those unorganized islands
[01:02:29] <robdubya> merka
[01:02:54] <wafflejock> robdubya: hehe yeah me neither till seeing that video... see marcospgp's point about us having no real history education :|
[01:03:00] *** paperElectron is now known as Paper_bounced
[01:03:05] <chovy> wafflejock: when do you think 1.3 will be stable?
[01:03:40] *** Paper_bounced is now known as paperElectron
[01:03:42] <wafflejock> chovy: sorry I have no idea caitp might be able to lend insight, can you reproduce your problem somewhere it can be demonstrated?
[01:04:33] *** Rahul_Roy has quit IRC
[01:04:50] <CaptainJamy> Are you talking to me waffle?
[01:04:52] *** flocca has joined #angularjs
[01:05:02] <wafflejock> CaptainJamy: nope not yet
[01:05:13] <robdubya> CaptainJamy what the hell is that symbol?
[01:05:29] <wafflejock> it's a $ with a squiggly
[01:05:31] *** JimTheDev has joined #angularjs
[01:05:31] *** JimTheDev has joined #angularjs
[01:05:33] <wafflejock> it looks like clingon
[01:05:52] <CaptainJamy> $ looks weird like that in webstorm
[01:05:55] *** tfennelly has quit IRC
[01:06:03] <robdubya> your problem is you're trying to write code in klingon i reckon
[01:06:04] <wafflejock> CaptainJamy: typically you can't assign the result of some function
[01:06:14] *** intellix has joined #angularjs
[01:06:49] <wafflejock> oh wait misread
[01:07:48] *** arizzo has quit IRC
[01:08:08] <wafflejock> CaptainJamy: try dropping a debugger; statement in the top of the function and see if you can manually check out the element width at that point
[01:08:19] *** Oxelist has joined #angularjs
[01:08:27] *** arizzo has joined #angularjs
[01:08:37] *** Oxelist_ has quit IRC
[01:08:52] <robdubya> also try setting it as borderRadius: 5px vs border-radius
[01:08:56] <robdubya> which sounds crazy, but js
[01:09:08] *** flocca has quit IRC
[01:09:33] *** Ir1sh_ has quit IRC
[01:10:08] *** arizzo_ has joined #angularjs
[01:10:19] <CaptainJamy> I logged the width and it appears as null. Weird.
[01:10:28] *** waylon999 has joined #angularjs
[01:10:48] *** tylerlh has joined #angularjs
[01:10:50] *** snapwich has quit IRC
[01:11:26] <CaptainJamy> http://jamesohanlon.me/project/gtav/ As you can see from this link, meter-on-a does have a width
[01:12:08] *** arizzo_ has quit IRC
[01:12:34] <robdubya> CaptainJamy are you using angular? or just living vicariously through us?
[01:12:35] *** KushS has quit IRC
[01:12:48] <CaptainJamy> I'm using angular
[01:12:54] *** arizzo_ has joined #angularjs
[01:12:56] *** arizzo has quit IRC
[01:13:05] <robdubya> why not ng-style / ng-class then?
[01:13:06] *** arizzo_ has quit IRC
[01:13:08] *** paperElectron is now known as Paper_bounced
[01:13:18] *** arizzo has joined #angularjs
[01:13:28] <CaptainJamy> This is my first day using angular, I have no idea what that is
[01:13:31] <CaptainJamy> I'll check it out though
[01:13:48] *** LuxuryMode has quit IRC
[01:14:11] *** Tidwell has quit IRC
[01:14:29] *** kayloos has joined #angularjs
[01:14:32] *** marcospgp has quit IRC
[01:14:51] *** dcherman has joined #angularjs
[01:14:58] *** scmx has quit IRC
[01:15:40] *** Nizumzen has quit IRC
[01:15:53] *** Oxelist has quit IRC
[01:16:04] *** fedenunez has joined #angularjs
[01:17:35] *** vonnegut has quit IRC
[01:19:11] *** kayloos has quit IRC
[01:20:12] *** mattt_ has joined #angularjs
[01:20:18] *** jpstone has joined #angularjs
[01:20:18] *** sgnl has joined #angularjs
[01:20:47] *** ChrisC_ has quit IRC
[01:20:49] *** JimTheDev has quit IRC
[01:21:23] *** JimTheDev has joined #angularjs
[01:21:41] *** tylerlh has quit IRC
[01:21:44] *** mattt_ has quit IRC
[01:21:55] *** ipsimus has joined #angularjs
[01:22:14] *** tylerlh has joined #angularjs
[01:22:30] *** Paper_bounced is now known as paperElectron
[01:24:21] *** JimTheDev has quit IRC
[01:25:00] *** JimTheDev has joined #angularjs
[01:25:39] *** ipsimus has quit IRC
[01:25:43] *** arizzo has quit IRC
[01:25:46] *** _1_05422425405 has joined #angularjs
[01:26:07] *** lucasjans has joined #angularjs
[01:26:20] *** tylerlh has quit IRC
[01:26:34] <ckboii89> does anyone know how to get typeahead to to work in modal form?
[01:26:51] *** arizzo has joined #angularjs
[01:26:51] <zelrik> yeah
[01:27:18] <zelrik> well what do you need exactly
[01:27:44] *** kirfu has quit IRC
[01:27:47] *** waylon999 has quit IRC
[01:27:55] <ckboii89> so i'm using the modal from angular-ui, and the type ahead doesnt work well within the <script> tag
[01:27:56] *** paperElectron is now known as Paper_bounced
[01:28:36] <zelrik> within the script tag?
[01:28:38] <ckboii89> i know the typeahead works, verified it by putting outside the script tag and loading the modal content on the html page
[01:28:50] <zelrik> can you link some code
[01:29:19] *** klaut has quit IRC
[01:29:40] <ckboii89> i dont have on plunkr exactly
[01:29:43] <ckboii89> <script type="text/ng-template" id="myModalContent.html">
[01:29:51] <ckboii89> but this is the culprit thats causing my problems
[01:29:52] *** CaptainJamy has quit IRC
[01:29:55] <zelrik> oh the ng-template
[01:29:56] *** JimTheDev has quit IRC
[01:30:02] <zelrik> weird
[01:30:18] <ckboii89> the script is needed for the pop up ye?
[01:30:26] *** JimTheDev has joined #angularjs
[01:30:32] <ckboii89> otherwise the pop up form wont show up taking the script out
[01:30:37] <zelrik> I dont use script tags
[01:30:49] <zelrik> I just put my templates in separate files
[01:30:59] <zelrik> and call them by their url
[01:31:08] *** marr has quit IRC
[01:31:15] <ckboii89> this is default given by angular-ui
[01:31:29] *** JimTheDev has quit IRC
[01:31:30] <zelrik> I dont think so
[01:31:39] <ckboii89> http://angular-ui.github.io/bootstrap/
[01:31:41] <zelrik> I used the $modal service
[01:31:46] <zelrik> never had to use a script tag
[01:31:47] *** arizzo has quit IRC
[01:32:02] *** JimTheDev has joined #angularjs
[01:32:13] <ckboii89> http://plnkr.co/edit/?p=preview
[01:32:14] <zelrik> they might show some script tags in the examples
[01:32:18] *** tarkus has quit IRC
[01:32:20] <zelrik> doesnt mean you have to use them :)
[01:32:23] <ckboii89> OG
[01:32:24] <ckboii89> OH
[01:32:27] <ckboii89> but
[01:32:36] <ckboii89> if i dont use the script tags it wont work???
[01:32:43] <zelrik> it will
[01:32:44] <ckboii89> do i jsut make a directive?
[01:33:00] <zelrik> you just need to put your template in a separate file
[01:33:11] <zelrik> and call it with templateUrl parameter
[01:33:17] *** JimTheDev has quit IRC
[01:33:18] <zelrik> when you open the modal
[01:33:32] *** Drako_ has quit IRC
[01:33:49] *** kirfu has joined #angularjs
[01:34:02] <zelrik> bbl a pizza is waiting for me
[01:34:15] *** intellix has quit IRC
[01:34:42] *** cphil has quit IRC
[01:35:00] *** vonnegut has joined #angularjs
[01:36:01] *** Tidwell has joined #angularjs
[01:36:05] *** vonnegut has quit IRC
[01:36:27] *** JimTheDev has joined #angularjs
[01:37:03] *** JimTheDev has joined #angularjs
[01:38:05] *** Paper_bounced is now known as paperElectron
[01:38:13] *** lucasjans has quit IRC
[01:40:02] <zelrik> ckboii89, if that plnkr meant to have something in it you messed up
[01:40:59] *** kirfu has quit IRC
[01:41:03] *** josh-k has quit IRC
[01:41:23] *** kirfu has joined #angularjs
[01:42:43] *** rburns has joined #angularjs
[01:42:44] *** davemerwin has joined #angularjs
[01:43:00] *** paperElectron is now known as Paper_bounced
[01:44:07] *** stickperson has quit IRC
[01:48:04] *** rburns has quit IRC
[01:48:11] *** jayrobot has joined #angularjs
[01:49:06] *** lando has joined #angularjs
[01:49:40] *** tfennelly has joined #angularjs
[01:50:07] *** michaelm has quit IRC
[01:50:26] *** lw has joined #angularjs
[01:52:02] *** Paper_bounced is now known as paperElectron
[01:52:46] *** vonnegut has joined #angularjs
[01:53:12] *** AWAW has quit IRC
[01:53:20] *** vonnegut has quit IRC
[01:53:52] *** conner_ has joined #angularjs
[01:53:56] *** tfennelly has quit IRC
[01:54:00] *** danielpquinn has joined #angularjs
[01:55:03] *** Tidwell has quit IRC
[01:56:42] *** davemerwin has quit IRC
[01:57:15] *** davemerwin has joined #angularjs
[01:57:17] *** kirfu has quit IRC
[01:57:33] *** disorder20 has quit IRC
[01:57:36] *** lucasjans has joined #angularjs
[01:57:39] *** kirfu has joined #angularjs
[01:58:23] *** conner_ has quit IRC
[01:58:57] *** danielpquinn has quit IRC
[01:59:26] <ckboii89> @zerlrik good news i got rid of the script and changed it to my template url
[01:59:37] <ckboii89> bad news, typeahead still doesnt work???
[01:59:49] *** paperElectron is now known as Paper_bounced
[02:00:30] *** bphogan_afk is now known as bphogan
[02:01:05] *** dc_ has quit IRC
[02:01:32] *** davemerwin has quit IRC
[02:01:32] *** fedenunez has quit IRC
[02:01:56] *** lordkryss has quit IRC
[02:01:56] <zelrik> ckboii89, show some code?
[02:02:02] *** DrMabuse has joined #angularjs
[02:02:29] *** fold has joined #angularjs
[02:02:46] <ckboii89> how would you like me to show? are you looking for something specfic?
[02:02:56] <zelrik> ckboii89, by the way, the modal element is pretty high up in the DOM hierarchy
[02:02:59] *** knownasilya has quit IRC
[02:02:59] *** jpstone has quit IRC
[02:03:22] <zelrik> you should make sure you have the relevant controllers etc covering that up
[02:03:46] <zelrik> a small example on plunkr showing it not working
[02:04:14] <ckboii89> ok let me whip it up on plunk real quick
[02:04:52] *** night-owl-MBP has joined #angularjs
[02:05:08] *** bphogan is now known as bphogan_afk
[02:06:05] *** kirfu has quit IRC
[02:06:15] *** bayousoft has quit IRC
[02:06:20] *** DrMabuse has quit IRC
[02:06:28] *** kirfu has joined #angularjs
[02:07:43] *** roymilder has joined #angularjs
[02:08:21] *** conner_ has joined #angularjs
[02:11:11] *** vonnegut has joined #angularjs
[02:11:46] *** DigitallyBorn has joined #angularjs
[02:11:46] *** DigitallyBorn has joined #angularjs
[02:11:51] *** vonnegut has quit IRC
[02:11:58] *** roymilder has quit IRC
[02:12:02] *** JimTheDev has quit IRC
[02:12:33] *** conner_ has quit IRC
[02:12:58] *** DigitallyBorn has quit IRC
[02:13:41] *** TravisTX has quit IRC
[02:14:49] *** basichash has quit IRC
[02:14:55] *** TravisTX has joined #angularjs
[02:15:19] *** JimTheDev has joined #angularjs
[02:17:04] *** chrisbirk has joined #angularjs
[02:17:27] *** stickperson has joined #angularjs
[02:17:34] *** ceephax has quit IRC
[02:19:18] *** Paper_bounced is now known as paperElectron
[02:20:10] *** JimTheDev has quit IRC
[02:20:47] *** JimTheDev has joined #angularjs
[02:21:05] <chovy> wafflejock: i already upgraded to latest 1.3 and problem is fixed.
[02:22:46] *** tylerlh has joined #angularjs
[02:23:08] *** DuelShark has quit IRC
[02:23:23] *** Foxandxss has quit IRC
[02:24:52] *** JimTheDev has quit IRC
[02:25:02] *** digia|away is now known as digia
[02:25:03] *** lucasjans has quit IRC
[02:25:10] *** JimTheDev has joined #angularjs
[02:27:08] *** tylerlh has quit IRC
[02:27:45] *** noobee has quit IRC
[02:28:42] <wafflejock> chovy: good to hear
[02:28:56] *** Willow_ has quit IRC
[02:29:19] *** vonnegut has joined #angularjs
[02:29:25] *** Willow_ has joined #angularjs
[02:31:05] *** vonnegut has quit IRC
[02:31:33] *** dcherman has quit IRC
[02:33:06] *** beckyconning__ has joined #angularjs
[02:33:49] *** vintik has joined #angularjs
[02:34:11] *** Willow_ has quit IRC
[02:34:58] *** tylerlh has joined #angularjs
[02:35:14] *** chrisbirk has quit IRC
[02:36:16] *** dextorion has quit IRC
[02:37:27] *** cpciv has joined #angularjs
[02:38:40] *** richardbaker has joined #angularjs
[02:39:21] *** isthisreallife has joined #angularjs
[02:39:37] *** charuru has joined #angularjs
[02:39:38] *** isthisreallife has left #angularjs
[02:39:58] *** badon has quit IRC
[02:40:13] *** starfox_21 has joined #angularjs
[02:40:44] *** geoffstokes has quit IRC
[02:41:23] *** cpciv has quit IRC
[02:42:01] *** one_zero has joined #angularjs
[02:42:10] *** cpciv has joined #angularjs
[02:43:47] *** [HACKING-TWITTER has quit IRC
[02:44:39] *** markgg has joined #angularjs
[02:46:40] *** gnrlbzik_ has quit IRC
[02:48:07] *** vonnegut has joined #angularjs
[02:49:00] *** lite_ has joined #angularjs
[02:51:06] *** vonnegut has quit IRC
[02:51:15] *** kstuart has quit IRC
[02:51:47] *** dbouwman has joined #angularjs
[02:53:26] *** flocca has joined #angularjs
[02:53:30] *** digia is now known as digia|away
[02:53:42] *** dazs has quit IRC
[02:53:49] *** paperElectron is now known as Paper_bounced
[02:53:59] *** lite_ has quit IRC
[02:54:03] *** Paper_bounced is now known as paperElectron
[02:54:43] *** danielpquinn has joined #angularjs
[02:56:32] *** moritzs has joined #angularjs
[02:57:12] *** chrisbirk has joined #angularjs
[02:57:14] *** JoshGlzBrk has joined #angularjs
[02:57:25] *** phrozensilver has quit IRC
[02:57:53] *** flocca has quit IRC
[02:58:54] *** JakeSays has joined #angularjs
[02:59:08] *** danielpquinn has quit IRC
[02:59:54] *** [HACKING-TWITTER has joined #angularjs
[03:00:22] *** cpciv has quit IRC
[03:01:30] *** [HACKING-TWITTER has joined #angularjs
[03:01:38] *** [HACKING-TWITTER has quit IRC
[03:01:42] *** paperElectron is now known as Paper_bounced
[03:02:19] *** Paper_bounced is now known as paperElectron
[03:02:48] *** [HACKING-TWITTER has joined #angularjs
[03:04:03] *** patrickarlt has joined #angularjs
[03:04:06] *** corban_ has joined #angularjs
[03:04:49] *** cpciv has joined #angularjs
[03:04:50] *** corban_ has quit IRC
[03:05:01] *** corban has quit IRC
[03:05:09] *** corban has joined #angularjs
[03:05:35] *** dbouwman has quit IRC
[03:05:52] *** mfunkie_ has joined #angularjs
[03:07:06] *** tokka has joined #angularjs
[03:07:16] *** bmac has joined #angularjs
[03:07:29] *** patrickarlt has quit IRC
[03:07:52] *** Shrooms has joined #angularjs
[03:08:30] *** roymilder has joined #angularjs
[03:09:11] *** CptChaos_ has joined #angularjs
[03:11:29] *** DrMabuse has joined #angularjs
[03:11:54] *** dc_ has joined #angularjs
[03:12:14] *** arizzo has joined #angularjs
[03:12:24] *** Nizumzen has joined #angularjs
[03:12:38] *** daptordarattler has joined #angularjs
[03:12:38] *** CptChaos has quit IRC
[03:12:44] *** roymilder has quit IRC
[03:15:08] *** dylukes has joined #angularjs
[03:15:25] *** kayloos has joined #angularjs
[03:15:32] *** fcanela has quit IRC
[03:16:08] *** DrMabuse has quit IRC
[03:16:13] *** bmac has quit IRC
[03:16:22] *** mindlace has joined #angularjs
[03:16:38] *** cpciv has quit IRC
[03:17:11] *** arizzo has quit IRC
[03:17:45] *** arizzo has joined #angularjs
[03:17:46] *** gnrlbzik has joined #angularjs
[03:19:18] *** gnrlbzik has quit IRC
[03:19:30] *** gnrlbzik has joined #angularjs
[03:19:34] *** kayloos has quit IRC
[03:20:25] *** fixl has joined #angularjs
[03:20:29] *** arizzo_ has joined #angularjs
[03:21:27] *** ipsimus_ has joined #angularjs
[03:22:04] *** arizzo has quit IRC
[03:22:43] *** ipsimus_ has quit IRC
[03:24:20] *** fcanela has joined #angularjs
[03:24:35] *** gnrlbzik has quit IRC
[03:25:36] *** cpciv has joined #angularjs
[03:26:06] *** KushS has joined #angularjs
[03:26:43] *** jerev is now known as jerev_away
[03:27:03] <ckboii89> zelrik you there?
[03:27:04] *** moritzs has quit IRC
[03:27:12] <zelrik> ckboii89, no..
[03:27:15] <zelrik> :)
[03:27:35] *** JoshGlzBrk has quit IRC
[03:28:05] <ckboii89> just checking :D
[03:28:29] <zelrik> stalker
[03:28:56] <robdubya> ♪ he was a ckboi he said cu l8r boi ♪
[03:29:11] *** wa5ted_ has joined #angularjs
[03:30:03] *** wa5ted has quit IRC
[03:30:09] *** wa5ted_ is now known as wa5ted
[03:30:11] *** Captain_Picard has joined #angularjs
[03:30:36] <ckboii89> https://gist.github.com/gwong89/2c1c851455a20f629159
[03:31:01] <robdubya> $parent.anything = wacky
[03:31:04] *** wilmoore has quit IRC
[03:31:06] <robdubya> i'd start there
[03:31:35] <ckboii89> the culprit that it my typahead wont work in modal?
[03:31:36] <robdubya> what's the value of $parent.async_selected_treatment? primitive?
[03:31:48] <robdubya> (eg string / number / etc )
[03:32:00] <ckboii89> yeah string or number
[03:32:03] <zelrik> damn robdubya, you read fast
[03:32:15] *** Captain_Picard has quit IRC
[03:32:20] <ckboii89> the typeahead works , just not inside the modal
[03:33:05] *** senayar has quit IRC
[03:33:34] <robdubya> zelrik stuff like that sticks out ;-p
[03:33:39] <zelrik> I use $parent
[03:33:39] *** senayar has joined #angularjs
[03:33:39] <zelrik> :d
[03:34:03] *** rburns has joined #angularjs
[03:34:03] <robdubya> ckboii89 yeah - primitive is the problem
[03:34:06] <jpstone-> in general, as a good rule of thumb, how will I know if I need a $timeout?
[03:34:18] *** lotus has quit IRC
[03:34:20] <robdubya> because its not inheriting, its being *copied* when the modal's scope inherits
[03:34:38] <robdubya> https://www.youtube.com/watch?v=DTx23w4z6Kc&feature=kp
[03:34:53] <robdubya> oop
[03:34:54] <robdubya> https://egghead.io/lessons/angularjs-the-dot
[03:34:55] *** DrMabuse has joined #angularjs
[03:35:35] *** arizzo_ has quit IRC
[03:35:43] *** mfunkie_ has quit IRC
[03:36:06] *** snapwich has joined #angularjs
[03:36:14] <ckboii89> im not gonna lie
[03:36:18] *** arizzo has joined #angularjs
[03:36:21] <zelrik> jpstone-, when you wanna delay code execution
[03:36:25] *** VictorBjelkholm has quit IRC
[03:36:27] <ckboii89> my coworker wrote that part
[03:36:30] *** atlasapollo has joined #angularjs
[03:36:49] <ckboii89> i understand the javascript function he wrote for the typeahead, but the parent.async i have no idea where he got that
[03:36:52] <zelrik> robdubya, so the error was $parent?
[03:37:00] <robdubya> ckboii89 this is basically the #1 problem everybody has with angular
[03:37:13] <robdubya> its the prime directive, so to speak.
[03:37:19] <ckboii89> ah ok
[03:37:23] <ckboii89> prime directive?
[03:37:24] <robdubya> the scope is *not* a model, its a place where you keep models (objects)
[03:37:26] <jpstone-> zelrik: I know $timeout is a delay, but how do I know if I need to delay in the first place?
[03:37:37] <robdubya> so you should always work with objects
[03:37:40] <robdubya> (vs primitives)
[03:37:41] *** VictorBjelkholm has joined #angularjs
[03:37:45] <zelrik> jpstone-, I think the question is too broad
[03:37:49] <jpstone-> ok
[03:37:54] <jpstone-> here's some specifics
[03:38:04] *** senayar has quit IRC
[03:38:27] <ckboii89> let me watch the video
[03:38:31] <jpstone-> how did the top answer here know a timeout might be needed for this:
[03:38:33] <jpstone-> http://stackoverflow.com/questions/14833326/how-to-set-focus-in-angularjs
[03:38:33] <ckboii89> and see if i can understand the problem
[03:38:40] *** gnrlbzik has joined #angularjs
[03:39:35] *** DrMabuse has quit IRC
[03:39:42] <robdubya> ckboii89 simple example http://plnkr.co/edit/qWUnm57Q5n4MRLaZdcyO?p=info
[03:40:03] *** bphogan_afk is now known as bphogan
[03:40:20] *** arizzo has quit IRC
[03:40:26] <zelrik> jpstone-, trial and error I guess, and experience
[03:41:44] <jpstone-> lol
[03:41:46] <jpstone-> ok..
[03:42:05] <zelrik> yeah that looks a bit advanced
[03:42:11] <jpstone-> just randomly wrap it around stuff that doesn't work and see if it makes it work, and if it does, have no idea why?
[03:42:22] <jpstone-> I don't like that :D
[03:42:52] <zelrik> He made an educated guess
[03:42:53] *** cphil has joined #angularjs
[03:43:00] <zelrik> that something was out of sync
[03:43:03] *** devx101 has joined #angularjs
[03:43:12] *** gnrlbzik has quit IRC
[03:43:36] <tokka> jpstone-: He also writes about that, “The $timeout seems to be needed to give the modal time to render”
[03:43:39] <robdubya> the generic answer to that q is "when you need to wait for the event loop to run once"
[03:43:58] <zelrik> some stuff in javascript is quite voodoo
[03:44:11] <jpstone-> robdubya, ok, that helps make sense of it
[03:44:17] <robdubya> "do all the stuff, and then come back and do this"
[03:44:18] <ckboii89> @robdubya so the . notation applies to the typeahead as well?
[03:44:28] <robdubya> ckboii89 that notation should apply to pretty much everything
[03:44:35] <robdubya> "if you're not using a dot you're doing it wrong"
[03:44:46] <zelrik> ^
[03:44:47] <jpstone-> ...said the creator of angular...
[03:44:59] <robdubya> https://github.com/angular/angular.js/wiki/Understanding-Scopes
[03:45:07] <robdubya> http://www.youtube.com/watch?v=ZhfUv0spHCY&feature=youtu.be&t=30m see also
[03:45:12] *** vintik has quit IRC
[03:45:15] <zelrik> I used $parent as temporary hack to fix stuff my stupid coworkers wrote
[03:45:17] <jpstone-> I had an up all nighter due to that issue
[03:45:25] <jpstone-> rearranging my model so I could use a dot fixed everything
[03:45:25] <zelrik> then eventually those parts of the code broke
[03:45:30] <robdubya> you'll find everything gets easier when you're passing around objects
[03:45:31] <zelrik> had to rewrite it
[03:46:02] <zelrik> I think I have one instance left when I use $parent
[03:46:06] <zelrik> in ng-repeats
[03:46:31] <robdubya> ckboii89 its really a javascript thing, vs an angular thing, but its critical for doing angular right
[03:46:51] <ckboii89> ah ok
[03:46:53] *** hswolff has quit IRC
[03:46:56] <ckboii89> well
[03:47:02] <ckboii89> $parent. wont work?
[03:47:06] <ckboii89> because
[03:47:15] *** hswolff has joined #angularjs
[03:47:15] <wafflejock> ckboii89: http://stackoverflow.com/questions/14049480/what-are-the-nuances-of-scope-prototypal-prototypical-inheritance-in-angularjs
[03:47:19] <ckboii89> the typeahead is syncing to our rails database
[03:47:20] <robdubya> which modal is that? ui-bootstrap?
[03:47:39] <jpstone-> ckboii89 are you using an async typeahead?
[03:47:45] <ckboii89> yea
[03:48:02] <jpstone-> ckboii89: with angular-uibootstrap?
[03:48:08] <ckboii89> yeap
[03:48:12] <ckboii89> but doesnt work inside mymodal
[03:48:15] <jpstone-> I had a hell of a tiem getting that to work last night
[03:48:16] <ckboii89> works outside of it
[03:48:36] <jpstone-> I got it to get the results, and make "bold" my search hits, but not remove irrelevant results from the "drop down"
[03:48:39] <ckboii89> if i place the modal content on the html page itself, the async works
[03:48:44] <jpstone-> I had to stuff everything into a static array
[03:48:57] <robdubya> ckboii89 are you using a service for your rails API
[03:48:58] <robdubya> ?
[03:49:02] *** Fire-Dragon-DoL has quit IRC
[03:49:38] *** paperElectron is now known as Paper_bounced
[03:49:56] *** lite_ has joined #angularjs
[03:50:05] <jpstone-> ckboii89 have you tried calling the service as a promise, and in your .then() just stuffing the values you want into a static array?
[03:50:16] *** s3shs has joined #angularjs
[03:50:22] *** Paper_bounced is now known as paperElectron
[03:50:22] <ckboii89> yea
[03:50:24] *** dc_ has quit IRC
[03:50:26] <ckboii89> @ robdubya
[03:50:39] <ckboii89> well
[03:50:57] <robdubya> ckboii89 the cleanest way to do this is generally
[03:51:21] <ckboii89> searchItem = $scope.async_selected_treatment;
[03:51:28] <zelrik> <3 services
[03:51:35] <robdubya> show modal -> modal controller injets API service, input value, return value via promise to presenting controller, ???, profit
[03:51:38] <zelrik> I write services for everything
[03:52:32] *** devx101 has quit IRC
[03:52:34] *** quantax- has quit IRC
[03:52:41] <ckboii89> but why is it that $parent screws up everything inside the modal?
[03:53:05] *** devx101 has joined #angularjs
[03:53:08] <robdubya> the fact you're having to use parent means your inheritance is fucked
[03:53:18] *** paperElectron is now known as Paper_bounced
[03:53:22] <ckboii89> my console is returning a cannot read property length of undefined
[03:53:40] <ckboii89> when i try using the typeahead in the modal
[03:53:47] *** Paper_bounced is now known as paperElectron
[03:53:49] *** Nizumzen has quit IRC
[03:54:03] *** lite_ has quit IRC
[03:54:07] *** kos has joined #angularjs
[03:54:16] <robdubya> did you make a plunker?
[03:54:20] *** shinnya has quit IRC
[03:54:38] *** kos is now known as Guest44748
[03:54:51] *** Guest44748 has left #angularjs
[03:54:57] <zelrik> $parent.$index
[03:55:00] <zelrik> is what I still use
[03:55:10] <ckboii89> its hard to mimic my problem with plunkr, since the server is running off my local machine
[03:55:19] <zelrik> I just checked
[03:55:27] <JimTheDev> ngrok it
[03:55:27] <robdubya> you can just add a json file to plunker
[03:55:28] *** danielpquinn has joined #angularjs
[03:55:30] <robdubya> or that
[03:55:31] <zelrik> I knew I had some parent somewhere
[03:55:38] <robdubya> <3 ngrok
[03:55:45] <ckboii89> ngrok?
[03:55:47] <JimTheDev> werd
[03:56:04] <JimTheDev> opens a tunnel to your local machine and gives you a public url for others to access
[03:56:05] *** devx101_ has joined #angularjs
[03:56:13] <zelrik> robdubya, what do you think about $parent.$index
[03:56:16] <zelrik> is it bad?
[03:56:20] <JimTheDev> https://ngrok.com/
[03:56:48] <robdubya> zelrik depends why you're doing it. that's perhaps the only decent use case i can see for it actually, if you need the parent index number for some reason
[03:56:55] *** conner_ has joined #angularjs
[03:56:57] <ckboii89> so
[03:57:05] *** homey has joined #angularjs
[03:57:10] <ckboii89> ngrok ill be able to url all my data?
[03:57:18] *** devx101 has quit IRC
[03:57:28] <zelrik> robdubya, nested ng-repeat, I need both indexes in a ng-click method call
[03:57:36] <robdubya> its bad when you're reaching upwards through scopes to fetch a value instead of inheriting properly in the first place.
[03:57:43] <robdubya> i think that's probably fine
[03:57:56] <robdubya> ckboii89 yeah, make your plunker and just change the url
[03:57:59] *** bphogan is now known as bphogan_afk
[03:58:06] *** richardbaker has quit IRC
[03:58:14] <robdubya> start your local server and then start ngrok and point it at the local port
[03:58:15] <wafflejock> zelrik: yeah the problem is if your component might be used in a different context where index from it's parent isn't the thing it should be operating on
[03:58:17] <robdubya> pretty slick
[03:58:31] *** hswolff has quit IRC
[03:58:55] <wafflejock> zelrik: if you have some isolated use case for a component it's not going to break anything really
[03:58:56] *** sbeam has joined #angularjs
[03:59:00] <robdubya> zelrik why do you need both indexes? if its to "look up" the object from the cotrnoller, just pass the object through
[03:59:11] *** Left_Turn has quit IRC
[03:59:20] <zelrik> wafflejock, it s in a directive template
[03:59:32] <robdubya> ng-click="doSomethingWithThisRow(row) vs thisRow($index)
[03:59:34] *** hswolff has joined #angularjs
[03:59:38] *** danielpquinn has quit IRC
[03:59:49] <zelrik> hmm
[04:00:00] <zelrik> yeah maybe I was overcomplicating things
[04:00:00] *** charuru has quit IRC
[04:00:02] <robdubya> you already *have* the object, just use it :D
[04:00:12] <zelrik> I could refactor it
[04:00:18] <robdubya> since javascript, it'll be the same object everywhere
[04:00:24] <robdubya> (which goes back to the . thing)
[04:00:56] *** shinnya has joined #angularjs
[04:00:58] *** conner_ has quit IRC
[04:01:24] <zelrik> robdubya, it might be hard to get the object's position in the ng-repeat though just by looking at it
[04:01:44] *** ericsonluciano has joined #angularjs
[04:01:44] <robdubya> zelrik like i said, depends what you're trying to do
[04:01:49] *** charuru has joined #angularjs
[04:01:50] *** snapwich has quit IRC
[04:01:56] <ckboii89> brb making plunkr
[04:02:01] <robdubya> typically the $index has limited value outside of the view
[04:02:14] <zelrik> robdubya, I do think I wrote that stuff when I didnt know what I was doing though, I might be able to refactor a lot of it
[04:02:26] *** fggffgfg has joined #angularjs
[04:02:38] <zelrik> might take a bit of refactoring, so not for today ;p
[04:02:47] <robdubya> shit aint broke, dont fix it
[04:02:49] <fggffgfg> fgdfgfg
[04:02:51] <fggffgfg> fdgfhghjhj
[04:02:52] <zelrik> yeah
[04:02:54] <fggffgfg> 5456444654
[04:02:56] <robdubya> and a dfdsdsafds to you too sir
[04:03:04] *** fggffgfg has left #angularjs
[04:04:24] <zelrik> damn I am getting stars
[04:05:36] *** richardbaker has joined #angularjs
[04:06:51] *** sgnl_ has joined #angularjs
[04:07:20] *** sgnl has quit IRC
[04:07:47] *** nerdfiles has joined #angularjs
[04:07:49] *** sgnl has joined #angularjs
[04:07:59] *** knownasilya has joined #angularjs
[04:08:28] *** ChrisC_ has joined #angularjs
[04:09:01] <robdubya> zelrik stars?
[04:09:05] <ckboii89> shit i just realized ngrok wont work
[04:09:13] <zelrik> robdubya, on github
[04:09:16] *** roymilder has joined #angularjs
[04:09:17] <ckboii89> im using rails as my backend call
[04:09:37] <robdubya> that's fine ckboii89, it just binds to whatever port you're running rails on
[04:09:50] <robdubya> zelrik careful, that shit is like crack
[04:09:57] <zelrik> lol
[04:10:12] <zelrik> it s since I posted my shit on ngmodules
[04:10:20] *** tbo_ has joined #angularjs
[04:10:50] <robdubya> its cool though, nice to know people actually use stuff you make
[04:11:35] <zelrik> it s encouraging me to do more opensource stuff
[04:11:40] *** sgnl_ has quit IRC
[04:13:20] <robdubya> i kinda have this belief that open source will save the world
[04:13:43] *** KushS has quit IRC
[04:13:49] *** roymilder has quit IRC
[04:14:03] *** paul_dijou has joined #angularjs
[04:14:04] <robdubya> not sure how exactly, but i like working in an industry that has such a thing as its entire base
[04:14:09] *** KushS has joined #angularjs
[04:14:39] <zelrik> it makes things move a lot faster
[04:14:57] <JimTheDev> zelrik: what module did you make?
[04:15:19] *** mattt_ has joined #angularjs
[04:15:25] <zelrik> JimTheDev, http://alexcppns.github.io/
[04:15:52] <robdubya> zelrik did you ever look into the ngdoc stuff?
[04:16:11] *** Nijikokun has quit IRC
[04:16:11] <zelrik> nop..
[04:16:19] *** paperElectron is now known as Paper_bounced
[04:16:32] <JimTheDev> nice. Looks good!
[04:16:36] *** tbo_ has quit IRC
[04:17:19] <robdubya> zelrik one thing to be said for o/s is that it makes you think when writing code. "other people will look at this" is powerful motivation to do it "right" i find
[04:17:41] <robdubya> docs go with that, i would have never spent the time figuring out ngdocs otherwise haha
[04:17:56] <zelrik> I should look into it
[04:17:58] <JimTheDev> I need to do the same.
[04:18:04] *** richardbaker has quit IRC
[04:18:12] <zelrik> I was actually writing some documentation yesterday
[04:18:37] *** KushS has quit IRC
[04:19:46] <zelrik> robdubya, when I look at the number of gem/packages we used in our project at work, I can't help but wonder 'what if all that stuff was closed source and not free?'
[04:19:47] *** nerdfiles has quit IRC
[04:20:05] *** Hackwar has joined #angularjs
[04:20:28] <zelrik> we'd be pulling our hair trying to reinvent the wheel
[04:21:25] <robdubya> https://github.com/balderdashy/angularSails/blob/master/Gruntfile.js#L26-L28 + https://github.com/balderdashy/angularSails/blob/master/src/socket.js#L608-L618 = http://balderdashy.github.io/angularSails/#/api
[04:21:36] <robdubya> zelrik we'd all be fucked, that's what
[04:22:22] <zelrik> cool
[04:22:29] *** spencercarnage has quit IRC
[04:22:36] <zelrik> We're already screwed enough like that
[04:22:38] *** Hackwar1 has quit IRC
[04:22:41] <zelrik> no need to be more screwed
[04:22:42] <zelrik> :)
[04:22:53] <robdubya> that's mostly the $http docs repurposed, but it took a while to figure out the structure
[04:22:53] *** AciD``` has quit IRC
[04:22:56] *** richardbaker has joined #angularjs
[04:23:10] <robdubya> there's a new project too https://github.com/angular/dgeni but i haven't really figured that one out yet
[04:23:42] *** Paper_bounced is now known as paperElectron
[04:24:31] *** vonnegut has joined #angularjs
[04:25:59] <JimTheDev> looks like dgni works if you’re using gulp, but grunt isnt a priority: https://github.com/angular/dgeni/issues/2
[04:26:03] <mattt_> I’m trying to run some simple jasmine unit tests with karma, but am seeing this error: TypeError: '[object Object]' is not a function (evaluating 'module('mean')') It works fine if I replace “module(‘mean’)” with “angular.mock.module(‘mean’)”
[04:26:06] <JimTheDev> so for now I will ngoc it
[04:27:34] *** rho has joined #angularjs
[04:28:31] *** mfunkie_ has joined #angularjs
[04:28:56] *** Jae has quit IRC
[04:29:04] <robdubya> JimTheDev yeah, angular 2 is all gulp so i guess not
[04:29:05] *** RedOrangeZ2 has joined #angularjs
[04:29:49] *** hugorodrigues has quit IRC
[04:29:54] <JimTheDev> robdubya: makes sense really to try to keep it all in one lang. I just hope all of the grunt plugins I use get ported
[04:30:24] <robdubya> most of what i use has been from what i can tell
[04:30:39] <robdubya> i use grunt in production stuff today and gulp in all my exploratory adventuring at hte moment
[04:31:28] *** L8TR has joined #angularjs
[04:31:33] <JimTheDev> Same. I want the ionic generator project to move to gulp, but the bfd shot it down for now
[04:32:18] <robdubya> you've seen their webapp gui thing right?
[04:33:16] <ckboii89> why does plunkr not like ngResource in module parameter?
[04:33:36] <robdubya> do you have the file included?
[04:33:57] <robdubya> JimTheDev http://ionicframework.com/creator/ if you haven't
[04:35:06] <ckboii89> which file?
[04:35:16] <robdubya> angular-resource
[04:35:51] *** DrMabuse has joined #angularjs
[04:35:51] <robdubya> .js
[04:36:07] <ckboii89> oops
[04:36:21] <JimTheDev> Yeah I’ve seen it but haven’t got an invite from it. I’ll check it out when I do.
[04:39:03] <ckboii89> can someone link me the file to ng-resource?
[04:39:05] <ckboii89> please?
[04:39:30] <robdubya> ckboii89 on plunker there's a little book icon on the right, search for angular-resource in there
[04:39:56] *** DrMabuse has quit IRC
[04:40:12] *** devx101_ has quit IRC
[04:41:21] *** flocca has joined #angularjs
[04:41:28] *** lotus has joined #angularjs
[04:41:31] *** vonnegut has joined #angularjs
[04:41:41] *** RedOrangeZ2 has quit IRC
[04:41:58] *** paul_dijou has quit IRC
[04:42:03] *** Hackwar has quit IRC
[04:42:15] <robdubya> JimTheDev my current skunkworks project is a thing like that, but for data / apis / etc
[04:43:34] <JimTheDev> sweet. What’s it written in?
[04:43:35] *** vonnegut has quit IRC
[04:43:48] <JimTheDev> node, php, .net etc?
[04:44:00] <robdubya> node
[04:44:24] *** vonnegut has joined #angularjs
[04:44:44] <JimTheDev> very nice. Does it connect w/remote data sources?
[04:45:53] <robdubya> ever done iOS / Core Data dev?
[04:46:07] *** flocca has quit IRC
[04:47:28] *** bkuberek has joined #angularjs
[04:47:37] *** slainer68 has quit IRC
[04:50:28] *** tigrang has joined #angularjs
[04:50:42] *** lite_ has joined #angularjs
[04:51:46] <tigrang> If I have a page that lists products, and another page that adds products, should I have two different controllers for those?
[04:52:58] *** motionman has joined #angularjs
[04:52:58] *** motionman has joined #angularjs
[04:53:33] <robdubya> probably
[04:55:08] *** lite_ has quit IRC
[04:55:48] *** s3shs has quit IRC
[04:56:14] *** danielpquinn has joined #angularjs
[04:57:29] *** mnewton has joined #angularjs
[04:58:35] *** encryptd_fractl has joined #angularjs
[04:59:04] *** paul_dijou has joined #angularjs
[04:59:11] <mnewton> Hey guys, I have a span.meaning which is initally hidden in my css. How do I change the css class for .meaning to toggle between "display:block" and none
[05:00:32] *** devx101 has joined #angularjs
[05:00:34] *** danielpquinn has quit IRC
[05:01:03] *** phuh has joined #angularjs
[05:01:36] *** vonnegut has joined #angularjs
[05:01:39] *** phuh has quit IRC
[05:01:56] *** vonnegut has quit IRC
[05:02:19] *** k-dawg has joined #angularjs
[05:03:07] *** encryptd_fractl has quit IRC
[05:05:56] *** homey has quit IRC
[05:07:31] <ckboii89> can someone tell me why my modal wont open?
[05:07:32] <ckboii89> http://plnkr.co/edit/Zdn7K3yRERA259Aqwid2?p=preview
[05:07:56] <robdubya> ah you're not dead
[05:08:10] <ckboii89> was having difficulties :(
[05:08:13] <ckboii89> im new to angular and all
[05:08:21] <ckboii89> so its not the nicest code
[05:08:27] <robdubya> no jq
[05:08:51] <JimTheDev> robdubya: Core Data dev?
[05:09:28] <ckboii89> no jq??
[05:09:41] <robdubya> ckboii89 something you're using wants JQ, and you dont have the file included
[05:10:00] *** roymilder has joined #angularjs
[05:10:08] <robdubya> and example.js is not found
[05:10:11] <robdubya> look at the console
[05:10:59] <robdubya> JimTheDev http://i.imgur.com/LbfWkzP.png
[05:11:04] <robdubya> thats core data
[05:11:20] <robdubya> (for Objective C / iOS)
[05:11:23] <robdubya> like that
[05:11:24] <robdubya> but JS
[05:11:30] <robdubya> angular/node
[05:11:37] <JimTheDev> no never worked with it. looks pretty neat.
[05:12:44] *** xjiujiu has joined #angularjs
[05:13:39] *** sdouglas has joined #angularjs
[05:13:50] *** twilson63 has joined #angularjs
[05:14:04] *** roymilder has quit IRC
[05:14:52] *** daptordarattler has quit IRC
[05:15:08] *** dylukes has quit IRC
[05:17:16] *** Hans_ has joined #angularjs
[05:17:54] *** Hans_ has quit IRC
[05:17:56] *** dylukes has joined #angularjs
[05:17:56] *** rburns has quit IRC
[05:18:09] <robdubya> JimTheDev its the only thing i miss from doing "proper" iOS dev
[05:18:13] *** twilson63 has quit IRC
[05:18:36] <JimTheDev> yeah I bet. I wish there was a think like that for PHP
[05:18:51] *** tfennelly has joined #angularjs
[05:19:01] *** MTGap has quit IRC
[05:19:30] <JimTheDev> robdubya: have you written ios cordova plugins? Is it easy?
[05:20:05] <robdubya> JimTheDev not too bad really, depending what you want to do
[05:20:17] *** rburns has joined #angularjs
[05:20:45] *** s3shs has joined #angularjs
[05:21:04] *** Tidwell has joined #angularjs
[05:21:44] *** xjiujiu has quit IRC
[05:22:12] *** xjiujiu has joined #angularjs
[05:22:35] *** Aerospark has quit IRC
[05:22:42] *** Siecje has joined #angularjs
[05:22:54] <JimTheDev> I don’t have any mobile dev background so Angular+Cordova is great but makes me wish I could write ios/android plugins sometimes.
[05:22:58] *** tfennelly has quit IRC
[05:24:23] *** ngbot has joined #angularjs
[05:24:23] <ngbot> [angular.js] IgorMinar pushed 1 new commit to master: http://git.io/FxIKrg
[05:24:23] <ngbot> angular.js/master af20a8a Igor Minar: docs($parse:isecdom): add a section about return values and CoffeeScript...
[05:24:23] *** ngbot has left #angularjs
[05:24:37] *** Aerospark has joined #angularjs
[05:24:56] *** Aerospark has joined #angularjs
[05:25:16] *** jonog has joined #angularjs
[05:25:40] *** toastynerd has quit IRC
[05:25:49] *** starfox_21 has quit IRC
[05:27:26] *** richardbaker has quit IRC
[05:28:03] *** cigarshark has quit IRC
[05:28:13] *** dylukes has quit IRC
[05:29:25] *** richardbaker has joined #angularjs
[05:30:20] *** Aerospark has quit IRC
[05:30:36] *** xjiujiu has quit IRC
[05:30:41] *** dc_ has joined #angularjs
[05:31:04] *** xjiujiu has joined #angularjs
[05:31:06] *** dc_ has quit IRC
[05:31:16] *** toastynerd has joined #angularjs
[05:31:43] *** Aerospark has joined #angularjs
[05:31:54] *** stickperson has quit IRC
[05:32:26] <ckboii89> hey @robdubya for the url parameter that i pass in for http.get what do i change to using ngrok?
[05:32:41] *** Aerospark has quit IRC
[05:33:15] <robdubya> when you start the nggrok server it will give you a url
[05:33:42] *** ericsonluciano has quit IRC
[05:34:15] <ckboii89> http://29e0ddaa.ngrok.com
[05:34:18] <ckboii89> liek this?
[05:34:23] <ckboii89> fowarding
[05:34:33] <ckboii89> on port 80
[05:34:58] <robdubya> right but your ruby server is probably not running on 80
[05:35:42] <robdubya> the ngrok port will be 80 to the public, but you need to point it at whatever port your ruby server is on
[05:36:26] *** DrMabuse has joined #angularjs
[05:36:33] <ckboii89> any idea how to find out?
[05:36:58] <ckboii89> oh i think i found it
[05:37:24] <ckboii89> do i ./ngrok portnumber?
[05:37:40] <robdubya> iirc yes
[05:38:51] *** mfunkie_ has quit IRC
[05:39:01] *** rho has quit IRC
[05:40:28] *** gnrlbzik has joined #angularjs
[05:40:32] <ckboii89> so if my url for action is /api/content_search, is the url http://29e0ddaa.ngrok.com//api/content_search
[05:41:05] *** DrMabuse has quit IRC
[05:41:42] *** Emperor_Earth__ has quit IRC
[05:41:54] *** wa5ted has quit IRC
[05:42:09] *** fedenunez has joined #angularjs
[05:43:03] *** lotus has quit IRC
[05:44:32] <ckboii89> wow ngrok so powerful
[05:44:37] <ckboii89> oh my god
[05:44:46] *** Aerospark has joined #angularjs
[05:45:00] *** gnrlbzik has quit IRC
[05:45:10] *** conner_ has joined #angularjs
[05:45:31] *** jonog has quit IRC
[05:45:45] *** s3shs has quit IRC
[05:46:13] <JimTheDev> ckboii89: yeah it is great
[05:46:26] *** jonog has joined #angularjs
[05:46:36] *** Nijikokun has joined #angularjs
[05:47:46] <mattt_> Why do weird things happen when I specify an absolute path for templateUrl in a ui-router state config?
[05:47:48] *** richardbaker has quit IRC
[05:47:54] <ckboii89> k @robdubya, heres the plunker
[05:47:56] <ckboii89> http://plnkr.co/edit/rvZ03M5KCekncR9lSAXe?p=preview
[05:48:42] *** stickperson has joined #angularjs
[05:49:04] *** crocket has joined #angularjs
[05:49:08] *** chrisbirk has quit IRC
[05:49:18] *** conner_ has quit IRC
[05:49:33] <crocket> Can anyone help me with protractor? Is there a function that checks presence of a list of elements?
[05:49:49] <crocket> It's possible without a convenient function, but it's verbose.
[05:50:38] *** jonog has quit IRC
[05:51:03] <mattt_> crocket: which assertion library?
[05:51:14] *** jonog has joined #angularjs
[05:51:29] *** lite_ has joined #angularjs
[05:52:05] <mattt_> crocket: are you using jasmine?
[05:53:00] <crocket> matthew_r, I'm using chai and chai-as-promised.
[05:53:13] *** ilmgb has quit IRC
[05:53:30] <crocket> huh
[05:53:34] <crocket> Should I log in before all tests?
[05:53:40] <crocket> Or should there be a login test?
[05:53:43] *** ilmgb has joined #angularjs
[05:53:56] <crocket> If there is a login test, mocha can't guarantee the login test is executed first.
[05:54:08] <mattt_> crocket: check chai’s “deep” flag, and include/contain
[05:54:12] *** Jae has joined #angularjs
[05:54:20] *** InezK_away is now known as InezK
[05:54:21] <crocket> matthew_r, Why?
[05:54:35] <mattt_> crocket: to assert list contents, isn’t that what you wanted?
[05:55:08] *** mnewton has quit IRC
[05:55:31] <mattt_> crocket: re: being logged in, protractor is used for e2e testing, so yes you’ll want to login if the functionality/pages/views you’re testing are not available to unauthenticated users.
[05:55:37] *** slainer68 has joined #angularjs
[05:55:38] *** amargherio has quit IRC
[05:55:41] <crocket> matthew_r, I didn't want to assert a list.
[05:55:56] *** lite_ has quit IRC
[05:55:56] <crocket> matthew_r, What if I wanted to test login itself?
[05:56:20] <mattt_> crocket: not sure what you mean by “checks presence of a list of elements” then
[05:56:47] <crocket> matthew_r, If I don't log in before tests, I should make sure that login operation is idempotent.
[05:57:00] *** danielpquinn has joined #angularjs
[05:57:11] <crocket> login should not cause an error even if the web browser is already logged in.
[05:57:38] <crocket> So, the login function checks the presence of login elements without which it won't log in.
[05:57:57] <crocket> matthew_r, I was thinking about executing login function in every test.
[05:58:10] *** paperElectron is now known as Paper_bounced
[05:58:16] <crocket> The function logs in if the browser is not already logged in.
[05:58:19] *** steffengy has quit IRC
[05:58:20] *** steffengy1 has joined #angularjs
[05:58:38] <crocket> But, this is leading to complexity.
[05:58:44] *** Paper_bounced is now known as paperElectron
[05:58:46] <mattt_> ya, welcome to testing :P
[05:58:47] *** ilmgb has quit IRC
[05:58:51] <robdubya> haha
[05:59:18] <mattt_> I’ve been bangin’ my head on a wall over the last few days just to get it working..
[05:59:42] <ckboii89> @robdubya any suggestions??
[06:00:07] *** lotus has joined #angularjs
[06:00:15] <robdubya> ckboii89 didnt see it, looking now
[06:00:32] <crocket> matthew_r, Should I expose a plain login function in my page object? Or should I just expose login elements?
[06:00:34] *** toastynerd has quit IRC
[06:00:55] <chexxor> anyone using cometd in their angular app?
[06:01:17] <robdubya> ckboii89 what are you doing in line 33/34?
[06:01:48] *** danielpquinn has quit IRC
[06:01:50] *** gnrlbzik has joined #angularjs
[06:02:07] <robdubya> ckboii89 leave it up for a minute, plunking
[06:02:07] *** jonog has quit IRC
[06:02:21] <ckboii89> that... im still confused
[06:02:24] <ckboii89> coworker wrote that
[06:02:28] <ckboii89> i'm a intern
[06:02:37] <mattt_> crocket: I’m not sure. I don’t have much experience with this and you’ve got me thinking how I’d do it in my own app. Because I’ll have to soon. I’ve got my protractor testing setup such that my app is in a known state every time I do a test run (database is empty, and no sessions exist.) So, in my situation I would login at the beginning of every test run. But in the future I’d probably want to setup a variety of
[06:02:37] <mattt_> ‘starting points’ where the DB contains data, and maybe a session already exists (with the user logged in).
[06:02:40] *** jonog has joined #angularjs
[06:02:46] <ckboii89> startup we just hackin stuff together for mvp by the end of the month :P
[06:03:39] *** ngbot has joined #angularjs
[06:03:39] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/xbANSw
[06:03:39] <ngbot> angular.js/master a2c7cf9 Jesse Palmer: docs($http): remove invalid JSDOC tags for patch() method...
[06:03:39] *** ngbot has left #angularjs
[06:04:05] <jpstone-> wowzers @ ngrok
[06:04:08] <robdubya> ckboii89 should your API be returning data?
[06:04:15] <crocket> matthew_r, My login method doesn't allow programmers to assign user id and password to it.
[06:04:20] <robdubya> can you give me a URL (here) that works?
[06:04:24] *** Siecje has quit IRC
[06:04:30] <crocket> matthew_r, If I call my login method without any argument, it just logs in.
[06:04:41] <crocket> matthew_r, Do you think this behavioral API is suitable for tests?
[06:04:48] <ckboii89> it only returns when someone types in the search box
[06:04:48] *** rawGem has joined #angularjs
[06:04:50] *** tedwing has quit IRC
[06:04:53] <crocket> Or should I just expose WebElements in my page objects?
[06:04:57] <mattt_> crocket: I’d have to have protractor visit my login page and submit a username/pw via the form
[06:05:08] *** toastynerd has joined #angularjs
[06:05:24] <crocket> matthew_r, https://github.com/stuplum/astrolabe
[06:05:38] *** rawGem is now known as R_Gant
[06:05:43] <crocket> https://github.com/stuplum/astrolabe is a page object library for protractor, and it's flexible since it doesn't try to expose any behavior.
[06:05:54] <crocket> It encourages users to expose WebElements.
[06:06:16] <zumba_addict> hey folks, how do we stop $timeout?
[06:06:40] *** Hackwar has joined #angularjs
[06:06:59] <mattt_> crocket: cool
[06:07:01] *** jonog has quit IRC
[06:07:17] *** dariocravero has joined #angularjs
[06:07:20] <crocket> I think I should expose both page elements and page behaviors.
[06:07:34] <zumba_addict> ah cancel, ignore guys
[06:08:59] *** drej has quit IRC
[06:09:08] *** Abhijit has joined #angularjs
[06:09:11] *** Abhijit has joined #angularjs
[06:09:22] *** drej has joined #angularjs
[06:09:31] *** Abhijit has left #angularjs
[06:10:44] *** roymilder has joined #angularjs
[06:11:33] *** CptChaos_ has quit IRC
[06:12:40] <robdubya> ckboii89 ok, so here's what i dont understand
[06:12:50] <robdubya> why are you doing the search and stuff on the demo controller?
[06:12:51] *** devx101 has quit IRC
[06:12:55] <robdubya> the modal has its *own* controller
[06:13:26] *** devx101 has joined #angularjs
[06:13:43] <robdubya> as far as i can tell, you want to click the button, create a new thing, and give it back to the main screen, yes?
[06:13:57] <ckboii89> yeah
[06:14:36] *** chrisbirk has joined #angularjs
[06:14:39] <ckboii89> it will be posted to DB, and ng-grid will pick show the new thing
[06:14:45] <ckboii89> well thats the idea
[06:15:01] *** roymilder has quit IRC
[06:15:34] <robdubya> what's the "thing" - a "Treatment" ?
[06:15:43] <robdubya> or is that a property of the new thing
[06:16:14] <ckboii89> treatment
[06:16:17] <ckboii89> on the form
[06:16:21] <robdubya> ps, want to be an intern that people like, and dont want to murder?
[06:16:29] <robdubya> learn how rest works, and dont write APIs like this
[06:16:34] <robdubya> :D
[06:16:44] <ckboii89> funny you mention
[06:16:50] <ckboii89> i actually didnt write it liek this
[06:16:53] <ckboii89> my boss did
[06:17:18] <ckboii89> i referenced the code thats all
[06:17:28] <ckboii89> but of course i would want people to like me
[06:17:35] <ckboii89> its just me and another guy working on this
[06:18:08] *** devx101 has quit IRC
[06:18:14] *** tbo_ has joined #angularjs
[06:18:19] *** k-dawg has quit IRC
[06:18:56] <crocket> hmm
[06:19:01] *** superplussed has joined #angularjs
[06:19:03] <crocket> robdubya, Do you write UI tests with protractor?
[06:19:32] *** chrisbirk has quit IRC
[06:19:39] *** PCChris_ has quit IRC
[06:20:44] *** Shrooms has quit IRC
[06:22:02] *** dariocravero has quit IRC
[06:22:19] *** gauravsaini03 has joined #angularjs
[06:22:20] *** dc_ has joined #angularjs
[06:23:19] *** tbo_ has quit IRC
[06:23:27] <mattt_> Why is it that if I don’t specify an absolute path for templateUrl in a ui-router state that when fetching the template the url for the state will be prepended to the templateUrl?
[06:24:01] *** lotus has quit IRC
[06:25:05] *** InezK is now known as InezK_away
[06:26:14] <crocket> OK
[06:26:15] <robdubya> ckboii89 ok
[06:26:16] <robdubya> so
[06:26:25] <crocket> I think I'm going to use https://www.npmjs.org/package/astrolabe to write page objects.
[06:26:32] *** cigarshark has joined #angularjs
[06:27:19] *** gnrlbzik has quit IRC
[06:27:30] *** sdouglas has quit IRC
[06:27:31] *** davedev24_ has quit IRC
[06:27:33] *** mennea has joined #angularjs
[06:28:09] *** davedev24_ has joined #angularjs
[06:28:55] *** cigarshark has quit IRC
[06:29:15] *** cigarshark has joined #angularjs
[06:29:44] <ckboii89> when you're referring API are you referring the javascript?
[06:29:44] *** chrisbirk has joined #angularjs
[06:29:49] *** flocca has joined #angularjs
[06:29:58] <atlasapollo> Hi. Can someone please help with this: http://plnkr.co/edit/z15lOFaXEmae4SdgYmT8
[06:30:08] <robdubya> ckboii89 no, the endpoint you're calling
[06:30:30] <ckboii89> line 33,34?
[06:30:44] <atlasapollo> I am trying to update a $scope variable with a $broadcast triggers an $on function. The function gets called, but the binding isn't updating on the screen.
[06:30:58] <atlasapollo> "with a" = "when a"
[06:31:16] <robdubya> http://plnkr.co/edit/xta27SyFdZ4sXSnVcXEf?p=preview
[06:31:18] <robdubya> ckboii89
[06:31:27] <robdubya> that's refactoired a lot
[06:31:33] <robdubya> currently i cant hit the API because of CORS
[06:31:43] *** dc_ has quit IRC
[06:31:46] <robdubya> and also for some reason its opening up two instances of the modal
[06:31:46] *** rho has joined #angularjs
[06:31:46] *** rho has joined #angularjs
[06:31:51] <robdubya> tracking that down now
[06:32:18] *** davedev24_ has quit IRC
[06:33:05] <mattt_> robdubya: I ran into something similar recently that had to do with ui-boostrap
[06:33:14] <robdubya> thoughts?
[06:33:15] *** tomzx is now known as tomzx`afk
[06:33:36] <ckboii89> its definitly cleaner
[06:33:45] <mattt_> I had a dropdown menu I had to click on twice before it opened.. and somewhere read that it had to do with being loaded twice.
[06:34:13] *** flocca has quit IRC
[06:34:13] *** chrisbirk has quit IRC
[06:34:20] *** Ethix has quit IRC
[06:34:20] <mattt_> removing ui-bootstrap js worked for me, since I wasn’t using it anyway..
[06:36:15] <mattt_> ckboii89: curious what you’re working on - medical software?
[06:36:48] <ckboii89> i guess you can say that
[06:36:59] <ckboii89> web service
[06:37:01] <mattt_> for billing
[06:37:05] *** DrMabuse has joined #angularjs
[06:37:21] <ckboii89> nope
[06:38:49] *** hswolff has quit IRC
[06:39:09] *** Gambit- has joined #angularjs
[06:41:56] *** DrMabuse has quit IRC
[06:42:38] *** paul_dijou has quit IRC
[06:42:52] *** motionman has quit IRC
[06:43:59] *** motionman has joined #angularjs
[06:44:11] *** motionman has joined #angularjs
[06:44:45] *** chrisbirk has joined #angularjs
[06:45:21] *** gnarMatix has joined #angularjs
[06:47:02] *** Vye_ has quit IRC
[06:47:19] <robdubya> ckboii89 oh hahah you had angular included x2
[06:47:40] <robdubya> http://plnkr.co/edit/OeXiOEDdOqSII1du22dG?p=preview
[06:47:49] *** atlasapollo has quit IRC
[06:48:47] <ckboii89> :P
[06:49:18] *** chrisbirk has quit IRC
[06:50:02] <ckboii89> how come you took out the typesearch pushing?
[06:50:36] <ckboii89> angular.forEach(res.data, function(item){
[06:50:36] <ckboii89> console.log(item);
[06:50:36] <ckboii89> treatments.push(item);
[06:50:37] *** R_Gant has quit IRC
[06:50:38] <ckboii89> })
[06:53:31] <robdubya> ckboii89 http://plnkr.co/edit/BJ0XoIKbhN0Yf7e5cnM9?p=preview
[06:53:37] <robdubya> that actually works now
[06:53:39] *** night-owl has quit IRC
[06:53:43] <robdubya> (against a fake api)
[06:53:49] *** SrinivasGowda has joined #angularjs
[06:53:51] <SrinivasGowda> hi
[06:53:57] <SrinivasGowda> Good morning, I have a screen of sales, each new item is generated autocomplete. How would each id to return within each id field.
[06:54:02] *** night-owl has joined #angularjs
[06:54:08] <SrinivasGowda> this is my app https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/10462861_563122857132050_5832754538391074949_n.jpg
[06:54:08] <robdubya> ckboii89 oop refresh that
[06:55:00] *** fedenunez has quit IRC
[06:55:02] *** noren has quit IRC
[06:55:16] <robdubya> ckboii89 took out because its redundant (and slows it down)
[06:55:22] <SrinivasGowda> should I use dirty check to see if the value changes on the product field and then update the id field ?
[06:55:23] *** paperElectron is now known as Paper_bounced
[06:55:27] <ckboii89> interesting
[06:55:28] <robdubya> its already (or should be) a parse json array
[06:55:33] *** elxa has quit IRC
[06:55:33] *** MJD_ has quit IRC
[06:55:34] <robdubya> *parsed
[06:55:43] <robdubya> SrinivasGowda no, just bind them to the same field
[06:55:48] *** elxa has joined #angularjs
[06:56:42] <SrinivasGowda> robdubya, thanks that helped
[06:56:43] *** alanp has quit IRC
[06:56:44] <SrinivasGowda> :)
[06:56:47] *** SrinivasGowda has quit IRC
[06:56:56] <ckboii89> @robdubya thanks alot mate!
[06:56:57] *** alanp has joined #angularjs
[06:57:25] <robdubya> ckboii89 https://blog.apigee.com/detail/restful_api_design
[06:57:29] *** Paper_bounced is now known as paperElectron
[06:57:34] *** mennea_ has joined #angularjs
[06:57:36] <robdubya> please read it, for the good of all your future endeavors
[06:57:45] *** mennea has quit IRC
[06:57:46] *** danielpquinn has joined #angularjs
[06:58:13] <robdubya> tldr
[06:58:21] <robdubya> GET /treatments?search=abc
[06:58:26] *** visionary has joined #angularjs
[06:58:28] <robdubya> POST /treatment
[06:58:28] <robdubya> etc
[06:58:29] *** gnrlbzik has joined #angularjs
[06:58:43] *** paul_dijou has joined #angularjs
[06:58:56] <robdubya> not GET /the_generic_search_endpoint?abunchofshit=youhavetoremembmer
[06:59:25] *** J0514H has joined #angularjs
[06:59:37] *** MJD has joined #angularjs
[06:59:48] *** chrisbirk has joined #angularjs
[07:00:57] *** gnarMatix has quit IRC
[07:01:20] *** gnarMatix has joined #angularjs
[07:02:07] *** danielpquinn has quit IRC
[07:02:37] *** gnrlbzik has quit IRC
[07:02:57] *** michaelchum has quit IRC
[07:03:49] <ckboii89> whats the difference between findtreatments and getTreatment??
[07:04:03] *** chrisbirk has quit IRC
[07:04:07] <ckboii89> nvm
[07:04:08] <ckboii89> i mean
[07:04:37] <ckboii89> ill figure it out
[07:04:49] <robdubya> dunno, that was your method
[07:04:55] *** badon has joined #angularjs
[07:05:04] <robdubya> i assume you meant get one by id vs searching
[07:06:58] <ckboii89> yeah gonna ask coworker
[07:10:03] *** paperElectron is now known as Paper_bounced
[07:11:05] *** mindlace has joined #angularjs
[07:11:28] *** roymilder has joined #angularjs
[07:11:30] *** enigmarm has joined #angularjs
[07:13:08] *** anton000 has joined #angularjs
[07:13:13] <anton000> anyone here?
[07:13:52] *** caitp has quit IRC
[07:14:46] *** chrisbirk has joined #angularjs
[07:14:58] *** sdouglas has joined #angularjs
[07:15:08] *** [HACKING-TWITTER has quit IRC
[07:15:36] *** gnarMatix has quit IRC
[07:16:00] *** roymilder has quit IRC
[07:16:33] *** Paper_bounced is now known as paperElectron
[07:17:09] *** kayloos has joined #angularjs
[07:17:12] *** chrisbirk has quit IRC
[07:18:03] *** chrisbirk has joined #angularjs
[07:18:55] *** tbo_ has joined #angularjs
[07:19:04] *** [HACKING-TWITTER has joined #angularjs
[07:19:42] *** gnarMatix has joined #angularjs
[07:20:28] *** jonog has joined #angularjs
[07:21:57] *** kayloos has quit IRC
[07:22:05] *** sgnl_ has joined #angularjs
[07:22:05] *** beckyconning__ has quit IRC
[07:22:18] *** VictorBjelkholm has quit IRC
[07:22:46] *** sgnl_ has quit IRC
[07:23:08] *** tbo_ has quit IRC
[07:23:27] *** sgnl has quit IRC
[07:23:46] *** weaktea__ has joined #angularjs
[07:24:28] *** InezK_away is now known as InezK
[07:25:34] *** stickperson has quit IRC
[07:26:02] *** pdillinger1 has joined #angularjs
[07:26:46] *** paperElectron is now known as Paper_bounced
[07:27:58] *** badon has quit IRC
[07:28:03] *** VictorBjelkholm has joined #angularjs
[07:28:46] *** sgnl has joined #angularjs
[07:28:57] *** Paper_bounced is now known as paperElectron
[07:30:14] *** Yahkob has joined #angularjs
[07:30:38] *** lw has quit IRC
[07:31:58] *** superplussed has quit IRC
[07:32:23] *** morenoh149 has quit IRC
[07:33:27] *** conner_ has joined #angularjs
[07:34:03] *** jonog has quit IRC
[07:34:18] *** InezK is now known as InezK_away
[07:34:37] *** jonog has joined #angularjs
[07:35:49] *** gnarMatix has quit IRC
[07:35:49] *** GeertV_ has joined #angularjs
[07:36:15] *** gnarMatix has joined #angularjs
[07:37:38] *** conner_ has quit IRC
[07:37:50] *** DrMabuse has joined #angularjs
[07:37:51] *** bkuberek has quit IRC
[07:38:00] *** asdofindia has joined #angularjs
[07:38:38] *** superplussed has joined #angularjs
[07:39:35] *** jonog has quit IRC
[07:40:09] *** jordandotdev has joined #angularjs
[07:40:18] *** gnarMatix has quit IRC
[07:41:05] *** beckyconning__ has joined #angularjs
[07:42:13] *** DrMabuse has quit IRC
[07:42:26] *** atlasapollo has joined #angularjs
[07:44:34] *** noocode has quit IRC
[07:44:58] <atlasapollo> Hi. Can someone please help me with this: http://plnkr.co/edit/Z38yuv003VqVaaVbx9qQ?p=preview ? I am trying to update a binding on a scope when the $on function is triggered by a $broadcast. The code executes into the $on function, and updates the variable, but the update does not reflect on the screen. I tried using $scope.apply() in the directive that runs the code-chain, but no joy yet. Thank you.
[07:45:47] *** yoshokatana has quit IRC
[07:47:18] *** mtlewis has joined #angularjs
[07:48:32] *** mtlewis has quit IRC
[07:49:26] *** noocode has joined #angularjs
[07:50:09] *** mattt_ has quit IRC
[07:52:16] *** nemothekid has quit IRC
[07:53:07] *** tigrang has quit IRC
[07:53:59] *** dancrew32 has quit IRC
[07:54:14] *** tylerlh has quit IRC
[07:54:31] *** dancrew32 has joined #angularjs
[07:54:41] *** dc_ has joined #angularjs
[07:54:47] *** tylerlh has joined #angularjs
[07:55:31] *** Notte has joined #angularjs
[07:55:53] *** tylerlh_ has joined #angularjs
[07:56:23] *** crocket has left #angularjs
[07:57:10] *** Jae has quit IRC
[07:58:27] *** dc_ has quit IRC
[07:58:32] *** danielpquinn has joined #angularjs
[07:58:44] *** dancrew32 has quit IRC
[07:59:08] *** tylerlh has quit IRC
[07:59:25] *** gnrlbzik has joined #angularjs
[08:00:06] *** wilmoore has joined #angularjs
[08:01:11] *** visionary has quit IRC
[08:03:02] *** kalusn has quit IRC
[08:03:08] *** danielpquinn has quit IRC
[08:03:53] *** gnrlbzik has quit IRC
[08:04:29] *** dc_ has joined #angularjs
[08:04:49] *** sdouglas has quit IRC
[08:05:58] *** mennea_ has quit IRC
[08:06:59] *** sdouglas_ has joined #angularjs
[08:07:28] *** hugorodrigues has joined #angularjs
[08:07:54] *** AlbireoX has joined #angularjs
[08:08:14] *** delerium_ has quit IRC
[08:08:14] <AlbireoX> Hi, how should I handle 404's when using ngResource?
[08:08:33] *** superplussed has quit IRC
[08:08:58] <beckyconning__> atlasapollo: http://plnkr.co/edit/skev60djFWHuGrAgdtYt?p=preview
[08:10:07] *** superplussed has joined #angularjs
[08:10:27] *** GeertV_ has quit IRC
[08:10:38] <beckyconning__> AlbireoX: I tend to have a networkstate service that i set to disconnece
[08:11:26] <beckyconning__> d when that happens. then you can display a reconnect button option to the person using it or even try a retry in x seconds first
[08:11:36] *** asdofindia has quit IRC
[08:11:45] *** corban has quit IRC
[08:11:49] *** hugorodrigues has quit IRC
[08:12:50] <AlbireoX> beckyconning__: I mean, how should I redirect the user to some kind of 404 page if they are trying to access a resource that doesn't exist?
[08:12:58] <AlbireoX> The $resource thing
[08:13:10] <AlbireoX> I would still like to use promises so I don't have to mess with too many callbacks
[08:13:36] *** niop has joined #angularjs
[08:14:03] <beckyconning__> AlbireoX: uh i wouldn't do that with $resource in most applications, do you mean ng-route? if not then i think we need more context about your app
[08:14:35] <beckyconning__> AlbireoX: and of course : ) promises are the best.
[08:14:44] *** sigurding has joined #angularjs
[08:14:53] <AlbireoX> beckyconning__: I am trying to make a wiki system, so I am using $resource to get the requested page. If that page doesn't exist, I want to redirect the user to the page creation page
[08:16:20] *** rho has quit IRC
[08:16:30] <beckyconning__> ah, thats not a typical use of $resource, you might want to use the resolution of the $resource promise in your routing and redirect them to the page creation thing there.
[08:17:27] <AlbireoX> I see, what is a typical use of $resource then?
[08:17:37] *** superplu_ has joined #angularjs
[08:17:40] *** J0514H has quit IRC
[08:18:04] *** flocca has joined #angularjs
[08:18:06] <niop> hi, if anyone some experience with nggrid, any comment on problem of column header misalignment as described here: http://stuff.letsgeekaround.com/
[08:18:32] *** superplussed has quit IRC
[08:19:00] *** sgnl has quit IRC
[08:19:16] *** superplu_ has quit IRC
[08:19:22] *** superplussed has joined #angularjs
[08:19:40] *** Alina-emergency has joined #angularjs
[08:19:42] <Alina-emergency> wtf
[08:19:55] *** anton000 has left #angularjs
[08:20:01] *** superplussed has quit IRC
[08:20:02] <Alina-emergency> If you are building a single-page app, AngularJS will be perfect for you. Gmail, Google Docs, Twitter, and Facebook explain me how i should use angular js with facebook? what dies it mean?
[08:20:08] *** tigrang has joined #angularjs
[08:20:15] *** ETBlue has quit IRC
[08:20:16] <atlasapollo> beckyconning: thank you very much! it looks excellent and I am looking through it to discover what the differences are. Many thanks! :)
[08:20:19] *** superplussed has joined #angularjs
[08:21:00] *** L8TR has quit IRC
[08:21:50] <Alina-emergency> hmm
[08:22:02] *** superplussed has quit IRC
[08:22:03] <Alina-emergency> anyone please anwser my questions, how the heck i can use facebook with angularjs?
[08:22:13] *** flocca has quit IRC
[08:22:19] *** superplussed has joined #angularjs
[08:22:37] *** waylon999 has joined #angularjs
[08:22:58] *** pheze has quit IRC
[08:23:08] *** enigmarm has quit IRC
[08:23:16] *** niop has quit IRC
[08:23:18] *** Mouzi has joined #angularjs
[08:23:31] <sacho_> the same way you use it with everything else
[08:24:03] <sacho_> AlbireoX, the result from $resource is an array with a property "$promise" which you can use
[08:24:06] *** superplussed has quit IRC
[08:24:15] <sacho_> e.g. result.$promise.then(function success(data) { ...})
[08:24:20] *** superplussed has joined #angularjs
[08:24:38] *** tfennelly has joined #angularjs
[08:25:19] *** InezK_away is now known as InezK
[08:25:26] *** superplussed has quit IRC
[08:25:35] <w1ther> Alina, what function of facebook do you want to use with angular. The authentication service?
[08:25:40] <sacho_> AlbireoX, the "typical" use relies on angular's data binding - you bind the (at first) empty array, and when the promise is resolved(and the array is filled), angular would bind those values to whatever you needed
[08:25:42] *** superplussed has joined #angularjs
[08:25:57] <Alina-emergency> oh erm
[08:26:07] *** cami1000 has quit IRC
[08:26:12] *** cphil has quit IRC
[08:26:42] *** sigurding has quit IRC
[08:26:45] *** paperElectron is now known as Paper_bounced
[08:26:46] <w1ther> Basically, what would you want to do with facebook?
[08:26:49] <sacho_> AlbireoX, e.g. $scope.data = $resource.get(); <li ng-repeat="item in data">... </li>
[08:27:11] <Alina-emergency> w1ther, there is a tutorial http://www.ng-newsletter.com/posts/beginner2expert-how_to_start.html the very first one when you type chars insode the form it type it and when you hit backspace it deletes it right? so i want to capchure that symbols that were typed there, how can i do that rather it is backspace, space or anything?
[08:27:30] *** Paper_bounced is now known as paperElectron
[08:27:45] *** Milanito has joined #angularjs
[08:28:27] *** J0514H has joined #angularjs
[08:28:58] *** tfennelly has quit IRC
[08:29:08] *** Notte has quit IRC
[08:29:10] <atlasapollo> I think the only differences I see are, in the index.html page, the directive is being called in the <BODY> instead of in the <HTML>, and in the app.js, it's scope.$apply(); -- NOT -- $scope.apply(); ---- now I will look into what the difference between $scope and scope is :-) MANY THANKS!! <3
[08:29:29] <Alina-emergency> looks like angular js ingoring backspaces
[08:29:33] <w1ther> So, if someone were to type into a form, you want to capture everything even if they hit backspace right?
[08:29:40] <Alina-emergency> yes
[08:29:41] *** paperElectron is now known as Paper_bounced
[08:29:42] <beckyconning__> Alina-emergency: i think you need to give us some more context. you could use angular with facebook in a million ways : )
[08:30:27] <Alina-emergency> beckyconning__, i dont know how to use it in facebook, can i do iframe import intpo wall with angular js into facebook? like gif files or something?
[08:30:36] *** Notte has joined #angularjs
[08:30:43] *** Paper_bounced is now known as paperElectron
[08:30:55] <beckyconning__> Alina-emergency: : x
[08:30:57] <Alina-emergency> w1ther, yes i want to capture the backspace when they hit
[08:31:05] <beckyconning__> Alina-emergency: use the facebook api not an iframe
[08:31:11] <Alina-emergency> erm
[08:31:24] <beckyconning__> Alina-emergency: i doubt an iframe would work given CORS restrictions
[08:31:27] <Alina-emergency> i can post gif on the wall with facebook api? beckyconning__ ?
[08:31:36] <beckyconning__> Alina-emergency: yes
[08:31:53] <Alina-emergency> :-/
[08:31:55] <Alina-emergency> how?
[08:32:35] <Alina-emergency> eh anyways i need to capture the backspace first
[08:32:39] <beckyconning__> Alina-emergency: are you talking about using facebook features like wall posting from angular, or having facebook app like a wall widget (ala soundcloud, youtube) which is written in angular
[08:32:59] <Alina-emergency> forget about facebook for now
[08:33:23] <beckyconning__> i find it hard to given your username : P
[08:33:56] *** kalusn has joined #angularjs
[08:33:59] <Alina-emergency> ok
[08:34:04] *** Yahkob has quit IRC
[08:34:05] <w1ther> Have you looked at ngKeypress? I haven't used it but I think it would work
[08:34:13] <Alina-emergency> bravo
[08:34:14] *** pheze has joined #angularjs
[08:34:16] <Alina-emergency> let me see that
[08:34:19] <beckyconning__> XD
[08:34:27] <beckyconning__> no you go look it up : P
[08:34:36] <Alina-emergency> :)
[08:34:48] <beckyconning__> atlasapollo: there isn't a big (documented) difference between $scope and scope, its just convention to use scope rather than $scope in directive link functions : )
[08:34:49] *** badon has joined #angularjs
[08:35:03] *** InezK is now known as InezK_away
[08:35:09] *** jonog has joined #angularjs
[08:35:22] *** paperElectron is now known as Paper_bounced
[08:35:28] <w1ther> it looks like you can grab the keyCode through $event and just copy off into another variable
[08:35:33] *** Oxelist has joined #angularjs
[08:35:37] *** pheze has quit IRC
[08:35:46] *** Paper_bounced is now known as paperElectron
[08:35:54] <Alina-emergency> w1ther, well yes, but kaspersky block that pages :-/
[08:36:06] <sacho_> what pages
[08:36:10] <atlasapollo> beckyconning: OH! thank you :) So my issue was a typo with $apply() and wrong scope because I put the directive call in the HTML instead of the body..
[08:36:30] <w1ther> https://docs.angularjs.org/api/ng/directive/ngKeypress
[08:36:35] <w1ther> that page?
[08:36:40] *** ChrisC_ has quit IRC
[08:36:41] <beckyconning__> i think so, you could try moving it back up to html if you'd like
[08:36:45] <Alina-emergency> sacho_, well for example if you want to capture the keys from what the user type, to compare later if it is bot type it, or user, kaspersky see a thread in it and block that pages you did not know that?
[08:36:49] <beckyconning__> the main thing is $apply
[08:37:01] *** bend has quit IRC
[08:37:13] <sacho_> Alina-emergency, huh?
[08:37:16] <atlasapollo> I'm surely learning... :) distractions: http://www.studioji.com
[08:37:21] <atlasapollo> many thanks!! <3
[08:37:22] <Alina-emergency> sacho_, ??
[08:37:30] <sacho_> No, I have no idea what you're talking about
[08:37:57] <beckyconning__> Alina-emergency: get rid of kaspersky then. you need access to the angular docs.
[08:38:06] <Alina-emergency> lol
[08:38:10] <Alina-emergency> kaspersky is on client side
[08:38:12] <Alina-emergency> not me
[08:38:14] <Alina-emergency> i never use dat shit
[08:38:18] *** kalusn has quit IRC
[08:38:26] *** DrMabuse has joined #angularjs
[08:38:27] <Alina-emergency> so i have kinda game you know
[08:38:28] *** DrMabuse has quit IRC
[08:38:36] <Alina-emergency> so i have to track users hits
[08:38:43] <Alina-emergency> and i have some people that complain that page doesnt work
[08:38:45] <beckyconning__> ok but your user doesn't need access to the docs
[08:38:47] <Alina-emergency> after examinating that stuff
[08:38:56] *** DrMabuse has joined #angularjs
[08:38:57] <sacho_> how are you 'tracking user hits'
[08:39:00] *** bkuberek has joined #angularjs
[08:39:08] <Alina-emergency> erm with keypress event in jquery
[08:39:23] <beckyconning__> v________v alina, post code. please.
[08:39:35] *** jonog has quit IRC
[08:39:35] <beckyconning__> this is all very confusing to all of us
[08:39:39] <Alina-emergency> erm, can i do that later? i am not at home right now it is at home
[08:39:40] <Alina-emergency> what?
[08:39:43] <Alina-emergency> why confusing?
[08:39:46] <Alina-emergency> it is it what it is
[08:39:52] <Alina-emergency> i will be eat home in 5 days
[08:39:55] <Alina-emergency> and post the code here
[08:39:56] <beckyconning__> hands up if you are confused by Alina-emergency? : P
[08:40:07] * beckyconning__ puts her hand up
[08:40:25] <atlasapollo> put his hand up
[08:40:26] <Alina-emergency> beckyconning__, put my hand down and continue to read ngkeypress event
[08:40:29] * sacho_ still doesn't see a clear question
[08:40:34] <Alina-emergency> erm
[08:40:35] <Alina-emergency> eh
[08:40:37] <Alina-emergency> i will post the code
[08:40:41] <Alina-emergency> and it will make a lot sense
[08:40:42] <atlasapollo> yay :)
[08:40:46] <beckyconning__> good : )
[08:40:46] <atlasapollo> yes
[08:40:46] <sacho_> that's nice.
[08:40:51] <Alina-emergency> i am just on vacation
[08:40:55] <w1ther> can't wait :)
[08:40:56] <Alina-emergency> away from main computer
[08:41:02] <Alina-emergency> ok
[08:41:14] *** Notte has quit IRC
[08:41:25] <Alina-emergency> i am just very mad at kasperski for doing this stuff, they block many resources i guess
[08:41:45] <Alina-emergency> like this
[08:43:18] *** bkuberek has quit IRC
[08:43:58] <beckyconning__> AlbireoX: http://www.thinkster.io/angularjs/o1YnQ52SOd/angularjs-resolve-routechangeerror <- this will help you : )
[08:44:16] *** Emperor_Earth has joined #angularjs
[08:44:31] *** ppppaul has joined #angularjs
[08:44:35] <w1ther> Has anyone dealt with the $state.reload() issue before? https://github.com/angular-ui/ui-router/issues/582
[08:44:44] <w1ther> I can't seem to get anything to work right
[08:47:22] *** DoubleAW has joined #angularjs
[08:48:58] *** s3shs has joined #angularjs
[08:49:50] *** Emperor_Earth has quit IRC
[08:50:34] *** VictorBjelkholm has quit IRC
[08:51:04] *** delerium_ has joined #angularjs
[08:51:54] *** s3shs has quit IRC
[08:52:00] *** kppullin has quit IRC
[08:52:25] *** kppullin has joined #angularjs
[08:52:28] *** s3shs has joined #angularjs
[08:52:39] *** davi has joined #angularjs
[08:52:43] *** VictorBjelkholm has joined #angularjs
[08:53:45] *** jonog has joined #angularjs
[08:53:51] *** paperElectron is now known as Paper_bounced
[08:54:24] *** InezK_away is now known as InezK
[08:54:58] *** tarnus has quit IRC
[08:57:28] <beckyconning__> AlbireoX: just change the route to wiki/create or whatever on that event
[08:58:41] *** scmx has joined #angularjs
[08:59:18] *** danielpquinn has joined #angularjs
[08:59:45] *** CptChaos has joined #angularjs
[09:00:02] *** gnrlbzik has joined #angularjs
[09:00:22] *** tfennelly has joined #angularjs
[09:03:25] *** danielpquinn has quit IRC
[09:04:09] *** vonnegut has joined #angularjs
[09:04:18] *** InezK is now known as InezK_away
[09:04:31] *** gnrlbzik has quit IRC
[09:04:31] <ckboii89> i have 2 controllers in the same file and angular is complaining one of them is not defined? any ideas?
[09:04:37] *** vonnegut has quit IRC
[09:05:05] *** tfennelly has quit IRC
[09:06:03] *** scmx has quit IRC
[09:06:07] <beckyconning__> ckboii89: send us the code? : )
[09:06:17] <w1ther> ckboii89, if you comment out the one it can find, does it then resolve?
[09:06:32] *** mennea has joined #angularjs
[09:07:05] <w1ther> you might be just fighting an error in that controller
[09:07:21] *** Oxelist has quit IRC
[09:08:08] <ckboii89> k ill send the gist, weird part is it works on plunkr but not my local
[09:11:01] <tylerlh_> haha w1ther i ran into a similar issue last night
[09:11:17] <tylerlh_> in my case, i had a back button that would return to the parent state
[09:11:45] <w1ther> I'm trying this right now, it just feels like overkill http://plnkr.co/edit/DVFG8T?p=preview
[09:12:02] <tylerlh_> was using ui-sref for route, but changed to ng-click and in my handler, i used $state.go w/ reload: true and inherit: false
[09:12:27] <ckboii89> https://gist.github.com/gwong89/724ca4171f8e9c417230
[09:12:31] <w1ther> i'll try that. I didn't have the inherit:false
[09:12:33] *** klaut has joined #angularjs
[09:13:20] *** drej has quit IRC
[09:14:05] <tylerlh_> hmm well $state.reload() is supposed to be an alias that includes that arg
[09:14:24] <tylerlh_> https://github.com/angular-ui/ui-router/wiki/Quick-Reference#statereload
[09:15:36] <w1ther> maybe there's something else I'm missing. I'm trying to get it to resolve the api whenever the state changes.
[09:16:02] *** roymilder has joined #angularjs
[09:16:44] *** klaut has quit IRC
[09:17:58] *** kayloos has joined #angularjs
[09:18:46] <tylerlh_> hmm i see what you mean about that seeming overkill
[09:18:52] <tylerlh_> it does seem to do what you're looking for though
[09:18:53] *** quellhorst has joined #angularjs
[09:19:12] <w1ther> cool, thanks.
[09:19:21] *** BrianGO has joined #angularjs
[09:19:25] *** klaut has joined #angularjs
[09:19:43] <tylerlh_> not the worst hack ive ever seen :P
[09:20:26] <ckboii89> anyone?
[09:20:30] *** KamalKaur has joined #angularjs
[09:20:33] <ckboii89> i feel like im gonna go crazy
[09:21:06] *** KamalKaur has quit IRC
[09:21:20] <w1ther> Which one isn't working for you?
[09:21:26] *** conner_ has joined #angularjs
[09:22:03] *** vonnegut has joined #angularjs
[09:22:18] <tylerlh_> 1. is the modal opening?
[09:22:39] *** kayloos has quit IRC
[09:22:59] *** knownasilya has quit IRC
[09:23:36] *** JoshGlzBrk has joined #angularjs
[09:23:56] <ckboii89> ModalInstanceController
[09:24:53] *** Yahkob has joined #angularjs
[09:24:53] <tylerlh_> ckboii89: is your modal window opening?
[09:25:00] <ckboii89> no
[09:25:24] <tylerlh_> oh i see the problem
[09:25:39] <tylerlh_> look at your controller argument in var addNewTreament
[09:25:49] <tylerlh_> you're passing an instance, when it should be a string
[09:25:55] <tylerlh_> controller: 'ModalInstanceController'
[09:26:22] <ckboii89> ?!
[09:26:23] *** conner_ has quit IRC
[09:26:29] <ckboii89> how come it works in plunkr?!?
[09:27:05] <ckboii89> wait nvm
[09:27:13] <ckboii89> fuck
[09:27:13] <ckboii89> me
[09:27:17] <ckboii89> so sorry
[09:27:24] <tylerlh_> happens to the best of us
[09:27:27] *** Juan_ has joined #angularjs
[09:27:31] <ckboii89> worst silly mistake
[09:27:40] <ckboii89> this calls for a break
[09:27:45] <ckboii89> and regroup later
[09:27:45] <tylerlh_> good call
[09:27:52] <ckboii89> thank you sir
[09:27:57] <tylerlh_> no problem
[09:29:07] *** vonnegut has quit IRC
[09:29:16] *** tylerlh_ is now known as tylerlh
[09:29:23] <beckyconning__> 👍
[09:29:39] *** dutis has joined #angularjs
[09:29:42] *** Juan_ has quit IRC
[09:32:39] *** scmx has joined #angularjs
[09:34:49] *** kalusn has joined #angularjs
[09:37:53] *** bsmithgall has joined #angularjs
[09:38:13] *** lucasjans has joined #angularjs
[09:38:38] *** sigurding has joined #angularjs
[09:39:35] *** kalusn has quit IRC
[09:39:53] *** bkuberek has joined #angularjs
[09:40:07] *** foo-bar- has joined #angularjs
[09:40:18] *** J0514H has quit IRC
[09:40:46] *** toastynerd has quit IRC
[09:43:17] *** ilmgb has joined #angularjs
[09:44:08] *** jonog has quit IRC
[09:44:13] *** bkuberek has quit IRC
[09:44:40] *** jonog has joined #angularjs
[09:44:59] *** foo-bar- has quit IRC
[09:45:14] *** lucasjans has quit IRC
[09:46:09] *** vonnegut has joined #angularjs
[09:46:29] *** tangorri has joined #angularjs
[09:47:01] *** Notte has joined #angularjs
[09:48:06] *** vonnegut has quit IRC
[09:48:08] *** tigrang has quit IRC
[09:48:18] *** sigurding has quit IRC
[09:48:56] *** Nizumzen has joined #angularjs
[09:49:36] *** zbzzn has quit IRC
[09:49:57] *** zbzzn has joined #angularjs
[09:51:30] *** ilmgb_ has joined #angularjs
[09:51:46] *** flocca has joined #angularjs
[09:52:53] *** night-owl-MBP has quit IRC
[09:53:18] *** ilmgb has quit IRC
[09:53:32] *** ppppaul has quit IRC
[09:53:39] *** intellix has joined #angularjs
[09:54:51] *** lite_ has joined #angularjs
[09:55:19] *** InezK_away is now known as InezK
[09:55:29] *** hugorodrigues has joined #angularjs
[09:55:36] *** RomainTr has joined #angularjs
[09:55:43] <RomainTr> Hello
[09:56:58] <RomainTr> I built a tiny app with controlled directive within a controller and I wonder if my way to access the parent scope is right
[09:57:19] <RomainTr> Someone would like to get a shot? http://plnkr.co/edit/0clqXOaWvMHkFhXIgJQ9?p=preview
[09:57:51] *** Left_Turn has joined #angularjs
[09:57:58] *** arlt has joined #angularjs
[09:58:08] <RomainTr> (my bad feeling is with the controller: key of my directive)
[09:58:16] *** Notte has quit IRC
[09:59:59] *** lite_ has quit IRC
[09:59:59] *** pdillinger1 has quit IRC
[10:00:03] *** danielpquinn has joined #angularjs
[10:00:16] *** hugorodrigues has quit IRC
[10:00:28] <TheAceOfHearts> well, I just spent my friday making a node-webkit app with angularjs
[10:00:51] *** gnrlbzik has joined #angularjs
[10:01:12] *** pdillinger1 has joined #angularjs
[10:01:38] <atlasapollo> Hi.. I have a question that is more about patterns. Let's say I have a service that has a bool variable, and I only want it to be true when a certain controller is active and false when all other controllers are active, is there a better way to do this than to set this variable in each controller of the project?
[10:03:06] <Alina-emergency> why internet explorer pop up a warning message to allow activex stuff or not when i use angular js?
[10:03:50] <agronholm> Alina-emergency: that's not from angularjs
[10:04:10] <Alina-emergency> then what is that is?
[10:04:16] <agronholm> heck if I know
[10:04:18] *** danielpquinn has quit IRC
[10:04:20] *** motionman has quit IRC
[10:04:46] <Alina-emergency> maybe if a javascript agular.js file is icnluded from folder?
[10:04:56] <agronholm> javascript does not require activex
[10:04:59] *** InezK is now known as InezK_away
[10:05:00] <agronholm> period
[10:05:05] *** vonnegut has joined #angularjs
[10:05:08] <agronholm> whatever it is, it's not from angular
[10:05:11] <Alina-emergency> heh
[10:05:18] <Alina-emergency> :-/
[10:05:21] *** vonnegut has quit IRC
[10:05:52] *** Marsup has quit IRC
[10:05:59] *** gnrlbzik has quit IRC
[10:06:38] <Alina-emergency> thats funny, i was testing this hello world application http://hastebin.com/oripaduziv.django and it stop executing it:-/
[10:06:47] <Alina-emergency> wow
[10:07:41] *** tfennelly has joined #angularjs
[10:08:01] *** Marsup has joined #angularjs
[10:08:01] *** jonog has quit IRC
[10:08:14] *** bsmithgall has quit IRC
[10:08:35] *** jonog has joined #angularjs
[10:09:04] *** davi has quit IRC
[10:10:18] <agronholm> Alina-emergency: put it in a plunker
[10:10:32] <agronholm> then tell me if it still bugs you about activex
[10:10:47] <Alina-emergency> plunker?
[10:11:15] *** srph has joined #angularjs
[10:11:19] <agronholm> plnkr.co
[10:11:24] <Alina-emergency> put what?
[10:11:31] <agronholm> your angular app
[10:11:36] <agronholm> whatever you're trying
[10:11:39] *** flocca has quit IRC
[10:11:41] <agronholm> it lets other people test it too
[10:12:09] *** flocca has joined #angularjs
[10:12:16] <Alina-emergency> k
[10:12:47] <srph> Hey, I am using ui-router. Is deeper nesting possible? I have these states: parent, parent.child, child.grand. Is this possible?
[10:12:59] <agronholm> yeah
[10:13:03] <zbzzn> yes
[10:13:20] *** jonog has quit IRC
[10:13:38] *** itsananderson has joined #angularjs
[10:13:44] *** RATRA has quit IRC
[10:14:38] <srph> So, child.grand should be as it is?
[10:15:21] <srph> Or should it be parent.child.grand?
[10:15:31] *** Stephen has joined #angularjs
[10:16:49] *** jonog has joined #angularjs
[10:19:10] *** whunt has joined #angularjs
[10:19:48] *** marr has joined #angularjs
[10:19:57] *** roymilder has quit IRC
[10:21:51] *** dazs has joined #angularjs
[10:22:14] *** arlt has quit IRC
[10:23:29] *** xjiujiu has quit IRC
[10:23:56] *** xjiujiu has joined #angularjs
[10:25:10] *** idleburg has joined #angularjs
[10:25:23] <RomainTr> http://plnkr.co/edit/0clqXOaWvMHkFhXIgJQ9?p=preview Is there a more elegant way to access the controller from the directive?
[10:27:10] *** Notte has joined #angularjs
[10:30:21] *** dextorion has joined #angularjs
[10:30:24] *** Nizumzen has quit IRC
[10:32:10] *** srph has quit IRC
[10:32:36] *** waylon999 has quit IRC
[10:32:36] *** idleburg has quit IRC
[10:33:21] *** xjiujiu has quit IRC
[10:33:46] *** xjiujiu has joined #angularjs
[10:34:05] <zbzzn> If I have a template with a controller loaded in ng-include
[10:34:33] <zbzzn> can I make the scope of that controller to ingerit from the scope of the ng-including directive?
[10:34:38] <tylerlh> atlasapollo: use $rootScope, or a service
[10:34:42] <zbzzn> inherit
[10:35:03] *** okdamn has joined #angularjs
[10:35:10] *** somerset has joined #angularjs
[10:35:30] *** kalusn has joined #angularjs
[10:36:03] *** Hackwar has quit IRC
[10:36:16] *** superplussed has quit IRC
[10:36:35] *** whunt has quit IRC
[10:36:43] *** superplussed has joined #angularjs
[10:36:57] *** Notte has quit IRC
[10:37:40] *** superplussed has quit IRC
[10:37:48] *** superplussed has joined #angularjs
[10:37:58] *** kleintop has joined #angularjs
[10:38:46] *** kleintop has quit IRC
[10:38:47] *** charuru has quit IRC
[10:39:23] *** Notte has joined #angularjs
[10:39:37] *** ceephax has joined #angularjs
[10:39:38] *** kalusn has quit IRC
[10:39:41] *** illume has joined #angularjs
[10:40:10] *** Notte has quit IRC
[10:40:38] *** kirfu has quit IRC
[10:40:49] *** bkuberek has joined #angularjs
[10:41:34] *** belluz has joined #angularjs
[10:41:40] *** xjiujiu has quit IRC
[10:42:07] *** xjiujiu has joined #angularjs
[10:43:01] *** CptChaos has quit IRC
[10:43:13] *** Notte has joined #angularjs
[10:43:27] *** SomeKittens has quit IRC
[10:43:46] *** [n0b0dy] has quit IRC
[10:44:13] *** Notte has quit IRC
[10:44:24] *** [n0b0dy] has joined #angularjs
[10:44:26] *** belluz has quit IRC
[10:44:58] *** superplussed has quit IRC
[10:45:03] *** bkuberek has quit IRC
[10:46:10] *** ilmgb has joined #angularjs
[10:46:33] *** ilmgb_ has quit IRC
[10:47:10] *** gonzolas has joined #angularjs
[10:47:39] *** homey has joined #angularjs
[10:47:41] *** gonzolas has quit IRC
[10:48:00] *** illume has quit IRC
[10:48:22] *** Yahkob has quit IRC
[10:49:49] *** xmmp has quit IRC
[10:50:09] *** JoshGlzBrk has quit IRC
[10:50:22] *** spainhowe has joined #angularjs
[10:50:54] *** spainhowe has quit IRC
[10:51:15] <atlasapollo> tylerlh: thank you :) I am using a service to contain the main variable and whether it is true or false, and then using the controllers to update the service when the controller is loaded with the ng-view load.. but in this scheme, I have to explicitly set the variable to false in each controller, except for the controller I want it to be true for. What this is for is, a directive that captures all key strokes at the document
[10:51:31] <atlasapollo> a certain view is active. other views don't need this..
[10:51:37] *** AciD``` has joined #angularjs
[10:52:50] <tylerlh> atlasapollo: in that case, i would listen to the route change event
[10:53:28] <tylerlh> from there you could check to see what controller is currently active and what the next controller will be, and set the var accordingly
[10:53:34] *** wiser has joined #angularjs
[10:53:48] <tylerlh> that way you're not duplicating code in every controller
[10:53:49] *** wiser has quit IRC
[10:54:03] <atlasapollo> tylerlh: thank you very much! I will look that up and see about implementing it :)
[10:54:09] <atlasapollo> that sounds awesome! many thanks!
[10:54:26] <tylerlh> no problem :)
[10:55:57] *** InezK_away is now known as InezK
[10:56:02] *** xjiujiu has quit IRC
[10:56:22] *** gurnsey has joined #angularjs
[10:56:31] *** xjiujiu has joined #angularjs
[10:56:41] *** gurnsey has quit IRC
[10:56:44] *** Hackwar has joined #angularjs
[10:57:59] *** Sky[x] has joined #angularjs
[10:58:07] *** morenoh149 has joined #angularjs
[10:58:29] *** RandomStranger- has joined #angularjs
[10:58:48] *** JimTheDev has quit IRC
[10:58:59] *** RandomStranger has quit IRC
[10:59:34] *** mansel has joined #angularjs
[11:00:31] *** atlasapollo has quit IRC
[11:00:53] *** danielpquinn has joined #angularjs
[11:01:33] *** gnrlbzik has joined #angularjs
[11:02:22] *** thi has joined #angularjs
[11:03:04] *** stickperson has joined #angularjs
[11:03:11] *** thi has quit IRC
[11:03:35] *** zz_Brocken is now known as Brocken
[11:04:42] *** avree has joined #angularjs
[11:04:52] *** Ericx2x has joined #angularjs
[11:05:23] *** danielpquinn has quit IRC
[11:05:47] *** xmmp has joined #angularjs
[11:05:58] *** fraker has joined #angularjs
[11:06:02] *** fraker has quit IRC
[11:06:28] *** kalusn has joined #angularjs
[11:06:35] *** gnrlbzik has quit IRC
[11:06:57] <reduce> say i encapsulate the ui to display an object in a directive, and i further encapsulate parts of that ui in directives which ill nest because i want to reuse those subparts elsewhere
[11:07:02] *** gnrlbzik has joined #angularjs
[11:07:29] *** InezK is now known as InezK_away
[11:08:16] <reduce> i pass the js object in to the outer directive, but it becomes more natural to pass the individual properties of that object into the nested directives, as it removes dependency on the object
[11:08:46] *** boghosian has joined #angularjs
[11:09:18] *** bkuberek has joined #angularjs
[11:09:53] <reduce> this means that if i later bind a text box to that property in the inner directive, im binding direct to a object, eg ngModel="theModel". Is it bad that i dont have a dot in the ngModel statement? (assuming each directive uses isolated scope)
[11:09:56] *** conner_ has joined #angularjs
[11:10:08] *** Notte has joined #angularjs
[11:10:36] *** tarkus has joined #angularjs
[11:10:47] <reduce> s/duirect to object/direct to property
[11:10:53] *** bkuberek has quit IRC
[11:11:11] *** bkuberek has joined #angularjs
[11:11:34] *** mckines has joined #angularjs
[11:12:28] *** stickperson has quit IRC
[11:13:42] *** vader has joined #angularjs
[11:14:03] *** conner_ has quit IRC
[11:14:08] *** Ericx2x has quit IRC
[11:14:22] *** guinane has joined #angularjs
[11:14:30] *** Ericx2x has joined #angularjs
[11:14:41] *** sdouglas_ has quit IRC
[11:14:44] *** paul_dijou has quit IRC
[11:15:00] *** ericsonluciano has joined #angularjs
[11:15:16] *** sdouglas has joined #angularjs
[11:16:11] *** bkuberek has quit IRC
[11:16:41] *** tylerlh has quit IRC
[11:16:45] *** lite_ has joined #angularjs
[11:17:10] *** vidals has joined #angularjs
[11:17:15] *** tylerlh has joined #angularjs
[11:17:32] *** vidals has quit IRC
[11:17:56] *** Notte has quit IRC
[11:18:00] *** btford has joined #angularjs
[11:18:18] *** superplussed has joined #angularjs
[11:18:37] *** kayloos has joined #angularjs
[11:18:41] *** bsmithgall has joined #angularjs
[11:19:25] *** sdouglas has quit IRC
[11:20:22] *** score has joined #angularjs
[11:20:42] <TheAceOfHearts> that's tl;dr
[11:20:48] <TheAceOfHearts> way tl;dr
[11:21:14] *** InezK_away is now known as InezK
[11:21:32] *** tylerlh has quit IRC
[11:22:19] *** L8TR has joined #angularjs
[11:22:19] *** btford has quit IRC
[11:22:27] *** btford has joined #angularjs
[11:23:04] *** bsmithgall has quit IRC
[11:23:17] *** Drako_ has joined #angularjs
[11:23:21] *** kayloos has quit IRC
[11:23:34] *** marcanton has joined #angularjs
[11:24:25] *** marcanton has quit IRC
[11:24:35] *** Ericx2x has quit IRC
[11:26:58] *** homey has quit IRC
[11:27:10] *** raith has joined #angularjs
[11:27:58] *** un-nu has joined #angularjs
[11:28:04] *** raith has quit IRC
[11:28:50] *** H1FuelCell has joined #angularjs
[11:29:09] *** paul_dijou has joined #angularjs
[11:29:09] *** InezK is now known as InezK_away
[11:30:46] *** griem has joined #angularjs
[11:30:57] <Alina-emergency> hmm ok i collect some data from user activity in array mouse clicks, special keys pressed, time of web browser, and that stuff is all inside an array BUT i am not sure WHEN exactly to transfer that data to server, because 1) user can close the browser 2) user can nagivate to other web resource during activity on my webpage, 3) user can simply stay on page 4) user just can do nothing and then eelctricity goes off, so tell me when EXACTLY i shou
[11:30:58] *** griem has quit IRC
[11:30:58] <Alina-emergency> ld trasport that data to server
[11:31:03] *** DrMabuse has quit IRC
[11:31:25] <Alina-emergency> ?
[11:33:21] *** Aerospark has quit IRC
[11:33:34] *** battko has joined #angularjs
[11:33:34] *** gnrlbzik has quit IRC
[11:34:07] *** battko has quit IRC
[11:34:46] *** Emperor_Earth has joined #angularjs
[11:35:48] *** Foxandxss has joined #angularjs
[11:35:50] *** Foxandxss has joined #angularjs
[11:36:19] *** Aerospar_ has joined #angularjs
[11:36:44] *** Tidwell has quit IRC
[11:36:46] *** rubalcava has joined #angularjs
[11:37:19] *** Tidwell has joined #angularjs
[11:37:48] *** orion1111 has joined #angularjs
[11:37:49] *** rubalcava has quit IRC
[11:39:00] <TheAceOfHearts> uhhh
[11:39:15] <TheAceOfHearts> I'd just send it as it comes in
[11:39:27] <TheAceOfHearts> maybe have a debounce function with a maximum time limit
[11:39:32] <TheAceOfHearts> so you can batch em together
[11:39:47] <Alina-emergency> i really dont know:-/
[11:39:51] <Alina-emergency> i am stuck there
[11:40:00] <Alina-emergency> because sending each even to server is not right
[11:40:02] <TheAceOfHearts> just have a debounce function with a maximum time limit
[11:40:04] <Alina-emergency> firewalls, and antivirus block those
[11:40:18] <Alina-emergency> what if they just navigate to other page?
[11:40:25] <Alina-emergency> during the activity on my page
[11:40:26] <Alina-emergency> eh
[11:40:26] *** lucas_sa has joined #angularjs
[11:40:28] <TheAceOfHearts> well, you're SOL
[11:40:35] <Alina-emergency> sol?
[11:40:40] <TheAceOfHearts> shit. outta. luck
[11:40:44] *** foo-bar- has joined #angularjs
[11:40:45] <TheAceOfHearts> the way it's normalyl handled
[11:40:46] *** birdin has joined #angularjs
[11:40:50] <TheAceOfHearts> it by attaching a click handler to the link
[11:40:55] <TheAceOfHearts> and waiting for the event to send
[11:41:00] <TheAceOfHearts> and THEN following the link
[11:41:04] *** Aerospar_ has quit IRC
[11:41:19] <Alina-emergency> maybe on page.close event? but i am not sure how gootd it will work?
[11:41:24] <Alina-emergency> or maybe store in cookies?
[11:41:25] <Alina-emergency> eih
[11:41:29] <Alina-emergency> this is hard task for me
[11:41:31] <Alina-emergency> and i am stuck
[11:41:37] <Alina-emergency> i have that data in browsers variable
[11:41:46] <Alina-emergency> but idk how to transfer it to server
[11:41:50] <Alina-emergency> when the correct time
[11:41:52] <Alina-emergency> eh
[11:41:54] <TheAceOfHearts> you debounce the data with a maximum time limit.
[11:42:06] *** moritzs has joined #angularjs
[11:42:11] *** lucas_sa is now known as lucas_s4
[11:42:12] <Alina-emergency> what is debounce?
[11:42:12] <TheAceOfHearts> and you setup handlers on all external links
[11:42:18] <Alina-emergency> oh
[11:42:18] *** btford has quit IRC
[11:42:26] <TheAceOfHearts> debounce is like
[11:42:30] <TheAceOfHearts> you type in a search box
[11:42:36] *** moritzs has quit IRC
[11:42:38] <TheAceOfHearts> and you don't want it to update each time you type something in
[11:42:46] <TheAceOfHearts> so everry time a letter is pressed
[11:42:51] <TheAceOfHearts> you reset the debounce limit
[11:42:53] *** btford has joined #angularjs
[11:42:58] <Alina-emergency> oh hmm
[11:42:59] <Alina-emergency> yes
[11:42:59] *** btford has quit IRC
[11:43:00] <Alina-emergency> i like it
[11:43:01] <Alina-emergency> hmmm
[11:43:24] <TheAceOfHearts> https://gist.github.com/cesarandreu/9181977 here
[11:43:34] *** nuzum has joined #angularjs
[11:43:42] <Foxandxss> basically a timeout you cancel everytime you hit the function
[11:43:42] *** nuzum has quit IRC
[11:43:54] <Foxandxss> and if you don't hit it again, it fires
[11:43:56] <TheAceOfHearts> Foxandxss: look at this thing I made \o/
[11:44:00] *** moritzs has joined #angularjs
[11:44:09] <TheAceOfHearts> https://www.dropbox.com/s/x3s4n7ru4cu6tx7/Screenshot%202014-07-13%2000.21.37.png Foxandxss
[11:44:16] <Alina-emergency> hmmmm this is cool this debounce
[11:44:21] <TheAceOfHearts> I made a node-webkit app that takes all of my CI history
[11:44:23] <Alina-emergency> so what is the optimal time to put for debuunce?
[11:44:25] *** moritzs has quit IRC
[11:44:25] <TheAceOfHearts> and charts it
[11:44:30] <Foxandxss> I see
[11:44:32] <Alina-emergency> CI = codeignter?
[11:44:34] <TheAceOfHearts> :D
[11:44:36] <TheAceOfHearts> no
[11:44:40] <Alina-emergency> erm
[11:44:44] <TheAceOfHearts> continuous integration
[11:44:56] <TheAceOfHearts> it shows the build duration over time
[11:45:08] *** foo-bar- has quit IRC
[11:45:31] <TheAceOfHearts> it's neat
[11:45:51] *** moritzs has joined #angularjs
[11:46:00] <Alina-emergency> eh i need a pause to psychologically accept this debounce feature hehe
[11:46:07] <Alina-emergency> debounce.js :)
[11:46:12] <Alina-emergency> debounce rules:)
[11:46:20] *** ilmgb has quit IRC
[11:46:22] <TheAceOfHearts> it's a very common thing in the hardware world
[11:46:22] *** osberg has joined #angularjs
[11:46:28] <TheAceOfHearts> that's where I learned about deboucning
[11:46:28] *** osberg has quit IRC
[11:46:33] <TheAceOfHearts> you NEED debouncing for hardware
[11:46:36] <TheAceOfHearts> cuz hardware is terrible
[11:46:38] <Alina-emergency> :) well i dont deal with hardware, only web:)
[11:46:41] *** moritzs has quit IRC
[11:46:42] <Alina-emergency> hehe
[11:46:43] <TheAceOfHearts> it's all a bunch of lies
[11:46:44] <Alina-emergency> nice feature
[11:46:53] <Alina-emergency> i <3 debounce:)
[11:46:53] *** bagwaa_ has joined #angularjs
[11:46:54] <TheAceOfHearts> no, it's horrible D:
[11:46:57] <TheAceOfHearts> hardware is a pain
[11:47:05] <TheAceOfHearts> so many terribly hacks, not elegant at all
[11:47:13] *** moritzs has joined #angularjs
[11:47:25] <Alina-emergency> well in javascript world:)
[11:47:35] <TheAceOfHearts> yeah, it's convenient
[11:47:40] <TheAceOfHearts> I think angular core should have debounce
[11:47:46] <Alina-emergency> eh does angular.debounce exist?
[11:47:49] <TheAceOfHearts> no
[11:47:50] <TheAceOfHearts> caitp
[11:47:53] <TheAceOfHearts> oh, she's not here
[11:47:57] <TheAceOfHearts> WHY IS CAITP NOT HERE D: ?
[11:48:07] <Alina-emergency> hmmmm
[11:48:11] <zbzzn> sunday?
[11:48:13] <Alina-emergency> ok
[11:48:20] *** wilmoore has quit IRC
[11:48:22] <TheAceOfHearts> she shouod totally be here
[11:48:26] <TheAceOfHearts> t'is important
[11:48:45] <zbzzn> its Sunday...
[11:48:49] <Foxandxss> yea, and she shouldn't sleep
[11:48:57] <Alina-emergency> have no fear Alina here:)
[11:48:57] <TheAceOfHearts> well you're here zbzzn
[11:49:10] *** alimento has joined #angularjs
[11:49:11] <zbzzn> I am Israeli, we don't have Sunday
[11:49:12] *** alimento has quit IRC
[11:49:13] <Foxandxss> 5:49 am on her house
[11:49:19] <Foxandxss> I wouldn't be here
[11:49:30] <TheAceOfHearts> lies, you're always on too ~
[11:49:33] <Foxandxss> angular has debounce on the models
[11:49:36] <Alina-emergency> zbzzn, do you know hebrew?
[11:49:46] <Alina-emergency> Foxandxss, really?
[11:49:48] <Alina-emergency> heh
[11:49:51] <Alina-emergency> hmmm i need to dig there
[11:49:52] <Foxandxss> yes
[11:49:53] <zbzzn> yes
[11:50:00] <TheAceOfHearts> Foxandxss: yeah, I remember caitp telling me, but it should just be exposed as angular.debounce and exposed
[11:50:00] <Foxandxss> you can debounce a ng-model
[11:50:46] <TheAceOfHearts> today I got motivated to open source some of my directives from work
[11:50:49] <Alina-emergency> hmmmmm u am not exactly sure how to use that debounce, but i hope it will help me what i want to do
[11:50:51] *** strfcks has joined #angularjs
[11:50:58] <Alina-emergency> because a user input stuff and page may redirect somewhere
[11:51:02] <TheAceOfHearts> cuz I realized it's really terrible to write angularjs code without all my nice work code
[11:51:02] <Alina-emergency> and the debounce stop working
[11:51:24] <Alina-emergency> erm
[11:51:32] <Alina-emergency> eh i need different conditions i guess
[11:51:41] <Alina-emergency> switch case maybe
[11:51:42] <Alina-emergency> hmmmm
[11:51:43] <TheAceOfHearts> Alina-emergency: enhance your calm
[11:51:58] *** gensel has joined #angularjs
[11:52:16] <TheAceOfHearts> I think I should sit down and rip out our form-related code into separate modules
[11:52:16] *** gensel has quit IRC
[11:52:23] <TheAceOfHearts> I'm pretty sure people would love it
[11:52:29] <TheAceOfHearts> especially Rails users, *cough* Foxandxss
[11:52:41] <Foxandxss> I don't see the relation
[11:52:46] <Foxandxss> I could be asleep tho
[11:53:01] *** moritzs has quit IRC
[11:53:05] <TheAceOfHearts> so
[11:53:08] <TheAceOfHearts> we have a form directive
[11:53:12] *** ilmgb has joined #angularjs
[11:53:21] <TheAceOfHearts> and a rails thingy that could be placed in a gems
[11:53:29] <TheAceOfHearts> you can render server errors very cleanly
[11:53:36] <TheAceOfHearts> without having to write boilerplate :D
[11:53:50] <TheAceOfHearts> especially cuz with rails you can do liek model.errors or w/e
[11:54:11] *** lordkryss has joined #angularjs
[11:54:21] *** Schtive has joined #angularjs
[11:54:54] *** Schtive has joined #angularjs
[11:55:10] *** bielser has joined #angularjs
[11:55:40] <TheAceOfHearts> I think if I were regularly making multiple apps instead of working on maitaining the same app every day, I'd be more motivated to put out more of my code
[11:55:40] *** bielser has quit IRC
[11:55:44] <TheAceOfHearts> but lazy
[11:56:38] *** sigurding has joined #angularjs
[11:56:50] *** ilmgb has quit IRC
[11:57:11] *** hachiya_ is now known as hachiya
[11:57:27] *** ilmgb has joined #angularjs
[11:57:33] *** DrMabuse has joined #angularjs
[11:59:16] *** VictorBjelkholm has quit IRC
[11:59:28] *** InezK_away is now known as InezK
[11:59:31] <vader> hi, how can i override the text in a .ngGroupPanelDescription?
[12:01:31] *** danielpquinn has joined #angularjs
[12:03:38] *** superplussed has quit IRC
[12:03:49] *** VictorBjelkholm has joined #angularjs
[12:05:14] *** jerev_away is now known as jerev
[12:05:25] *** Willow has joined #angularjs
[12:05:35] *** Aerospark has joined #angularjs
[12:05:57] <TheAceOfHearts> I don't know
[12:06:16] *** danielpquinn has quit IRC
[12:06:20] *** Sengoku has joined #angularjs
[12:07:31] *** motionman has joined #angularjs
[12:07:31] *** motionman has joined #angularjs
[12:07:35] *** jonog has quit IRC
[12:08:02] *** jonog has joined #angularjs
[12:08:59] *** pdillinger1 has quit IRC
[12:10:13] *** lite_ has quit IRC
[12:10:57] *** InezK is now known as InezK_away
[12:11:10] *** delian66 has joined #angularjs
[12:11:11] *** Sky[x] has quit IRC
[12:12:01] *** bkuberek has joined #angularjs
[12:12:13] *** jonog has quit IRC
[12:12:37] *** klaut has quit IRC
[12:14:37] *** strfcks has quit IRC
[12:14:55] *** Aerospark has quit IRC
[12:16:18] *** bkuberek has quit IRC
[12:17:12] *** superplussed has joined #angularjs
[12:17:19] *** CodeFriar has joined #angularjs
[12:17:47] *** tylerlh has joined #angularjs
[12:18:37] *** klaut has joined #angularjs
[12:18:38] *** anjumkaiser has quit IRC
[12:18:59] *** devx101 has joined #angularjs
[12:19:34] *** BrianGO has quit IRC
[12:21:01] *** BrianGO has joined #angularjs
[12:21:52] *** jonog has joined #angularjs
[12:21:58] *** tylerlh has quit IRC
[12:22:41] *** DuelShark has joined #angularjs
[12:23:24] *** drej has joined #angularjs
[12:24:22] *** TheAceOfHearts has quit IRC
[12:24:27] *** Jae has joined #angularjs
[12:25:04] *** VictorBjelkholm has quit IRC
[12:25:35] *** flocca has quit IRC
[12:26:19] *** Radek has joined #angularjs
[12:26:41] *** VictorBjelkholm has joined #angularjs
[12:26:52] *** jonog has quit IRC
[12:27:29] *** jonog has joined #angularjs
[12:27:41] *** Mr_Tac has quit IRC
[12:28:09] *** Radek has quit IRC
[12:28:17] *** k-dawg has joined #angularjs
[12:29:20] *** okdamn has quit IRC
[12:29:56] *** Schtive has quit IRC
[12:30:35] *** Sengoku has quit IRC
[12:30:44] *** disorder20 has joined #angularjs
[12:31:55] *** jonog has quit IRC
[12:34:13] *** ilmgb has quit IRC
[12:34:32] *** anjumkaiser has joined #angularjs
[12:34:38] *** vonnegut has joined #angularjs
[12:35:01] *** ilmgb has joined #angularjs
[12:35:15] *** jmc75 has joined #angularjs
[12:35:55] *** jasoncurran has joined #angularjs
[12:36:21] *** Hounddog has joined #angularjs
[12:36:22] *** orion1111 has quit IRC
[12:36:50] *** derrzzaa has quit IRC
[12:37:00] *** devx101 has quit IRC
[12:37:05] *** Mr_Tac has joined #angularjs
[12:38:07] *** vonnegut has quit IRC
[12:38:39] *** gnrlbzik_ has joined #angularjs
[12:38:42] *** fixl has quit IRC
[12:38:44] *** mrogne_busy has quit IRC
[12:39:10] *** Mr_Tac has quit IRC
[12:39:10] *** odin_ has quit IRC
[12:39:10] *** thanpolas has quit IRC
[12:40:13] *** tokka has quit IRC
[12:40:27] *** fixl has joined #angularjs
[12:40:27] *** mrogne_busy has joined #angularjs
[12:40:41] *** Sky[x] has joined #angularjs
[12:42:12] *** faviouz has joined #angularjs
[12:42:26] *** kalusn has quit IRC
[12:43:15] *** gnrlbzik_ has quit IRC
[12:43:28] *** moritzs has joined #angularjs
[12:43:29] *** tokka has joined #angularjs
[12:43:52] *** CodeFriar has quit IRC
[12:43:53] *** moritzs has quit IRC
[12:44:27] *** devx101 has joined #angularjs
[12:45:47] *** jasoncurran has quit IRC
[12:45:50] *** jmc75 has left #angularjs
[12:46:22] *** jasoncurran has joined #angularjs
[12:48:09] *** michaelm has joined #angularjs
[12:48:58] *** VictorBjelkholm has quit IRC
[12:51:32] <zbzzn> The run section of a service is always run or lazy run?
[12:52:07] <zbzzn> wait... I think I confused something
[12:53:42] <Alina-emergency> :-/
[12:54:10] *** narutimateum has quit IRC
[12:54:16] *** vonnegut has joined #angularjs
[12:54:41] *** jpstone- has quit IRC
[12:55:25] <zbzzn> I mean, is there a section of the service which always runs. Even if it wasn't dependant on?
[12:55:36] *** vonnegut has quit IRC
[12:56:47] *** fixl has quit IRC
[12:57:10] *** tarnus has joined #angularjs
[12:57:48] *** conner_ has joined #angularjs
[12:57:56] *** fixl has joined #angularjs
[12:58:16] *** dariocravero has joined #angularjs
[12:59:19] *** motionman has quit IRC
[13:01:25] *** tarnus has quit IRC
[13:01:59] *** Vinnyceptr has joined #angularjs
[13:01:59] *** InezK_away is now known as InezK
[13:02:15] *** ilmgb has quit IRC
[13:02:16] *** conner_ has quit IRC
[13:02:18] *** paul_dijou has quit IRC
[13:02:41] *** sigurding has quit IRC
[13:03:30] <zbzzn> ok, so the suggested solution is to depend on the service in the run block of the module (that what I meant in the initial comment)
[13:03:37] *** VictorBjelkholm has joined #angularjs
[13:05:00] *** kayloos has joined #angularjs
[13:06:04] *** Ir1sh has joined #angularjs
[13:06:24] *** jpstone has joined #angularjs
[13:06:49] *** Ir1sh has quit IRC
[13:11:05] *** lite_ has joined #angularjs
[13:11:27] *** michaelm has quit IRC
[13:11:42] *** InezK is now known as InezK_away
[13:11:56] <Foxandxss> zbzzn: service code will only run the first time it is used
[13:12:00] *** Ir1sh has joined #angularjs
[13:12:25] *** Hounddog has quit IRC
[13:12:44] <zbzzn> yeah :(
[13:12:46] *** bkuberek has joined #angularjs
[13:12:56] *** kalusn has joined #angularjs
[13:13:09] *** vonnegut has joined #angularjs
[13:13:15] *** dariocravero has quit IRC
[13:13:20] <zbzzn> now I have to put the service dependency in the run block as an array notation
[13:13:28] <zbzzn> #facepalm
[13:14:09] <Foxandxss> what are you doing?
[13:14:15] <Foxandxss> that smells from here
[13:14:36] *** michaelm has joined #angularjs
[13:14:51] <zbzzn> it is hard to explain
[13:15:18] *** lite_ has quit IRC
[13:15:58] *** dariocravero has joined #angularjs
[13:16:38] *** vonnegut has quit IRC
[13:17:08] *** kalusn has quit IRC
[13:17:08] *** bkuberek has quit IRC
[13:17:31] *** devx101_ has joined #angularjs
[13:19:25] *** chabier has joined #angularjs
[13:19:38] *** devx101 has quit IRC
[13:20:20] *** superplussed has quit IRC
[13:20:50] *** superplussed has joined #angularjs
[13:21:03] *** VictorBjelkholm has quit IRC
[13:21:08] *** jonog has joined #angularjs
[13:23:09] *** dariocravero has quit IRC
[13:24:11] *** lucas_s4 has quit IRC
[13:24:14] *** elrabin has joined #angularjs
[13:24:34] *** moritzs has joined #angularjs
[13:24:52] *** jonog has quit IRC
[13:25:07] *** jonog has joined #angularjs
[13:25:55] *** Johnny13371337 has joined #angularjs
[13:27:48] *** BrianGO has quit IRC
[13:29:13] *** dc_ has quit IRC
[13:29:14] *** BrianGO has joined #angularjs
[13:30:20] *** mtsr has joined #angularjs
[13:30:21] *** superplussed has quit IRC
[13:30:29] *** superplussed has joined #angularjs
[13:30:32] *** AngularUI has joined #angularjs
[13:30:32] <AngularUI> [bootstrap] Alirz opened pull request #2456: Update Radio button to change model in $scope (master...patch-1) http://git.io/GlvQ0Q
[13:30:32] *** AngularUI has left #angularjs
[13:30:33] *** bsmithgall has joined #angularjs
[13:31:12] *** elrabin has quit IRC
[13:31:50] *** flocca has joined #angularjs
[13:32:06] *** hugorodrigues has joined #angularjs
[13:32:23] *** mtsr has quit IRC
[13:32:53] *** kalusn has joined #angularjs
[13:33:43] *** bagwaa_ has quit IRC
[13:33:53] *** flocca has quit IRC
[13:34:01] *** VictorBjelkholm has joined #angularjs
[13:34:41] *** flocca has joined #angularjs
[13:37:11] *** hugorodrigues has quit IRC
[13:37:23] *** DrMabuse has quit IRC
[13:39:29] *** jonog has quit IRC
[13:39:29] *** gnrlbzik has joined #angularjs
[13:40:02] *** jonog has joined #angularjs
[13:40:59] *** DrMabuse has joined #angularjs
[13:41:28] *** foo-bar- has joined #angularjs
[13:43:38] *** gnrlbzik has quit IRC
[13:43:57] *** chabier has quit IRC
[13:44:03] *** jonog has quit IRC
[13:45:34] *** foo-bar- has quit IRC
[13:46:28] *** tylerlh has joined #angularjs
[13:46:59] *** vonnegut has joined #angularjs
[13:48:31] *** michaelm has quit IRC
[13:48:58] *** kibab has joined #angularjs
[13:49:04] *** VictorBjelkholm has quit IRC
[13:49:15] *** lordkryss has quit IRC
[13:50:38] *** tylerlh has quit IRC
[13:51:10] *** Vinnyceptr has quit IRC
[13:52:04] *** testerde has joined #angularjs
[13:52:19] *** joshontheweb has quit IRC
[13:52:58] <testerde> Hi guys, I'm having a problem with a recursive directive template. I want to watch a variable inside of this scope.. How can I access it from there?
[13:52:59] *** mewm has joined #angularjs
[13:54:16] *** ninsei has quit IRC
[13:54:22] <jamieshepherd> Hi, how do I push on to a particular field, for example, I want to push a new body on to "Today"
[13:54:27] <jamieshepherd> https://ghostbin.com/paste/e2txu
[13:54:37] <testerde> I mean... In the template i'm using something like data.input, but i can't in the controller, because i dont know if its $scope.root.data.input or even $scope.root.data.data.data.input?
[13:54:51] *** ninsei has joined #angularjs
[13:54:56] *** thanpolas has joined #angularjs
[13:54:56] *** Mr_Tac has joined #angularjs
[13:54:57] *** thanpolas has quit IRC
[13:54:57] *** thanpolas has joined #angularjs
[13:55:32] *** derrzzaa has joined #angularjs
[13:55:32] *** rkalfane has quit IRC
[13:56:25] <testerde> i want to get the input and push it to a webservice to be checked and then returned to data.output.
[13:56:31] *** drej has quit IRC
[13:57:31] *** Vinnyceptr has joined #angularjs
[13:58:14] *** mewm has quit IRC
[13:58:43] *** DrMabuse has quit IRC
[13:59:56] *** flocca has quit IRC
[14:00:02] *** flocca-bis has joined #angularjs
[14:00:18] *** rkalfane has joined #angularjs
[14:00:38] *** shinnya has quit IRC
[14:00:46] *** tarnus has joined #angularjs
[14:01:50] *** VictorBjelkholm has joined #angularjs
[14:02:38] *** InezK_away is now known as InezK
[14:02:55] *** faviouz has quit IRC
[14:03:04] *** moritzs has quit IRC
[14:03:10] *** danielpquinn has joined #angularjs
[14:03:22] *** slainer68 has quit IRC
[14:03:38] *** slainer68 has joined #angularjs
[14:05:23] *** sigurding has joined #angularjs
[14:05:26] *** jerev is now known as jerev_away
[14:05:52] *** sigurding has quit IRC
[14:06:05] *** encryptd_fractl has joined #angularjs
[14:06:51] *** sdouglas has joined #angularjs
[14:06:57] *** dariocravero has joined #angularjs
[14:07:11] <testerde> may it work if I insert a local $scope.watch inside the nested template?
[14:07:37] *** vonnegut has joined #angularjs
[14:07:41] *** danielpquinn has quit IRC
[14:08:46] *** vonnegut has quit IRC
[14:09:08] *** vonnegut has joined #angularjs
[14:09:37] *** Willow has quit IRC
[14:10:03] *** Willow has joined #angularjs
[14:10:15] *** bmac has joined #angularjs
[14:10:18] *** encryptd_fractl has quit IRC
[14:10:51] *** one_zero has quit IRC
[14:10:57] *** lordkryss has joined #angularjs
[14:11:48] *** devx101_ has quit IRC
[14:11:59] *** sdouglas has quit IRC
[14:12:27] *** InezK is now known as InezK_away
[14:12:58] *** Ephemeral has quit IRC
[14:13:29] *** bkuberek has joined #angularjs
[14:13:51] *** vonnegut has quit IRC
[14:14:30] *** jerev_away is now known as jerev
[14:14:36] *** Willow has quit IRC
[14:14:50] *** mtsr has joined #angularjs
[14:16:56] *** delian66 has quit IRC
[14:17:06] *** dariocravero has quit IRC
[14:18:27] *** bkuberek has quit IRC
[14:18:28] *** Trow has joined #angularjs
[14:18:41] *** moritzs has joined #angularjs
[14:20:11] *** jonog has joined #angularjs
[14:20:23] *** lordkryss has quit IRC
[14:21:33] *** Santos has joined #angularjs
[14:22:51] *** jonog has quit IRC
[14:23:25] *** jonog has joined #angularjs
[14:24:01] *** BrianGO has quit IRC
[14:24:09] *** Notte has joined #angularjs
[14:24:30] <Santos> Hi all, I need to use something like ngrepeat but I need it to run 10 times and only use the index. can I do it without creating an array of 10?
[14:25:37] *** BrianGO has joined #angularjs
[14:26:16] <sacho_> not really, for ng-repeat, but you could probably write a directive to do something similar
[14:26:23] <sacho_> i assume you don't need data binding and so on, either
[14:26:31] <Santos> no idont
[14:27:03] <Santos> i was trying something like "i in new Array(10) track by $index"
[14:27:15] <Santos> but its not working :(
[14:28:11] *** jonog has quit IRC
[14:28:35] <sacho_> uhh
[14:28:47] *** scmx has quit IRC
[14:28:52] <sacho_> I'd recommend just creating an array in a controller
[14:29:30] *** anjumkaiser has quit IRC
[14:29:32] <jamieshepherd> Is there an easy way I can animate new list items that enter the dom
[14:29:54] <Santos> maybe i'll wrap new Array(20) in a function
[14:30:40] *** tylerlh has joined #angularjs
[14:30:53] *** Vinnyceptr has quit IRC
[14:30:58] <Santos> sacho_: Thanks
[14:30:59] *** sacho_ has quit IRC
[14:31:25] *** sacho_ has joined #angularjs
[14:31:37] *** michaelm has joined #angularjs
[14:31:48] *** Vinnyceptr has joined #angularjs
[14:31:53] <Santos> jamieshepherd: You can animate ng-show and ng-hide
[14:32:29] *** bmac has quit IRC
[14:32:56] *** tylerlh has quit IRC
[14:33:31] *** tylerlh has joined #angularjs
[14:35:14] *** Siecje has joined #angularjs
[14:35:59] *** vonnegut has joined #angularjs
[14:36:11] *** Jae has quit IRC
[14:36:41] *** vonnegut has quit IRC
[14:36:46] *** Jae has joined #angularjs
[14:37:32] *** tylerlh has quit IRC
[14:39:34] *** DrMabuse has joined #angularjs
[14:40:13] *** gnrlbzik has joined #angularjs
[14:41:02] *** bsmithgall has joined #angularjs
[14:41:24] *** davedev24_ has joined #angularjs
[14:41:39] *** dazs has quit IRC
[14:42:03] *** Alina-emergency has quit IRC
[14:42:05] *** joshontheweb has joined #angularjs
[14:42:33] *** kibab has quit IRC
[14:42:46] *** michaelm has quit IRC
[14:42:59] *** orion1111 has joined #angularjs
[14:43:13] *** Alina-emergency has joined #angularjs
[14:43:26] *** lite_ has joined #angularjs
[14:43:44] *** Notte has quit IRC
[14:43:58] *** DrMabuse has quit IRC
[14:44:44] *** gnrlbzik has quit IRC
[14:45:04] *** dazs has joined #angularjs
[14:45:08] *** bsmithgall has quit IRC
[14:45:38] *** fedenunez has joined #angularjs
[14:45:59] *** leolewa has joined #angularjs
[14:46:10] *** conner_ has joined #angularjs
[14:47:24] *** idvb has joined #angularjs
[14:48:06] *** davi has joined #angularjs
[14:48:06] *** davi has joined #angularjs
[14:48:40] *** squeakytoy has joined #angularjs
[14:50:16] *** SpearThruster has joined #angularjs
[14:50:31] *** paul_dijou has joined #angularjs
[14:50:59] *** conner_ has quit IRC
[14:51:01] *** brezel has joined #angularjs
[14:54:07] *** vonnegut has joined #angularjs
[14:54:42] *** vonnegut has quit IRC
[14:55:15] *** vonnegut has joined #angularjs
[14:55:20] *** Ethix has joined #angularjs
[14:55:30] *** disorder20 has quit IRC
[14:56:19] *** tfennell_ has joined #angularjs
[14:56:20] *** lordkryss has joined #angularjs
[14:56:42] *** vonnegut has quit IRC
[14:56:50] *** disorder20 has joined #angularjs
[14:57:14] *** vonnegut has joined #angularjs
[14:58:37] *** jpstone has joined #angularjs
[14:59:42] *** vonnegut has quit IRC
[15:00:04] *** tfennelly has quit IRC
[15:01:47] *** klaut has quit IRC
[15:02:05] *** beckyconning__ has quit IRC
[15:03:03] *** ChrisC_ has joined #angularjs
[15:03:25] *** InezK_away is now known as InezK
[15:03:48] *** danielpquinn has joined #angularjs
[15:04:38] *** davi has quit IRC
[15:04:44] *** devx101 has joined #angularjs
[15:04:58] *** R_Gant has joined #angularjs
[15:05:19] *** NickyYO has joined #angularjs
[15:05:38] *** justinobney has joined #angularjs
[15:08:03] *** danielpquinn has quit IRC
[15:08:09] *** cphil has joined #angularjs
[15:09:18] *** devx101 has quit IRC
[15:11:43] *** bbankes has quit IRC
[15:12:00] *** bbankes has joined #angularjs
[15:12:48] *** motionman has joined #angularjs
[15:12:48] *** motionman has joined #angularjs
[15:13:12] *** Aerospark has joined #angularjs
[15:13:15] *** InezK is now known as InezK_away
[15:13:30] *** NigelS has quit IRC
[15:13:30] *** NigelS has joined #angularjs
[15:13:51] *** sacho_ has quit IRC
[15:14:16] *** bkuberek has joined #angularjs
[15:14:20] *** sacho_ has joined #angularjs
[15:14:39] *** sacho_ has quit IRC
[15:15:04] *** ceephax has quit IRC
[15:15:07] *** CmdrTallen has joined #angularjs
[15:15:16] *** disorder20 has quit IRC
[15:15:40] *** instence has quit IRC
[15:15:40] *** vader has quit IRC
[15:16:03] *** vader has joined #angularjs
[15:17:34] *** Aerospark has quit IRC
[15:17:50] *** instence has joined #angularjs
[15:18:13] *** corban has joined #angularjs
[15:18:13] *** vader has quit IRC
[15:18:26] *** fixl has quit IRC
[15:18:38] *** bkuberek has quit IRC
[15:18:55] *** vader has joined #angularjs
[15:19:55] *** justinobney has quit IRC
[15:20:11] *** sacho_ has joined #angularjs
[15:20:14] *** NickyYO has quit IRC
[15:20:29] *** justinobney has joined #angularjs
[15:20:34] *** hugorodrigues has joined #angularjs
[15:20:37] *** avree has quit IRC
[15:22:34] *** tfennell_ has quit IRC
[15:24:11] *** moritzs has quit IRC
[15:24:17] *** AngularUI has joined #angularjs
[15:24:17] <AngularUI> [bootstrap] pkozlowski-opensource closed pull request #2456: Update Radio button to change model in $scope (master...patch-1) http://git.io/GlvQ0Q
[15:24:17] *** AngularUI has left #angularjs
[15:24:33] *** justinobney has quit IRC
[15:24:45] *** moritzs has joined #angularjs
[15:25:11] *** hugorodrigues has quit IRC
[15:25:59] *** hswolff has joined #angularjs
[15:26:56] *** xjiujiu has quit IRC
[15:27:24] *** xjiujiu has joined #angularjs
[15:27:46] *** in_deep_thought has joined #angularjs
[15:28:22] *** caitp has joined #angularjs
[15:28:39] *** flocca has joined #angularjs
[15:28:53] *** lw has joined #angularjs
[15:29:12] *** flocca-bis has quit IRC
[15:30:23] <in_deep_thought> can someone help me with this angular example? I copied it directly from the website and it doesn’t give any errors, but no alerts are showing up either. What else do I need to do? http://jsbin.com/kewage/1/edit
[15:31:34] *** jbourassa has joined #angularjs
[15:33:23] *** basichash has joined #angularjs
[15:33:25] *** lordjancso has joined #angularjs
[15:34:00] <basichash> When should i use a JS toolset over frameworks like rails/django/
[15:34:01] *** tylerlh has joined #angularjs
[15:34:19] *** in_deep_thought has quit IRC
[15:34:49] <caitp> he asks a question with a really easy answer, and leaves before anyone can answer @_@
[15:34:55] *** paul_dijou has quit IRC
[15:34:56] *** DrMabuse has joined #angularjs
[15:35:10] <sacho_> no karma points for you!
[15:35:23] <caitp> =[
[15:35:31] *** asdofindia has joined #angularjs
[15:35:44] *** intellix has quit IRC
[15:37:49] *** in_deep_thought has joined #angularjs
[15:38:21] *** tylerlh has quit IRC
[15:39:07] *** MTGap has joined #angularjs
[15:39:18] *** quellhorst has quit IRC
[15:39:29] *** DrMabuse has quit IRC
[15:39:32] *** tokka has quit IRC
[15:39:37] *** tokka_ has joined #angularjs
[15:40:13] *** in_deep_thought has quit IRC
[15:41:04] *** gnrlbzik has joined #angularjs
[15:42:13] *** foo-bar- has joined #angularjs
[15:42:20] *** morenoh149 has quit IRC
[15:42:32] <R_Gant> basichash: depends on what you are trying to do, and everyone has an opinion
[15:44:54] *** arizzo has joined #angularjs
[15:45:32] *** gnrlbzik has quit IRC
[15:45:35] *** caitp has quit IRC
[15:45:45] *** dazs has quit IRC
[15:45:49] *** gnarMatix has joined #angularjs
[15:46:47] *** foo-bar- has quit IRC
[15:46:49] *** leolewa has quit IRC
[15:47:56] *** Notte has joined #angularjs
[15:49:41] *** fatshark has joined #angularjs
[15:51:26] <jamieshepherd> With the ng-show directive, which is being called on ng-focus, can I make it so it only happens once? Rather than every time I focus it shows/hides?
[15:52:18] *** Notte has quit IRC
[15:53:03] *** cctom_ has joined #angularjs
[15:53:48] *** amacgregor has quit IRC
[15:54:04] *** mfunkie_ has joined #angularjs
[15:54:41] <sacho_> how are you calling it on ng-focus
[15:56:01] <jamieshepherd> sacho_ : https://ghostbin.com/paste/6cv8d
[15:56:27] *** Fistful_of_Coins has joined #angularjs
[15:56:27] <jamieshepherd> I kinda wanted it to be like the Facebook status field, where when you enter the field, the post button shows, but you can't close it
[15:56:28] <sacho_> well, instead, just set showActions to true
[15:56:40] <Fistful_of_Coins> i'm trying to make this work: https://github.com/rooeydaniel/angular_mojolicious_todo
[15:56:42] *** t1mmen has joined #angularjs
[15:57:00] <Fistful_of_Coins> but i'm getting ERR_CONNECTION_REFUSED
[15:57:02] <Fistful_of_Coins> http://pastebin.com/kHPJ5rms
[15:57:05] <jamieshepherd> Oh that was easy sacho_ :D
[15:57:07] <jamieshepherd> Thanks
[15:58:00] <sacho_> well, your server is refusing connections
[15:58:26] <Fistful_of_Coins> my server is up
[15:58:44] *** tangorri has quit IRC
[15:58:49] <sacho_> okay, and it's refusing connections
[15:59:25] *** arizzo has quit IRC
[15:59:53] <Fistful_of_Coins> how can i fix that? it doesn't refuse connections when i do them through the browser
[16:00:00] *** arizzo has joined #angularjs
[16:00:29] *** faddah has joined #angularjs
[16:00:35] <sacho_> well, what kind of request are you sending
[16:01:18] <testerde> aaah, i'm getting crazy. Please can anyone help me: How can I change keys of a given object, if its not directly a scope object, but a child of it? So, $scope.tree is the original scope object and I get a reference to lets say $scope.tree.children[5].children[3].data ... how can I then change the data.output inside there?
[16:01:18] <Fistful_of_Coins> get
[16:01:33] <Fistful_of_Coins> https://github.com/rooeydaniel/angular_mojolicious_todo/blob/master/frontend/public/js/controllers.js <-- it doesnt get through the first get
[16:02:13] *** rbueno has quit IRC
[16:02:38] <testerde> with an attribute directive I may be able to watch for changes of the data.input, but how to save to data.output then?
[16:02:45] *** davi has joined #angularjs
[16:02:47] *** J0514H has joined #angularjs
[16:03:15] <Fistful_of_Coins> sacho_: http://54.213.242.203:3000/public/todos <-- this is the server, it clearly works, the frontend is http://54.213.242.203:8000/public/index.html
[16:03:25] <Fistful_of_Coins> does it work for you?
[16:03:54] *** schonert has joined #angularjs
[16:03:56] * sacho_ tries
[16:04:01] <bealtine> nope...
[16:04:11] <bealtine> 404 on jquery
[16:04:18] *** InezK_away is now known as InezK
[16:04:20] *** arizzo has quit IRC
[16:04:42] *** danielpquinn has joined #angularjs
[16:04:52] <bealtine> http://54.213.242.203:8000/public/lib/jquery/jquery.js <-
[16:06:21] *** marcospgp has joined #angularjs
[16:06:32] <sacho_> Fistful_of_Coins, try getting rid of the content-type: undefined
[16:08:10] *** ededagic has joined #angularjs
[16:08:29] *** tylerlh has joined #angularjs
[16:08:58] *** danielpquinn has quit IRC
[16:10:26] *** Nijikokun has quit IRC
[16:10:49] <Fistful_of_Coins> changed it to text/javascript, still doesnt work
[16:11:13] *** kji has joined #angularjs
[16:11:29] *** foo-bar- has joined #angularjs
[16:11:47] *** Sky[x] has quit IRC
[16:12:04] *** intellix has joined #angularjs
[16:12:34] *** devx101 has joined #angularjs
[16:12:39] <sacho_> well, perhaps someone who's used node.js's web server can be of more help
[16:13:15] *** foo-bar- has quit IRC
[16:13:29] *** Sna4x8 has quit IRC
[16:13:52] *** jonog has joined #angularjs
[16:14:04] *** Sna4x8 has joined #angularjs
[16:14:55] *** mehlah has joined #angularjs
[16:15:05] <marcospgp> I do work with node.js, what's going on?
[16:15:05] *** bkuberek has joined #angularjs
[16:15:06] <Santos> Hi all, can I pass values in the directive's name e.g. numeric="50"
[16:15:28] <marcospgp> Santos: Yea you usually can
[16:15:41] *** InezK is now known as InezK_away
[16:15:44] *** k-dawg has quit IRC
[16:16:15] *** superplussed has left #angularjs
[16:16:35] <Santos> so how do I get the values in the directive?
[16:16:39] <sacho_> via attrs
[16:16:56] <Fistful_of_Coins> marcospgp: i am trying to get a angular to work with mojolicious, i'm using node.js for the angular
[16:17:21] <Santos> so if the directive name is numeric attrs.numeric is the value in numeric="50" ?
[16:17:23] <Fistful_of_Coins> it's giving me ERR_CONNECTION_REFUSED
[16:17:51] <Fistful_of_Coins> marcospgp: http://54.213.242.203:8000/public/index.html <--front end backend is port 3000 and returns /public/todos just fine
[16:19:08] *** lordkryss has quit IRC
[16:19:09] <marcospgp> Fistful_of_Coins: hm unfortunately I am not at all familiar with mojolicious
[16:19:23] <sacho_> Santos, sure
[16:19:29] <marcospgp> isn't it for perl?
[16:19:29] *** KushS has joined #angularjs
[16:19:38] *** bkuberek has quit IRC
[16:19:38] <Fistful_of_Coins> marcospgp: mojolicious does what it should: it returns the todo in json
[16:19:49] <Santos> sacho_, thanks
[16:20:10] <Fistful_of_Coins> the problem i'm having is with angular/node not being able to connect, on the mojolicious side i have Allow-access headers https://github.com/rooeydaniel/angular_mojolicious_todo/blob/master/backend/lib/MojoAngular.pm#L97
[16:20:26] *** tylerjohnst has joined #angularjs
[16:20:30] *** tylerlh has quit IRC
[16:20:32] *** jtimon has joined #angularjs
[16:20:42] <Fistful_of_Coins> so afaict it would be the only problem
[16:20:46] *** devx101 has quit IRC
[16:21:05] *** tylerlh has joined #angularjs
[16:21:24] *** tylerlh has quit IRC
[16:21:27] *** schonert has quit IRC
[16:21:31] *** devx101 has joined #angularjs
[16:21:32] *** cctom_ has quit IRC
[16:21:39] *** tylerlh has joined #angularjs
[16:22:49] <marcospgp> Fistful_of_Coins: $http.get('http://localhost:3000/public/todos' - this url is wrong
[16:22:52] <sacho_> you're allowing access to :8000, not :3000
[16:24:24] <Fistful_of_Coins> sacho_: just changed to 3000 it doesnt work
[16:24:31] <Fistful_of_Coins> marcospgp: wha should i use?
[16:25:14] <marcospgp> Fistful_of_Coins: I'm not sure about this, but localhost would only work for the person who is running the server on their machine
[16:25:21] *** raibutera has joined #angularjs
[16:25:27] *** ededagic has quit IRC
[16:25:34] *** devx101 has quit IRC
[16:25:34] <Fistful_of_Coins> marcospgp: both are on the same machine frontend/backend
[16:25:41] <marcospgp> Fistful_of_Coins: which is you. and you still get the error. So it's probably something else. check the places where your http headers are set and such
[16:25:55] <marcospgp> Fistful_of_Coins: if you return something from the api make sure to set a 200 header
[16:26:06] <sacho_> Fistful_of_Coins, are you accessing the site via localhost or via that ip
[16:26:34] *** KushS has quit IRC
[16:27:11] <Fistful_of_Coins> sacho_: wow! i think your point may be right
[16:27:22] <Fistful_of_Coins> i'm accessing it remotely
[16:27:51] <raibutera> Guys, I have a service with a 'login' method that creates a promise using "var deferred = $q.defer()" - in the unit test for the method how do I spy on whether or not deferred.resolve() or deferred.reject() was called?
[16:27:53] *** tk has quit IRC
[16:27:56] <sacho_> well, try accessing it locally, or changing the allow-origin to that ip
[16:28:03] *** gnrlbzik has joined #angularjs
[16:28:35] <sacho_> deferred.promise.then(..)
[16:29:00] *** jpstone- has joined #angularjs
[16:29:03] <raibutera> you've lost me
[16:29:36] <sacho_> check out the documentation for deferreds
[16:29:42] <raibutera> ok doing now
[16:29:50] <sacho_> you can get the promise for a deferred via the promise property - deferred.promise
[16:29:52] <Fistful_of_Coins> sacho_: the angular frontend used localhost which is the client's ip
[16:30:03] *** moritzs has quit IRC
[16:30:20] <raibutera> yeah
[16:30:29] <raibutera> but how do i spy on that deferred object ?
[16:30:33] *** Paper_bounced is now known as paperElectron
[16:30:55] <raibutera> it's a local variable within the method function
[16:31:02] <sacho_> you can add handlers for when the deferred is resolved or rejected.
[16:31:08] *** H1FuelCell has quit IRC
[16:31:33] <Fistful_of_Coins> it works!
[16:31:46] <Fistful_of_Coins> marcospgp: sacho_ thanks !
[16:32:35] <testerde> please help me =( how can i access/change local scope variable inside a recursive template?
[16:32:40] <chovy> Fistful_of_Coins: you into bitcoins?
[16:32:43] *** Fire-Dragon-DoL has joined #angularjs
[16:32:50] *** Kallb123 has joined #angularjs
[16:32:52] <chovy> testerde: $parent.$scope
[16:32:53] <marcospgp> Fistful_of_Coins: Great :)
[16:33:00] <Fistful_of_Coins> chovy: yes
[16:33:07] *** michaelm has joined #angularjs
[16:33:18] <Fistful_of_Coins> marcospgp: sacho_ if you give me btc addresses i might tip you once i finish this thing ;)
[16:33:19] *** mfunkie_ has quit IRC
[16:33:59] <marcospgp> Fistful_of_Coins: I don't have one aha what's it good for? I've been interested in that for a while
[16:34:03] *** ngoyal has joined #angularjs
[16:34:10] <Fistful_of_Coins> marcospgp: magic internet money
[16:34:24] <marcospgp> Fistful_of_Coins: does it buy unicorns? o:
[16:34:28] <testerde> chovy: the problem is... how?! I can't do it in the controller, right? as I don't know the depth of my recursion. So I don't know exactly how often $parents needs to be called?
[16:34:31] *** conner_ has joined #angularjs
[16:34:35] *** arizzo has joined #angularjs
[16:34:44] <Kallb123> Hi guys, should a directive on a class work for elements created after the dom loads?
[16:34:56] *** basichash has quit IRC
[16:35:00] *** scmx has joined #angularjs
[16:35:43] *** DrMabuse has joined #angularjs
[16:35:48] <Fistful_of_Coins> even better, : http://www.youtube.com/watch?v=Um63OQz3bjo
[16:35:50] *** enigmarm has joined #angularjs
[16:36:29] <marcospgp> Fistful_of_Coins: I like this! Power to the people! FREEDOMM
[16:36:51] <Fistful_of_Coins> marcospgp: pretty awesome technology as well, you can create decentralized ledgers for anything
[16:36:53] *** cphil has quit IRC
[16:37:32] <marcospgp> Fistful_of_Coins: I read somewhere that there is a limited number of bitcoins to ever be made available
[16:37:36] <Fistful_of_Coins> this goes beyond financial transactions, once you get into it you realize everything can be decentralized
[16:37:54] *** drej has joined #angularjs
[16:38:08] *** mattt_ has joined #angularjs
[16:38:14] *** devx101 has joined #angularjs
[16:38:20] <Stephen> So, for some reason I had 0 clue that the properties listed in the resolve of a route not only supported promises, but that the properties are added as arguments to the subsequent controller
[16:38:38] *** conner_ has quit IRC
[16:38:55] <Fistful_of_Coins> marcospgp: yes, but you can always clone bitcoin code and create a new coin based on a new merkle root, ie. creating an "altcoin" (although most are considered "shitcoins" because they have no use or support other than giving a medium for crooks to fraud people out of money)
[16:38:55] *** enigmarm has quit IRC
[16:39:02] *** bade has joined #angularjs
[16:39:12] <sacho_> Stephen, I would have preferred if they were available via the route instead
[16:39:15] <Stephen> I discovered this because one of our developers decided to use booleans to mark that they had loaded
[16:39:19] <sacho_> (or are they?)
[16:39:31] <Fistful_of_Coins> like i said, the technology is impressive, the block chain, decentralization, mining
[16:39:40] *** srph_ has joined #angularjs
[16:39:42] <Stephen> sacho_, That makes no sense
[16:39:58] <Stephen> the route is determined well before the resolve is run
[16:40:04] *** DrMabuse has quit IRC
[16:40:11] *** tokka_ has quit IRC
[16:40:19] <marcospgp> Fistful_of_Coins: yea it is, what web service would suggest in which to create a wallet?
[16:40:19] <Stephen> It's what directs the router to said resolve
[16:40:29] <marcospgp> Fistful_of_Coins: would you*
[16:40:44] *** mennea has quit IRC
[16:40:45] <srph_> Hey, I am trying a nested state. But I am unable to go to another state due to errors (which is available in the console). Can anyone look: http://plnkr.co/edit/reWzvNDIoBGWN0RAG9Os?p=preview ?
[16:41:05] *** derhasi_ has joined #angularjs
[16:41:17] <sacho_> Stephen, the resolve is defined as part of the route - I'd prefer if it didn't magically add providers for my specific controller
[16:41:23] *** vonnegut has joined #angularjs
[16:41:24] <Fistful_of_Coins> marcospgp: you can use webservices, but i wouldnt recommend them because you're trusting others with your money, although i hear everyone talk of how blockchain.info is awesome, ideally you should just download armory or electrum,
[16:41:41] *** vonnegut has quit IRC
[16:42:34] *** hemingway has joined #angularjs
[16:43:24] <Stephen> sacho_, Where are you getting that?
[16:43:41] <sacho_> hmm?
[16:43:50] *** house has joined #angularjs
[16:43:50] <sacho_> .when(... { .. } <-- route definition)
[16:43:50] *** michaelm has quit IRC
[16:44:06] *** house has quit IRC
[16:44:39] <Stephen> sacho_, One may configure it there, but you do understand that the route acts as a key to run the resolve, right?
[16:44:46] *** mfunkie_ has joined #angularjs
[16:44:55] <Stephen> It's meant as a "wait/before"
[16:45:01] *** arizzo has quit IRC
[16:45:08] <sacho_> I understand how it works.
[16:45:10] <marcospgp> Fistful_of_Coins: I'm going to download Electrum then
[16:45:28] <sacho_> I'd prefer if I could access the resolved promises via $route.resolved.something.
[16:45:42] <srph_> Can anyone help me on my issue? hehe :)
[16:45:46] *** arizzo has joined #angularjs
[16:46:07] <Fistful_of_Coins> marcospgp: ok, make sure to set a password and write it down, print a paper wallet as well (i think it takes you through the process)
[16:46:23] <marcospgp> Fistful_of_Coins: hm don't have a printer here
[16:46:38] *** bsmithgall has joined #angularjs
[16:46:42] *** djam90 has joined #angularjs
[16:47:27] <derhasi_> Hi, I'm somehow stuck with splitting my controller in a separate file of my module, the "var nav = angular.module('openKS.nav');" gives me an undefined var instead of my predefined module. Can you have alook at http://embed.plnkr.co/LObLTGYbpIYurqYwWSRt/preview and help me out there? ;)
[16:47:35] *** michaelm has joined #angularjs
[16:48:12] *** kirfu has joined #angularjs
[16:48:22] *** Sunil_ has quit IRC
[16:48:30] <Fistful_of_Coins> marcospgp: write down the 12 4 character words it'll give you then, even more secure ;) that way ..it could get intercepted on the way to the printer
[16:48:55] <marcospgp> Fistful_of_Coins: aha time to listen to black sabbath :D
[16:49:02] <marcospgp> Fistful_of_Coins: "paranoid" :p
[16:49:04] *** Brocken is now known as zz_Brocken
[16:49:09] <sacho_> derhasi_, nav.module..?
[16:49:24] <sacho_> derhasi_, a module doesn't have a module() function
[16:49:48] <tylerlh> ^^
[16:49:49] *** srph_ has quit IRC
[16:50:15] *** quellhorst has joined #angularjs
[16:50:16] <Fistful_of_Coins> marcospgp: there's reasons to be, you have a key on your hard drive that gives hackers access to your cash, untraceably.
[16:50:18] <derhasi_> sacho_: yeah, but I want to add a controller to the module, so I thought calling angular.module('openKS.nav').controller(...) would be the way to go
[16:50:25] <sacho_> sure
[16:50:28] *** arizzo has quit IRC
[16:50:36] <tylerlh> derhasi_: thats right,but thats not what you have in your code
[16:50:38] <sacho_> that's not what you're doing in your code, though
[16:51:25] <tylerlh> you essentially have angular.module('openKS.nav').module('openKS.nav').controller
[16:51:34] <marcospgp> Fistful_of_Coins: This bitcoin thing is going to get me murdered :D
[16:51:53] <derhasi_> tylerlh: omg, you are right, did not see that!
[16:52:06] <derhasi_> tylerlh, sacho_, thanks :)
[16:52:11] *** bade has quit IRC
[16:52:16] *** m0t0r has joined #angularjs
[16:52:31] <tylerlh> sure thing
[16:52:36] *** m0t0r has quit IRC
[16:52:38] *** jbourassa has quit IRC
[16:53:35] *** jbourassa has joined #angularjs
[16:54:18] *** JimTheDev has joined #angularjs
[16:54:18] <Fistful_of_Coins> marcospgp: it's been holding up, and right now it's still in the initial development phase, so not like people who dont know what they're doing are holding all their cash on it right now (despite what the trolls and fraudsters would like to make you believe). But for ex. right now, i have no idea where you are in the world but i'll tip you it's gonna come through instantly with no fees.
[16:54:18] *** JimTheDev has quit IRC
[16:54:18] *** JimTheDev has joined #angularjs
[16:54:33] *** quellhorst has quit IRC
[16:54:43] *** Willow has joined #angularjs
[16:55:00] <raibutera> sacho_ http://pastebin.com/jb9qz0Yd - this is as far as my google-fuing can get me
[16:55:04] <Fistful_of_Coins> for all i know you could be in antartic, the ISS or the moon.
[16:55:20] *** house has joined #angularjs
[16:55:35] <marcospgp> Fistful_of_Coins: Man all 3 of those places sound way better than where I am aha
[16:55:38] <raibutera> i'm so confused right now that test always passes even if I deliberately reject with a different error
[16:56:06] *** house has quit IRC
[16:56:13] *** marr has quit IRC
[16:56:13] <sacho_> .then's first parameter is a callback for when a promise is resolved
[16:56:23] <marcospgp> Fistful_of_Coins: okay my seed is night rich hot sun planet down sand there and bone real mountain
[16:56:35] *** house has joined #angularjs
[16:56:40] <marcospgp> Fistful_of_Coins: jk :p
[16:57:37] *** vader has quit IRC
[16:57:39] *** house has joined #angularjs
[16:57:41] *** Bade has joined #angularjs
[16:57:57] <Fistful_of_Coins> haha
[16:58:00] *** hollingsw has joined #angularjs
[16:58:15] *** VictorBjelkholm has quit IRC
[16:58:28] <sacho_> raibutera, $q has a nifty .catch() method on promises.
[16:58:28] *** hollingsw has quit IRC
[16:58:28] *** arizzo has joined #angularjs
[16:58:33] *** shorne has quit IRC
[16:58:34] *** house has quit IRC
[16:58:41] <raibutera> looking at .catch() now
[16:58:41] <sacho_> raibutera, https://docs.angularjs.org/api/ng/service/$q
[16:58:48] <marcospgp> Fistful_of_Coins: You don't have to tip me, thanks though for all the info (: I'll be looking more into this bitcoin thing from now on
[16:59:12] *** gauravsaini03 has quit IRC
[16:59:24] *** Nizumzen has joined #angularjs
[16:59:40] <Fistful_of_Coins> well to demo how awesome it is
[17:00:20] *** Fire-Dragon-DoL has quit IRC
[17:00:38] *** Vinnyceptr has quit IRC
[17:01:11] *** daughtery has joined #angularjs
[17:01:22] *** arizzo has quit IRC
[17:01:38] <marcospgp> Fistful_of_Coins: Yea but you're spending money :p send me a cent then :D 3bd9ffa111d1287673075fe7733988e0e4cdb5be8879eb60aabe345faa38b8f87c5845da95f3f538ab7f5956c68947af744cba9353807fb10fad0004f905f7b8
[17:01:38] *** daughtery has quit IRC
[17:01:54] *** kji has quit IRC
[17:01:56] *** yoshokatana has joined #angularjs
[17:01:58] *** Bade has quit IRC
[17:02:05] *** arizzo has joined #angularjs
[17:02:19] <Fistful_of_Coins> marcospgp: that's the wrong key, you want to send me your public key that starts with 1, but looks like that is something else
[17:02:19] *** motionman has quit IRC
[17:02:31] *** kji has joined #angularjs
[17:02:48] <Fistful_of_Coins> not sure if its your private key (might be) in which case you don't want to use that anymore haha, anyone has access to your coins with your private key
[17:02:49] <marcospgp> Fistful_of_Coins: that's the "public master key", did I fuck something up? aha
[17:02:50] *** odin_ has joined #angularjs
[17:03:23] <Fistful_of_Coins> create a new key should start with 1 and be about 50 something caracters long
[17:04:24] *** mcannally has joined #angularjs
[17:04:39] <Fistful_of_Coins> ok thats the coresponding public key, it's fine but it's easier if you send me the actual pub key (which starts with 1) ie: 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM read more: https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses
[17:04:52] *** mcannally has quit IRC
[17:05:15] *** BrianGO has quit IRC
[17:05:24] *** tangorri has joined #angularjs
[17:05:25] *** danielpquinn has joined #angularjs
[17:05:40] <marcospgp> well there's this http://imgur.com/KFPkyCF
[17:05:52] *** J0514H has quit IRC
[17:06:15] <Fistful_of_Coins> yes just send me one of these
[17:06:20] *** arizzo has quit IRC
[17:06:34] *** kalehv has joined #angularjs
[17:06:36] <marcospgp> hm okie! 16wH2QrRYKxtMUL61nDdccivaKPguuSwk1
[17:06:43] *** InezK_away is now known as InezK
[17:07:01] *** zz_Brocken is now known as Brocken
[17:07:04] *** ChrisC_ has quit IRC
[17:07:06] *** cphil has joined #angularjs
[17:07:17] <Stephen> sacho_, Do you really need access to the route that way?
[17:07:19] *** iksik has quit IRC
[17:07:22] <Stephen> If so, I have a solution
[17:07:35] *** liskiewic has joined #angularjs
[17:08:38] *** hugorodrigues has joined #angularjs
[17:08:44] <sacho_> no, I just don't like having to add the resolved stuff via di :)
[17:09:03] *** Sky[x] has joined #angularjs
[17:09:04] <tylerlh> just curious, why not?
[17:09:31] *** iksik has joined #angularjs
[17:09:35] *** R_Gant has quit IRC
[17:09:38] *** danielpquinn has quit IRC
[17:09:43] *** pdillinger1 has joined #angularjs
[17:10:06] *** anjumkaiser has joined #angularjs
[17:10:24] *** hollering has joined #angularjs
[17:10:31] *** VictorBjelkholm has joined #angularjs
[17:10:45] <Stephen> It breaks the pattern
[17:10:51] <Stephen> sacho_ is kinda right
[17:10:58] <Fistful_of_Coins> marcospgp: ok, sent you from an exchange
[17:11:31] <Stephen> But, the router is injecting them as arguments onto the controller, so I see the perspective.
[17:11:34] <marcospgp> Fistful_of_Coins: Thanksss, let me see if something appears
[17:12:24] <Fistful_of_Coins> marcospgp: sometimes it depends on broadcast, and network load, but it should arrive instantaneously, and just takes 6 verifications by miners, (these can take long, but usually 10 min each)
[17:12:34] *** hugorodr_ has joined #angularjs
[17:12:58] *** bphogan_afk is now known as bphogan
[17:13:08] *** hugorodrigues has quit IRC
[17:13:11] *** dufour has joined #angularjs
[17:13:56] <Stephen> Line 516 in angular-route could have stored a reference to the actual promises somewhere, but it's obvious the intent was to run the resolve every time. Caching promises isn't really condusive to that
[17:14:01] <tylerlh> yeah, it makes sense
[17:14:12] *** devx101 has quit IRC
[17:14:37] *** Johnny13371337 has quit IRC
[17:14:43] <marcospgp> Fistful_of_Coins: so one hour?
[17:14:51] *** devx101 has joined #angularjs
[17:14:58] *** kji has quit IRC
[17:15:01] <marcospgp> Fistful_of_Coins: oh noo it's here :D
[17:15:08] *** xjiujiu has quit IRC
[17:15:35] *** Aerospark has joined #angularjs
[17:15:42] <Kallb123> Can anyone see why this element won't respond to a directive (on it's class) or the ng-click that it's got...: <a class="findFeedResultTitle" ng-click="foundResult('foo', 'bar')" title="<b>foo</b> + bar">foo: <b>bar</b></a>
[17:15:55] *** bkuberek has joined #angularjs
[17:16:03] *** house has joined #angularjs
[17:16:23] *** duarte has joined #angularjs
[17:16:24] <marcospgp> Fistful_of_Coins: duude didn't you tip too much o:
[17:16:25] *** duarte has quit IRC
[17:16:32] *** InezK is now known as InezK_away
[17:16:33] <Kallb123> A bunch of the elements are added in after a user searches, but they won't do anything
[17:16:36] <tylerlh> cant tell much without the rest of your code Kallb123
[17:16:50] <sacho_> well, how are the elements added
[17:16:50] *** house has quit IRC
[17:17:25] <Fistful_of_Coins> na
[17:17:33] <Fistful_of_Coins> 5$
[17:17:35] <Kallb123> The elements are just added via jQuery $('#findFeedResults').html(html); where html is a string full of those elements
[17:17:51] <Kallb123> do I need to do it inside a scope.$apply or something?
[17:18:10] <Fistful_of_Coins> it was a simple mistake but i'd have been looking long at it so saves me time
[17:18:11] <marcospgp> Fistful_of_Coins: That is a lot aha, well thank you veery much
[17:19:12] *** podesta has joined #angularjs
[17:19:13] *** devx101 has quit IRC
[17:19:16] *** Sengoku has joined #angularjs
[17:19:20] *** podesta has quit IRC
[17:19:56] *** niall_obrien has joined #angularjs
[17:20:04] *** Aerospark has quit IRC
[17:20:13] *** bkuberek has quit IRC
[17:20:26] *** kji has joined #angularjs
[17:20:47] *** Xethron has joined #angularjs
[17:20:50] *** Xethron has joined #angularjs
[17:21:35] <sacho_> Kallb123, rather a compile.
[17:21:49] *** jbourassa has quit IRC
[17:21:59] *** saxby has joined #angularjs
[17:22:44] <Kallb123> I think I'm best off not creating a string full of stuff, but instead building an array and ng-repeat. Does that sound better?
[17:22:47] *** luisgrin has quit IRC
[17:23:08] <sacho_> sure.
[17:23:45] *** VictorBjelkholm has quit IRC
[17:24:57] <Stephen> Kallb123, ng-repeat will ensure you get a digest cycle for the new elements
[17:25:10] <Stephen> But, you'll get a full cycle for each element if you aren't careful
[17:25:11] *** boeckx has joined #angularjs
[17:25:46] <Kallb123> Ye, I keep snapping back into old habits and forgetting about angular's stuff :(
[17:25:51] *** ppppaul has joined #angularjs
[17:26:02] *** boeckx has quit IRC
[17:26:44] <Stephen> Kallb123, Creating elements with jQuery isn't all that horrible, you're likely just doing it in the wrong place
[17:26:47] <testerde> okay, i dont think this might work to change a deeper scope variable from the controller... what I can get is query by id, but then I can only view the values, but manipulate them, right?
[17:26:52] <Stephen> It should be in the directive
[17:27:47] <Stephen> testerde, you're reaching into a child scope?
[17:27:52] *** cedricziel has quit IRC
[17:28:06] <Stephen> It'd be hard to do this without implementing the "right" way
[17:28:11] <Stephen> what way is yours?
[17:28:20] <Kallb123> Stephen, it was in the directive, but also inside an async callback if that makes a difference. Could I just call digest or something? I tried putting the html insertion inside $timeout but clicks still didn't register
[17:28:31] *** bayousoft has joined #angularjs
[17:28:39] *** CptChaos has joined #angularjs
[17:28:44] *** jtimon has quit IRC
[17:28:47] *** gropper has joined #angularjs
[17:29:03] *** gropper has quit IRC
[17:29:10] <testerde> Stephen: nah, its a bit complicated. I need a json tree to be displayed (currently using a nested template for that)... and inside the template there is an input field and on each change it should do some stuff with it and then assign to an output variable in the same recursive depth...
[17:29:47] *** mreis1 has joined #angularjs
[17:30:11] <testerde> so if i do something like ng-change=update(input, output) ... i can parse the input, but ... i can't change the output as this seems to be the "wrong" scope
[17:30:13] <Stephen> Kallb123, Your async callback was the problem. Remember, promises are linked to the digest cycle. If you put the work inside a deferred, you'll get a digest cycle for free. Otherwise, call $scope.$apply()
[17:30:23] *** lnxmad has joined #angularjs
[17:30:35] <mreis1> Hello everybody
[17:31:20] <lnxmad> hi
[17:31:30] <lnxmad> CORS is killing me
[17:31:31] *** bmcgee has joined #angularjs
[17:31:37] <Kallb123> Stephen, I called apply but still get nothing back, I'll just attempt to use ng-repeat
[17:31:39] <lnxmad> can’t get rid of the exception
[17:31:41] <Stephen> testerde, sounds like you should just have a small directive which is recursively rendered. Each one can carry it's own scope
[17:32:00] *** vankampen has joined #angularjs
[17:32:27] <lnxmad> “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource"
[17:32:28] *** vankampen has quit IRC
[17:32:28] <testerde> Stephen: yeah, but then... how can I do functions inside this then? like update to assign the $scope.input value to $scope.output?
[17:32:57] <Stephen> testerde, The real trick there would be to give the directive (each leaf) a method which can be called by the direct child which it reports it's own value. That way the leafs can build the structure from the bottom up.
[17:33:06] *** sneakertack has joined #angularjs
[17:33:43] <Stephen> testerde, 2-way binding is your first option
[17:34:09] <testerde> Stephen: so the link function in the directive should return something like a controller?
[17:34:19] *** amargherio has joined #angularjs
[17:34:21] *** jonog has quit IRC
[17:34:40] <testerde> Stephen: And second thing: how can I handle templating then? not in the html file but inside the directive?
[17:34:48] <Stephen> testerde, You do understand the directive accepts a "controller" property, yeah?
[17:34:59] *** jonog has joined #angularjs
[17:35:00] *** niall_obrien has quit IRC
[17:35:11] <Stephen> testerde, The directive you need is much smaller.
[17:35:11] *** offer has joined #angularjs
[17:35:20] *** joshontheweb has quit IRC
[17:35:32] <Stephen> testerde, You need a directive that can only handle 1 node of json.
[17:35:33] *** offer has quit IRC
[17:36:00] <testerde> Stephen: argh i'm too newbie to angular, thats all confusing me :D
[17:36:11] *** DrMabuse has joined #angularjs
[17:36:12] <Stephen> testerde, Can you plunkr your code?
[17:36:14] *** pluma has joined #angularjs
[17:36:31] *** moritzs has joined #angularjs
[17:36:32] <lnxmad> calling all cors experts
[17:36:44] <Stephen> testerde, But, basically, directives can have child directives by using a directive in their template
[17:36:58] *** house has joined #angularjs
[17:37:02] *** derhasi_ has quit IRC
[17:37:18] <Stephen> testerde, So, "myJsonDirective" would use a template that has more "myJsonDirective" elements inside it
[17:37:23] *** VictorBjelkholm has joined #angularjs
[17:38:20] <Stephen> testerde, those child directives would be created by a ng-repeat which reads the list of properties off the current element
[17:38:40] *** rbueno has joined #angularjs
[17:38:59] *** ppppaul has quit IRC
[17:39:04] *** jonog has quit IRC
[17:39:35] <Stephen> testerde, But, directives have their own controllers. You can give the scope functions in the directive constructor or in the controller.
[17:39:40] *** mattt_ has quit IRC
[17:39:53] *** michaelm has quit IRC
[17:40:06] <Stephen> If you are manipulating DOM elements, do it in the directive constructor
[17:40:17] <Stephen> The functions will make it into scope if you do it right
[17:40:20] *** jbourassa has joined #angularjs
[17:40:38] *** DrMabuse has quit IRC
[17:40:47] <Stephen> lnxmad, whatcha need?
[17:40:53] <lnxmad> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
[17:41:08] <lnxmad> doing a $http.get
[17:41:29] <Stephen> lnxmad, Windows, especially Chrome, doesn't like reading remote resources when the app runs on localhost
[17:41:30] <lnxmad> Ive seen a few articles around this, but no luck with a fi
[17:41:30] <lnxmad> fix*
[17:41:35] <Stephen> Are you trying to do this?
[17:41:46] *** jeffisabelle has quit IRC
[17:41:54] *** jonog has joined #angularjs
[17:41:55] <lnxmad> The app is on cloud9 running FF on osx
[17:42:01] <Stephen> Linux doesn't like it either, but there are a few flaws that let it get by
[17:42:11] *** rho has joined #angularjs
[17:42:15] <Stephen> And where are you reading the data from?
[17:42:17] *** xjiujiu has joined #angularjs
[17:42:17] *** Siecje has quit IRC
[17:42:27] <lnxmad> so do I really need to send the get back to node.js?
[17:42:30] <lnxmad> yahoo
[17:42:54] <Stephen> lnxmad, Then yahoo is not putting the proper CORS headers on the response
[17:43:08] <Stephen> Either that or you are loading something they didn't intend
[17:43:16] <lnxmad> hm
[17:43:27] <lnxmad> I think its actully a jsonp response
[17:43:35] <Stephen> What are you hitting?
[17:43:37] <lnxmad> But they have a specfic callback defined, so I cant use angularjs
[17:44:11] <lnxmad> http://autoc.finance.yahoo.com/autoc?callback=YAHOO.Finance.SymbolSuggest.ssCallback&query=fnms
[17:44:27] <Stephen> lnxmad, See the example at the bottom of https://docs.angularjs.org/api/ng/service/$http
[17:44:47] *** pluma_ has joined #angularjs
[17:44:58] <Stephen> lnxmad, angular supports jsonp just fine
[17:45:28] <lnxmad> yeah but see how I have to set the callback to YAHOO.Finance.SymbolSuggest.ssCAllback?
[17:45:33] *** pluma has quit IRC
[17:45:43] <lnxmad> I think you have to use JSON_CALLBACL with ang
[17:45:45] *** DrMabuse has joined #angularjs
[17:46:25] *** davemerwin has joined #angularjs
[17:47:29] *** philp has quit IRC
[17:47:43] *** ppppaul has joined #angularjs
[17:47:54] *** philp has joined #angularjs
[17:48:38] *** pluma_ has quit IRC
[17:48:38] *** VictorBjelkholm has quit IRC
[17:49:22] *** pluma has joined #angularjs
[17:50:10] <Stephen> lnxmad, Nope, that's for when the API you are hitting will allow you to reset the callback
[17:50:23] *** Asiajey has joined #angularjs
[17:50:23] *** Asiajey has joined #angularjs
[17:50:27] <Stephen> lnxmad, To be clear, Yahoo Finance does not have an API
[17:50:28] *** devx101 has joined #angularjs
[17:50:45] <Stephen> This is why there are no CORS headers or JSON_CALLBACK parameters
[17:50:54] <Stephen> Not to say you can't reverse engineer it
[17:50:56] <lnxmad> well they have YQL
[17:50:58] <lnxmad> which you can then access finance
[17:51:00] <lnxmad> :p
[17:51:04] <Stephen> Just saying they aren't going to make it easy
[17:51:27] <lnxmad> true
[17:51:30] <sal1191> is there a stock exchange with an api?
[17:51:34] <lnxmad> I found this example on the web
[17:51:39] <sal1191> or does that sort of thing cost
[17:51:41] <lnxmad> I’ve been looking everywhere
[17:51:44] <Stephen> http://stackoverflow.com/questions/5108399/yahoo-finance-all-currencies-quote-api-documentation
[17:51:54] <Stephen> There are some listed there
[17:52:20] <lnxmad> so the YQL works great
[17:52:28] <lnxmad> but they dont have a search feature
[17:52:38] <Stephen> Secondly: Since there's a JSONP wrapper, you could always define that function and just add the requests to your DOM in script tags
[17:52:42] <lnxmad> SELECT * FROM stocks where symbol LIKE ‘MS%'
[17:52:45] <Stephen> It's ugly, but it will work
[17:52:46] <lnxmad> doest work
[17:53:07] <Stephen> What doesn't work?
[17:53:13] <lnxmad> LIKE
[17:53:37] <lnxmad> I’m trying to get a typeahead working
[17:53:37] <lnxmad> for symbols
[17:54:05] *** un-nu has quit IRC
[17:54:18] *** arrty has joined #angularjs
[17:54:38] *** devx101 has quit IRC
[17:55:04] *** rburns has quit IRC
[17:55:56] <Stephen> lnxmad, http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=mc&callback=YAHOO.Finance.SymbolSuggest.ssCallback
[17:55:59] *** sigurding has joined #angularjs
[17:56:03] <Stephen> Symbol lookup
[17:56:14] <chovy> Fistful_of_Coins: cool. http://tradeli.st
[17:56:18] <lnxmad> o.o
[17:56:24] <lnxmad> Thats what I was using...
[17:56:38] <lnxmad> but theres a cors error
[17:56:44] <lnxmad> and I cant get jsonp working
[17:56:49] <Stephen> Then don't use CORS or JSON
[17:56:52] <Stephen> JSONP
[17:57:01] <Stephen> Create an object on your page
[17:57:42] *** bkuberek has joined #angularjs
[17:57:45] *** pluma_ has joined #angularjs
[17:58:18] <Stephen> var Yahoo = { Finance : { SymbolSuggest : { ssCallback : function(data) { alert(data) ; } } } };
[17:58:22] <Stephen> That should do it
[17:58:26] <lnxmad> hm
[17:58:49] <lnxmad> can I use that in a controller?
[17:59:02] <Stephen> Then just use javascript to add a new script element to the bottom of your page with the url given
[17:59:14] *** spookyfork has joined #angularjs
[17:59:23] *** ChrisC_ has joined #angularjs
[17:59:29] <Stephen> lnxmad, It would be best to do all this in a service in Angular
[17:59:38] *** pluma has quit IRC
[17:59:38] <lnxmad> ok
[17:59:44] <Stephen> Never mind the DOM issue here, you're doing data loading
[17:59:59] *** kalusn_ has joined #angularjs
[18:00:07] *** kayloos_ has joined #angularjs
[18:00:11] <Kallb123> Stephen, For some reason (maybe the same as before) ng-repeat is just blank, can you see anything wrong with: http://hastebin.com/ehawufojix.django
[18:00:51] <Kallb123> When the array resultList is empty, there is comment in source about ng-repeat. When something is in array, the comment goes but no elements show up
[18:00:51] <lnxmad> yeah I’m using the angular.ui typeahead which need data returned from a function in the controller
[18:00:57] *** spookyfork has left #angularjs
[18:01:26] *** VeeWee has joined #angularjs
[18:02:13] *** VictorBjelkholm has joined #angularjs
[18:02:18] *** kayloos has quit IRC
[18:02:30] <Stephen> Kallb123, are you doing something like "resultList = someOtherArray"? Or are you using push()?
[18:02:33] *** kalusn has quit IRC
[18:02:48] *** mfunkie_ has quit IRC
[18:02:53] <Kallb123> resultList = something, I'll use push instead, 1 sec :)
[18:03:01] *** jk-5 is now known as jk-5|gone
[18:03:07] <Stephen> lnxmad, this implementation is way off the rails anyway, Just make it work. It should be fine
[18:03:17] <lnxmad> lol
[18:03:19] <Stephen> Kallb123, reassigning the array like that breaks binding
[18:03:44] <Kallb123> ah ok
[18:03:52] *** lordkryss has joined #angularjs
[18:04:12] <lnxmad> I think I may just send a request back to node.js
[18:04:15] <Stephen> lnxmad, The point of controlling DOM access is to prevent thrashing, you are adding to the end of the DOM, so no biggie. Data Loading /should/ be done in a service, but people come in here every day that load data in controllers. Point being, it will work just fine.
[18:04:17] <lnxmad> then send out a request
[18:04:41] <lnxmad> to avoid the cor error
[18:04:46] <Stephen> lnxmad, That would be safer. Then you could provide a backup implementation for when Yahoo cuts you off
[18:04:47] <Kallb123> Stephen, ok, pushed the items on and still blank :/
[18:05:05] <lnxmad> :)
[18:05:18] *** hswolff has quit IRC
[18:05:20] <lnxmad> trying to tak the easy way out always comes back to bite you
[18:05:24] <lnxmad> thanks for the help
[18:05:33] <Stephen> Kallb123, I'll need more code than what you've provided. Secondly, make sure you NEVER reassign the array like that after binding. Even once and it breaks from that point on in the code
[18:05:50] <Stephen> Kallb123, Thirdly, where are you pushing the data?
[18:05:51] *** peey has joined #angularjs
[18:05:57] *** klaut has joined #angularjs
[18:06:11] *** danielpquinn has joined #angularjs
[18:06:12] *** lnxmad has quit IRC
[18:06:28] <peey> What is the best way to watch an element's width?
[18:06:33] <Stephen> hmm
[18:06:42] <Stephen> lnxmad comes back, he should see https://www.npmjs.org/package/stock-data
[18:07:10] *** Sky[x] has quit IRC
[18:07:22] <Stephen> peey, Depends on your means of resizing. Are you watching it because it's a percentage, or because other things resize it?
[18:07:23] *** InezK_away is now known as InezK
[18:07:32] *** Milanito has quit IRC
[18:08:12] *** intellix has quit IRC
[18:08:18] <peey> Stephen I'm watching it because its a percentage
[18:08:24] <Stephen> peey, secondly, it's usually a horrible idea to do it at all. If you can tell us more about the larger goal to accomplish, there is likely a better way. Ive run into this exact spot many times. Rarely is a watch worth it
[18:08:56] *** intellix has joined #angularjs
[18:09:21] <peey> Stephan, I'm designing a directive that gives certain width to child elements depending on parent width, so I have to watch for changes in parent width
[18:09:27] <Kallb123> 1, I'll make a plunkr in a minute. 2. There is only the original $scope.resultList = []; the only other place it is referred to is the push. 3. in a directive in an async call. tried it inside $timeout but still nothing.
[18:09:29] <peey> Stephen*
[18:09:34] *** Tidwell has quit IRC
[18:09:57] *** Siecje has joined #angularjs
[18:10:20] *** danielpquinn has quit IRC
[18:10:45] <Stephen> peey, the best way to do what you are asking is using media queries. If you've used bootstrap before, it's like that
[18:11:18] *** jonog has quit IRC
[18:11:20] <Stephen> Provide classes which not only give percentage widths, but also ones that hide elements at the desired breakpoints
[18:11:31] *** ETBlue has joined #angularjs
[18:11:55] <Kallb123> Stephen, got to go now, but might be back on to make a plunkr later, thanks for your help so far :)
[18:12:15] *** Kallb123 has quit IRC
[18:12:23] *** jonog has joined #angularjs
[18:12:52] <wafflejock> peey: agree with Stephen here usually setting up media queries in your CSS is a cleaner way to go, if you must do it in JS your probably want https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.offsetWidth
[18:13:08] <Stephen> peey, Note that the digest cycle runs as fast as possible using requestAnimationFrame. That being the case, if you actually hard bind to the div width, it will execute every cycle, and that will get really awful quick
[18:13:25] *** jtimon has joined #angularjs
[18:13:50] *** foo-bar- has joined #angularjs
[18:13:55] *** _jpfm has joined #angularjs
[18:14:18] <peey> Stephen, do you mean that it would affect performance, just watching the offsetWidth property as wafflejock has suggested?
[18:14:37] <Stephen> peey, But yes, tElement.offsetWidth will get you there in the directive. Hell, you could put a $watch on it.
[18:15:20] <Stephen> To actually watch that property, you have to access the DOM element every time
[18:15:27] <reduce> hrm, i thought ngRepeat picked up on additions to the array it iterated over automatically...
[18:15:29] <wafflejock> peey: yeah you're more likely to run into performance problems you need to deal with if you do the changes in JS and using watchers, CSS tends to do a better job in terms of optimization for layout and animation
[18:15:34] <Stephen> Even if you cache the reference, it will hit the DOM every time
[18:15:52] *** cphil has quit IRC
[18:16:01] *** cctom has joined #angularjs
[18:16:07] <Stephen> reduce, It does, -but dont use boundArray = []
[18:16:12] <Stephen> reduce, use push()
[18:16:34] *** jonog has quit IRC
[18:16:38] <reduce> hrm, i was splicing it
[18:16:40] *** lordkryss has quit IRC
[18:16:59] *** lordkryss has joined #angularjs
[18:17:15] *** InezK is now known as InezK_away
[18:17:33] <Fistful_of_Coins> i'm getting an error : Error: [$resource:badcfg] Error in resource configuration. Expected response to contain an object but got an array
[18:18:03] <jpstone> isArray: true
[18:18:03] *** foo-bar- has quit IRC
[18:18:08] <Fistful_of_Coins> JSON_voorhees: yes
[18:18:12] <Stephen> reduce, yeah, no splice. It causes a dereference
[18:18:16] <Fistful_of_Coins> jpstone: yes *
[18:18:32] *** Tidwell has joined #angularjs
[18:19:30] *** intellix has quit IRC
[18:19:58] <jpstone> should socket.syncUpdates be used sparingly in the client?
[18:19:58] <Stephen> Angular 2 Devs and other folks: We need a new JSON parser which supports the Object.defineProperty API. writable, configurable,and enumerable properties at serialization so we can make real immutable objects
[18:20:10] <reduce> hrm, do4esnt work with push either
[18:20:12] *** marr has joined #angularjs
[18:20:13] <jpstone> or is it ok to go wild with them?
[18:20:14] <reduce> *doesnt
[18:20:15] <peey> Stephen, wafflejock, is there another non js way to do it? here's the problem in detail : I have some boxes of min-width 120px, which are inline blocks, this means that when the display width is not in multiples of 120, there's some ugly space left at right portion, what I'm currently trying to do with my directive is to fill that spaces by expanding the boxes. I think that using media queries will result in awful lot of media queri
[18:20:19] <Stephen> reduce, plunkr?
[18:20:23] *** sigurding has quit IRC
[18:20:48] <Santos> Hi, how can I add a new directive element to tab list (so you get to it by pressing the tab)
[18:21:31] *** Al` has joined #angularjs
[18:21:39] *** ChrisC_ has quit IRC
[18:21:51] <Stephen> peey, remove right margins from the elements, remove right padding from the container, make your elements 100% width
[18:22:02] *** hswolff has joined #angularjs
[18:22:05] <peey> Stephen, wafflejock : Here's a jsbin demo of what I've achieved with so far with directives : jsbin.com/puguboru/3/
[18:22:12] *** gnrlbzik has quit IRC
[18:22:16] <Stephen> peey, Use min-width
[18:22:33] *** orion1111 has quit IRC
[18:22:46] *** conner_ has joined #angularjs
[18:23:23] <peey> Stephen, I don't think I was clear enough with my explaination, this jsbin demo should help you understand better, http://www.jsbin.com/puguboru/3/edit
[18:23:43] *** kkthxbye has joined #angularjs
[18:23:50] <peey> resize the output pane and then click on the button that says "run with js"
[18:24:31] <marcospgp> anyone want to see a live rocket launch? T -00:14:00 http://www.ustream.tv/nasahdtv
[18:24:36] <Stephen> peey, Do they have to touch one another? Why not make the container "text-align: justify"?
[18:25:05] <wafflejock> peey: think I would probably solve this by figuring out how many elements should go left to right at various screen sizes then setting media queries that change the visibility (and percentage width) of a line break at various positions (after every 3 or after every 4 elements or whatever fits)
[18:25:09] *** devx101 has joined #angularjs
[18:25:23] <reduce> Stephen: theres quite a bit of code now, but from JB it looks like my changes arnt propagating to the original scope model, so ill investigate that
[18:25:47] <Santos> marcospgp, thanks man :)
[18:25:49] *** Bade has joined #angularjs
[18:25:53] <wafflejock> peey: generally I just try to stick with supporting the same media queries as bootstrap for phone/tablet/desktop
[18:25:55] *** bphogan is now known as bphogan_afk
[18:26:26] <peey> wafflejock, that's one good option that requires lot of media queries :D
[18:26:31] <marcospgp> Santos, np
[18:26:41] <wafflejock> peey: yeah it depends on what screen sizes you expect to support
[18:27:03] *** conner_ has quit IRC
[18:27:07] <wafflejock> peey: I generally just try to have 3 major views like I said 1 for phones 1 for tablets 1 for other big screens
[18:27:13] <peey> Stephen, they do have to touch one another, can't waste space,
[18:27:14] *** H1FuelCell has joined #angularjs
[18:27:15] *** kkthxbye has quit IRC
[18:27:24] *** mfunkie_ has joined #angularjs
[18:27:28] *** mreis1 has quit IRC
[18:27:31] *** kkthxbye has joined #angularjs
[18:27:35] *** Rebirth has quit IRC
[18:27:37] <peey> Stephen, wafflejock : I'm building for mobile devices, so gotta use every bit of screen size available
[18:27:39] *** bayousoft has quit IRC
[18:27:50] *** tomzx`afk is now known as tomzx
[18:27:51] <Stephen> peey: You won't waste space. using text-align: justify just evens them out across a line.
[18:27:57] <Al`> can anyone see where I'm going wrong here? http://plnkr.co/edit/CycUyrxHl6SH7f0FNm5B?p=preview
[18:28:08] <Stephen> peey, If there is no spare space, they will be against one another
[18:28:08] <Al`> my promise seems to be working
[18:28:18] <Al`> but within cookDinner() angular.forEach doesn't seem to be firing?
[18:29:02] <peey> Stephen, but they won't touch one another, that'd mean that space between the boxes would be wasted, isn't it?
[18:29:07] *** arabot has joined #angularjs
[18:29:08] *** Rplus has joined #angularjs
[18:29:26] *** arabot has left #angularjs
[18:29:29] *** J0514H has joined #angularjs
[18:29:56] <wafflejock> Al`: you're calling cookDinner before the array is populated http://plnkr.co/edit/JLuqtM4vziXXiZbKzx1C?p=preview
[18:30:16] <peey> Okay, I think instead of watching the parent width, what I should do instead is execute my resize code on window resize, and once when things initially load
[18:30:35] *** Bade has quit IRC
[18:30:39] *** lotus has joined #angularjs
[18:31:16] <peey> That way it remains dynamic, and doesn't affect performance, much. Correct?
[18:31:17] <wafflejock> peey: yeah just to be aware when someone resizes the window by dragging the edge you're going to get a ton of resize events so you probably want to _.throttle or something similar
[18:31:36] <Al`> ahhhh thanks waffle! so all I had to do was put the resolve in the timeout?
[18:31:37] *** kkthxbye has quit IRC
[18:31:39] <peey> wafflejock : what's _.throttle?
[18:31:41] <wafflejock> Al`: yup
[18:31:47] *** scmx has quit IRC
[18:31:48] <Al`> awesome, thank you
[18:32:02] <wafflejock> peey: http://lodash.com/docs#throttle
[18:32:04] <wafflejock> Al`: np
[18:32:22] <Stephen> Al`, http://plnkr.co/edit/hsT0Xyhhkwz0AZPsXUiG
[18:32:23] <Stephen> Fixed
[18:32:28] *** Xethron has quit IRC
[18:32:42] <Al`> oh, thanks stephen
[18:32:45] <Al`> seems waffle beat you to it ;-)
[18:32:47] <wafflejock> peey: or maybe http://lodash.com/docs#debounce is more appropriate I'm not a huge lodash user
[18:33:01] <Al`> but ty for your help
[18:33:08] *** snurfery has joined #angularjs
[18:33:31] <Stephen> Al` spent so long on that screen, i hadn't notice wafflejock answered
[18:33:33] <peey> wafflejock: what's the purpose of throttle? I mean, why did you tell me that I would want to throttle?
[18:33:34] <Stephen> my bad
[18:34:10] <wafflejock> peey: well it should make it so the resize handler doesn't get called 100 times when the width of the window has changed by 100 pixels
[18:34:14] <Stephen> peey, Repeatedly hitting the DOM (therefore causing reflow repeatedly) kills performance
[18:34:16] <wafflejock> peey: that's the idea
[18:34:20] <Stephen> You're not just reading a number
[18:34:36] <Stephen> The browser actually looks up the element and calcs that number every time
[18:34:38] <peey> wafflejock: now I understand
[18:35:14] <peey> Stephen, got it, while drag-resizing it'd probably send many many resize events
[18:36:39] <peey> I'll go work on the window resize implementation for my problem now. Thanks for all the help wafflejock and Stephen!
[18:36:50] <wafflejock> peey: yup good luck let us know how it goes
[18:36:54] *** bayousoft has joined #angularjs
[18:36:59] *** davemerwin has quit IRC
[18:37:11] *** bphogan_afk is now known as bphogan
[18:37:33] *** davemerwin has joined #angularjs
[18:37:36] <Stephen> peey, If you're going this route, read this:
[18:37:37] <Stephen> http://stackoverflow.com/questions/10868104/can-you-have-a-javascript-hook-trigger-after-a-dom-elements-style-object-change
[18:37:50] <Stephen> The best implementation is using an API called MutationObservers
[18:38:18] <Stephen> (I held out as long as possible on that one)
[18:38:34] <wafflejock> hah yeah well that has limited support still though right Stephen?
[18:39:26] <peey> I hate it when something awesome is not supported in majority of browsers. caniuse.com/mutationobserver
[18:39:31] <wafflejock> ah guess it's more widespread than I thought still IE problems though (no suprise there) http://caniuse.com/#search=MutationObserver
[18:39:47] <reduce> JB isnt accurate damnit
[18:40:03] <wafflejock> reduce: you referring to JSBin?
[18:40:17] <reduce> no, that chrome plugin
[18:40:27] <wafflejock> I watch a lot of Jupiter Broadcasting junk so I see JB and think jupiter broadcasting
[18:40:30] <wafflejock> ah okay
[18:40:58] <peey> * I said majority since I only saw the android browser column. I'm cool with firefox and chrome support though.
[18:41:02] *** Sky[x] has joined #angularjs
[18:41:16] *** s3shs has quit IRC
[18:41:17] <reduce> sorry, looking at the wrong icon, JB is for jetbrains webstorm lol, i meant Batarang
[18:41:38] *** davemerwin has quit IRC
[18:41:43] *** Rebirth has joined #angularjs
[18:41:54] <wafflejock> reduce: ah okay yeah so what's the inconsisency in Batarang? also have you seen ng-inspector if not it might be worth grabbing too
[18:42:12] <reduce> batarang shows that for scope 003 the model has old values while it shows the scopes below it having updated values
[18:42:13] *** intellix has joined #angularjs
[18:42:38] <wafflejock> reduce: I think when you select an element in the elements panel it grabs info at that point
[18:42:45] <reduce> yet when i put expressions on my page in the controller that scope 003 refers to it prints the new values
[18:43:00] *** tigrang has joined #angularjs
[18:43:04] *** peey has left #angularjs
[18:43:47] <reduce> wafflejock: it dynamically updates the more nested scopes as i change values
[18:44:34] <wafflejock> reduce: sounds strange I don't think I've seen that behavior but yeah grab the nginspector plugin it's a nice alternative to batarang for seeing which elements create which scopes and what functions and models they expose
[18:45:06] <wafflejock> guy rev087 in the chat here developed it for safari initially but made it a chrome plugin too
[18:45:47] *** da_wunde1 has joined #angularjs
[18:46:03] <wafflejock> ng inspector kind of takes the opposite approach from Batarang it lets you view the entire scope hierarchy and floating over the various scopes highlights the element in the DOM the scope applies to
[18:46:38] *** Sengoku has quit IRC
[18:47:18] *** pluma_ has quit IRC
[18:47:18] *** da_wunder has quit IRC
[18:47:32] *** kirfu has quit IRC
[18:47:38] *** dutis has quit IRC
[18:48:06] *** Bade has joined #angularjs
[18:48:55] *** dshoreman has quit IRC
[18:49:51] <wafflejock> use the little arrows on the left of a model to expand it to see elements in an array or object, double click and other things doesn't seem to do it for me
[18:49:57] *** disorder20 has joined #angularjs
[18:50:23] *** djam90 has quit IRC
[18:51:09] <reduce> yea ng inspect is pretty cool
[18:51:48] <wafflejock> yeah apparently I helped him build it but just answer questions no hands on
[18:51:55] <wafflejock> answered*
[18:52:09] *** mven has quit IRC
[18:52:34] *** kalehv has quit IRC
[18:52:44] *** mven has joined #angularjs
[18:52:58] *** Alina-emergency has quit IRC
[18:53:19] *** kalehv has joined #angularjs
[18:53:21] *** gnrlbzik has joined #angularjs
[18:55:52] *** bmcgee has quit IRC
[18:56:07] *** mattt_ has joined #angularjs
[18:56:20] *** VictorBjelkholm has quit IRC
[18:56:30] *** [n0b0dy] has quit IRC
[18:56:40] *** [n0b0dy] has joined #angularjs
[18:56:46] *** bmcgee has joined #angularjs
[18:57:32] *** kalehv has quit IRC
[18:57:35] *** flocca-bis has joined #angularjs
[18:57:38] *** gnrlbzik has quit IRC
[18:57:51] *** OnkelTem has quit IRC
[18:57:51] *** CmdrTallen_ has joined #angularjs
[18:58:00] *** Alina-emergency has joined #angularjs
[18:58:06] <wafflejock> haha just listening to a Node podcast guy was just talking about gateway drugs (referring to using grunt/gulp getting people into Node) but kept saying getaway drugs
[18:58:17] *** VictorBjelkholm has joined #angularjs
[18:58:23] *** cigarshark has quit IRC
[18:58:30] *** Alina-emergency has quit IRC
[18:58:38] *** flocca has quit IRC
[18:59:12] *** OnkelTem has joined #angularjs
[18:59:17] <reduce> so it didnt work with a push to the array, but did work when i called scope.$apply() afterward
[18:59:31] *** daniele9821 has joined #angularjs
[18:59:33] *** Alina-emergency has joined #angularjs
[18:59:35] <wafflejock> reduce: what's the context you're pushing elements into an array?
[18:59:40] <reduce> im also able to back to using splice with a call to that
[18:59:52] <wafflejock> yeah splice should modify the original array
[18:59:55] *** Alina-emergency has quit IRC
[18:59:55] <wafflejock> I think slice returns a new one
[19:00:04] <wafflejock> I have to look it up every time
[19:00:25] *** bmcgee has quit IRC
[19:00:48] *** conner_ has joined #angularjs
[19:00:56] *** sneakertack has quit IRC
[19:01:00] <wafflejock> reduce: are you modifying the array in response to some third party thing not done in ng-click or $http or $timeout or some other angular built-in that calls $apply for you to trigger a $digest and update all the $watchers
[19:01:08] *** Bade has quit IRC
[19:01:11] *** CmdrTallen has quit IRC
[19:01:17] <oniijin> wrap non ng async stuff in $apply
[19:01:18] <daniele9821> hello all. I've wirte an angular application with requirejs now i want try to do same tests with karma+jasmine+require i've setup i follow this guide: http://karma-runner.github.io/0.8/plus/RequireJS.html now i don't know to load a simple test file...sameone can help me?
[19:01:24] <reduce> wafflejock: i have a callback that when the user drags a tool from the toolbox and drops it (via jquery droppable) on the existing list, my code adds an element to the array
[19:01:28] *** Alina-emergency has joined #angularjs
[19:01:33] <wafflejock> reduce: k then this makes sense
[19:01:34] <oniijin> yeah
[19:01:37] <oniijin> wrap it
[19:01:40] *** flocca-bis has quit IRC
[19:01:43] <oniijin> dont be a fool, wrap your tool
[19:01:46] <wafflejock> haha
[19:01:58] <wafflejock> sound advice all around
[19:02:27] <daniele9821> the guide don't say how to load the test files
[19:02:36] <daniele9821> : Using Require.js in tests
[19:02:49] <daniele9821> show a test file but not say how i can load
[19:02:53] *** Aerospark has joined #angularjs
[19:02:54] <reduce> oniijin: you mean i should create another directive to wrap the draggable / droppable functionality?
[19:02:56] *** xjiujiu has quit IRC
[19:03:21] <oniijin> no im saying you need to wrap your non ng callbacks in apply
[19:03:27] <reduce> ok cool
[19:03:35] <wafflejock> reduce: nope you can wrap the function call in $scope.$apply() to have angular wrap it up to handle errors
[19:03:55] <wafflejock> reduce: if you just call $scope.$apply() afterwards angular won't catch the error
[19:03:56] <oniijin> wrap your tool should be #2 after MOAR DOTS
[19:04:01] <wafflejock> indeed
[19:04:10] *** slainer68 has quit IRC
[19:04:13] *** SpearThruster has quit IRC
[19:04:23] <daniele9821> a good torial is appreciated or what i wrong
[19:04:24] <reduce> ahhh, i was being slow, but i see what you mean now
[19:04:57] *** DrMabuse_ has joined #angularjs
[19:05:06] <wafflejock> oniijin: just gotta come up with a third law and can make the Angular in 3 steps site
[19:05:13] *** bkuberek has quit IRC
[19:05:14] *** jk-5|gone is now known as jk-5
[19:05:18] <daniele9821> I launch this: /usr/local/lib/node_modules/karma/bin/karma start karma.config.js but it says Executed 0 of 0 ERROR because i don't know how to load the test
[19:05:39] <wafflejock> daniele9821: have you checked out the yo angular project using yeoman
[19:05:46] <wafflejock> daniele9821: it can be a helpeful starting point
[19:05:54] <wafflejock> then you just need to figure out the Require.js portion
[19:06:13] <wafflejock> not saying you need to use it as the base of your project but good to just check it out to see how it's configured
[19:06:13] *** pheze has joined #angularjs
[19:06:25] <oniijin> hmm
[19:06:57] *** danielpquinn has joined #angularjs
[19:07:10] <oniijin> maybe something about data not dom
[19:07:16] <wafflejock> yeah
[19:07:20] *** JimTheDev has quit IRC
[19:07:22] <daniele9821> wafflejock: no whitouth yeomen...the problem is that i've finished my project so to restart all is a problem....what mean "configure Require.js portion"? when i launch the test it say 0/0 error
[19:07:24] <wafflejock> that does come up a lot
[19:07:28] <oniijin> i cant think of any penis jokes to go with that
[19:07:38] <oniijin> well coming up a lot for sure
[19:07:44] <reduce> the last time i used angular it was slow progress, but today im pretty pleased with the progress being made :)
[19:07:49] *** DrMabuse has quit IRC
[19:08:08] * reduce slow becomes won over
[19:08:13] <reduce> *slowly
[19:08:29] *** InezK_away is now known as InezK
[19:08:33] <wafflejock> reduce: yeah it's this -> http://www.bennadel.com/blog/2439-my-experience-with-angularjs-the-super-heroic-javascript-mvw-framework.htm
[19:08:46] <wafflejock> roller coaster
[19:08:47] <daniele9821> ok wafflejock but i think that the only problem that i've is that i don't know to load my test
[19:09:15] <wafflejock> daniele9821: right just saying the grunt task grunt test in the yo angular project has the test config setup to run a test
[19:09:48] *** bayousoft has quit IRC
[19:10:00] <daniele9821> i try to see yeoman. uff!!!!
[19:10:01] *** mnewton has joined #angularjs
[19:10:14] *** sdouglas has joined #angularjs
[19:10:45] *** waylon999 has joined #angularjs
[19:10:50] <reduce> wafflejock: it is!
[19:11:00] <wafflejock> daniele9821: basically you need a karma.conf.js that tells karma how to set itself up (like use PhantomJS, load these JS files in the browser first etc., here's a sample one) http://paste.ubuntu.com/7790026/
[19:11:21] *** bkuberek has joined #angularjs
[19:11:34] *** danielpquinn has quit IRC
[19:11:34] <daniele9821> wafflejock: i've it!
[19:11:47] *** rjuyal has joined #angularjs
[19:12:23] <wafflejock> daniele9821: k then a test file would look like http://paste.ubuntu.com/7790030/
[19:12:24] *** jonog has joined #angularjs
[19:13:01] *** bphogan is now known as bphogan_afk
[19:13:42] <daniele9821> wafflejock: so i've configured all launched this command: karma init
[19:13:46] <Cixis> heh, mvw
[19:13:47] *** kji has quit IRC
[19:13:55] <wafflejock> yeah whateves
[19:14:10] <Cixis> can we all just agree to call it MVC and stop trying to figure out new acronyms to described, specifically, how you can model things?
[19:14:26] <wafflejock> Cixis: well I think that's the idea with MVW
[19:14:39] <wafflejock> it's MVVP or MVC or Whatever
[19:14:49] <daniele9821> wafflejock: it create a file called karma.config.js
[19:14:57] <daniele9821> wafflejock: i paste it...one second
[19:15:25] *** bsmithgall has quit IRC
[19:15:47] <daniele9821> wafflejock: http://paste.ubuntu.com/7790041/ ---> every path is ok
[19:15:51] *** bsmithgall has joined #angularjs
[19:15:59] *** michaelm has joined #angularjs
[19:17:01] <daniele9821> wafflejock: now the problem is that the guide don't say how i can test it: http://paste.ubuntu.com/7790050/
[19:17:05] *** fold has quit IRC
[19:17:23] *** jonog has quit IRC
[19:17:37] *** greatdex has joined #angularjs
[19:18:02] *** InezK is now known as InezK_away
[19:18:13] *** rjuyal has quit IRC
[19:18:14] *** lenswipe has joined #angularjs
[19:18:15] *** lenswipe has joined #angularjs
[19:18:49] *** Jae has quit IRC
[19:19:26] <wafflejock> daniele9821: alright I'm certainly no test expert so I can guess with you but someone is going to have to tell me if I say something wrong.... but my understanding is describe() is used to have a set of test grouped together under some name essentially, you use beforeEach to define things that need to be done before each test is run then you use "it" to write your actual test code
[19:19:49] <wafflejock> http://paste.ubuntu.com/7790030/
[19:19:55] <wafflejock> if you have no "it" sections then you have no tests
[19:19:58] *** bsmithgall has quit IRC
[19:20:13] *** conner_ has quit IRC
[19:20:49] <daniele9821> ok wafflejock but my question is: "where in the config file:karma.config.js say to load the file that contain your test?"
[19:21:38] *** intellix has quit IRC
[19:21:57] <wafflejock> daniele9821: the file that contains the test is just listed in the files
[19:22:04] <wafflejock> the files property of the config that is
[19:22:06] *** Milanito has joined #angularjs
[19:22:33] <daniele9821> wafflejock: sorry i don't understand this
[19:22:50] <wafflejock> line 28 here http://paste.ubuntu.com/7790026/
[19:22:54] <wafflejock> that's the path to where the test file is
[19:23:27] <daniele9821> ah ok
[19:23:29] <wafflejock> sorry it's hard to talk about this since the same words are re-used so much in regular language, describe, it, files
[19:23:33] <daniele9821> i try to add it
[19:25:25] *** cphil has joined #angularjs
[19:26:06] *** da_wunde1 is now known as da_wunder
[19:26:45] *** ChanServ sets mode: +o Foxandxss
[19:27:06] *** Foxandxss changes topic to "http://angularjs.org/ | Docs: http://docs.angularjs.org/ | Latest release: 1.2.20 / 1.3.0-beta.15 | Be respectful! Code Of Conduct: http://goo.gl/m7MHxk | Paste your code here: http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs9bB0f | The channel is being logged at: http://goo.gl/8Wwttq | Be polite! ( *❛‿❛)/˚°◦🐙"
[19:27:35] *** J0514H has quit IRC
[19:27:45] *** Fishy has quit IRC
[19:28:05] *** lenswipe has left #angularjs
[19:28:11] *** mennea has joined #angularjs
[19:28:29] <daniele9821> wafflejock: ok loaded (i'm sure that he load it because if i change path it show a warn) now the problem is that it not show me any error
[19:29:11] *** shinnya has joined #angularjs
[19:29:16] *** waylon999 has quit IRC
[19:31:13] *** tfennelly has joined #angularjs
[19:31:25] *** intellix has joined #angularjs
[19:32:00] *** fold has joined #angularjs
[19:32:16] <wafflejock> daniele9821: can you pastebin your console output?
[19:33:12] *** bphogan_afk is now known as bphogan
[19:33:44] <daniele9821> wafflejock: http://paste.ubuntu.com/7790122/
[19:34:40] <wafflejock> daniele9821: try to switch singleRun to true
[19:34:46] <wafflejock> in the karma conf
[19:34:47] *** InezK_away is now known as InezK
[19:34:54] <wafflejock> daniele9821: I assume it's just hanging after the lines you pasted?
[19:36:30] *** in_deep_thought has joined #angularjs
[19:36:56] <daniele9821> wafflejock: same result http://paste.ubuntu.com/7790136/ (config file with: singlerun:true and 'prova.js' (file with test))
[19:36:58] *** cedricziel has joined #angularjs
[19:37:21] <wafflejock> daniele9821: here's some other points about if Karma hangs http://stackoverflow.com/questions/16304145/angular-karma-runner-hangs-indefinitely
[19:37:27] *** bmcgee has joined #angularjs
[19:38:45] *** morenoh149 has joined #angularjs
[19:38:45] <daniele9821> wafflejock: i've installed with -g command....but chrome is open until i close with ^C) the problem is that i don't see the result of test
[19:39:04] <wafflejock> http://stackoverflow.com/questions/22881133/karma-hangs-at-karma-starting
[19:39:10] *** in_deep_thought has quit IRC
[19:40:11] *** VictorBjelkholm has quit IRC
[19:40:39] *** Limix has joined #angularjs
[19:41:00] *** michaelm has quit IRC
[19:41:06] *** ziyadb has joined #angularjs
[19:41:07] <daniele9821> wafflejock: http://paste.ubuntu.com/7790155/
[19:41:12] *** bsmithgall has joined #angularjs
[19:41:15] *** anjumkaiser has quit IRC
[19:41:32] <house> I am new to Angular and am struggling a little bit with something. Perhaps someone here can help me. Here is the situation, I have written the following code:
[19:41:32] <house> http://pastie.org/9385723
[19:41:32] <house> I find that I am unable to PUT because angular is trying to hit
[19:41:32] <house> http://localhost:8080/api/support/message
[19:41:32] <house> instead of
[19:41:33] <house> http://localhost:8080/api/support/message/:id
[19:41:35] <house> What am I doing wrong?
[19:41:47] <house> I am able to POST and DELETE
[19:41:58] <house> (and GET)
[19:42:10] *** schonert has joined #angularjs
[19:43:36] *** morenoh149 has quit IRC
[19:44:22] *** bayousoft has joined #angularjs
[19:44:30] <wafflejock> daniele9821: not sure what else to tell ya, try just grabbing yo angular and running grunt test to see if something that is already configured to work does
[19:44:45] *** Stephen has quit IRC
[19:45:02] *** bphogan is now known as bphogan_afk
[19:45:24] *** mfunkie_ has quit IRC
[19:45:51] *** deepa has quit IRC
[19:45:51] *** deepa has joined #angularjs
[19:45:54] <daniele9821> wafflejock: i try with yeoman
[19:46:11] *** bsmithgall has quit IRC
[19:46:23] <wafflejock> house: are you sure $scope.contactMessage has an id property when you call to update?
[19:46:58] *** bphogan_afk is now known as bphogan
[19:47:20] <wafflejock> house: http://stackoverflow.com/questions/20205752/angularjs-resource-put-method-is-not-getting-the-id
[19:47:28] <house> wafflejock, when I hit the details view, here is what is populated in my dom:
[19:47:29] <house> contactMessage:
[19:47:29] <house> [ {
[19:47:29] <house> supportMessageId: 41
[19:47:29] <house> fullname: test 15
[19:47:29] <house> email: tip
[19:47:30] <house> reason: tip
[19:47:32] <house> message: tip
[19:47:34] <house> createdOn: 1405254078000
[19:47:34] *** Al` has quit IRC
[19:47:36] <house> } ]
[19:48:01] <wafflejock> house: k when pasting multi-line stuff good to use pastebin or paste.ubuntu.com or something
[19:48:05] <house> sorry
[19:48:15] <wafflejock> house: see the previous link though think it's pertinent to your problem
[19:48:25] <house> checking.
[19:48:38] *** bayousoft has quit IRC
[19:49:15] <wafflejock> also based on what you pasted here I think you might actually want to be using @supportMessageId instead of @id but not positive
[19:49:43] <house> yeah.. ive been trying to figure that out.. i was trying to keep it all 'id' in angular and then use the
[19:49:46] <house> api side variables
[19:49:57] <house> on the server side
[19:50:12] <house> if possible. but ive been a little confused on this point.
[19:50:58] <house> but, to your point, i so have supportMessageId in ngModel
[19:51:03] <house> *do have..
[19:51:09] <wafflejock> house: yeah honestly it's been a matter of guess and check the network tab when setting up $resource things that are non-standard for me but for the most part I've just crafted my API to play nice with what angular seems to expect
[19:51:51] *** m3l720 has joined #angularjs
[19:52:07] <house> in the statement with
[19:52:14] <house> update: { method: 'PUT', params: {id: '@supportMessageId'} },
[19:52:26] <house> we are assigning what to what.. when we use @
[19:52:39] <house> the path parameter
[19:52:43] *** Ir1sh has quit IRC
[19:52:43] <house> :id
[19:52:47] *** jbourassa has quit IRC
[19:52:53] <house> to @supportMessageId'
[19:52:53] <house> ?
[19:52:54] <wafflejock> I believe we're telling it set the id in the path parameter equal to the some property of the object passed in
[19:53:30] <house> seems right.. ok.. trying that.. lets see what happens..
[19:53:36] *** bayousoft has joined #angularjs
[19:53:39] <wafflejock> sorry this is one of those things I just got working and then copy pasted so it's not all fresh... I've got a couple of things to do here too but will bounce back in the chat in a bit
[19:54:07] <house> k. yeah.. i feel like once i have this worted out
[19:54:07] *** gnrlbzik has joined #angularjs
[19:54:14] <house> ill just keep using the same pattern over and over
[19:54:17] <wafflejock> right
[19:54:24] *** VictorBjelkholm has joined #angularjs
[19:54:45] *** anjumkaiser has joined #angularjs
[19:54:48] *** disorder20 has quit IRC
[19:55:26] <house> maybe it would be easier to use my api variables on both sides.. just @supportMessageId (for example) everywhere
[19:55:33] *** jordandotdev has quit IRC
[19:57:05] *** bmac has joined #angularjs
[19:57:08] <house> grr.. still, angular wants to hit http://localhost:8080/api/support/message instead of http://localhost:8080/api/support/message/:id
[19:57:31] *** daniele9821 has quit IRC
[19:58:31] *** jpstone has quit IRC
[19:58:59] *** avree has joined #angularjs
[19:59:00] *** gnrlbzik has quit IRC
[20:00:56] *** anjumkaiser has quit IRC
[20:01:33] *** mehlah has quit IRC
[20:03:29] <sacho_> test case?
[20:03:58] *** rkalfane has quit IRC
[20:06:27] *** Ir1sh has joined #angularjs
[20:06:32] <sacho_> house, the second parameter is "default otpions" for the resource
[20:06:50] <sacho_> the @ specifies that it's not just a static value, but should be fetched from the data object
[20:07:00] <house> i see.
[20:07:14] <house> so in the case where I have supportMessageId in my dom
[20:07:22] <house> and I want to pass that in my put
[20:07:25] <house> i should use
[20:07:39] <house> update: { method: 'PUT', params: {supportMessageId: '@supportMessageId'} },
[20:07:40] <house> ?
[20:07:42] *** danielpquinn has joined #angularjs
[20:08:34] *** Nizumzen has quit IRC
[20:08:41] *** conner_ has joined #angularjs
[20:08:50] <house> which is what I am trying now.. but i am still get the problem where angular wants to send the PUT to
[20:08:51] <house> http://localhost:8080/api/support/message
[20:08:54] <house> instead of
[20:09:02] <house> http://localhost:8080/api/support/message/:supportMessageId
[20:09:13] *** InezK is now known as InezK_away
[20:09:27] *** mattt_ has quit IRC
[20:10:46] *** pheze has quit IRC
[20:10:51] *** rkalfane has joined #angularjs
[20:11:35] *** mehlah has joined #angularjs
[20:11:44] *** pheze has joined #angularjs
[20:11:57] *** Evanion has joined #angularjs
[20:12:31] <sacho_> are you passing a data object
[20:12:32] *** danielpquinn has quit IRC
[20:13:01] *** moritzs has quit IRC
[20:13:14] *** jbourassa has joined #angularjs
[20:13:27] <sacho_> and does that data object have a supportMessageId
[20:13:27] <testerde> what is the difference between "normal" and "isolated" scope in directives?
[20:13:28] *** rkalfane has quit IRC
[20:13:32] <testerde> and why should I need the one or the other?
[20:13:44] *** Willow has quit IRC
[20:14:13] *** Willow has joined #angularjs
[20:14:16] <house> sacho_, here is my code
[20:14:17] <house> http://pastie.org/9385723
[20:14:23] <sacho_> testerde, the difference is in the inheritance chain
[20:14:38] *** dcadenas has quit IRC
[20:14:45] *** foo-bar- has joined #angularjs
[20:14:51] *** rkalfane has joined #angularjs
[20:15:05] <house> from the messages.html listing, on click of the edit button i am passing the supportMessageId
[20:15:06] *** nemothekid has joined #angularjs
[20:15:25] <house> into the controller, so it will list correct record into the dom.
[20:15:31] <Evanion> Anyone have experience with ui-router? I keep getting the following error: Could not resolve 'jobseeker.profiles' from state 'home' … state(‘jobseeker’) is an abstract view only there for URI and navigation ‘active’ marking ‘home’ is a sister state to ‘jobseeker’
[20:15:32] *** jbinto has quit IRC
[20:15:44] <sacho_> house, you're not passing the parameter you expect to updateSupprotMessage or whatever it was
[20:15:49] *** pheze has quit IRC
[20:15:56] <sacho_> <a ng-click="updateContactMessage()"> <-- no parameter
[20:16:10] <house> checking..
[20:17:23] *** jbinto has joined #angularjs
[20:17:33] <testerde> sacho_: so if I get isolated scope, i cannot access $parent? but $scope.localvar is always the local variable from the "deepest" scope? or is it the variable from the highest (root) scope?
[20:17:37] *** dcadenas has joined #angularjs
[20:17:48] *** charuru has joined #angularjs
[20:17:57] <sacho_> testerde, do you know how prototype chains work in js?
[20:18:13] <sacho_> $scope.var is resolved by first looking on $scope, then its parent, and so on
[20:18:21] <testerde> sacho_: ah alright
[20:18:28] <testerde> sacho_: thanks
[20:18:30] <sacho_> so, an isolate scope doesn't have a parent
[20:18:43] <sacho_> "by design" the intention is to be able to "isolate" a directive - think a reusable component
[20:18:51] *** Willow has quit IRC
[20:19:12] *** ajk27 has quit IRC
[20:19:14] *** ninsei has quit IRC
[20:19:16] <sacho_> the problem is, a lot of people use them just because it allows an easy way to bind to data in the parent
[20:19:25] *** foo-bar- has quit IRC
[20:19:25] *** cphil has quit IRC
[20:19:40] <sacho_> (the '=', '@', and '&' syntax)
[20:19:45] *** dancrew32 has joined #angularjs
[20:19:45] <sacho_> so you won't see scope:true used often
[20:20:00] *** dancrew32 has left #angularjs
[20:20:35] <RomainTr> http://plnkr.co/edit/0clqXOaWvMHkFhXIgJQ9?p=preview Is there a more elegant way to access the controller from the directive?
[20:20:56] *** steffengy has joined #angularjs
[20:20:58] *** ajk27 has joined #angularjs
[20:21:01] *** gnarMatix has quit IRC
[20:21:39] <RomainTr> (i believe it's somehow related to what sacho_ is saying)
[20:22:18] *** ninsei has joined #angularjs
[20:22:56] *** Sky[x] has quit IRC
[20:23:29] *** Ir1sh has quit IRC
[20:23:34] *** steffengy1 has quit IRC
[20:24:12] *** conner_ has quit IRC
[20:24:28] *** SpearThruster has joined #angularjs
[20:24:38] *** jonog has joined #angularjs
[20:25:13] *** splintercode has joined #angularjs
[20:25:38] *** mokush has joined #angularjs
[20:26:58] *** cigarshark has joined #angularjs
[20:27:05] *** gnarMatix has joined #angularjs
[20:27:39] *** hecatonicosachor has joined #angularjs
[20:27:47] *** lite_ has quit IRC
[20:27:57] *** InezK_away is now known as InezK
[20:27:58] <hecatonicosachor> RomainTr, you're not "supposed" to be able to access the parent scope from an isolate one :)
[20:28:10] <house> sacho_, i am now trying to pass supportMessageId as follows:
[20:28:10] <house> <a ng-click="updateContactMessage(contactMessage.supportMessageId)">update</a> |
[20:28:45] *** ASUChander has quit IRC
[20:28:49] <RomainTr> hecatonicosachor: Yes it's why i feel wrong. Do you have advices about how to refactor my little spinner thing?
[20:29:03] <house> which hits this code in the controller:
[20:29:03] <house> $scope.updateContactMessage = function (supportMessageId) {
[20:29:03] <house> ContactMessageFactory.update({supportMessageId: supportMessageId});
[20:29:16] *** splintercode has quit IRC
[20:29:20] *** jonog has quit IRC
[20:29:30] <house> so supportMessageId gets passed in
[20:29:43] <testerde> sacho_: so (for me dumb newbie) how should i create a directive that is recursive and needs access to the parent scope in each depth?
[20:29:48] <house> but the update method of the resource factory
[20:30:24] <house> still tries to send the PUT to http://localhost:8080/api/support/message
[20:30:26] <house> rather then
[20:30:27] <house> http://localhost:8080/api/support/message/:supportMessageId
[20:30:31] <house> and so I get a 405
[20:31:11] *** sacho_ has quit IRC
[20:31:27] *** bmcgee has quit IRC
[20:31:30] *** greg5green has quit IRC
[20:31:57] *** greg5green has joined #angularjs
[20:31:57] *** greg5green has joined #angularjs
[20:32:09] <tigrang> does ng-model only work if you provide ng-options for a <select> tag?
[20:33:02] <hecatonicosachor> btw you dont need two services
[20:33:39] *** holymac has joined #angularjs
[20:33:46] <hecatonicosachor> .query() would return all, .get() returns a particular
[20:33:51] *** LuxuryMode has joined #angularjs
[20:34:22] <hecatonicosachor> house, try making a test case on plunker
[20:34:31] *** bayousoft has quit IRC
[20:34:38] <house> hmm
[20:34:51] <house> i did just notice that query is returning all
[20:35:10] *** tfennelly has quit IRC
[20:35:18] <house> yeah. .ill try a plnkr
[20:35:21] <house> thank you.
[20:35:44] <house> (for your willingness to take a look at a plnkr)
[20:36:04] *** Aerospark has quit IRC
[20:36:18] <LuxuryMode> General question: if I use twitter/FB/google+ for single sign-on, what username do i store on my servers? Do I just use first name of the person? If so, how can I ensure it doesn't clash with other usernames in my DB?
[20:36:56] <house> auth from pair username and email
[20:37:03] *** dcadenas has quit IRC
[20:37:27] <house> email should guarantee uniqueness
[20:37:42] <hecatonicosachor> house, tbh, plunkr is the best way to showcase an issue
[20:38:05] <house> yeah.. i was trying to setup a plnkr but it was a lot of moving parts and i couldnt make it work.
[20:38:08] *** davemerwin has joined #angularjs
[20:38:16] <house> ill setup a static resultsset
[20:38:17] <hecatonicosachor> making a working test case of your problem tends to solve the problem on its own 50% of the time(you notice the mistake as you make it), and the rest of the time, it's much easier for someone to poke at it
[20:38:30] <house> yep.. ill build it.
[20:38:34] <hecatonicosachor> yeah, you don't need working resource urls though, for your problem
[20:38:43] *** Illianthe3 has quit IRC
[20:39:15] <RomainTr> hecatonicosachor: I'm pretty sure I found out my solution! http://plnkr.co/edit/0clqXOaWvMHkFhXIgJQ9?p=preview :)
[20:39:19] *** lordjancso has quit IRC
[20:39:23] <RomainTr> Using scope with '='
[20:39:35] <RomainTr> And just passing my "parent" object as attribute
[20:39:48] *** hecatonicosachor is now known as sacho
[20:39:53] *** Illianthe3 has joined #angularjs
[20:40:09] <sacho> = binds to the parent scope
[20:40:12] <sacho> you don't even need an attribute
[20:40:32] *** arizzo has joined #angularjs
[20:40:39] *** dcadenas has joined #angularjs
[20:40:47] *** terrykfwong has quit IRC
[20:41:04] *** dutis has joined #angularjs
[20:41:19] *** vintik has joined #angularjs
[20:42:07] *** slainer68 has joined #angularjs
[20:42:15] <RomainTr> If I don't set the attribute I get "Cannot read property 'remainingPoints' of undefined" in the addPoint method :(
[20:42:34] *** davemerwin has quit IRC
[20:43:42] *** morenoh149 has joined #angularjs
[20:43:47] <sacho> huh
[20:44:14] <sacho> what does @builder mean in coffee
[20:44:28] <RomainTr> this.builder
[20:45:21] * sacho wonders why this.attribute works
[20:45:38] *** Siecje has quit IRC
[20:45:40] *** ppppaul has quit IRC
[20:45:51] <testerde> can anyone tell me why I can't access $parent here?
[20:45:51] <testerde> http://jsbin.com/rifohegu/1/
[20:46:09] *** Aerospark has joined #angularjs
[20:46:32] <testerde> oh, better url with editing: http://jsbin.com/rifohegu/1/edit?html,js,output
[20:47:11] *** elxa has quit IRC
[20:47:33] *** cctom has quit IRC
[20:47:35] *** chrisbirk has quit IRC
[20:47:56] <zelrik> testerde, try to not use $parent
[20:48:03] <zelrik> there is very little use for it
[20:48:25] <testerde> but I need it somehow...
[20:48:26] *** in_deep_thought has joined #angularjs
[20:48:33] *** schonert has quit IRC
[20:48:36] <zelrik> no you dont
[20:48:42] <testerde> I will need to change the tree dynamically and add siblings and children
[20:48:47] *** Evanion has quit IRC
[20:48:50] *** justinobney has joined #angularjs
[20:48:59] <testerde> and for adding siblings, i need to access somehow the parents object ;)
[20:49:13] <zelrik> testerde, use a service
[20:49:20] <zelrik> then you ll have access to everything
[20:49:55] *** caitp has joined #angularjs
[20:50:01] <zelrik> hi caitp
[20:50:02] <sacho> house, woops, you're right, you do need the attribute
[20:50:03] *** holymac has quit IRC
[20:50:37] <testerde> zelrik: everything? :D i just need the parent... how should i ever get there back in a service from the highest scope to find this specific node where i wanted to add the sibling?
[20:50:39] *** dex has joined #angularjs
[20:50:53] <ckboii89> I'm using ngrok to test my api for GET, and i'm getting XMLHttpRequest cannot load, No 'Access-Control-Allow-Origin'. I googled the problem and understand it has to do with CORS. any suggestion how to fix this?
[20:51:03] *** dex is now known as Guest44340
[20:51:04] <zelrik> testerde, hold on I ll have a look at your code
[20:51:26] *** S234567a has joined #angularjs
[20:51:29] *** holymac has joined #angularjs
[20:52:40] <zelrik> testerde, you see that tasks json? put it in a service or factory
[20:52:45] *** quellhorst has joined #angularjs
[20:52:50] *** nagappan has quit IRC
[20:53:01] <zelrik> then you'll have access to any node in the tree
[20:53:22] <testerde> by using getter and setter?
[20:53:25] *** nagappan has joined #angularjs
[20:53:59] *** elxa has joined #angularjs
[20:54:04] <zelrik> testerde, I d create a service like Tasks
[20:54:05] <sacho> the problem is the isolate scope, really
[20:54:09] *** Ir1sh has joined #angularjs
[20:54:13] *** greatdex has quit IRC
[20:54:30] *** jbourassa has quit IRC
[20:54:35] <sacho> if you inject a service into the directive, it becomes less configurable
[20:54:35] *** roymilder has joined #angularjs
[20:54:36] <S234567a> has anyone merged masonry with an angular view? what is the best way to accomplish that?
[20:54:44] *** dutis has quit IRC
[20:54:54] <RomainTr> Any suggestion?
[20:55:02] <sacho> testerde, do you really need a data binding to tasks?
[20:55:02] *** gnrlbzik has joined #angularjs
[20:55:09] <sacho> testerde, if not, just get rid of the isolate scope
[20:55:10] *** Limix has quit IRC
[20:55:20] <sacho> RomainTr, for?
[20:55:33] *** bayousoft has joined #angularjs
[20:55:58] <RomainTr> I believe you were talking to me saying that isolated scope was a problem
[20:56:07] <sacho> naah, to testerde
[20:56:16] <sacho> RomainTr, I was wrong, you need the builder=builder attribute
[20:56:36] <RomainTr> Thanks for pointing me to that. :)
[20:56:36] <in_deep_thought> #javascript
[20:56:44] *** gnarMatix has quit IRC
[20:56:45] <testerde> sacho: i dont know if i need it... i need to add childs from the template via buttons and delete them and so on... thats all I need. So tell me: do I need the binding? :D
[20:57:16] <zelrik> I usually dont bind simple json to the scope
[20:57:20] <S234567a> what is the best way to use jquery and angular together?
[20:57:25] <zelrik> always better to use a service or factory
[20:57:28] *** elxa has quit IRC
[20:57:39] *** jstroem has joined #angularjs
[20:57:43] <zelrik> manipulating those objects is much easier
[20:57:53] <sacho> I mean, he can fetch it into the controller from a factory
[20:58:03] <zelrik> yeah
[20:58:06] *** bmac has quit IRC
[20:58:06] <testerde> zelrik: but how would you access it in my way? could you show me an example?
[20:58:13] <sacho> but that wouldn't really change the problem :)
[20:58:23] <zelrik> testerde, if you set your data as an attribute
[20:58:26] <wafflejock> S234567a: http://stackoverflow.com/questions/20205752/angularjs-resource-put-method-is-not-getting-the-id
[20:58:29] <zelrik> Tasks.data = {}
[20:58:38] <zelrik> or use a getter/setter
[20:58:38] *** Ir1sh has quit IRC
[20:58:42] <wafflejock> S234567a: I did some masonry integration stuff there's an angular project out there already for it too
[20:58:57] <S234567a> thanks wafflejock
[20:59:00] <wafflejock> S234567a: typically the answer is if it does DOM manipulation it should be wrapped up in directives
[20:59:03] <sacho> testerde, you could do something like this:
[20:59:21] <wafflejock> S234567a: sorry wrong SO link there...
[20:59:34] *** gnrlbzik has quit IRC
[20:59:38] <wafflejock> meant this one S234567a http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background
[20:59:43] <testerde> i'm overexcerted :D
[21:00:18] <zelrik> I think I ll let sacho answer
[21:00:24] <zelrik> he might have a better than me
[21:00:28] <S234567a> is there an unlimited number of controllers and directives and app can have or is it supposed to be limited?
[21:00:29] <zelrik> better answer*
[21:00:42] <wafflejock> S234567a: no limits
[21:00:53] <wafflejock> S234567a: the only issue really is if you create tons of watchers then things will be slow
[21:01:05] <wafflejock> S234567a: cause every digest it's processing all the watchers to see what needs to be updated
[21:01:35] <S234567a> ahh makes sense
[21:01:36] <wafflejock> S234567a: don't optimize early though, integrate what you think you need then do performance tuning if/where needed after profiling things
[21:01:37] <sacho> ugh, nevermind
[21:01:37] *** cthrax has joined #angularjs
[21:01:44] <zelrik> using a service to just hold static data is overkill though
[21:01:49] *** conner_ has joined #angularjs
[21:01:53] <zelrik> you sure you arent doing anything with those?
[21:02:03] <zelrik> you can put them in a constant
[21:02:42] <sacho> testerde, why do you need to access the parent, actually?
[21:03:01] <sacho> where are your buttons going to be
[21:03:04] *** in_deep_thought has quit IRC
[21:03:07] *** Santos has quit IRC
[21:03:19] *** Ir1sh has joined #angularjs
[21:03:30] <S234567a> wafflejock: so wrapping jquery or javascript in a directive, does this delay the javascript event until the directive is used?
[21:03:39] <wafflejock> S234567a: yup
[21:03:52] <wafflejock> S234567a: also associates the DOM manipulation from the view which makes more sense
[21:03:57] *** Aerospark has quit IRC
[21:05:03] <wafflejock> S234567a: plus if your elements are removed/re-added with templates or whatever then angular "knows" to compile that stuff to find directives and re-execute the link function
[21:05:31] *** bayousoft has quit IRC
[21:05:40] <S234567a> wafflejock angular is great.
[21:05:54] <wafflejock> S234567a: agree I'm a pretty happy camper
[21:05:57] *** tfennelly has joined #angularjs
[21:06:20] *** justinobney has quit IRC
[21:06:52] *** oniijin has quit IRC
[21:07:29] *** kayloos_ has quit IRC
[21:07:49] *** cthrax has quit IRC
[21:08:28] *** danielpquinn has joined #angularjs
[21:08:59] *** caitp has quit IRC
[21:09:16] <S234567a> wafflejock: where does angular directives integrate with html semantics as far as validating a page?
[21:09:17] *** cthrax has joined #angularjs
[21:09:28] *** bullicon has joined #angularjs
[21:10:26] <wafflejock> S234567a: if you really want page validation you can use data- prefix
[21:10:33] <wafflejock> angular will strip it when looking for directives
[21:10:44] <wafflejock> I personally don't give a damn if it's validated though
[21:10:45] <S234567a> wafflejock ahh yes awesome
[21:10:59] *** conner_ has quit IRC
[21:10:59] <S234567a> why does it matter?
[21:11:16] <wafflejock> so long as ever green browsers are happy and my customers don't use ancient version of IE then we're all happy
[21:11:31] <wafflejock> I just prefer not having tons of extra junk in the code that's just filler to make a computer happy
[21:11:51] *** intellix has quit IRC
[21:11:58] *** tfennelly has quit IRC
[21:12:30] <wafflejock> there's plenty of simple free solutions to the IE bug, like Chrome, Firefox, Safari, whatever :P
[21:12:44] *** danielpquinn has quit IRC
[21:12:51] <S234567a> yea that is why html5 is cool, gets to the point. <!doctype html> etc
[21:13:04] <wafflejock> yeah hard to read through 1000 data- attributes
[21:13:11] *** homey has joined #angularjs
[21:13:14] *** oniijin has joined #angularjs
[21:13:40] <zelrik> testerde, http://jsbin.com/noxebepo/1/edit
[21:13:42] <zelrik> fixed it
[21:13:43] *** cthrax has quit IRC
[21:13:50] <zelrik> it s a very weird recursion you have there
[21:14:01] <zelrik> not sure why you're doing something that complicated
[21:14:12] <zelrik> for a simple nested ng-repeat
[21:14:13] <wafflejock> I get there are some cases (government, schools) where they will use super old tech to save money and because they feel it's stable but that's just stupid
[21:14:16] *** Aerospark has joined #angularjs
[21:14:26] *** _jpfm has quit IRC
[21:15:11] <davek> Anyone know of a good source for royalty free full-res images like for covers?
[21:15:27] <wafflejock> davek: typically I just go to creative commons filter in the google images search
[21:15:46] <wafflejock> not always great but it's one place to try
[21:17:06] <zelrik> testerde, I think you were just not passing the right data to your directives
[21:17:44] <zelrik> if you wanna use attributes to hold your data, do it all the way :)
[21:18:53] *** in_deep_thought has joined #angularjs
[21:19:57] <wafflejock> davek: if you need something specific you'll probably have to pay some royalty though through istockphoto or one of those places (can get super pricey)
[21:20:36] <snurfery> sup yall
[21:20:40] *** bphogan is now known as bphogan_afk
[21:21:02] <zelrik> wafflejock, I didnt know they had such a filter
[21:21:24] <wafflejock> yeah pretty sweet
[21:21:39] <wafflejock> but the image quality is questionalble a lot of the time and hard to find exactly what you want
[21:21:45] <in_deep_thought> can I return an object in a factory? and then call methods/parts of said object in the $scope? like so: http://jsbin.com/nivekoda/1/
[21:22:01] <in_deep_thought> I want to return the string attribute on line 11 but it shows up blank
[21:22:21] <davek> wafflejock, yeah that worked thanks.
[21:22:26] <wafflejock> cool
[21:22:48] *** D-Boy has quit IRC
[21:23:35] *** VeeWee has quit IRC
[21:24:01] *** in_deep_thought has quit IRC
[21:24:55] *** in_deep_thought has joined #angularjs
[21:25:08] *** bbankes has quit IRC
[21:25:23] *** jonog has joined #angularjs
[21:25:54] *** bbankes has joined #angularjs
[21:25:54] <zelrik> in_deep_thought, http://jsbin.com/siqikini/1/edit
[21:26:03] <zelrik> if you want the factory version let me know.
[21:26:36] *** Willow has joined #angularjs
[21:26:55] <zelrik> actually I ll do the factory version for free
[21:27:00] *** InezK is now known as InezK_away
[21:27:00] *** davedev24_ has quit IRC
[21:27:19] *** josh-k has joined #angularjs
[21:27:30] *** davedev24_ has joined #angularjs
[21:27:30] *** bullicon has quit IRC
[21:27:38] *** waylon999 has joined #angularjs
[21:27:52] <in_deep_thought> haha thanks. yes I would be interested in seeing the factory version. And are both equally good choices? or is one preferrable?
[21:28:37] *** bphogan_afk is now known as bphogan
[21:28:37] <davek> Holy hell can't wait until filters have consistent support...
[21:29:05] <zelrik> in_deep_thought, http://jsbin.com/keyawufi/1/edit
[21:29:28] *** sdouglas has quit IRC
[21:29:38] *** jonog has quit IRC
[21:29:46] <zelrik> in_deep_thought, I think services return an instance by default while you need to instantiate factories
[21:30:03] *** rho has quit IRC
[21:30:06] <house> is there a way to search plunkr?
[21:30:16] <house> or is it just browse by tag
[21:30:31] *** S234567a has left #angularjs
[21:30:39] <wafflejock> house: yeah dunno would be good to know at this point though... since I have like 1000 of them
[21:30:52] <house> search is sorely missing from the site
[21:31:18] <zelrik> in_deep_thought, I use factories for everything personally
[21:32:04] *** roobik has quit IRC
[21:32:08] <zelrik> I understand them better and they can be used for both singletons and instances
[21:33:32] *** gnarMatix has joined #angularjs
[21:33:56] <wafflejock> zelrik: hah I'm the opposite basically... though I use something more like the factory syntax I tend to use service more just because I think of the service as being the thing that communicates with my API (the middle-layer/backend services)
[21:35:55] <wafflejock> but yeah very very similar in terms of how you can use them since the primary feature is that they are singletons just being instantiated slightly differently
[21:35:55] <snurfery> I'm a service man myself too
[21:36:04] <zelrik> wafflejock, can you use services for singletons
[21:36:10] <wafflejock> yup
[21:36:31] <zelrik> hmm
[21:36:34] <in_deep_thought> zelrik: by instantiate, do you mean how you had to define var stuff = {} and return it while for the service you can just call this. string?
[21:36:40] <zelrik> I thought they were instantiated by default
[21:37:08] <zelrik> in_deep_thought, I mean object = new Object();
[21:37:08] *** lotus has quit IRC
[21:37:13] *** gnarMatix has quit IRC
[21:37:28] <wafflejock> in both cases it is creating one instance of an object, with factory it is calling the function you provide and using the returned object with service it's using the new operator to instantiate the function you provide
[21:37:50] *** greg5gre_ has joined #angularjs
[21:38:13] <wafflejock> zelrik: your partially right about that it is instantiated in the case of a service using the new operator but in both cases after the first use it is injecting the same object, just in one case it's the result of the call on the function with the new operator and the other just the result of calling the function
[21:38:45] <zelrik> wafflejock, oh I thought services created a new object everytime :D
[21:38:49] *** Oxelist has joined #angularjs
[21:39:22] <wafflejock> yeah it's confusing but they're very similar, just about everyting angular gives you in terms of "types" are just various ways of defining the underlying type which is a "provider"
[21:39:37] *** testerde has quit IRC
[21:39:48] *** nerdfiles has joined #angularjs
[21:39:52] <wafflejock> https://docs.angularjs.org/guide/providers
[21:39:56] *** greg5green has quit IRC
[21:40:05] <zelrik> yeah that part is really confusing
[21:40:17] *** D-Boy has joined #angularjs
[21:40:22] *** Xethron has joined #angularjs
[21:40:22] *** Xethron has joined #angularjs
[21:40:49] *** Lunchy has joined #angularjs
[21:41:52] *** in_deep_thought has quit IRC
[21:42:34] *** H1FuelCell has quit IRC
[21:42:41] <zelrik> so providers are just for the configuration phase only
[21:43:05] *** RomainTr has quit IRC
[21:43:09] <wafflejock> zelrik: yeah as far as I understand it if you want to have config then you drop down the the raw provider definition level
[21:43:39] *** roymilder has quit IRC
[21:43:47] *** in_deep_thought has joined #angularjs
[21:43:57] <zelrik> I c
[21:44:00] *** tigrang has quit IRC
[21:44:36] <zelrik> in_deep_thought, in summary, use what makes more sense to you
[21:44:39] <zelrik> :)
[21:44:48] *** s3shs has joined #angularjs
[21:45:15] <wafflejock> indeed
[21:45:29] *** gil has quit IRC
[21:45:33] *** in_deep_thought has quit IRC
[21:45:41] <Lunchy> I'm building a table using nested ng-repeats and using a filter to hide/show rows based on user input. I need to get the row number for each row in the order they appear in the table after the filter is applied. The nested ng-repeats are making this hard. I've tried adding a counter field to each rows scope, but the outer ng-repeat rows get their index and then the inner ng-repeat, so it's still not in the right order. Any
[21:46:07] *** Oxelist has quit IRC
[21:46:19] *** in_deep_thought has joined #angularjs
[21:48:50] *** mokush has quit IRC
[21:48:58] *** VictorBjelkholm has quit IRC
[21:49:36] *** futuredale has joined #angularjs
[21:49:40] *** josh-k has quit IRC
[21:50:13] *** in_deep_thought has quit IRC
[21:50:31] <Lunchy> or to word it a different way, I need to implement alternate row highlighting on a table built with nested ng-repeats and filters :)
[21:50:49] <zelrik> easy
[21:50:58] *** in_deep_thought has joined #angularjs
[21:51:01] *** Limix has joined #angularjs
[21:51:42] *** cctom has joined #angularjs
[21:51:48] *** jstroem has quit IRC
[21:53:06] *** nerdfiles has quit IRC
[21:53:27] <wafflejock> yup $even $odd but will let zelrik handle the details :)
[21:53:41] <Lunchy> they don't work properly with the nested repeats
[21:53:53] <Lunchy> each ng-repeat has it's own $even/$odd
[21:54:34] <zelrik> so?
[21:54:50] *** wilmoore has joined #angularjs
[21:54:54] *** tigrang has joined #angularjs
[21:55:03] <wafflejock> Lunchy: perhaps you want this https://docs.angularjs.org/api/ng/directive/ngInit
[21:55:06] *** Illianthe3 has quit IRC
[21:55:23] <Lunchy> row 1: outer repeat index 0
[21:55:28] <Lunchy> row 2: inner repeart index 0
[21:55:35] <Lunchy> row 3: inner repeat index 1
[21:55:37] <Lunchy> see the problem?
[21:55:46] <Lunchy> (besides for spelling)
[21:55:48] <Lunchy> :)
[21:55:50] <zelrik> no
[21:55:50] *** gnrlbzik has joined #angularjs
[21:55:51] *** Illianthe3 has joined #angularjs
[21:55:57] <Lunchy> row one and two will both be odd
[21:56:02] <zelrik> I dont see the problem
[21:56:10] *** in_deep_thought has quit IRC
[21:56:15] *** holymac has quit IRC
[21:56:19] <Lunchy> so alternate highlighting will not be...alternate
[21:56:31] <wafflejock> Lunchy: you see the link to ngInit
[21:56:33] *** VictorBjelkholm has joined #angularjs
[21:56:35] <wafflejock> ?
[21:56:36] <Lunchy> checking
[21:56:40] <zelrik> why ng-init
[21:56:50] <marcospgp> Hey guys. I have some doubts on how to manage authentication for my app. I have a facebo sign in and a back end that issues Json tokens. I'm thinking of doing it like this: 1. User goes to app for first time and signs in using facebook. 2. User sends info from facebook to server and server stores data in server and issues an access token to client. - My problem is what to do next, how/when to refresh that token, and how to keep
[21:56:53] <marcospgp> Can anyone help me?
[21:56:57] <wafflejock> zelrik: to alias the properties for the ng-repeat
[21:57:07] <Lunchy> wafflejock: I ran across that in my googling, but didn't see how it applied
[21:57:16] *** holymac has joined #angularjs
[21:57:20] <Lunchy> guess I didn't understand it well enough
[21:57:36] <zelrik> wafflejock, oh, does he need to highlight within the second repeat?
[21:57:39] <wafflejock> Lunchy: sounds like you want to use the outer even/odd information on the inside perhaps but i"m not sure
[21:57:44] <Lunchy> zelrik: yes
[21:57:50] <Lunchy> I need to highlight the table as a whole
[21:58:04] <Lunchy> wafflejock: I think that's right
[21:58:06] <zelrik> could be done directly to the data object being looped
[21:58:08] *** in_deep_thought has joined #angularjs
[21:58:16] *** s3shs has quit IRC
[21:58:26] <zelrik> otherwise I think the ngInit trick will work
[21:58:48] <Lunchy> zelrik: yea, thought of that but then I'd have to manage the model manually when the filtered items show/hide
[21:58:52] *** roobik has joined #angularjs
[21:58:52] <zelrik> you could always use $parent also :D
[21:58:59] <zelrik> $parent.$odd
[21:59:03] <zelrik> $parent.$even
[21:59:14] <Lunchy> I don't want the child to have the highlighting of the parent
[21:59:37] <Lunchy> I want the children to be considered peers when highlighted
[21:59:43] *** in_deep_thought has quit IRC
[21:59:44] <zelrik> ??
[21:59:51] *** gnarMatix has joined #angularjs
[21:59:56] *** gnrlbzik has quit IRC
[22:00:05] *** sdouglas has joined #angularjs
[22:00:09] <zelrik> I thought you wanted to know if the parent was odd or even...
[22:00:11] <Lunchy> $parent.$odd will give me the same thing for every child of teh parent, no?
[22:00:33] <zelrik> yeah
[22:00:35] *** wilmoore has quit IRC
[22:00:37] <zelrik> and $odd wont
[22:00:39] <Lunchy> so how will that help me alternate?
[22:00:56] *** conner_ has joined #angularjs
[22:00:58] <Lunchy> okay okay, I think ng-init will help me
[22:01:00] <Lunchy> thanks guys
[22:01:03] <zelrik> are you trying to highlight like a chessboard
[22:01:06] <zelrik> ??
[22:01:22] <Lunchy> I'm trying to do straight alternating as if there was only one ng-repeat
[22:01:29] *** Alina-emergency has quit IRC
[22:01:35] <zelrik> ok
[22:01:48] *** in_deep_thought has joined #angularjs
[22:01:50] <zelrik> then $parent.$odd + $odd % 2
[22:01:53] <zelrik> is your condition
[22:01:54] <zelrik> or so
[22:02:02] *** L8TR has quit IRC
[22:02:04] *** in_deep_thought has quit IRC
[22:02:07] *** tokka has joined #angularjs
[22:02:11] <zelrik> if I remember math correctly
[22:02:18] <Lunchy> yea, that's what I was thinking about with ng-repeat but your suggestion seems even more simple
[22:02:36] <Lunchy> sorry, I meant ng-init, not ng-repeat
[22:02:47] <Lunchy> trying to type too quick :)
[22:03:08] <zelrik> Lunchy, see, was easy
[22:03:16] <Lunchy> in theory!
[22:03:17] <Lunchy> :)\
[22:03:27] <Lunchy> let me see what the browser thinks of it
[22:04:03] *** in_deep_thought has joined #angularjs
[22:04:04] <Lunchy> thanks guys, I'm sure I'm on the right path now
[22:04:37] *** jstroem has joined #angularjs
[22:05:25] <zelrik> if you dont wanna use all those $'s also, you could set that up in your data object from the start
[22:05:31] *** waylon999 has quit IRC
[22:05:40] *** Milanito has quit IRC
[22:05:52] *** in_deep_thought has quit IRC
[22:06:06] <Lunchy> yea, but rows can be hidden/shown so I'd have to manage it during a show/hide....would prefer not to have to if there's an easy ng-way to do it
[22:06:31] <zelrik> Lunchy, you could put that in while you filter
[22:06:37] <zelrik> what's what I do
[22:06:52] <zelrik> keep the data displayed and the raw data separate
[22:07:02] <Lunchy> (if it's not obvious, I'm pretty new to ng)
[22:07:09] <zelrik> data displayed is more processed
[22:09:08] *** in_deep_thought has joined #angularjs
[22:09:13] *** danielpquinn has joined #angularjs
[22:09:39] <zelrik> Lunchy, the 'ng' way can be less performant
[22:09:47] *** anjumkaiser has joined #angularjs
[22:09:56] *** morenoh149 has quit IRC
[22:10:04] <zelrik> shortcuts are nice but as your app grow, you wanna build custom stuff
[22:10:13] *** dutis has joined #angularjs
[22:10:58] *** cctom has quit IRC
[22:11:10] *** senayar has joined #angularjs
[22:11:30] <davek> Holy hell I hope Coffeescript dies soon.
[22:11:37] <zelrik> lol why
[22:12:20] *** Rplus has quit IRC
[22:12:25] *** avree has quit IRC
[22:13:43] *** SuRfDeMo1 has joined #angularjs
[22:13:52] *** danielpquinn has quit IRC
[22:14:28] <zelrik> Lunchy, by the way, what I really meant was $parent.$index + $index %2
[22:14:45] <Lunchy> okay, I don't want to admit this but I just realized something...I don't have NESTED ng-repeats...I'm using two peer ng-repeats with ng-repeat-start/end which is why this being so difficult for me...I don't have access to a $parent.$index because the first ng-repeat isn't technically a parent
[22:14:52] <Lunchy> zelrik: I figured :)
[22:15:16] <Lunchy> I'm rending <tr> tags so I can't nest them
[22:15:24] *** SuRfDeMoN has quit IRC
[22:15:25] *** ceephax has joined #angularjs
[22:15:28] *** foo-bar- has joined #angularjs
[22:15:29] <Lunchy> (at least not that I know of)
[22:15:31] <zelrik> ??
[22:15:38] *** homey has quit IRC
[22:15:51] <zelrik> Lunchy, show us an example?
[22:16:11] *** Trow has quit IRC
[22:16:15] <Lunchy> wanna see my ng-repeat code?
[22:16:19] <zelrik> yeah
[22:16:40] *** in_deep_thought has quit IRC
[22:17:18] *** conner_ has quit IRC
[22:17:22] *** avree has joined #angularjs
[22:17:25] *** mven has quit IRC
[22:17:36] <Lunchy> http://pastebin.com/HHjPWvm5
[22:17:54] <Lunchy> each line is a directive with a <tr> template
[22:17:59] *** mven has joined #angularjs
[22:18:09] *** tommmied has joined #angularjs
[22:18:43] <Lunchy> each task can have many subtasks and I need to render them out in order in a table
[22:19:13] <zelrik> I see
[22:19:19] <Lunchy> sorry for my own confusion
[22:20:12] <zelrik> just as side note, why you have the controller in multiple places?
[22:20:23] *** foo-bar- has quit IRC
[22:20:29] <zelrik> you can't put it in your <table> tag?
[22:20:57] *** gnarMatix has quit IRC
[22:21:24] *** gnarMatix has joined #angularjs
[22:22:38] <Lunchy> well, as I said, I'm pretty new to ng, I didn't give that too much thought...just thought that's how I needed to do it
[22:23:16] <Lunchy> made sense to me that each "task" would get its own controller instance
[22:23:46] *** caitp has joined #angularjs
[22:24:47] <zelrik> hmm I see the problem now
[22:24:48] *** s3shs has joined #angularjs
[22:25:02] <Lunchy> perhaps I can keep a counter at a higher scope?
[22:25:22] *** s3shs has quit IRC
[22:25:34] <Lunchy> (very sorry for wasting your guys time while I didn't properly understand my issue)
[22:25:47] *** gnarMatix has quit IRC
[22:26:11] *** jonog has joined #angularjs
[22:26:14] <zelrik> I wonder if this can be addressed with a directive
[22:26:34] *** yo__ has joined #angularjs
[22:26:45] <yo__> hi
[22:26:50] <Lunchy> yea, I was wondering about that as well but wasn't sure how to proceed
[22:27:20] *** InezK_away is now known as InezK
[22:27:34] <zelrik> Lunchy, I think the best method is to put that in a filter
[22:27:44] <yo__> just a question, is angularjs server banning Iranian IP addresses?
[22:27:59] <zelrik> the filter will increment a counter
[22:28:00] <yo__> I cant access anything normally
[22:28:12] <zelrik> and you can stick that to your task objects
[22:28:16] <zelrik> or json
[22:28:29] <Lunchy> that sounds great
[22:28:38] <zelrik> just preprocess your data
[22:28:46] <zelrik> so that it has your display information
[22:28:46] *** Fishy has joined #angularjs
[22:28:56] <zelrik> it s as I said before
[22:29:03] <zelrik> divorce the raw data and the displayed one
[22:29:19] *** greg5green has joined #angularjs
[22:29:19] *** greg5green has joined #angularjs
[22:29:43] *** vintik has quit IRC
[22:29:55] <yo__> any ADMINS here?
[22:29:59] <Lunchy> so how would I increment a counter in a filter?
[22:30:15] *** josh-k has joined #angularjs
[22:30:40] <oniijin> doesn't like something a filter should be doing
[22:30:51] *** Limix has quit IRC
[22:31:01] *** greg5gre_ has quit IRC
[22:31:10] <Lunchy> also a good point
[22:31:11] *** jonog has quit IRC
[22:31:24] *** greg5gre_ has joined #angularjs
[22:31:59] *** yo__ has quit IRC
[22:32:23] *** s3shs has joined #angularjs
[22:32:38] *** Illianthe3 has quit IRC
[22:32:47] *** s3shs has quit IRC
[22:32:49] *** jharbaugh has quit IRC
[22:33:09] *** Illianthe3 has joined #angularjs
[22:33:09] *** cphil has joined #angularjs
[22:33:19] *** greg5gr__ has joined #angularjs
[22:33:24] *** jharbaugh has joined #angularjs
[22:33:28] *** s3shs has joined #angularjs
[22:33:28] *** in_deep_thought has joined #angularjs
[22:33:52] *** greg5green has quit IRC
[22:33:59] *** Nijikokun has joined #angularjs
[22:34:22] *** in_deep_thought has quit IRC
[22:34:52] *** homey has joined #angularjs
[22:35:05] <zelrik> oniijin, why not?
[22:36:18] *** ishi has joined #angularjs
[22:36:31] *** Fishy has quit IRC
[22:36:34] *** greg5gre_ has quit IRC
[22:36:58] <ishi> hi there :)
[22:37:01] *** InezK is now known as InezK_away
[22:37:32] *** jharbaugh has quit IRC
[22:37:52] *** Illianthe3 has quit IRC
[22:37:53] *** ayman has joined #angularjs
[22:38:04] *** arizzo has quit IRC
[22:38:10] *** CodeFriar has joined #angularjs
[22:38:10] <ishi> I'm just starting with angular, so if my question is *wrong* i.e. you could answer and tell me 'how', but the best practices are different, please tell me this instead ;)
[22:38:17] *** Illianthe3 has joined #angularjs
[22:38:20] <ayman> is it possible to recompile angularjs directive when a certain event is triggered ?
[22:38:23] *** tokka has quit IRC
[22:38:41] *** arizzo has joined #angularjs
[22:38:55] *** morenoh149 has joined #angularjs
[22:39:12] <zelrik> ishi, was that your question? :p
[22:39:19] <ishi> I want to have a simple app with a menu and, say, 4 views. I use ngRoute to render the views depending on URL.
[22:39:24] <ishi> zelrik: I'm getting to it :)
[22:39:27] *** AndyFTP has joined #angularjs
[22:40:03] *** AWAW has joined #angularjs
[22:40:08] <ishi> now, I understand that if I'm using route, I can't have a controller attached to a node in my index.html
[22:40:17] <ishi> (at least, when I tried, it didn't work)
[22:40:24] <ishi> What I want to have is this:
[22:40:56] <ishi> I want to display a title of the page in the 'home page', but I want to have the same title in <head><title>...
[22:41:29] <ishi> I'd like to avoid repeating the same literal, so I want to have a... well... configuration object globally accessible
[22:41:55] *** marcospgp has quit IRC
[22:42:01] <ishi> I could keep there the list of visible menus, title of the site etc...
[22:42:08] <ishi> right... so... how do I do it? :)
[22:42:20] *** DoubleAW has quit IRC
[22:42:23] <ishi> my latest idea is to create a factory
[22:42:30] *** H1FuelCell has joined #angularjs
[22:42:45] <zelrik> always create a factory
[22:42:51] <robdubya> ^
[22:43:00] *** marcospgp has joined #angularjs
[22:43:02] <zelrik> when in doubt, create a factory
[22:43:03] *** arizzo has quit IRC
[22:43:11] <zelrik> :p
[22:43:13] <sacho> </industrialization>
[22:43:15] <ishi> (for now it'd simply return a function returning static object, but I could in future retrieve this information from some more dynamic place...)
[22:43:20] <zelrik> lol sacho
[22:43:34] <Lunchy> hah
[22:43:38] *** morenoh149 has quit IRC
[22:44:18] <ishi> well... I'm all for sarcasm and jokes :)... but if you told me to type with left eye closed, I'd probably believe you... so...
[22:44:30] <ishi> is the factory the way to keep global config, or not?
[22:44:34] <davek> Do it...
[22:45:03] <zelrik> it depends how global I guess
[22:45:37] <zelrik> that makes me think, I should put some of my code in a provider
[22:45:38] <robdubya> use a factory.
[22:46:00] <zelrik> when in doubt...
[22:46:16] *** AndyFTP has quit IRC
[22:46:29] <ishi> blah
[22:47:02] <zelrik> usually I have a controller/service for the <head>
[22:47:15] <zelrik> well not usually, I dont have that many apps :D
[22:47:15] *** CodeFriar has quit IRC
[22:47:41] <ishi> ok, see? I wanted to use controller.
[22:47:49] *** Guest44340 has quit IRC
[22:48:00] <ishi> but I must have done something wrong because it didn't work
[22:48:03] <zelrik> you have to use both controllers and services
[22:48:08] <ishi> (I thought it was because of this route)
[22:48:12] *** morenoh149 has joined #angularjs
[22:48:25] <zelrik> no, you can put a controller anywhere
[22:48:34] <zelrik> maybe even in your <html> tag
[22:48:51] <ishi> but ... but... I sort of thought that I might want to use this config somewhere inside a controller
[22:49:05] <ishi> and hmm... injecting controller into a controller is *wrong*
[22:49:09] *** tokka has joined #angularjs
[22:49:20] *** s3shs has quit IRC
[22:49:21] *** AndyFTP has joined #angularjs
[22:49:23] <zelrik> yeah never do that
[22:49:33] <da_wunder> ishi: you looking for datastorage between controllers?
[22:49:35] <zelrik> they inheritate from each other anyway
[22:49:46] <zelrik> FACTORIES
[22:49:51] <ishi> da_wunder: no, I'm looking for a site configuration
[22:50:05] <da_wunder> so constants then
[22:50:08] <ishi> say... language, active menus, title, authors blah blah blah
[22:50:45] *** gnarMatix has joined #angularjs
[22:50:50] <zelrik> active menu doesnt sound like a configuration, more like a state
[22:50:53] <ishi> yeah... I thought about constant... but if I used factory, I could later change the implementation to hit some API to retrieve the config
[22:50:59] <ishi> (withoug much refactoring)
[22:51:12] <ishi> zelrik: well... it's configuration in this case...
[22:51:13] <da_wunder> configuration === not changing data
[22:51:21] <da_wunder> imho
[22:51:26] <zelrik> ishi, if you want to save the current state of your app, it s a factory
[22:51:38] <da_wunder> yep
[22:51:52] <ishi> OK, it's a site for conference...
[22:51:59] <zelrik> if you wanna set the language on page load, it s a configuration
[22:52:08] <ishi> let's say we decide to open call for papers because we have everything ready
[22:52:20] <ishi> so we *change* the configuration and the menu becomes visible
[22:52:27] <ishi> so it's changed
[22:52:41] *** jstroem has quit IRC
[22:52:41] <davek> Github having an outage?
[22:52:43] <zelrik> it s not a configuration
[22:52:50] <zelrik> dont use wrong semantics
[22:52:53] *** Milanito has joined #angularjs
[22:53:01] <mnewton> Hey guys, I'm trying to control an audio element in my app. I don't know how to play the sound with angular. Is there a better way than document.getElementById("player").play()?
[22:53:10] <ishi> however, it's not really hmm... stateful, if you see what I mean... it's the human intervention that changes the configuration of what is to be displayed
[22:53:21] *** Limix has joined #angularjs
[22:53:22] <ishi> zelrik: ok, what is it?
[22:53:24] <davek> Those are states.
[22:53:28] *** in_deep_thought has joined #angularjs
[22:53:31] <zelrik> application state
[22:53:39] <ishi> blah... that's BS ;)
[22:53:53] <zelrik> ishi, if you wanna interact with humans, it s a state
[22:53:55] <ishi> you might just as well say that right now my app is in 'incomplete state' :)
[22:54:06] <davek> States are specific configurations of a given system.
[22:54:09] <ishi> zelrik: I don't... the human in this case isn't a user
[22:54:09] <zelrik> if you wanna talk to yourself, you can call it a potato I dont care
[22:54:11] *** InezK_away is now known as InezK
[22:54:30] <ishi> zelrik: no... sorry... I just want to understand...
[22:54:52] <davek> It doesn't matter who mutates the state, state changes are state changes.
[22:55:10] <ishi> if someone a month from now, comes to me asking for a new section in menu, it'll change the state too?
[22:55:34] <ishi> because it wasn't visible before and after being implemented it's visible?
[22:55:51] <davek> No idea what you're talking about I was just clarifying the term.
[22:55:56] *** arizzo has joined #angularjs
[22:56:16] <zelrik> you ll change the app version ;)
[22:56:36] *** gnrlbzik has joined #angularjs
[22:56:44] <ishi> zelrik: which you could call state... because something (due to interaction with human) has changed
[22:56:49] <ishi> blah... doesn't matter, really
[22:57:24] <ishi> for the moment, I'll just comment out the unwanted positions in menu... I just want to get a feel what providers and factories should be used for
[22:57:26] *** bmac has joined #angularjs
[22:57:53] <zelrik> providers runs first
[22:58:24] <zelrik> so they are more about the configuration of your app
[22:58:26] *** shorne has joined #angularjs
[22:58:28] <robdubya> ishi literally everything
[22:58:34] <robdubya> any and all data should come from a factory
[22:58:37] <robdubya> be used in a controller
[22:58:42] <zelrik> services/factories for everything
[22:58:43] <robdubya> modified from a view
[22:58:54] <zelrik> or everything else if you prefer
[22:59:09] <ishi> right... ok, but since providers run before factories, obviously, factories cannot be used in providers, right?
[22:59:15] <wafflejock> davek: I second the distaste for coffee script (although I do like coffee)
[22:59:23] <robdubya> providers and factories are the same thing
[22:59:25] *** Limix has quit IRC
[22:59:28] *** Milanito has quit IRC
[22:59:33] <robdubya> its just that providers can be configured before they are instantiated
[22:59:35] <davek> ishi, providers instantiate your factories/services.
[22:59:58] *** arizzo has quit IRC
[23:00:21] *** VictorBjelkholm has quit IRC
[23:00:22] *** in_deep_thought has quit IRC
[23:00:33] <ishi> ok, let me ask it another way... if I go for constant now, how painful will it be later to refactor it to factory/provider/...?
[23:00:52] <ishi> are they refered to the same way?
[23:00:59] <wafflejock> ishi: you inject both
[23:01:04] <zelrik> a constant is just json
[23:01:09] <wafflejock> it should basically be the same just a matter of where the object comes from
[23:01:13] <robdubya> and typically should be for constant things
[23:01:13] <zelrik> you can put json anywhere
[23:01:18] <robdubya> like, the base Url
[23:01:29] *** gnrlbzik has quit IRC
[23:01:31] <zelrik> you can inject constants in the same way as services too
[23:02:06] <wafflejock> mnewton: sounds like you want a directive
[23:02:23] <wafflejock> mnewton: you could apply the directive to the element you want to call .play() on I haven't messed with HTML5 audio though
[23:02:41] *** davedev24_ has quit IRC
[23:02:43] <ishi> I know it's a stupid question, but... if I have a factory called foo, and its function produces object with a property bar. How do I refer to it in my html?
[23:02:49] <ishi> would it be {{foo.bar}}?
[23:02:59] <wafflejock> ishi: you would need to inject the factory into a controller
[23:02:59] <robdubya> $scope.foo = Foo
[23:03:00] *** davedev24_ has joined #angularjs
[23:03:02] <wafflejock> then create a reference
[23:03:03] <wafflejock> ^
[23:03:04] <ishi> or would I have to do something like {{foo.produce.bar}}
[23:03:21] <ishi> and what about a constant?
[23:03:27] <wafflejock> same
[23:03:40] <wafflejock> inject into a controller assign to some scope property
[23:03:44] <marcospgp> "i am not supersticious, but i am... i am a little sticious"
[23:03:49] <wafflejock> then from the perspective of the scope make your reference
[23:03:51] <ishi> so, effectively, I'd have to use {{controller.foo.bar}} for both
[23:04:09] <wafflejock> yeah if you use the controller as syntax
[23:04:56] *** in_deep_thought has joined #angularjs
[23:06:08] *** H1FuelCell has quit IRC
[23:06:18] <ishi> OK, thanks :)
[23:06:24] <zelrik> wafflejock, you can call controllers like that?
[23:06:36] <wafflejock> zelrik: there's some alternative syntax when you do ng-controller
[23:06:48] <wafflejock> like ng-controller="MyCtrl as myController"
[23:06:51] <zelrik> ok
[23:06:56] <wafflejock> I haven't typically used it
[23:06:58] <zelrik> ahh neat
[23:07:09] *** davi has quit IRC
[23:07:32] *** Ir1sh has quit IRC
[23:07:35] <zelrik> well not sure how that d be used though
[23:08:00] <wafflejock> yeah think it might just be for the sake of being more explicit but I'm pretty noobish about that
[23:08:04] <wafflejock> could use an explanation
[23:08:05] *** kayloos has joined #angularjs
[23:08:17] <wafflejock> perhaps there are cases where you need it
[23:08:23] <robdubya> zelrik http://plnkr.co/edit/OzsCEZ0SX9yWPJnUP7jt?p=preview
[23:08:34] <davek> Really don't know why that was even implemented... seems like a sanctioned hack/workaround sort of thing.
[23:09:03] <robdubya> davek it makes a lot of sense for OO type things, and also means you dont (have) to use $scope
[23:09:33] <robdubya> and solves the . problem in one swoop, since you *have* to do something.else everywhere
[23:09:51] <wafflejock> ah okay well that's 1 good point I think
[23:10:03] *** danielpquinn has joined #angularjs
[23:10:23] <robdubya> lots of people get caught up in OMG WHATS $sope
[23:10:56] <wafflejock> eh yeah I dunno I kinda like that I had to learn to understand what it was doing to some degree
[23:11:40] <ishi> blah... so, since I have to use controller to be able to use it in html, I might just as well *not* create a factory, but initialise it right there... And later, if I want to make it more dynamic, I can always inject some service into this controller and delegate it like this.
[23:11:49] <ishi> Without having to change anything else...
[23:11:58] <mnewton> wafflejock, I found a way to play without putting an element in html
[23:11:59] <zelrik> robdubya, what if you inject a service say 'Foo' in a controller then you do this.foo = Foo; ?
[23:12:03] <davek> Yeah, they establish a paradigm with the controllers operating on $scope and then sort of demolish it.
[23:12:22] <mnewton> wafflejock, I'm using new Audio("sounds/victory_fanfare.mp3").play() now
[23:12:26] <wafflejock> ishi: yup that's true but typically you want the data to persist between view changes or between controllers
[23:12:43] <mnewton> wafflejock, thanks for your suggestion
[23:12:47] <wafflejock> mnewton: ah okay cool, yeah if you don't need DOM access you're good
[23:12:50] <wafflejock> np
[23:13:02] <robdubya> ishi you're trying to use a controller as the model
[23:13:08] *** kayloos has quit IRC
[23:13:19] <zelrik> There shouldnt be much in controllers
[23:13:20] <robdubya> what you're doing is lazy and outside the MVC concept, imo
[23:13:23] <ishi> robdubya: no, I was trying not to :)
[23:13:31] *** H1FuelCell has joined #angularjs
[23:13:35] <zelrik> just service injections and $on handlers
[23:13:36] <robdubya> controllers are merely a place to interact with models.
[23:13:56] <robdubya> models should (almost always) come from services
[23:13:58] <wafflejock> ishi: yeah everyone here is trying to tell you the "right" way to do it not the fastests/simplest way to do it (which will break)
[23:14:06] <zelrik> perhaps some initialisation too
[23:14:11] *** AndyFTP has quit IRC
[23:14:13] *** danielpquinn has quit IRC
[23:14:18] *** VictorBjelkholm has joined #angularjs
[23:14:31] *** yoshokatana has quit IRC
[23:15:07] <zelrik> I never let a controller get fat
[23:15:15] <zelrik> real friends dont let controllers get fat
[23:15:24] <ishi> wafflejock: ok, so I create a factory, which will return a object like this { title: 'foo' }, inject it in my model, which would have a field config, to which I'll assign the value produced by this factory
[23:15:33] *** gnarMatix has quit IRC
[23:15:40] <davek> Hahaha 108* tomorrow. Good shit.
[23:15:52] <zelrik> davek, hope you got AC
[23:15:57] <ishi> or should I create a service and inject it into the factory, so that the factory would call the service to product the { title: 'foo' } object?
[23:16:00] *** gnarMatix has joined #angularjs
[23:16:04] <davek> I do, just not unlimited money.
[23:16:11] <davek> PG&E charges near double rates during the summer.
[23:16:23] <robdubya> ishi slow down dude, you're wayyyy off :D
[23:16:28] <davek> Y'know because they're dicks.
[23:16:31] <wafflejock> ishi: okay now you went to the other end of the spectrum you seem to have overcomplicated it
[23:17:24] <ishi> robdubya: that's why, for now, I wanted to simply create and assign the { title: 'foo'} object in the controller... Because I'll be always albe to refactor it if I need to.
[23:17:35] <wafflejock> ishi: you can use either a service or a factory to store the data, create a controller you inject the service or factory into, store the data within your service or factory and make a reference to it from the controller scope
[23:17:50] <wafflejock> ishi: typically I only create things in a controller if I don't want them to persist between views
[23:18:05] <wafflejock> ishi: or for hooking things up from the factory/services or handling events from the view
[23:18:07] <ishi> and I don't want it to persist between views
[23:18:19] *** s3shs has joined #angularjs
[23:18:20] <ishi> it's a constant... it'll change with new release of application, for now at least
[23:18:25] *** SuRfDeMo1 is now known as SuRfDeMoN
[23:18:36] *** bkuberek_ has joined #angularjs
[23:18:42] <wafflejock> well when I say "persistent between views" I just mean when ui-router or ngRoute is changing what's shown
[23:18:53] <wafflejock> because then it creates/destroys controllers
[23:19:40] *** motionman has joined #angularjs
[23:19:40] *** motionman has joined #angularjs
[23:19:44] <zelrik> ishi, you will get a better feel for it by writing some code
[23:19:52] <wafflejock> yup
[23:20:14] <ishi> oh... I see... so if I create it in controller, the browser will create new config object each time someone clicks on something?
[23:20:14] <zelrik> just talking about the theory is not best
[23:20:18] *** gnarMatix has quit IRC
[23:20:35] <wafflejock> ishi: it will actually call your controller function again when someone is navigating the view
[23:20:39] <wafflejock> which you probably don't want
[23:20:44] <wafflejock> cause then you end up with a bunch of API calls
[23:20:59] *** in_deep_thought has quit IRC
[23:21:32] *** bkuberek has quit IRC
[23:21:35] *** in_deep_thought has joined #angularjs
[23:21:50] <ishi> I see...
[23:22:18] <wafflejock> so what you can do instead is you write a factory/service that you have initially get the data then you just inject that into the controllers and make a reference to the data from the scope
[23:22:30] *** Jae has joined #angularjs
[23:22:31] <wafflejock> so you can bind to it from the view or whatever
[23:22:38] *** ceephax has quit IRC
[23:22:45] <davek> Did chrome ever implement the color picker tool?
[23:22:56] *** conner_ has joined #angularjs
[23:22:59] <wafflejock> there's an rgb color picker but no pipette
[23:23:08] *** arek_deepinit has joined #angularjs
[23:23:13] <wafflejock> oh you mean color picker input type?
[23:23:14] <robdubya> ishi http://plnkr.co/edit/muAukqRGxvBQqNsgQCYb?p=preview
[23:23:18] <wafflejock> I was thinking debug panel
[23:24:15] <davek> Yeah debug panel. Kinda silly that it can't work on the actual page. Firefox has it and its been sitting in feature requests for like ever.
[23:24:31] *** illume has joined #angularjs
[23:24:40] <wafflejock> davek: it seems to work here http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_type_color
[23:24:56] *** mikehaas763 has joined #angularjs
[23:25:21] <wafflejock> if I need to pick something from my own screen I just use a KDE widget color picker
[23:25:24] <ishi> oh... cool... I didn't know about this $scope thing
[23:25:31] <davek> No not the HTML5 input type, just the devtools color picker.
[23:25:33] *** greg5green has joined #angularjs
[23:25:34] *** DuelShark has quit IRC
[23:25:43] <davek> Firefox has the ability to sample a given pixel on the page you're viewing and grab its color.
[23:25:43] <wafflejock> davek: you run windows?
[23:25:50] <davek> Nope.
[23:25:51] *** illume has quit IRC
[23:25:55] <wafflejock> there's ColorPic I think for windows
[23:26:15] <wafflejock> I have KColorChooser on Kubuntu and a widget on the desktop
[23:26:37] <arek_deepinit> there is an extension for color picker in fb
[23:26:40] *** tfennelly has joined #angularjs
[23:27:00] <davek> Gimp has what you're referring to though. I'm just baffled it hasn't made its way into chrome yet. Firefox devtools are looking more and more attractive.
[23:27:18] <wafflejock> yeah I like the FF tools, I think Chrome and FF compliment each other well
[23:27:28] *** gnarMatix has joined #angularjs
[23:27:34] <wafflejock> FF does a great job telling you what went wrong with XML parsing and I like the 3D view sometimes
[23:27:37] *** in_deep_thought has quit IRC
[23:27:42] *** wilmoore has joined #angularjs
[23:27:49] *** pdillinger1 has quit IRC
[23:27:53] <robdubya> favorite part of world cup - crowd shots of children in tears
[23:27:57] *** beckyconning__ has joined #angularjs
[23:28:07] *** gnarMatix has left #angularjs
[23:28:10] <wafflejock> haha cruel but funny
[23:28:20] *** greg5gr__ has quit IRC
[23:28:38] *** jonog has joined #angularjs
[23:30:50] *** hswolff has quit IRC
[23:31:01] *** tfennelly has quit IRC
[23:31:15] <robdubya> actually, beatiful argentinean women in tears is even better
[23:32:33] *** tfennelly has joined #angularjs
[23:32:38] *** Emperor_Earth has quit IRC
[23:32:58] *** jonog has quit IRC
[23:32:59] *** lw has quit IRC
[23:33:01] *** Emperor_Earth has joined #angularjs
[23:33:10] *** paul_dijou has joined #angularjs
[23:34:13] <davek> Oh god 5 tickets done in a day. Something horrible is about to happen.
[23:34:28] *** TheAceOfHearts has joined #angularjs
[23:34:30] <wafflejock> ah crap yeah I have to work
[23:34:37] *** cphil has quit IRC
[23:34:45] <arek_deepinit> working on sunday?
[23:35:14] <davek> Oh right, the Lord's day. JESUS TAKE THE KEYBOARD.
[23:35:18] <wafflejock> haha
[23:35:26] <wafflejock> yeah well now you know I'm not Jewish I guess
[23:35:50] <robdubya> https://www.youtube.com/watch?v=Xm5AKvmtHk0&feature=kp
[23:36:18] *** tigrang has quit IRC
[23:36:44] *** mnewton has quit IRC
[23:37:04] *** tfennelly has quit IRC
[23:37:04] <davek> wafflejock, the Sabbath is Saturday.
[23:37:09] <arek_deepinit> wafflejock: lol, yeah
[23:37:11] <wafflejock> hah yeah just realized that
[23:37:24] <davek> So NOW I know you're not Jewish.
[23:37:25] <wafflejock> well that made no sense :(
[23:37:29] <wafflejock> haha
[23:37:53] *** Limix has joined #angularjs
[23:38:04] <snurfery> that was a damn gorgeous goal
[23:38:04] *** davedev24_ has quit IRC
[23:38:14] <wafflejock> I watching the sports ball
[23:38:15] *** davedev24_ has joined #angularjs
[23:38:18] *** Xethron has quit IRC
[23:38:30] *** arrty has quit IRC
[23:39:07] <davek> Go favored national sports team!
[23:39:07] <wafflejock> meant ah, watching the sports ball... geez brain is destroyed right now
[23:39:10] *** arrty has joined #angularjs
[23:39:12] <robdubya> snurfery word
[23:39:29] *** arrty has quit IRC
[23:39:35] <davek> Acquire points while preventing the opposing team from doing the same!
[23:39:40] <wafflejock> yeah, yay for country I was born in!
[23:39:59] *** arrty has joined #angularjs
[23:40:40] *** zwacky has joined #angularjs
[23:40:45] <TheAceOfHearts> DEUTSCHLAND IS BEST LAND
[23:42:22] *** mennea has quit IRC
[23:42:31] *** bmac has quit IRC
[23:42:46] <snurfery> shit I just remembered I'm 1/4 german fuck yeeeeeeeah
[23:43:20] *** davedev24_ has quit IRC
[23:43:22] <Cixis> i'm holding out on celebrating until brazil's economy collapses in a month or so
[23:43:27] <robdubya> davek the announcer said at the end
[23:43:44] <snurfery> then the brothel prices go _way_ down
[23:43:45] <robdubya> "they didnt score enough goals. if you dont score goas, you're not going to win the tournament"
[23:43:48] *** davedev24_ has joined #angularjs
[23:43:51] *** Ir1sh has joined #angularjs
[23:44:00] <robdubya> thanks john madden
[23:44:12] <snurfery> "FOOTBALL"
[23:44:16] <snurfery> ^actual quote
[23:44:42] <snurfery> now I have to go back to being productive
[23:44:48] <snurfery> this might be challenging
[23:45:05] *** ngoyal has quit IRC
[23:45:11] *** Vinnyceptr has joined #angularjs
[23:45:14] <TheAceOfHearts> haha
[23:45:16] <TheAceOfHearts> productivity
[23:45:18] <TheAceOfHearts> HAHA
[23:45:32] *** carif has joined #angularjs
[23:45:43] <snurfery> I should have worked yesterday and slacked today
[23:45:45] <snurfery> but noooooo
[23:45:48] <snurfery> I slacked yesterday
[23:45:55] <ishi> oh... I know it has a potentiall to start a holly war... but what editor/IDE do you use?
[23:46:19] <TheAceOfHearts> REAL programmers use ed.
[23:46:27] <ishi> mine has some problems... For example, it doesn't recognise the controller alias in directive (done via controllerAs: ...)
[23:46:31] <TheAceOfHearts> ./discussion
[23:47:02] <TheAceOfHearts> but in all seriousness, I use sublime text
[23:47:03] <davek> You're starting a discussion
[23:47:04] <robdubya> ishi you probably dont want to use controllerAs as a noob
[23:47:04] <davek> ?
[23:47:14] <ishi> TheAceOfHearts: well... I use a magnet to change the polarisation directly on disk, normally, but I thought i'd try something else for angular.
[23:47:15] *** davedev24_ has quit IRC
[23:47:25] *** hswolff has joined #angularjs
[23:47:36] *** Illianthe3 is now known as Illianthe
[23:47:40] *** conner_ has quit IRC
[23:48:02] *** carif has quit IRC
[23:48:23] <arek_deepinit> webstorm is da best
[23:48:23] *** davedev24_ has joined #angularjs
[23:48:25] <ishi> robdubya: hmm... why not? I mean... I'll not use them if you say I shouldn't but... what else should I avoid...
[23:48:57] <ishi> arek_deepinit: hmm... that's sad
[23:49:00] <ishi> oh well...
[23:49:13] *** bphogan is now known as bphogan_afk
[23:49:16] <robdubya> ishi cuz 1% of people do, and nobody is going to be able to answer your questions
[23:49:17] <arek_deepinit> ishi: whats sad?
[23:49:32] <davek> Why's that sad? WebStorm is pretty cool. Not my thing personally but it's good software.
[23:49:52] <robdubya> i like webstorm too, though i find it a bit sluggish
[23:50:56] <ishi> heh... I mean it's sad, because it has the problem I just described...
[23:51:02] <TheAceOfHearts> I used RubyMine for a while, it's eh
[23:51:03] <TheAceOfHearts> too slow
[23:51:12] <ishi> if it's the best, this implies that I wouldn't get anything better...
[23:51:18] *** homey has quit IRC
[23:51:37] *** davedev24_ has quit IRC
[23:51:38] <robdubya> i reckon webstorm is the "best" proper IDE
[23:51:42] <ishi> you don't have to convince me that it's good, I used IntelliJ for the last 10 years or close enough
[23:51:53] *** davedev24_ has joined #angularjs
[23:52:14] <TheAceOfHearts> I agree with robdubya
[23:52:15] <arek_deepinit> ishi: i also use something else ,with support for controllerAs
[23:52:23] *** senayar has quit IRC
[23:52:40] <robdubya> but not everybody wants a proper full on IDE
[23:52:55] *** senayar has joined #angularjs
[23:53:08] <TheAceOfHearts> I like sublime text; I'd move over to Atom if it weren't so terribly slow
[23:53:08] <ishi> well... I must be doing something wrong
[23:53:10] <arek_deepinit> sure haxors use hex editors
[23:53:31] *** holymac has quit IRC
[23:53:31] <robdubya> TheAceOfHearts have you turned on the react rendering?
[23:53:41] <TheAceOfHearts> robdubya: yeah
[23:53:47] <TheAceOfHearts> tab switching is too slow, though
[23:53:52] <TheAceOfHearts> scrolling is a lot better
[23:53:53] *** mindlace has joined #angularjs
[23:53:57] <TheAceOfHearts> but tab switching is still terrible
[23:53:58] <robdubya> hmm
[23:54:07] <robdubya> hadnt noticed. now i probably will. thanks
[23:54:12] <TheAceOfHearts> hahaha
[23:54:13] <TheAceOfHearts> sorry
[23:54:23] <TheAceOfHearts> I'm very easily peeved
[23:54:25] *** holymac has joined #angularjs
[23:54:44] <TheAceOfHearts> https://www.youtube.com/watch?v=vTTzwJsHpU8 I'm sure we can all relate. "IE is being mean to me"
[23:55:53] *** bsmithgall has joined #angularjs
[23:56:04] *** vintik has joined #angularjs
[23:56:24] *** InezK is now known as InezK_away
[23:56:27] <davek> <TheAceOfHearts> I used RubyMine for a while, it's eh ... too slow
[23:56:51] *** s3shs has quit IRC
[23:56:56] <TheAceOfHearts> yup
[23:57:01] <davek> Ruby developers demanding performance...
[23:57:05] <TheAceOfHearts> haha
[23:57:05] <ishi> http://plnkr.co/edit/la44MRfdv6UVNuSpI6
[23:57:12] <ishi> there... what am I doing wrong?
[23:57:22] *** gnrlbzik has joined #angularjs
[23:57:59] *** bsmithgall has quit IRC
[23:58:00] <ishi> It works, but IntelliJ complains 'Unresolved variable or type mdh'
[23:58:00] *** silcox has joined #angularjs
[23:58:11] <TheAceOfHearts> at least sublime text isn't sluggish :P
[23:58:21] <TheAceOfHearts> I'll probably give neovim a shot once it's stable
[23:58:26] *** bsmithgall has joined #angularjs
[23:59:03] *** gnrlbzik has quit IRC
[23:59:12] *** gnrlbzik has joined #angularjs
[23:59:31] *** holymac has quit IRC
[23:59:48] <wafflejock> yeah I like SublimeText a lot too, definitely second that
top

   July 13, 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 | >