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

Toggle Join/Part | bottom
[00:01:13] <saucey> hey guys im just trying to do a simple crud with resource but having trouble, heres my snippet http://laravel.io/bin/NkmEG
[00:01:42] <saucey> i keep getting this error TypeError: undefined is not a function
[00:02:17] *** Shadeness has quit IRC
[00:03:54] *** tristanp has joined #angularjs
[00:04:10] *** slopjong has quit IRC
[00:04:54] *** beilabs_________ has quit IRC
[00:06:05] *** disorder20 has quit IRC
[00:06:13] *** jmichaelward has joined #angularjs
[00:06:39] *** Shadeness has joined #angularjs
[00:06:47] *** beilabs_________ has joined #angularjs
[00:07:30] *** disorder20 has joined #angularjs
[00:08:03] <saucey> anyone
[00:08:30] *** despai has quit IRC
[00:10:21] *** tristanp has quit IRC
[00:10:25] *** newbster has quit IRC
[00:10:46] *** newbster has joined #angularjs
[00:10:54] <Foxandxss> saucey: getUsers is a function
[00:10:57] <Foxandxss> so you need to call it
[00:11:19] <saucey> could you show me an example please
[00:11:20] *** Lewix has quit IRC
[00:11:30] *** SergioFilhow__ has joined #angularjs
[00:11:38] <saucey> whats wrong with the syntax?
[00:11:49] <Foxandxss> a function, to call it
[00:11:53] <Foxandxss> you need the ()
[00:12:03] <Foxandxss> getUsers is a function that returns something
[00:12:07] <Foxandxss> but you are not calling it
[00:12:07] *** kotyy has quit IRC
[00:12:38] <saucey> hey thanks for the note i fixed it
[00:12:39] <saucey> AuthService.getUsers().query()
[00:12:49] <saucey> it needed to be like this
[00:12:54] *** despai has joined #angularjs
[00:13:02] <Foxandxss> yes, that fixes the issue
[00:13:25] *** Lewix has joined #angularjs
[00:13:25] *** ciwolsey has quit IRC
[00:13:37] *** Lewix has quit IRC
[00:13:37] *** Lewix has joined #angularjs
[00:14:04] <Foxandxss> and btw, it is not "ify", it is called "IIFE"
[00:14:24] *** despai has quit IRC
[00:14:29] *** devhoag has joined #angularjs
[00:14:57] *** robksawyer has joined #angularjs
[00:16:43] *** beilabs_________ has quit IRC
[00:16:50] *** beilabs_________ has joined #angularjs
[00:17:09] *** edy has quit IRC
[00:17:15] *** sirsirsir has joined #angularjs
[00:17:31] <lenswipe> Foxandxss, hello! :D
[00:17:34] <lenswipe> long time no see!
[00:17:36] *** edy has joined #angularjs
[00:17:42] <Foxandxss> I am here every day!
[00:17:43] <Foxandxss> :P
[00:18:11] <lenswipe> yeah, ive been busy with work etc.
[00:18:14] <lenswipe> the thing is
[00:18:17] <lenswipe> I'm making a new angular app
[00:18:28] <lenswipe> and I'm using ui-router
[00:18:45] <drej> :(
[00:19:30] <lenswipe> The problem I have is that I have two different pages(possibly more later). The home page (the page you land on when you go to the site) and the event list page. What I want to know is: Should they be seperate ui-router "states" or should they be under a page state or something?
[00:19:46] *** mmealling has joined #angularjs
[00:20:15] *** whitebook has joined #angularjs
[00:20:42] <Foxandxss> sounds like two states
[00:21:06] <lenswipe> okay, so one state per page?
[00:21:19] <Foxandxss> one or more
[00:21:25] <lenswipe> yeah
[00:21:40] <lenswipe> I'm still trying to wrap my head around how the actual eff state based routing works :p
[00:21:44] *** sirsirsir has quit IRC
[00:22:18] *** edy has quit IRC
[00:22:19] *** bbankes has quit IRC
[00:22:20] *** threesixes has quit IRC
[00:22:23] *** yts has quit IRC
[00:23:11] *** marr has joined #angularjs
[00:23:12] *** despai has joined #angularjs
[00:23:15] *** TheAceOfHearts has joined #angularjs
[00:24:22] *** mmealling has quit IRC
[00:26:13] *** moritzs has joined #angularjs
[00:26:55] *** beilabs_________ has quit IRC
[00:27:57] *** Oxynum has joined #angularjs
[00:28:20] *** tomengland_mbp has joined #angularjs
[00:28:23] *** snurfery has joined #angularjs
[00:28:37] *** dannyc has quit IRC
[00:28:45] *** PeterMetz has quit IRC
[00:29:24] *** brettfrable has joined #angularjs
[00:29:24] *** beilabs_________ has joined #angularjs
[00:33:38] *** DrAwesomeClaws has quit IRC
[00:34:01] *** jimmyy has joined #angularjs
[00:34:04] *** asheinfeld has joined #angularjs
[00:34:27] *** saucey has quit IRC
[00:36:05] *** tomengland_mbp has quit IRC
[00:36:08] *** Beatzebub_ has joined #angularjs
[00:36:25] *** ekinmur has quit IRC
[00:37:00] *** tomengland_mbp has joined #angularjs
[00:37:02] *** MaxV has joined #angularjs
[00:37:36] *** chabier has joined #angularjs
[00:37:36] *** beilabs_________ has quit IRC
[00:38:00] *** {DV8} has joined #angularjs
[00:38:29] *** seriema has quit IRC
[00:38:52] *** beilabs_________ has joined #angularjs
[00:38:56] *** seriema has joined #angularjs
[00:39:45] *** Beatzebub__ has quit IRC
[00:39:58] *** joebobjoe has joined #angularjs
[00:41:24] *** tomengland_mbp has quit IRC
[00:41:45] *** tfennelly has quit IRC
[00:42:18] *** DuelShark has joined #angularjs
[00:42:58] *** DrAwesomeClaws has joined #angularjs
[00:43:23] *** epantzar has quit IRC
[00:43:25] *** seriema has quit IRC
[00:43:50] *** beilabs_________ has quit IRC
[00:43:56] *** beilabs_________ has joined #angularjs
[00:45:06] *** Sontakey has joined #angularjs
[00:45:06] *** epantzar has joined #angularjs
[00:45:07] *** chabier has quit IRC
[00:48:34] *** robdubya has joined #angularjs
[00:48:34] *** MistahKurtz has joined #angularjs
[00:48:53] *** mmealling has joined #angularjs
[00:49:40] *** ProLoser has joined #angularjs
[00:49:47] *** dannyc has joined #angularjs
[00:50:37] *** goodenough has quit IRC
[00:50:37] *** dannyc_ has joined #angularjs
[00:50:37] *** dannyc has quit IRC
[00:52:13] *** thumpba has joined #angularjs
[00:53:21] *** dannyc_ has quit IRC
[00:53:26] *** qdk has quit IRC
[00:53:30] *** Lewix has quit IRC
[00:53:58] *** dannyc has joined #angularjs
[00:54:09] *** ekinmur has joined #angularjs
[00:54:15] *** JosephSilber has joined #angularjs
[00:55:36] *** disorder20 has quit IRC
[00:57:05] *** bundledavid has joined #angularjs
[00:57:07] *** thumpba has quit IRC
[00:57:31] *** richiebkr has joined #angularjs
[00:58:36] *** ekinmur has quit IRC
[00:59:18] *** TheAceOfHearts has quit IRC
[00:59:26] *** tomengland_mbp has joined #angularjs
[01:00:34] *** skyx_ has quit IRC
[01:01:11] *** skyx_ has joined #angularjs
[01:01:23] *** bundledavid has quit IRC
[01:02:20] *** adpirz has joined #angularjs
[01:02:23] *** {DV8} has quit IRC
[01:03:05] *** jonr2219 has joined #angularjs
[01:05:08] *** foobar_ has joined #angularjs
[01:06:01] *** Oxynum has quit IRC
[01:06:47] *** petecoop has joined #angularjs
[01:07:21] *** adpirz has quit IRC
[01:08:18] *** jonr2219 has quit IRC
[01:09:05] *** ekinmur has joined #angularjs
[01:09:11] *** eago has joined #angularjs
[01:09:30] *** asheinfeld has quit IRC
[01:11:57] *** Sontakey has quit IRC
[01:13:25] *** robksawyer has quit IRC
[01:13:53] *** DuelShark has quit IRC
[01:13:59] *** glassir has quit IRC
[01:14:35] *** oste has joined #angularjs
[01:16:33] *** ciwolsey has joined #angularjs
[01:17:03] *** richiebkr has quit IRC
[01:17:10] *** ekinmur has quit IRC
[01:20:16] *** soee_ has quit IRC
[01:20:57] *** yoshokatana has joined #angularjs
[01:21:52] *** yoshokatana has left #angularjs
[01:22:39] *** lenswipe has quit IRC
[01:23:29] *** TyrfingMjolnir has joined #angularjs
[01:23:40] *** mmealling has quit IRC
[01:25:18] *** asheinfeld has joined #angularjs
[01:25:32] *** dannyc_ has joined #angularjs
[01:25:49] *** tfennelly has joined #angularjs
[01:26:32] *** siovene has quit IRC
[01:27:48] *** opiates has quit IRC
[01:31:31] *** boxmein has joined #angularjs
[01:32:08] *** nirvana has joined #angularjs
[01:32:35] <nirvana> Davek: I got the D3 working using it as a service
[01:32:48] <nirvana> I want to use AWS-SDK the same way
[01:32:54] <nirvana> What’s the best way to do it
[01:32:59] *** asheinfeld has quit IRC
[01:33:05] <nirvana> Create a service of aws-sdk and use it?
[01:33:13] <nirvana> Davek: I am using MEAN stack
[01:34:07] *** ciwolsey has quit IRC
[01:34:15] *** tfennelly has quit IRC
[01:34:17] *** dannyc has quit IRC
[01:34:19] *** {DV8} has joined #angularjs
[01:34:47] <robdubya> nirvana if in doubt, use a service
[01:35:00] *** dweave has quit IRC
[01:35:07] *** qdk has joined #angularjs
[01:35:28] *** DLSteve has quit IRC
[01:36:16] *** Beatzebub__ has joined #angularjs
[01:36:50] <nirvana> robdubya: is there any document for a starting point?
[01:37:00] <nirvana> I used a service
[01:37:27] <nirvana> But it does not work. When I called AWS.config.update it throws underfined error
[01:37:40] <davek> So debug that error.
[01:37:52] <nirvana> So I am not able to instantiate the awsService.
[01:37:53] <nirvana> Okay.
[01:38:00] <nirvana> But using a service is a good solution right?
[01:38:12] <robdubya> usually, yes
[01:38:18] *** VerbGarden has quit IRC
[01:38:19] <nirvana> As I dont want to use the aws-sdk loading in the html page
[01:38:30] <nirvana> As I might have multople pages which want to upload docs
[01:38:31] <nirvana> ok
[01:38:45] <nirvana> If there is any starting point u can provide it qwould be great
[01:39:20] *** josh-k has joined #angularjs
[01:39:53] *** Beatzebub_ has quit IRC
[01:40:04] *** richiebkr has joined #angularjs
[01:40:09] *** learner1 has joined #angularjs
[01:40:17] *** Sontakey has joined #angularjs
[01:40:54] *** squeakytoy has quit IRC
[01:40:56] *** jrajaratnam has joined #angularjs
[01:42:10] *** squeakytoy has joined #angularjs
[01:43:28] *** learner has quit IRC
[01:43:33] *** mitchdotpro_ has quit IRC
[01:43:53] *** josh-k has quit IRC
[01:47:20] *** lexek__ has quit IRC
[01:50:46] *** asheinfeld has joined #angularjs
[01:50:52] *** dweave has joined #angularjs
[01:51:02] *** jmichaelward has quit IRC
[01:53:37] *** eslaron has quit IRC
[01:55:20] *** mary5030 has joined #angularjs
[01:55:50] <ProLoser> !bin
[01:55:50] <UniBot> : reading code is easier than reading minds. Post a simple sandbox: http://plnkr.co/edit/gist:3510140 (click on the double arrows icon on the right to live-collaborate)"
[01:56:37] *** wolfman2000 has joined #angularjs
[01:58:00] *** bayousoft has joined #angularjs
[01:59:18] *** dannyc_ has quit IRC
[01:59:23] *** Foxandxss has quit IRC
[02:00:25] *** marr has quit IRC
[02:01:14] *** anderskristo has quit IRC
[02:02:24] *** gunn has joined #angularjs
[02:02:51] *** anderskristo has joined #angularjs
[02:04:21] *** rhp has quit IRC
[02:04:40] *** Nurbs has quit IRC
[02:04:57] *** MistahKurtz has quit IRC
[02:06:07] *** sirsirsir has joined #angularjs
[02:06:24] *** fixl has joined #angularjs
[02:06:57] *** anderskristo has quit IRC
[02:07:13] *** il has joined #angularjs
[02:07:19] *** tristanp has joined #angularjs
[02:07:21] *** Oxynum has joined #angularjs
[02:07:34] *** il has quit IRC
[02:08:21] *** anderskristo has joined #angularjs
[02:09:51] *** AimerPaddle has joined #angularjs
[02:10:17] *** nirvana has quit IRC
[02:10:57] *** sirsirsir has quit IRC
[02:12:07] *** threesixes has joined #angularjs
[02:12:07] *** Oxynum has quit IRC
[02:12:14] *** tristanp has quit IRC
[02:12:48] *** mmealling has joined #angularjs
[02:13:07] *** mmealling has quit IRC
[02:14:11] *** mmealling has joined #angularjs
[02:14:31] *** VerbGarden has joined #angularjs
[02:15:13] *** charlenopires has joined #angularjs
[02:16:16] *** roven has quit IRC
[02:16:57] *** nirvana has joined #angularjs
[02:18:59] *** fairuz has joined #angularjs
[02:19:26] *** lenswipe has joined #angularjs
[02:19:45] *** charlenopires has quit IRC
[02:19:57] *** VerbGarden has quit IRC
[02:21:12] *** k-dawg has joined #angularjs
[02:21:26] *** VerbGarden has joined #angularjs
[02:21:31] *** epantzar has quit IRC
[02:22:02] *** VerbGarden has quit IRC
[02:23:01] *** goodenough has joined #angularjs
[02:23:11] *** charlenopires has joined #angularjs
[02:25:17] *** mjw56 has joined #angularjs
[02:27:45] *** charlenopires has quit IRC
[02:28:23] *** jonr22 has quit IRC
[02:29:15] *** brettfrable has quit IRC
[02:29:49] *** mary5030 has quit IRC
[02:30:20] *** mary5030 has joined #angularjs
[02:32:21] *** asheinfeld has quit IRC
[02:32:55] *** cornerma1 has joined #angularjs
[02:33:47] <lenswipe> hey guys
[02:35:09] *** plato has joined #angularjs
[02:35:12] *** tomengland_mbp has quit IRC
[02:35:26] *** mary5030 has quit IRC
[02:35:51] *** doug64k has joined #angularjs
[02:36:18] *** freelyfred has joined #angularjs
[02:36:22] *** Beatzebub_ has joined #angularjs
[02:36:30] *** cornerman has quit IRC
[02:36:40] *** cornerma1 is now known as cornerman
[02:38:02] *** despai has quit IRC
[02:38:13] *** DrAwesomeClaws has quit IRC
[02:38:34] *** asheinfeld has joined #angularjs
[02:39:05] *** MuffinMan` has quit IRC
[02:39:49] *** wafflej0ck_ has joined #angularjs
[02:40:00] *** Beatzebub__ has quit IRC
[02:40:13] *** mary5030 has joined #angularjs
[02:41:05] *** thumpba has joined #angularjs
[02:42:30] *** SahanH has joined #angularjs
[02:45:02] *** mary5030 has quit IRC
[02:45:15] *** boxmein has quit IRC
[02:45:34] *** cacts has joined #angularjs
[02:45:52] *** thumpba has quit IRC
[02:46:01] *** bundledavid has joined #angularjs
[02:47:51] *** pgicxplzs has joined #angularjs
[02:48:23] *** nirvana has quit IRC
[02:50:00] *** warehouse13 has quit IRC
[02:50:12] *** il has joined #angularjs
[02:50:27] *** charlenopires has joined #angularjs
[02:50:32] *** il has quit IRC
[02:50:33] *** bundledavid has quit IRC
[02:51:17] *** adpirz has joined #angularjs
[02:51:31] *** jmichaelward has joined #angularjs
[02:52:10] *** jonr22 has joined #angularjs
[02:52:24] *** VerbGarden has joined #angularjs
[02:54:23] *** lemur has quit IRC
[02:54:59] *** lemur has joined #angularjs
[02:55:12] *** grantfunke_ has joined #angularjs
[02:55:18] *** VerbGarden has quit IRC
[02:55:30] *** dannyc has joined #angularjs
[02:55:53] *** adpirz has quit IRC
[02:56:56] *** jmichaelward has quit IRC
[02:56:57] *** jonr22 has quit IRC
[02:59:24] *** lemur has quit IRC
[03:00:15] <lenswipe> could i borrow someone's brain in here for a sec?
[03:00:19] <lenswipe> I've got an angular related problem
[03:00:45] *** Prjio has quit IRC
[03:03:38] *** josh-k has joined #angularjs
[03:04:01] *** asheinfeld has quit IRC
[03:04:34] *** deanclkclk has joined #angularjs
[03:05:21] <TyrfingMjolnir> lenswipe: ?
[03:05:32] <TyrfingMjolnir> How would you borrow a brain?
[03:07:02] <lenswipe> surgically >: )
[03:07:05] <lenswipe> anyway, joking aside
[03:07:13] <lenswipe> im trying to do routing for my app
[03:07:25] <ProLoser> what's the best gulp webserver?
[03:07:41] <lenswipe> ProLoser, that doesnt make any sense
[03:07:45] <lenswipe> ..it's also offtopic
[03:07:49] <ProLoser> is there only one?
[03:08:18] *** learner1 is now known as learner
[03:08:20] <lenswipe> TyrfingMjolnir, I'm using ui.router and I have 3 or so different pages. Namely these are Home, Event List and View Single Event
[03:08:25] *** Oxynum has joined #angularjs
[03:08:39] *** bmac has joined #angularjs
[03:08:43] *** sahbeewah has joined #angularjs
[03:08:49] <lenswipe> im trying to figure out if view single event and event list should be seperate states or not
[03:08:59] *** charlenopires has quit IRC
[03:08:59] *** kirfu has quit IRC
[03:09:14] *** kirfu has joined #angularjs
[03:09:24] *** jeffisabelle has quit IRC
[03:09:33] <foobar_> <lenswipe> I will use them as TWO seperate states
[03:09:50] <lenswipe> ?
[03:10:12] <lenswipe> when did i say that?
[03:11:01] <lenswipe> foobar_, yep, not finding that in my scrollback
[03:11:02] <lenswipe> nice try.
[03:11:23] <lenswipe> anyway im off to bed
[03:11:25] <lenswipe> ill try tomorrow
[03:11:26] *** lenswipe has quit IRC
[03:12:56] *** Oxynum has quit IRC
[03:13:42] *** cotko has joined #angularjs
[03:13:58] *** night-owl is now known as zz_night-owl
[03:15:07] *** tjsail33 has joined #angularjs
[03:16:18] *** asheinfeld has joined #angularjs
[03:16:23] *** DrAwesomeClaws has joined #angularjs
[03:16:50] *** learner1 has joined #angularjs
[03:17:07] *** learner is now known as Guest18266
[03:17:08] *** learner1 is now known as learner
[03:18:33] *** MaxV has quit IRC
[03:18:59] *** zz_night-owl is now known as night-owl
[03:19:11] *** newbster has quit IRC
[03:19:52] *** njbair has quit IRC
[03:20:09] *** Mackseraner has joined #angularjs
[03:20:58] *** joebobjoe has quit IRC
[03:22:19] <Mackseraner> hi, i want to do some asynchronous work before my angular app runs. specifically, my AuthService needs to check if the user is authenticated before anything else happens (routes/views load etc.) it looks like i can't do this in app.run()... any ideas?
[03:22:37] *** brwr has joined #angularjs
[03:23:06] *** dannyc_ has joined #angularjs
[03:24:46] *** Sontakey has quit IRC
[03:24:49] *** caitp has joined #angularjs
[03:26:17] *** fedenunez has joined #angularjs
[03:26:27] *** sahbeewah has quit IRC
[03:27:16] *** Nivag_ has quit IRC
[03:27:26] <jaydubya> I am following the Egghead series on JWT (https://egghead.io/lessons/angularjs-client-setup-for-jwt-authentication) and everything is great until I run http-server (as he does) in the /public folder. Instead of it working like it did for Kent, I get "zsh: command not found: http-server". I already blew everything away once and started from scratch so I am pretty sure I haven't missed a step.
[03:27:42] *** fruit_pizza has joined #angularjs
[03:28:04] *** charlenopires has joined #angularjs
[03:28:06] *** dannyc_ has quit IRC
[03:28:30] *** Snugug has joined #angularjs
[03:28:40] *** goodenough has quit IRC
[03:28:47] <fruit_pizza> looking for a good angularjs first app to build.
[03:28:52] *** sahbeewah has joined #angularjs
[03:28:53] *** dannyc has quit IRC
[03:28:55] *** jrajaratnam has quit IRC
[03:30:23] *** grantfunke_ has quit IRC
[03:32:08] *** epantzar has joined #angularjs
[03:32:08] *** asheinfeld has quit IRC
[03:34:15] *** cannap has quit IRC
[03:34:18] *** balr0g has quit IRC
[03:34:24] <fruit_pizza> alrighty, that was useless
[03:34:31] *** fruit_pizza has quit IRC
[03:34:57] *** moritzs has quit IRC
[03:36:29] *** Beatzebub__ has joined #angularjs
[03:36:32] *** epantzar has quit IRC
[03:37:50] *** brwr has quit IRC
[03:40:17] *** Beatzebub_ has quit IRC
[03:44:49] *** ziggurat81 has quit IRC
[03:44:59] *** goodenough has joined #angularjs
[03:45:21] *** Snugug has quit IRC
[03:46:36] *** sahbeewah has quit IRC
[03:47:42] *** eago has quit IRC
[03:50:54] *** sahbeewah has joined #angularjs
[03:51:05] *** mary5030 has joined #angularjs
[03:51:17] *** dweave has quit IRC
[03:52:52] *** mylord has quit IRC
[03:54:20] *** rud has joined #angularjs
[03:54:20] *** rud has joined #angularjs
[03:54:30] <foobar_> <Mackseraner> It would be best to do auth on server side. What is your backend? Node.js
[03:54:48] *** sirsirsir has joined #angularjs
[03:55:06] *** davek has quit IRC
[03:55:11] <Mackseraner> foobar_ I'm doing auth using auth tokens, so client is always involved
[03:55:12] <foobar_> <Mackseraner> I have implemented Auth on backend using passport module. My backend is Node, Express and MongoDB and frontend is Angular.
[03:55:45] *** mary5030 has quit IRC
[03:56:13] <Mackseraner> have a workaround using https://docs.angularjs.org/guide/bootstrap now but its not ideal
[03:56:49] *** opiates has joined #angularjs
[03:57:45] *** AciD`` has quit IRC
[03:59:13] *** sirsirsir has quit IRC
[03:59:18] *** sahbeewah has quit IRC
[04:00:53] *** AimerPaddle has quit IRC
[04:01:00] *** wsmoak has quit IRC
[04:01:38] *** Prjio has joined #angularjs
[04:02:06] *** amphetamines has joined #angularjs
[04:02:34] *** woah has joined #angularjs
[04:02:44] *** charlenopires has quit IRC
[04:03:10] *** foobar_ has quit IRC
[04:03:45] *** rud has quit IRC
[04:04:11] *** opiates has quit IRC
[04:05:50] *** Prjio has quit IRC
[04:06:51] *** G_ has joined #angularjs
[04:07:14] *** tjsail33 has quit IRC
[04:07:15] *** G_ is now known as Guest79951
[04:07:26] <Guest79951> Hi
[04:07:35] <dman777> jaydubya: I think I can help..
[04:07:45] <dman777> jaydubya: you running on linux, right?
[04:07:49] <jaydubya> mac
[04:08:45] <robdubya> just do
[04:08:49] <robdubya> npm install -g http-server
[04:08:52] *** caitp has quit IRC
[04:09:07] <dman777> jaydubya: ok...this should be the same in Mac.... /bin/sh is just a softlink to your default shell. so...most likely your /bin/sh isn't pointing to the right shell. I have mine as /bin/sh -> bash
[04:09:32] *** Oxynum has joined #angularjs
[04:09:34] *** caitp has joined #angularjs
[04:09:38] <jaydubya> I am using zsh
[04:09:41] <dman777> jaydubya: oh sorry, I miss read. Ya...do what robdubya said
[04:09:56] <robdubya> its like "gulp" or "grunt" etc
[04:10:12] <robdubya> its a global node module
[04:10:23] <dman777> I was thinking there was a shell script not running
[04:10:46] *** tristanp has joined #angularjs
[04:11:16] <jaydubya> Kent didn't install that in the videos but I guess it was easy to overlook because it's a global install. It took just a few seconds and it's working now ... thanks!
[04:11:34] *** Guest79951 has quit IRC
[04:11:54] *** brwr has joined #angularjs
[04:13:19] *** doug64k has quit IRC
[04:13:27] *** richiebkr has quit IRC
[04:14:03] *** Oxynum has quit IRC
[04:14:23] *** morenoh149 has quit IRC
[04:14:36] *** loverajoel has joined #angularjs
[04:15:18] *** renlo has quit IRC
[04:16:08] *** tristanp has quit IRC
[04:16:10] *** grantfunke_ has joined #angularjs
[04:16:12] *** doug64k has joined #angularjs
[04:16:38] *** renlo has joined #angularjs
[04:16:42] *** styles has quit IRC
[04:16:49] *** roven has joined #angularjs
[04:17:13] *** startupality has joined #angularjs
[04:18:33] *** VerbGarden has joined #angularjs
[04:19:59] *** woah has quit IRC
[04:21:14] *** ekinmur has joined #angularjs
[04:21:43] *** roven has quit IRC
[04:22:08] *** tjsail33 has joined #angularjs
[04:22:49] *** davesidious__ has joined #angularjs
[04:23:58] *** dannyc has joined #angularjs
[04:25:53] *** ekinmur has quit IRC
[04:25:56] *** davek has joined #angularjs
[04:25:56] *** davek has joined #angularjs
[04:26:30] *** dannyc_ has joined #angularjs
[04:26:54] *** davesidious_ has quit IRC
[04:27:08] *** SergioFilhow__ has quit IRC
[04:27:46] *** Mackseraner has quit IRC
[04:28:11] *** dannyc has quit IRC
[04:29:54] *** VerbGarden has quit IRC
[04:29:56] *** thumpba has joined #angularjs
[04:31:19] *** loverajoel has quit IRC
[04:31:25] <davek> Evening.
[04:32:24] *** loverajoel has joined #angularjs
[04:32:30] *** robdubya has quit IRC
[04:32:37] *** asheinfeld has joined #angularjs
[04:32:40] *** renlo has quit IRC
[04:33:38] *** startupality has quit IRC
[04:33:59] *** startupality has joined #angularjs
[04:34:42] *** alinou has quit IRC
[04:34:51] *** startupality has quit IRC
[04:34:51] *** thumpba has quit IRC
[04:34:52] *** bundledavid has joined #angularjs
[04:35:11] *** loverajoel has quit IRC
[04:36:35] *** Beatzebub_ has joined #angularjs
[04:37:15] *** ron1 has joined #angularjs
[04:37:57] *** asheinfeld has quit IRC
[04:38:27] *** bmac has quit IRC
[04:39:29] *** bundledavid has quit IRC
[04:40:09] *** adpirz has joined #angularjs
[04:40:17] *** Beatzebub__ has quit IRC
[04:40:57] *** jmichaelward has joined #angularjs
[04:41:22] *** cotko has quit IRC
[04:43:57] *** whitebook has quit IRC
[04:44:37] *** adpirz has quit IRC
[04:45:35] *** charlenopires has joined #angularjs
[04:45:41] *** jmichaelward has quit IRC
[04:45:44] *** kevin__ has joined #angularjs
[04:45:59] *** ron1 has quit IRC
[04:46:28] *** tjsail33 has quit IRC
[04:47:50] *** lemur has joined #angularjs
[04:48:04] *** ekinmur has joined #angularjs
[04:50:13] *** styles has joined #angularjs
[04:50:13] *** styles has joined #angularjs
[04:51:00] *** fedenunez has quit IRC
[04:51:54] *** mmealling has quit IRC
[04:55:16] *** josh-k has quit IRC
[04:55:42] *** davek has quit IRC
[04:56:44] *** SergioFilhow__ has joined #angularjs
[04:57:01] *** woah has joined #angularjs
[04:57:06] *** Hackwar1 has joined #angularjs
[04:57:53] *** pgicxplzs has quit IRC
[04:57:54] *** ron1 has joined #angularjs
[04:59:06] *** jigawatt has joined #angularjs
[05:00:00] *** dannyc_ has quit IRC
[05:00:30] *** Hackwar has quit IRC
[05:00:35] *** AimerPaddle has joined #angularjs
[05:00:41] *** brwr has quit IRC
[05:00:49] *** fairuz has left #angularjs
[05:01:51] *** jigawatt has quit IRC
[05:02:02] *** bmac has joined #angularjs
[05:02:46] *** ron1 has quit IRC
[05:02:55] *** ekinmur has quit IRC
[05:02:56] *** Prjio has joined #angularjs
[05:03:11] *** phzon has joined #angularjs
[05:04:06] *** ron1 has joined #angularjs
[05:04:15] *** kevin__ has quit IRC
[05:05:05] *** asheinfeld has joined #angularjs
[05:05:11] *** Sontakey has joined #angularjs
[05:06:01] *** mamarilmanson has joined #angularjs
[05:07:07] *** cacts has quit IRC
[05:07:20] *** mzabriskie has joined #angularjs
[05:07:41] *** phzon has quit IRC
[05:08:04] *** Prjio has quit IRC
[05:09:45] *** asheinfeld has quit IRC
[05:09:48] *** saint-ron has joined #angularjs
[05:09:52] *** EricWeb has quit IRC
[05:10:24] *** jMyles has joined #angularjs
[05:10:54] *** dweave has joined #angularjs
[05:11:18] *** ekinmur has joined #angularjs
[05:11:26] *** uris77 has joined #angularjs
[05:11:36] *** maikowblue has quit IRC
[05:11:38] *** mzabriskie has quit IRC
[05:11:53] *** uris77 has joined #angularjs
[05:12:09] *** mzabriskie has joined #angularjs
[05:16:38] *** burzum2 has joined #angularjs
[05:17:34] *** jMyles has quit IRC
[05:17:44] *** motionman has joined #angularjs
[05:18:00] *** ProLoser has quit IRC
[05:18:06] *** sl33k_ has joined #angularjs
[05:18:27] *** ProLoser has joined #angularjs
[05:18:38] *** doug64k has quit IRC
[05:19:06] *** burzum has quit IRC
[05:19:09] *** AimerPaddle has quit IRC
[05:20:03] *** fairuz has joined #angularjs
[05:20:11] *** doug64k has joined #angularjs
[05:21:12] *** ron1 has quit IRC
[05:21:54] *** emmesswhy has joined #angularjs
[05:22:16] *** ron1 has joined #angularjs
[05:22:33] *** mzabriskie has quit IRC
[05:22:57] *** ProLoser has quit IRC
[05:23:11] *** mzabriskie has joined #angularjs
[05:24:46] *** emmesswhy has quit IRC
[05:24:54] *** emmesswhy has joined #angularjs
[05:25:36] *** sahbeewah has joined #angularjs
[05:25:59] *** davek has joined #angularjs
[05:25:59] *** davek has joined #angularjs
[05:27:08] *** discgo has quit IRC
[05:28:08] *** dannyc has joined #angularjs
[05:29:25] *** emmesswhy has quit IRC
[05:31:26] *** andrcmdr has joined #angularjs
[05:32:44] *** dannyc has quit IRC
[05:34:31] *** brwr has joined #angularjs
[05:36:46] *** Beatzebub__ has joined #angularjs
[05:36:55] *** andrcmdr has quit IRC
[05:38:05] *** NoNMaDDeN has joined #angularjs
[05:39:32] *** ProLoser has joined #angularjs
[05:39:34] <dman777> evening
[05:39:37] *** Circlefusion has joined #angularjs
[05:39:47] *** lemur has quit IRC
[05:40:18] *** Beatzebub_ has quit IRC
[05:40:20] *** lemur has joined #angularjs
[05:40:22] *** AimerPaddle has joined #angularjs
[05:40:58] *** rstyrman has quit IRC
[05:42:24] *** sahbeewah has quit IRC
[05:42:50] *** caitp- has joined #angularjs
[05:43:31] *** caitp- has quit IRC
[05:43:33] *** sirsirsir has joined #angularjs
[05:44:23] *** VerbGarden has joined #angularjs
[05:45:13] *** Grokling_ has joined #angularjs
[05:45:21] *** caitp- has joined #angularjs
[05:45:23] *** caitp has quit IRC
[05:45:26] *** lemur has quit IRC
[05:47:56] *** sirsirsir has quit IRC
[05:48:11] *** doug64k has quit IRC
[05:49:05] *** VerbGarden has quit IRC
[05:49:13] *** DrAwesomeClaws has quit IRC
[05:49:19] *** greg5green has joined #angularjs
[05:49:25] *** charlenopires has quit IRC
[05:49:45] *** doug64k has joined #angularjs
[05:51:07] *** tristanp has joined #angularjs
[05:51:54] *** VerbGarden has joined #angularjs
[05:51:59] *** ekinmur has quit IRC
[05:52:26] *** ekinmur has joined #angularjs
[05:52:59] *** andrcmdr has joined #angularjs
[05:53:27] *** Una has joined #angularjs
[05:54:23] *** bmac has quit IRC
[05:56:10] *** dannyc has joined #angularjs
[05:56:13] *** DrAwesomeClaws has joined #angularjs
[05:57:32] *** tristanp has quit IRC
[05:57:44] *** tristanp has joined #angularjs
[05:58:09] *** andrcmdr has quit IRC
[05:59:01] *** morenoh149 has joined #angularjs
[05:59:05] *** Oxynum has joined #angularjs
[06:00:01] *** charuru has quit IRC
[06:01:47] *** mzabriskie has quit IRC
[06:02:02] *** charuru has joined #angularjs
[06:02:59] *** SergioFilhow__ has quit IRC
[06:03:23] *** Oxynum has quit IRC
[06:03:26] *** morenoh149 has quit IRC
[06:03:45] *** Prjio has joined #angularjs
[06:05:38] *** lemur has joined #angularjs
[06:05:42] *** threesixes has quit IRC
[06:08:11] *** grantfunke_ has quit IRC
[06:08:14] *** dacuca has joined #angularjs
[06:08:18] *** Prjio has quit IRC
[06:09:29] *** asdofindia has quit IRC
[06:09:53] *** squeakytoy2 has joined #angularjs
[06:10:00] *** richiebkr has joined #angularjs
[06:12:23] *** squeakytoy has quit IRC
[06:12:29] *** Milkweed has quit IRC
[06:13:26] *** dweave has quit IRC
[06:15:10] *** yelvert has joined #angularjs
[06:16:49] *** roadrunneratwast has joined #angularjs
[06:17:42] *** learner1 has joined #angularjs
[06:17:57] *** kirfu has quit IRC
[06:18:15] <roadrunneratwast> any idea why $http is returning my own index.html instead of www.google.com as a response: $http.get("www.google.com") .success(function Response (response) { console.log("Response");console.log(response) });
[06:18:48] *** thumpba has joined #angularjs
[06:18:49] *** learner2 has joined #angularjs
[06:19:43] *** roven has joined #angularjs
[06:19:43] <sacho_> roadrunneratwast, that's a relative url
[06:19:56] *** yelvert has quit IRC
[06:20:35] *** brwr has quit IRC
[06:20:39] <roadrunneratwast> what does "reflective url" mean?
[06:20:47] <sacho_> I don't know
[06:20:54] <roadrunneratwast> sacho_: and how do i get it to google?
[06:20:55] <sacho_> but a relative url means a url relative to some base url
[06:21:00] <roadrunneratwast> to load google
[06:21:03] <roadrunneratwast> oh
[06:21:07] <roadrunneratwast> so it's the http://
[06:21:09] <roadrunneratwast> ?
[06:21:16] <sacho_> sure.
[06:21:22] *** Guest20958 has joined #angularjs
[06:21:23] *** learner has quit IRC
[06:21:39] <sacho_> you wouldn't be able to load google.com anyway, because of cors.
[06:21:58] <roadrunneratwast> it's cors
[06:22:02] <roadrunneratwast> what is cors?
[06:22:10] <roadrunneratwast> that's the real issue
[06:22:13] *** learner1 has quit IRC
[06:23:20] <sacho_> cors is cross-origin resource sharing
[06:23:36] <sacho_> browsers are fairly limiting in what you can access outiside your own domain
[06:23:41] *** caitp- has quit IRC
[06:23:43] *** thumpba has quit IRC
[06:23:45] *** bundledavid has joined #angularjs
[06:24:05] <roadrunneratwast> XMLHttpRequest cannot load http://rpc.geocoder.us/service/csv?address=. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4444' is therefore not allowed access. The response had HTTP status code 400.
[06:24:16] <roadrunneratwast> that was the real resource i was trying to reach
[06:24:22] <roadrunneratwast> not www.google.com
[06:24:23] *** roven has quit IRC
[06:24:33] <roadrunneratwast> so is there a workaround?
[06:24:54] <roadrunneratwast> i am on localhost
[06:25:08] <roadrunneratwast> do i need to wire up a CGI script on a server to do the call?
[06:25:18] *** s00pcan has quit IRC
[06:25:23] <roadrunneratwast> and then have that delivered to me from my CGI script?
[06:25:33] <roadrunneratwast> or is that the same cors issue ...
[06:27:25] *** mzabriskie has joined #angularjs
[06:27:55] <LinxCat> roadrunner: cors is administered by the browser
[06:28:00] *** tfennelly has joined #angularjs
[06:28:11] *** tristanp has quit IRC
[06:28:28] *** woah has quit IRC
[06:28:29] *** trustyhank has joined #angularjs
[06:28:29] <LinxCat> the response does get to your browser, but the browser seems its different origin and throws exception.
[06:28:42] *** bundledavid has quit IRC
[06:28:50] <LinxCat> seems=sees
[06:28:53] *** tristanp has joined #angularjs
[06:28:55] *** dannyc_ has joined #angularjs
[06:29:05] *** adpirz has joined #angularjs
[06:29:13] *** slopjong has joined #angularjs
[06:29:28] <sacho_> roadrunneratwast, is this rpc.geocoder your own server?
[06:29:36] *** dannyc has quit IRC
[06:29:40] <sacho_> because then you could enable cors by adding some headers, on it
[06:29:42] *** jmichaelward has joined #angularjs
[06:30:01] <roadrunneratwast> no
[06:30:01] *** jonr22 has joined #angularjs
[06:30:03] <sacho_> alternatively you could disable cors security on your own browser
[06:30:05] *** deanclkclk has quit IRC
[06:30:05] <roadrunneratwast> i am reading in the book
[06:30:15] *** Guest20958 has left #angularjs
[06:30:16] <roadrunneratwast> you have to do httpProvider) {
[06:30:18] <roadrunneratwast> $httpProvider.defaults.useXDomain = true;
[06:30:18] <roadrunneratwast> delete $httpProvider.defaults.headers
[06:30:18] <roadrunneratwast> .common['X-Requested-With'];
[06:30:18] <roadrunneratwast> });
[06:30:20] <roadrunneratwast> is that right?
[06:30:30] *** newbie has joined #angularjs
[06:30:44] <newbie> Hey folks!
[06:30:54] <roadrunneratwast> i don't own the rpcgeocoder
[06:31:01] *** newbie is now known as Guest53085
[06:31:10] *** Lewix has joined #angularjs
[06:31:10] *** Lewix has joined #angularjs
[06:31:23] *** VerbGarden has quit IRC
[06:31:28] <Lewix> hey guys
[06:31:35] <Guest53085> Can someone tell me why don't Angular use data-ng-* but ng-*
[06:32:01] <Guest53085> i found across sites dt data-ng-* is the best practice.
[06:32:33] <Lewix> The 'Access-Control-Allow-Origin' header contains the invalid value 'true'. Origin 'http://localhost:9000' is therefore not allowed access.
[06:32:54] *** tfennelly has quit IRC
[06:33:12] *** dannyc_ has quit IRC
[06:33:17] *** adpirz has quit IRC
[06:33:36] <roadrunneratwast> lewix!
[06:33:38] <roadrunneratwast> yes
[06:33:40] *** Guest53085 has quit IRC
[06:33:43] <roadrunneratwast> what does that mean
[06:33:45] *** tristanp has quit IRC
[06:33:49] <Lewix> roadrunneratwast: ?
[06:34:04] <roadrunneratwast> lewix: XMLHttpRequest cannot load http://www.waste.org/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4444' is therefore not allowed access.
[06:34:16] <roadrunneratwast> how do you get around this?
[06:34:21] <sacho_> Lewix, what's your question?
[06:34:36] *** jmichaelward has quit IRC
[06:34:40] <Lewix> roadrunneratwast: add Access-control-allow-origin to your target server
[06:34:43] *** brwr has joined #angularjs
[06:34:53] <Lewix> sacho_: im not sure what the parametes should be
[06:34:54] *** jonr22 has quit IRC
[06:34:54] <roadrunneratwast> I don't own the server
[06:35:07] <sacho_> Lewix, a domain you allow access to, or *
[06:35:25] *** AimerPaddle has quit IRC
[06:35:33] <Lewix> sacho_: i tried * but nope
[06:35:43] <sacho_> nope meaning..?
[06:35:53] *** comma8 has quit IRC
[06:36:09] <Lewix> A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:9000' is therefore not allowed access.
[06:36:31] <sacho_> the error is self-explanatory :|
[06:36:35] *** emmesswhy has joined #angularjs
[06:36:36] *** brwr has quit IRC
[06:36:54] *** Beatzebub_ has joined #angularjs
[06:37:03] <Lewix> sacho_: i changed it to true
[06:37:13] <Lewix> not self explanatory
[06:37:20] <sacho_> no, change it to the domain you want to allow.
[06:37:31] *** DrAwesomeClaws has quit IRC
[06:38:45] <wafflej0ck_> Lewix: yeah it expects either a domain or * wildcard for any domain
[06:39:36] <Lewix> wafflej0ck_: i used *
[06:39:49] *** deanclkclk has joined #angularjs
[06:40:03] *** jaydubya has quit IRC
[06:40:17] *** Beatzebub__ has quit IRC
[06:40:23] *** grantfunke_ has joined #angularjs
[06:40:32] <sacho_> so use the domain now.
[06:40:38] *** squeakytoy2 has quit IRC
[06:40:39] *** jaydubya has joined #angularjs
[06:41:25] *** squeakytoy has joined #angularjs
[06:41:53] *** emmesswhy has quit IRC
[06:43:05] <wafflej0ck_> roadrunneratwast: if you don't control the server there isn't really anything you can do about it but ask for the headers to be added, you may be able to use JSONP or proxy the data but insofar as direct solutions to the CORS problem adding the headers to allow certain types of requests is needed
[06:45:09] *** jaydubya has quit IRC
[06:45:26] *** BillCriswell has quit IRC
[06:45:30] *** JoshGlzBrk has joined #angularjs
[06:47:40] *** SahanH has quit IRC
[06:47:48] *** SahanH has joined #angularjs
[06:50:42] *** richiebkr has quit IRC
[06:54:46] *** H1FuelCell has joined #angularjs
[06:57:37] *** deanclkclk has quit IRC
[06:58:12] *** comma8 has joined #angularjs
[06:58:17] *** bbankes has joined #angularjs
[06:59:59] *** roadrunneratwast has quit IRC
[07:00:06] *** squeakytoy2 has joined #angularjs
[07:00:15] *** BlinkyBill has joined #angularjs
[07:00:24] *** DrAwesomeClaws has joined #angularjs
[07:01:55] *** squeakytoy has quit IRC
[07:03:50] *** SergioFilhow__ has joined #angularjs
[07:04:31] *** Prjio has joined #angularjs
[07:04:38] *** jimmyy has quit IRC
[07:06:22] *** {DV8} has quit IRC
[07:08:33] *** SergioFilhow__ has quit IRC
[07:09:51] *** cthrax has joined #angularjs
[07:09:53] *** IvailoStoianov has joined #angularjs
[07:10:52] *** Prjio has quit IRC
[07:11:26] *** dseitz has joined #angularjs
[07:12:38] *** dacuca has quit IRC
[07:13:54] *** squeakytoy2 has quit IRC
[07:14:22] *** sirsirsir has joined #angularjs
[07:14:28] *** katsh has joined #angularjs
[07:15:07] *** squeakytoy2 has joined #angularjs
[07:19:01] *** sirsirsir has quit IRC
[07:20:03] *** caitp- has joined #angularjs
[07:20:33] *** AimerPaddle has joined #angularjs
[07:20:34] *** BlinkyBill has quit IRC
[07:21:45] <SexualRickshaw> Okay, so I have a small angular app that (for now) prints out a list of employees from a JSON file which has all of that logic handled by a factory and a service - I want to add in logic that would allow a user to add a non-persistent entry to said list, would I need to make a new factory for that or would I be able to include the logic inside of my list factory?
[07:22:48] <freelyfred> Probably the same factory, as that factory is working as a model?
[07:23:17] *** asta_ has joined #angularjs
[07:23:48] <SexualRickshaw> Yes, that it is
[07:24:18] *** NormySan has joined #angularjs
[07:24:32] <SexualRickshaw> The factory mainly is about taking the information from the JSON file and populating an array, along with some logic to fill in any "gaps" that may be in a entry
[07:24:38] *** one0one has quit IRC
[07:25:01] <SexualRickshaw> I can link a plunker that has all the code in it if you want to see it
[07:25:06] *** caitp- has quit IRC
[07:25:49] <asta_> Hoping someone can help me figure this out. I have a list of songs displayed with ng-repeat. A button next to each song passes the "song" object to a modal. I'm able to see the song in the console.log from the ModalInstanceCtrl, but I can't get parameters in the song to show up in the modal.
[07:26:58] *** dannyc has joined #angularjs
[07:28:17] *** tfennelly has joined #angularjs
[07:28:48] *** JoshGlzBrk has quit IRC
[07:29:41] *** dannyc_ has joined #angularjs
[07:30:02] *** robdubya has joined #angularjs
[07:32:37] *** tfennelly has quit IRC
[07:34:00] *** narutimateum has joined #angularjs
[07:34:02] *** delisa has quit IRC
[07:34:06] *** dannyc_ has quit IRC
[07:36:58] *** mackstuti has joined #angularjs
[07:37:00] *** Beatzebub__ has joined #angularjs
[07:37:11] *** discgo has joined #angularjs
[07:38:47] *** k-dawg has quit IRC
[07:39:02] *** nya has joined #angularjs
[07:40:42] *** Beatzebub_ has quit IRC
[07:42:09] *** mzabriskie has quit IRC
[07:42:40] *** emocakes has joined #angularjs
[07:43:39] <snkcld> asta_: i would keep prepending $parent. to the reference to the variable
[07:43:46] <snkcld> until you see what youre looking for haha
[07:43:49] *** k-dawg has joined #angularjs
[07:44:58] <asta_> snkcld: I don't want the parent scope, though. I want the child scope (because I need the individulal song, not the array of songs.)
[07:45:27] <asta_> I just can't see how to get the song object out of the modal controller.
[07:46:57] *** DrAwesomeClaws has quit IRC
[07:47:49] *** Oxynum has joined #angularjs
[07:51:28] *** amphetamines has quit IRC
[07:51:49] *** asdofindia has joined #angularjs
[07:52:14] *** Oxynum has quit IRC
[07:53:07] *** JoshGlzBrk has joined #angularjs
[07:53:22] *** Dixty has quit IRC
[07:53:41] *** narutimateum has quit IRC
[07:53:58] *** DrAwesomeClaws has joined #angularjs
[07:54:02] *** eago has joined #angularjs
[07:57:19] *** cthrax has quit IRC
[07:59:26] *** xdissent has joined #angularjs
[07:59:40] *** kentaro0919 has joined #angularjs
[07:59:56] *** Hari_ has joined #angularjs
[08:00:16] *** dannyc has quit IRC
[08:01:17] <Hari_> hi
[08:01:52] <Hari_> is it possible to have the ng-switch-when as a variable
[08:01:55] <Hari_> ?
[08:02:22] <Hari_> when i tried, the below ng-repeat is not loading the data
[08:02:22] *** jimmyy has joined #angularjs
[08:02:32] *** jonr22 has joined #angularjs
[08:02:35] *** ProLoser has quit IRC
[08:02:36] *** jimmyy has quit IRC
[08:03:09] *** ProLoser has joined #angularjs
[08:03:15] *** jimmyy has joined #angularjs
[08:03:22] *** ProLoser has quit IRC
[08:03:30] *** jimmyy has quit IRC
[08:03:34] *** ProLoser has joined #angularjs
[08:03:57] *** squeakytoy2 has quit IRC
[08:04:08] *** jimmyy has joined #angularjs
[08:04:16] *** jonr22 has quit IRC
[08:04:21] *** jimmyy has quit IRC
[08:04:35] *** jonr22 has joined #angularjs
[08:04:58] *** minimoo1 has joined #angularjs
[08:05:00] *** jimmyy has joined #angularjs
[08:05:13] *** squeakytoy2 has joined #angularjs
[08:05:15] *** jimmyy has quit IRC
[08:05:16] *** grantfunke_ has quit IRC
[08:06:06] *** jimmyy has joined #angularjs
[08:06:23] *** jonr22 has quit IRC
[08:06:40] *** jonr22 has joined #angularjs
[08:07:07] *** Prjio has joined #angularjs
[08:07:10] *** mylord has joined #angularjs
[08:07:18] *** bbankes has quit IRC
[08:07:36] *** joroc has quit IRC
[08:07:39] *** thumpba has joined #angularjs
[08:09:08] *** cliluw has quit IRC
[08:09:28] *** cliluw has joined #angularjs
[08:09:36] *** TheAceOfHearts has joined #angularjs
[08:09:38] *** asheinfeld has joined #angularjs
[08:10:28] *** Somatt_wrk has quit IRC
[08:10:56] *** Somatt_wrk has joined #angularjs
[08:11:04] *** morenoh149 has joined #angularjs
[08:11:32] *** Prjio has quit IRC
[08:12:05] *** thumpba has quit IRC
[08:12:37] *** bundledavid has joined #angularjs
[08:13:54] *** VerbGarden has joined #angularjs
[08:15:11] *** asheinfeld has quit IRC
[08:15:25] *** wex13r has quit IRC
[08:15:55] *** woah has joined #angularjs
[08:16:34] *** yelvert has joined #angularjs
[08:16:44] *** bundledavid has quit IRC
[08:16:48] *** kostiak has joined #angularjs
[08:17:58] *** adpirz has joined #angularjs
[08:18:14] *** narutimateum has joined #angularjs
[08:18:15] *** oste has quit IRC
[08:18:26] *** jmichaelward has joined #angularjs
[08:20:53] *** yelvert has quit IRC
[08:21:41] *** slopjong has quit IRC
[08:22:01] *** roven has joined #angularjs
[08:22:22] *** adpirz has quit IRC
[08:23:19] *** jmichaelward has quit IRC
[08:23:59] *** squeakytoy2 has quit IRC
[08:25:07] *** jonr22 has quit IRC
[08:25:14] *** squeakytoy2 has joined #angularjs
[08:25:36] *** jonr22 has joined #angularjs
[08:25:55] *** ome has joined #angularjs
[08:26:04] *** grantfunke_ has joined #angularjs
[08:27:03] *** roven has quit IRC
[08:27:07] *** Shrooms` has joined #angularjs
[08:27:34] *** jonr22 has quit IRC
[08:27:37] *** jonr2219 has joined #angularjs
[08:28:48] *** jaydubya has joined #angularjs
[08:28:53] *** Shrooms` has quit IRC
[08:29:16] *** Shrooms has joined #angularjs
[08:29:26] *** chabier has joined #angularjs
[08:30:24] *** dannyc has joined #angularjs
[08:31:49] *** jrvlima has joined #angularjs
[08:33:23] *** jaydubya has quit IRC
[08:35:02] *** joroc has joined #angularjs
[08:35:13] *** jonr2219 has quit IRC
[08:35:16] *** dannyc has quit IRC
[08:35:41] *** jonr22 has joined #angularjs
[08:36:43] *** Hari_ has quit IRC
[08:36:50] *** gurke_ has joined #angularjs
[08:36:53] *** minimoo1 has quit IRC
[08:37:07] *** Beatzebub_ has joined #angularjs
[08:37:12] *** minimoo1 has joined #angularjs
[08:37:18] *** gurke_ has quit IRC
[08:37:56] *** gurke_ has joined #angularjs
[08:38:51] *** chabier has quit IRC
[08:38:56] *** ron1 has quit IRC
[08:39:57] *** minimoo1 has joined #angularjs
[08:40:17] <sacho_> asta_, make a plunker.
[08:40:51] *** chabier has joined #angularjs
[08:40:53] *** Beatzebub__ has quit IRC
[08:41:17] *** Beatzebub_ has quit IRC
[08:42:16] *** joroc has joined #angularjs
[08:42:50] *** squeakytoy has joined #angularjs
[08:43:10] <asta_> http://plnkr.co/edit/a6E1Cq6wHtxDaoR5KSz7?p=catalogue
[08:44:27] *** squeakytoy2 has quit IRC
[08:44:51] *** joroc has joined #angularjs
[08:44:54] *** minimoo1 has quit IRC
[08:45:08] *** discgo has quit IRC
[08:46:21] *** H1FuelCell has quit IRC
[08:47:08] *** minimoo1 has joined #angularjs
[08:47:25] *** jonr22 has quit IRC
[08:47:45] *** squeakytoy2 has joined #angularjs
[08:47:46] *** minimoo1 has quit IRC
[08:48:03] *** jonr22 has joined #angularjs
[08:48:53] *** Oxynum has joined #angularjs
[08:49:50] *** jonr22 has quit IRC
[08:49:57] *** squeakytoy has quit IRC
[08:50:11] *** jonr22 has joined #angularjs
[08:50:18] *** minimoo1 has joined #angularjs
[08:50:41] <asta_> snkcld: not sure if you need more code, I'm pretty sure the issue is here and I'm just doing it wrong because I'm new to Angular.
[08:50:43] *** minimoo1 has quit IRC
[08:50:57] *** caitp- has joined #angularjs
[08:51:30] *** mary5030 has joined #angularjs
[08:51:34] *** jonr22 has quit IRC
[08:51:39] <sacho_> well, that code doesn't run, at all
[08:51:46] <sacho_> but your likely issue is defining functions in a loop
[08:52:03] *** tfennelly has joined #angularjs
[08:52:09] *** jonr22 has joined #angularjs
[08:52:11] <sacho_> move the open outside
[08:52:27] *** renlo has joined #angularjs
[08:52:54] *** SergioFilhow__ has joined #angularjs
[08:52:54] <asta_> You know, I just got it to work by adding $scope.song=song;
[08:53:07] *** Una has quit IRC
[08:53:10] *** minimoo1 has joined #angularjs
[08:53:14] <asta_> I could have sworn I'd tried that earlier.
[08:53:17] *** Oxynum has quit IRC
[08:53:19] *** minimoo1 has quit IRC
[08:53:36] *** AimerPaddle has quit IRC
[08:54:03] *** jonr22 has quit IRC
[08:54:13] *** jonr22 has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:29] *** caitp- has quit IRC
[08:56:12] *** minimoo1 has joined #angularjs
[08:56:52] *** lemur has quit IRC
[08:57:19] *** SergioFilhow__ has quit IRC
[08:57:20] *** mary5030 has quit IRC
[08:57:27] *** lemur has joined #angularjs
[08:57:39] *** jonr22 has quit IRC
[08:57:42] *** dannyc has joined #angularjs
[08:57:48] *** Shrooms has quit IRC
[08:57:55] *** mary5030 has joined #angularjs
[08:58:08] *** jonr22 has joined #angularjs
[08:58:11] *** xdissent has quit IRC
[08:58:22] *** chabier has quit IRC
[08:59:58] *** trustyhank has quit IRC
[09:00:03] *** jonr22 has quit IRC
[09:00:11] *** jonr2219 has joined #angularjs
[09:00:49] *** mtsr has joined #angularjs
[09:01:09] *** jrvlima has quit IRC
[09:02:02] *** lemur has quit IRC
[09:02:14] *** mary5030 has quit IRC
[09:03:08] *** sirsirsir has joined #angularjs
[09:06:00] *** jonr2219 has quit IRC
[09:06:26] *** jonr22 has joined #angularjs
[09:06:34] *** morenoh149 has quit IRC
[09:06:51] *** Shrooms has joined #angularjs
[09:07:28] *** sirsirsir has quit IRC
[09:07:49] *** squeakytoy has joined #angularjs
[09:07:54] *** Prjio has joined #angularjs
[09:08:01] *** asta_ has quit IRC
[09:08:15] *** jonr22 has quit IRC
[09:08:29] *** jonr22 has joined #angularjs
[09:09:01] *** e0ipso|away is now known as e0ipso
[09:09:57] *** squeakytoy2 has quit IRC
[09:10:14] *** ceephax has joined #angularjs
[09:10:28] *** symmetric has quit IRC
[09:11:56] *** lexek__ has joined #angularjs
[09:12:14] *** asheinfeld has joined #angularjs
[09:12:20] *** mtsr has quit IRC
[09:12:21] *** Prjio has quit IRC
[09:12:49] *** e0ipso is now known as e0ipso|away
[09:12:58] *** Oxynum has joined #angularjs
[09:14:04] *** e0ipso|away is now known as e0ipso
[09:14:04] *** jonr22 has quit IRC
[09:14:28] *** jonr22 has joined #angularjs
[09:15:21] *** snurfery has quit IRC
[09:16:20] *** jonr22 has quit IRC
[09:16:30] *** jonr22 has joined #angularjs
[09:16:50] *** asheinfeld has quit IRC
[09:17:59] *** chabier has joined #angularjs
[09:18:32] *** jonr22 has quit IRC
[09:18:39] *** jonr2219 has joined #angularjs
[09:18:45] *** opiates has joined #angularjs
[09:18:53] *** lexek__ has quit IRC
[09:19:31] *** kentaro0919 has quit IRC
[09:19:44] *** mtsr has joined #angularjs
[09:20:36] *** jonr2219 has quit IRC
[09:20:42] *** jonr22 has joined #angularjs
[09:25:40] *** Shrooms has quit IRC
[09:26:05] *** sahbeewah has joined #angularjs
[09:26:14] *** jonr22 has quit IRC
[09:26:40] *** jonr22 has joined #angularjs
[09:28:41] *** jonr22 has quit IRC
[09:28:42] *** lemur has joined #angularjs
[09:28:44] *** jonr2219 has joined #angularjs
[09:30:39] *** jonr2219 has quit IRC
[09:31:06] *** dannyc has quit IRC
[09:31:08] *** jonr22 has joined #angularjs
[09:31:13] *** dannyc has joined #angularjs
[09:32:40] *** NoNMaDDeN has quit IRC
[09:32:52] *** jonr22 has quit IRC
[09:32:54] *** jonr2219 has joined #angularjs
[09:33:57] *** cheef has joined #angularjs
[09:34:02] *** mackstuti has quit IRC
[09:34:06] *** Shrooms has joined #angularjs
[09:34:52] *** jonr2219 has quit IRC
[09:34:55] *** jonr22 has joined #angularjs
[09:35:03] *** joroc has joined #angularjs
[09:35:41] *** dannyc has quit IRC
[09:36:57] *** mundschen has joined #angularjs
[09:36:58] *** jonr2219 has joined #angularjs
[09:37:06] *** Oxynum has quit IRC
[09:37:15] *** jonr22 has quit IRC
[09:37:48] *** NoNMaDDeN has joined #angularjs
[09:38:33] *** jonr2219 has quit IRC
[09:38:38] *** Lewix has quit IRC
[09:38:46] *** minimoo1 has quit IRC
[09:38:58] *** shpoont has joined #angularjs
[09:39:01] *** jonr22 has joined #angularjs
[09:39:06] *** martianboy has joined #angularjs
[09:39:15] *** dseitz has quit IRC
[09:39:20] *** grantfunke_ has quit IRC
[09:39:53] *** grantfunke_ has joined #angularjs
[09:40:32] *** dseitz has joined #angularjs
[09:40:34] *** jonr22 has quit IRC
[09:40:52] *** webus has joined #angularjs
[09:41:07] *** mundschen has quit IRC
[09:41:13] *** jonr22 has joined #angularjs
[09:41:46] *** DrMabuse has joined #angularjs
[09:43:51] *** perras has joined #angularjs
[09:44:33] *** grantfunke_ has quit IRC
[09:44:39] *** jonr22 has quit IRC
[09:45:07] *** jonr22 has joined #angularjs
[09:45:12] *** sahbeewah has quit IRC
[09:46:55] *** jonr22 has quit IRC
[09:46:59] *** gunn_ has joined #angularjs
[09:47:10] *** jonr22 has joined #angularjs
[09:47:22] *** gunn has quit IRC
[09:47:54] *** nocturne777 has quit IRC
[09:48:05] *** alinou has joined #angularjs
[09:49:09] *** jonr22 has quit IRC
[09:49:14] *** jonr2219 has joined #angularjs
[09:50:09] *** tomengland_mbp has joined #angularjs
[09:51:05] *** IvailoStoianov has quit IRC
[09:51:48] *** DrAwesomeClaws has quit IRC
[09:51:51] <Grokling_> SexualRickshaw: Are you still hacking away?
[09:52:48] *** jonr2219 has quit IRC
[09:53:17] *** jonr22 has joined #angularjs
[09:53:38] *** IvailoStoianov has joined #angularjs
[09:54:06] <SexualRickshaw> Yeah, kinda/sorta, I'm also trying to figure out why the sorting isn't working
[09:54:55] <Grokling_> Did you get your non-persisting model thing solved?
[09:54:56] *** jonr22 has quit IRC
[09:55:20] *** jonr22 has joined #angularjs
[09:55:37] <SexualRickshaw> No, not yet, since no one replied to it
[09:55:49] *** mtsr has quit IRC
[09:55:55] <Grokling_> What was the idea there
[09:55:58] <Grokling_> ?
[09:56:17] *** sahbeewah has joined #angularjs
[09:56:17] *** kapil__ has joined #angularjs
[09:56:33] *** thumpba has joined #angularjs
[09:57:21] *** Nivag_ has joined #angularjs
[09:57:36] <SexualRickshaw> Okay, I know the logic I would need to push non-persistent data onto the employees array (or I think), I'm just not sure where to *put* it
[09:57:44] *** bealtine has joined #angularjs
[09:58:20] <Grokling_> Why does it need to be non-persisting? What does that mean to you?
[09:58:33] *** Prjio has joined #angularjs
[09:58:40] <SexualRickshaw> As in it only stays in the view until you refresh the page
[09:59:04] <SexualRickshaw> and I want it in there mainly as a test, for now
[09:59:23] *** jonr22 has quit IRC
[09:59:25] *** jonr2219 has joined #angularjs
[09:59:44] <Grokling_> So, it can still hang out in your employeeList cache in the factory, just not in the view to start with?
[09:59:52] <SexualRickshaw> Yes
[10:00:40] <SexualRickshaw> You'd just push a new employee onto that cache, right?
[10:01:06] <Grokling_> Okay, So with your resolve (which you were faking in the controller for now) you populate some context.array with the stuff you want initially. Then, when you add your new ones, just push them into that array.
[10:01:07] *** thumpba has quit IRC
[10:01:33] *** bundledavid has joined #angularjs
[10:01:38] <SexualRickshaw> So I could handle it through the service... or is that a bad idea?
[10:01:43] *** mtsr has joined #angularjs
[10:01:51] <Grokling_> It's the right idea.
[10:02:19] <Grokling_> I'd probably hack something up in the controller though if I'm perfectly honest!
[10:02:30] *** JoshGlzBrk has quit IRC
[10:02:50] <SexualRickshaw> Yeah, since we load in the empList array through the context there
[10:03:12] *** tomengland_mbp has quit IRC
[10:03:17] *** josh-k has joined #angularjs
[10:03:44] <Grokling_> Then, I'd go back and make a factory method that did it for me. I have a bunch of functions in my context factory to do that sort of stuff. I have a context.activate object with those functions in it.
[10:03:48] *** mtsr has quit IRC
[10:03:55] *** sirsirsir has joined #angularjs
[10:04:23] <SexualRickshaw> So would I have to create another instance of the empList array in that second factory?
[10:05:03] *** minimoo1 has joined #angularjs
[10:05:09] <Grokling_> No - you'd leave your empList as it is. Make another array in your context factory, and push the relevant stuff into there.
[10:05:15] *** mtsr has joined #angularjs
[10:05:39] <SexualRickshaw> Then concatanate the arrays?
[10:05:42] *** bundledavid has quit IRC
[10:06:06] <Grokling_> The main reason I use the context factory pattern is so I can create a collection of things, and have that consistent between states/views.
[10:06:22] <Grokling_> Have you kept your plunker up to date?
[10:06:44] <SexualRickshaw> Yeah, I haven't really touched the code much since then anyways
[10:06:53] *** joroc has quit IRC
[10:06:53] <SexualRickshaw> and I figured out what's causing the sort to break
[10:07:04] *** adpirz has joined #angularjs
[10:07:05] <Grokling_> Do tell.. I'm curious about that too.
[10:07:06] <SexualRickshaw> It's because of the way the values initially get loaded into the array
[10:07:16] *** jmichaelward has joined #angularjs
[10:07:19] <SexualRickshaw> I changed it from id to name, and it was properly sorted that way
[10:07:44] *** cheef has quit IRC
[10:07:52] <Grokling_> stream that plunker again?
[10:08:04] *** Lewix has joined #angularjs
[10:08:04] *** Lewix has joined #angularjs
[10:08:15] *** josh-k has quit IRC
[10:08:19] *** mtsr has quit IRC
[10:08:42] *** perras has quit IRC
[10:08:44] *** mary5030 has joined #angularjs
[10:08:45] *** mtsr has joined #angularjs
[10:08:53] *** sirsirsir has quit IRC
[10:08:55] <SexualRickshaw> http://plnkr.co/edit/?p=streamer&s=yMQnS2fL8b9kP9ES
[10:09:06] *** storkme has left #angularjs
[10:09:35] *** jonr22 has joined #angularjs
[10:09:43] <SexualRickshaw> But as you see, I just changed the self.id to self.name, and it sorted the array by name
[10:09:47] *** jonr2219 has quit IRC
[10:10:07] *** SahanH has quit IRC
[10:10:11] *** rhp has joined #angularjs
[10:10:40] <Grokling_> I have a theory.. Let me experiment for a moment..
[10:11:19] *** jonr22 has quit IRC
[10:11:22] *** opiates has quit IRC
[10:11:27] *** versteeg has joined #angularjs
[10:11:33] *** adpirz has quit IRC
[10:11:38] *** jonr22 has joined #angularjs
[10:11:42] *** versteeg has quit IRC
[10:11:44] <Grokling_> What the! I can't type into the plunker. Every keypress is a newline..
[10:12:00] *** mtsr has quit IRC
[10:12:09] *** jmichaelward has quit IRC
[10:12:29] *** edy has joined #angularjs
[10:12:50] *** yelvert has joined #angularjs
[10:12:52] *** asheinfeld has joined #angularjs
[10:13:15] <SexualRickshaw> Let me try forking it and then starting collab from there
[10:13:17] *** jonr22 has quit IRC
[10:13:39] *** jonr22 has joined #angularjs
[10:13:42] *** mary5030 has quit IRC
[10:13:56] <Grokling_> It's really screwy! I refreshed, and now I can type, but it double enters sometimes.
[10:14:10] <SexualRickshaw> Weird, it shows you as two instances for some reason
[10:14:39] <Grokling_> Oh.. Did you start the stream in 'presenter' mode?
[10:15:00] <SexualRickshaw> I just clicked on the collaboration button
[10:15:14] *** jonr22 has quit IRC
[10:15:43] *** jonr22 has joined #angularjs
[10:15:57] <SexualRickshaw> I just reset it into public mode
[10:16:16] *** cakirke has joined #angularjs
[10:16:16] <Grokling_> Refreshing..
[10:16:19] *** Prjio has quit IRC
[10:17:02] <SexualRickshaw> Any luck?
[10:17:12] *** stonge has joined #angularjs
[10:17:25] <Grokling_> Nope. It's still being dumb. I'm going to fork it and try streaming from my end.
[10:17:45] *** yelvert has quit IRC
[10:17:49] *** stonge has quit IRC
[10:17:57] *** jaydubya has joined #angularjs
[10:18:11] *** jonr2219 has joined #angularjs
[10:18:16] *** jonr22 has quit IRC
[10:18:21] *** asheinfeld has quit IRC
[10:18:47] *** mrru has joined #angularjs
[10:20:11] *** jonr2219 has quit IRC
[10:20:11] *** mtsr has joined #angularjs
[10:20:15] *** jonr22 has joined #angularjs
[10:20:39] *** paletta has joined #angularjs
[10:20:55] <SexualRickshaw> Any luck with that?
[10:21:01] *** paletta has quit IRC
[10:21:26] <Grokling_> Yeah. Fixed the sorting.
[10:21:46] *** cheef has joined #angularjs
[10:22:11] <SexualRickshaw> Link to your stream?
[10:22:13] <Grokling_> Because empList is a map, it can't sort it. Make it into an array, and the filter works again.
[10:22:17] *** jonr2219 has joined #angularjs
[10:22:18] *** jonr22 has quit IRC
[10:22:23] *** jaydubya has quit IRC
[10:22:27] <Grokling_> http://plnkr.co/edit/?p=streamer&s=ZqoWAbdZn3QNcf4k
[10:23:00] *** Lewix has quit IRC
[10:23:04] *** mtsr has quit IRC
[10:23:43] *** birnell has joined #angularjs
[10:24:05] *** jonr2219 has quit IRC
[10:24:20] *** jonr22 has joined #angularjs
[10:24:59] *** roven has joined #angularjs
[10:25:14] *** cheef has quit IRC
[10:26:14] *** cheef has joined #angularjs
[10:27:44] *** dannyc has joined #angularjs
[10:27:55] *** charuru has quit IRC
[10:28:25] *** jonr2219 has joined #angularjs
[10:28:30] *** birnell has quit IRC
[10:28:33] *** jonr22 has quit IRC
[10:29:03] *** Lewix has joined #angularjs
[10:29:17] *** phzon has joined #angularjs
[10:29:23] *** roven has quit IRC
[10:29:26] *** EricWeb has joined #angularjs
[10:30:11] *** jonr2219 has quit IRC
[10:30:26] *** jonr22 has joined #angularjs
[10:31:23] *** seacord has joined #angularjs
[10:31:43] *** ome has quit IRC
[10:31:58] *** dannyc_ has joined #angularjs
[10:33:28] *** seacord has quit IRC
[10:33:37] *** phzon has quit IRC
[10:33:50] *** chabier has quit IRC
[10:34:31] *** chabier has joined #angularjs
[10:34:56] *** joroc has joined #angularjs
[10:35:12] *** jonr22 has quit IRC
[10:36:04] *** Oxynum has joined #angularjs
[10:36:09] *** minimoo1 has quit IRC
[10:36:22] *** maginnis has joined #angularjs
[10:36:45] *** dannyc_ has quit IRC
[10:37:24] *** maginnis has quit IRC
[10:37:29] *** kostiak has quit IRC
[10:38:37] *** tfennelly has quit IRC
[10:39:47] <MalfaitRobin> anyone used datatables with angularjs?
[10:40:12] *** pickelsim has joined #angularjs
[10:40:24] <MalfaitRobin> I have rows, but it says it doesnt http://d.pr/i/1dxDK
[10:40:40] *** derrzza__ has joined #angularjs
[10:41:15] *** derrzza__ has quit IRC
[10:41:21] <SexualRickshaw> Grokling: Now if I wanted to use that add function with multiple paramaters, I'd just pass them in and then assign them that way, right?
[10:41:21] *** pickelsim has quit IRC
[10:41:36] *** renlo has quit IRC
[10:41:46] <Grokling_> Right.
[10:41:46] *** SergioFilhow__ has joined #angularjs
[10:41:58] <SexualRickshaw> DO you mind if I try to add that?
[10:42:12] *** saucey has joined #angularjs
[10:42:39] <Grokling_> The all.employees thing is annoying me.. I have to think about it seeing as it breaks in this use case.
[10:42:45] <Grokling_> help yourself.
[10:43:41] <MalfaitRobin> Grokling_ have you used datatables with angularjs?
[10:43:56] *** tarnus has joined #angularjs
[10:44:02] *** meinhart has joined #angularjs
[10:44:03] <Grokling_> MalfaitRobin: No, sorry. Never had a need yet.
[10:44:03] *** meinhart has quit IRC
[10:44:53] *** chabier has quit IRC
[10:45:27] <SexualRickshaw> So would I make up a form and attach a ng.model to each one to pull out the relevant info?
[10:46:18] *** SergioFilhow__ has quit IRC
[10:46:43] *** dinger has joined #angularjs
[10:46:53] *** Nivag_ has quit IRC
[10:46:57] *** ingsoc has joined #angularjs
[10:46:58] <Grokling_> Something like that. A modal would be nice I suppose.
[10:46:58] *** dinger has quit IRC
[10:47:05] *** saint-ron has quit IRC
[10:48:07] *** tjsail33 has joined #angularjs
[10:48:13] *** Lewix has quit IRC
[10:48:37] <tjsail33> anyone have recommendations for how to do nested comments in angular?
[10:48:40] *** tarnus has quit IRC
[10:49:17] *** IvailoStoianov has quit IRC
[10:49:47] *** reading has joined #angularjs
[10:50:34] <mylord> how can I change all my service calls to use ajax? currently i’m using: $http(..
[10:51:14] *** morenoh149 has joined #angularjs
[10:52:13] *** cheef has quit IRC
[10:52:51] *** balaski has joined #angularjs
[10:53:05] <Grokling_> mylord: Why would you want to do that?
[10:53:16] <Grokling_> the word 'Ungular' springs to mind..
[10:53:16] *** renlo_ has joined #angularjs
[10:54:18] *** IvailoStoianov has joined #angularjs
[10:54:31] <mylord> Grokling_: I want my app to have current content?
[10:54:44] <mylord> How should I do that?
[10:55:14] <Grokling_> $http is good. If you want to push stuff you your app, sockets.
[10:55:44] <mylord> Grokling_: what would the sockets call look like? and why shouldn’t i use it?
[10:55:53] *** morenoh149 has quit IRC
[10:55:55] *** byron has joined #angularjs
[10:56:38] <mylord> Grokling_: it might be bad to turn all my many $http calls to database all to sockets, as they’ll hold connection/use-batteries?
[10:56:39] *** byron has quit IRC
[10:57:04] *** cheef has joined #angularjs
[10:57:04] *** pushpak has joined #angularjs
[10:57:56] <Grokling_> They will keep connections - not sure about the battery thing though.
[10:58:16] <Grokling_> If you want realtime stuff, you either poll using $http and a timeout, or you use sockets.
[10:58:22] *** cheef has quit IRC
[10:58:23] <SexualRickshaw> Grokling: Due to the fact that we're using that Employees.all to get the information out to the array, we can't easily push to that one, correct?
[10:58:49] *** silo- has quit IRC
[10:59:08] <Grokling_> SexualRickshaw: We could, and that would be fine - expected even I guess..
[10:59:15] <mylord> Grokling_: I only need the sockets updating while the user has the app open (in foreground application).. is there a way to disable/enable?
[10:59:22] *** stefanell has joined #angularjs
[10:59:40] <SexualRickshaw> So we could do context.all.employees.push?
[10:59:41] *** stefanell has quit IRC
[11:00:20] <Grokling_> Context.all should ideally be a reference to the object in the Factory, and should update automatically. It's getting messed up by going through that function and converting to an array.
[11:00:30] <SexualRickshaw> Huh
[11:00:33] <mylord> Grokling_: nvm that i guess.. how about if user changes a tab (in browser or diff app in mobile) and changes back to your angularjs app, is there an on-resume, by which I can otherwise re-http get the content from server?
[11:00:38] *** cheef has joined #angularjs
[11:00:53] *** dannyc has quit IRC
[11:01:10] *** chabier has joined #angularjs
[11:01:49] <Grokling_> mylord: You can end a socket connection. You can open it again. There's likely some event that triggers when you enter a browser tab, but I don't know off the top of my head.
[11:02:07] <Grokling_> I'm not sure if it's even a problem!
[11:02:09] <SexualRickshaw> So is the array conversion throwing the sorting off as well?
[11:02:26] *** roman has joined #angularjs
[11:02:40] *** Lewix has joined #angularjs
[11:02:42] *** Rampages has quit IRC
[11:02:52] *** roman has quit IRC
[11:02:53] <Grokling_> SexualRickshaw: The orderBy filter expects an array. If we pass it an object, it stops working.
[11:03:09] <Grokling_> The array conversion is the only reason it's working.
[11:03:14] *** cheef has quit IRC
[11:03:46] *** Lewix has quit IRC
[11:04:04] *** Oxynum has quit IRC
[11:04:56] *** minimoo1 has joined #angularjs
[11:04:57] *** disorder20 has joined #angularjs
[11:05:08] <Grokling_> mylord: http://stackoverflow.com/questions/11789407/socket-connections-and-polling-which-is-a-better-solution-in-terms-of-battery-l?rq=1
[11:05:30] *** mccan has joined #angularjs
[11:06:10] <tjsail33> can you pass a callback to a function you cann in ng-click?
[11:07:01] *** mtsr has joined #angularjs
[11:07:21] *** sahbeewah has quit IRC
[11:07:29] <Grokling_> tjsail33: Did you meet promises yet?
[11:07:42] <tjsail33> no.... :/
[11:07:51] *** joroc has quit IRC
[11:08:01] <Grokling_> tldr: callbacks are dead. Long live promises..
[11:08:06] <Grokling_> !promises
[11:08:17] <Grokling_> !promise
[11:08:33] <Grokling_> Gah. Guess unibot doesn't know about promises either.
[11:08:34] *** belfiore has joined #angularjs
[11:08:59] <Grokling_> But, yes, you should be able to pass callbacks - it's just JS..
[11:09:04] *** ProLoser has quit IRC
[11:09:18] <tjsail33> hahaha. well i figured out how to do it with a callback. i was passing the fn with the parens, when i needed to just pass the ref
[11:09:25] *** mtsr has quit IRC
[11:10:24] *** mrkake has quit IRC
[11:10:25] *** shubhu has joined #angularjs
[11:10:57] <Grokling_> tjsail33: Really though, go and learn promises. It'll change your life.
[11:11:34] <tjsail33> yeah, im planning on it, i just jave a deadline tomorrow (tonight??) that i need to get a lot of work done by, and i dont think i'll have time to learn promises by thn
[11:11:35] <pontiki> is that a promise?
[11:11:38] *** meltzer has joined #angularjs
[11:11:41] *** robdubya has quit IRC
[11:11:50] *** alinou has quit IRC
[11:12:10] *** morenoh149 has joined #angularjs
[11:12:11] <SexualRickshaw> Could we modify that Context.revelant.employees.push call to push what's in the relevant array onto the regular Context.employees array?
[11:12:11] *** meltzer has quit IRC
[11:12:33] <Grokling_> Fair enough - stick to what you know when faced with deadlines. After that, though, make a point of seeking them out.
[11:13:24] <tjsail33> Grokling_: definitely agree.
[11:13:25] <Grokling_> SexualRickshaw: I don't think we have a Context.employees array at the moment?
[11:13:39] <SexualRickshaw> I meant Context.all.employees
[11:13:39] <tjsail33> pontiki: you can consider it one haha
[11:13:43] *** dseitz has quit IRC
[11:14:00] <pontiki> hee
[11:14:10] *** renlo_ has quit IRC
[11:14:37] *** pushpak has quit IRC
[11:15:16] *** asheinfeld has joined #angularjs
[11:15:20] *** yelvert has joined #angularjs
[11:15:21] <tjsail33> 5:15am, been coding for 16 hours straight now. my head hurts.
[11:15:33] *** yts has joined #angularjs
[11:15:34] <Grokling_> SexualRickshaw: Sure - push it wherever you like. That's the beauty of the Context pattern - you make the rules, and everything stays how you left it without you needing to go and find it all over again in your next state.
[11:15:55] <SexualRickshaw> So I could do Context.relevant.employees.push(Context.all.employees)?
[11:16:08] <Grokling_> tjsail33: Ouch. Chug some water/electrolyte. You're not done yet!
[11:16:20] <SexualRickshaw> or Context.all.employees.push(Context.relevant.employees)?
[11:16:48] <tjsail33> oh i know hahaha. i'm almost done building out my last feature, then i just have to fix up my nested comments directive, and add sockets to everything
[11:16:56] <Grokling_> SexualRickshaw: no - that wouldn't work. You'd end up with a element that was an array of employees...
[11:17:06] <SexualRickshaw> Hrm
[11:17:18] *** mrkake has joined #angularjs
[11:17:36] *** disorder20 has quit IRC
[11:17:46] *** dutkiewic has joined #angularjs
[11:18:21] <SexualRickshaw> Well, what about changing that context.relevant.employees.push(newEmp) to context.all.employees.push(newEmp)?
[11:18:25] <SexualRickshaw> Would that work?
[11:18:36] *** jmverges has joined #angularjs
[11:18:42] <Grokling_> SexualRickshaw: You need an array.concat function I think.
[11:19:18] <Grokling_> SexualRickshaw: Yea, that would work - you just have to decide what arrays mean what to you - remember at the start of this discussion, you didn't want them to persist..
[11:19:37] <Grokling_> which arrays mean what.
[11:19:38] *** goodenough has quit IRC
[11:19:50] <Grokling_> Still clear as mud. Sorry.
[11:19:54] <SexualRickshaw> So would the relevant array be wiped with every refresh?
[11:20:06] <tjsail33> what do you guys think of the sugar.js library for all of their array functinality?
[11:20:15] <tjsail33> http://sugarjs.com
[11:20:27] *** yelvert has quit IRC
[11:20:41] *** asheinfeld has quit IRC
[11:20:50] *** winbush has joined #angularjs
[11:20:54] <Grokling_> SexualRickshaw: Our resolve stuff could blow that array away, and refresh it, yes.
[11:20:54] *** winbush has quit IRC
[11:21:18] <Grokling_> You have to decide how it should work - it's flexible.
[11:21:42] *** TripTastic has joined #angularjs
[11:22:07] <Grokling_> tjsail33: I've never looked. I just polyfill the es5/6 methods, and that's been enough for me so far.
[11:22:12] *** Shrooms has quit IRC
[11:22:20] <Grokling_> .find and .filter
[11:22:48] <tjsail33> Grokling_: interesting, i've never done that. i use the .filter, .map, .compact, .unique, and .flatten methods for days though
[11:23:15] <Grokling_> I have a couple of other special ones of my own that I've added in, but you won't find them in a library!
[11:23:30] <tjsail33> hahaha fair enough
[11:23:31] *** siegler has joined #angularjs
[11:23:41] <Grokling_> map is already there though?
[11:23:48] <Grokling_> and reduce..
[11:23:54] *** sss2500 has quit IRC
[11:24:13] <tjsail33> im used to the sugar versions hahaha.
[11:24:17] *** chabier has quit IRC
[11:24:44] <tjsail33> also, how would you go about implementing a directing that would show up very many times per page in the least obstructive way possible?
[11:24:54] <tjsail33> im trying to do upvotes for some posts on my site
[11:25:01] *** JBreit has quit IRC
[11:25:10] <Grokling_> I go ninja on it - only carry what you need. Those libraries always have spare stuff that never gets used.
[11:25:33] <SexualRickshaw> So I would assign the getAllEmployees array to something else, then the relevant array to something else, then use Context.all.employee as the concatenate the two arrays?
[11:26:12] *** goris has joined #angularjs
[11:26:13] <Grokling_> SexualRickshaw: I've always thought of the .all array as being a look-through to the Factory cache.
[11:26:13] *** goris has quit IRC
[11:26:19] *** seriema has joined #angularjs
[11:27:00] *** gunn_ has quit IRC
[11:27:16] <SexualRickshaw> and what's in the JSON currently is what's going to be in that cache, right?
[11:27:32] *** JERE has joined #angularjs
[11:27:50] <Grokling_> That, and any you add subsequently - it should auto update as instances are added.
[11:28:10] <Grokling_> Probably we need to revert it to just passing the object, and make a new context property that is an array.
[11:28:31] *** JayFK has joined #angularjs
[11:28:32] <Grokling_> You might not even care about it at all though in real life.
[11:28:52] *** emocakes has quit IRC
[11:28:53] *** starbird has joined #angularjs
[11:29:01] <SexualRickshaw> Well, if it helps me learn, that's what I care about
[11:29:32] *** Left_Turn has joined #angularjs
[11:29:33] *** gunn has joined #angularjs
[11:29:54] *** yts has quit IRC
[11:30:30] *** seriema has quit IRC
[11:30:38] *** chabier has joined #angularjs
[11:30:56] *** seriema has joined #angularjs
[11:31:12] *** cheef has joined #angularjs
[11:31:31] *** chabier has quit IRC
[11:31:34] *** stobiersk has joined #angularjs
[11:31:45] <SexualRickshaw> So would we just pass it loadedemployees or am I on the wrong track?
[11:31:45] *** stobiersk has quit IRC
[11:31:52] *** webus has quit IRC
[11:32:23] <Grokling_> Yeah - my implementation isn't a look-through either. I had a look, and I don't ever actually use the .all for anything.
[11:32:39] *** dannyc has joined #angularjs
[11:32:46] <SexualRickshaw> A look-through?
[11:33:06] <pontiki> what does "polyfill" mean? i've seen it used a few places now...
[11:33:09] <Grokling_> The guts of it is to make an array for sets of data that has a meaning tto your state. Push whatever that relevant data is, into that array, then use it.
[11:33:17] <pontiki> i keep thinking of filling polygons...
[11:33:37] *** MaxV has joined #angularjs
[11:33:38] <pontiki> but the places i've seen don't have anything to do with graphics
[11:34:07] *** jordandotdev has quit IRC
[11:34:08] *** chabier has joined #angularjs
[11:34:18] <Grokling_> pontiki: A polyfil is a piece of javascript that allows a browser which doesn't natively support a method, to have the same functionality. If the browser running the code already has the feature, it will ignore the polyfill.
[11:34:28] *** TyrfingMjolnir has quit IRC
[11:34:37] <pontiki> oh, huh
[11:34:38] *** cotto has joined #angularjs
[11:34:46] *** sirsirsir has joined #angularjs
[11:35:03] <Grokling_> So, it'll make it work everywhere (mostly) and if you find a browser with a native implementation, you get a small speed boost.
[11:35:09] <pontiki> so here's an article i was reading that used the term: http://www.smashingmagazine.com/2014/11/28/complete-polyfill-html5-details-element/
[11:35:34] *** joroc has joined #angularjs
[11:35:38] *** seriema has quit IRC
[11:35:42] <pontiki> what they're defining, then, for <details> is javascript to implement that, and that javascript *is* the polyfill, yes?
[11:35:59] <Grokling_> Yes.
[11:36:05] <pontiki> ok, now the term makes sense
[11:36:07] <pontiki> thanks
[11:36:22] <mylord> Grokling_: so now I just have something like this: $http({ method: 'GET', url: myUrl });
[11:36:33] <mylord> what’s the line to use websockets? or is it much more involved? how?
[11:36:42] *** VerbGarden has quit IRC
[11:36:44] *** aaaaaaaa has joined #angularjs
[11:36:56] <aaaaaaaa> test
[11:36:56] *** dannyc has quit IRC
[11:37:24] <Grokling_> mylord: Does your backend support sockets?
[11:37:39] <tjsail33> what is better - angular's ng-click or $(elem).on? i assume ng-click?
[11:37:46] <SexualRickshaw> God I feel stupid right now
[11:38:03] <Grokling_> mylord: look at socket.io for a library and examples.
[11:38:12] *** minimoo1 has quit IRC
[11:38:13] *** aaaaaaaa has left #angularjs
[11:38:14] <Grokling_> $(elem) is ungular.
[11:38:23] <tjsail33> alright, thats what i figured.
[11:38:35] <mylord> Grokling_: I think so — c# with EntityFramework
[11:38:35] <pontiki> "ungular" ;)
[11:38:48] <Grokling_> tjsail33: NFI.
[11:38:55] <tjsail33> NFI?
[11:39:01] <Grokling_> No Freaking Idea.
[11:39:06] *** sirsirsir has quit IRC
[11:39:38] *** TuRnaD0 has joined #angularjs
[11:39:50] <Grokling_> SexualRickshaw: What did you not see?
[11:39:57] <tjsail33> oh hahah
[11:40:00] *** ellenwood has joined #angularjs
[11:40:02] *** seriema has joined #angularjs
[11:40:58] <SexualRickshaw> A way to change all this, that's what I'm not seeing and it's frustrating me
[11:40:59] *** ellenwood has quit IRC
[11:41:37] *** jaydubya has joined #angularjs
[11:42:05] <Grokling_> Mmkay.. talk me through what you want to achieve..?
[11:42:48] <SexualRickshaw> I want to have that array that's loaded from the JSON be persistent, and have any entries that are added after the fact be non-persistent
[11:43:13] *** threesixes has joined #angularjs
[11:43:50] *** kinion has joined #angularjs
[11:44:01] <Grokling_> By which you mean, EVERYTHING will be in the empList, but only some stuff will be in the view initially?
[11:44:02] *** kinion has quit IRC
[11:44:12] *** rburns has joined #angularjs
[11:44:17] *** silo has joined #angularjs
[11:44:20] <Grokling_> Only some of the employees are 'relevant'?
[11:44:25] <SexualRickshaw> Yes
[11:44:36] *** DrMabuse has quit IRC
[11:45:23] *** thumpba has joined #angularjs
[11:45:26] <SexualRickshaw> If I that idea sounds incredibly stupid, I apologize
[11:45:40] *** chabier has quit IRC
[11:45:43] <Grokling_> So, you enter your state (resolve if you were doing it properly) with nothing. You load the JSON into your factory. Then find the employees who are 'relevant' and put them in an array.
[11:45:50] *** MaxV has quit IRC
[11:45:58] *** cakirke has quit IRC
[11:46:03] <Grokling_> Any employees you add after that you also put into that 'relevant' array.
[11:46:39] <Grokling_> Now, you leave the state, and come back. Your resolve runs again, and suddenly only the 'relevant' employees appear in your view.
[11:46:41] <SexualRickshaw> So would I need a Context.active.employee?
[11:47:23] <Grokling_> If you are interested in only one employee for some parts of your overall application context, that would make sense, yes.
[11:47:33] <SexualRickshaw> But I'm not
[11:47:47] <SexualRickshaw> and what I am not doing properly when it comes to the resolve?
[11:47:48] <Grokling_> Then don't. Because it wouldn't make sense ;-)
[11:48:16] <Grokling_> elucidate on the resolve issue?
[11:48:37] <SexualRickshaw> Well, you just said "You enter your state (resolve if you were doing it properly)"
[11:48:42] <Grokling_> Uh oh. It's getting late. I'm starting to use big words...
[11:48:49] <Grokling_> Oh right.
[11:48:49] <SexualRickshaw> and I took that to imply that I'm not doing it properly
[11:49:00] <SexualRickshaw> and you can use big words
[11:49:07] <SexualRickshaw> I have quite the lexicon myself
[11:49:30] <Grokling_> Nah - it's fine. But, if we were doing states, (ui-router) we wouldn't be doing that stuff in the controller, because that's not what controllers are for.
[11:49:34] *** ingsoc has quit IRC
[11:49:35] *** chilek has joined #angularjs
[11:49:55] *** thumpba has quit IRC
[11:49:56] *** chilek has quit IRC
[11:50:07] <SexualRickshaw> So would this be easier if I just started with an empty array and started adding things from there?
[11:50:26] *** bundledavid has joined #angularjs
[11:50:51] <Grokling_> Depends entirely on what you're wanting to achieve. Currently we're effectively starting with an empty array..
[11:51:24] <SexualRickshaw> Doing this without any "relevant" employees
[11:52:12] *** Foxandxss has joined #angularjs
[11:52:21] <Grokling_> What is this 'state' all about? What is the purpose of the screen?
[11:52:34] *** epantzar has joined #angularjs
[11:52:39] *** garnto has joined #angularjs
[11:52:51] <SexualRickshaw> Which state?
[11:53:24] *** beilabs_________ has quit IRC
[11:53:24] *** MaxV has joined #angularjs
[11:53:30] *** beilabs_________ has joined #angularjs
[11:54:13] *** emmesswhy has joined #angularjs
[11:54:46] *** jaydubya has quit IRC
[11:54:47] *** bundledavid has quit IRC
[11:55:20] *** jaubert has joined #angularjs
[11:55:37] <SexualRickshaw> Which state you referring to?
[11:55:37] *** jaubert has quit IRC
[11:55:54] *** adpirz has joined #angularjs
[11:56:09] *** jmichaelward has joined #angularjs
[11:56:09] *** Shrooms has joined #angularjs
[11:56:10] *** Shrooms has joined #angularjs
[11:56:30] *** emmesswhy has quit IRC
[11:57:23] <SexualRickshaw> Because all this is a simple clock-in (and maybe eventually clock-out) system that I thought I'd try to develop as a first angular app, that's all it is
[11:57:26] *** SergioFilhow__ has joined #angularjs
[11:58:11] *** fabio has joined #angularjs
[11:58:24] *** steuart has joined #angularjs
[11:58:42] *** Evanion has joined #angularjs
[11:58:42] *** dannyc has joined #angularjs
[11:58:58] *** shubhu has quit IRC
[11:59:18] *** emmesswhy has joined #angularjs
[11:59:55] <Grokling_> Okay - so states are the name ui-router uses for 'pages' in an angular SPA.
[11:59:55] *** steuart has quit IRC
[12:00:17] *** jmichaelward has quit IRC
[12:00:23] *** adpirz has quit IRC
[12:00:30] <Grokling_> The 'state' of an application.
[12:00:35] *** renlo has joined #angularjs
[12:00:42] <SexualRickshaw> So would we need a route for adding users?
[12:01:05] <SexualRickshaw> That passes all the parameters
[12:01:29] <Grokling_> Probably - usually you'd try to separate functions so as to not confuse your users.
[12:02:01] <SexualRickshaw> So this would be rather difficult to do without setting up the approriate routes, I take it?
[12:02:04] *** SergioFilhow__ has quit IRC
[12:02:34] <Grokling_> You might combine adding and editing in one state, but it's most likely a different state than the one you use for clocking in and out.
[12:02:37] *** salzar has joined #angularjs
[12:03:09] <Grokling_> At some point (usually right as you decide you need more than one 'screen') you'll have to do routing, yes.
[12:03:09] *** salzar has quit IRC
[12:03:11] <SexualRickshaw> Well, there's no editing here, just adding and removing
[12:03:35] *** JERE has quit IRC
[12:04:11] <SexualRickshaw> (and sorting, but that can be done in the main view)
[12:04:12] <Grokling_> So, you clock in by entering your details? And clock out by clicking a button?
[12:04:20] <SexualRickshaw> Yes, exactly
[12:04:34] *** cheef has quit IRC
[12:04:38] <SexualRickshaw> Not the most elegant solution, but it's what I had in mind
[12:05:04] *** startupality has joined #angularjs
[12:05:24] *** MaxV has quit IRC
[12:05:29] *** minimoo1 has joined #angularjs
[12:05:46] <Grokling_> I'm thinking of a touch screen computer on a reception desk for visitors to use when they come to your site - a visitor register kind of thing?
[12:06:00] <SexualRickshaw> Yeah, in a way
[12:06:04] *** duvel has joined #angularjs
[12:06:21] <SexualRickshaw> But back when I worked retail years ago, we had a central check-in location
[12:06:43] <Grokling_> I'd do three states. One is a welcome/splash screen with two options, sign in, and sign out.
[12:07:10] <Grokling_> Sign in presents the form, and allows you to hit sign in. Then it bounces back to the first screen.
[12:07:27] <SexualRickshaw> Well, wouldn't it be nice to see if you were in a queue?
[12:07:37] *** joroc has quit IRC
[12:07:47] <Grokling_> Sign out shows a list of all signed in users, and allows them to click a button to sign out, then bounces back to the first screen.
[12:08:01] <SexualRickshaw> Ah, that's where the view we have right now comes in
[12:08:15] <Grokling_> SexualRickshaw: That's called scope creep. You may be shot for that.
[12:08:21] <SexualRickshaw> Great
[12:08:35] <SexualRickshaw> So I would have to essentially rework my app from the ground up?
[12:08:52] *** sirsirsir has joined #angularjs
[12:09:09] *** kennelley has joined #angularjs
[12:09:19] <Grokling_> Nope - you have both child states already, you just have to separate them, create the first state, and get some routing sorted out.
[12:09:20] *** kennelley has quit IRC
[12:09:31] <Grokling_> The factory and context stuff is all good to go.
[12:10:03] <SexualRickshaw> Okay, the first state is the Sign in/Sign out screen?
[12:10:20] *** IvailoStoianov has quit IRC
[12:10:50] <Grokling_> I'd make it 'Welcome to SexualRickshaw Enterprises Ltd' then some call-to-action buttons for sign in, sign out.
[12:11:10] <SexualRickshaw> So if I were to set up routes to that, would I bind the routes to the buttons or...?
[12:12:12] *** diercks has joined #angularjs
[12:12:20] <Grokling_> If you used ui-router (which I recommend) you'd add in a ui-sref attribute directive to your button, and point it to the appropriate state.
[12:12:20] *** diercks has quit IRC
[12:12:22] *** jcw has quit IRC
[12:12:34] <SexualRickshaw> Okay, would I need to install ui-router via npm?
[12:12:40] <Grokling_> Bower.
[12:12:57] *** sirsirsir has quit IRC
[12:13:07] <SexualRickshaw> Do you mind helping me figure how to properly do all this?
[12:13:17] *** jcw has joined #angularjs
[12:13:41] <Grokling_> I don't. But I do need to go to bed 73 minutes ago..
[12:13:48] *** TyrfingMjolnir has joined #angularjs
[12:13:56] <SexualRickshaw> Well, then we can deal with it tomorrow night, if you're available then
[12:14:05] <sacho_> it's a date, then
[12:14:42] <Grokling_> I'll probably be around. Although, sacho is pretty handy. (I don't think he uses ui-router though, but we won't hold that against him.)
[12:15:17] *** shanberg has joined #angularjs
[12:15:33] <SexualRickshaw> Well, you said to separate the child states
[12:15:33] *** shanberg has quit IRC
[12:15:56] <SexualRickshaw> So I would put the entry form in one view/state, then the list in a separate view/state, right?
[12:16:17] <Grokling_> Right.
[12:16:22] <Grokling_> At least, I would.
[12:16:28] *** eago has quit IRC
[12:16:49] <SexualRickshaw> and then I could use ui-router to do the proper routes, right?
[12:16:59] <SexualRickshaw> and each page could be handled by the same controller, right?
[12:17:12] <SexualRickshaw> page/state/view/whatever
[12:17:34] <Grokling_> You'd typically make a controller for each page/state/view/whatever
[12:17:56] *** asheinfeld has joined #angularjs
[12:18:21] *** bergesen has joined #angularjs
[12:18:34] *** TyrfingMjolnir has quit IRC
[12:18:37] <SexualRickshaw> Okay, I hate to keep you up more, but two controllers can feed off of the same factory, right? Or would I need to make another factory?
[12:18:37] *** bergesen has quit IRC
[12:19:04] <Grokling_> Definitely the same factory. That's the whole point of the factory/service.
[12:19:25] <SexualRickshaw> RIght, well, I'll read up on ui-router and routing (I've done that stuff in Rails, but it's been quite some time since then)
[12:19:26] *** TyrfingMjolnir has joined #angularjs
[12:19:37] *** jonr22 has joined #angularjs
[12:20:08] <SexualRickshaw> Anyways, as always, thanks for the help tonight
[12:20:35] <Grokling_> Okay - sounds like a plan. Might see you tomorrow perhaps (or later today for you).
[12:20:52] <SexualRickshaw> I'll definitely be around
[12:21:25] *** beckfield has joined #angularjs
[12:21:35] *** renlo has quit IRC
[12:21:57] * Grokling_ out.
[12:22:47] *** asheinfeld has quit IRC
[12:23:03] *** mtsr has joined #angularjs
[12:23:22] *** MaxV has joined #angularjs
[12:24:23] *** jonr22 has quit IRC
[12:24:52] *** westad has joined #angularjs
[12:25:16] *** fedenunez has joined #angularjs
[12:25:22] *** mamarilmanson has quit IRC
[12:27:16] *** Grokling_ has quit IRC
[12:28:19] *** mamarilmanson has joined #angularjs
[12:29:13] *** renlo has joined #angularjs
[12:29:39] *** kostiak has joined #angularjs
[12:30:58] *** Anjul has joined #angularjs
[12:31:04] <Anjul> hello. Anyone here ?
[12:31:13] <Anjul> I really need some help
[12:31:23] *** eason has joined #angularjs
[12:31:58] *** dannyc has quit IRC
[12:32:13] <Anjul> I have made a single page website in AngularJs. But one of the jquery functions is not working at all.
[12:32:50] *** tarnus has joined #angularjs
[12:33:17] <Anjul> Helloooo Anyone ?
[12:33:28] *** dannyc has joined #angularjs
[12:33:49] <sacho_> ok?
[12:34:29] <tjsail33> Anjul: what function?
[12:34:39] <Anjul> Let me elaborate.
[12:34:50] *** pfalmer has joined #angularjs
[12:35:01] *** pfalmer has quit IRC
[12:35:04] *** platonic has quit IRC
[12:35:30] *** joroc has joined #angularjs
[12:35:32] *** platonic has joined #angularjs
[12:35:49] <Anjul> I want a navigation element to get position fixed after it hits the top of the page.
[12:36:02] <Anjul> I tried using a jquery function but it doesnt work
[12:36:11] <Anjul> Let me give you the stackoverflow link to my question
[12:36:15] *** motionman has quit IRC
[12:36:22] <Anjul> http://stackoverflow.com/questions/27211881/how-to-fix-an-element-after-scroll-in-an-angularjs-webpage
[12:36:52] *** JayFK has quit IRC
[12:37:19] *** tarnus has quit IRC
[12:37:47] *** RangerRick has quit IRC
[12:37:50] *** dannyc has quit IRC
[12:38:09] *** RangerRick has joined #angularjs
[12:38:17] *** simison has joined #angularjs
[12:38:27] *** mamarilmanson2 has joined #angularjs
[12:38:33] *** simison has quit IRC
[12:38:39] <tjsail33> i think you should check out the answer you already got again. it will do what you want.
[12:39:00] *** mgustaf has joined #angularjs
[12:39:04] <Anjul> I cant seem to get it working. I tried again and again. Is it because I am working with different views ?
[12:39:25] *** minimoo1 has quit IRC
[12:39:27] *** mtsr has quit IRC
[12:39:37] *** platonic has quit IRC
[12:39:57] *** josh-k has joined #angularjs
[12:41:31] *** mamarilmanson has quit IRC
[12:41:44] *** holgersen has joined #angularjs
[12:41:54] *** woah has quit IRC
[12:42:20] *** holgersen has quit IRC
[12:42:23] <tjsail33> i think your best bet is to set up a plunkr with the code you have now
[12:43:06] *** fairuz has quit IRC
[12:43:38] <Anjul> ok
[12:43:41] <Anjul> I will do that
[12:44:09] *** woah has joined #angularjs
[12:44:20] *** sacho has joined #angularjs
[12:44:22] *** mtsr has joined #angularjs
[12:44:30] *** woah has quit IRC
[12:45:08] *** soee_ has joined #angularjs
[12:45:24] *** MaxV has quit IRC
[12:45:34] *** RedOrangeZ has joined #angularjs
[12:45:34] *** mcgalliar has joined #angularjs
[12:45:53] *** shpoont has quit IRC
[12:46:10] *** mgustaf has quit IRC
[12:46:37] *** sacho_ has quit IRC
[12:47:06] *** cakirke has joined #angularjs
[12:47:57] *** Anjul has quit IRC
[12:48:03] *** IvailoStoianov has joined #angularjs
[12:49:41] *** AimerPaddle has joined #angularjs
[12:50:58] *** ElysiumNet has joined #angularjs
[12:51:42] *** witosky has joined #angularjs
[12:52:02] *** ngbot has joined #angularjs
[12:52:02] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/PQNLnA
[12:52:02] <ngbot> angular.js/master dde613f Jesse Palmer: chore(docs): fix dangling links warning in $http API...
[12:52:02] *** ngbot has left #angularjs
[12:52:05] *** mgustaf has joined #angularjs
[12:53:42] *** freelyfred has quit IRC
[12:53:51] *** renlo has quit IRC
[12:54:16] *** AimerPaddle has quit IRC
[12:55:09] *** hounchell has joined #angularjs
[12:57:59] *** shpoont has joined #angularjs
[12:58:10] *** TuRnaD0 has quit IRC
[12:59:03] *** cotko has joined #angularjs
[12:59:18] *** josh-k has quit IRC
[12:59:22] *** Johnny13371337 has joined #angularjs
[12:59:27] *** Johnny13371337 has left #angularjs
[12:59:37] *** skyx_ has quit IRC
[13:00:54] *** Shrooms has quit IRC
[13:01:03] *** TheAceOfHearts has quit IRC
[13:01:40] *** litalien has joined #angularjs
[13:02:04] *** monientes has joined #angularjs
[13:03:00] *** boxmein has joined #angularjs
[13:04:03] *** mtsr has quit IRC
[13:04:06] *** fabio has quit IRC
[13:05:39] *** minimoo1 has joined #angularjs
[13:05:41] *** mkusher has joined #angularjs
[13:06:13] *** cotko has quit IRC
[13:06:19] *** platonic has joined #angularjs
[13:06:59] *** plato1 has joined #angularjs
[13:07:06] *** plato has quit IRC
[13:07:19] *** MahmoudFelfel has joined #angularjs
[13:07:53] *** eslaron has joined #angularjs
[13:08:02] <eslaron> Hello ^^
[13:08:35] <eslaron> Anybody knows how to keep data between states in ui-router?
[13:08:53] <bealtine> in a factory/service
[13:09:19] *** joroc has quit IRC
[13:09:35] *** sirsirsir has joined #angularjs
[13:09:37] *** mtsr has joined #angularjs
[13:10:14] <eslaron> Kinda expected that....
[13:10:32] <eslaron> So I need to write a service for every data?
[13:10:42] *** cotko has joined #angularjs
[13:11:03] <bealtine> you could keep lots of everydata in one factory
[13:13:12] <eslaron> Do you know how to build such a service?
[13:13:15] *** mtsr has quit IRC
[13:13:53] *** sirsirsir has quit IRC
[13:13:54] <bealtine> yes I do
[13:14:52] *** mtsr has joined #angularjs
[13:15:11] <eslaron> Could you please show me how to do it?
[13:16:06] *** lemur has quit IRC
[13:16:42] *** lemur has joined #angularjs
[13:16:58] *** yelvert has joined #angularjs
[13:17:22] <bealtine> there's loads of examples on https://docs.angularjs.org/guide/services
[13:19:35] *** asheinfeld has joined #angularjs
[13:21:04] *** DrMabuse has joined #angularjs
[13:21:10] *** lemur has quit IRC
[13:21:24] *** yelvert has quit IRC
[13:21:33] *** Oxynum has joined #angularjs
[13:21:40] <eslaron> I see'
[13:23:27] <eslaron> Well it's kinda stupid that ui-router can only use data in the current state and this data vanishes when you go to another state
[13:23:33] *** mkusher has quit IRC
[13:23:51] <bealtine> no its not
[13:24:10] *** Evanion has quit IRC
[13:24:18] *** asheinfeld has quit IRC
[13:24:47] <eslaron> why?
[13:25:06] <bealtine> because thats how it works
[13:25:18] *** Evanion has joined #angularjs
[13:25:36] <Foxandxss> so I am on the "users" state and I go to the "recent books" state and I have my "users" data in that "recent books" state
[13:25:41] <Foxandxss> does that make sense?
[13:25:53] *** DrMabuse has quit IRC
[13:25:57] <Foxandxss> I don't want the old data, I just want what I need on this current state
[13:26:33] <Foxandxss> or even, I could need some "users" data on "recent books" but maybe I don't go directly there and I hoop into 3 more states
[13:26:39] <Foxandxss> I don't want hell of data "saved"
[13:26:44] <tjsail33> question about tracking data... say you have an NxM grid, and each rowhas exactly one column selected. how would you track that?
[13:26:44] <Foxandxss> that is why you manage that yourself
[13:27:12] *** platonic has quit IRC
[13:27:18] *** OnkelTem has quit IRC
[13:27:30] *** despai has joined #angularjs
[13:27:33] *** Shrooms has joined #angularjs
[13:27:53] *** MaxV has joined #angularjs
[13:28:37] *** cliluw has quit IRC
[13:28:39] *** qdk has quit IRC
[13:28:48] *** dannyc has joined #angularjs
[13:29:02] *** OnkelTem has joined #angularjs
[13:29:06] *** cliluw has joined #angularjs
[13:31:39] *** Beatzebub has joined #angularjs
[13:32:24] *** DuelShark has joined #angularjs
[13:34:14] *** dannyc_ has joined #angularjs
[13:34:15] *** thumpba has joined #angularjs
[13:34:30] *** e0ipso is now known as e0ipso|away
[13:34:46] *** rburns has quit IRC
[13:34:51] *** azmul has joined #angularjs
[13:35:24] *** azmul has left #angularjs
[13:35:53] *** joroc has joined #angularjs
[13:36:16] *** dobladez has joined #angularjs
[13:36:50] *** mtsr has quit IRC
[13:37:26] *** Beatzebub_ has joined #angularjs
[13:38:16] *** minimoo1 has quit IRC
[13:38:37] *** thumpba has quit IRC
[13:38:48] *** MJD has quit IRC
[13:39:02] *** dannyc_ has quit IRC
[13:39:25] *** bundledavid has joined #angularjs
[13:39:29] *** cads has joined #angularjs
[13:39:30] *** sahbeewah has joined #angularjs
[13:39:36] *** MaxV has quit IRC
[13:39:39] *** jaydubya has joined #angularjs
[13:40:12] *** IvailoStoianov has quit IRC
[13:41:18] *** Beatzebub has quit IRC
[13:41:42] *** sahbeewah has quit IRC
[13:42:18] *** jeffisabelle has joined #angularjs
[13:42:42] *** sahbeewah has joined #angularjs
[13:42:50] *** emmesswhy has quit IRC
[13:43:50] *** ceephax has quit IRC
[13:44:14] *** bundledavid has quit IRC
[13:44:20] *** jaydubya has quit IRC
[13:44:47] *** jmichaelward has joined #angularjs
[13:44:49] *** adpirz has joined #angularjs
[13:46:13] *** SergioFilhow__ has joined #angularjs
[13:46:23] *** Beatzebub_ has quit IRC
[13:46:37] *** cotko has quit IRC
[13:49:10] *** jaydubya has joined #angularjs
[13:49:18] *** JayFK has joined #angularjs
[13:49:28] *** jmichaelward has quit IRC
[13:49:29] *** jaydubya has joined #angularjs
[13:49:42] *** adpirz has quit IRC
[13:50:30] *** SergioFilhow__ has quit IRC
[13:50:45] *** sahbeewah has quit IRC
[13:51:32] *** OnkelTem has quit IRC
[13:51:40] *** cads has quit IRC
[13:51:58] *** cads has joined #angularjs
[13:53:43] *** roven has joined #angularjs
[13:54:45] *** roven has quit IRC
[13:54:54] *** OnkelTem has joined #angularjs
[13:54:54] *** saucey has quit IRC
[13:54:57] *** roven has joined #angularjs
[13:55:38] *** cads has quit IRC
[13:55:54] *** cads has joined #angularjs
[13:56:10] *** wsmoak has joined #angularjs
[13:56:10] *** wsmoak has joined #angularjs
[13:57:44] *** RobertMeta_ has quit IRC
[13:57:44] *** fedenunez has quit IRC
[13:57:51] *** annlewis has joined #angularjs
[13:58:28] *** fedenunez has joined #angularjs
[13:58:58] *** RobertMeta has joined #angularjs
[14:00:22] *** tarnus has joined #angularjs
[14:00:25] *** eslaron has quit IRC
[14:01:52] <jcool> I am looking to implement login/logout with simple signup. any good place to start looking for it?
[14:02:23] *** rhp has quit IRC
[14:02:29] *** dannyc has quit IRC
[14:02:41] *** chabier has joined #angularjs
[14:02:41] *** mtsr has joined #angularjs
[14:02:46] *** murkey has quit IRC
[14:04:02] *** Snugug has joined #angularjs
[14:04:38] *** mtsr has quit IRC
[14:04:46] <tjsail33> jcool: check out passportjs
[14:05:30] *** mtsr has joined #angularjs
[14:06:01] *** IvailoStoianov has joined #angularjs
[14:07:02] *** quantax- has quit IRC
[14:08:00] *** mtsr has quit IRC
[14:08:10] *** siovene has joined #angularjs
[14:09:05] *** mtsr has joined #angularjs
[14:09:32] <jcool> tjsail33, seems good! I am a new bie to nodejs and I am using Cakephp as my backend. Will that effect at all if I go ahead with this. I am still trying to figure out nodejs
[14:09:59] <tjsail33> yeah, passportjs is a node library as far as i can tell. i have no idea what to use for cakephp
[14:10:27] *** sirsirsir has joined #angularjs
[14:10:49] <jcool> tjsail33, I will research it out.
[14:10:52] *** qdk has joined #angularjs
[14:13:41] *** night-owl is now known as zz_night-owl
[14:14:32] *** moritzs has joined #angularjs
[14:14:44] *** chabier has quit IRC
[14:15:09] *** sirsirsir has quit IRC
[14:16:53] *** emmesswhy has joined #angularjs
[14:17:04] *** cads has quit IRC
[14:19:53] *** moritzs has quit IRC
[14:20:04] *** emmesswhy has quit IRC
[14:20:22] *** emmesswhy has joined #angularjs
[14:20:57] *** asheinfeld has joined #angularjs
[14:21:16] *** ome has joined #angularjs
[14:21:20] *** mkusher has joined #angularjs
[14:22:03] *** emmesswhy has quit IRC
[14:23:03] *** emmesswhy has joined #angularjs
[14:23:15] *** mtsr has quit IRC
[14:24:18] *** martianboy has quit IRC
[14:24:58] *** mtsr has joined #angularjs
[14:24:58] *** rbueno has joined #angularjs
[14:25:02] *** Snugug has quit IRC
[14:25:19] *** AciD`` has joined #angularjs
[14:25:27] *** moritzs has joined #angularjs
[14:25:34] *** asheinfeld has quit IRC
[14:30:09] *** soee__ has joined #angularjs
[14:30:12] *** soee__ is now known as soee
[14:31:27] *** joelwallis has joined #angularjs
[14:33:57] *** soee_ has quit IRC
[14:35:00] *** dannyc has joined #angularjs
[14:35:15] *** cads has joined #angularjs
[14:35:51] *** JayFK has quit IRC
[14:35:58] *** oddalot1 has joined #angularjs
[14:35:59] *** minimoo1 has joined #angularjs
[14:38:00] *** platonic has joined #angularjs
[14:38:41] *** joroc has quit IRC
[14:39:07] *** oddalot has quit IRC
[14:39:28] *** dannyc has quit IRC
[14:40:54] *** SahanH has joined #angularjs
[14:41:40] *** Seich has quit IRC
[14:41:42] *** Routh has joined #angularjs
[14:43:08] *** platonic has quit IRC
[14:43:08] *** oddalot1 has quit IRC
[14:44:19] *** Seich has joined #angularjs
[14:45:52] *** lexek__ has joined #angularjs
[14:46:33] *** joshskidmore has quit IRC
[14:46:52] *** learner2 is now known as learner
[14:46:59] *** SergioFilhow__ has joined #angularjs
[14:47:20] <Pyppe> jcool: https://github.com/sahat/satellizer
[14:48:36] *** joshskidmore has joined #angularjs
[14:49:35] *** charlenopires has joined #angularjs
[14:51:28] *** SergioFilhow__ has quit IRC
[14:51:47] *** MaxV_ has joined #angularjs
[14:51:57] *** rbueno has quit IRC
[14:54:27] *** rbueno has joined #angularjs
[14:54:28] *** deanclkclk has joined #angularjs
[14:59:39] *** dannyc has joined #angularjs
[15:00:54] *** exp10r3r1 has joined #angularjs
[15:01:56] *** cakirke has quit IRC
[15:02:43] *** epantzar has quit IRC
[15:03:08] *** TyrfingMjolnir has quit IRC
[15:04:08] *** cornerma1 has joined #angularjs
[15:04:31] *** JayFK has joined #angularjs
[15:05:08] *** whitebook has joined #angularjs
[15:05:53] <Oxynum> Hey ! Does someone know a way to find where I forgot a dependency injection in my app. u_u
[15:07:06] *** busticated has joined #angularjs
[15:07:17] *** cornerman has quit IRC
[15:07:26] *** cornerma1 is now known as cornerman
[15:07:44] *** morenoh149 has quit IRC
[15:08:19] *** despai has quit IRC
[15:10:11] *** Evanion has quit IRC
[15:10:27] *** gunn has quit IRC
[15:10:36] *** JayFK has quit IRC
[15:11:02] *** roven has quit IRC
[15:12:20] *** seriema has quit IRC
[15:12:47] *** seriema has joined #angularjs
[15:13:12] *** exp10r3r1 has quit IRC
[15:15:23] *** despai has joined #angularjs
[15:15:28] *** tjsail33 has quit IRC
[15:15:31] *** jmichaelward has joined #angularjs
[15:15:45] *** rbueno has quit IRC
[15:16:57] *** seriema has quit IRC
[15:17:42] *** PGTips_ has quit IRC
[15:18:11] *** whitebook has quit IRC
[15:19:06] *** mtsr has quit IRC
[15:19:24] *** despai has quit IRC
[15:19:58] *** rbueno has joined #angularjs
[15:20:18] *** jmichaelward has quit IRC
[15:22:39] *** tjsail33 has joined #angularjs
[15:22:53] *** Mer|inDMC is now known as MerlinDMC
[15:23:01] *** Milkweed has joined #angularjs
[15:23:11] *** thumpba has joined #angularjs
[15:24:56] *** mtsr has joined #angularjs
[15:24:56] *** shiroko has joined #angularjs
[15:26:05] <shiroko> Hi there, I'm wondering how I can make my website made with angularjs indexable by search engines ?
[15:26:18] *** Rebirth has quit IRC
[15:26:36] <tjsail33> you'll have to prerender the pages with something like phantomjs for the search engines
[15:27:02] *** rbueno has quit IRC
[15:27:16] *** ChadStrat has joined #angularjs
[15:27:45] *** thumpba has quit IRC
[15:27:46] *** mgustaf has quit IRC
[15:28:11] <shiroko> thx tjsail33
[15:28:18] *** bundledavid has joined #angularjs
[15:28:23] <tjsail33> no problem shiroko
[15:28:32] <shiroko> is it something server side ?
[15:31:02] <jaydubya> I am using phpStorm and every git repo has a .idea folder which I think I have discovered belongs to phpStorm. Should this folder be in the repo? If not, how do I get rid of it?
[15:31:17] <zbzzn> no
[15:31:29] <zbzzn> you need to add it to .gitignore
[15:31:43] <tjsail33> shiroko: https://prerender.io/
[15:31:53] <minimoo1> can i cache templates i use in angular route?
[15:32:24] <tjsail33> minimoo1: what kind of templates?
[15:32:54] *** bundledavid has quit IRC
[15:33:06] *** dannyc has quit IRC
[15:33:45] *** adpirz has joined #angularjs
[15:33:46] <minimoo1> in the routeprovider when function i use templateUrl i want to cache that
[15:33:51] <shiroko> tjsail33 that's nice tyvm !
[15:34:34] <minimoo1> like in $http.get cache
[15:34:49] <tjsail33> minimoo1: i believe it already does. chcek your server logs for duplicate requests for a template url
[15:35:03] <minimoo1> yea it's caching but you refresh the page it's not
[15:35:09] <minimoo1> when you refresh*
[15:35:23] <tjsail33> ah, so you want to use something like localStorage?
[15:35:29] <minimoo1> yea
[15:35:44] *** MaxV_ has quit IRC
[15:35:45] <tjsail33> interesting. i dont have any experience with that, sorry
[15:35:45] *** dannyc has joined #angularjs
[15:35:50] *** joroc has joined #angularjs
[15:35:55] <joroc> hey it's minimoo
[15:35:56] <zbzzn> note that you will need a way to invalidate the localstorage if you do that
[15:36:05] <joroc> got disconnected
[15:36:22] <zbzzn> There is some kind of browser support for that using <mainifest> tag
[15:36:29] <zbzzn> but I don't know how to use it
[15:36:48] <tjsail33> you could try to solution mentioned here coupled with a custom localStorage solution: http://stackoverflow.com/questions/12346690/is-there-a-way-to-make-angularjs-load-partials-in-the-beginning-and-not-at-when
[15:37:06] *** plato1 is now known as plato
[15:37:22] *** plato has joined #angularjs
[15:37:57] *** adpirz has quit IRC
[15:38:09] *** cheef has joined #angularjs
[15:38:56] <joroc> thanks , i'll look into that
[15:39:01] <Gabriel403> I'm getting an array of objects from server side, I want to use them to populate a select box via ng-options, however I can't seem to the id coming from the server as the value on the option element, would anyone have an idea how to do this?
[15:39:45] <sacho> why do you want the id to be the value of the option elements?
[15:40:00] *** minimoo1 has quit IRC
[15:40:13] *** eslaron has joined #angularjs
[15:40:21] *** dannyc has quit IRC
[15:40:34] <Gabriel403> So that when saved it form the correct relationship
[15:40:36] <sacho> angular doesn't use those values for the select's ng-model
[15:41:05] <eslaron> Hello ^^ I have a problem with a service which retrieves data from a Restangular request. While the data is in the reponse. I can't assign it to a variable. http://pastebin.com/H2vWa406
[15:41:07] <tjsail33> Gabriel403: give me a sec to find my code
[15:41:21] <sacho> Gabriel403, try making a plunker
[15:41:31] <sacho> I'm not sure what the problem really is
[15:42:12] <tjsail33> Gabriel403: try something like this https://gist.github.com/anonymous/3c6668db3edc21f720bf
[15:42:57] <eslaron> Hello ^^ I have a problem with a service which retrieves data from a Restangular request. While the data is in the reponse. I can't assign it to a variable. http://pastebin.com/H2vWa406 What am I doing wrong in this code?
[15:43:05] <Gabriel403> sacho: sigh, it uses the resource doesn't it, sO i have to $scope.app.deploy_style = $scope.app.deploy_style.id
[15:43:16] <sacho> the resource?
[15:43:34] *** basiclaser_ has joined #angularjs
[15:43:39] <tjsail33> eslaron: where in that code? line?
[15:43:58] *** ChadStrat has quit IRC
[15:44:13] <eslaron> tjsail33 line 78
[15:44:29] <eslaron> The something's wrong with the resolved data.
[15:44:34] *** cads has quit IRC
[15:44:34] *** beilabs_________ has quit IRC
[15:45:07] <tjsail33> yeah
[15:45:08] *** beilabs_________ has joined #angularjs
[15:45:14] <tjsail33> your resolve should be a simple function
[15:45:17] <tjsail33> like
[15:45:32] <tjsail33> userData: function(){return userDate;}
[15:46:16] <sacho> why?
[15:46:28] <eslaron> This is a copy paste from the UI-Router sample app.
[15:46:54] <eslaron> I took the code, adjusted to my code and I try to resolve data in the parent state via service
[15:47:07] <eslaron> so that it will be accessible via various states
[15:47:29] <tjsail33> all of my resolves are simple functions that return something from the parent scope, and they are working fine
[15:47:46] *** SergioFilhow__ has joined #angularjs
[15:47:47] <sacho> that doesn't mean resolves *should be* simple functions.
[15:47:59] <eslaron> I
[15:48:01] *** annlewis has quit IRC
[15:48:54] <sacho> eslaron, so what's the problem?
[15:49:59] <eslaron> http://pastebin.com/H2vWa406 I got this code. I retrieves the data. I check the response in firebug and the all the 51 json objects are present. I assign the resolved data to the controller in my module but it screams that the variable is undefined.
[15:50:06] <jcool> Pyppe, sorry saw msg late. looking at link :)
[15:50:54] <Pyppe> jcool: haven't used it myself, but stumpled upon it in hackernews a few months back
[15:51:00] <sacho> eslaron, "it screams that the variable undefined" - can you be more precise?
[15:51:24] *** annlewis has joined #angularjs
[15:51:30] <eslaron> Line 78 in my pastebin http://pastebin.com/H2vWa406
[15:51:32] <sacho> are you using this UsersController only with this route?
[15:51:43] <jcool> Pyppe, looks good. I was stumbling upon articles till now to do it manually using services and then do session and all
[15:51:57] <eslaron> sacho, with multiple routes
[15:51:59] <jcool> and I came across that there are lot of things to keep in mind while doing that thing manually.
[15:52:10] <sacho> eslaron, and they all have the resolve?
[15:52:17] <eslaron> no
[15:52:21] *** SergioFilhow__ has quit IRC
[15:52:22] <eslaron> Only this one route
[15:52:26] <sacho> and you're sure it's not one of them erroring?
[15:52:47] <sacho> also the line var data = userData can't be an error
[15:52:52] <sacho> even if userData is undefined
[15:53:00] <sacho> so what's the exact error that you're getting?
[15:53:03] <eslaron> only this route in the pastebin contains the a resolve block
[15:53:42] *** cheef has quit IRC
[15:54:01] *** DarrenCraig has joined #angularjs
[15:54:13] <eslaron> sacho, here line 8 http://pastebin.com/PN6zNiPA
[15:55:12] <eslaron> This code works fine. I tested it on other service and the data was assigned correctly.
[15:55:29] *** caitp has joined #angularjs
[15:55:30] *** phzon has joined #angularjs
[15:55:41] *** annlewis has quit IRC
[15:56:22] *** Dixty has joined #angularjs
[15:56:43] <sacho> can you answer the two questions I asked?
[15:57:07] <eslaron> yes
[15:57:10] <bealtine> why do you need a resolve to share data?
[15:57:29] *** jonr22 has joined #angularjs
[15:58:21] <eslaron> sacho, 1. Only one route in my module has the resolve block. 2. The exact error is here http://pastebin.com/PN6zNiPA
[15:59:03] <eslaron> bealtine, I don't really know. I just want my data to be visible on all the child states.
[15:59:09] *** sirsirsir has joined #angularjs
[15:59:20] <sacho> but that's not what I said :) I said, using the controller in another route would cause it to error, because it lacks that resolve.
[15:59:35] <bealtine> just use DI
[16:00:01] <eslaron> sacho, I seee
[16:00:09] *** phzon has quit IRC
[16:00:10] <sacho> eslaron, oh, the other problem might be that you have a factory named userData, and a resolve parameter named userData
[16:00:15] *** fabiofb has joined #angularjs
[16:00:17] <sacho> I don't know what happens in that overlap.
[16:00:39] *** SahanH has quit IRC
[16:00:41] <eslaron> So I gotta user resolve it in all routes with my controller assigned. Let me try that.
[16:00:54] <eslaron> bealtine, what is DI ?
[16:01:06] *** SahanH has joined #angularjs
[16:01:42] <bealtine> something like .myControl('blah'['thing', function(thing{ thing.getData(); }
[16:02:01] <bealtine> minus the typo
[16:02:33] *** jonr22 has quit IRC
[16:02:40] <bealtine> every controller/service/factory you inject into now has access to thing
[16:03:16] <bealtine> no need for resolves
[16:03:23] *** fabiofb has quit IRC
[16:03:26] *** sirsirsir has quit IRC
[16:03:45] <eslaron> So I gotta inject the services right into the controller.
[16:03:58] <sacho> well, you don't have to, but it's probably a better solution
[16:03:59] <bealtine> yes anywhere you need them
[16:04:28] *** mariusz has quit IRC
[16:05:52] *** minimoo1 has joined #angularjs
[16:08:13] *** joroc has quit IRC
[16:08:23] *** Oxynum has quit IRC
[16:10:11] *** cakirke has joined #angularjs
[16:10:14] *** tristanp has joined #angularjs
[16:10:17] *** seriema has joined #angularjs
[16:10:29] *** cakirke has quit IRC
[16:11:23] *** kapil__ has quit IRC
[16:13:33] <minimoo1> can i use local storage cache for angular route?
[16:13:53] *** mtsr has quit IRC
[16:14:15] *** danecando has quit IRC
[16:15:07] *** Oxynum has joined #angularjs
[16:15:10] *** mtsr has joined #angularjs
[16:16:33] *** apoorvparijat has joined #angularjs
[16:18:01] *** busticated has quit IRC
[16:18:46] *** grantfunke_ has joined #angularjs
[16:18:53] *** annlewis has joined #angularjs
[16:18:54] *** DarrenCraig has quit IRC
[16:18:55] *** soee_ has joined #angularjs
[16:19:50] <eslaron> I'm still doing something wrong. http://pastebin.com/8RaEudGQ The variable is still marked as undefined. Do I call the service data properly in line 46?
[16:20:25] *** annlewis has quit IRC
[16:20:44] *** annlewis has joined #angularjs
[16:21:00] *** soee has quit IRC
[16:21:23] *** Sna4x8 has quit IRC
[16:22:38] *** annlewis_ has joined #angularjs
[16:22:50] *** shiroko has quit IRC
[16:23:20] <eslaron> I'm still doing something wrong. http://pastebin.com/8RaEudGQ The variable is still marked as undefined. Do I call the service data properly in line 46?
[16:24:11] *** Evanion has joined #angularjs
[16:24:31] *** asheinfeld has joined #angularjs
[16:24:36] *** k-dawg has quit IRC
[16:25:04] *** annlewis has quit IRC
[16:25:27] *** Solid1_afk is now known as Solid1
[16:25:33] *** BahamutWC|Laptop has quit IRC
[16:25:37] <sacho> eslaron, there's no data variable in the controller
[16:25:41] *** cellofellow has quit IRC
[16:25:43] *** mkusher has quit IRC
[16:25:47] <sacho> *defined in the controller
[16:25:53] *** hell_razer has joined #angularjs
[16:26:19] *** BahamutWC|Laptop has joined #angularjs
[16:26:40] *** Iravan_ has joined #angularjs
[16:26:41] *** tristanp has quit IRC
[16:26:53] *** annlewis_ has quit IRC
[16:27:11] <eslaron> sacho, then how do I get the data into my controller? I have no idea how to solve this.
[16:27:29] <sacho> there's no data variable defined in the controller.
[16:27:36] <sacho> perhaps you meant to use userData.all().
[16:27:42] *** WalterJr has joined #angularjs
[16:27:50] *** intellix has joined #angularjs
[16:27:58] *** startupality has quit IRC
[16:28:01] *** emmesswhy has quit IRC
[16:28:32] *** Dido has quit IRC
[16:28:37] *** asheinfeld has quit IRC
[16:28:58] *** oste has joined #angularjs
[16:29:57] *** dannyc has joined #angularjs
[16:30:10] <eslaron> sacho, yes, now I tried this: var data = userData.all(); And now angular says that userData is undefined.
[16:30:18] *** brandom has quit IRC
[16:30:36] *** oste has quit IRC
[16:31:11] *** NanoArro1 has quit IRC
[16:31:14] *** jmichaelward has joined #angularjs
[16:32:21] *** whitebook has joined #angularjs
[16:32:33] <eslaron> I just want to retrieve all date from the service.
[16:32:38] <eslaron> *data
[16:33:12] *** mtsr has quit IRC
[16:33:29] *** mtsr has joined #angularjs
[16:35:18] *** beilabs_________ has quit IRC
[16:35:28] * sacho shrugs
[16:35:35] <sacho> this is why I ask people to make a plunker from the start
[16:35:40] *** MahmoudFelfel has quit IRC
[16:36:02] *** joroc has joined #angularjs
[16:36:13] *** jmichaelward has quit IRC
[16:36:27] *** jmichaelward has joined #angularjs
[16:36:36] *** dannyc_ has joined #angularjs
[16:38:38] *** minimoo1 has quit IRC
[16:38:43] <eslaron> I'll make a plunker, but I will have to make dummy data for it to work.
[16:39:33] *** DLSteve has joined #angularjs
[16:39:51] *** NanoArro1 has joined #angularjs
[16:39:51] *** edzez_ has quit IRC
[16:40:13] *** danecando has joined #angularjs
[16:40:17] *** edzez_ has joined #angularjs
[16:40:27] *** charlenopires has quit IRC
[16:41:30] *** dannyc_ has quit IRC
[16:41:34] *** beilabs_________ has joined #angularjs
[16:42:04] *** whiteboo_ has joined #angularjs
[16:42:33] *** whitebook has quit IRC
[16:42:35] *** whitebo__ has joined #angularjs
[16:42:52] *** seiyria has quit IRC
[16:43:37] *** mtsr_ has joined #angularjs
[16:43:57] <sacho> of course.
[16:44:01] *** mkusher has joined #angularjs
[16:44:10] *** mtsr has quit IRC
[16:44:31] <eslaron> sacho, here http://plnkr.co/edit/7Uh5Q6DM3sKIbRiHTYoY?p=preview
[16:44:56] *** quantax- has joined #angularjs
[16:45:00] *** e0ipso|away is now known as e0ipso
[16:45:10] <joroc> anyone please ?:)
[16:46:17] *** whiteboo_ has quit IRC
[16:47:50] *** bmac has joined #angularjs
[16:49:02] <sacho> eslaron, well, on the plunker, you're not injecting all the services you expect.
[16:50:10] *** mtsr_ has quit IRC
[16:50:28] <eslaron> I injected now the utils service, but it didn't change anything.
[16:51:04] *** joewhite86 has joined #angularjs
[16:52:06] *** balr0g has joined #angularjs
[16:52:22] *** morenoh149 has joined #angularjs
[16:52:24] <joewhite86> hi guys, is there a way to debug/see calls made by $resource?
[16:53:48] *** rho has joined #angularjs
[16:53:48] *** rho has joined #angularjs
[16:54:31] <joewhite86> i’ve a simple service that returns a resource: return $resource(restUrl + '/user/:id‘), but i don’t think it does call the rest service
[16:55:24] *** mtsr has joined #angularjs
[16:56:20] *** zz_night-owl is now known as night-owl
[16:57:04] *** kuadrosx has joined #angularjs
[16:57:30] *** morenoh149 has quit IRC
[16:58:35] *** rbueno has joined #angularjs
[16:58:42] <sacho> eslaron, http://plnkr.co/edit/89uzt9rv4Bfh17lCAeCQ?p=preview
[16:59:40] *** Solid1 is now known as Solid1_afk
[16:59:54] *** josh-k has joined #angularjs
[17:01:16] <eslaron> sacho, so the data must be put in a promise and then called like a promise, huh. thanks I will try to use this in my code
[17:01:27] *** kirfu has joined #angularjs
[17:01:28] <sacho> no, it doesn't have to be
[17:01:35] <sacho> but your earlier example was using restangular..
[17:03:24] *** crissdev has joined #angularjs
[17:03:43] *** dannyc has quit IRC
[17:04:30] *** evilaliv3 has joined #angularjs
[17:04:42] *** josh-k has quit IRC
[17:05:50] *** Iravan_ has quit IRC
[17:05:57] *** crissdev has left #angularjs
[17:06:49] *** mrwn has joined #angularjs
[17:08:35] *** Iravan has joined #angularjs
[17:08:38] *** tristanp has joined #angularjs
[17:08:44] <eslaron> sacho, well I surrounded the Restangular request with $q.when(); did everthing else like in the plunk. Doesn't work. Damn T___T
[17:08:52] *** beilabs_________ has quit IRC
[17:09:19] *** joewhite86 has quit IRC
[17:09:32] *** mtsr has quit IRC
[17:09:33] *** beilabs_________ has joined #angularjs
[17:09:58] *** nemothekid has quit IRC
[17:10:12] *** seiyria has joined #angularjs
[17:11:11] *** asheinfeld has joined #angularjs
[17:11:18] *** edy has quit IRC
[17:11:44] <sacho> you don't have to use $q.when() with the restangular request.
[17:11:52] <sacho> $q.when() is a way to convert a value to a promise.
[17:11:57] *** thumpba has joined #angularjs
[17:12:39] <eslaron> okay, it works
[17:12:54] <eslaron> Few things were missing in my code
[17:13:30] *** kickboxer has joined #angularjs
[17:13:35] <kickboxer> hi all
[17:15:23] *** asheinfeld has quit IRC
[17:15:26] <eslaron> sacho, you were a great and patient help, thank you :)
[17:15:27] *** mtsr has joined #angularjs
[17:16:08] <kickboxer> How can do this http://plnkr.co/edit/ET36IKITPa52g4NcHs2i?p=preview without use templateUrl: 'directive-template.html' ?
[17:16:37] *** thumpba has quit IRC
[17:17:04] *** mrwn has quit IRC
[17:17:11] *** bundledavid has joined #angularjs
[17:18:49] <kickboxer> anybody here me?)
[17:19:01] <pontiki> we there you
[17:19:07] *** loverajoel has joined #angularjs
[17:19:57] *** Shrooms has quit IRC
[17:20:06] *** ciwolsey has joined #angularjs
[17:21:38] *** annlewis has joined #angularjs
[17:22:06] *** bundledavid has quit IRC
[17:22:35] *** adpirz has joined #angularjs
[17:23:29] *** charlenopires has joined #angularjs
[17:23:32] *** nemothekid has joined #angularjs
[17:24:55] *** tfennelly has joined #angularjs
[17:25:06] *** charlenopires has quit IRC
[17:25:16] *** charlenopires has joined #angularjs
[17:25:54] *** beilabs_________ has quit IRC
[17:26:27] *** annlewis has quit IRC
[17:27:07] *** despai has joined #angularjs
[17:27:09] *** arabot has joined #angularjs
[17:27:25] *** adpirz has quit IRC
[17:27:52] *** beilabs_________ has joined #angularjs
[17:28:27] *** dweave has joined #angularjs
[17:28:45] *** kickboxer has quit IRC
[17:29:22] *** dweave has quit IRC
[17:30:46] *** mgustaf has joined #angularjs
[17:31:48] *** quantax- has quit IRC
[17:31:53] *** mrru has quit IRC
[17:33:01] *** quantax- has joined #angularjs
[17:33:30] *** Lewix has joined #angularjs
[17:33:30] *** Lewix has joined #angularjs
[17:33:50] *** Mackseraner has joined #angularjs
[17:34:01] *** johnstorey has quit IRC
[17:34:50] *** dweave has joined #angularjs
[17:35:46] *** quantax- has quit IRC
[17:36:31] *** SergioFilhow__ has joined #angularjs
[17:36:53] *** dweave has quit IRC
[17:36:55] *** despai has quit IRC
[17:37:13] *** DLSteve has quit IRC
[17:37:14] *** dannyc has joined #angularjs
[17:39:08] *** tbo_ has joined #angularjs
[17:39:56] *** tfennell_ has joined #angularjs
[17:41:06] *** SergioFilhow__ has quit IRC
[17:41:44] *** ome has quit IRC
[17:41:48] *** dannyc has quit IRC
[17:43:24] *** jeffisabelle has quit IRC
[17:43:42] *** tfennelly has quit IRC
[17:46:44] *** quantax- has joined #angularjs
[17:47:17] *** mtsr has quit IRC
[17:48:01] *** sirsirsir has joined #angularjs
[17:49:06] *** joshskidmore has quit IRC
[17:50:18] *** charlenopires has quit IRC
[17:50:31] *** nemothekid has quit IRC
[17:50:36] *** joshskidmore has joined #angularjs
[17:50:46] *** SahanH has quit IRC
[17:50:56] *** bmac has quit IRC
[17:51:20] *** bmac has joined #angularjs
[17:51:20] *** Iravan_ has joined #angularjs
[17:52:14] *** DrMabuse has joined #angularjs
[17:52:18] *** sirsirsir has quit IRC
[17:52:39] *** wex13r has joined #angularjs
[17:53:01] *** Iravan has quit IRC
[17:53:40] *** josh-k has joined #angularjs
[17:54:01] *** mehdi___ has joined #angularjs
[17:54:57] *** jlmitch5dev has joined #angularjs
[17:54:57] *** Solid1_afk is now known as Solid1
[17:56:26] *** DrMabuse has quit IRC
[17:56:59] *** loverajoel has quit IRC
[17:57:48] *** kirfu has quit IRC
[17:58:11] *** loverajoel has joined #angularjs
[18:00:01] *** cakirke has joined #angularjs
[18:00:37] *** qdk has quit IRC
[18:00:45] *** dannyc has joined #angularjs
[18:00:47] *** bmac has quit IRC
[18:01:47] *** tristanp has quit IRC
[18:02:09] *** oniMaker has quit IRC
[18:02:13] *** tristanp has joined #angularjs
[18:02:46] *** pspfolio has quit IRC
[18:02:54] *** loverajoel has quit IRC
[18:02:55] *** moritzs has quit IRC
[18:03:26] *** charlenopires has joined #angularjs
[18:03:30] *** oniMaker has joined #angularjs
[18:05:19] *** cakirke has quit IRC
[18:05:19] *** mkusher has quit IRC
[18:05:24] *** L42y has joined #angularjs
[18:05:34] *** mkusher has joined #angularjs
[18:05:39] *** cakirke has joined #angularjs
[18:05:57] *** tbo_ has quit IRC
[18:06:45] *** mrru has joined #angularjs
[18:07:08] *** tristanp has quit IRC
[18:08:14] *** despai has joined #angularjs
[18:10:48] *** hell_razer has quit IRC
[18:11:14] *** Iravan_ has quit IRC
[18:11:16] *** sheerun has joined #angularjs
[18:13:27] *** Dixty has quit IRC
[18:13:39] *** MJD has joined #angularjs
[18:14:59] *** seriema has quit IRC
[18:15:25] *** seriema has joined #angularjs
[18:15:36] *** Dixty has joined #angularjs
[18:17:29] *** e0ipso has quit IRC
[18:17:56] *** e0ipso has joined #angularjs
[18:19:13] *** cakirke has quit IRC
[18:20:04] *** seriema has quit IRC
[18:20:22] *** beilabs_________ has quit IRC
[18:22:02] *** mehdi___ has quit IRC
[18:22:37] *** beilabs_________ has joined #angularjs
[18:25:35] *** despai has quit IRC
[18:26:37] *** beilabs_________ has quit IRC
[18:27:42] *** beilabs_________ has joined #angularjs
[18:28:47] *** tonyfrazier has joined #angularjs
[18:32:01] *** danecando has quit IRC
[18:32:18] *** beilabs_________ has quit IRC
[18:34:16] *** dannyc has quit IRC
[18:34:40] *** kostiak has quit IRC
[18:35:08] *** Lewix has quit IRC
[18:35:38] *** sl33k_ has quit IRC
[18:36:30] *** beilabs_________ has joined #angularjs
[18:37:39] *** tristanp has joined #angularjs
[18:37:59] *** dannyc has joined #angularjs
[18:38:00] *** e0ipso is now known as e0ipso|away
[18:38:58] *** AlexZan has quit IRC
[18:40:45] *** whitebo__ has quit IRC
[18:40:51] *** bmac has joined #angularjs
[18:40:56] *** beilabs_________ has quit IRC
[18:41:16] *** morenoh149 has joined #angularjs
[18:42:09] *** joelwallis has quit IRC
[18:42:49] *** dannyc has quit IRC
[18:42:57] *** mamarilmanson2 has quit IRC
[18:43:19] *** DrAwesomeClaws has joined #angularjs
[18:43:33] *** beilabs_________ has joined #angularjs
[18:45:54] *** oste has joined #angularjs
[18:46:12] *** morenoh149 has quit IRC
[18:47:06] *** bayousoft has quit IRC
[18:48:44] *** yts has joined #angularjs
[18:48:58] *** beilabs_________ has quit IRC
[18:49:51] *** beilabs_________ has joined #angularjs
[18:49:57] *** johnstorey has joined #angularjs
[18:50:19] *** charlenopires has quit IRC
[18:50:40] *** frkout_ has quit IRC
[18:50:46] *** mary5030 has joined #angularjs
[18:51:13] *** lrvick has quit IRC
[18:51:27] *** mary5030_ has joined #angularjs
[18:51:35] *** lrvick has joined #angularjs
[18:51:56] *** lenswipe has joined #angularjs
[18:52:45] *** bmac has quit IRC
[18:52:56] *** cheef has joined #angularjs
[18:53:56] *** cheef has quit IRC
[18:54:39] *** qdk has joined #angularjs
[18:54:55] *** tristanp has quit IRC
[18:55:03] *** mary5030 has quit IRC
[18:55:14] *** beilabs_________ has quit IRC
[18:55:20] *** tristanp has joined #angularjs
[18:57:19] *** beilabs_________ has joined #angularjs
[18:57:32] *** grantfunke_ has quit IRC
[18:57:51] *** loverajoel has joined #angularjs
[18:58:46] *** fedenunez has quit IRC
[19:00:00] *** wex13r has quit IRC
[19:00:09] *** Dixty has quit IRC
[19:00:50] *** thumpba has joined #angularjs
[19:01:38] *** seriema has joined #angularjs
[19:02:10] *** beilabs_________ has quit IRC
[19:02:24] *** loverajoel has quit IRC
[19:02:35] *** yelvert has joined #angularjs
[19:03:20] *** htmelvis has joined #angularjs
[19:03:42] *** sirsirsir has joined #angularjs
[19:03:58] *** jonr22 has joined #angularjs
[19:04:07] *** morenoh149 has joined #angularjs
[19:05:15] *** thumpba has quit IRC
[19:05:48] *** beilabs_________ has joined #angularjs
[19:06:07] *** bundledavid has joined #angularjs
[19:06:23] *** goodenough has joined #angularjs
[19:06:30] *** lexek__ has quit IRC
[19:06:43] *** yelvert has quit IRC
[19:06:59] *** platonic has joined #angularjs
[19:07:53] *** sirsirsir has quit IRC
[19:08:53] *** dhrami has joined #angularjs
[19:08:54] *** morenoh149 has quit IRC
[19:10:22] *** newbster has joined #angularjs
[19:10:23] *** bundledavid has quit IRC
[19:10:52] *** stormbytes has joined #angularjs
[19:10:53] *** seriema has quit IRC
[19:11:14] *** cthrax has joined #angularjs
[19:11:24] *** seriema has joined #angularjs
[19:11:51] *** whitebook has joined #angularjs
[19:11:52] *** tristanp has quit IRC
[19:12:37] *** beilabs_________ has quit IRC
[19:14:10] *** tskaggs has joined #angularjs
[19:15:02] *** apoorvparijat has quit IRC
[19:15:28] *** evilaliv3 has quit IRC
[19:15:29] *** seriema has quit IRC
[19:16:28] *** beilabs_________ has joined #angularjs
[19:18:37] *** mrru has quit IRC
[19:19:16] *** Nivag_ has joined #angularjs
[19:20:16] *** mlpug has joined #angularjs
[19:21:32] *** cthrax has quit IRC
[19:21:35] *** annlewis has joined #angularjs
[19:23:53] *** beilabs_________ has quit IRC
[19:24:38] *** jonr22 has quit IRC
[19:25:19] *** SergioFilhow__ has joined #angularjs
[19:25:53] <lenswipe> hey guys
[19:26:03] <lenswipe> is there ever a time when ng-route is better suited than ui-router?
[19:26:07] *** stormbytes has quit IRC
[19:26:14] *** AimerPaddle has joined #angularjs
[19:26:52] *** annlewis has quit IRC
[19:27:49] *** beilabs_________ has joined #angularjs
[19:28:07] <sacho> only if you don't need any of the extra features.
[19:28:53] *** whitebook has quit IRC
[19:29:48] *** startupality has joined #angularjs
[19:30:02] *** SergioFilhow__ has quit IRC
[19:30:54] *** tfennelly has joined #angularjs
[19:31:00] *** dannyc has joined #angularjs
[19:31:08] *** tfennell_ has quit IRC
[19:32:21] *** Zenithar has quit IRC
[19:32:34] *** beilabs_________ has quit IRC
[19:32:54] *** deanclkclk has quit IRC
[19:33:45] *** brandom has joined #angularjs
[19:34:08] *** deanclkclk has joined #angularjs
[19:34:53] *** MIR100 has joined #angularjs
[19:34:55] *** mtsr has joined #angularjs
[19:36:18] *** beilabs_________ has joined #angularjs
[19:37:42] *** seriema has joined #angularjs
[19:37:53] *** yoshokatana has joined #angularjs
[19:38:04] *** danecando has joined #angularjs
[19:38:42] *** goodenough has quit IRC
[19:38:44] *** DrAwesomeClaws has quit IRC
[19:38:46] *** dannyc_ has joined #angularjs
[19:39:54] *** kuadrosx has quit IRC
[19:39:55] *** cacts has joined #angularjs
[19:40:04] *** loverajoel has joined #angularjs
[19:40:27] *** shpoont has quit IRC
[19:41:30] *** loverajoel has quit IRC
[19:42:22] *** kuadrosx has joined #angularjs
[19:42:45] *** beilabs_________ has quit IRC
[19:43:08] *** dannyc_ has quit IRC
[19:44:13] *** SomeKittens has joined #angularjs
[19:44:22] *** cheef has joined #angularjs
[19:44:39] *** tskaggs has quit IRC
[19:45:04] <eslaron> Anybody did data editing using ui-router?
[19:46:03] *** johnstorey has quit IRC
[19:46:26] *** moritzs has joined #angularjs
[19:46:46] *** DrMabuse has joined #angularjs
[19:47:18] *** beilabs_________ has joined #angularjs
[19:48:06] *** DuelShark has quit IRC
[19:48:22] *** DuelShark has joined #angularjs
[19:49:04] *** DrAwesomeClaws has joined #angularjs
[19:49:44] *** Una has joined #angularjs
[19:50:02] *** DuelShark has quit IRC
[19:50:14] *** DuelShark has joined #angularjs
[19:51:48] *** patrickarlt has joined #angularjs
[19:52:28] *** grantfunke_ has joined #angularjs
[19:53:19] *** kuadrosx has quit IRC
[19:53:23] *** DuelShark has quit IRC
[19:53:36] *** DuelShark has joined #angularjs
[19:53:43] *** anderskristo has quit IRC
[19:54:37] *** DuelShark has joined #angularjs
[19:55:16] *** beilabs_________ has quit IRC
[19:56:15] *** renlo has joined #angularjs
[19:56:17] *** mtsr has quit IRC
[19:56:36] *** anderskristo has joined #angularjs
[19:56:44] *** seriema has quit IRC
[19:56:54] *** Una_ has joined #angularjs
[19:57:11] *** seriema has joined #angularjs
[19:57:52] *** beilabs_________ has joined #angularjs
[19:58:41] *** Una has quit IRC
[20:00:26] *** DuelShark has quit IRC
[20:00:35] *** ziggurat81 has joined #angularjs
[20:00:48] *** frem has joined #angularjs
[20:01:13] *** DrMabuse has quit IRC
[20:01:45] *** seriema has quit IRC
[20:02:33] *** beilabs_________ has quit IRC
[20:03:48] *** rcanepa has joined #angularjs
[20:04:30] *** dannyc has quit IRC
[20:04:51] *** newbster has quit IRC
[20:05:02] *** jmichaelward has quit IRC
[20:05:23] *** josh-k_ has joined #angularjs
[20:05:28] *** DuelShark has joined #angularjs
[20:05:37] <rcanepa> Hi everyone.
[20:05:41] <rcanepa> I have a conceptual doubt related to services. Should them return a promise or the data?, are any good practice related to this question?
[20:05:59] *** beilabs_________ has joined #angularjs
[20:06:00] *** josh-k__ has joined #angularjs
[20:06:03] *** DuelShark has joined #angularjs
[20:06:20] <rcanepa> In other words, should I handle the success or error result in the controller ?
[20:06:29] *** jonr22 has joined #angularjs
[20:07:05] *** mlpug has quit IRC
[20:07:09] *** Dixty has joined #angularjs
[20:07:30] *** AWAW has quit IRC
[20:07:37] *** DuelShark has quit IRC
[20:07:51] *** DuelShark has joined #angularjs
[20:08:04] *** marshall has joined #angularjs
[20:09:18] *** josh-k has quit IRC
[20:09:32] *** xxMatiasFxx has joined #angularjs
[20:10:21] *** josh-k_ has quit IRC
[20:10:34] *** xxMatiasFCxx has quit IRC
[20:11:10] *** tristanp has joined #angularjs
[20:11:23] *** ivanov has joined #angularjs
[20:12:30] *** beilabs_________ has quit IRC
[20:13:38] *** grantfunke_ has quit IRC
[20:13:45] *** mlpug has joined #angularjs
[20:13:57] *** djam90 has joined #angularjs
[20:16:04] *** tristanp has quit IRC
[20:17:04] *** beilabs_________ has joined #angularjs
[20:19:42] *** jonr22 has quit IRC
[20:20:14] *** stormbytes has joined #angularjs
[20:20:33] <stormbytes> where do helper functions go?
[20:21:39] *** annlewis has joined #angularjs
[20:21:45] *** zivester has joined #angularjs
[20:21:58] *** beilabs_________ has quit IRC
[20:22:03] <stormbytes> i'm trying to use $scope.$watch(helper(ctrl, 'method'), cb()); because $watch hasn't been 'updated' for controllerAs
[20:22:23] *** mtsr has joined #angularjs
[20:22:51] <stormbytes> i'd like to put helper() someplace where it can simply be called from instead of having to write an anonymous function in place each time
[20:23:15] <stormbytes> i tried putting it in a service and got an error when i invoked it service.helper(...)
[20:24:33] *** zanea|away is now known as zanea
[20:24:57] *** mtsr has quit IRC
[20:25:42] *** beilabs_________ has joined #angularjs
[20:25:46] *** Una_ has quit IRC
[20:25:58] *** ajk27 has quit IRC
[20:26:08] *** annlewis has quit IRC
[20:26:34] *** DuelShark has quit IRC
[20:26:55] <eslaron> Do I have to make a service to make data from then() block visible?
[20:27:02] *** ajk27 has joined #angularjs
[20:28:14] *** mtsr has joined #angularjs
[20:28:27] *** Oxynum has quit IRC
[20:29:57] *** cheef has quit IRC
[20:30:20] *** Sky[x] has joined #angularjs
[20:30:31] *** mtsr has quit IRC
[20:31:40] *** dannyc has joined #angularjs
[20:31:58] *** charuru has joined #angularjs
[20:33:08] *** renlo has quit IRC
[20:33:44] *** glassir has joined #angularjs
[20:33:50] *** beilabs_________ has quit IRC
[20:34:02] *** ivanov has quit IRC
[20:34:45] *** wex13r has joined #angularjs
[20:34:48] *** e0ipso|away is now known as e0ipso
[20:34:57] *** NormySan has quit IRC
[20:35:15] *** rhp has joined #angularjs
[20:35:50] *** dannyc has quit IRC
[20:36:00] *** minimoo1 has joined #angularjs
[20:36:25] *** dannyc has joined #angularjs
[20:37:17] *** beilabs_________ has joined #angularjs
[20:37:27] *** anthon has joined #angularjs
[20:37:38] *** mahmoudfelfel has joined #angularjs
[20:38:38] *** grantfunke_ has joined #angularjs
[20:38:40] *** joroc has quit IRC
[20:38:41] <mahmoudfelfel> Hi everybody, my first time here, and i have a question, i have a text input which have a model like that "schemaname.table.column", can i update only the table part with the input value without using ng-change or bind another variable in the model and watching its changes then update this one in the object which sholud saved to the server in that dot-separated way.
[20:40:46] *** dannyc has quit IRC
[20:40:53] *** Mahi_ has joined #angularjs
[20:40:54] *** ingsoc has joined #angularjs
[20:41:00] <Mahi_> Hi
[20:41:13] <Mahi_> Anyone here???
[20:41:41] <tjsail33> hello
[20:41:46] *** beilabs_________ has quit IRC
[20:41:52] *** beilabs_________ has joined #angularjs
[20:42:00] <Mahi_> I need some help
[20:42:06] <tjsail33> ask waaya
[20:42:07] <tjsail33> away
[20:42:09] <Mahi_> I am new to angular
[20:42:14] *** AWAW has joined #angularjs
[20:43:12] *** DrMabuse has joined #angularjs
[20:43:44] <tjsail33> sure, but you have to ask your question
[20:44:17] *** goodenough has joined #angularjs
[20:45:25] <Mahi_> I have some combination of circles and their positions also. I am toggling css property fill on click of these circles. Now, on click i have the event object through which i get the dom reference of these circles and i change the property very easily. But now
[20:45:44] <Mahi_> I need to change this property via my code
[20:45:48] *** sheerun has quit IRC
[20:46:03] <Mahi_> I have all of these elements in ny $scope object
[20:46:19] <Mahi_> But I am unable to get the dom reference of these element
[20:46:37] <Mahi_> which is needed to change the fill property
[20:47:25] *** Dixty has quit IRC
[20:47:57] *** beilabs_________ has quit IRC
[20:48:10] *** beilabs_________ has joined #angularjs
[20:48:23] <tjsail33> i recommend you make a directive for each circle
[20:48:24] *** TripTastic has quit IRC
[20:48:33] <tjsail33> that way the directive can handle all of the clik events
[20:48:44] <tjsail33> and you cdont need to worry about accessing the dom as much
[20:48:51] *** cthrax has joined #angularjs
[20:49:09] <Mahi_> And can i trigger the directive manually for some of the elements through my code
[20:49:19] *** katsh has quit IRC
[20:49:32] *** sirsirsir has joined #angularjs
[20:49:38] <tjsail33> mhm
[20:49:39] *** katsh has joined #angularjs
[20:49:44] *** thumpba has joined #angularjs
[20:50:24] *** Lewix has joined #angularjs
[20:50:24] *** Lewix has joined #angularjs
[20:50:32] *** DuelShark has joined #angularjs
[20:51:21] *** opiates has joined #angularjs
[20:51:23] *** renlo has joined #angularjs
[20:52:07] *** trustyhank has joined #angularjs
[20:52:32] *** beilabs_________ has quit IRC
[20:52:58] *** jonr22 has joined #angularjs
[20:53:15] *** mary5030_ has quit IRC
[20:53:52] *** mary5030 has joined #angularjs
[20:54:07] *** Aerospark has joined #angularjs
[20:54:10] *** sirsirsir has quit IRC
[20:54:37] *** rcanepa has quit IRC
[20:54:52] *** Mahi_ has quit IRC
[20:54:54] *** thumpba has quit IRC
[20:54:57] *** bundledavid has joined #angularjs
[20:55:22] *** JBreit has joined #angularjs
[20:56:01] *** night-owl is now known as zz_night-owl
[20:56:16] *** beilabs_________ has joined #angularjs
[20:57:22] *** VerbGarden has joined #angularjs
[20:58:22] *** mary5030 has quit IRC
[20:59:24] *** bundledavid has quit IRC
[20:59:59] *** josh-k has joined #angularjs
[21:00:16] *** marr has joined #angularjs
[21:00:49] *** Hackwar has joined #angularjs
[21:01:00] *** Solid1 is now known as Solid1_afk
[21:01:24] *** beilabs_________ has quit IRC
[21:01:48] *** dannyc has joined #angularjs
[21:01:56] *** rho has quit IRC
[21:02:20] *** hell_razer has joined #angularjs
[21:03:11] *** ekinmur has joined #angularjs
[21:03:19] *** Hackwar1 has quit IRC
[21:03:44] *** desbo has joined #angularjs
[21:03:46] *** josh-k__ has quit IRC
[21:03:49] *** ekinmur has quit IRC
[21:04:08] *** ekinmur has joined #angularjs
[21:04:37] *** desbo has left #angularjs
[21:05:17] *** titanomachy has quit IRC
[21:05:59] *** ekinmur_ has joined #angularjs
[21:06:01] *** joroc has joined #angularjs
[21:06:16] *** beilabs_________ has joined #angularjs
[21:06:32] *** ekinmur_ has quit IRC
[21:06:39] *** mahmoudfelfel has quit IRC
[21:07:03] *** Raging_Hog has joined #angularjs
[21:07:58] *** renlo has quit IRC
[21:09:13] *** plushy has quit IRC
[21:09:42] *** Solid1_afk is now known as Solid1
[21:10:00] *** DLSteve has joined #angularjs
[21:10:42] *** beilabs_________ has quit IRC
[21:10:44] *** minimoo1 has quit IRC
[21:10:52] *** saucey has joined #angularjs
[21:11:09] *** beilabs_________ has joined #angularjs
[21:12:21] *** jrvlima has joined #angularjs
[21:12:57] *** merobertsjr has joined #angularjs
[21:13:50] *** titanomachy has joined #angularjs
[21:14:05] *** SergioFilhow__ has joined #angularjs
[21:14:17] *** emmesswhy has joined #angularjs
[21:16:18] *** beilabs_________ has quit IRC
[21:17:10] *** merobertsjr has quit IRC
[21:17:11] *** beilabs_________ has joined #angularjs
[21:18:13] *** DuelShark has quit IRC
[21:18:17] *** SergioFilhow__ has quit IRC
[21:18:47] *** Raging_Hog has quit IRC
[21:19:33] *** johnstorey has joined #angularjs
[21:20:32] *** bmac has joined #angularjs
[21:21:41] *** annlewis has joined #angularjs
[21:21:47] *** mjw56 has quit IRC
[21:21:49] *** phzon has joined #angularjs
[21:23:47] *** IvailoStoianov has quit IRC
[21:24:04] *** tomzx has quit IRC
[21:24:34] *** tomzx has joined #angularjs
[21:24:40] *** loverajoel has joined #angularjs
[21:25:10] *** narutimateum2 has joined #angularjs
[21:25:56] *** Sontakey has quit IRC
[21:26:33] *** annlewis has quit IRC
[21:26:34] *** phzon has quit IRC
[21:27:09] *** narutimateum has quit IRC
[21:27:40] *** xavier__ has joined #angularjs
[21:28:22] *** whitebook has joined #angularjs
[21:28:52] *** IJNX has joined #angularjs
[21:28:55] *** sahbeewah has joined #angularjs
[21:29:18] *** rho has joined #angularjs
[21:29:27] *** gurke_ has quit IRC
[21:29:28] *** cheef has joined #angularjs
[21:29:35] *** soren_engel has joined #angularjs
[21:29:35] *** xavier___ has joined #angularjs
[21:30:10] *** beilabs_________ has quit IRC
[21:31:12] *** cheef has quit IRC
[21:31:31] *** johnstorey has quit IRC
[21:32:24] *** whitebook has quit IRC
[21:32:44] *** Sky[x] has quit IRC
[21:32:55] *** Oxynum has joined #angularjs
[21:34:07] *** BillCriswell has joined #angularjs
[21:34:29] *** L42y has quit IRC
[21:34:55] *** soren_engel has quit IRC
[21:34:59] *** dannyc has quit IRC
[21:36:01] *** minimoo1 has joined #angularjs
[21:36:32] *** mlpug has quit IRC
[21:36:33] *** renlo has joined #angularjs
[21:37:33] *** IJNX has quit IRC
[21:37:53] *** joroc has quit IRC
[21:38:06] <intellix> ugh, why do I get stuff like this sometimes? "Controller 'carousel', required by directive 'slide', can't be found!" there IS <carousel> wrapping the <slide> items
[21:38:15] *** josh-k has quit IRC
[21:38:30] *** pspfolio has joined #angularjs
[21:39:26] *** IJNX has joined #angularjs
[21:39:50] *** jrvlima has quit IRC
[21:40:58] *** e0ipso is now known as e0ipso|away
[21:42:18] *** tmyie has joined #angularjs
[21:42:27] *** renlo has quit IRC
[21:42:45] <tmyie> hi. I need to load a JSON file before the template renders. Is this possible with https?
[21:43:17] <tjsail33> define before the template renders....
[21:43:39] *** johnstorey has joined #angularjs
[21:43:52] <tjsail33> i say that because you can just pass empty data to you view while the $http request finishes, then update the data after
[21:43:53] <tmyie> Basically I need to grab a json file before the page is loaded, and use that data to populate the page
[21:43:57] *** jonr22 has quit IRC
[21:43:58] <tjsail33> yeah
[21:43:58] <tjsail33> so
[21:43:59] <Grokling> tmyie: Look into using a resolve
[21:44:10] <tmyie> okay thanks :)
[21:44:12] <tjsail33> ^
[21:44:46] *** one0one has joined #angularjs
[21:45:07] *** emmesswhy has quit IRC
[21:46:36] *** cheef has joined #angularjs
[21:46:56] *** jonr22 has joined #angularjs
[21:47:39] *** ingsoc has quit IRC
[21:47:46] *** beilabs_________ has joined #angularjs
[21:48:36] *** IJNX has quit IRC
[21:48:54] *** anthon has quit IRC
[21:49:00] *** ProLoser has joined #angularjs
[21:49:22] *** VerbGarden has quit IRC
[21:49:32] *** postitnote has joined #angularjs
[21:50:01] <eslaron> Hey, I'm using ui-router, I want to edit data in another state, but when I go to anotherstate the data scope is empty . Anybody knows how to do simple dataediting with ui-router?
[21:50:40] *** tmyie has quit IRC
[21:50:43] <Grokling> elsaron: You need to use a common service/factory to access/share data between states.
[21:50:44] <wafflej0ck_> eslaron: use a factory or service to have data persist between controller instances
[21:50:49] *** renlo has joined #angularjs
[21:50:57] <eslaron> I have it
[21:51:03] <postitnote> Have you ever spent 4 straight hours on mystery css margins? I want to die.
[21:51:12] <postitnote> ui-tinymce. Is killing me.
[21:51:15] <wafflej0ck_> postitnote: I loathe CSS I feel your pain
[21:51:20] <Grokling> css is my least favorite part too.
[21:51:24] <wafflej0ck_> postitnote: have you tried CKEditor or QuillJS
[21:51:30] <wafflej0ck_> postitnote: TinyMCE seems dated to me
[21:51:35] <wafflej0ck_> postitnote: or at least last time I checked it out
[21:51:40] <postitnote> wafflej0ck_: I'm going to now. Time to cut my losses heh.
[21:52:12] *** meeder has joined #angularjs
[21:52:21] <Grokling> elsaron: I have a 'Context' service which contains arrays of data. By accessing the same array from different states, I get the same data.
[21:52:40] *** Aerospark has quit IRC
[21:52:41] *** Sky[x] has joined #angularjs
[21:53:07] <eslaron> Grokling, wafflej0ck_ I'm retrieving data using a service. I list all the data in the first state. Each list record has an 'Edit' button. I get the id of the record and go to new state, but the data doesn't load.
[21:53:38] *** zz_night-owl is now known as night-owl
[21:53:46] <wafflej0ck_> eslaron: are you injecting the same service in both controllers
[21:53:51] <Grokling> eslaron: Either pass the id as a parameter to the new state, or do the context service pattern.
[21:53:55] *** meeder has quit IRC
[21:54:18] *** TheAceOfHearts has joined #angularjs
[21:54:25] <wafflej0ck_> eslaron: yup would pass the id as a state param like Grokling said and inject the service into both and retrive the selected element in the detail views controller
[21:54:25] <eslaron> I inject the service into one controller and this controller is assigned to multiple states.
[21:54:26] *** beilabs_________ has quit IRC
[21:55:08] <Grokling> eslaron: The controller will be instantiated afresh for each state, so it doesn't know what you did anywhere else.
[21:55:21] <eslaron> Oh....
[21:55:26] <eslaron> So that's it....
[21:55:42] *** jonr22 has quit IRC
[21:55:44] *** kirfu has joined #angularjs
[21:55:53] <wafflej0ck_> yup each service/factory is a singleton though and the single instance is injected throughout and only created the first time it's referenced
[21:56:15] *** jonr22 has joined #angularjs
[21:56:16] <Grokling> Hence the context service. I have something like Context.active.person, then whenever I want to see what person I'm looking at, I just look at that object and don't have to go and find it again.
[21:56:17] *** BillCriswell has quit IRC
[21:56:21] <eslaron> So how do I do the context pattern??
[21:57:08] <eslaron> Sorry, but I lack much knowledge, so I get stuck in many places.
[21:57:12] *** beilabs_________ has joined #angularjs
[21:57:39] <Grokling> eslaron: The factory stuff is the main point of this plunker, but it shows the context pattern too. http://plnkr.co/edit/bqb7aL1VtVfgUIOd8Obx?p=info
[21:58:09] *** fixl has quit IRC
[21:58:15] <Grokling> Albeit a reasonably useless example because it only has one state..
[21:59:56] <eslaron> Hmmm
[22:00:13] <Grokling> The trouble with the context pattern is that it breaks deeplinking to some degree - although you can handle that in your resolves.
[22:00:27] *** VerbGarden has joined #angularjs
[22:00:53] <eslaron> I need to retrieve a whole list of users. Then using that list, get a user by id, edit him or delete him.
[22:00:54] *** yoshokatana has quit IRC
[22:01:04] *** loverajoel has quit IRC
[22:01:57] *** beilabs_________ has quit IRC
[22:02:23] *** kirfu has quit IRC
[22:02:28] <eslaron> The retrieving is not a problem, I use $resource or Restangular and I get the data. But catch 1 record with the given id, then go to another state, load it in a form and then edit. That's my problem.
[22:02:46] *** Aerospark has joined #angularjs
[22:02:48] <tjsail33> so i have a controller that inits when the page loads, and an $http request in it keeps firing
[22:02:53] *** bmac has quit IRC
[22:03:03] *** Aerospark has quit IRC
[22:03:04] *** beilabs_________ has joined #angularjs
[22:03:10] *** rbueno has quit IRC
[22:03:27] <Grokling> context.all.users = getAllMyUsers(); <div ng-repeat="user in all.users" ng-click="state.go('app.user.edit',{user:user.id})">user name and stuff</div>
[22:03:35] *** sahbeewah has quit IRC
[22:04:13] *** jlmitch5dev has quit IRC
[22:04:19] *** yelvert has joined #angularjs
[22:04:23] *** mary5030 has joined #angularjs
[22:04:24] *** jonr2219 has joined #angularjs
[22:04:29] *** jonr22 has quit IRC
[22:05:27] *** renlo has quit IRC
[22:05:33] *** wolfman2000 has quit IRC
[22:05:57] *** Johnny13371337 has joined #angularjs
[22:06:05] *** eago has joined #angularjs
[22:06:13] *** cthrax has quit IRC
[22:06:23] *** joroc has joined #angularjs
[22:07:00] *** rho has quit IRC
[22:07:29] *** beilabs_________ has quit IRC
[22:07:32] <wafflej0ck_> tjsail33: typically I handle all $http or $resource stuff in services
[22:07:36] *** beilabs_________ has joined #angularjs
[22:07:55] <eslaron> Grokling, could you do a little plunk that incorporates your pattern and my problem? Please ^^
[22:07:59] <tjsail33> hmm okay. i narrowed it down to the controller being initialized in an invinite loop
[22:08:01] *** MuffinMan` has joined #angularjs
[22:08:13] <wafflej0ck_> tjsail33: yeah that's it's own problem too for sure
[22:08:19] *** disorder20 has joined #angularjs
[22:08:39] <tjsail33> yeah.... its on one of like two root elements though so i have no idea why its in a loop
[22:08:52] <wafflej0ck_> tjsail33: do you have a redirect setup server side?
[22:09:00] *** yelvert has quit IRC
[22:09:01] *** mary5030 has quit IRC
[22:09:14] <wafflej0ck_> tjsail33: it might be requesting some page that doesn't exist and reloading the index.html, usually you see angular loaded more than once errors in that case though
[22:09:17] <tjsail33> yes but not for that controller
[22:09:21] <Grokling> eslaron: That gadget factory is 99% of the way there already? If it had an edit state to go to...
[22:09:40] <eslaron> I'm modyfying iy
[22:09:42] <eslaron> it
[22:09:54] <eslaron> I'll try not to destroy it :P
[22:10:10] *** minimoo1 has quit IRC
[22:10:11] <Grokling> Breaking stuff is often the best way to learn :-D
[22:10:33] *** _45kb has joined #angularjs
[22:10:33] *** Juan_ has joined #angularjs
[22:10:39] <_45kb> hi
[22:11:02] <_45kb> is there anyone who can help on a little project here https://github.com/720kb/angular-datepicker ?
[22:11:06] <Juan_> Hi!
[22:11:12] <_45kb> Juan_: ;)
[22:11:24] *** renlo has joined #angularjs
[22:11:34] <wafflej0ck_> _45kb: what's wrong?
[22:11:51] <_45kb> wafflej0ck_: check , https://github.com/720kb/angular-datepicker/issues/7
[22:11:53] *** beilabs_________ has quit IRC
[22:11:54] *** grantfunke_ has quit IRC
[22:12:05] <_45kb> actually it is fixed on Chrome but i cant get it to work on Firefox and Safari
[22:12:17] *** IJNX has joined #angularjs
[22:12:24] <_45kb> i tryed using tabindex in the directive template but meh, wont work
[22:13:04] *** Juan_ has quit IRC
[22:13:19] <wafflej0ck_> _45kb: beleive there are some tabbable directives out there that might help
[22:13:26] <_45kb> Then in general a slim down to the code could be awesome but i have to admit i tryed without any result at the moment
[22:13:50] <_45kb> wafflej0ck_: mmm i don't know much about do you have resource?
[22:13:58] *** sinother has joined #angularjs
[22:14:20] *** balr0g has quit IRC
[22:14:31] *** D-Boy has quit IRC
[22:14:35] <wafflej0ck_> _45kb: was just doing a bit of googling not coming up quick though, might have just been a conversation in here about implementing a layer for controlling tabbing more directly
[22:14:37] *** D-Boy has joined #angularjs
[22:14:49] *** SergioFilhow__ has joined #angularjs
[22:15:12] *** snurfery has joined #angularjs
[22:15:16] *** jlmitch5dev has joined #angularjs
[22:15:21] <_45kb> wafflej0ck_: oh well ok :)
[22:15:24] *** VerbGarden has quit IRC
[22:15:25] <tjsail33> like im serving 10 on one request per second
[22:15:30] <tjsail33> im so confused haha
[22:15:47] <_45kb> I am trying my best on Angular.js but there many things i need to understand better at the moment
[22:16:12] <_45kb> tjsail33: :D that is a good solution to scale easily :D
[22:16:30] *** bmac has joined #angularjs
[22:16:43] <tjsail33> _45kb: except its only supposed to happen once per page load.
[22:17:14] <_45kb> tjsail33: eheheh
[22:17:16] <wafflej0ck_> _45kb: https://gist.github.com/typesafe/10482464 <-- this might help I also see people suggesting to use ng-attr-tabindex
[22:17:19] *** beilabs_________ has joined #angularjs
[22:17:20] *** grantfunke_ has joined #angularjs
[22:17:29] *** lemur has joined #angularjs
[22:17:46] *** mtsr has joined #angularjs
[22:17:58] <_45kb> wafflej0ck_: could be a solution just need to try it out thanks :)
[22:18:20] *** marshall has left #angularjs
[22:18:42] *** hell_razer has quit IRC
[22:18:46] *** robdubya has joined #angularjs
[22:18:53] *** fairuz has joined #angularjs
[22:19:13] *** SergioFilhow__ has quit IRC
[22:19:34] *** Rebirth has joined #angularjs
[22:19:54] <_45kb> wafflej0ck_: are you on github?
[22:20:03] *** sahbeewah has joined #angularjs
[22:20:49] <wafflej0ck_> _45kb: regarding the code I would move the template out to a separate file like calendar.tpl.html and use templateUrl to load it, you can use html2js grunt task or gulp plugin to build the HTML into a angular module that pushes the HTML into the template cache so the end user is still just loading up your JS file but the template is defined outside the JS
[22:20:54] <wafflej0ck_> _45kb: I'm shusain on github
[22:20:54] <tjsail33> so i put logs roung my $http request and everything, and while all of the requests are firing nothing prints. etf.
[22:21:06] *** arathunku has joined #angularjs
[22:21:34] *** annlewis has joined #angularjs
[22:21:36] *** bkmorse has joined #angularjs
[22:21:58] *** sahbeewah has quit IRC
[22:22:10] *** xavier___ has quit IRC
[22:22:10] *** xavier__ has quit IRC
[22:22:19] *** renlo has joined #angularjs
[22:22:33] <wafflej0ck_> _45kb: there are some other things you could create aliases for like angular.element(theCalendar) but overall doesn't look like you were repeating yourself too much which is good and the code isn't too huge for a datepicker so good job on that
[22:22:51] *** eago has quit IRC
[22:23:06] <_45kb> wafflej0ck_: the external template is an awesome idea imho
[22:23:14] <_45kb> i've been thinking about it for so long
[22:23:31] <wafflej0ck_> yeah maintaining a template that is HTML inside of JS is a pain
[22:23:37] *** djam90 has quit IRC
[22:23:40] <_45kb> then i ended up making it internal cause i tough people is too lazy :P like me
[22:23:45] <_45kb> but i agree
[22:23:59] *** beilabs_________ has quit IRC
[22:24:05] <tjsail33> i always did divs with id of the template name i could just close and use as templets
[22:24:09] <wafflej0ck_> yeah I did that initially until I had some complex template like this and since then I just use html2js for any of my components
[22:24:09] <_45kb> and i hate html inside js absolutely
[22:24:14] *** grantfunke_ has quit IRC
[22:24:20] *** Mackseraner has quit IRC
[22:24:33] *** beilabs_________ has joined #angularjs
[22:24:48] *** grantfunke_ has joined #angularjs
[22:25:05] *** renlo has quit IRC
[22:25:12] <_45kb> wafflej0ck_: sure, i mean, the problem comes when you don't use grunt or task managers, most of the people just uses bower but majority probably uses nothing just includes the files in the html :(
[22:25:22] <_45kb> i personally use Grunt on every project
[22:25:47] <wafflej0ck_> _45kb: I'm not so sure about that, at least in here there are lots of gulp and grunt users
[22:25:52] *** threesixes has quit IRC
[22:26:12] <_45kb> wafflej0ck_: sure that was my biggest doubt when i started it
[22:26:14] *** squeakytoy has quit IRC
[22:26:16] *** annlewis has quit IRC
[22:26:22] <wafflej0ck_> _45kb: typically we guide people to use them if they aren't already, cause running tests, building deploy files etc. is a pretty monumental task otherwise
[22:26:27] <_45kb> so i decided for the ugly but easiest way :(
[22:26:42] <wafflej0ck_> yeah no worries that's the way to go until it becomes the hard way :)
[22:26:54] <_45kb> yes i agree :)
[22:26:56] <wafflej0ck_> keep it simple until you need something more complex
[22:27:30] *** plushy has joined #angularjs
[22:28:16] <tjsail33> do any of you see anything wrong with this controller?
[22:28:18] <tjsail33> https://gist.github.com/tjsail33/614387e378244a475e0f
[22:28:22] *** moritzs has quit IRC
[22:28:23] *** Dixty has joined #angularjs
[22:28:53] *** beilabs_________ has quit IRC
[22:29:01] <_45kb> well lets see, anyway if you'd like to help feel free to PR, issue, feedback, i mean anything is appreciated, as you wish ;)
[22:29:26] *** pspfolio has quit IRC
[22:29:37] <_45kb> wafflej0ck_: sorry forgot to ping you :)
[22:30:38] *** renlo has joined #angularjs
[22:30:40] *** cotko has joined #angularjs
[22:31:21] *** sahbeewah has joined #angularjs
[22:31:25] *** mylord has quit IRC
[22:32:59] *** dannyc has joined #angularjs
[22:34:30] *** bmac has quit IRC
[22:34:43] *** moritzs has joined #angularjs
[22:35:51] *** stormbytes has quit IRC
[22:35:56] *** bmac has joined #angularjs
[22:36:16] *** jonr22 has joined #angularjs
[22:36:32] *** minimoo1 has joined #angularjs
[22:36:49] *** tschundeee has joined #angularjs
[22:37:38] *** bmac has quit IRC
[22:37:44] *** johnstorey has quit IRC
[22:38:17] *** sirsirsir has joined #angularjs
[22:38:27] <SexualRickshaw> Grokling: If you're around, I (kinda) got the logic for routing implemented, but for some reason it's not working: http://plnkr.co/edit/U6ckiuuF8NTN8M8U7Ntt?s=ZqoWAbdZn3QNcf4k - I'm gonna be out for the next half hour or so, but take a look over it
[22:38:37] *** thumpba has joined #angularjs
[22:39:21] *** Sky[x] has quit IRC
[22:39:28] *** Aerospark has joined #angularjs
[22:39:36] *** bkmorse has left #angularjs
[22:39:37] *** jonr2219 has quit IRC
[22:39:53] *** joroc has quit IRC
[22:40:20] <Grokling> SexualRickshaw: I'll have a look in a bit.. finally getting some traction on my own project this morning!
[22:40:37] <wafflej0ck_> _45kb: cool yeah I'll star it and come back later, date pickers are always a pain and I haven't picked any particular solution yet so will check this out (typically use ui-bootstrap but not a huge fan of the date picker there style wise)
[22:40:47] <wafflej0ck_> _45kb: thanks for working on this
[22:41:06] <SexualRickshaw> Grokling: Well, there's something
[22:41:21] *** beilabs_________ has joined #angularjs
[22:41:41] <_45kb> wafflej0ck_: thanks to you for helping! i have many ideas to develop on angular the only problem is the so called time eheh :)
[22:41:45] *** learner1 has joined #angularjs
[22:41:47] <_45kb> thanks really
[22:42:31] *** DarrenCraig has joined #angularjs
[22:42:34] *** learner has quit IRC
[22:42:46] *** sirsirsir has quit IRC
[22:42:56] *** patrickarlt has quit IRC
[22:42:57] *** shaym_ has quit IRC
[22:43:03] *** thumpba has quit IRC
[22:43:06] *** wallerdev has joined #angularjs
[22:43:43] *** sahbeewah has quit IRC
[22:43:53] *** bundledavid has joined #angularjs
[22:44:02] <eslaron> Grokling, http://plnkr.co/edit/bqb7aL1VtVfgUIOd8Obx?p=preview I almost got it, but I can't go to the second state
[22:44:20] *** DarrenCraig has quit IRC
[22:44:41] *** cheef has quit IRC
[22:44:52] *** wallerdev has quit IRC
[22:45:05] <Grokling> eslaron: That's my plunk back again.. You need to 'fork' it.
[22:45:05] *** DarrenCraig has joined #angularjs
[22:45:17] <eslaron> okay xD
[22:45:49] *** mtsr has quit IRC
[22:45:57] *** beilabs_________ has quit IRC
[22:45:58] *** ron1 has joined #angularjs
[22:46:26] <eslaron> Grokling, here http://plnkr.co/edit/XFklJdkogssqQTHvUc08?p=preview
[22:46:29] *** sahbeewah has joined #angularjs
[22:46:34] *** stormbytes has joined #angularjs
[22:47:36] *** ron1 has quit IRC
[22:47:58] *** stormbytes has quit IRC
[22:48:46] *** bundledavid has quit IRC
[22:48:50] *** ron1 has joined #angularjs
[22:49:55] *** johnstorey has joined #angularjs
[22:50:19] *** beilabs_________ has joined #angularjs
[22:50:20] *** tjsail33 has quit IRC
[22:50:30] *** sahbeewah has quit IRC
[22:50:36] *** tjsail33 has joined #angularjs
[22:50:39] *** _45kb has quit IRC
[22:50:41] *** kirfu has joined #angularjs
[22:52:28] <robdubya> i shoudlnt have eaten all the damn pizza
[22:52:30] <robdubya> uuughhh
[22:53:02] *** freelyfred has joined #angularjs
[22:53:57] *** dseitz has joined #angularjs
[22:54:54] *** SergioFilhow__ has joined #angularjs
[22:54:54] <tjsail33> how does one avoid nested ng-repeats killing your page?
[22:55:02] *** postitnote has quit IRC
[22:55:11] <Grokling> tjsail33: how deep are you nested?
[22:55:13] <robdubya> depends on what you're doing. bind once, or dont use ng-repeat, or ...
[22:55:22] *** beilabs_________ has quit IRC
[22:55:55] *** beilabs_________ has joined #angularjs
[22:55:55] *** DuelShark has joined #angularjs
[22:56:05] <tjsail33> ng-repeat
[22:56:06] *** laurensclaessen has joined #angularjs
[22:56:11] <tjsail33> ng-repeat ng-include
[22:56:33] <robdubya> oh really, you're using ng-repeat? you don't say
[22:56:41] <robdubya> also use track by :D
[22:56:54] <tjsail33> and then i have ng-repeats inside the last one for nested comments
[22:57:08] <Grokling> So you're only 2 layers deep?
[22:57:16] *** daviesgeek has quit IRC
[22:57:36] *** discgo has joined #angularjs
[22:57:40] <tjsail33> yeah, two layers where the second calls an include, and the include has potentially 3 ng-repeats in it for nested comment
[22:57:49] *** tschunde_ has joined #angularjs
[22:59:02] <wafflej0ck_> tjsail33: for nested comments you probably want a recursive directive instead so it can work for any number of levels deep and doesn't have placeholders where they might not be needed (if i understand correctly)
[22:59:11] <tjsail33> if i get rid of the nested comments the performance is acceptable
[22:59:24] <robdubya> see also http://caitp.github.io/ui-comments/#/
[22:59:42] <tjsail33> https://gist.github.com/tjsail33/a7cdec2353270e5b6874
[22:59:49] <tjsail33> thats the directive im using
[23:00:05] <tjsail33> it is a recursive compile
[23:00:09] <Lewix> my test don't pass because of moment (the library). I'm not sure how to make it pass - it's listed in bower as a dependencies, i then injected it as I would a service
[23:00:11] <caitp> repeaters are pretty slow regardless, so comments are hard to do well :(
[23:00:20] <Lewix> function(moment,...)
[23:00:26] *** beilabs_________ has quit IRC
[23:00:27] *** tschundeee has quit IRC
[23:00:47] <robdubya> tjsail33 can you post some sample data?
[23:00:56] <eslaron> Grokling, did you take a lot at the modified plunk? http://plnkr.co/edit/XFklJdkogssqQTHvUc08?p=preview
[23:01:01] <tjsail33> uhhhhhh sure
[23:01:29] *** memento_ has quit IRC
[23:01:34] <robdubya> that looks wacky too (the directive) - watchers and events all over the shop
[23:01:38] *** TheAceOfHearts has quit IRC
[23:01:45] <tjsail33> robdubya: what kind of data are you looking for? just for that directive?
[23:01:48] *** merobertsjr has joined #angularjs
[23:01:54] *** johnstorey has quit IRC
[23:02:04] *** memento_ has joined #angularjs
[23:02:05] <robdubya> a sample of the comment data- are you loading them incrementally?
[23:02:17] <tjsail33> yeah, so i load them one level at a time
[23:02:22] <tjsail33> it caps at 3 levels
[23:02:26] *** bayousoft has joined #angularjs
[23:02:30] <robdubya> and are you using websockets?
[23:02:33] *** tschunde_ has quit IRC
[23:02:46] <tjsail33> websockets for new ones, $http for existing
[23:02:50] <tjsail33> but they lazy load
[23:02:56] <tjsail33> only when they are in the current view
[23:03:05] <tjsail33> so the $https requests dont occur too often
[23:03:12] *** asheinfeld has joined #angularjs
[23:03:15] *** daviesgeek has joined #angularjs
[23:04:15] *** SergioFilhow__ has quit IRC
[23:04:31] *** themime has joined #angularjs
[23:04:36] *** sirkitree|afk has quit IRC
[23:04:36] <Grokling> eslaron: Yes. A few things not happening there. Use ui-sref to fire state.go events from the DOM; If you nest states like home.edit, you need a ui-view directive in your home state (or just don't nest them which would be fine in this scenario). You also need a controller for your edit state so you can bind that user param into the view.
[23:05:12] <Grokling> robdubya: Did you get internets at your house now?
[23:05:23] *** dannyc has quit IRC
[23:05:31] <robdubya> yeah, shockingly it took AT&T only 3 days
[23:05:49] <robdubya> i live in frikkin silicon valley and can only get 18mb. wtf.
[23:06:01] <tjsail33> {
[23:06:01] <tjsail33> __v: 0,
[23:06:02] <tjsail33> _id: ObjectId("53978283b510710400ada300"),
[23:06:03] <tjsail33> author: "53449d81e9ada1040043c8aa",
[23:06:04] <Grokling> Awesome. I for one, am looking forward to seeing you around more!
[23:06:05] <tjsail33> body: "I don't know how to do this!",
[23:06:07] <tjsail33> createdOn: ISODate("2014-06-10T22:11:15.889Z"),
[23:06:09] <tjsail33> feedItem: "53cfdac7092f320400c9095b",
[23:06:11] <tjsail33> files: [],
[23:06:13] <tjsail33> modifiedOn: ISODate("2014-06-10T22:11:15.889Z"),
[23:06:15] <tjsail33> parent: ”53cfdac7092f320400c9095b”,
[23:06:17] <tjsail33> upvotes: 1,
[23:06:18] <Grokling> Oi! Not in the channel!!
[23:06:19] <tjsail33> visible: true
[23:06:21] <tjsail33> }
[23:06:23] *** jonr22 has quit IRC
[23:06:23] <tjsail33> robdubya: thats for you
[23:06:24] <robdubya> terrible
[23:06:25] <robdubya> just terrible
[23:06:29] * themime cries
[23:06:29] *** joroc has joined #angularjs
[23:06:29] <tjsail33> yeah i clicked the wrong button
[23:06:37] <Grokling> tjsail33: !slap
[23:06:46] *** merobertsjr has quit IRC
[23:06:47] <Grokling> tjsail33: !trout
[23:06:47] <UniBot> tjsail33 slaps in the face with a wet trout
[23:06:52] *** jonr22 has joined #angularjs
[23:06:54] *** burzum2 is now known as burzum
[23:07:06] <Grokling> Ah.. I give up.
[23:07:12] <BahamutWC|Work> !trout Grokling
[23:07:13] <UniBot> BahamutWC|Work slaps Grokling in the face with a wet trout
[23:07:15] <BahamutWC|Work> :P
[23:07:21] <Grokling> Oh shush you..
[23:07:24] <robdubya> are you at work?
[23:07:34] <tjsail33> https://gist.github.com/anonymous/f390d2fc26726b8b52ce better?
[23:07:38] *** Dixty has quit IRC
[23:08:08] <tjsail33> i basically load an array of those, where each iteration is loaded by the parent property
[23:08:16] *** tschundeee has joined #angularjs
[23:08:22] *** sirkitree|afk has joined #angularjs
[23:08:23] *** AimerPaddle has quit IRC
[23:08:29] <robdubya> so you do something like GET /comments?parent=12edfdsfds
[23:08:37] *** minimoo1 has quit IRC
[23:08:43] <BahamutWC|Work> nah, just on the work laptop
[23:08:44] <tjsail33> yeah exactly
[23:09:05] <BahamutWC|Work> taking a look at code for the first time in a couple of days
[23:09:15] *** JmZ- is now known as JmZ-_
[23:09:24] <tjsail33> BahamutWC|Work: jealous. im on hour 30.
[23:09:37] <robdubya> read your PR, like it except for the naming conventions, i'll comment a bit when my drugs kick in
[23:09:50] *** beilabs_________ has joined #angularjs
[23:09:59] <themime> i made a directive that houses my canvas logic - im just kind of playing around with 2d shapes for fun using html5 canvas. however i now want to stack canvases, like a foreground/background to only have to render certain things. im trying to figure out how to continue my angular approach. im using a template right now to just stash my <canvas></canvas> but
[23:10:00] <themime> rather than expand the template(or templateUrl) im thinking about spawning more directives on it, kind of like a "canvasHub" with outstretching subcanvases it communicates to as needed. anyone have thoughts on my approach?
[23:10:08] <BahamutWC|Work> robdubya: I’m actually tweaking the code some more - I would ideally like to instantiate the constructor functions each time instead of using the prototype
[23:10:14] *** Oxynum has quit IRC
[23:11:04] *** kirfu has quit IRC
[23:11:10] <tjsail33> robdubya: since its capped at three levels, am i better off not using a recursive directive and just doing a big nested repeat?
[23:11:22] *** jonr22 has quit IRC
[23:12:13] *** whitebook has joined #angularjs
[23:12:57] *** Johnny13371337 has quit IRC
[23:13:24] <robdubya> tjsail33 if you're sure its at 3, probably, but part of the issue is that you've got a bunch of manual watchers
[23:13:30] *** grantfunke_ has quit IRC
[23:13:54] <robdubya> also i had my first earthquake experience!
[23:13:57] *** johnstorey has joined #angularjs
[23:14:01] *** tomengland_mbp has joined #angularjs
[23:14:31] <tjsail33> robdubya: we're capping it at three for UX purposes. and you mean things like $scope.$watch?
[23:14:38] <wafflej0ck_> themime: sounds reasonable, stack of canvases represented by directives as layers that have some parent directive that allows you to re-organize them or whatever might be needed
[23:14:40] <robdubya> yessir
[23:15:40] <robdubya> it would, for example, already watch an array of comments via ng-repeat - when a new message comes in, you'd just push it into the approproate bit of the data
[23:15:40] <tjsail33> i only have one there though?
[23:15:57] <robdubya> also the rootScope.on business is just nasty :D
[23:16:13] <tjsail33> isnt that that i do on line 167?
[23:16:16] *** mylord has joined #angularjs
[23:16:24] *** Aerospark has quit IRC
[23:16:59] <robdubya> tjsail33 how many comments are we talking about here btw? dozens? hundreds? thousands?
[23:17:03] <tjsail33> and yeah, i know its not the best, but its how im signalling pages to reload that process data before putting them into ng-repeats for rendering
[23:17:23] <tjsail33> the average number of comments on a post is probably like 10, but some can have over 100
[23:17:30] <tjsail33> so dozens
[23:17:31] *** fairuz has quit IRC
[23:17:33] <robdubya> you'd be fine with ng-repeat there i reckon
[23:17:37] <robdubya> especially in 1.3
[23:17:57] <tjsail33> hmm okay.
[23:18:23] *** tomengland_mbp has quit IRC
[23:18:24] <robdubya> also use track by, since you have a unique ID field you can key off
[23:18:27] <themime> wafflej0ck_: yea thats what the "hub" was for - logic that directs the subcanvases - subcanvase directives hopefully have their own logic that ill be able to move from my currently rapidly growing single directive
[23:18:38] <tjsail33> ugh i really dont want to rewrite this haha. and i dont know anything about track by...
[23:18:42] <robdubya> that would prevent the whole mess from re-rendering when it changes and make a big diff
[23:18:55] <robdubya> ng-repeat="thing in things track by thing.id"
[23:18:59] <robdubya> pretty easy :)
[23:19:02] *** bmac has joined #angularjs
[23:19:07] <tjsail33> hmm okay. thanks
[23:19:21] *** beilabs_________ has quit IRC
[23:19:24] <robdubya> that glues/associates a DOM node with a data element
[23:19:29] <themime> wafflej0ck_: i really dig using angular for my logic and canvas for graphics. i can watch for changes and redraw as needed, its pretty slick so far. not sure if really necessary but its fun so far!
[23:19:29] <robdubya> big boost in perf
[23:20:05] <tjsail33> yeah okay. my don for this is pretty messy too haha. i'm going to butcher it and restart and see how it goes.
[23:20:12] <robdubya> now you're thinking with portals!
[23:20:34] <tjsail33> with portals???
[23:20:45] <robdubya> BahamutWC|Work i made a bunch of updates to angularSails last night, will finish it off today most likely. new demo app, model layer, etc
[23:20:56] <BahamutWC|Work> nice
[23:21:12] <Lewix> is moment.js and angular.js not compatible
[23:21:13] *** ProLoser has quit IRC
[23:21:20] <Lewix> i have a hard time making it work in testing
[23:21:24] <tjsail33> is it safe to recursively reference a template? or should i put it in a replate:true directive?
[23:21:25] <Lewix> not matter what i try
[23:21:26] <themime> i keep hearing sails a lot. im early enough into my backend changes im still considering it. currently using mongoose
[23:21:35] *** Solid1 is now known as Solid1_afk
[23:21:40] *** annlewis has joined #angularjs
[23:21:56] <robdubya> pretty sure replace is deprecated
[23:22:09] <robdubya> themime its pretty damn cool, but then i'm a bit biased :)
[23:22:14] <themime> how recently? i still see it a lot
[23:22:25] *** beilabs_________ has joined #angularjs
[23:22:29] <robdubya> 1.3, but i might be making that up
[23:22:47] *** Aerospark has joined #angularjs
[23:22:50] <themime> i think i just used it and saw it on the docs, i usually pay attention to that stuff, now im curious
[23:22:55] <themime> s/used/played with
[23:23:09] <robdubya> deprecated as in still exists but on its way out
[23:23:11] <themime> lol http://stackoverflow.com/questions/24194972/why-is-replace-deprecated-in-angularjs
[23:23:22] *** glassir has quit IRC
[23:23:26] <themime> guess i was wrong and was just on old blogs
[23:23:46] *** kirfu has joined #angularjs
[23:23:58] *** whatadewitt has joined #angularjs
[23:24:07] <themime> yea 1.3.0 beta
[23:24:09] *** mary5030 has joined #angularjs
[23:25:08] *** nemothekid has joined #angularjs
[23:25:13] <wafflej0ck_> themime: heh col glad to hear its working out well, I'd like to start doing this with ProcessingJS as an abstraction for the canvas too since I'm somewhat familiar with Processing and it makes building scenes pretty easy
[23:25:48] <wafflej0ck_> Lewix: shouldn't be a problem so long as you load up moment.js in your tests
[23:26:03] <wafflej0ck_> Lewix: so far as I know moment.js does everything synchrnously so shouldn't really be causing you problems
[23:26:17] <themime> oh cool that name is so familiar, is that the same one that Arduino uses?
[23:26:23] <Lewix> wafflej0ck_: its supposedly loaded. I injected it in my test but i always get the error
[23:26:30] *** ProLoser has joined #angularjs
[23:26:30] <robdubya> might want to wrap it in a service
[23:26:31] <themime> like a bastard of C and java if i recall
[23:26:33] <robdubya> ^ moment
[23:26:34] *** annlewis has quit IRC
[23:26:36] <wafflej0ck_> themime: yeah that's how I got to using it, nice Serial library to communicate with arduino easily
[23:26:38] <Lewix> ReferenceError: Can't find variable: moment
[23:26:42] <tjsail33> angular-moment exists in bower
[23:26:54] <Lewix> i have bot angular-moment and moment
[23:27:04] <Lewix> moment seems to work on my console
[23:27:06] <robdubya> i want to do more hardware things :( BLE is so fun
[23:27:27] <Lewix> it works whenever i call it on chrome console, however it does not when i run test
[23:28:05] <robdubya> load order?
[23:28:25] <themime> wafflej0ck_: yea arduino was some cool shit, i helped on some community project for it for a local zoo. the douche beforehand (project carried over semester to semester) wrote it all in ASM so it would also count as his engineering final and i was like fuck /that/ and did some research, convinced them to get an arduino, and wrote some really crispy clean
[23:28:25] <themime> processing code instead
[23:28:41] <wafflej0ck_> themime: nice
[23:28:49] *** postitnote has joined #angularjs
[23:28:49] <themime> if i ever did that stuff again though id probably get a raspberry pi, but those didn't even exist then
[23:28:49] <robdubya> lol @ fuck /that/
[23:29:05] <themime> haha
[23:29:05] <robdubya> get an edison, shit runs nodeJS
[23:29:19] <themime> haha awesome
[23:29:24] <wafflej0ck_> themime: did this thing https://www.youtube.com/watch?v=gWHfxHi0Jj8
[23:29:36] <wafflej0ck_> themime: mostly I just tinker with mine haven't really used it for anything serious
[23:29:58] <tjsail33> what is transclude?
[23:30:02] *** Morgiver has joined #angularjs
[23:30:07] <wafflej0ck_> tjsail33: the devil
[23:30:09] <wafflej0ck_> tjsail33: heh
[23:30:10] <Morgiver> hi
[23:30:12] <themime> wafflej0ck_: badass is that using sonar to avoid running into stuff?
[23:30:17] <wafflej0ck_> themime: yup
[23:30:22] <tjsail33> wafflej0ck_: okay, will stay away from haha
[23:30:30] <wafflej0ck_> tjsail33: just kidding it's like creating a frame
[23:30:37] <wafflej0ck_> tjsail33: it can be difficult though
[23:30:38] <tjsail33> hmm okay
[23:30:43] *** beilabs_________ has quit IRC
[23:30:57] <wafflej0ck_> tjsail33: basically can take something from antoher scope/context have it inside a directive but retains it's original scope
[23:31:09] <wafflej0ck_> tjsail33: good example is a panel that includes other stuff
[23:31:14] <tjsail33> oh okay, thats pretty nice
[23:31:33] <themime> wafflej0ck_: like my sub canvas example? i thought about transclude on that
[23:31:57] *** VerbGarden has joined #angularjs
[23:32:14] <SexualRickshaw> Grokling: Make any headroads into why the routing isn't working?
[23:32:17] <wafflej0ck_> themime: not sure if it would apply there or not, but it may
[23:32:22] *** mary5030 has quit IRC
[23:32:41] <Grokling> SexualRickshaw: Plunker is being a dick again. Not sure what gives there - it's whining about an injector error, but I'm not seeing it.
[23:32:42] <themime> it seems like it immediately reduces readability so even when i think about using it i end up with a shared service instead
[23:32:57] *** mary5030 has joined #angularjs
[23:33:01] <robdubya> WHERE IS MY PLUNKERNEXT
[23:33:05] *** beilabs_________ has joined #angularjs
[23:33:05] <themime> ^
[23:33:24] *** jimvideo has joined #angularjs
[23:33:43] <robdubya> transclude demo and shit http://plnkr.co/edit/EwM4tNyTrz3tkum5vsJ1?p=preview
[23:34:21] *** mary5030_ has joined #angularjs
[23:34:24] *** Aerospark has quit IRC
[23:34:40] *** mary5030 has quit IRC
[23:35:05] <themime> oh that readability isn't bad at all, i forgot you need it declared in the scope
[23:35:36] *** doug64k has quit IRC
[23:36:02] <SexualRickshaw> Grokling: Well, I can download it on my local machine and see what's up with it
[23:36:03] <themime> hm maybe ill start using transclude now. maybe a canvas controller with click detection, etc but then the directives themselves house the html for the canvases rather than some overarching directive
[23:36:17] <Grokling> SexualRickshaw: This one is working (it's eslaron's one so don't mess it up ;-) See if you can play spot the difference better than me..
[23:36:28] *** minimoo1 has joined #angularjs
[23:36:32] *** siovene has quit IRC
[23:36:37] <robdubya> themime its useful when you want to "assemble" layers and stuff in html
[23:36:42] <SexualRickshaw> Which one is working?
[23:37:00] <Grokling> Right. Helps to paste the link. Sorry. http://plnkr.co/edit/XFklJdkogssqQTHvUc08?p=preview&s=MfOgnR8MLCGZO1ao
[23:38:16] *** sirsirsir has joined #angularjs
[23:38:17] *** AlexZan has joined #angularjs
[23:38:37] *** laurensclaessen has quit IRC
[23:39:09] *** beilabs_________ has quit IRC
[23:39:21] *** Aerospark has joined #angularjs
[23:39:25] *** beilabs_________ has joined #angularjs
[23:39:46] *** joroc has quit IRC
[23:39:55] <tjsail33> can you stop a directive from rendering the template based on a variable?
[23:40:36] <wafflej0ck_> tjsail33: template can be a function so sort of I suppose
[23:40:54] <themime> yea just return an empty <div></div> shell instead based on some factor
[23:41:05] <tjsail33> will i have access to $scope?
[23:41:05] *** johnstorey has quit IRC
[23:41:17] <themime> but you could just use ng-show/include/etc instead
[23:41:24] <robdubya> SexualRickshaw http://plnkr.co/edit/VhtWcdJE3wTVKhURaXdB?p=preview&s=MfOgnR8MLCGZO1ao now with 100% more resolve + navigation
[23:41:34] *** DuelShark has quit IRC
[23:42:12] <tjsail33> i basically want to recursively include a directive until an expression is true
[23:42:37] <Grokling> What was the secret robdubya ?
[23:43:06] *** sirsirsir has quit IRC
[23:43:08] <robdubya> i just added a simple Ctrl, the resolve code, and made the gadgetFactory return a promise
[23:43:22] <SexualRickshaw> I figured it out - it was bitching because I had used "employeeListCtrl" as a controller in that app.js
[23:43:35] <SexualRickshaw> and it wasn't seeing it defined anywhere previous to that, so it didn't want to work
[23:43:41] *** IJNX has quit IRC
[23:44:43] *** cakirke has joined #angularjs
[23:44:51] *** beilabs_________ has quit IRC
[23:45:21] *** merobertsjr has joined #angularjs
[23:45:27] <tjsail33> would ng-if work for me??
[23:45:31] *** beilabs_________ has joined #angularjs
[23:45:49] *** cads has joined #angularjs
[23:45:54] <robdubya> sure, but keep in mind its one more watch :)
[23:46:33] <tjsail33> gah, true
[23:46:52] *** amphetamines has joined #angularjs
[23:47:05] <wafflej0ck_> tjsail33: see this https://github.com/shusain/itDebugPanel/blob/master/app/component/component.js I found a factory helper on SO for making a recursive directive
[23:47:13] *** AimerPaddle has joined #angularjs
[23:47:23] <SexualRickshaw> Grokling: Okay, now that I moved it from the app.js to script.js, I could re-enable the list controller, and everything is working as it should... for now
[23:47:26] <wafflej0ck_> tjsail33: see the templates here for where it conditionally includes the directive in itself https://github.com/shusain/itDebugPanel/tree/master/app/component/templates
[23:47:34] <tjsail33> yeah, i was using that before, but because my dataset is so small robdubya recommended just nesting it all
[23:47:41] <robdubya> directiveception
[23:47:43] <wafflej0ck_> ah hmm
[23:47:51] <themime> haha
[23:48:01] <eslaron> Finally after 10k years I manged to do it xD, big thanks, Grokling :D
[23:48:03] *** drugs has joined #angularjs
[23:49:19] <Grokling> eslaron: You're paid by the hour eh? ;-)
[23:49:39] *** mylord has quit IRC
[23:49:45] <eslaron> nope, I'm still a student xD And this is for my thesis project xD
[23:49:50] *** Aerospark has quit IRC
[23:50:03] <eslaron> so, it's even worse xD
[23:50:08] <robdubya> i should have gotten a degree in AngularJS
[23:50:18] <eslaron> xD
[23:50:21] <eslaron> if there is one
[23:50:23] *** Aerospark has joined #angularjs
[23:50:26] *** soee_ is now known as soee
[23:50:31] <Grokling> robdubya: You should start your own university..
[23:50:35] *** tjsail33 has quit IRC
[23:50:36] *** opiates has quit IRC
[23:50:39] <Grokling> Dr. Rob.
[23:50:59] <Grokling> Kinda like Dr. Phil, but for disfunctional code maybe?
[23:51:06] <SexualRickshaw> I actually have a CS degree, but I was taught absolutely nothing about web stuff
[23:51:10] <wafflej0ck_> Dubya State
[23:51:15] *** tjsail33 has joined #angularjs
[23:51:23] <Grokling> ^
[23:51:27] *** whiteboo_ has joined #angularjs
[23:51:28] <tjsail33> !history 10
[23:51:29] <wafflej0ck_> same, CS degree all self taught wrt the web (aside from a java class in sockets)
[23:51:45] *** amphetamines has quit IRC
[23:51:54] <SexualRickshaw> Taught myself a little bit of Rails at my last job
[23:52:07] <robdubya> i'm too busy pissing everyone at my office to start a university at the moment :D
[23:52:09] <wafflej0ck_> I took a database class but knew more than the teacher so just acted as a TA in that class and same with an HTML course
[23:52:11] *** lamonte has joined #angularjs
[23:52:29] <Grokling> Dammit. I keep throwing out stacks of code. Man I wrote a lot of crap on the way here.
[23:52:34] <wafflej0ck_> wish they had taught us something about SVN/git though
[23:52:44] <SexualRickshaw> I took a database class myself but it was 95% theory
[23:52:57] <robdubya> i'm a dumbass, because i went to UTexas and could have had dijkstra as a prof
[23:53:03] <wafflej0ck_> oh wow
[23:53:05] <wafflej0ck_> rockstar
[23:53:22] <SexualRickshaw> You went to a school with one of the best CS programs in Texas
[23:53:27] <wafflej0ck_> I was amazed when I learned Djikstra's algorithm would have been awesome to have him as a teacher
[23:53:48] <robdubya> to be fair, this was before the iphone existed. had it already, i would have done CS
[23:54:08] *** yts has quit IRC
[23:54:09] <wafflej0ck_> though I did really like my Algorithms class professor so not sure I would want to trade
[23:54:28] *** beilabs_________ has quit IRC
[23:54:41] <wafflej0ck_> he made us solve everything, he would just stand in silence waiting for a student to suggest a solution
[23:54:45] *** iamvfl has joined #angularjs
[23:54:46] *** whitebook has quit IRC
[23:54:50] <wafflej0ck_> then we would narrow it down to being an actual known good solution
[23:55:02] *** htmelvis has quit IRC
[23:55:13] <tjsail33> robdubya: im half tempted to do this the unangular way because i need so many click listeners and ifs and stuff.
[23:55:22] <SexualRickshaw> I had a lot of terrible profs during my time at uni
[23:55:31] *** jimmyy has joined #angularjs
[23:55:54] <robdubya> tjsail33 i'd turn each comment into a JS instance of a Comment
[23:55:59] <SexualRickshaw> I think I left my digital logic class knowing less than I did whenever I entered it
[23:56:04] <Grokling> instances FTW
[23:56:10] <robdubya> Comment.loadChildren()
[23:56:11] <robdubya> etc
[23:56:12] *** Evanion has quit IRC
[23:56:16] <tjsail33> oh.
[23:56:18] *** wolfman2000 has joined #angularjs
[23:56:22] <tjsail33> so make each comment a directive?
[23:56:25] <wafflej0ck_> I think AI, Algorithms, Networking (using Java sockets), and Design Patterns were my favorite, I went to DePaul in Chicago so class sizes weren't too big
[23:56:29] <robdubya> nope, that's service stuff
[23:56:40] <wafflej0ck_> oo and my programming language concepts class was good but I was so confused the entire time
[23:56:52] <wafflej0ck_> the guy who taught it was 99% theory
[23:56:56] <robdubya> i'm not all OO nazi but certain stff can be useful
[23:57:04] <tjsail33> hmm okay. cause basically the issue is that there like 10 states each comment can be in
[23:57:06] <wafflej0ck_> oh meant ooohhh not OO :)
[23:57:23] *** test11 has joined #angularjs
[23:57:31] <wafflej0ck_> I didn't have a class just about OO but most of the classes teachers preferred you used Java
[23:57:39] *** Jeffrey__ has joined #angularjs
[23:57:42] <wafflej0ck_> some they let you choose like AI I did C++ a fair amount
[23:57:48] <SexualRickshaw> Almost all the classes related to web stuff were in the design school at my uni
[23:57:50] <robdubya> tjsail33 yeah, and that's all specific to the object itself, which is a different thing to the UI (the directive)
[23:58:01] <SexualRickshaw> and it was impossible to take them as a CS student
[23:58:20] <tjsail33> robdubya: yeah, but they all have to be shown in the ui, which is all watchers right?
[23:58:40] <wafflej0ck_> SexualRickshaw: yeah that sucks, they had integrated the information technology and design stuff pretty well at DePaul when I was there but it was an ongoing effort
[23:58:56] *** Evanion has joined #angularjs
[23:59:04] <wafflej0ck_> think it was called the information and digital media building
[23:59:08] *** whiteboo_ has quit IRC
[23:59:09] <robdubya> tjsail33 i err towards having the vast majority of the logic at the data level, which makes UI's easier to reason about
[23:59:21] <SexualRickshaw> wafflej0ck_: Yeah, one of the design professors is trying his damnedest to get web-related classes that are joint design/CS included in the class lineup
[23:59:27] <robdubya> yes, there's still watchers in play, but it simplifies directives
[23:59:54] *** DrAwesomeClaws has quit IRC
top

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