[00:00:30] *** ASUchander1 has joined #angularjs
[00:00:38] *** ASUChander has quit IRC
[00:00:55] *** adpirz has joined #angularjs
[00:01:30] *** mven has joined #angularjs
[00:01:41] *** PeterMet_ has joined #angularjs
[00:01:49] *** mven has quit IRC
[00:02:35] *** mven has joined #angularjs
[00:02:49] *** mven has quit IRC
[00:03:41] *** stormbytes has quit IRC
[00:03:46] *** bmac has joined #angularjs
[00:03:57] *** AngularUI has joined #angularjs
[00:03:57]
<AngularUI> [ui-router] brgrz opened pull request #1614: Updated the accept header to specify utf-8 encoding for charset (master...master) http://git.io/-K0CuQ
[00:03:57] *** AngularUI has left #angularjs
[00:04:02] *** PeterMetz has quit IRC
[00:05:28] *** alandb has quit IRC
[00:05:40] *** adpirz has quit IRC
[00:05:47] *** ASUChander has joined #angularjs
[00:06:51] *** earthquake has quit IRC
[00:06:52] *** ASUchander1 has quit IRC
[00:09:21] *** soee_ has quit IRC
[00:09:22] *** tristanp has joined #angularjs
[00:09:42] *** Tyler__ has joined #angularjs
[00:10:03] *** grogs has quit IRC
[00:10:23] <Tyler__> For some reason this is working: (user.store|filter : {_id : radio.model._id})
[00:10:36] <Tyler__> But this isn't (user.section|filter : {_id : radio.model2._id})
[00:10:54] <Tyler__> even though {{user.section._id}} works and shows the exact same thing as {{radio.model2._id}}
[00:10:54] *** finishingmove has quit IRC
[00:11:20] *** ASUchander1 has joined #angularjs
[00:11:22] *** [boxmein] is now known as boxmein
[00:12:44] <Grokling> Tyler__: Is user.section an object or an array?
[00:12:44] *** soee has joined #angularjs
[00:13:20] *** prbc has joined #angularjs
[00:13:21] *** MuffinMan` has joined #angularjs
[00:13:49] *** ASUChander has quit IRC
[00:13:54] *** kirfu has joined #angularjs
[00:14:03] *** paulhhowells has joined #angularjs
[00:14:25] *** Sky[x] has quit IRC
[00:16:45] *** DLSteve has quit IRC
[00:17:20] *** ASUChander has joined #angularjs
[00:18:46] *** prbc has quit IRC
[00:18:46] *** ASUchander1 has quit IRC
[00:20:58] *** rtpg has joined #angularjs
[00:21:25] <Tyler__> oh snap! Good idea... let me check
[00:21:41] <Tyler__> store should be an object in an array and I think section is just an object in an arry as well
[00:22:14] <Tyler__> Ohhh! Section is an object while store is an array!
[00:22:28] <Tyler__> But how does that change things?
[00:22:32] *** dannyc has joined #angularjs
[00:22:38] <Grokling> the filter filter only works on arrays. You can make a custom filter though.
[00:23:25] *** ccohn has joined #angularjs
[00:23:47] <Tyler__> omg thank you so much. Can I tip you some cash for your answer?
[00:23:53] <Tyler__> Using change tip on twitter
[00:23:58] <Tyler__> What's your handle?
[00:24:12] *** prbc_ has joined #angularjs
[00:24:13] <Tyler__> (I just like spending bitcoins)
[00:24:20] *** Stichoza has quit IRC
[00:24:50] *** Oka has quit IRC
[00:25:00] <Grokling> Tyler__: I don't twitter, and as yet I don't bitcoin either, you can have the answer for free instead ;-)
[00:25:13] <Tyler__> aw, thanks man :) You're so generous!
[00:25:23] <Tyler__> Really you just saved me a ton of hassle. Thank you
[00:25:23] *** rtpg has quit IRC
[00:25:58] <jaydubya> I have a form that has 12 "pages" of form data. I have three types of loans. One loan uses 10 of the "pages", one loan uses 3 of the "pages" and one loan uses all 12 "pages". I can set up in ui-router routes like loanOne.farmer and loanTwo.farmer etc where farmer is one of the pages but I was wondering if there was an "Angular Better Way" to stay more DRY.
[00:26:00] <Grokling> Tyler__: I know. I've been there..
[00:26:45] *** merobertsjr has joined #angularjs
[00:26:46] *** dannyc has quit IRC
[00:27:05] *** AKPWD has joined #angularjs
[00:27:18] <Grokling> jaydubya: So you have a bunch of inputs for your form, and some of them aren't relevant to some of your loans?
[00:27:51] *** ccohn has quit IRC
[00:27:59] <jaydubya> kinda ... one loan (all-in) is just our company, so the distributor "page" is irrelevant, etc/
[00:28:04] *** tristanp has quit IRC
[00:28:19] <jaydubya> so not kinda, yes
[00:28:49] <Grokling> Are you doing the OO thing?
[00:29:03] <jaydubya> hopefully
[00:30:18] <Grokling> So, I do something quite similar. I'm going to make some wild assertions here, but bear with me, and hopefully the concept (at least) will make sense.
[00:30:25] <jaydubya> k
[00:30:38] <Grokling> A loan has pages, Pages have inputs?
[00:30:55] *** Tyler__ has quit IRC
[00:30:59] <jaydubya> yes
[00:31:15] <Grokling> where 'page' is it's own thing, and independent of a loan (so we can reuse them)
[00:31:16] <jaydubya> (pages relate directly to database tables)
[00:31:22] <jaydubya> yes
[00:31:41] <Grokling> Wait..you have a table for each Page?
[00:31:50] <jaydubya> yes
[00:32:29] *** AWAW has joined #angularjs
[00:32:50] <jaydubya> farmer = farmers table, distributor = distributors table, expenses = expenses table etc -- all related by loan_id
[00:32:56] <Grokling> That's another discussion.. anyway, when you instantiate your 'Loan' object, you populate it's 'pages' collection with the relevant pages. Then ng-repeat="page in pages"
[00:32:56] *** ASUChander has quit IRC
[00:33:02] *** ASUchander1 has joined #angularjs
[00:33:54] <jaydubya> brilliant ... one loan route, grab relevant pages by loan type, generate a collection of relevant pages and off we go
[00:34:41] <jaydubya> very dry (like vermooth)
[00:34:52] *** joshontheweb has joined #angularjs
[00:35:06] <jaydubya> what was your reaction to table per page?
[00:35:17] *** paulhhowells has quit IRC
[00:35:48] <Grokling> You're lucky you only have that many layers to deal with.. I'm 8 deep in ng-repeats, and there's a bunch more branched nesting behind the scenes.
[00:36:28] <jaydubya> baby steps, pal, baby steps ... lol ... this scope is PLENTY complex enough for me right now
[00:37:14] <Grokling> Thoughts were just that you probably need to abstract your thinking a bit for the front-end side. What you describe sounds legit for backend, but in the front a 'Page' model is an abstraction.
[00:37:15] *** jrahmy has joined #angularjs
[00:37:45] *** PeterMet_ has quit IRC
[00:38:10] <Grokling> Complex is where it's at. I started hard, and it's been harder since. Now though, I think I'm climbing out the top and can make shiny stuff instead for a while.
[00:38:25] <jaydubya> I kind of understand that comment but my thinking was to use incremental saves so I run to the db after every page
[00:38:49] *** btc_panhandler has joined #angularjs
[00:39:24] <jaydubya> of course, a 'cancel' means I have to go back and delete 1 - 12 records
[00:39:28] *** lemur has quit IRC
[00:39:43] <Grokling> You could do that.. and/or you can hang onto your data on the client, and bang it all up there at once.
[00:39:56] <Grokling> You have the potential for offline if you think that way too.
[00:40:03] *** lemur has joined #angularjs
[00:40:17] *** doug64k has quit IRC
[00:40:26] *** yelvert has joined #angularjs
[00:40:48] * jaydubya rethinking the entire architecture ... hmmm
[00:41:13] *** TommyO has joined #angularjs
[00:41:17] *** Stichoza has joined #angularjs
[00:41:35] *** doug64k has joined #angularjs
[00:41:42] * Grokling knows that feel. It's worth thinking about.
[00:41:56] <jaydubya> so you're saying if the connection is lost (which happens in our area), the client would keep the data until the connection is back?
[00:42:12] *** tristanp has joined #angularjs
[00:42:33] <Grokling> Yep. Or you could INTENTIONALLY use the app offline even.
[00:43:04] *** lexek_ has quit IRC
[00:43:15] <Grokling> If you want to go all out, you hook up indexeddb and then your app data will even survive device reboots.
[00:44:20] <jaydubya> keep everything on client until final submit, push to database and if not code 201, save to local storage and the client never gets pissed about losing 12 pages of form
[00:44:36] *** yelvert has quit IRC
[00:44:58] * jaydubya contemplates novel approach of client experience over ease of coding
[00:44:59] *** lemur has quit IRC
[00:45:04] *** tschundeee has quit IRC
[00:45:05] <Grokling> I thought everyone loved pissed clients? Your earlier outline would have them pissed on the first page change.
[00:45:20] <jaydubya> how's that?
[00:45:27] *** fairuz has joined #angularjs
[00:45:46] <Grokling> client experience + ease of coding, but it'll cost you some thinking/architecting up front.
[00:45:51] *** bmac has quit IRC
[00:46:15] <Grokling> hows that? Because you were going to submit each page when they went to the next one, and it would break..
[00:47:13] *** joshontheweb has quit IRC
[00:47:17] <jaydubya> my outline was to create a blank loan for the id and keep that id and get farmer info ... save/update farmer with loan_id move to next page ... pass it loan_id etc ... that wouldn't work?
[00:47:42] *** zz_tjsail33 is now known as tjsail33
[00:48:24] <Grokling> "my thinking was to use incremental saves so I run to the db after every page"
[00:48:47] <jaydubya> my concept (may be wrong) was to get my add to equate my edit
[00:49:56] <Grokling> Abstraction is the key to happiness.
[00:50:09] <jaydubya> once I create a loan and have it's id, adding becomes editing except the values are blank and since each page has a form complete for each loan, the fields plus the loan_id would be saved. I've always thought that way ... am I crazy?
[00:50:18] <jaydubya> its^
[00:50:24] *** Christer has quit IRC
[00:50:53] <Grokling> "create a loan" is that a server side thing, or are you talking about instantiating a Loan object in the client?
[00:51:10] <jaydubya> both?
[00:51:58] <jaydubya> on the client, when the create new loan is clicked, I $http.post and return the newly inserted ID
[00:52:18] <Grokling> Hmm. Well, you don't necessarily need to involve the server at all until right at the end.
[00:52:19] <jaydubya> I then instantiate a loan object with attribute of id
[00:52:50] <jaydubya> then the first form has loan.farmer_fname, loan.farmer_lname etc
[00:53:13] <jaydubya> kinda doing both at the same time ... and I can tell now I am doing it wrong.
[00:53:37] <Grokling> Yeah, Farmer has loans..
[00:53:59] <jaydubya> I should admit I was a CodeIgniter and later Laravel guy where the server did EVERYTHING until I discovered angular but sometimes the little brain runs "home to mama"
[00:56:15] <Grokling> I've just been through 4 months of figuring out this whole architecture and building it (oh, and learning angular at the same time)
[00:57:50] *** disorder20 has quit IRC
[00:58:33] *** Limix has joined #angularjs
[00:58:55] *** disorder20 has joined #angularjs
[00:59:30] <jaydubya> I've already filled four sheet of legal pad since your suggestion
[01:00:09] <jaydubya> It would make so much more sense for me not to do this in chunks
[01:00:34] *** btc_panhandler has quit IRC
[01:00:44] <Grokling> jaydubya: I'd suggest mapping out your entities (Farmer, Loan, Page etc) drawing their relationships, and then making factories for them.
[01:00:53] *** cannap has quit IRC
[01:01:06] <jaydubya> yes, kinda what I am doing right now
[01:01:15] <Grokling> Perfect.
[01:02:53] *** s00pcan has quit IRC
[01:03:34] *** Actine has joined #angularjs
[01:03:39] * Grokling confesses to being an OO zealot, using factories for almost everything, and unashamedly adopting patterns well beyond his comfort zone on the suggestion of the local #angularjs gurus.
[01:04:29] *** deanclkclk has quit IRC
[01:04:34] <Actine> Hi, I am a noob and I have a question regarding directives
[01:05:05] <Actine> Can I pass arguments to directives (e.g. custom elements) without using scope?
[01:05:10] *** aslate has joined #angularjs
[01:06:28] *** deanclkclk has joined #angularjs
[01:08:10] <Actine> e.g. I want to do <div ng-repeat="item in ctrl.items"><my-tag passedItem="item"></my-tag></div>, and access the passed item somehow differently than by storing it in scope? (I really like the "controller as" syntax, and I'd like something similar in directives)
[01:09:01] * jaydubya agrees with Grokling
[01:09:28] *** tjsail33 has quit IRC
[01:09:45] *** diosney has quit IRC
[01:09:57] *** vonnegut has quit IRC
[01:10:06] *** aslate has quit IRC
[01:10:08] * jaydubya also admits to learning more for listening to ctanga answer questions on this IRC than reading most tutorials
[01:10:22] <maikowblue> I was thinking to study a little about AngularJS, but some people in some blogs are saying that angular has some issues mainly concerning to ng-repeat performance. Is that true? Is that applied to angular 2x version or only to 1x ones?
[01:11:42] *** thumpba has joined #angularjs
[01:12:20] <jaydubya> there are also some people in some blogs who are too close minded to learn something new so they make up shit to convince themselves that their way is the right way
[01:12:43] <Grokling> maikowblue: It is certainly something to be aware of. Usually it's not an issue. If you hit ng-repeat performance issues, there are a couple of things that can be done. Most of the time it's because there's just more happening on the screen than a user can deal with anyway.
[01:13:10] <maikowblue> ok.
[01:13:37] <maikowblue> what about polymer replacing angularJS? is that possible in a long term?
[01:13:48] <davek> Lol.
[01:14:05] <Grokling> Many people go from angular to react/ember because of blog posts, when they come back they say things like 'yeah, react is faster, but you have to write like 3 times as much code'
[01:14:31] <maikowblue> I am asking such a things, because I just finished core js studies and I am now interested in learn some frameworks. I would like to start with angularJS.
[01:15:05] <davek> Polymer is unlikely to replace AngularJS long term.
[01:15:29] <maikowblue> ok davek.
[01:15:34] <davek> What Polymer does is roughly equivalent to Angular's directive system only they put "everything on black" so to speak.
[01:15:56] <Actine> I did backbone+marionette before, but got frustrated by the amounts of boilerplate it required. I usually want to code something up fast, that's why I'm learning Angular now
[01:16:31] <maikowblue> Actine... what about ReactJS? Did you try that?
[01:16:51] <davek> React, again, is not an equivalent technology.
[01:17:02] *** qdk has quit IRC
[01:17:04] <Actine> I didn't. Well, I looked into it before choosing angular over it
[01:17:20] <Actine> but didn't try out. just read the docs
[01:17:26] <davek> React is more comparable to Polymer but with an even more anemic feature set and serious design issues they're still grappling with.
[01:17:37] <maikowblue> ok Actine and davek. I will then try to learn Angular.
[01:17:47] *** tristanp has quit IRC
[01:18:05] <Actine> so what about my question above? Is it possible to pass parameters to directives without using scope?
[01:18:23] *** tristanp has joined #angularjs
[01:18:32] <davek> Actine, yes through services.
[01:18:34] <Actine> For controllers I prefer "controller as" approach. Would like to not mix approaches
[01:18:36] <jaydubya> after swearing off jQuery spaghetti code, the only thing I could find to rival Angular was Meteor but since they can't seem to get to a release version, I chose Angular
[01:18:55] <maikowblue> ppl are saying to avoid Angular official documentation. Any tips for a newbie like me to begin from?
[01:19:03] <Grokling> maikowblue: !phonecat
[01:19:21] <maikowblue> Grokling: ty.
[01:19:32] *** thumpba has quit IRC
[01:19:32] <Grokling> 'People' say all sorts of things. The trick is learning not to listen to all of it ;-)
[01:19:35] <davek> Such a lame intro :\ I'd have to agree with what 'ppl' are saying.
[01:19:40] <maikowblue> LOL that is the official documentation :)
[01:20:13] <Grokling> davek: lame, but it gives a quick grounding, AND gets your basic environment set up.
[01:20:20] <jaydubya> maikowblue: you could also do some of the free videos at egghead.io and may decide it is worth $9/mo
[01:20:29] <Actine> maikowblue, the only thing I discovered re official documentation is that it's outdated a bit. otherwise it's fine (but I got my basics from codeschool course, I must admit...)
[01:20:35] *** vonnegut has joined #angularjs
[01:20:48] <jaydubya> I did that course as well
[01:20:49] <maikowblue> jaydubya: I visited egghead.io website. It looks nice.
[01:21:08] <Actine> I am not a fan of codeschool though. egghead.io indeed looks nice
[01:21:13] *** earthquake has joined #angularjs
[01:21:33] <jaydubya> lol maikowblue, you might have to download the videos from egghead and play them back at 3/4 speed because they do move FAST
[01:22:04] <jaydubya> wow, nice Grokling
[01:22:10] *** thumpba has joined #angularjs
[01:22:10] <davek> And please dear god do not watch the AngularJS data modelling tutorial.
[01:22:13] *** tristanp_ has joined #angularjs
[01:22:27] *** htowngangsta has quit IRC
[01:22:33] <jaydubya> why is that, davek
[01:22:36] *** tristanp has quit IRC
[01:23:07] <maikowblue> ty guys. It is a very friendly channel. I liked it!
[01:23:38] <Grokling> wth? ui-router is now not loading my templateUrl.. it's not even requesting it.
[01:23:52] *** ccohn has joined #angularjs
[01:23:55] <davek> jaydubya, it is just an awful, overly complicated demonstration.
[01:24:13] <Actine> honestly speaking, I am struggling with another thing. I haven't looked into frontend for a while, so I fell behind incredibly. I missed the coming of node, npm, grunt, bower, and now I'm clueless of best workflow practices
[01:24:33] <jaydubya> davek: I am glad to hear someone say that ... I have started that series five times and haven't gotten anything out of it yet
[01:24:58] <Actine> and would appreciate some tutorial links on that... (sorry for asking about unrelated stuff)
[01:25:02] *** drej has joined #angularjs
[01:25:06] *** thumpba has quit IRC
[01:25:22] *** gunn has quit IRC
[01:25:34] *** Johnny13371337 has quit IRC
[01:26:24] *** Una has quit IRC
[01:26:28] *** btc_panhandler has joined #angularjs
[01:27:03] <jaydubya> Actine: you forgot maybe the best -- GULP
[01:27:10] <davek> You recognize somewhere around the time he starts extending native prototypes, inventing some super-contrived system for "private" properties and constructing this insanely convoluted inheritance structure that maybe this is not the right way.
[01:27:18] <davek> Yee yee, gulp master race.
[01:27:48] *** morenoh149 has quit IRC
[01:27:52] *** frege has joined #angularjs
[01:28:07] <jaydubya> davek: I feel SOOO much better ... I thought I was just too stupid to understand the "right way" that he was advocating
[01:28:18] *** ccohn has quit IRC
[01:28:21] *** tristanp_ has quit IRC
[01:28:42] <Actine> jaydubya, I named grunt only because I tried yeoman for my first angular project. Will look into gulp then
[01:28:58] *** tristanp has joined #angularjs
[01:29:22] *** Limix has quit IRC
[01:29:26] <jaydubya> Actine: I am just learning so don't listen to me for anything ... it is just I am hearing more about Gulp than Grunt lately because it is code and not config
[01:30:46] <davek> jaydbuya, not at all. The underlying concept is a good idea, and is probably most similar to what ngActiveResource tried to implement.
[01:30:54] *** jtimon has quit IRC
[01:31:01] <Grokling> I just last night finished making gulp do what I wanted. It's freaking awesome now.
[01:31:37] *** bmac has joined #angularjs
[01:31:37] <davek> Streams are the future-past.
[01:31:48] <Actine> last time I was coding something with javascript, I downloaded the libs manually and put them in the folder. this should give an idea how confused I am now with everything
[01:32:31] *** opiates has joined #angularjs
[01:32:46] <Grokling> I even figured out how to merge two streams for extra awesome.
[01:33:10] *** kkthxbye has joined #angularjs
[01:33:10] <Grokling> Actine: People hate on bower, but it does the job.
[01:33:12] *** tristanp has quit IRC
[01:33:14] *** Stichoza has quit IRC
[01:33:27] *** stichoza has joined #angularjs
[01:33:34] <jaydubya> Grokling: It's OK to merge stream but you should NEVER cross the streams
[01:33:47] <davek> Lol.
[01:34:02] <Actine> Grokling, what's wrong with bower?
[01:34:17] <Grokling> jaydubya: Also, never stream into the wind.
[01:34:22] <jaydubya> so true
[01:34:25] <davek> Grokling, I never really gave bower a fair shake because its always been easier to just download the specific version of the lib I want and min/compress it with the rest of the JS.
[01:34:44] <davek> Though I'd really throw my disfavor towards Yeoman if anything.
[01:35:22] <Grokling> I let bower do it's thing, then use gulp to just copy over the .min.js etc over to my www folder.
[01:35:38] <jaydubya> I like bower ... a starter repo just has to be a few files if you have a bower.json and one command later, it inflates into a project
[01:35:54] *** jae is now known as Jae
[01:36:08] *** Rebirth has quit IRC
[01:36:31] <Grokling> Actine: I have no issue with Bower, but I know it's a reasonably commonly held position.
[01:36:32] *** Alina-malina has quit IRC
[01:37:20] *** UniBot1 has quit IRC
[01:37:34] *** morenoh149 has joined #angularjs
[01:39:23] *** renlo has quit IRC
[01:39:33] *** btc_panhandler has quit IRC
[01:41:30] <Actine> heh, gulp streams are somewhat similar to what I did on php for one of my projects. although now I'm interested more in doing one project over the next week, if that's possible (I hope with angular it is)
[01:42:20] *** stichoza has quit IRC
[01:42:28] <Actine> davek, I'm not sure how services may help me to pass a parameter from ng-repeat to the custom element... in a reasonable way
[01:42:32] *** Stichoza has joined #angularjs
[01:43:32] <Actine> I guess, using scope (isolated scope) it is then
[01:43:41] *** yelvert has joined #angularjs
[01:43:43] *** cakirke has quit IRC
[01:43:54] *** Una has joined #angularjs
[01:44:04] *** Stichoza has quit IRC
[01:44:22] *** Trow1 has joined #angularjs
[01:44:29] *** Stichoza has joined #angularjs
[01:45:05] *** geiltalasdair has quit IRC
[01:45:47] *** deanclkclk has quit IRC
[01:47:51] *** yelvert has quit IRC
[01:48:05] *** disorder20 has quit IRC
[01:48:30] *** Trow has quit IRC
[01:49:04] *** tschundeee has joined #angularjs
[01:49:35] *** renlo has joined #angularjs
[01:50:00] *** adpirz has joined #angularjs
[01:50:28] *** Actine has left #angularjs
[01:51:23] *** btc_panhandler has joined #angularjs
[01:52:40] <jaawerth> davek: yeoman gets a bum rap for angular stuff because generator-angular was pretty bad for a while
[01:52:55] <jaawerth> I mean it still could be, BUT
[01:52:59] <jaawerth> generator-gulp-angular isn't so bad
[01:53:21] <davek> The whole notion of generators strikes me as totally backwards.
[01:53:34] <jaawerth> for scaffolding?
[01:54:16] <jaawerth> I dunno, a good one can save on boilerplate
[01:54:38] *** umib0zu has quit IRC
[01:54:41] *** adpirz has quit IRC
[01:54:42] *** bmac has quit IRC
[01:57:33] *** earthquake has quit IRC
[01:58:21] *** jrahmy has quit IRC
[01:59:03] *** gladely has quit IRC
[01:59:08] *** uru is now known as uru|away
[01:59:14] *** chachan has joined #angularjs
[02:00:14] *** gladely has joined #angularjs
[02:00:19] *** gladely has quit IRC
[02:00:26] *** qdk has joined #angularjs
[02:02:03] *** lemur has joined #angularjs
[02:02:13] *** chachan_ has joined #angularjs
[02:02:42] *** tfennelly has quit IRC
[02:03:24] *** chachan has quit IRC
[02:04:03] *** dc_ has quit IRC
[02:07:24] *** instence_ has quit IRC
[02:07:34] *** instence has joined #angularjs
[02:08:19] *** ASUChander has joined #angularjs
[02:08:46] *** _ritchie_ has joined #angularjs
[02:09:03] *** _ritchie_ is now known as _ritchie
[02:09:09] *** chachan_ has quit IRC
[02:09:26] *** {DV8} has joined #angularjs
[02:09:51] *** ASUchander1 has quit IRC
[02:11:14] *** Circlefusion has quit IRC
[02:11:19] *** dannyc has joined #angularjs
[02:12:17] *** ASUchander1 has joined #angularjs
[02:12:53] *** ASUChander has quit IRC
[02:13:17] *** yoshokatana has joined #angularjs
[02:13:24] *** CanyonMan has quit IRC
[02:13:43] *** edrocks has joined #angularjs
[02:15:24] *** k-dawg has joined #angularjs
[02:15:32] *** dannyc has quit IRC
[02:15:39] *** Aswebb_ has joined #angularjs
[02:18:17] *** mary5030 has joined #angularjs
[02:19:23] *** merobertsjr has quit IRC
[02:19:51] *** evilaliv3 has joined #angularjs
[02:21:00] *** jstroem_ has quit IRC
[02:21:10] *** ASUchander1 has quit IRC
[02:21:32] *** jstroem has joined #angularjs
[02:23:42] *** Circlefusion has joined #angularjs
[02:24:36] *** ccohn has joined #angularjs
[02:25:13] *** Anton_ has quit IRC
[02:25:19] *** renlo_ has joined #angularjs
[02:25:42] *** renlo has quit IRC
[02:25:42] *** renlo_ is now known as renlo
[02:26:03] *** jstroem has quit IRC
[02:26:12] *** adben has joined #angularjs
[02:26:46] *** ASUChander has joined #angularjs
[02:27:35] *** D-Boy has quit IRC
[02:27:42] *** D-Boy has joined #angularjs
[02:27:42] *** gunn has joined #angularjs
[02:28:15] *** _ritchie has quit IRC
[02:29:15] *** ccohn has quit IRC
[02:30:50] *** fixl has joined #angularjs
[02:32:12] *** yoshokatana has quit IRC
[02:33:36] *** Aswebb_ has quit IRC
[02:34:21] *** evilaliv3 has quit IRC
[02:35:45] *** tschundeee has quit IRC
[02:35:57] *** cakirke has joined #angularjs
[02:36:14] *** ASUchander1 has joined #angularjs
[02:36:51] *** themime has joined #angularjs
[02:37:02] *** ASUChander has quit IRC
[02:40:01] *** dc_ has joined #angularjs
[02:42:20] *** ctanga has quit IRC
[02:43:06] *** glassir has quit IRC
[02:44:50] *** Anton_ has joined #angularjs
[02:45:57] *** yelvert has joined #angularjs
[02:45:58] *** intellix has quit IRC
[02:46:20] *** ctanga has joined #angularjs
[02:48:54] *** Limix has joined #angularjs
[02:49:14] *** glassir has joined #angularjs
[02:50:20] *** yelvert has quit IRC
[02:50:20] *** jhwhite has joined #angularjs
[02:51:35] *** ASUChander has joined #angularjs
[02:51:42] *** rtpg has joined #angularjs
[02:51:42] *** ASUchander1 has quit IRC
[02:52:13] *** motionman has joined #angularjs
[02:53:28] *** adben has quit IRC
[02:54:05] *** aslate has joined #angularjs
[02:54:07] *** TheAceOfHearts has joined #angularjs
[02:54:21] *** stormbytes has joined #angularjs
[02:56:21] *** tfennelly has joined #angularjs
[02:56:26] *** Trow1 has quit IRC
[02:56:59] <wafflej0ck_> yeah I just think of generators as dynamic templates, not super impressed with the ones I've used but they are still helpful when you don't know all the tooling initially (or build your own generators that help to setup the basis for the types of things you build)
[02:57:09] *** finishingmove has joined #angularjs
[02:57:28] *** glassir has quit IRC
[02:57:34] *** finishingmove has quit IRC
[02:57:52] <wafflej0ck_> personally I just use different git repos as project bases now but started off with frontend JS dev using yeoman generators
[02:58:04] *** tristanp has joined #angularjs
[02:58:04] *** diegoaguilar has joined #angularjs
[02:58:31] *** D9 has joined #angularjs
[02:58:58] *** Shrooms has quit IRC
[02:59:03] *** aslate has quit IRC
[02:59:30] *** D9 has quit IRC
[02:59:57] *** D9 has joined #angularjs
[03:00:11] <jaawerth> I use repos as well but I've been giving that gulp-angular generator a try and it's really not bad
[03:00:14] *** motionman has left #angularjs
[03:00:29] *** tfennelly has quit IRC
[03:00:35] <jaawerth> the way it organizes things is a lot closer to the way I do it than a lot of others
[03:02:35] <jhwhite> Has anyone integrated solr search with angular?
[03:02:44] <snurfery> semi-offtopic: what do they call that new-fangled scrolling single-column style of site?
[03:02:56] <snurfery> jhwhite: I have, using django as a backend though
[03:03:08] <snurfery> angular -> django -> solr
[03:03:17] *** cacts has quit IRC
[03:03:19] <wafflej0ck_> snurfery: the layers moving over each other is called parallax (animation term)
[03:03:23] <jhwhite> snurfery: hmm. thanks
[03:03:23] <jaawerth> that's actually something I'll be working on this week
[03:03:24] *** kakashiAL has joined #angularjs
[03:03:32] <jaawerth> angular CMIS and angular SOLR search
[03:03:38] <jaawerth> with Alfresco as the backend
[03:04:01] <snurfery> oh yeah, there's parallax but I was thinking of just the single-column scrolling mobile-first style of website that's super common these days
[03:04:12] <jaawerth> (which has an integrated SOLR instance)
[03:04:16] <snurfery> (with or without any fancyness)
[03:04:28] <wafflej0ck_> snurfery: yeah not sure if there's a term for that
[03:04:40] *** merobertsjr has joined #angularjs
[03:04:53] *** muffin has joined #angularjs
[03:05:58] <snurfery> cool thx
[03:06:23] <jaawerth> wait can someone show me an example of paralax?
[03:06:28] <jaawerth> I think I know what you mean but..
[03:06:43] <wafflej0ck_> jaawerth: it just means the foreground moves faster than the background.... one sec
[03:07:25] *** MuffinMan` has quit IRC
[03:07:47] *** sturmination has quit IRC
[03:08:16] <wafflej0ck_> jaawerth: it creates the illusion of depth by having layers and the "foreground" layers move more than the background layers
[03:08:59] *** merobertsjr has quit IRC
[03:09:22] <jaawerth> yeah, parallax is a good name for it
[03:09:23] <wafflej0ck_> there are lots of other variations using the same idea, it's something cartoonists/animators figured out
[03:10:03] *** chachan has joined #angularjs
[03:10:24] <jaawerth> speaking of parallax, I got an HTC m8 and am wishing the two rear cameras were farther apart so I could try doing parallax with them
[03:10:34] <vonnegut> I was trying plnkr a demo but it was getting unruly.. let me first just ask, maybe someone can point in the right direction:
[03:10:35] <vonnegut> I have several objects in my controller which are bound to a form that contains a partial. Only one of the objects is associated with the fields in the partial. For some reason, the binding of the object associated with the partial will not update UNTIL AFTER, I press a radio button in the form. What is going on here? And how can I make the binding real-time?
[03:10:48] <vonnegut> is this a job for $scope.watch?
[03:10:54] <vonnegut> (ive never used it)
[03:11:11] <vonnegut> seems like it ought to just work.. cant figure out why it wont
[03:11:33] *** tschundeee has joined #angularjs
[03:13:14] *** jlambert121 has quit IRC
[03:13:45] *** jlambert121 has joined #angularjs
[03:14:00] *** bmac has joined #angularjs
[03:14:20] *** jlambert121 has quit IRC
[03:14:31] *** chachan has quit IRC
[03:14:44] <snurfery> question
[03:14:56] <snurfery> do any of yall maintain multiple index.html pages in the same project?
[03:15:08] <snurfery> for an SPA. is that ridiculous?
[03:15:24] <snurfery> I have an internal app used by employees, but there's also some public facing pages I need to build out
[03:15:29] *** ASUchander1 has joined #angularjs
[03:15:37] *** jhwhite has quit IRC
[03:15:38] <snurfery> kinda leaning towards making that it's own little project
[03:16:08] *** ASUChander has quit IRC
[03:16:11] <themime> vonnegut: nah sounds fine, it sounds like you might have some unncessary complexity based on your plunkr issues, which for me in the past has caused anomalous behavior that is hard to narrow down. id highly suggest moving forward with the plunkr, you may find the answer yourself while simplifying it enough to fit in the plunker
[03:16:16] <morenoh149> I would go with just one. dynamically adapt it to the user. Unless they are truely different apps
[03:16:32] *** stormbytes has quit IRC
[03:16:56] <themime> snurfery: we have a .net solution and i have a little section with my own default page for messing around, admin stuff, etc. depends on the project. whats SPA stand for, that sounds really familar
[03:17:22] *** quantax- has quit IRC
[03:18:06] *** Foxandxss has quit IRC
[03:18:12] <snurfery> single-page-application
[03:19:17] *** Koganei has quit IRC
[03:19:52] <themime> oh duh right
[03:19:58] *** HACKING-FACEBOOK has joined #angularjs
[03:21:02] <themime> yea we have a second one for admin stuff but we don't really use it right now. still kinda early, and most "admin" stuff has some kind of customer facing thing so we just have it in the main index. i made the second one really to experiment myself
[03:21:10] *** Koganei has joined #angularjs
[03:22:40] *** bmac has quit IRC
[03:23:45] *** codeman has joined #angularjs
[03:25:20] *** ccohn has joined #angularjs
[03:26:37] *** slashroot__ has quit IRC
[03:27:27] <vonnegut> themime, reading response
[03:27:56] *** glassir has joined #angularjs
[03:28:10] *** opiates has quit IRC
[03:28:32] <vonnegut> themime, ok. ill carry on with the plnkr
[03:28:56] *** Stichoza has quit IRC
[03:30:12] *** Jae has quit IRC
[03:32:31] *** glassir has quit IRC
[03:33:59] *** Shrooms has joined #angularjs
[03:34:00] *** Shrooms has joined #angularjs
[03:35:21] *** dman777_alter has joined #angularjs
[03:35:59] *** dhcar_AFK is now known as dhcar
[03:38:55] *** adpirz has joined #angularjs
[03:39:01] *** MVinicius has joined #angularjs
[03:40:17] <MVinicius> Hello! Who indicate use version 1.3 for production?
[03:40:51] <zomg> we use it
[03:40:54] <BahamutWC> we use it
[03:40:56] *** rtpg has quit IRC
[03:41:04] <BahamutWC> 1.3 is more than suitable
[03:41:35] *** richiebk_ has quit IRC
[03:41:43] <themime> yea, just swapped it out for 1.2
[03:41:51] <themime> super easy and awesome features
[03:42:12] *** richiebkr has joined #angularjs
[03:43:04] <jaawerth> I've upgraded existing projects to it with almost no issues
[03:43:14] *** dhcar is now known as dhcar_AFK
[03:43:30] *** adpirz has quit IRC
[03:43:36] <jaawerth> it's updating FAST, too. They're already on, what, 1.3.6 for stable versions?
[03:43:51] <themime> hot damn
[03:43:56] <themime> might need to swap that shiz out
[03:44:51] <BahamutWC> 1.3.5
[03:44:55] *** HACKING-FACEBOOK has quit IRC
[03:45:02] *** bmac has joined #angularjs
[03:45:16] *** SonikBoom has quit IRC
[03:45:21] *** jeffisabelle has quit IRC
[03:46:10] *** HACKING-FACEBOOK has joined #angularjs
[03:46:11] *** richiebk_ has joined #angularjs
[03:46:18] *** richiebkr has quit IRC
[03:46:38] *** dacuca has joined #angularjs
[03:47:50] *** deanclkclk has joined #angularjs
[03:48:03] *** RedOrangeZ has quit IRC
[03:48:34] *** threesixes has quit IRC
[03:49:14] *** emmesswhy has quit IRC
[03:49:17] *** rtpg has joined #angularjs
[03:51:28] *** ludkiller has quit IRC
[03:51:48] *** tschundeee has quit IRC
[03:52:45] *** HACKING-FACEBOOK has quit IRC
[03:52:57] *** boxmein has quit IRC
[03:53:14] *** ludkiller has joined #angularjs
[03:54:31] *** dc_ has quit IRC
[03:55:06] *** Limix has quit IRC
[03:56:30] *** phzon has joined #angularjs
[03:57:09] *** Zentdayn_ has joined #angularjs
[03:58:03] *** Zentdayn has quit IRC
[03:58:03] *** Zentdayn_ is now known as Zentdayn
[03:58:41] *** cakirke has quit IRC
[03:58:52] *** ccohn has quit IRC
[03:59:09] *** ctanga has quit IRC
[03:59:17] *** cads has quit IRC
[03:59:57] *** rburns has joined #angularjs
[04:00:08] *** dannyc has joined #angularjs
[04:00:37] *** phzon has quit IRC
[04:00:44] *** Jae has joined #angularjs
[04:01:24] *** dhcar_AFK is now known as dhcar
[04:02:02] *** dhcar is now known as dhcar_AFK
[04:02:51] *** elxa_ has joined #angularjs
[04:03:06] *** jc__ has joined #angularjs
[04:03:07] *** MVinicius has quit IRC
[04:03:24] *** edrocks has quit IRC
[04:03:49] *** lw has joined #angularjs
[04:03:57] <vonnegut> themime, when i remove the partial, it all works fine.
[04:04:01] *** lw has quit IRC
[04:04:22] <vonnegut> grr.
[04:04:33] *** dannyc has quit IRC
[04:05:18] *** doug64k has quit IRC
[04:05:48] *** tristanp has quit IRC
[04:06:03] *** sacho_ has joined #angularjs
[04:06:28] *** tristanp has joined #angularjs
[04:07:24] *** elxa has quit IRC
[04:07:27] *** Evanion has quit IRC
[04:08:45] *** boxmein has joined #angularjs
[04:08:57] *** sacho has quit IRC
[04:09:03] *** earthquake has joined #angularjs
[04:09:19] *** ctanga has joined #angularjs
[04:10:37] *** rtpg has quit IRC
[04:10:39] *** rtpg_ has joined #angularjs
[04:10:59] *** tristanp has quit IRC
[04:11:29] *** lemur has quit IRC
[04:11:50] *** rburns has quit IRC
[04:12:06] *** lemur has joined #angularjs
[04:12:48] *** dejanr has quit IRC
[04:12:50] *** brwr has joined #angularjs
[04:13:41] *** jc__ has left #angularjs
[04:14:27] *** dc_ has joined #angularjs
[04:14:32] <themime> partial?
[04:14:35] <themime> are you using ui-router?
[04:14:38] *** davesidious__ has joined #angularjs
[04:14:39] *** jlambert121 has joined #angularjs
[04:14:47] <themime> that was to vonnegut
[04:15:15] *** jc__ has joined #angularjs
[04:16:01] *** renlo has quit IRC
[04:16:34] *** jc__ has left #angularjs
[04:16:35] *** lemur has quit IRC
[04:18:02] *** Hackwar has joined #angularjs
[04:18:28] *** davesidious_ has quit IRC
[04:18:41] *** deanclkclk has quit IRC
[04:19:20] *** ctanga has quit IRC
[04:20:46] *** Hackwar1 has quit IRC
[04:21:04] *** jlambert121 has quit IRC
[04:21:34] *** jc__ has joined #angularjs
[04:21:57] *** basiclaser_ has quit IRC
[04:23:12] *** tschundeee has joined #angularjs
[04:25:11] *** rburns has joined #angularjs
[04:26:55] *** dc_ has quit IRC
[04:29:16] *** Stichoza has joined #angularjs
[04:29:52] *** Una has quit IRC
[04:30:28] *** Una has joined #angularjs
[04:30:55] *** dman777_alter has quit IRC
[04:31:45] *** dejanr has joined #angularjs
[04:33:05] *** Una has quit IRC
[04:33:29] *** Stichoza has quit IRC
[04:34:53] *** rchavik has joined #angularjs
[04:35:22] *** Left_Turn has quit IRC
[04:35:39] *** boxmein has quit IRC
[04:35:52] *** TheAceOfHearts has quit IRC
[04:36:23] *** Sontakey has quit IRC
[04:36:44] *** dsdeiz has joined #angularjs
[04:37:37] *** uris77 has quit IRC
[04:38:23] *** jc__ has quit IRC
[04:38:40] *** jc__ has joined #angularjs
[04:40:17] *** Sontakey has joined #angularjs
[04:41:39] *** doug64k has joined #angularjs
[04:43:04] *** aslate has joined #angularjs
[04:43:48] *** tfennelly has joined #angularjs
[04:45:42] *** deanclkclk has joined #angularjs
[04:47:39] *** aslate has quit IRC
[04:47:40] *** Sontakey has quit IRC
[04:47:59] *** jr3 has joined #angularjs
[04:48:05] *** yelvert has joined #angularjs
[04:48:05] *** bmac has quit IRC
[04:49:06] *** tfennelly has quit IRC
[04:49:44] *** ryst has joined #angularjs
[04:50:02] *** TheAceOfHearts has joined #angularjs
[04:51:52] *** brwr has quit IRC
[04:52:56] *** jc__ has quit IRC
[04:53:37] *** yelvert has quit IRC
[04:54:53] *** dc_ has joined #angularjs
[04:55:25] *** jr3 has quit IRC
[04:55:25] *** ccohn has joined #angularjs
[04:56:20] *** technickul has quit IRC
[04:57:47] <jaawerth> oof, never thought I'd be using document.write again
[04:58:33] <BahamutWC> what'd you have to use it for?
[04:59:08] *** chachan has joined #angularjs
[04:59:27] *** jr3 has joined #angularjs
[05:03:30] <caitp-> careful with it, chrome's implementation is slightly broken
[05:03:30] *** Anton_ has quit IRC
[05:03:45] *** chachan has quit IRC
[05:04:04] *** bmac has joined #angularjs
[05:04:27] <TheAceOfHearts> let's fork Chrome and re-write it in Rust~
[05:04:35] <jaawerth> caitp-, BahamutWC I'm actually using it as an IE workaround
[05:05:18] <jaawerth> basically, I was helping a colleague write a "print" directive - she wants it to pop up a new window with a printable page for things based on an Angular template
[05:05:20] <caitp-> i don't really want to rewrite anything in rust
[05:05:48] <jaawerth> it basically uses $window.open, grabs the DOM node for the window, compiles an angular template and appends it. So far so good, worked great
[05:06:09] <jaawerth> however, IE throws a fit because they see about:blank as coming from a different domain
[05:06:54] <jaawerth> so I had to use a hacky workaround to get around THAT so I could do stuff to the window without getting "access is denied", but jqlite then threw "unspecified error" during the append anyway.
[05:07:22] <jaawerth> turns out you also can't use jq to do DOM stuff between contexts
[05:07:46] <jaawerth> but scope.popup.document.write actually works. Feels so hacky though
[05:07:51] *** Trow1 has joined #angularjs
[05:07:55] <BahamutWC> oh window.open, ugh...I've dealt with that pain before
[05:08:03] <jaawerth> basically, scope.popup.document.write(node.html())
[05:08:06] <BahamutWC> I manually constructed the DOM and just did document.write all in one go - there's no way around it
[05:08:19] <jaawerth> shoulda told her to just use a modal
[05:08:26] <BahamutWC> something with browser security prevents you from using your loaded jQuery or any helper
[05:08:43] *** fairuz has quit IRC
[05:08:49] <jaawerth> yeah, it's stubborn like that
[05:09:12] <BahamutWC> I had to do it to help a team lead fix a print view too heh
[05:09:33] *** Anton_ has joined #angularjs
[05:10:01] <BahamutWC> another solution is to use the print media query
[05:10:04] *** burzum2 has joined #angularjs
[05:10:11] <BahamutWC> err
[05:10:15] <BahamutWC> well, print stylesheet
[05:10:32] <BahamutWC> and not have to deal with popup nonsense
[05:11:07] <BahamutWC> and it works on all the browsers angular supports!
[05:11:19] *** damoncasale has joined #angularjs
[05:11:23] <damoncasale> Evening folks...
[05:11:29] <BahamutWC> hello
[05:11:56] <damoncasale> So, I have a looping question. I'd like to be able to iterate over a for/next loop in HTML, instead of using ng-repeat to iterate over an object.
[05:12:05] *** burzum has quit IRC
[05:12:09] <damoncasale> Basically, I want to render a bunch of numbers.
[05:12:45] <BahamutWC> don't do that :(
[05:12:47] <damoncasale> Sort of like this: <div ng-repeat="value in [1..75]"></div>
[05:12:51] <damoncasale> Why not?
[05:13:11] <damoncasale> I need to render a bunch of columns.
[05:13:13] <BahamutWC> just transform the object into an array
[05:13:15] <jaawerth> BahamutWC: that's true - I THINK she had a reason she wasn't doing that, but I'll have to ask. At least document.write means I can get rid of the OTHER horrible hacky thing I initially did to get around the domain problem
[05:13:21] <damoncasale> I don't have an object, ho.
[05:13:32] <BahamutWC> or use lodash's _.range
[05:13:34] <damoncasale> I just want to render DIVs numbered 1-75.
[05:13:39] <damoncasale> _.range?
[05:13:41] *** dacuca has quit IRC
[05:13:55] <BahamutWC> just need to do $scope.items = _.range(1, 75)
[05:14:19] <BahamutWC> or I guess _.range(1, 76)
[05:14:23] <jaawerth> BahamutWC: the way I initially got it not to throw the "access is denied" error was with a javascript URL that appended something (ANYTHING - so I just did <body></body>) to the document, which made it not do about:blank. Turns out I can document.write to it even without a domain though (which seems odd)
[05:14:24] *** lemur has joined #angularjs
[05:15:15] <BahamutWC> jaawerth: the solution is just construct all your html as a string then do popup.document.write(html)
[05:15:15] *** bmac has quit IRC
[05:15:30] <jaawerth> like I said, that's what I did
[05:15:30] <BahamutWC> nothing else you can do with a popup - using the print stylesheet is a more elegant solution though
[05:15:48] *** Trow1 is now known as Trow
[05:15:54] <jaawerth> yeah I think what she's doing is giving a range of reports with "print" buttons, hence the popup
[05:16:03] <jaawerth> like I said, a modal might work better for her
[05:16:20] *** bayousoft has joined #angularjs
[05:16:38] <jaawerth> but print stylesheets ARE pretty neat
[05:16:54] <jaawerth> what was that you meant about "now supports all browsers angular supports" though?
[05:17:04] <jaawerth> oh, because angular cut support for more of the ancient ones?
[05:17:12] *** ome has joined #angularjs
[05:17:12] *** _ritchie has joined #angularjs
[05:17:26] <BahamutWC> just added that as an additional comment - it is even supported on IE8
[05:17:54] *** _ritchie has quit IRC
[05:18:47] *** ASUChander has joined #angularjs
[05:19:07] *** _ritchie_ has joined #angularjs
[05:19:14] *** robdubya has quit IRC
[05:20:03] *** ASUchander1 has quit IRC
[05:20:19] *** jr3 has quit IRC
[05:20:35] *** H1FuelCell has quit IRC
[05:21:37] *** rburns has quit IRC
[05:22:12] *** ludkiller has quit IRC
[05:23:31] *** prbc_ has quit IRC
[05:24:07] *** prbc has joined #angularjs
[05:24:19] *** richiebk_ has quit IRC
[05:24:27] *** prbc has joined #angularjs
[05:24:44] *** ludkiller has joined #angularjs
[05:25:03] *** prbc has quit IRC
[05:28:04] *** adpirz has joined #angularjs
[05:28:46] *** ccohn has quit IRC
[05:29:50] *** glassir has joined #angularjs
[05:30:10] *** Mugo has joined #angularjs
[05:30:45] *** tschundeee has quit IRC
[05:31:09] *** Mugo has quit IRC
[05:32:22] *** adpirz has quit IRC
[05:33:00] *** avree has joined #angularjs
[05:33:33] *** Trow1 has joined #angularjs
[05:34:27] *** glassir has quit IRC
[05:35:44] *** Trow has quit IRC
[05:35:56] *** Koganei has quit IRC
[05:37:24] *** tristanp has joined #angularjs
[05:37:37] *** rtpg has joined #angularjs
[05:37:47] *** sabrehagen has joined #angularjs
[05:38:19] *** Trow has joined #angularjs
[05:38:36] <jaawerth> AND I had to make it support angular 1.0.5
[05:38:51] *** merobertsjr has joined #angularjs
[05:38:56] <jaawerth> so happy I don't have to work with that product (the person I'm helping inherited the product after a contractor created it)
[05:38:57] *** rchavik has quit IRC
[05:39:51] *** wdgreg has joined #angularjs
[05:39:56] *** renlo has joined #angularjs
[05:40:04] *** dsdeiz has quit IRC
[05:40:27] *** Trow1 has quit IRC
[05:40:55] *** rtpg_ has quit IRC
[05:42:04] <BahamutWC> jaawerth: ouch
[05:42:18] <BahamutWC> there are plenty of companies you can switch to that aren't that backwards :P
[05:42:27] <jaawerth> oh they're gone
[05:42:52] <jaawerth> in their defense, they started this before I was hired at my current gig, so.. before August of last year
[05:43:02] <BahamutWC> I'm going to be the speaker
[05:43:12] <jaawerth> neat! I haven't been meaning to go to more meetups
[05:43:13] *** morenoh149 has quit IRC
[05:43:34] <BahamutWC> going to speak on SOA with Angular, courtesy of robdubya for giving the idea
[05:43:49] *** tfennelly has joined #angularjs
[05:44:02] <jaawerth> er
[05:44:05] <jaawerth> I HAVE been meaning to go
[05:44:38] *** Koganei has joined #angularjs
[05:45:24] <jaawerth> that's how I try to write everything when possible - I'm writing our corporate intranet the way
[05:45:39] <jaawerth> my boss was like "what stack are you using" and I was like "that is a complicated question"
[05:46:30] <jaawerth> BahamutWC: I'll definitely try to come. Is it going to be pure lecture or will there be milling about and such as well?
[05:46:43] *** {DV8} has quit IRC
[05:46:54] <BahamutWC> what do you mean by milling about?
[05:47:09] <BahamutWC> people will socialize before and after the meetup - standard fare
[05:47:14] <jaawerth> cool
[05:47:24] <BahamutWC> and of course the free food/snacks & drinks
[05:47:29] <jaawerth> but of course!
[05:48:31] *** tfennelly has quit IRC
[05:48:57] *** dannyc has joined #angularjs
[05:50:13] *** wdgreg has quit IRC
[05:51:17] *** dc_ has quit IRC
[05:51:38] *** rchavik has joined #angularjs
[05:52:01] <sabrehagen> hi guys, i'm trying to save code duplication in my service. in my service, i want to be able to call updateUser and return a promise. my getUser function already returns a promise, so I want to return this promise from my updateUser function. here's a plunkr showing the code (not runnable though due to missing dependencies). i'm getting the error "Cannot read property 'then' of undefined at Scope.$scope.putProfile", so i don't believe the promise is g
[05:52:45] *** d10n-work has joined #angularjs
[05:52:56] *** yelvert has joined #angularjs
[05:53:30] *** dannyc has quit IRC
[05:54:51] *** bayousoft has quit IRC
[05:55:18] *** maikowblue has quit IRC
[05:55:56] *** fatshark has quit IRC
[05:56:57] *** yelvert has quit IRC
[06:00:52] *** night-owl is now known as zz_night-owl
[06:03:59] <jaawerth> sabrehagen: you forgot to link the plnkr ;-)
[06:04:12] <jaawerth> or you got cut off
[06:04:57] *** Koganei has quit IRC
[06:07:09] *** Koganei has joined #angularjs
[06:07:43]
<sabrehagen> jaawerth: oh, thanks :) here's the end of the message: *so i don't believe the promise is getting returned. how do i achieve this goal? if i can provide you any more information please ask! http://plnkr.co/edit/LGCMt1ynWHE1uqY9LZhG
[06:08:49] *** gunn has quit IRC
[06:09:39] <jaawerth> sabrehagen: hrm, well, a couple things with the code - first, why are you calling self.getUser twice?
[06:09:54] <jaawerth> second, you need to put a "return" before the first call to self.getUser
[06:10:39] *** D9 has quit IRC
[06:10:47] <jaawerth> third, what is data = user supposed to do? You're just going to overwrite your reference to the returned data that way
[06:10:59] <jaawerth> the second point is what's causing your current problem, though
[06:12:09] <sabrehagen> jaawerth: re 'first', i was using this method as it was what i had seen elsewhere. i'm experimenting now, and i've found that restangular attaches the put() function to the returned object, so i can actually call it in my controller and it will update the data. do you mind if i update the plunkr to my current code state and ask you to review then?
[06:12:34] <jaawerth> go for it - I only have a few minutes though, before I gotta go
[06:12:40] *** lemur has quit IRC
[06:13:02] <sabrehagen> i'll be quick...
[06:13:07] *** lemur has joined #angularjs
[06:13:22] *** Sna4x8 has quit IRC
[06:14:05] *** Sna4x8 has joined #angularjs
[06:14:14] *** stphn has joined #angularjs
[06:15:46] <sabrehagen> okay, here's where i'm at
[06:15:54] <sabrehagen> the comments provide some more info
[06:16:27] <jaawerth> that's not working?
[06:16:27] <sabrehagen> essentially, does 'return user.put()' not return a promise? user.put() returns a promise, so if i return user.put(), why do i not return a promise?
[06:16:37] *** Trow1 has joined #angularjs
[06:16:57] *** btc_panhandler has quit IRC
[06:17:36] *** zz_night-owl is now known as night-owl
[06:17:51] <sabrehagen> nope, not working
[06:17:53] *** lemur has quit IRC
[06:17:57] <jaawerth> sabrehagen: that should certainly use a promise
[06:18:26] *** Stichoza has joined #angularjs
[06:18:31] <jaawerth> the question becomes, though, why use a service rather than just restangular's save method (or using put directly)
[06:18:49] <jaawerth> I guess presumably because you'll build it out to do other things
[06:18:58] <jaawerth> you can also add custom methods to restangular stuff though, iirc
[06:19:04] <sabrehagen> jaawerth: for if i need to add any other logic to the update method, it will all be centralised
[06:19:10] <sabrehagen> jaawerth: yep, exactly
[06:19:19] *** zivester has joined #angularjs
[06:19:55] *** Trow has quit IRC
[06:20:51] <sabrehagen> jaawerth: ideally, i'd like the userservice never to expose the fact that it's using restangular
[06:21:23] *** btc_panhandler has joined #angularjs
[06:21:24] <jaawerth> anyway, that should definitely be returning a promise. tough to test since you didn't make the plunk executable though.. one sec
[06:22:40] <sabrehagen> jaawerth: the put is working, but if i update the $scope.user value in the .then() attached to the promise, it becomes null
[06:22:56] <sabrehagen> *the put is working, i.e., the database is updated with the changed value
[06:23:34] *** Stichoza has quit IRC
[06:24:05] <sabrehagen> hmmm, trying it directly (without calling the user service) it actually does the same thing.
[06:25:26] *** ccohn has joined #angularjs
[06:25:52] <sabrehagen> on a side note, but the note that may be able to solve this problem, i can't see anywhere in documentation that says what put() returns. maybe it doesn't in fact return a promise?
[06:27:14] *** night-owl is now known as zz_night-owl
[06:28:00] *** tschundeee has joined #angularjs
[06:28:45] <jaawerth> sabrehagen: in your getUser, what are you passing in there? IIRC it needs an ID there, but it could also take a restangular object - I don't use it enough to remember
[06:29:21] <sabrehagen> passing in an id
[06:29:33] <jaawerth> is it working with the getUser command?
[06:29:38] <sabrehagen> yes
[06:30:38] *** glassir has joined #angularjs
[06:30:39] <jaawerth> try .save instead of .put and see what it does
[06:31:01] <sabrehagen> okay, thanks so much
[06:31:09] <sabrehagen> i've gotta run, thanks for your assisstance!
[06:31:25]
<sari1> http://kitchens-ink.com/tattoos3.html on Internet explorer ng does not work with inline style, do you know why? (relating to the arrow pointing from artist to portfolio not having margin-top calculate
[06:32:02] *** aslate has joined #angularjs
[06:34:54] *** glassir has quit IRC
[06:35:12] <BahamutWC> sari1: use ng-style, not style if you are interpolating there
[06:36:27] <jaawerth> still, that typically WILL work
[06:36:51] *** aslate has quit IRC
[06:36:52] <jaawerth> anyway, gotta go
[06:36:53] <jaawerth> later all!
[06:39:21] *** gunn has joined #angularjs
[06:39:38] *** mogaj has joined #angularjs
[06:43:58] *** tfennelly has joined #angularjs
[06:44:10] <tristanp> how can I "reload" an element? I am trying to change some params for a x-shockwave-player object and though it changes the attrs, the element doesn't seem to "reload"
[06:44:40] <tristanp> One thing I tried was turning it off and on with ng-if, but not surprisingly that did nothing
[06:44:40] *** muffin has quit IRC
[06:46:59] <caitp-> tristanp, stackoverflow seems to suggest getting the markup from within the <object> and replacing it
[06:47:10] <caitp-> supposedly that's how youtube does it
[06:47:20] <caitp-> but from my reading of blink and gecko, I'm not sure why that would work
[06:47:24] <tristanp> the jquery html() thing?
[06:47:27] <caitp-> maybe object elements are special case'd
[06:48:01] *** chachan has joined #angularjs
[06:49:06] *** tfennelly has quit IRC
[06:50:44] *** antsanto has joined #angularjs
[06:51:49] *** antsanto has quit IRC
[06:52:22] *** chachan has quit IRC
[06:52:24] *** {DV8} has joined #angularjs
[06:53:19] <sari1> BahamutWC thanks
[06:54:26] <sari1> although tried an didtn work on any browser hmm
[06:54:52] <wafflej0ck_> might want to check out swfobject js file for loading flash content
[06:55:46] <wafflej0ck_> I couldn't figure out the new google maps code recently and turns out writing my own component for the simple things I needed (markers and overlays) was easier than figuring out the popular google maps directive
[06:55:50] *** stphn_ has joined #angularjs
[06:56:23] *** eBureau has quit IRC
[06:56:48] <sari1> wafflej0ck_: talking to me?
[06:57:04] <sari1> for the flash content on that site I just used google swiffy
[06:57:07] <wafflej0ck_> swfobject was about tristanp
[06:57:14] <sari1> ahh
[06:57:26] <wafflej0ck_> other thing was just a statement
[06:57:33] <wafflej0ck_> the google maps directive is too hard to use
[06:58:17] <wafflej0ck_> and the google maps API is simple so having a simple directive for adding markers and overlays is easier than using the one that's out there (at least for me) it's lots of coffee script and the JS is confusing to read
[06:58:19] *** connor_goodwolf has quit IRC
[06:58:34] *** ccohn has quit IRC
[07:00:00] <BahamutWC> the angular-google-maps plugin uses coffeescript?
[07:00:19] <caitp-> ruby is literally hitler
[07:00:21] <caitp-> that is all
[07:00:21] <wafflej0ck_> yeah the JS is terrible to read
[07:00:21] <tristanp> shun it if it does
[07:00:30] <tristanp> we cant give those coffeescript bastards an inch
[07:00:42] <tristanp> jk
[07:00:48] <tristanp> sorta
[07:00:54] <wafflej0ck_> I mean it seems really organized and if I understood the structure maybe it would be different
[07:01:00] <wafflej0ck_> but I was just trying to get an array of markers on screen
[07:01:05] <caitp-> maybe php and python are also literally hitler
[07:01:06] <caitp-> but
[07:01:09] <BahamutWC> Ruby has less of the harder to read problem than coffeescript
[07:01:21] <BahamutWC> but...it strives too much for terseness
[07:01:36] <caitp-> no I mean nothing in ruby actually works
[07:01:37] <caitp-> like at all
[07:01:51] *** _ritchie_ has quit IRC
[07:01:58] <tristanp> but rails?
[07:02:06] <caitp-> "hurrr we can't find libxml2 even though you literally showed us where to find it with environment variables"
[07:03:02] <wafflej0ck_> tristanp: yeah so swfobject.js is just a JS file tha will dynamically create the embed/object tag like what you have but you supply the attributes in JS
[07:03:08] *** Sontakey has joined #angularjs
[07:03:39] <wafflej0ck_> tristanp: it just deals with adding the right stuff for various browsers when you're just using it for embedding flash in "regular" cases but should help with making a directive too
[07:03:49] <tristanp> wafflej0ck_: ok, because the problem I'm having is you see where i interpolate with {{streamName}}...that doesn't work so well when that variable changes
[07:04:25] <wafflej0ck_> tristanp: yeah should be all good with SWFObject you'll just want to write a directive that can watch for the streamName changing and being passed to it and rebuild the swfobject embed thing
[07:05:25] <wafflej0ck_> tristanp: you might also want to look at ExternalInterface if you're writing the Flash side too so you can make callbacks from JS to the flash side instead of reloading it entirely
[07:05:45] *** stphn has quit IRC
[07:07:32] *** Sontakey has quit IRC
[07:10:25] *** dacuca has joined #angularjs
[07:10:31] *** connor_goodwolf has joined #angularjs
[07:10:40] *** merobertsjr has quit IRC
[07:12:18] *** slashroot__ has joined #angularjs
[07:16:46] *** adpirz has joined #angularjs
[07:19:41] *** jlambert121 has joined #angularjs
[07:21:23] *** Z3R0 has joined #angularjs
[07:21:23] *** adpirz has quit IRC
[07:24:41] *** jlambert121 has quit IRC
[07:25:29] *** Alina-malina has joined #angularjs
[07:25:30] *** Alina-malina has joined #angularjs
[07:25:53] *** ProLoser has joined #angularjs
[07:25:53] *** dsdeiz has joined #angularjs
[07:25:59] <tristanp> wafflej0ck_: ah, one glitch to directive-izing that swfobject.embedSwf is that it expects the id of your target element, not the element itself. Is there any nice angular way around this, or do I have to roll my own id-assignment process? because obviously each instance of the directive needs a different id
[07:27:59] *** JBreit has joined #angularjs
[07:30:03] *** namcool has joined #angularjs
[07:30:22] *** dc_ has joined #angularjs
[07:30:23] *** mary5030 has quit IRC
[07:30:40] *** namcool has quit IRC
[07:30:57] *** mary5030 has joined #angularjs
[07:31:23] *** glassir has joined #angularjs
[07:33:00] *** rtpg_ has joined #angularjs
[07:34:02] *** gormley has quit IRC
[07:35:08] *** gunn has quit IRC
[07:35:13] *** mary5030 has quit IRC
[07:35:52] *** glassir has quit IRC
[07:36:16] *** tristanp has quit IRC
[07:36:17] *** rtpg has quit IRC
[07:36:38] <TheAceOfHearts> whoa, I just learned about console.group, console.timeline, and console.profile
[07:36:44] *** huggard has joined #angularjs
[07:36:46] <TheAceOfHearts> FF is missing console.timeline though :(
[07:36:55] *** tristanp has joined #angularjs
[07:37:41] *** dannyc has joined #angularjs
[07:37:51] <TheAceOfHearts> whoa, console.memory too
[07:38:22] *** gunn has joined #angularjs
[07:39:38] <BahamutWC> don't forget console.table
[07:39:47] <TheAceOfHearts> yeah, I knew about that one and .time
[07:39:56] <TheAceOfHearts> oh, I also learned about count!
[07:39:59] <BahamutWC> Chrome has a lot of goodies
[07:40:08] *** charuru has quit IRC
[07:40:09] *** IvailoStoianov has joined #angularjs
[07:40:11] *** gunn has quit IRC
[07:40:14] <TheAceOfHearts> not just chrome though
[07:40:15] <TheAceOfHearts> FF has most of em
[07:41:24] *** tristanp has quit IRC
[07:41:48] *** dsdeiz_ has joined #angularjs
[07:41:54] *** dannyc has quit IRC
[07:42:18] *** quantax- has joined #angularjs
[07:42:28] *** dsdeiz has quit IRC
[07:44:08] *** sabrehagen has left #angularjs
[07:44:09] *** themime has quit IRC
[07:44:57] *** chrisbirk has quit IRC
[07:45:04] *** ko3t has joined #angularjs
[07:45:19] *** wex13r has joined #angularjs
[07:46:33] *** ko3t has quit IRC
[07:49:43] *** ProLoser has quit IRC
[07:50:02] *** ProLoser has joined #angularjs
[07:50:53] *** fabiofb has quit IRC
[07:53:26] *** yelvert has joined #angularjs
[07:55:41] *** ccohn has joined #angularjs
[07:55:46] *** Z3R0 has quit IRC
[07:58:41] *** tschundeee has quit IRC
[08:03:00] *** wex13r has quit IRC
[08:04:08] *** Stichoza has joined #angularjs
[08:04:15] *** NormySan has joined #angularjs
[08:05:28] *** NormySan has quit IRC
[08:07:58] *** stodan has quit IRC
[08:08:17] *** Stichoza has quit IRC
[08:09:45] *** martianboy has joined #angularjs
[08:09:49] *** zivester has quit IRC
[08:11:56] *** dacuca has quit IRC
[08:12:04] *** Anonymous has joined #angularjs
[08:12:12] *** rburns has joined #angularjs
[08:13:04] *** Juanchito has quit IRC
[08:13:18] *** iShortBus has quit IRC
[08:13:28] *** imanc_ has quit IRC
[08:13:28] *** isacloud has quit IRC
[08:13:41] *** th2389_____ has quit IRC
[08:13:46] *** bremnes has quit IRC
[08:13:46] *** Xorlev_ has quit IRC
[08:13:46] *** raytiley has quit IRC
[08:13:52] *** tombee has quit IRC
[08:14:15] *** rikkus has quit IRC
[08:14:24] *** RoryHughes has quit IRC
[08:14:38] *** gweedo767 has quit IRC
[08:14:38] *** eristic has quit IRC
[08:17:12] *** iShortBus_ has joined #angularjs
[08:18:15] *** joshontheweb has joined #angularjs
[08:18:49] *** chachan has joined #angularjs
[08:19:51] *** isacloud has joined #angularjs
[08:20:59] *** aslate has joined #angularjs
[08:21:17] *** merobertsjr has joined #angularjs
[08:21:26] *** th2389_____ has joined #angularjs
[08:21:29] *** Anonymous is now known as Yordan89
[08:21:59] *** Xorlev_ has joined #angularjs
[08:22:07] *** raytiley_ has joined #angularjs
[08:22:31] *** wex13r has joined #angularjs
[08:22:46] *** bremnes has joined #angularjs
[08:22:57] *** chachan has quit IRC
[08:23:13] *** imanc_ has joined #angularjs
[08:23:19] *** Juanchito has joined #angularjs
[08:23:28] *** tombee has joined #angularjs
[08:23:29] *** gweedo767 has joined #angularjs
[08:23:41] *** eristic_ has joined #angularjs
[08:23:42] *** rikkus has joined #angularjs
[08:24:42] *** GreenJello has quit IRC
[08:25:32] *** aslate has quit IRC
[08:25:35] *** devhoag_ has quit IRC
[08:25:39] *** merobertsjr has quit IRC
[08:25:54] *** devhoag has joined #angularjs
[08:25:59] *** rburns has quit IRC
[08:29:15] *** ProLoser has quit IRC
[08:29:36] *** ccohn has quit IRC
[08:29:36] *** jaydubya has quit IRC
[08:33:35] *** glassir has joined #angularjs
[08:33:52] *** lemur has joined #angularjs
[08:34:20] *** sabrehagen has joined #angularjs
[08:34:58] *** damoncasale has quit IRC
[08:35:26] *** one0one has quit IRC
[08:37:55] *** dejanr has quit IRC
[08:38:21] *** glassir has quit IRC
[08:38:54] *** phishy has quit IRC
[08:39:10] *** tanepiper___ has quit IRC
[08:39:18]
<sabrehagen> hi guys, i'm having trouble with angular's ui-router. i'm using it to resolve a dependency, and inject it into my controller, which it does successfully, and the data is accessible, but angular is complaining that there was an unresolved provider. does anybody know why i might be seeing this? here's my code: http://i.imgur.com/olBIF2S.png
[08:39:25] <sabrehagen> as you can see in the screenshot, the user object is logged to the console successfully
[08:39:33] *** MalteJ has quit IRC
[08:39:33] *** alphonse23_ has quit IRC
[08:39:44] *** jumz_ has quit IRC
[08:39:44] *** wycats has quit IRC
[08:39:45] *** JonathanNeal has quit IRC
[08:39:45] *** glamb__ has quit IRC
[08:39:46] *** n3ssi3 has quit IRC
[08:39:54] *** ProLoser has joined #angularjs
[08:39:56] *** oyvinmar___ has quit IRC
[08:39:56] *** ebryn_ has quit IRC
[08:39:56] *** amatecha_ has quit IRC
[08:40:06] *** twisted` has quit IRC
[08:40:20] *** Fifty5Plus has quit IRC
[08:40:22] *** elmcrest has quit IRC
[08:40:22] *** jkatsnelson____ has quit IRC
[08:40:42] *** eyebraus has quit IRC
[08:41:00] *** ETBlue has quit IRC
[08:41:00] *** tfnico____ has quit IRC
[08:41:00] *** kudos has quit IRC
[08:41:01] *** pchittum has quit IRC
[08:41:05] *** octarine has quit IRC
[08:41:38] *** andreypopp_ has quit IRC
[08:41:38] *** happyface has quit IRC
[08:44:26] *** GreenJello has joined #angularjs
[08:46:11] *** nemothekid has quit IRC
[08:47:35] *** mary5030 has joined #angularjs
[08:49:49] *** rburns has joined #angularjs
[08:54:15] *** mary5030 has quit IRC
[08:54:45] *** Rahul_Roy_ has joined #angularjs
[08:54:50] *** mary5030 has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:37] *** tschundeee has joined #angularjs
[08:57:07] *** soee has quit IRC
[08:57:24] *** rtpg has joined #angularjs
[08:58:53] *** mrru has joined #angularjs
[08:59:06] *** mary5030 has quit IRC
[09:01:08] *** xyNNN has quit IRC
[09:01:17] *** omsmith has quit IRC
[09:01:20] *** machty has quit IRC
[09:01:38] *** gweedo767 has quit IRC
[09:01:41] *** rtpg_ has quit IRC
[09:01:41] *** d10n-work has quit IRC
[09:01:50] *** tombee has quit IRC
[09:01:54] *** Juanchito has quit IRC
[09:01:55] *** jshultz has quit IRC
[09:01:55] *** elijah has quit IRC
[09:01:55] *** snkcld has quit IRC
[09:01:56] *** thanpolas has quit IRC
[09:01:56] *** NullSoldier has quit IRC
[09:02:09] *** Xorlev_ has quit IRC
[09:02:18] *** iamblue_cloud___ has quit IRC
[09:02:32] *** th2389_____ has quit IRC
[09:02:37] *** imanc_ has quit IRC
[09:02:37] *** hguux_ has quit IRC
[09:02:40] *** bremnes has quit IRC
[09:03:29] *** RoryHughes has joined #angularjs
[09:03:35] *** tombee has joined #angularjs
[09:03:56] *** xyNNN has joined #angularjs
[09:04:00] *** hguux_ has joined #angularjs
[09:04:20] *** Xorlev_ has joined #angularjs
[09:04:26] *** beilabs has quit IRC
[09:04:47] *** NullSoldier has joined #angularjs
[09:04:50] *** Stichoza has joined #angularjs
[09:05:41] *** adpirz has joined #angularjs
[09:05:47] *** bremnes has joined #angularjs
[09:06:17] *** mtsr has joined #angularjs
[09:06:48] *** xuu has quit IRC
[09:07:07] *** wex13r has quit IRC
[09:07:44] *** rchavik has quit IRC
[09:07:44] <wafflej0ck_> sabrehagen: you sure that's the only place you have user injected?
[09:08:57] *** Stichoza has quit IRC
[09:09:25] *** xuu has joined #angularjs
[09:10:07] *** adpirz has quit IRC
[09:10:26] *** iamblue_cloud___ has joined #angularjs
[09:10:47] *** imanc_ has joined #angularjs
[09:10:49] *** d10n-work has joined #angularjs
[09:10:53] *** th2389_____ has joined #angularjs
[09:10:59] *** dejanr has joined #angularjs
[09:11:23] <sabrehagen> wafflej0ck_: yes, definitely
[09:11:44] <sabrehagen> wafflej0ck_: if i change its name in that controller, the error updates to reflect the new name
[09:12:19] *** Trow1 has quit IRC
[09:12:28] *** jshultz has joined #angularjs
[09:12:45] *** thanpolas has joined #angularjs
[09:12:53] *** Juanchito has joined #angularjs
[09:13:35] <wafflej0ck_> sabrehagen: is Staging controller used anywhere else?
[09:13:39] *** gweedo767 has joined #angularjs
[09:13:40] *** IvailoStoianov has quit IRC
[09:13:49] *** snkcld has joined #angularjs
[09:14:39] *** elijah has joined #angularjs
[09:14:49] *** machty has joined #angularjs
[09:15:05] *** seiyria has left #angularjs
[09:15:06] <sabrehagen> wafflej0ck_: just this one place
[09:17:55] *** beilabs has joined #angularjs
[09:19:39] *** threesixes has joined #angularjs
[09:19:58] <sabrehagen> wafflej0ck_: any further ideas?
[09:21:08] <wafflej0ck_> not really... maybe try taking out that usage of the controller in the state to be positive it's the only reference
[09:21:09] *** trustyhank has joined #angularjs
[09:22:05] *** jlambert121 has joined #angularjs
[09:23:05] *** MrcRjs has joined #angularjs
[09:23:11] *** renlo has quit IRC
[09:23:13] *** phzon has joined #angularjs
[09:23:35] <sabrehagen> wafflej0ck_: what happens if it's not the only reference? so that i can know what i'm looking for
[09:23:58] <wafflej0ck_> you still get the error after removing the reference in the state
[09:24:25] *** jshultz has quit IRC
[09:24:35] <wafflej0ck_> if it does still happen search all files for "Staging" or 'Staging'
[09:24:56] *** e0ipso|away is now known as e0ipso
[09:25:00] <sacho_> sabrehagen, make a plunker
[09:25:16] <sabrehagen> sacho_: there are too many dependencies for me do to so unfortunately
[09:25:21] *** ccohn has joined #angularjs
[09:25:30] <sacho_> no, there's only one you care about, user
[09:25:34] <sacho_> so make a plunker
[09:25:47] *** ciwolsey has joined #angularjs
[09:25:57] <wafflej0ck_> yeah you can always reduce the problem and start with the plunkr from ui-router or whatever is the component in question
[09:26:30] *** dannyc has joined #angularjs
[09:26:58] *** jlambert121 has quit IRC
[09:27:19] <sabrehagen> sacho_: i'm sorry, i really don't understand how i'm meant to do that. wafflej0ck_, you said make it with the plunkr from ui-router. does this mean there are plunkr templates? i'm not all that familiar with the system.\
[09:27:22] *** phzon has quit IRC
[09:27:36] *** linojon has quit IRC
[09:27:44] <wafflej0ck_> sabrehagen: yeah if you just go to the ui-router docs they have links to plnkr for their examples
[09:28:27] <wafflej0ck_> sabrehagen: can either do that or there's a link in the IRC topic here /topic to see it, you can add ui-router in there too using the search/library button on the right
[09:29:18] <sabrehagen> thanks, i'll give that a go
[09:30:57] *** dannyc has quit IRC
[09:31:02] <sacho_> sabrehagen, you can also put a breakpoint in the error function that's giving you this message
[09:31:11] <sacho_> then inspect up the stack trace to see what is being instantiated
[09:31:30] *** renlo has joined #angularjs
[09:32:11] <sabrehagen> sacho_: i'll try that first. i've never set one before, so i'll give it a go.
[09:32:16] *** chrisbirk has joined #angularjs
[09:32:33] <wafflej0ck_> sabrehagen: you can type "debugger;" in the JS to stop at some ponit
[09:32:34] <wafflej0ck_> point*
[09:32:52] <sabrehagen> wafflej0ck_: woah, awesome!
[09:32:56] <wafflej0ck_> didn't think of it at first but could just do that in the controller and see if it's being called a second time
[09:33:51] <wafflej0ck_> sabrehagen: yeah with "debugger;" you just need to have the debug panel open when it hits the line
[09:34:02] *** huggard has quit IRC
[09:34:10] <wafflej0ck_> works in FF Chrome or IE I'm pretty sure
[09:34:11] <sacho_> also what's your route setup?
[09:34:36] <sacho_> hmm
[09:34:41] <sacho_> when you break into the error
[09:34:49] <sacho_> you could do
[09:35:06] <sacho_> angular.element(document.body).injector().get('$route') and inspect the route
[09:35:36] <sacho_> alternatively, place some route listeners in a run block, see what ui-router is loading
[09:35:50] <sacho_> the error practically must be "loading the controller via a route without a resolve"
[09:35:54] *** dimas has quit IRC
[09:35:56] <sacho_> (which is why resolve sucks)
[09:36:42] *** franchini has joined #angularjs
[09:37:06] *** suffice_ has quit IRC
[09:37:35] *** suffice has joined #angularjs
[09:37:42] *** ABCDEFGMinor has quit IRC
[09:38:16] *** ABCDEFGMinor has joined #angularjs
[09:38:40] <sabrehagen> okay, i'm trying to keep up with all the things you're suggesting, thanks for all of the advice :) being two weeks in, it's slow going to me to trace all this stuff, and implement your suggestions
[09:39:08] *** gurke_ has joined #angularjs
[09:40:29] *** Trow has joined #angularjs
[09:41:32] <sabrehagen> sacho_: is there not a 'break on error' option in the debugger?
[09:42:08] <sacho_> there is
[09:42:20] <sacho_> but for some reason it doesn't work on chrome, with angular's setup
[09:42:26] <sacho_> because angular catches exceptions and then rethrows
[09:42:27] <sabrehagen> firefox then?
[09:42:35] <sacho_> maybe, I don't have firefox
[09:42:43] <sacho_> but it's fairly easy to just place a breakpoint in the error function
[09:42:46] <sacho_> which does the same thing
[09:42:58] *** omsmith has joined #angularjs
[09:43:13] *** suffice has quit IRC
[09:43:34] *** slashroot__ has quit IRC
[09:43:48] *** suffice has joined #angularjs
[09:44:01] <sabrehagen> sacho_: okay, well, after putting the "debugger;" line at the top of my 'Staging' controller and stepping through, execution leaves the controller, and there is no provider error, resuming execution, the error appears, therefore it's happening somewhere else later in the code
[09:44:24] <sacho_> well, that's why I'm telling you to place a breakpoint in the error function
[09:44:40] <sabrehagen> what do you mean when you say the error function?
[09:44:50] <sabrehagen> is this an angular native function?
[09:44:52] <sacho_> angular's function which throws the error you're seeing
[09:45:04] <sabrehagen> okay, this is news to me. how do i locate theat?
[09:45:06] <sabrehagen> *that
[09:45:08] <sacho_> I think it's on the top of the error's stack trace
[09:45:59] *** MrcRjs has left #angularjs
[09:47:47] <sabrehagen> this is what's on top of the stack
[09:48:04] <sabrehagen> can you help me out a little, i'm really not sure what i'm looking for, or how to trace it when i'm in the right place
[09:48:28] <sabrehagen> i come from a strong c# background, so i understand the concepts, but this web stuff is completely foreign to me
[09:49:31] <wafflej0ck_> sabrehagen: in the debug tools where you see the play and stuff there should be a little stop sign with a pause on exceptions checkbox when you click it
[09:49:33] <wafflej0ck_> sabrehagen: hit that
[09:49:44] *** trustyhank has quit IRC
[09:50:16] <wafflej0ck_> sabrehagen: you'll hit a few exceptions about ngLocale most likely that angular swallows you can continue on those until it gets to the error you're interested in, when you're in there you can click the line to add a breakpoint in chrome too so you don't have to pause on all exceptions to get back there if need be
[09:51:03] <sabrehagen> okay, this is really valuable, thanks
[09:52:11] *** chrisbirk has quit IRC
[09:52:21] *** iksik has quit IRC
[09:52:22] *** iksik has joined #angularjs
[09:52:36] *** mtsr has quit IRC
[09:53:26] <sabrehagen> alright, i've broken on the unknown provider userProvider error, and i have my stack trace
[09:53:40] <sabrehagen> where do i go from here?
[09:54:15] <sabrehagen> (i'm sorry, these feel like the most newbie questions to ask, but this is my first time doing this, and i literally have no idea, hence the hand holding)
[09:54:26] <sacho_> look up the stack trace to before instantiate
[09:54:34] <wafflej0ck_> basically would look up through the stack trace and look around at some of the variables, hover over the variables to see their value
[09:54:53] <wafflej0ck_> see what it was trying to do before it failed
[09:55:04] <sacho_> if it's a controller there's probably a line like controller = some_func(...) and one of the parameters is the name
[09:55:33] <sabrehagen> okay, i'm working up this trace now
[09:56:40] *** caitp- has quit IRC
[09:57:04] *** joshontheweb has quit IRC
[09:57:22] *** dimas has joined #angularjs
[09:57:35] <wafflej0ck_> sabrehagen: so you said it stepped through that controller creation one time completely then after you continued, you got the error, and it never went back to that controller right?
[09:57:58] *** diegoaguilar has quit IRC
[09:58:00] <sabrehagen> wafflej0ck_: that's right
[09:58:20] <wafflej0ck_> I suppose even if it was included a second time the error would happen when it was trying to get the values from the injector...
[09:58:21] *** diegoaguilar has joined #angularjs
[09:58:33] <wafflej0ck_> strange though it does look like this is coming from a transitionTo call
[09:58:46] *** ccohn has quit IRC
[09:59:24] <wafflej0ck_> so it must be some state config not an ng-controller I imagine
[10:00:37] <sacho_> sabrehagen, look on the right, the stack trace
[10:00:41] <sacho_> before the $get function
[10:00:51] <sabrehagen> ep
[10:00:55] <sabrehagen> *yep
[10:01:06] <sacho_> well, click that, figure out the controller name
[10:01:11] <sacho_> although it's probably just your controller
[10:01:39] <sacho_> maybe the state transition at the bottom would help
[10:02:16] <sabrehagen> when you say state transition, what do you mean?
[10:02:34] <sacho_> look at the bottom of the trace
[10:03:25] *** shpoont has joined #angularjs
[10:03:43] *** martianboy has quit IRC
[10:03:46] *** IvailoStoianov has joined #angularjs
[10:04:02] *** tfennelly has joined #angularjs
[10:04:59] *** Evanion has joined #angularjs
[10:05:24] *** mary5030 has joined #angularjs
[10:05:35] *** e0ipso is now known as e0ipso|away
[10:05:36] <sabrehagen> sacho_: this seems to be after a state change success
[10:06:02] <sacho_> sure, but can you figure out what state you're transitioning to?
[10:06:37] *** davi has joined #angularjs
[10:07:10] *** renlo has quit IRC
[10:07:28] *** chachan has joined #angularjs
[10:08:44] <sacho_> yeah
[10:09:37] *** mary5030 has quit IRC
[10:09:59] *** aslate has joined #angularjs
[10:10:01] <sacho_> then the state might not be the problem
[10:11:20] <sabrehagen> sacho_: okay, this *could* be of value. in the $get function, expression is my controller code, and the locals are as per the screenshot. $scope is listed there, but not user. should user be in the locals list?
[10:11:42] <gurke_> good morning. :)
[10:11:49] *** chachan has quit IRC
[10:11:59] <sacho_> sabrehagen, I think so
[10:12:10] <sacho_> the injector doesn't know about "resolve" and such
[10:12:30] <sacho_> you might be hitting some ui-router edge-case or bug
[10:12:39] <sacho_> I know their resolves are pretty complicated
[10:12:43] <sacho_> or...
[10:12:56] <sacho_> you have a directive which uses the staging controller somewhere
[10:13:09] *** ailaG has joined #angularjs
[10:13:13] <sabrehagen> nope, i can promise you that's not so
[10:13:17] *** renlo_ has joined #angularjs
[10:13:30] *** beilabs has quit IRC
[10:13:34] <sacho_> for some reason there's updateView twice in the stac
[10:13:35] <sacho_> k
[10:13:35] <sabrehagen> the fact that 'user' resolves in the console must indicate something
[10:14:25] *** beilabs has joined #angularjs
[10:14:26] *** diegoaguilar has quit IRC
[10:14:29] *** aslate has quit IRC
[10:14:31] <sacho_> well at this point I just don't know, so I'd be just inspecting the whole stack trace looking for a lightbulb
[10:15:15] <sabrehagen> sadly i don't know what a lightbulb looks like. any chance you feel like doing a skype session for some remote assistance?
[10:15:22] *** nfroidure has joined #angularjs
[10:15:41] <ailaG> Hi, I'm learning AngularJS. I want to build a website that lists events (sort of) so when the user searches for something, it loads filtered data from the server and caches it. Can you point me to relevant keywords to look at? Other than $filter
[10:16:29] <wafflej0ck_> ailaG: $filter is really more for doing modifications to data or strings on the fly in the view not filtered data from a server
[10:16:35] <wafflej0ck_> ailaG: are you familiar with factories/services
[10:16:53] *** Oxynum has joined #angularjs
[10:18:08] <ailaG> wafflej0ck_: the site will handle a convention's program, so if someone looks at convention events (sessions) taking place at 1pm, then events containing the word "foo", then events that cost no more than $5 to enter - that recycles the same data pool while add
[10:18:09] <ailaG> d
[10:18:15] *** jaydubya has joined #angularjs
[10:18:18] <ailaG> Gah. Stray enter key.
[10:18:38] <wafflej0ck_> ailaG: gotta tame that beast :)
[10:18:39] <ailaG> Anyway. while adding data from the server - doesn't that fit into what $filter does?
[10:18:43] <ailaG> LOL
[10:18:57] <ailaG> I'm slightly familiar with factories / services
[10:19:04] <wafflej0ck_> ailaG: no $filter is really for stuff like currency (adding dollar sign etc.) or filtering a set of data for display
[10:19:17] <wafflej0ck_> ailaG: you should learn more about factories/services/providers read the providers page
[10:19:34] <wafflej0ck_> ailaG: those can store your data from the server and be injected to any controller that needs to reference the data
[10:19:44] <ailaG> I can show you the way it works now (I have it working with jQuery mobile, markup all constructed with PHP) but it's in another language
[10:19:57] <sabrehagen> sacho_: it'd be paid support, how about $30USD?
[10:20:10] <ailaG> OK, I'll look into it. Thanks
[10:20:14] *** zz_night-owl is now known as night-owl
[10:21:46] <ailaG> ty *reads it*
[10:22:33] *** jlambert121 has joined #angularjs
[10:22:59] *** d10n-work has quit IRC
[10:25:14] *** dejanr has quit IRC
[10:25:39] *** e0ipso|away is now known as e0ipso
[10:26:57] *** jlambert121 has quit IRC
[10:30:22] *** renlo_ has quit IRC
[10:31:10] *** e0ipso is now known as e0ipso|away
[10:32:04] *** mrru has quit IRC
[10:32:41] *** jaydubya has quit IRC
[10:32:49] *** nemothekid has joined #angularjs
[10:33:15] *** Fuzzy has joined #angularjs
[10:33:39] *** Fuzzier has joined #angularjs
[10:34:00] *** evilaliv3 has joined #angularjs
[10:34:50] *** PeterMetz has joined #angularjs
[10:35:11] *** glassir has joined #angularjs
[10:39:31] *** freelyfred has quit IRC
[10:39:41] *** glassir has quit IRC
[10:41:07] *** rhodesjason has quit IRC
[10:43:50] *** tarnus has joined #angularjs
[10:45:51] *** rtpg has quit IRC
[10:46:39] *** PeterMetz has quit IRC
[10:47:22] *** PeterMetz has joined #angularjs
[10:47:29] *** e0ipso|away is now known as e0ipso
[10:48:17] *** tarnus has quit IRC
[10:51:13] *** rhodesjason has joined #angularjs
[10:52:06] *** sabrehagen has left #angularjs
[10:52:24] *** emocakes has joined #angularjs
[10:53:05] *** caitp- has joined #angularjs
[10:53:24] *** night-owl is now known as zz_night-owl
[10:53:35] *** Stichoza has joined #angularjs
[10:53:59] *** Sijdesign has joined #angularjs
[10:54:31] *** cornerma1 has joined #angularjs
[10:54:36] *** opiates has joined #angularjs
[10:54:43] *** adpirz has joined #angularjs
[10:55:27] *** ccohn has joined #angularjs
[10:57:29] *** foofoobar has joined #angularjs
[10:57:50] *** cornerman has quit IRC
[10:57:52] *** caitp- has quit IRC
[10:57:53] *** cornerma1 is now known as cornerman
[10:58:06] *** Stichoza has quit IRC
[10:59:42] *** adpirz has quit IRC
[11:02:42] *** sigurding has joined #angularjs
[11:04:35] *** Fuzzier has quit IRC
[11:07:16] *** Rahul_Roy_ has quit IRC
[11:09:32] *** rtpg has joined #angularjs
[11:10:34] *** wafflej0ck_ has quit IRC
[11:11:30] *** wafflej0ck has joined #angularjs
[11:12:20] <kirfu> Hey whats a good way to make an angular.service available across multiple controllers?
[11:13:40] *** fairuz has joined #angularjs
[11:14:36] *** Left_Turn has joined #angularjs
[11:14:40] *** cads has joined #angularjs
[11:15:21] *** dannyc has joined #angularjs
[11:16:06] *** Guest17405 has quit IRC
[11:16:20] *** josh-k has joined #angularjs
[11:16:49] *** rtpg has quit IRC
[11:17:14] *** sabrehagen has joined #angularjs
[11:17:28] <sabrehagen> hi guys, i have a module which exports some functions. how do i call one exported function from within another exported function?
[11:17:35] <sabrehagen> (this is on my node.js server side)
[11:18:09] *** emocakes has quit IRC
[11:19:28] *** josh-k has quit IRC
[11:19:35] *** dannyc has quit IRC
[11:20:23] *** IvailoStoianov has quit IRC
[11:21:00] *** Successful has joined #angularjs
[11:22:16] *** TripTastic has joined #angularjs
[11:24:06] *** mityaz has joined #angularjs
[11:25:09] *** fairuz has quit IRC
[11:25:29] *** JBreit has quit IRC
[11:26:10] *** KushS has joined #angularjs
[11:26:29] <KushS> what is the best way to upload image using angular ?
[11:28:39] *** RedOrangeZ has joined #angularjs
[11:29:15] *** ccohn has quit IRC
[11:29:42] *** uru|away is now known as uru
[11:31:56] *** yelvert has quit IRC
[11:32:14] *** ludkiller has quit IRC
[11:33:16] *** Johnny13371337 has joined #angularjs
[11:34:44] *** ludkiller has joined #angularjs
[11:40:20] *** yelvert has joined #angularjs
[11:41:45] *** rburns has quit IRC
[11:43:14] <kirfu> KushS: depends where your uploading,
[11:43:48] *** boxmein has joined #angularjs
[11:44:24] *** jacuqesdancona_ has joined #angularjs
[11:46:23] *** yelvert has quit IRC
[11:46:56] *** yelvert has joined #angularjs
[11:47:11] *** ailaG has quit IRC
[11:47:22] *** wycats has joined #angularjs
[11:47:49] *** tanepiper___ has joined #angularjs
[11:51:09] <wafflej0ck> Sijdesign: you might want to just use moment
[11:51:14] *** yelvert has quit IRC
[11:51:30] *** tfennelly has quit IRC
[11:52:29] *** tfnico____ has joined #angularjs
[11:53:20] *** PeterMetz has joined #angularjs
[11:53:38] *** caitp- has joined #angularjs
[11:53:52] *** oyvinmar___ has joined #angularjs
[11:54:19] *** Stichoza has joined #angularjs
[11:56:09] *** chachan has joined #angularjs
[11:56:13] *** ebryn_ has joined #angularjs
[11:56:50] *** Sijdesign has quit IRC
[11:57:36] *** octarine has joined #angularjs
[11:57:53] <KushS> kirfu: Its on my own personal server
[11:58:03] *** lite_ has joined #angularjs
[11:58:12] *** caitp- has quit IRC
[11:58:29] *** boxmein has quit IRC
[11:58:36] *** Stichoza has quit IRC
[11:58:56] *** aslate has joined #angularjs
[11:59:20] *** jaydubya has joined #angularjs
[11:59:46] *** uris77 has joined #angularjs
[11:59:47]
<sabrehagen> hi guys, i have this mongoose query to find a document based on two fields, only one of which has to be found, hence an or: http://i.imgur.com/ioNRsX2.png. if i delete the _id check, the username is matched. if i include the _id check, the username is never matched, but the _id is always matched regardless of whether username is included or not. i can't work out why this would be. can anybody help?
[12:00:53] *** chachan has quit IRC
[12:02:09] *** PeterMetz has quit IRC
[12:02:39] *** Solid1_afk is now known as Solid1
[12:02:43] *** lite_ has quit IRC
[12:03:21] *** calmbird has joined #angularjs
[12:03:28] *** n3ssi3 has joined #angularjs
[12:03:42] *** aslate has quit IRC
[12:03:46] <calmbird> Hi is it possible, to use return function in ng-model="{{return function}}", how can I achieve that?
[12:04:07] *** JonathanNeal has joined #angularjs
[12:04:15] *** jaydubya has quit IRC
[12:04:30] *** kudos has joined #angularjs
[12:07:10] *** mlpug has joined #angularjs
[12:07:53] *** twisted` has joined #angularjs
[12:08:05] *** Oxynum has quit IRC
[12:08:47] *** Oxynum has joined #angularjs
[12:09:33] *** pknordic has joined #angularjs
[12:10:32] *** Oxynum has quit IRC
[12:10:50] *** amatecha_ has joined #angularjs
[12:12:28] *** dexteryy has joined #angularjs
[12:12:37] *** Oxynum has joined #angularjs
[12:12:53] *** dexteryy has quit IRC
[12:14:04] <snurfery> calmbird: why?
[12:15:57] <calmbird> I want to build dynamic form. I have editFields = [ ], I'm pushing things there, but I can't push model because it's not two way binding then.
[12:16:41] <calmbird> Then I have <div ng-repeat="field in editFields"><input ng-model=""></intpu></div>
[12:17:09] *** deanclkclk has quit IRC
[12:17:13] *** ETBlue has joined #angularjs
[12:17:23] *** jumz_ has joined #angularjs
[12:17:53] *** happyface has joined #angularjs
[12:20:22] *** Fifty5Plus has joined #angularjs
[12:20:31] *** IvailoStoianov has joined #angularjs
[12:20:55] *** cakirke has joined #angularjs
[12:21:59] *** Anton_ has quit IRC
[12:23:28] *** emocakes has joined #angularjs
[12:23:49] *** nemothekid has quit IRC
[12:24:22] *** jlambert121 has joined #angularjs
[12:24:40] *** kent\n has quit IRC
[12:25:09] *** eyebraus has joined #angularjs
[12:25:24] *** ccohn has joined #angularjs
[12:25:46] <calmbird> look
[12:26:47] *** jtimon has joined #angularjs
[12:27:18] *** wsmoak has joined #angularjs
[12:27:21] *** ali4ever4 has joined #angularjs
[12:27:21] *** wsmoak has quit IRC
[12:27:22] *** wsmoak has joined #angularjs
[12:27:37] *** gnrlbzik has quit IRC
[12:28:34] *** jlambert121 has quit IRC
[12:30:02] <wafflej0ck> calmbird: JS strings are immutable so you can't change the string
[12:30:06] *** Anton_ has joined #angularjs
[12:30:11] *** ishan1604 has joined #angularjs
[12:30:19] *** Anton_ has quit IRC
[12:30:26] <wafflej0ck> calmbird: it creates a new string and assigns the reference in the "model" property you have there to the new string when one gets created
[12:30:34] <wafflej0ck> calmbird: the original doc variable still points to the old string
[12:31:10] <calmbird> ah ok I see
[12:31:13] *** IvailoStoianov has quit IRC
[12:31:18] <wafflej0ck> calmbird: you can push the object into the array
[12:31:20] <calmbird> i just made copy of primitive
[12:31:23] <wafflej0ck> and modify it's properties from there
[12:31:24] <wafflej0ck> but yea
[12:31:30] <wafflej0ck> as is it's copying the primitive basically
[12:31:38] *** andreypopp_ has joined #angularjs
[12:31:40] <wafflej0ck> strings can be thought of basically as primitives in JS
[12:33:05] *** motionman has joined #angularjs
[12:33:24] *** amphetamines has joined #angularjs
[12:33:30] <calmbird> So on form submit I should copy those primitives to original object?
[12:33:39] *** glamb__ has joined #angularjs
[12:33:46] <calmbird> Because I can't work on original object that way.
[12:34:22] <calmbird> or mby I ca do pointer?
[12:34:27] <calmbird> in angular js
[12:34:53] *** RangerRick has quit IRC
[12:35:03] *** tbo_ has joined #angularjs
[12:35:13] *** RangerRick has joined #angularjs
[12:35:17] *** wex13r has joined #angularjs
[12:35:23] <calmbird> It's CMS I can't add anything to original objects, only modify values.
[12:35:54] *** pchittum has joined #angularjs
[12:36:07] *** devhoag has quit IRC
[12:36:44] *** glassir has joined #angularjs
[12:37:07] *** kent\n has joined #angularjs
[12:37:13] *** opiates has quit IRC
[12:37:22] <calmbird> can I do any pointers to promitives in angular?
[12:38:26] *** Anton_ has joined #angularjs
[12:38:50] <snurfery> I have a similar form
[12:38:57] <snurfery> it's basically the 'edit' form for a contact
[12:39:12] <snurfery> so it might have any number of phone numbers, email addresses, screen names, etc
[12:39:16] *** Anton_ has quit IRC
[12:39:33] <snurfery> each field type has it's own ng-repeat
[12:40:06] <snurfery> <div ng-repeat="email in contactData.emails"> <input ng-model="email.email">
[12:40:11] *** tschundeee has quit IRC
[12:40:23] *** tschundeee has joined #angularjs
[12:40:50] <snurfery> and when I want to add another item, I just add a placeholder object to the array
[12:41:11] <snurfery> (i.e. in my controller) $scope.contactData.emails.push({email: null})
[12:41:22] <wafflej0ck> yeah lots of us have done this I think already there are ways to make it happen but no way to make a reference to a string you need to rely on setting properties of objects
[12:41:23] <snurfery> voila, a new blank field shows up
[12:41:25] *** gunn has joined #angularjs
[12:41:45] *** glassir has quit IRC
[12:41:46] <snurfery> oh I might have missed a huge part of the convo heh
[12:42:20] *** lemur has quit IRC
[12:42:33] <snurfery> 3:42am? time for bed. nite yall
[12:42:39] <TheAceOfHearts> TIL you can do conditional catch clauses
[12:42:45] <TheAceOfHearts> it's frowned upon, but it's there lol
[12:42:49] <calmbird> wafflej0ck: If I could use something like ng-model="{{returnModel()}}" it would be great, but angular doesn't let it.
[12:42:57] *** lemur has joined #angularjs
[12:42:59] <TheAceOfHearts> it looks a little like ruby
[12:43:27] *** soee has joined #angularjs
[12:43:31] *** Aswebb_ has joined #angularjs
[12:43:34] *** adpirz has joined #angularjs
[12:44:22] <calmbird> at first I was using: <input ng-model="originalDoc[field.name]"> it worked great. But then I can't use deep objects like that.
[12:47:24] *** Anton_ has joined #angularjs
[12:47:29] <wafflej0ck> calmbird: yeah well ng-model needs something it can assign to not just get a value from so that's why a function result doesn't really work
[12:47:38] *** tombee has quit IRC
[12:47:39] *** iamstef has quit IRC
[12:47:39] *** hguux_ has quit IRC
[12:47:39] *** xyNNN has quit IRC
[12:47:40] *** Xorlev_ has quit IRC
[12:47:40] *** bremnes has quit IRC
[12:47:41] *** bgentled has quit IRC
[12:47:41] *** tomdale__ has quit IRC
[12:47:42] *** mafs_ has quit IRC
[12:47:42] *** isacloud has quit IRC
[12:47:43] *** machty has quit IRC
[12:47:43] *** imanc_ has quit IRC
[12:47:43] *** iamblue_cloud___ has quit IRC
[12:47:44] *** snkcld has quit IRC
[12:47:44] *** raytiley_ has quit IRC
[12:47:45] *** gweedo767 has quit IRC
[12:47:46] *** Juanchito has quit IRC
[12:47:46] *** elijah has quit IRC
[12:47:46] *** thanpolas has quit IRC
[12:47:47] *** iShortBus_ has quit IRC
[12:47:47] *** eristic_ has quit IRC
[12:47:48] *** th2389_____ has quit IRC
[12:47:48] *** rikkus has quit IRC
[12:47:48] *** NullSoldier has quit IRC
[12:47:49] *** lemur has quit IRC
[12:48:09] *** adpirz has quit IRC
[12:48:44] <calmbird> Well I think I have a solution, the best way is to make reference to upper object not primitive. Then have value of primitive: { upperObjectRef: originalDoc.something, primitiveName: "something" }
[12:49:03] <calmbird> and then in ng-model="field.originalDocRef[primitiveName]"
[12:49:07] <calmbird> should work ^^
[12:49:45] *** mtsr has joined #angularjs
[12:49:48] *** phishy has joined #angularjs
[12:50:29] *** Guest53524 has joined #angularjs
[12:50:41] <Guest53524> ciao
[12:50:43] <Guest53524> lista
[12:50:43] <calmbird> *then have name of primitive
[12:50:55] *** Guest53524 has quit IRC
[12:51:08] <calmbird> *ng-model="field.originalDocRef[field.primitiveName]"
[12:51:10] *** KushS has quit IRC
[12:51:10] *** tschundeee has quit IRC
[12:51:22] <wafflej0ck> yup that should work fine
[12:52:01] <calmbird> yeah its working great ^^
[12:52:12] <calmbird> thanx for help
[12:52:18] *** H1FuelCell has joined #angularjs
[12:52:24] <ali4ever4> calmbird: thanks for sharing
[12:52:29] <calmbird> I could send you a bear if I have knew where to :D
[12:53:08] <calmbird> ali4ever4: np ofc, your welcome
[12:53:10] *** H1FuelCell has quit IRC
[12:53:24] *** alphonse23_ has joined #angularjs
[12:53:36] <wafflej0ck> calmbird: a bear? I hope you mean a beer :P
[12:53:36] *** Anton_ has quit IRC
[12:53:43] <calmbird> oh yeah :D
[12:53:50] <wafflej0ck> I think sending a bear is an act of aggression :P
[12:53:54] <wafflej0ck> this means WAR!
[12:53:54] <calmbird> my english stronk
[12:53:59] <wafflej0ck> haha np
[12:54:01] *** lite_ has joined #angularjs
[12:54:11] <calmbird> Oh come on, it was just simple diplomacy issue.
[12:54:18] <blackkbot> id take a bear...
[12:54:28] <calmbird> But yeah wars starts like that :P
[12:54:32] *** tschundeee has joined #angularjs
[12:54:40] <blackkbot> bear wars
[12:55:25] *** jdivock has joined #angularjs
[12:57:23] *** KushS has joined #angularjs
[12:58:21] *** boxmein has joined #angularjs
[12:58:36] *** ccohn has quit IRC
[12:59:01] <kakashiAL> hey guys, at the moment I have problems to take the content of my input field, parse it and show it in realtime (when ever the input field changes)
[12:59:23] <wafflej0ck> kakashiAL: using a filter?
[12:59:37] <wafflej0ck> calmbird: you have a rich text editor or something you're using for the CMS?
[12:59:43] <kakashiAL> wafflej0ck: no, it needs more deeper logic in the controller
[12:59:53] <wafflej0ck> calmbird: I'm thinking about implementing the same inside a CRM
[13:00:11] <wafflej0ck> kakashiAL: using ngModelController and $formatters/$parsers then?
[13:00:31] *** szymek has joined #angularjs
[13:00:46] <wafflej0ck> calmbird: I mean having a CMS portion of the web app with a basic integrated CRM system
[13:00:54] <calmbird> wafflej0ck: No need in my case, it's just simple css with inputs.
[13:01:12] <calmbird> wafflej0ck: Yeah, it would be great.
[13:01:23] <calmbird> *cms
[13:01:38] <wafflej0ck> calmbird: I've used CKEditor a bit but there is a licensing fee with it so looking at QuillJS as an alternative
[13:01:47] *** Anton_ has joined #angularjs
[13:02:05] <calmbird> angular editable is great
[13:02:13] <wafflej0ck> yeah for sure been using that too
[13:02:30] <calmbird> It's still a bit buggy, but it's realy great.
[13:02:34] <wafflej0ck> I have basic company/contact info and invoicing/payments/expenses in there as is
[13:02:48] *** lite_ has quit IRC
[13:02:53] <wafflej0ck> using x-editable in lots of the parts haven't had too many problems with it really
[13:03:30] *** jkatsnelson____ has joined #angularjs
[13:03:59] <calmbird> This one is very good.
[13:04:06] <calmbird> Yeah I didn't like x-editable eather.
[13:04:19] <kakashiAL> wafflej0ck: okay, any chance to get some good examples :)
[13:04:43] <wafflej0ck> calmbird: ah yeah saw this one too haven't really dug into any of them QuillJS seems nice with the extendability
[13:04:48] *** lite_ has joined #angularjs
[13:05:11] <wafflej0ck> calmbird: I just want to add in ability to upload images and deal with them in some reasonable way and same for video links to embed
[13:05:15] <calmbird> wafflej0ck: I love that it uses content-editable, so you can just see HTML output.
[13:05:35] <calmbird> wafflej0ck: You can make live edit CMS of your webpage, that is very friendly for users.
[13:05:37] *** lite_ has quit IRC
[13:05:40] <wafflej0ck> yeah true
[13:05:53] *** PGTips has joined #angularjs
[13:05:59] *** lite_ has joined #angularjs
[13:07:03] *** IvailoStoianov has joined #angularjs
[13:07:31] *** teddyp1cker has joined #angularjs
[13:07:34] <calmbird> I'v used it for last little project, user can edit static pages live. I think it's way CMS should be now.
[13:07:53] <wafflej0ck> yeah that probably is much easier from a user perspective
[13:08:04] <wafflej0ck> not having to think about where something ends up just edit it in place
[13:08:38] <calmbird> exacly, it is what you see that you get.
[13:08:41] *** SonikBoom has joined #angularjs
[13:08:43] *** warehouse13 has joined #angularjs
[13:09:16] *** Left_Turn has quit IRC
[13:09:42] *** caitp- has joined #angularjs
[13:10:11] <calmbird> One big problem with this plugin, is that it's messing abit DOM. So you should have ng-if with texAngular, and without it. Or add texAngular when user is logged in as admin, in other way.
[13:10:24] *** kuadrosx_ has quit IRC
[13:10:43] *** kuadrosx_ has joined #angularjs
[13:11:22] *** shpoont has quit IRC
[13:13:20] *** apertoire has quit IRC
[13:13:33] *** mtsr has quit IRC
[13:14:23] *** stodan has joined #angularjs
[13:14:24] *** sigurding has quit IRC
[13:14:32] *** caitp- has quit IRC
[13:15:15] <calmbird> wafflej0ck: @I just want to add in ability to upload... there is milion ways you can achieve that.
[13:15:34] *** lunks has joined #angularjs
[13:16:19] <wafflej0ck> calmbird: yeah the uploading part isn't a problem I've dealt with file uploads in other sites/apps before but need to make the user experience reasonable for adding and modifying position on images
[13:16:22] *** boxmein has quit IRC
[13:16:29] <wafflej0ck> sizes and stuff
[13:16:34] *** apertoire has joined #angularjs
[13:16:38] <wafflej0ck> CKEditor actually handles this pretty well too
[13:17:05] <calmbird> wafflej0ck: Well interesting task, but to make it good it will take some days.
[13:17:18] *** ingsoc has quit IRC
[13:18:13] *** k-dawg has quit IRC
[13:18:13] <calmbird> wafflej0ck: CKEditor is great, but yeah this licence.
[13:18:22] *** sahbeewah has joined #angularjs
[13:18:23] *** Xorlev_ has joined #angularjs
[13:18:41] *** MalteJ has joined #angularjs
[13:20:11] *** elmcrest has joined #angularjs
[13:20:18] *** codeman has quit IRC
[13:20:23] <wafflej0ck> calmbird: totally
[13:20:47] *** tombee has joined #angularjs
[13:21:09] *** NullSoldier has joined #angularjs
[13:21:11] *** shpoont has joined #angularjs
[13:21:15] *** yelvert has joined #angularjs
[13:21:39] *** klobucar______ has joined #angularjs
[13:22:18] *** wex13r has quit IRC
[13:23:26] *** rikkus has joined #angularjs
[13:23:34] *** gweedo767 has joined #angularjs
[13:23:54] *** wycats has quit IRC
[13:24:02] *** codeman has joined #angularjs
[13:24:28] *** boxmein has joined #angularjs
[13:25:06] *** sahbeewah has quit IRC
[13:25:27] *** wafflej0ck has quit IRC
[13:25:39] *** yelvert has quit IRC
[13:25:47] *** Iravan_ has joined #angularjs
[13:25:53] *** plato1 has joined #angularjs
[13:25:54] *** plato has quit IRC
[13:26:12] *** wafflej0ck has joined #angularjs
[13:26:59] *** wycats has joined #angularjs
[13:28:28] *** gnrlbzik has joined #angularjs
[13:28:46] *** jtimon has quit IRC
[13:28:54] *** bremnes has joined #angularjs
[13:29:48] *** fixl has quit IRC
[13:30:01] *** codeman has quit IRC
[13:30:57] *** tschundeee has quit IRC
[13:32:04] *** Iravan_ has quit IRC
[13:32:10] *** Oxynum has quit IRC
[13:33:16] *** gnrlbzik has quit IRC
[13:33:28] *** Oxynum has joined #angularjs
[13:34:29] *** emocakes has quit IRC
[13:34:40] *** Anton_ has quit IRC
[13:36:29] *** boxmein has quit IRC
[13:37:32] *** alphonse23_ has quit IRC
[13:37:33] *** andreypopp_ has quit IRC
[13:37:33] *** tomdale__ has joined #angularjs
[13:37:47] *** ebryn_ has quit IRC
[13:38:02] *** ETBlue has quit IRC
[13:38:03] *** eyebraus has quit IRC
[13:38:04] *** jumz_ has quit IRC
[13:38:05] *** tfnico____ has quit IRC
[13:38:13] *** Stichoza has joined #angularjs
[13:38:18] *** JonathanNeal has quit IRC
[13:38:33] *** elmcrest has quit IRC
[13:38:33] *** Fifty5Plus has quit IRC
[13:38:34] *** tanepiper___ has quit IRC
[13:38:40] *** jkatsnelson____ has quit IRC
[13:38:40] *** amatecha_ has quit IRC
[13:38:47] *** twisted` has quit IRC
[13:38:48] *** kudos has quit IRC
[13:38:53] *** pchittum has quit IRC
[13:38:53] *** glamb__ has quit IRC
[13:38:53] *** n3ssi3 has quit IRC
[13:38:54] *** octarine has quit IRC
[13:39:05] *** happyface has quit IRC
[13:39:18] *** phishy has quit IRC
[13:39:19] *** MalteJ has quit IRC
[13:39:21] *** wycats has quit IRC
[13:39:56] *** oyvinmar___ has quit IRC
[13:41:05] *** mrru has joined #angularjs
[13:41:24] *** fourq_ has joined #angularjs
[13:41:46] *** motionman has quit IRC
[13:41:58] *** jlyndon has quit IRC
[13:42:04] *** Trow1 has joined #angularjs
[13:42:16] *** digitalfiz_ has quit IRC
[13:42:39] *** Anton_ has joined #angularjs
[13:43:33] *** mafs_ has joined #angularjs
[13:43:52] *** digitalfiz_ has joined #angularjs
[13:44:15] *** plato1 has quit IRC
[13:44:26] *** plato has joined #angularjs
[13:44:44] *** zemiudo has joined #angularjs
[13:44:45] *** Oxynum has quit IRC
[13:44:49] *** Trow has quit IRC
[13:45:22] *** jlyndon has joined #angularjs
[13:45:37] *** Yordan89 has quit IRC
[13:47:32] *** iamstef has joined #angularjs
[13:47:50] *** janoelze has quit IRC
[13:47:51] *** aslate has joined #angularjs
[13:48:10] *** jaydubya has joined #angularjs
[13:48:14] *** larsam has joined #angularjs
[13:48:43] *** janoelze has joined #angularjs
[13:49:28] *** iamblue_cloud___ has joined #angularjs
[13:49:29] *** Oxynum has joined #angularjs
[13:51:57] *** aslate has quit IRC
[13:52:19] *** gweedo767 has quit IRC
[13:52:29] *** iamstef has quit IRC
[13:52:37] *** mafs_ has quit IRC
[13:52:38] *** tomdale__ has quit IRC
[13:52:44] *** jaydubya has quit IRC
[13:52:44] *** mlpug has quit IRC
[13:52:45] *** iamblue_cloud___ has quit IRC
[13:52:48] *** bremnes has quit IRC
[13:54:01] *** DuelShark has joined #angularjs
[13:54:29] *** jlambert121 has joined #angularjs
[13:55:26] *** ccohn has joined #angularjs
[13:55:46] *** JR____ has joined #angularjs
[13:56:08] *** klobucar______ has quit IRC
[13:56:09] *** NullSoldier has quit IRC
[13:56:14] *** Xorlev_ has quit IRC
[13:56:24] *** tombee has quit IRC
[13:56:34] *** fourq_ has quit IRC
[13:56:46] *** jhwhite has joined #angularjs
[13:57:06] *** adben has joined #angularjs
[13:57:20] *** rikkus has quit IRC
[14:00:27] *** tarnus has joined #angularjs
[14:03:32] *** tfennelly has joined #angularjs
[14:05:51] *** basiclaser_ has joined #angularjs
[14:06:02] *** rtpg has joined #angularjs
[14:06:29] *** saint-ron has joined #angularjs
[14:07:33] *** chachan has joined #angularjs
[14:09:04] *** teddyp1cker has quit IRC
[14:10:13] *** caitp- has joined #angularjs
[14:10:59] *** mrru has quit IRC
[14:12:40] *** hswolff has quit IRC
[14:14:16] *** spacepluk has quit IRC
[14:15:24] *** caitp- has quit IRC
[14:15:28] *** glassir has joined #angularjs
[14:15:31] *** hswolff has joined #angularjs
[14:15:57] *** jhwhite has quit IRC
[14:16:13] *** teddyp1cker has joined #angularjs
[14:17:00] *** macobo has joined #angularjs
[14:17:14] *** icloud has joined #angularjs
[14:17:15] *** josh-k has joined #angularjs
[14:17:32] *** icloud has quit IRC
[14:17:55] *** ProLoser has quit IRC
[14:18:20] *** Greed has quit IRC
[14:18:57] *** Greed has joined #angularjs
[14:19:20] *** wycats has joined #angularjs
[14:19:35] *** marcjs has joined #angularjs
[14:19:59] *** tanepiper___ has joined #angularjs
[14:20:03] *** threesixes has quit IRC
[14:24:56] *** pen has joined #angularjs
[14:25:22] *** lucasjones has quit IRC
[14:25:26] *** tfnico____ has joined #angularjs
[14:25:31] *** lucasjones has joined #angularjs
[14:26:15] *** teddyp1cker has quit IRC
[14:26:16] *** annlewis has joined #angularjs
[14:26:34] *** threesixes has joined #angularjs
[14:28:07] *** oyvinmar___ has joined #angularjs
[14:28:37] *** ccohn has quit IRC
[14:29:14] *** gnrlbzik has joined #angularjs
[14:30:29] *** JohnBat26 has joined #angularjs
[14:31:00] *** JohnBat26 has joined #angularjs
[14:31:09] *** annlewis has quit IRC
[14:31:52] *** dannyc has joined #angularjs
[14:32:29] *** adpirz has joined #angularjs
[14:32:35] *** ebryn_ has joined #angularjs
[14:33:17] *** gnrlbzik has quit IRC
[14:34:54] *** DuelShark has quit IRC
[14:35:10] *** DuelShark has joined #angularjs
[14:35:41] *** octarine has joined #angularjs
[14:36:26] *** dannyc has quit IRC
[14:36:49] *** DuelShark has quit IRC
[14:37:16] *** adpirz has quit IRC
[14:38:02] *** teddyp1cker has joined #angularjs
[14:38:21] *** bejames has quit IRC
[14:38:22] *** DuelShark has joined #angularjs
[14:38:57] *** DuelShark has joined #angularjs
[14:39:30] *** KushS has quit IRC
[14:39:30] *** DuelShark has joined #angularjs
[14:41:53] *** Xorlev_ has joined #angularjs
[14:42:31] *** tombee has joined #angularjs
[14:42:36] *** NullSoldier has joined #angularjs
[14:42:47] *** klobucar______ has joined #angularjs
[14:42:59] *** n3ssi3 has joined #angularjs
[14:43:26] *** gweedo767 has joined #angularjs
[14:43:28] *** rikkus has joined #angularjs
[14:43:43] *** JonathanNeal has joined #angularjs
[14:43:56] *** kudos has joined #angularjs
[14:45:24] *** bremnes has joined #angularjs
[14:45:26] *** TheAceOfHearts has quit IRC
[14:45:34] *** RobertMeta has quit IRC
[14:46:22] *** exp10r3r has joined #angularjs
[14:46:28] *** twisted` has joined #angularjs
[14:46:41] *** foofoobar has quit IRC
[14:48:16] *** amatecha_ has joined #angularjs
[14:48:23] *** gurke_ has quit IRC
[14:48:28] <jcool> I was trying to follow angular good practices to optimize my app. I found some good links and I followed it and it made code look cleaner than before.
[14:49:04] <jcool> However I am confused how to clean my http calls. As in what is the proper way to do them? make service or use $resource or something else for that.
[14:50:00] <jcool> in one of my function for controller I make 13 http calls to populate dropdown. How can I make that optimized so that apps load faster
[14:50:32] *** tomdale__ has joined #angularjs
[14:52:34] *** ETBlue has joined #angularjs
[14:53:05] *** zemiudo has quit IRC
[14:53:06] *** happyface has joined #angularjs
[14:53:12] *** jumz_ has joined #angularjs
[14:54:26] *** fourq_ has joined #angularjs
[14:54:35] *** RobertMeta has joined #angularjs
[14:54:50] *** Aswebb_ has quit IRC
[14:54:52] *** DuelShark has quit IRC
[14:55:16] *** caitp- has joined #angularjs
[14:55:18] *** Fifty5Plus has joined #angularjs
[14:56:35] *** mafs_ has joined #angularjs
[14:57:43] *** yelvert has joined #angularjs
[14:58:07] *** eyebraus has joined #angularjs
[14:58:30] <blackkbot> don't load them like that?
[14:59:48] <blackkbot> you can optimize those 13 files that its requesting to be in 1 request and loaded on the page load with the javascript as JSON?
[15:00:14] *** foofoobar has joined #angularjs
[15:00:17] *** iamstef has joined #angularjs
[15:01:13] *** iamblue_cloud___ has joined #angularjs
[15:01:22] *** fairuz has joined #angularjs
[15:01:43] *** raytiley_ has joined #angularjs
[15:01:47] *** isacloud has joined #angularjs
[15:02:53] *** andreypopp_ has joined #angularjs
[15:02:57] *** yelvert has quit IRC
[15:03:45] *** glamb__ has joined #angularjs
[15:04:16] *** tfennelly has quit IRC
[15:04:56] <jcool> blackkbot, if you see it is making lot of http requests.apart from that as far as I have read angular says dont have http requests in controller, create a service and then do data passing.
[15:04:58] *** Kesarr__ has joined #angularjs
[15:05:31] *** machty has joined #angularjs
[15:05:32] *** pchittum has joined #angularjs
[15:05:56] *** jstroem has joined #angularjs
[15:05:57] *** JohnBat26 has quit IRC
[15:07:38] *** hguux_ has joined #angularjs
[15:08:12] *** caitp- has quit IRC
[15:08:46] *** TheAceOfHearts has joined #angularjs
[15:10:27] *** thanpolas has joined #angularjs
[15:10:33] *** elijah has joined #angularjs
[15:14:28] *** jaydubya has joined #angularjs
[15:15:22] *** phishy has joined #angularjs
[15:17:00] *** th2389_____ has joined #angularjs
[15:17:06] <Dwarf> Ok so
[15:17:14] *** shpoont has quit IRC
[15:17:25] *** shpoont has joined #angularjs
[15:17:59] *** alphonse23_ has joined #angularjs
[15:19:04] <calmbird> Oh yes! Just add trac by $index and problem solved ^^
[15:19:44] *** shpoont_ has joined #angularjs
[15:19:52] <Dwarf> What
[15:19:56] *** shpoont has quit IRC
[15:20:01] <TheAceOfHearts> track by $index
[15:20:22] <Dwarf> Care to elaborate a bit?
[15:20:33] *** gunn has quit IRC
[15:20:44] *** evilaliv3 has quit IRC
[15:20:48] <TheAceOfHearts> oh, I dunno what calmbird was going on about
[15:21:04] <calmbird> Oh sorry, it was about my question.
[15:21:08] <TheAceOfHearts> ew, coffeescript
[15:21:48] *** bayousoft has joined #angularjs
[15:21:54] <Dwarf> For your viewing pleasure ;)
[15:24:12] *** digifiv5e has joined #angularjs
[15:24:30] <Dwarf> But, would there be a better way to do what I'm doing, TheAceOfHearts?
[15:24:58] *** digifiv5e is now known as daynaskully
[15:25:25] *** ccohn has joined #angularjs
[15:26:14] <willeponken> Dwarf: Use a filter?
[15:26:15] <TheAceOfHearts> sure
[15:26:16] <TheAceOfHearts> but
[15:26:19] <TheAceOfHearts> it's like eh
[15:26:39] *** bgentled has joined #angularjs
[15:27:02] *** annlewis has joined #angularjs
[15:27:22] *** tschundeee has joined #angularjs
[15:27:24] *** jkatsnelson____ has joined #angularjs
[15:28:22] *** iShortBus_ has joined #angularjs
[15:28:55] <Dwarf> willeponken: That's how I do it, but I use this function to switch between asc and desc sorting
[15:29:39] <Dwarf> Gotta love dem one liners tho TheAceOfHearts
[15:29:54] <TheAceOfHearts> not how I'd actually do it in my own code, but sure
[15:29:55] *** josh-k has quit IRC
[15:30:00] *** Una has joined #angularjs
[15:30:00] *** gnrlbzik has joined #angularjs
[15:30:03] <TheAceOfHearts> I'm starting to use ControllerAs syntax
[15:30:13] <TheAceOfHearts> and moving stuff into directives
[15:30:20] <TheAceOfHearts> to make the angular 2.0 transition less painful~
[15:31:26] <Dwarf> I'm going to cry when 2.0 becomes the standard
[15:31:33] *** annlewis has quit IRC
[15:32:08] *** imanc_ has joined #angularjs
[15:32:24] <sacho_> why?
[15:33:08] *** Una has quit IRC
[15:34:26] <wa5ted> any arguement to use angular js over ember?
[15:34:53] <sacho_> it has more angles
[15:34:55] *** gnrlbzik has quit IRC
[15:35:04] <Dwarf> It's sexy
[15:35:13] <Dwarf> More support
[15:35:16] *** eristic_ has joined #angularjs
[15:35:22] <Dwarf> Easier learning curve
[15:35:29] <grizzm0> Easier?
[15:35:38] <Dwarf> Personal preference
[15:35:38] <grizzm0> Then I don't even want to take a look at ember
[15:35:39] <grizzm0> ;D
[15:35:43] <Dwarf> But
[15:35:45] <Dwarf> I'd say it is
[15:36:22] <Dwarf> Or well, more verbose syntax
[15:36:28] <Dwarf> Which makes it easier to understand
[15:36:33] <Dwarf> To me angular just makes sense
[15:36:45] *** aslate has joined #angularjs
[15:36:47] *** elmcrest has joined #angularjs
[15:36:49] <Dwarf> Which, with the tiny amount of javascript I've done over the years is a good thing
[15:37:27] *** Juanchito has joined #angularjs
[15:38:33] *** MalteJ has joined #angularjs
[15:38:51] *** dsdeiz_ has quit IRC
[15:39:08] <TheAceOfHearts> eh
[15:39:15] <TheAceOfHearts> ember has a lot of great stuff
[15:39:37] *** Anton_ has quit IRC
[15:39:44] <TheAceOfHearts> it's really opinionated so you don't have to worry about making difficult decisions, especially since you probably don't know what you're doing and will probably do really shitty code when you start
[15:40:00] <TheAceOfHearts> the whole ember-cli thing is supposed to be awesome for setting projects up
[15:40:13] <TheAceOfHearts> with angular you have to write your own build script or use one of the shitty yeoman ones
[15:40:15] <Dwarf> I'd say my angular code is pretty neat, for a beginner
[15:40:28] <TheAceOfHearts> and they're all very incomplete
[15:40:58] *** xyNNN has joined #angularjs
[15:41:18] *** aslate has quit IRC
[15:41:41] *** deanclkclk has joined #angularjs
[15:41:50] *** gurke_ has joined #angularjs
[15:41:58] <AciD``> I have a form that allows the user to input 'A' and 'B', which then display the addition result 'R'. It does that by sending the content of 'A' and 'B' to the server, that computes the addition, then send back the result _as well as_ the value of A and B to the client's form.
[15:42:07] <AciD``> Imagine there is '2' in A, and '3' in B, the result shown is then '5'. Now, if the client quickly (1) change A to '4', THEN (2) change B to '6' before the first answer gets back to the client, then the form inputs shown are A:2, B:3, R:5 -> A:4, B:6, R:10 -> A:4, B:3, R:7, although for the user it should logically show A:4, B:6, R:10.
[15:42:12] <AciD``> How should you manage the asynchronicity of the answers, when the order of the input changes is important ?
[15:42:21] <AciD``> Should you dismiss any update 'still not answered' if a more recent update has been displayed already ? How do you do that ? Do you timetamp every request ? Is there a framework to do that, a good practice ?
[15:42:38] <AciD``> *timestamp
[15:42:39] <TheAceOfHearts> tl;dr
[15:43:31] <wa5ted> kk
[15:43:47] <wa5ted> cause im using emberjs right now, but im thinking angular js would be easier to learn
[15:43:52] *** Anonymous has joined #angularjs
[15:44:00] <TheAceOfHearts> they're both terrible~
[15:47:02] *** caitp- has joined #angularjs
[15:47:43] *** Anton_ has joined #angularjs
[15:48:17] *** mmealling has quit IRC
[15:48:38] *** qdk has quit IRC
[15:49:23] *** Successful has quit IRC
[15:50:22] *** snkcld has joined #angularjs
[15:51:16] *** nfroidure has quit IRC
[15:53:02] *** Oka has joined #angularjs
[15:53:26] *** jr3 has joined #angularjs
[15:53:46] *** Milkweed has joined #angularjs
[15:54:10] *** caitp- has quit IRC
[15:54:48] *** qdk has joined #angularjs
[15:55:38] *** cakirke has quit IRC
[15:55:54] *** nfroidure has joined #angularjs
[15:56:20] *** ishan1604 has quit IRC
[15:56:42] *** caitp has joined #angularjs
[15:56:46] <Dwarf> Hm
[15:56:48] *** ishan1604 has joined #angularjs
[15:56:54] <Dwarf> ngTable seems to not work
[15:56:55] <Dwarf> How shit
[15:57:03] <TheAceOfHearts> use ui-grid
[15:57:28] <caitp> the magic of open source is, you can file a bug
[15:57:32] <caitp> and someone will probably try to fix it
[15:57:41] <caitp> you could try yourself even
[15:57:55] *** tschundeee has quit IRC
[15:57:56] <TheAceOfHearts> sometimes it's just better to write your own version lol
[15:58:06] <TheAceOfHearts> depending on how important the component is
[15:58:15] <TheAceOfHearts> and how customized you want it to be
[15:58:50] <Dwarf> I had it as my own component but because $scope.$digest is a clusterfuck to me I was going to use ngTable
[15:58:51] *** ccohn has quit IRC
[15:58:58] *** JR____ has quit IRC
[15:59:08] <TheAceOfHearts> use ui-grid
[15:59:35] <Dwarf> Ah yea but it ships with styling?
[15:59:42] <TheAceOfHearts> it's customizable
[15:59:46] <TheAceOfHearts> it's just css
[16:00:09] <caitp> when you are supposed to have 90 day supplies of 2 different drugs, but really have like 3 days left of 1 and 3 weeks left of the other
[16:00:14] <caitp> what the hell .v.
[16:00:25] <TheAceOfHearts> lmao
[16:00:46] *** dsdeiz has joined #angularjs
[16:01:12] *** yelvert has joined #angularjs
[16:01:28] *** ishan1604 has quit IRC
[16:01:39] <Dwarf> Aye
[16:01:42] <Dwarf> I have some weed
[16:01:46] <Dwarf> And some meth
[16:01:54] *** tschundeee has joined #angularjs
[16:01:55] <Dwarf> I feel you
[16:02:39] *** dannyc has joined #angularjs
[16:02:47] <TheAceOfHearts> caitp: I got over my initial reaction towards the angular 2.0 stuff that got announced and started adopting a more directive heavy approach in my codebase now
[16:04:51] *** Foxandxss has joined #angularjs
[16:05:46] *** cboden_ has joined #angularjs
[16:06:31] *** yelvert has quit IRC
[16:06:35] *** ProLoser has joined #angularjs
[16:07:01] *** dannyc has quit IRC
[16:07:32] <kakashiAL> is there a way put a inputfield in an optionbox? so you get optionA, optionB or optionC = Textfield?
[16:08:41] *** tschundeee has quit IRC
[16:09:34] *** annlewis has joined #angularjs
[16:09:53] <GeertJohan> I'm trying to do recursion with a directive..
[16:10:24] *** zivester has joined #angularjs
[16:10:55] *** ProLoser has quit IRC
[16:11:01] <GeertJohan> but it causes my browser (chrome) to freeze... I'm very sure that there's no infinite loop in the object that I'm using, it actually just has one root item and one child..
[16:12:14] *** iksik has quit IRC
[16:13:19] *** ryst has quit IRC
[16:14:01] *** ryst has joined #angularjs
[16:14:41] <calmbird> Do you know how to setup $routeProvider in desktop app?
[16:16:37] *** Stichoza has quit IRC
[16:18:41] *** shpoont_ has quit IRC
[16:18:51] *** tristanp has joined #angularjs
[16:19:30] *** annlewis has quit IRC
[16:19:46] *** shpoont has joined #angularjs
[16:21:14] *** Stichoza has joined #angularjs
[16:21:24] *** tbo_ has quit IRC
[16:21:26] *** adpirz has joined #angularjs
[16:22:56] *** rtpg_ has joined #angularjs
[16:23:06] *** rtpg has quit IRC
[16:23:23] *** blackjid_ has quit IRC
[16:24:50] *** rtpg has joined #angularjs
[16:25:47] *** adpirz has quit IRC
[16:26:00] *** iksik has joined #angularjs
[16:27:49] <kakashiAL> Dwarf: I thought there is a much easier way but thanks :)
[16:28:21] *** rtpg_ has quit IRC
[16:29:00] <calmbird> never mind ^^
[16:29:47] *** TheAceOfHearts has quit IRC
[16:30:36] *** benjick has joined #angularjs
[16:31:19] <benjick> Hi. So, I wanna do this {{legs.{{model}}.count}}, but it gives me a syntax error, what's the correct way of doing it?
[16:31:46] *** themime has joined #angularjs
[16:32:28] *** elrabin has joined #angularjs
[16:33:08] *** Stichoza has quit IRC
[16:33:10] *** KushS has joined #angularjs
[16:33:24] *** japhar81 has quit IRC
[16:34:26] <themime> how do you guys handle table/collection X being inserted changing collection Y - ie an invoice affecting product quantities. it seems silly handle it in the JS and then send two different requests
[16:34:47] <themime> but that seems more "restful" than sending one request and processing two different collections
[16:36:47] *** elrabin has quit IRC
[16:38:24] *** jr3 has quit IRC
[16:38:27] *** phzon has joined #angularjs
[16:38:42] *** blackkbot has quit IRC
[16:38:55] *** blackkbot has joined #angularjs
[16:41:11] *** KushS has quit IRC
[16:41:18] *** boxmein has joined #angularjs
[16:41:35] *** neilff has joined #angularjs
[16:42:12] <themime> Dwarf: whats your service look like? that call looks funky to me, like you mixed promise callbacks with a normal callback. A true promise would be more like Person.query().then(function(data) { $scope.persons = data; $scope.person = {}; }
[16:42:16] *** pknordic has quit IRC
[16:42:43] *** phzon has quit IRC
[16:43:13] <Dwarf> themime: mind if I post the coffeescript version of my service?
[16:43:24] <Dwarf> it's way easier to read
[16:43:32] *** Aswebb_ has joined #angularjs
[16:43:37] <themime> sure i don't know coffeescript but ive seen it before and it just looks like JS with the brackets stripped out haha
[16:44:09] *** exp10r3r has quit IRC
[16:44:31] *** Guest15840 has joined #angularjs
[16:44:45] *** Guest15840 has joined #angularjs
[16:44:48] <Dwarf> Fixed my JS to be more readable so I'll just post that for your convenience :)
[16:45:18] *** sharms has joined #angularjs
[16:45:24] *** Guest15840 has quit IRC
[16:45:33] *** blackkbot has left #angularjs
[16:45:39] *** neilff has quit IRC
[16:45:59] *** Guest15840 has joined #angularjs
[16:46:06] *** Aswebb__ has joined #angularjs
[16:46:30] <themime> oooh i don't use resources so i have no idea
[16:46:36] *** Guest15840 has quit IRC
[16:46:42] *** in2rd has joined #angularjs
[16:46:55] <themime> u use $q to repackage the raw promise $http returns and manually handle my own data
[16:46:57] <themime> i use*
[16:47:01] <Dwarf> Ah
[16:47:39] <Dwarf> Yea I read somewhere I had to do Person.query().$promise.then(function(){}, function(e){});
[16:47:52] <themime> don't need $promise
[16:48:04] <themime> query() would return a promise
[16:48:22] <themime> a promise is saying "ill have some data at some point" and youre just setting up to wait for that data
[16:48:43] <Dwarf> Hm
[16:48:44] <wa5ted> i cant seem to get them to work
[16:48:49] *** Aswebb_ has quit IRC
[16:48:53] <wa5ted> i think i did my linking wrong
[16:48:55] <Dwarf> wa5ted: what error do you get
[16:48:58] *** yzhu has joined #angularjs
[16:49:02] <wa5ted> dont get an error
[16:49:05] *** frecinos has joined #angularjs
[16:49:10] <Dwarf> I'll try that, themime
[16:49:23] <yzhu> hello everyone
[16:49:31] <wa5ted> Dwarf: i think my linking in index.html is dont improperly
[16:50:03] <yzhu> the a tag won't go to new page when i use angularjs
[16:50:24] <yzhu> does anyone have any idea ?
[16:50:52] <Dwarf> themime: Error: Person.query(...).then is not a function, with .$promise it works tho
[16:51:02] <themime> ah maybe its a resource thing then
[16:51:19] <frecinos> Hi, wanted to know if someone knows if we are able to use multilingual routes? where commets|commentarios|commentaire will route to the same template and use the same controller. Can I put this on one rule?
[16:52:09] *** linojon has joined #angularjs
[16:53:30] <wa5ted> Dwarf: do you see any issues with y routes?
[16:53:31] <wa5ted> my*
[16:54:14] <Dwarf> That looks good
[16:54:24] <Dwarf> Do you get redirected to /portfolio when you visit the index?
[16:54:26] *** Evanion_ has joined #angularjs
[16:54:43] *** KushS has joined #angularjs
[16:55:00] *** Evanion has quit IRC
[16:55:00] *** Evanion_ is now known as Evanion
[16:55:03] *** nopolabs has joined #angularjs
[16:55:11] <frecinos> thank you! themime
[16:55:12] <wa5ted> Dwarf: like as in nothing shows up, all i see is the nav bar, and when i click on the portfolio, about and contact links nothing comes up
[16:55:20] <wa5ted> i think i might have misconfiged something?
[16:55:23] <wa5ted> Dwarf: ^
[16:55:24] *** ccohn has joined #angularjs
[16:56:13] <Dwarf> You don't get any errors, wa5ted?
[16:56:25] <wa5ted> nothing in the console
[16:56:36] <wa5ted> i read somewhere that angularjs errors are really hard to find
[16:56:57] *** Solid1 is now known as Solid1_afk
[16:57:18] <Dwarf> Hm
[16:57:23] <Dwarf> Sometimes it gives me shitty errors
[16:57:30] *** bmac has joined #angularjs
[16:57:31] <Dwarf> But sometimes they're pretty clear
[17:01:50] *** neilff has joined #angularjs
[17:02:31] <wa5ted> Dwarf: dont see anything in the console
[17:02:47] <wa5ted> do you see anything that could be wrong?
[17:03:01] <wa5ted> perhaps incompatible versions of angular route and angular core library
[17:03:38] *** dannyc_ has joined #angularjs
[17:03:40] *** yoshokatana has joined #angularjs
[17:05:18] *** Shrooms has quit IRC
[17:05:57] *** neilff has quit IRC
[17:07:49] *** dannyc_ has quit IRC
[17:08:18] *** rtpg has quit IRC
[17:09:27] *** yhzhu has joined #angularjs
[17:09:52] <wa5ted> Dwarf: ugh i still cant find anything
[17:10:14] *** annlewis has joined #angularjs
[17:11:16] *** jacuqesdancona_ has quit IRC
[17:11:21] *** tristanp has quit IRC
[17:11:48] *** jacuqesdancona_ has joined #angularjs
[17:11:55] *** tristanp has joined #angularjs
[17:12:38] *** busticated has joined #angularjs
[17:12:59] <Aswebb__> Foxandxss: Hi Fox, are you there?
[17:13:43] <Foxandxss> yeah
[17:13:45] *** jacuqesdancona_ has quit IRC
[17:13:57] <Foxandxss> it is not using CORS at all
[17:14:20] *** jacuqesdancona_ has joined #angularjs
[17:14:22] <Aswebb__> How is it possible that you can do ajax call from your angular app running on 8000 to your rails server running on 3000 ?
[17:14:28] *** annlewis has quit IRC
[17:14:29] <Foxandxss> proxy
[17:15:02] <Aswebb__> Hum, where did you do the setup about this? on the server side
[17:15:10] <Foxandxss> no
[17:15:18] <Foxandxss> that is on the frontend
[17:15:25] <Foxandxss> you have a server to "serve" your angular
[17:15:25] <Aswebb__> Because I have issues now, all my POST request are translated to OPTIONS
[17:15:30] *** nfroidure has quit IRC
[17:15:52] <Foxandxss> and you can set a proxy there so every request to /api goes to another port
[17:15:54] <Aswebb__> is limeman your proxy?
[17:15:57] <Foxandxss> no
[17:16:05] <Foxandxss> lineman is the entire angular workflow
[17:16:09] <Foxandxss> the proxy is a little part of it
[17:16:17] *** tristanp has quit IRC
[17:16:17] *** AciD`` has quit IRC
[17:16:58] <Foxandxss> proxy is useful if you are deploying your app in a single domain in production
[17:17:19] <Aswebb__> Well I'm using a node-static server to serve my angular app. However, after I've enabled my CORS in my Rails app, if I do an ajax request (POST) => first its going to do a preflight request (OPTIONS)
[17:17:23] <Aswebb__> then the actual POST request
[17:17:28] <Foxandxss> so you don't have to CORS on development and "normal" in prod
[17:17:39] <Foxandxss> that is normal Aswebb__
[17:17:41] <Foxandxss> that is how CORS works
[17:18:04] <Aswebb__> Would u advice proxy over CORS then?
[17:18:21] <Foxandxss> depend on what you want to do for production
[17:19:03] *** jacuqesdancona_ has quit IRC
[17:19:07] *** gnrlbzik has joined #angularjs
[17:19:46] *** yzhu has quit IRC
[17:19:47] *** UniBot1 has joined #angularjs
[17:20:47] *** yhzhu has quit IRC
[17:21:14] <Aswebb__> I can't see exactly where you configure your proxy on the frontend side
[17:21:54] <wa5ted> Dwarf: still around?
[17:23:09] *** yoshokatana has quit IRC
[17:23:17] *** gnrlbzik has quit IRC
[17:25:00] *** KushS has quit IRC
[17:25:15] *** KushS has joined #angularjs
[17:25:46] *** aslate has joined #angularjs
[17:25:46] *** boxmein has quit IRC
[17:26:05] *** boxmein has joined #angularjs
[17:26:16] *** cboden_ has quit IRC
[17:26:43] <wa5ted> anyone mind helping me why my linking is wrong on my site
[17:26:53] *** pen has quit IRC
[17:27:03] *** arabot has joined #angularjs
[17:27:06] <wa5ted> for some reason i cant get the routing to work
[17:27:11] *** annlewis has joined #angularjs
[17:27:11] <wa5ted> Foxandxss: any ideas (sem to know a bit)
[17:27:11] <wa5ted> seem*
[17:28:02] <BahamutWC> err...I see ember scripts in here
[17:28:06] <Foxandxss> be more concrete
[17:28:14] *** e0ipso is now known as e0ipso|away
[17:28:56] <BahamutWC> your libs folder has ember scripts, not any angular ones...
[17:29:00] *** ccohn has quit IRC
[17:29:13] <wa5ted> BahamutWC: yeah recently converted from an ember project to angular js (beleive me i got rid of the ember traces in the code just have to remove the lib folder)
[17:29:16] <BahamutWC> ah, they're using remote in index.html
[17:29:20] <Oka> wa5ted: You never declared your app
[17:29:30] <Oka> ng-app is generic, do ng-app="myApp"
[17:30:01] <wa5ted> wow
[17:30:05] <Oka> ;)
[17:30:12] <BahamutWC> been a while since I've seen that mistake heh
[17:30:16] <BahamutWC> I must be getting rusty
[17:30:21] *** aslate has quit IRC
[17:30:26] *** linojon has quit IRC
[17:31:08] *** boxmein has quit IRC
[17:31:35] *** annlewis has quit IRC
[17:31:50] <Oka> wa5ted: The other day I put my app on my head element, and couldn't figure out what was wrong for like 20 minutets
[17:32:04] <Oka> That was pretty bad
[17:32:22] <Oka> s/minutets/minutes
[17:33:39] *** danecando has quit IRC
[17:34:21] <wa5ted> lol
[17:34:32] <wa5ted> Oka: i read somehwere that angular , particularly, is a bitch to debug
[17:34:33] <wa5ted> and find mistakes
[17:35:28] <Oka> Testing seems easy, but some of the errors it throws are so useless
[17:35:29] <BahamutWC> it's not bad once you get used to it
[17:35:51] <BahamutWC> some people never get used to it though - it could be better for debugging
[17:35:57] *** bgentled has quit IRC
[17:36:21] <BahamutWC> overall though, the Angular team does a great job in maintaining the library
[17:36:24] *** Solid1_afk is now known as Solid1
[17:36:33] <wa5ted> Oka: thanks everything loading a okay
[17:36:43] <Oka> sweet
[17:37:41] <BahamutWC> one thing Angular has forced me to do is think harder about problems before rushing to patch code...but perhaps that same benefit is in any framework - I've only done professional dev with Angular
[17:38:19] *** vip_ has joined #angularjs
[17:38:48] <Aswebb__> Foxandxss: Well the problem is that if I do $http.post(someUrl + '/user' ) => 1) OPTIONS request send => it is going to fire /user 2) Then the actual POST request is sent => it is going to fire another time /user
[17:38:49] *** ctanga has joined #angularjs
[17:38:50] *** vip_ has joined #angularjs
[17:39:13] <Aswebb__> Foxandxss: So basically when I enabled CORS, all my POST requests are fired like two times => my database is screwed up after that
[17:39:18] <Foxandxss> to be honest, I don't do CORS, so I have no idea
[17:41:02] *** DLSteve has joined #angularjs
[17:41:11] *** gauravsaini03 has joined #angularjs
[17:41:38] *** IvailoStoianov has quit IRC
[17:43:19] *** chachan has quit IRC
[17:43:20] *** Trow2 has joined #angularjs
[17:43:42] *** IvailoStoianov has joined #angularjs
[17:43:49] *** ron1_ has joined #angularjs
[17:44:57] *** shpoont has quit IRC
[17:45:19] <BahamutWC> wa5ted: yep, that's an error
[17:45:33] <wa5ted> my app is working fine though
[17:45:37] *** jr3 has joined #angularjs
[17:45:51] <BahamutWC> on a side note, UI Router is much better than ngRoute
[17:45:52] *** chachan has joined #angularjs
[17:45:57] *** Trow1 has quit IRC
[17:46:04] <BahamutWC> although supposedly the new revamped ngRoute is coming out this week I heard?
[17:47:07] *** tristanp has joined #angularjs
[17:47:15] <BahamutWC> wa5ted: the error is because AboutCtrl does not exist
[17:47:24] <wa5ted> BahamutWC: what does that error in the prtn screen mean?
[17:47:31] <wa5ted> ahh thanks
[17:47:43] <BahamutWC> so I guess harmless for now
[17:47:46] *** soee_ has joined #angularjs
[17:48:01] *** bmac has quit IRC
[17:48:48] *** m0t0r has joined #angularjs
[17:49:15] *** e0ipso|away is now known as e0ipso
[17:49:55] *** danecando has joined #angularjs
[17:50:07] *** PeterMetz has joined #angularjs
[17:50:59] *** boxmein has joined #angularjs
[17:51:40] *** MuffinMan` has joined #angularjs
[17:51:43] *** soee has quit IRC
[17:53:04] *** wsmoak has quit IRC
[17:56:01] *** Linell has joined #angularjs
[17:56:50] *** bmac has joined #angularjs
[17:59:20] *** gnrlbzik has joined #angularjs
[18:00:29] *** PGTips has quit IRC
[18:01:01] *** wsmoak has joined #angularjs
[18:02:04] *** jstroem has quit IRC
[18:02:38] *** mary5030 has joined #angularjs
[18:02:38] *** kakashiAL has quit IRC
[18:02:45] *** jstroem has joined #angularjs
[18:03:49] *** balu_ has joined #angularjs
[18:04:13] *** drej has quit IRC
[18:04:18] *** ishan1604 has joined #angularjs
[18:04:39] *** balu_ has quit IRC
[18:05:05] *** pushpak has joined #angularjs
[18:05:05] *** tristanp has quit IRC
[18:05:06] *** yelvert has joined #angularjs
[18:05:51] *** jstroem_ has joined #angularjs
[18:05:51] *** jstroem has quit IRC
[18:06:18] *** mfunkie has joined #angularjs
[18:06:20] *** clamstar has joined #angularjs
[18:07:47] *** glassir_ has joined #angularjs
[18:07:48] *** iksik has quit IRC
[18:08:05] *** bmac has quit IRC
[18:08:38] *** Laserbeak has quit IRC
[18:09:51] *** nfroidure has joined #angularjs
[18:10:05] *** tristanp has joined #angularjs
[18:10:12] *** m0t0r has quit IRC
[18:10:22] *** adpirz has joined #angularjs
[18:10:42] *** yelvert has quit IRC
[18:10:49] *** clamstar has quit IRC
[18:11:08] *** Oxynum has quit IRC
[18:11:38] *** glassir has quit IRC
[18:12:06] *** iksik has joined #angularjs
[18:12:27] *** marcjs has quit IRC
[18:13:04] *** marcjs has joined #angularjs
[18:14:18] *** Laserbeak has joined #angularjs
[18:14:40] *** boxmein has quit IRC
[18:14:41] *** adpirz has quit IRC
[18:15:52] *** gnrlbzik has quit IRC
[18:16:22] *** exp10r3r1 has joined #angularjs
[18:16:24] *** yoshokatana has joined #angularjs
[18:16:42] *** amphetamines has quit IRC
[18:16:48] *** boskop has joined #angularjs
[18:17:17] *** clamstar has joined #angularjs
[18:17:54] *** boxmein_ has joined #angularjs
[18:18:22] *** fadart has joined #angularjs
[18:18:40] *** fatshark has joined #angularjs
[18:19:25] *** boxmein_ is now known as boxmein
[18:20:18] *** Linell has quit IRC
[18:20:25] *** Linell has joined #angularjs
[18:21:26] *** boskop has quit IRC
[18:22:04] *** chachan has quit IRC
[18:22:48] *** PeterMetz has quit IRC
[18:23:03] *** fadart has quit IRC
[18:23:17] *** KushS has quit IRC
[18:23:24] *** Oxynum has joined #angularjs
[18:24:34] *** adben has quit IRC
[18:24:46] *** soee_ has quit IRC
[18:24:55] *** soee_ has joined #angularjs
[18:24:59] *** jacuqesdancona_ has joined #angularjs
[18:25:30] *** saint-ron has quit IRC
[18:25:44] *** ccohn has joined #angularjs
[18:26:15] *** mityaz has quit IRC
[18:27:45] *** annlewis has joined #angularjs
[18:28:18] *** Linell has quit IRC
[18:29:30] *** jacuqesdancona_ has quit IRC
[18:30:00] *** metadan has joined #angularjs
[18:30:13] *** suA has joined #angularjs
[18:30:44] <metadan> Can i get the index of a list item from a angular.copy of it?
[18:30:48] *** pknordic has joined #angularjs
[18:31:45] *** ome has quit IRC
[18:32:02] *** annlewis has quit IRC
[18:34:05] *** platonic has joined #angularjs
[18:34:13] *** emanresu404 has joined #angularjs
[18:35:00] *** chrisbirk has joined #angularjs
[18:35:08] *** pknordic has quit IRC
[18:35:32] *** Linell has joined #angularjs
[18:37:29] *** bberry_ has joined #angularjs
[18:37:33] *** mven has joined #angularjs
[18:38:12] <wa5ted> can i attach a controller onto a particular div (particularly in my index file, as opposed to attaching one to the body tag)
[18:38:41] <emanresu404> Yes
[18:38:52] <themime> i never have seen it on a body tag
[18:39:08] <themime> the more complex your application gets the more controllers youll have, even on the same state/page
[18:40:25] *** iko1 has joined #angularjs
[18:40:39] <Linell> Any suggestions on a starter project generator
[18:40:41] <wa5ted> themime: if you look at the phonecat App anular tut file
[18:40:57] *** \du has joined #angularjs
[18:41:01] <wa5ted> at one point the controller is on the body
[18:41:01] <wa5ted> also another question
[18:41:02] <wa5ted> if i wanna do an ng-repeat
[18:41:20] <themime> wa5ted: my point was that its so common to have it other places that i hadnt even seen it, just reinforcing that you can have it on divs and such
[18:41:24] *** bberry has quit IRC
[18:41:36] <wa5ted> do i put the controller on the same div as the ng-repeat
[18:41:37] <wa5ted> or do i put the controller
[18:41:39] <wa5ted> on the div that is the parent of the ng-repeat
[18:41:47] *** Oddman has joined #angularjs
[18:42:09] <themime> that seems awkward
[18:42:16] <themime> cause it would try to repeat the controller
[18:42:20] <wa5ted> themime: yh i know
[18:42:25] <themime> which /could/ be what youd want in some cases
[18:42:25] <wa5ted> its not common
[18:42:27] <wa5ted> themime: what about my second question
[18:42:31] *** linojon has joined #angularjs
[18:42:38] *** jstroem_ has quit IRC
[18:42:49] <themime> like if you had a parent controller above it, i think youd need to stash the variable on that for the ng-repeat to pick it up
[18:43:10] <themime> i dunno youd have to try it. and i thought i answered your second question
[18:43:20] *** jstroem has joined #angularjs
[18:43:32] <themime> "that seems awkard" was in reply to having ng-repeat on a controller div
[18:43:34] <wa5ted> yh i think
[18:43:35] <wa5ted> thanks
[18:43:48] <themime> np
[18:44:05] *** BillCriswell has joined #angularjs
[18:44:29] *** yts has joined #angularjs
[18:46:16] *** wdgreg has joined #angularjs
[18:47:28] *** danecando has quit IRC
[18:47:44] *** jstroem has quit IRC
[18:47:54] *** bmac has joined #angularjs
[18:50:02] *** wdgreg has quit IRC
[18:50:16] *** Shrooms has joined #angularjs
[18:50:25] *** ali4ever4 has quit IRC
[18:52:14] *** e0ipso is now known as e0ipso|away
[18:52:25] *** dannyc_ has joined #angularjs
[18:52:38] *** merobertsjr has joined #angularjs
[18:53:01] *** IvailoStoianov_ has joined #angularjs
[18:53:16] *** Oddman has quit IRC
[18:53:21] *** mfunkie has quit IRC
[18:54:53] *** IvailoStoianov has quit IRC
[18:54:58] *** frecinos has quit IRC
[18:55:06] *** IvailoStoianov_ is now known as IvailoStoianov
[18:56:50] *** dannyc_ has quit IRC
[18:56:58] *** merobertsjr has quit IRC
[18:57:19] *** slashroot__ has joined #angularjs
[18:59:00] *** ccohn has quit IRC
[18:59:53] *** DLSteve has quit IRC
[19:00:03] *** platonic has quit IRC
[19:00:12] <Oka> \du: Capture the event and stop its propagation?
[19:00:42] *** wdgreg has joined #angularjs
[19:02:54] <\du> Oka: i am doing it, please check the video Description
[19:03:18] <\du> Oka: it worked to avoid the body scrolling but not to avoid the showing/hidding of the address bar on scrolling
[19:03:24] *** tkh44 has joined #angularjs
[19:04:46] *** jonr22 has quit IRC
[19:06:35] *** jtimon has joined #angularjs
[19:06:48] *** Beg has joined #angularjs
[19:07:00] *** suA has quit IRC
[19:07:21] <Beg> Hey, should I reuse controllers or should I have one controller for each partial?
[19:09:12] *** bayousoft has quit IRC
[19:09:53] *** Anton_ has quit IRC
[19:10:51] *** KushS has joined #angularjs
[19:12:46] *** Linell has quit IRC
[19:13:07] *** NormySan has joined #angularjs
[19:13:32] <themime> beg if you are able to reuse the controller there is no need to make a new one. but dont just add content to the same one to expand it, if its different functionality, make a different controller
[19:14:00] <themime> and if you are having issues splitting something up because they need to share data, use a factory
[19:14:40] <emanresu404> Would a factory be used if I wanted to create a plugin that produces a googlemap?
[19:14:41] *** aslate has joined #angularjs
[19:14:58] *** Wextux has joined #angularjs
[19:15:18] <emanresu404> Or would that be a directive? Or controller? I'm a bit confused as how to distribute this plugin
[19:15:31] *** PeterMetz has joined #angularjs
[19:15:39] *** elrabin has joined #angularjs
[19:17:57] *** Anton_ has joined #angularjs
[19:18:42] *** neilff has joined #angularjs
[19:18:59] *** aslate has quit IRC
[19:19:34] *** wowa has joined #angularjs
[19:19:40] *** bmac has quit IRC
[19:19:57] *** elrabin has quit IRC
[19:20:25] *** nemothekid has joined #angularjs
[19:20:36] *** tfennelly has joined #angularjs
[19:23:26] *** neilff has quit IRC
[19:23:52] <jcool> implementing auth with jwt in angular are there any good examples around? google didnt gave good results.
[19:25:31] *** Aswebb__ has quit IRC
[19:27:39] *** prbc has joined #angularjs
[19:28:42] *** annlewis has joined #angularjs
[19:28:52] *** tristanp has quit IRC
[19:29:20] <Foxandxss> backend is really simple, less than 50 lines of code
[19:30:55] *** Una has joined #angularjs
[19:30:58] <jcool> Foxandxss, I read the first part and it made me crystal clear about JWT. :) thanks for the second part.
[19:31:08] *** avens has joined #angularjs
[19:31:13] *** pushpak has quit IRC
[19:32:51] *** wsmoak has quit IRC
[19:32:58] *** Oddman has joined #angularjs
[19:33:11] *** devhoag has joined #angularjs
[19:33:26] *** wsmoak has joined #angularjs
[19:33:27] *** wsmoak has joined #angularjs
[19:33:33] *** annlewis has quit IRC
[19:35:29] *** prbc has quit IRC
[19:37:09] *** Anton_ has quit IRC
[19:39:15] *** BillCriswell has quit IRC
[19:41:24] *** avens has quit IRC
[19:41:31] *** KushS has quit IRC
[19:41:59] *** avens has joined #angularjs
[19:43:10] *** BillCriswell has joined #angularjs
[19:44:02] *** Aswebb_ has joined #angularjs
[19:44:18] *** ProLoser has joined #angularjs
[19:44:56] *** Anton_ has joined #angularjs
[19:44:56] *** moritzschaefer has joined #angularjs
[19:45:09] *** spacepluk has joined #angularjs
[19:46:05] *** Anton_ has quit IRC
[19:46:35] *** avens has quit IRC
[19:47:19] *** s00pcan has joined #angularjs
[19:47:33] *** saucey has joined #angularjs
[19:48:26] *** tschundeee has joined #angularjs
[19:48:32] *** caitp has quit IRC
[19:48:49] *** shpoont has joined #angularjs
[19:49:10] *** ProLoser has quit IRC
[19:49:27] *** bmac has joined #angularjs
[19:49:34] <saucey> hey how do u validated trying to validation with laravel, whats the best way to go about this?
[19:49:40] *** platonic has joined #angularjs
[19:50:29] *** tkh44 has quit IRC
[19:50:35] *** foofoobar has quit IRC
[19:51:21] *** caitp has joined #angularjs
[19:52:07] *** foofoobar has joined #angularjs
[19:52:45] *** freelyfred has joined #angularjs
[19:52:45] *** nemothekid has quit IRC
[19:52:59] *** nemothekid has joined #angularjs
[19:53:12] *** cannap has joined #angularjs
[19:53:47] *** foofoobar has quit IRC
[19:54:16] *** Anton_ has joined #angularjs
[19:55:42] *** ccohn has joined #angularjs
[19:55:51] *** emanresu404 has quit IRC
[19:56:04] *** cristatus has joined #angularjs
[19:56:25] *** Somatt_ has quit IRC
[19:57:10] *** PeterMetz has quit IRC
[19:57:19] <wa5ted> for <a> is it possble to have a var in the target attribute
[19:57:21] <wa5ted> eg. project.target
[19:57:36] *** PeterMetz has joined #angularjs
[19:57:38] <wa5ted> where project is an object in the projects json array
[19:57:45] <mst> <a ng-href="{{ project.target }}"> ?
[19:57:56] <BahamutWC> wa5ted: <a target="{{project.target}}">
[19:58:28] <wa5ted> BahamutWC: i tried that and i seem to get an errir
[19:58:30] <wa5ted> error
[19:58:42] <BahamutWC> ng-attr-target perhaps?
[19:59:05] <mst> oh, sorry, not used to using target like that
[19:59:08] <wa5ted> ng-attr-target="{{project.target}}"
[19:59:17] *** DineshS has joined #angularjs
[19:59:18] <wa5ted> that didnt work
[19:59:21] <BahamutWC> but what are you trying to do exactly that you are interpolating target?
[19:59:39] <wa5ted> wait
[19:59:39] <BahamutWC> I would rather not use a repeater for links where I want to distinguish target="_blank"
[19:59:44] <wa5ted> nvm
[19:59:46] <wa5ted> missed a comma -_-
[19:59:48] <BahamutWC> ah
[19:59:54] <wa5ted> BahamutWC: i want certain links to open in a new tab
[19:59:59] <wa5ted> and others to open locally
[20:00:21] <wa5ted> well links that i want to open locally will take up a vew
[20:00:21] <wa5ted> a view
[20:00:32] <wa5ted> which angular js will load
[20:00:55] *** PeterMet_ has joined #angularjs
[20:02:19] *** Shai-Tan has quit IRC
[20:03:19] *** avens has joined #angularjs
[20:03:42] *** PeterMetz has quit IRC
[20:06:59] *** avens has quit IRC
[20:07:01] *** nemothekid has quit IRC
[20:09:03] *** emanresu404 has joined #angularjs
[20:09:30] *** yelvert has joined #angularjs
[20:10:15] *** emanresu404 has quit IRC
[20:14:09] *** yelvert has quit IRC
[20:14:47] *** Wextux has quit IRC
[20:15:16] *** opiates has joined #angularjs
[20:16:18] *** araujo has quit IRC
[20:17:23] *** DineshS has quit IRC
[20:18:24] *** Shrooms has quit IRC
[20:18:52] *** davi has quit IRC
[20:19:00] *** adpirz has joined #angularjs
[20:19:50] *** pknordic has joined #angularjs
[20:20:53] *** amphetamines has joined #angularjs
[20:20:58] *** emanresu404 has joined #angularjs
[20:22:44] *** edrocks has joined #angularjs
[20:23:59] *** pknordic has quit IRC
[20:24:16] *** renlo has joined #angularjs
[20:24:29] *** jtimon has quit IRC
[20:24:52] *** opiates has quit IRC
[20:25:03] *** mtsr has joined #angularjs
[20:25:11] *** edrocks has quit IRC
[20:26:16] *** Sijdesign has joined #angularjs
[20:26:34] *** dejanr has joined #angularjs
[20:26:42] *** rahil has joined #angularjs
[20:28:00] *** ron1_ has quit IRC
[20:28:00] *** tristanp has joined #angularjs
[20:28:15] *** Anton_ has quit IRC
[20:28:40] *** Oxynum has quit IRC
[20:28:55] <Aswebb_> Foxandxss: on your angular tips blog, for the JWT Rails implementation, you should write about how to set the "policy" to check the user issue token (server side)
[20:29:08] *** ccohn has quit IRC
[20:29:13] *** annlewis has joined #angularjs
[20:29:21] <Aswebb_> Foxandxss: You explained the policy itself but not how you apply it on some controllers
[20:29:25] *** JRB has joined #angularjs
[20:29:32] <Foxandxss> Let me check
[20:30:01] <Foxandxss> Aswebb_: is there
[20:30:25] *** gladely has joined #angularjs
[20:30:40] *** ron1 has joined #angularjs
[20:30:50] <Foxandxss> on the base controller one
[20:31:13] <Aswebb_> Foxandxss: For example on the Sails implementation, there should be a screen with the config/policies.js file with ['isAuthenticated'] => this is how we apply the policy we've created
[20:31:22] <Aswebb_> Foxandxss: But I dont know how to do that on Rails yet mhh
[20:31:33] <Foxandxss> the base controller on rails
[20:31:35] <Foxandxss> sets a before filter
[20:31:39] <Foxandxss> that is the policy on rails
[20:31:40] <Foxandxss> filters
[20:31:57] <Foxandxss> and the examples are not intended to be step by step tho
[20:32:02] <Aswebb_> Foxandxss: Yes But If I have a UserController , I just extends ( < BaseController) ?
[20:32:05] <Foxandxss> just the needed bits
[20:32:13] <Foxandxss> it does that by default
[20:32:24] <Aswebb_> Foxandxss: ahhh ok
[20:32:27] *** merobertsjr has joined #angularjs
[20:33:37] *** annlewis has quit IRC
[20:34:01] *** franchini has quit IRC
[20:34:13] *** metadan has quit IRC
[20:34:48] *** nemothekid has joined #angularjs
[20:35:14] *** ron1 has quit IRC
[20:35:21] *** rud has quit IRC
[20:35:28] <Aswebb_> Foxandxss: Mhh I dont get how you set the BaseController to a specific action like: .get /user/1
[20:35:55] <Foxandxss> Not to be mean, but that means that you need to learn Rails first
[20:36:02] <Aswebb_> If I have like a get action in the UserController fetching all my users object, how can I tell => set the baseController policy only on this action
[20:36:07] *** Anton_ has joined #angularjs
[20:36:19] <Aswebb_> Foxandxss: Yeah gonna take a look at this, thanks for your help fox ! :)
[20:36:42] <Foxandxss> that is plain rails, filters, before / after, routes, that is just rails
[20:36:50] *** treasure has joined #angularjs
[20:37:31] *** Adran has joined #angularjs
[20:37:32] *** JRB has quit IRC
[20:37:40] <Adran> woop woop
[20:38:37] *** bradmaxs has joined #angularjs
[20:39:23] *** BillCriswell has quit IRC
[20:39:30] *** Oxynum has joined #angularjs
[20:40:34] *** TuRnaD0 has joined #angularjs
[20:40:55] *** ctanga has quit IRC
[20:41:07] *** dannyc_ has joined #angularjs
[20:43:19] *** bkuberek has joined #angularjs
[20:45:36] *** dannyc_ has quit IRC
[20:46:50] *** Una has quit IRC
[20:47:34] *** avree has quit IRC
[20:47:54] *** avree has joined #angularjs
[20:49:35] *** maikowblue has joined #angularjs
[20:50:35] <saucey> hey i need some advice on the scope
[20:51:02] *** grogs has joined #angularjs
[20:51:03] <saucey> <div ng-repeat="ln in errors.last_name"> {{ln}} </div> ...
[20:51:09] *** reynierpm has joined #angularjs
[20:51:18] *** Davlefou has joined #angularjs
[20:51:20] <saucey> how do i check is thats set>
[20:51:26] <saucey> ?
[20:51:32] *** reynierpm has left #angularjs
[20:51:53] <saucey> if error last name is set i want to hightlight the inputs for that in red?
[20:53:18] *** avree has quit IRC
[20:53:19] *** dman777_alter has joined #angularjs
[20:53:41] *** ron1 has joined #angularjs
[20:54:26] <Davlefou> hi, can you advice me good tutorial?
[20:54:30] *** nfroidure has quit IRC
[20:54:41] *** __emps has joined #angularjs
[20:56:56] *** _emps has quit IRC
[20:57:00] *** Anton_ has quit IRC
[20:58:40] *** dman777_alter has quit IRC
[20:58:55] *** avens has joined #angularjs
[20:59:03] *** dsdeiz has quit IRC
[21:00:51] *** tschundeee has quit IRC
[21:00:51] *** dman777_alter has joined #angularjs
[21:02:18] *** mtsr has quit IRC
[21:03:39] *** aslate has joined #angularjs
[21:04:18] *** avens has quit IRC
[21:04:41] *** tristanp has quit IRC
[21:04:57] *** Anton_ has joined #angularjs
[21:05:00] *** IvailoStoianov has quit IRC
[21:05:11] *** tristanp has joined #angularjs
[21:06:14] *** danecando has joined #angularjs
[21:06:41] *** h0ru5 has joined #angularjs
[21:07:34] *** Anton_ has quit IRC
[21:07:57] *** aslate has quit IRC
[21:09:44] *** tristanp has quit IRC
[21:10:37] *** mrru has joined #angularjs
[21:10:59] *** emanresu404 has quit IRC
[21:12:12] *** emanresu404 has joined #angularjs
[21:12:46] *** yelvert has joined #angularjs
[21:13:24] *** Aswebb_ has quit IRC
[21:14:22] *** WhatsInTheBoks has joined #angularjs
[21:14:41] *** Xaleph has joined #angularjs
[21:14:48] *** jacuqesdancona_ has joined #angularjs
[21:15:34] *** Anton_ has joined #angularjs
[21:16:08] *** Aswebb_ has joined #angularjs
[21:16:28] *** caitp has quit IRC
[21:16:51] *** yelvert has quit IRC
[21:17:42] *** zanea|away is now known as zanea
[21:18:59] *** jacuqesdancona_ has quit IRC
[21:19:59] *** kkthxbye has quit IRC
[21:20:13] *** Rebirth has joined #angularjs
[21:20:43] *** Sontakey has joined #angularjs
[21:22:14] *** Wextux has joined #angularjs
[21:23:00] *** chachan has joined #angularjs
[21:24:28] *** adben has joined #angularjs
[21:24:43] *** sacho_ has quit IRC
[21:25:01] <bradmaxs> I have a filter in ng-repeat and I want to send multiple values to it. ng-repeat="order in orders | orderStatus: 'printing'". I would like to filter both 'printing' and 'paid'. Any ideas? Thanks.
[21:25:28] *** ccohn has joined #angularjs
[21:26:06] *** metasansana has joined #angularjs
[21:26:06] *** metasansana has joined #angularjs
[21:26:43] *** Fishy has joined #angularjs
[21:27:01] *** Fishy__ has quit IRC
[21:27:16] *** chachan has quit IRC
[21:28:40] *** Wextux has quit IRC
[21:29:08] *** mvk has joined #angularjs
[21:29:36] *** Zentdayn has joined #angularjs
[21:30:17] *** annlewis has joined #angularjs
[21:30:35] *** Aswebb_ has quit IRC
[21:30:57] *** raytiley_ is now known as raytiley
[21:31:12] <mvk> i have a ng-repeater, which im trying to use on the result of a $http.get
[21:31:26] *** annlewis has quit IRC
[21:31:53] *** annlewis has joined #angularjs
[21:32:10] <mvk> it works well, until use a sortable/sorting function on the scope.items
[21:32:20] <jr3> my ng-disabled for some reason is ignore the model when it's false
[21:32:22] <mvk> when i use this as the input for the repeater: $scope.items = JSON.parse('{"persons":[{"name":"judy"},{"name":"mike"}]}');
[21:32:25] <jr3> weird
[21:32:33] *** lexek_ has joined #angularjs
[21:32:40] <mvk> this works well; also with using a sorting function on it
[21:32:49] *** tfennelly has quit IRC
[21:33:03] *** Zentdayn has quit IRC
[21:33:14] *** ProLoser has joined #angularjs
[21:33:18] *** mary5030 has quit IRC
[21:33:24] <mvk> but when i use the $http.get data, and then use the Rubaxa sortable
[21:33:32] *** gunn has joined #angularjs
[21:33:40] <mvk> the scope.items is cleared
[21:33:51] *** mary5030 has joined #angularjs
[21:34:04] *** zz_night-owl is now known as night-owl
[21:34:09] <mvk> what is different between using, $scope.items = JSON.parse('{"persons":[{"name":"judy"},{"name":"mike"}]}');, and using http.get result ?
[21:34:46] *** rud has joined #angularjs
[21:35:21] <jr3> mvk: are you sure the response from get is that object?
[21:35:32] <mvk> yes i am
[21:36:32] <jr3> probably something to do with promises
[21:36:38] <mvk> while this is not the case when i use this directly: $scope.items = JSON.parse('{"persons":[{"name":"judy"},{"name":"mike"}]}');
[21:36:45] *** annlewis has quit IRC
[21:36:49] <mvk> jr3: i was afraid so..
[21:37:18] <mvk> jr3, but i dont understand why it works at first, and then breaks :S
[21:37:22] *** Shai-Tan has joined #angularjs
[21:37:44] *** ProLoser has quit IRC
[21:37:52] *** joshontheweb has joined #angularjs
[21:38:29] *** mary5030 has quit IRC
[21:38:52] <jr3> are you trying to sort before the get returns? I don't really know, may help to paste code
[21:40:05] *** mary5030 has joined #angularjs
[21:40:16] <mvk> jr3: no the sorting is done by user input, and changes the array (order) in $scope.items
[21:40:33] <mvk> after that, the repeater shows empty
[21:40:44] *** boxmein is now known as [boxmein]
[21:41:05] *** mary5030 has quit IRC
[21:41:15] *** bradmaxs has quit IRC
[21:41:37] *** mary5030 has joined #angularjs
[21:42:00] *** araujo has joined #angularjs
[21:42:01] *** araujo has joined #angularjs
[21:42:06] *** warpx has joined #angularjs
[21:42:09] *** tfennelly has joined #angularjs
[21:42:18] <BahamutWC> mvk: it sounds like the reference is getting destroyed somewhere
[21:42:30] *** livingstn has joined #angularjs
[21:42:30] <BahamutWC> reference to your items array that is
[21:43:08] <mvk> BahamutWC: exactly, in chrome, the scope.items is cleared as well
[21:43:18] *** gunn has quit IRC
[21:43:27] <mvk> looking at the angular extension info..
[21:43:34] <mvk> what could that be?
[21:44:22] *** mollitz has joined #angularjs
[21:44:41] <BahamutWC> no clue, I'm too tired to delve in depth atm :(
[21:44:52] <davek> So does anyone at all do third-party sign on in their angular app?
[21:45:08] <themime> i just got here, im willing to try to help mvk, do you have a plunker?
[21:45:33] <themime> and a quick summary of your issue
[21:45:50] <saucey> hey guys
[21:45:50] *** AndroUser2 has joined #angularjs
[21:45:59] *** moritzschaefer has quit IRC
[21:46:00] <themime> davek: no but im about to roll my own, if you find something though let me know
[21:46:09] *** mary5030 has quit IRC
[21:46:10] *** Anonymous has quit IRC
[21:46:22] <saucey> how do u check is a value is set i a scope im trying to do validation.. if has error then add class and if doesnt have error remove class
[21:46:30] <saucey> whats the angularjs way of doing this
[21:46:57] <wowa> ng-class
[21:47:20] *** AndroUser2 has quit IRC
[21:47:28] <davek> themime, already very engaged in it.
[21:47:48] <mvk> themime: i'm filling $scope.items with a json array; when i do this by hand in code ( $scope.items = JSON.parse('{"persons":[{"name":"judy"},{"name":"mike"}]}'); ) , and then use Rubaxa Sortable on it, to allow people to change order of a list in the browser/uit, it works fine
[21:47:51] <themime> davek: found a good angular-login thing?
[21:48:03] <BahamutWC> we use oauth through third party partners with our app, but we actually leave the app in order to direct the user to those oauth pages
[21:48:27] *** Trow2 has quit IRC
[21:48:37] <mvk> themime: when i bind $scope.items to the outcome of $http.get result, and change the order or the list in my browser <ul>.. it breaks, and the repeater is empty (list is gone)
[21:48:59] <BahamutWC> any error in the console mvk?
[21:49:10] *** bmac has quit IRC
[21:49:24] <themime> mvk: if you make a plunker of it ill take a look, hard to say otherwise without seeing it
[21:49:48] *** soee_ has quit IRC
[21:49:53] *** lemur has joined #angularjs
[21:50:03] <BahamutWC> yeah a reproduction would help immensely
[21:50:19] <themime> ^
[21:50:36] <themime> when i see long explanations i think, "hm theres probably no plunker :( "
[21:50:50] *** Trow has joined #angularjs
[21:50:51] <themime> unless its directly before or after
[21:51:12] *** jeffisabelle has joined #angularjs
[21:53:21] *** Evanion has left #angularjs
[21:54:26] <saucey> wowa ive tried ng class
[21:55:03] <BahamutWC> ng-class is the right way
[21:55:19] *** agentDio has joined #angularjs
[21:55:25] <BahamutWC> ng-class="{error: myFormName.$error}"
[21:55:32] <BahamutWC> assuming you're using the form directive
[21:55:52] *** soee has joined #angularjs
[21:56:05] <wowa> if your input is inside form, then use the form special fields
[21:56:21] <saucey> sorry ?
[21:56:28] <saucey> form special field?
[21:56:33] <BahamutWC> no need to use jQuery there
[21:56:37]
<sabrehagen> hi guys, i have this mongoose query to find a document based on two fields, only one of which has to be found, hence an or: http://i.imgur.com/ioNRsX2.png. if i delete the _id check, the username is matched. if i include the _id check, the username is never matched, but the _id is always matched regardless of whether username is included or not. i can't work out why this would be. can anybody help?
[21:57:06] *** ProLoser has joined #angularjs
[21:57:10] <saucey> it works but when i re submit the page only one error stays hightlighted the others dissapear
[21:57:19] <BahamutWC> you can use <input ng-model="foo" required ng-pattern="/myregex/">
[21:58:06] <BahamutWC> then do ng-class="{error: myForm.myInput.$error}"
[21:58:07] <saucey> im using laravel to validate my form
[21:58:15] <BahamutWC> oh yuck...
[21:58:20] *** lemur has quit IRC
[21:58:27] <saucey> so im returning the errors?
[21:58:29] *** htmelvis has joined #angularjs
[21:58:36] <BahamutWC> you should be separating the frontend from the backend
[21:58:48] *** ccohn has quit IRC
[21:58:54] *** foofoobar has joined #angularjs
[21:58:55] *** lemur has joined #angularjs
[21:59:01] <BahamutWC> essentially serving the frontend from a public folder (i.e. via cdn)
[21:59:05] <saucey> whats wrong with sending the errors back to angular to handel?
[21:59:19] <Beg> I would like to make a CRUD for a model on my page, I would like each to be a partial, so /update/1 /create /view/1
[21:59:23] <BahamutWC> ah so you're getting it back from an ajax request submission
[21:59:30] <BahamutWC> ok I was confused there
[21:59:32] <saucey> ye
[21:59:47] <Beg> But I don't know how to arrange the controller/s to feel "good practice"
[22:00:10] <saucey> ive git it display the message its just adding the class to the input and then removing
[22:00:20] <saucey> got*
[22:00:35] <Beg> Should I have a controller for each partial? How do I handle data fetching?
[22:01:35] <BahamutWC> saucey: do you have an ng-repeat in between or something that creates new $scope?
[22:01:39] <BahamutWC> that could cause your problem
[22:01:43] *** tschundeee has joined #angularjs
[22:01:49] *** bmac has joined #angularjs
[22:02:28] <saucey> thats the view
[22:02:35] <BahamutWC> it would be better to do something like $scope.error = {}; and do $scope.error.box1, $scope.error.box2, $scope.error.box3
[22:03:08] *** tristanp has joined #angularjs
[22:03:12] <saucey> could you write me a lil snip?
[22:03:26] <BahamutWC> saucey: need more html than that - what is the html for your partial?
[22:03:28] <themime> Beg: and while everyone's needs will differ, i found it to be a good foundation to expand upon
[22:03:30] *** NevilleS has joined #angularjs
[22:03:31] *** mary5030 has joined #angularjs
[22:03:47] <saucey> of thats just were the form opens
[22:04:00] <BahamutWC> jr3: that works for me
[22:04:09] *** cristatus has quit IRC
[22:04:09] <themime> jr3: ...why is your content outside of your body
[22:04:10] *** PeterMet_ has quit IRC
[22:04:24] *** avree has joined #angularjs
[22:04:25] <themime> BahamutWC: jr3 when i go back to yes it doesn't reactive
[22:04:39] <jr3> yea ^ that's what I mean
[22:04:49] <Beg> themime: Alright
[22:04:51] *** avree has quit IRC
[22:05:18] <jr3> BahamutWC: once disabled, cannot go back to enabled for me
[22:05:24] *** ciwolsey has quit IRC
[22:05:30] *** bmac has quit IRC
[22:05:40] *** amphetamines has quit IRC
[22:05:40] *** josh-k has joined #angularjs
[22:05:58] <themime> er i guess it should reactive when you go to yes? and ive not used ng-disabled, at a glance it looks okay, ill poke around a bit more.
[22:06:00] *** bmac has joined #angularjs
[22:06:31] <BahamutWC> hm
[22:06:38] <ProLoser> BahamutWC: hallo
[22:06:41] <jr3> yes should disabled it, which it does, but if you select no again doesnt remove the disabled attr
[22:06:42] <ProLoser> quick question for the pros
[22:06:43] <BahamutWC> hey ProLoser
[22:06:58] <ProLoser> do you guys do .then(fn(res){ return res.data }) everywhere?
[22:07:06] <ProLoser> or was that refactored in 1.3?
[22:07:14] <BahamutWC> I do the former
[22:07:21] <ProLoser> in all your resolves too?
[22:07:26] <BahamutWC> sometimes I create a stupid helper function to do it
[22:07:31] <ProLoser> wow
[22:07:35] <ProLoser> that's kinda... stupid
[22:07:38] <BahamutWC> it's annoying
[22:07:40] <ProLoser> yes
[22:07:47] <ProLoser> why not make a responsetransformer?
[22:07:59] *** borgdrone7_ has joined #angularjs
[22:08:00] *** tristanp has quit IRC
[22:08:02] <BahamutWC> legacy code built off of that stupid response object :(
[22:08:05] *** neilff has joined #angularjs
[22:08:07] *** Linell has joined #angularjs
[22:08:17] <saucey> BahamutWC: could you explain more on the scope
[22:08:23] *** lolo has joined #angularjs
[22:08:28] <BahamutWC> also on occasion, it turns out the status code is important
[22:08:29] *** laurensclaessen has joined #angularjs
[22:08:40] <ProLoser> can you resolve with more than 1 param?
[22:08:43] *** pknordic has joined #angularjs
[22:08:58] *** jr3 has left #angularjs
[22:09:03] <BahamutWC> not that I know of, which is why $http has the .success and .error
[22:09:10] *** MIR100 has quit IRC
[22:09:17] <themime> damn jr3 left i just figured out his issue
[22:09:27] <NevilleS> such is life
[22:09:45] *** Xaleph has quit IRC
[22:09:47] <BahamutWC> $http decorates the $q promise with those custom functions which are basically wrappers around .then(success, error) that transforms the resolved response into those parameters
[22:09:55] <themime> for the record ng-disabled needs either an empty string or /any/ value, "false" counts as data and thus "disable = true"
[22:09:56] *** cannap has quit IRC
[22:10:23] <BahamutWC> one solution might be to decorate the $http service using $provide.decorator
[22:11:49] *** danecando has quit IRC
[22:12:03] *** renlo has quit IRC
[22:12:25] *** Linell has quit IRC
[22:12:35] *** neilff has quit IRC
[22:12:43] *** lolo has quit IRC
[22:12:56] *** PeterMetz has joined #angularjs
[22:13:03] *** livingstn has quit IRC
[22:13:10] *** pknordic has quit IRC
[22:13:20] *** livingstn has joined #angularjs
[22:13:25] *** livingstn has quit IRC
[22:14:04] *** livingstn has joined #angularjs
[22:14:04] <ProLoser> BahamutWC: i wouldn't care so much if the fucking resolves used success
[22:14:09] *** livingstn has quit IRC
[22:14:33] *** livingstn has joined #angularjs
[22:15:15] *** livingstn has joined #angularjs
[22:15:58] *** livingstn has joined #angularjs
[22:16:00] *** D-Boy has quit IRC
[22:16:03] *** livingstn has quit IRC
[22:16:41] *** livingstn has joined #angularjs
[22:17:13] *** marcjs has quit IRC
[22:17:23] *** livingstn has joined #angularjs
[22:17:29] *** Xaleph has joined #angularjs
[22:17:31] *** marcjs has joined #angularjs
[22:17:35] *** tbo_ has joined #angularjs
[22:17:49] <BahamutWC> it mildly bothers me too - I had a PR a little while back that added another method to $q promises that lets you do something like promise.get('data') which is in Q and is equivalent to promise.then(function (res) { return res.data; });, but basically was not something that they really wanted to add
[22:18:05] *** livingstn has joined #angularjs
[22:18:26] <BahamutWC> my PR was also incomplete too since it did require some refactoring since if it is to be considered, it would need to match how Q does it
[22:18:41] *** t1mmen has joined #angularjs
[22:18:48] *** livingstn has joined #angularjs
[22:18:57] <davek> Sorta breaks the notion of promises as asynchronous function chains. They're not meant to have knowledge of internal data.
[22:19:29] *** teddyp1cker has quit IRC
[22:19:32] *** livingstn has joined #angularjs
[22:19:38] *** livingstn has quit IRC
[22:20:04] *** teddyp1cker has joined #angularjs
[22:20:11] *** livingstn has joined #angularjs
[22:20:53] *** livingstn has joined #angularjs
[22:21:06] *** teddyp1cker has quit IRC
[22:21:12] *** gunn has joined #angularjs
[22:21:29] *** teddyp1cker has joined #angularjs
[22:21:36] *** livingstn has joined #angularjs
[22:21:39] *** livingstn has quit IRC
[22:22:13] *** livingstn has joined #angularjs
[22:22:31] *** caitp has joined #angularjs
[22:22:54] *** livingstn has joined #angularjs
[22:23:10] *** gunn has quit IRC
[22:23:19] *** NevilleS has quit IRC
[22:23:29] *** [boxmein] is now known as boxmein
[22:23:31] *** livingstn has joined #angularjs
[22:24:24] *** livingstn has joined #angularjs
[22:24:53] *** renlo has joined #angularjs
[22:25:09] *** livingstn has joined #angularjs
[22:25:23] *** one0one has joined #angularjs
[22:25:24] *** mmealling has joined #angularjs
[22:26:00] *** livingstn has joined #angularjs
[22:26:22] *** _mtr has joined #angularjs
[22:26:37] *** caitp has quit IRC
[22:26:43] *** livingstn has joined #angularjs
[22:26:57] *** ishan1604 has quit IRC
[22:27:03] *** TripTastic has quit IRC
[22:27:18] *** bmac has quit IRC
[22:27:25] *** livingstn has joined #angularjs
[22:28:08] *** livingstn has joined #angularjs
[22:28:13] *** livingstn has quit IRC
[22:28:25] *** bmac has joined #angularjs
[22:28:51] *** livingstn has joined #angularjs
[22:29:30] *** livingstn has joined #angularjs
[22:29:37] *** caitp has joined #angularjs
[22:29:59] *** dannyc has joined #angularjs
[22:30:02] <davek> So is angular incapable of intercepting GET requests originated from anchor links?
[22:30:12] *** livingstn has joined #angularjs
[22:30:14] <ProLoser> BahamutWC: is there seriously no more elegant way to tackle this? i feel like it would have been raised as an issue by now
[22:30:15] *** livingstn has quit IRC
[22:30:18] <davek> I have an HTTP interceptor set up to deal with my JWT setup, and it works great except for simplee GET requests via anchor.
[22:30:20] <ProLoser> like why isn't the router using success()
[22:30:38] <davek> ProLoser, .success() is considered an anti-pattern in promises.
[22:30:45] <ProLoser> makes sense
[22:30:51] <ProLoser> i don't really like/use success
[22:30:59] *** moritzschaefer has joined #angularjs
[22:31:02] <ProLoser> why are you expecting interceptors on anchors?
[22:31:02] *** livingstn has joined #angularjs
[22:31:16] <ProLoser> vanilla anchors are left untouched
[22:31:19] <davek> Not really expecting, it makes sense, just burdened.
[22:31:26] <ProLoser> doesn't make sense to me
[22:31:38] <ProLoser> vanilla anchors are left untouched
[22:31:40] *** gurke_ has quit IRC
[22:31:51] <ProLoser> i believe the routers just watch the url for changes
[22:31:54] *** livingstn has joined #angularjs
[22:32:06] <ProLoser> how the change was triggered is more incidental
[22:32:09] *** teddyp1cker has quit IRC
[22:32:18] <ProLoser> if you want an 'interceptor' write a directive instead of using href
[22:32:20] *** threesixes has quit IRC
[22:32:21] *** TheAceOfHearts has joined #angularjs
[22:32:27] *** mollitz has quit IRC
[22:32:29] *** caitp has quit IRC
[22:32:40] *** annlewis has joined #angularjs
[22:32:45] *** teddyp1cker has joined #angularjs
[22:32:49] *** livingstn has joined #angularjs
[22:32:58] *** NevilleS has joined #angularjs
[22:33:03] *** TuRnaD0 has quit IRC
[22:33:03] *** caitp has joined #angularjs
[22:33:06] *** nopolabs has quit IRC
[22:33:09] *** B1x1t0 has joined #angularjs
[22:33:40] *** livingstn has joined #angularjs
[22:34:19] *** _mtr has quit IRC
[22:34:24] *** dannyc has quit IRC
[22:34:28] *** livingstn has joined #angularjs
[22:34:28] *** bmac has quit IRC
[22:34:28] *** wowa has quit IRC
[22:34:32] *** livingstn has quit IRC
[22:35:11] *** livingstn has joined #angularjs
[22:35:25] *** ron1 has quit IRC
[22:35:57] *** livingstn has joined #angularjs
[22:36:25] *** NevilleS has quit IRC
[22:36:30] *** DarrenCraig has joined #angularjs
[22:36:51] *** livingstn has joined #angularjs
[22:37:14] *** teddyp1cker has quit IRC
[22:37:25] *** annlewis has quit IRC
[22:37:31] *** grogs has quit IRC
[22:37:41] *** livingstn has joined #angularjs
[22:38:23] *** livingstn has joined #angularjs
[22:38:32] *** grogs has joined #angularjs
[22:38:58] *** mvk has quit IRC
[22:39:05] *** livingstn has joined #angularjs
[22:39:45] *** gauravsaini03 has quit IRC
[22:40:00] *** livingstn has joined #angularjs
[22:40:04] *** lexek_ has quit IRC
[22:40:04] *** livingstn has quit IRC
[22:40:45] *** mtsr has joined #angularjs
[22:41:01] *** livingstn has joined #angularjs
[22:41:32] *** NevilleS has joined #angularjs
[22:41:33] *** adamsilver has joined #angularjs
[22:42:01] *** livingstn has joined #angularjs
[22:42:08] <adamsilver> how can i inject a constant inside another constant?
[22:42:23] <NevilleS> we must go deeper
[22:42:45] *** livingstn has joined #angularjs
[22:42:47] <NevilleS> um i think you just define it as a service instead or something
[22:42:48] *** livingstn has quit IRC
[22:42:57] *** Christer has joined #angularjs
[22:43:08] <NevilleS> since constant is shortform for service anyways
[22:43:10] <adamsilver> .constant('myfirstconstant', function (my second) { is not working
[22:43:23] *** zeroquake has joined #angularjs
[22:43:31] *** livingstn has joined #angularjs
[22:43:39] *** danecando has joined #angularjs
[22:44:19] *** livingstn has joined #angularjs
[22:44:33] *** moritzschaefer has quit IRC
[22:44:52] *** stormbytes has joined #angularjs
[22:44:52] <stormbytes> afternoon folks :)
[22:45:00] *** livingstn has joined #angularjs
[22:45:04] *** livingstn has quit IRC
[22:45:11] <NevilleS> afternoon
[22:45:20] *** dcherman has joined #angularjs
[22:45:51] *** livingstn has joined #angularjs
[22:45:57] *** dcherman2 has quit IRC
[22:46:12] *** qdk has quit IRC
[22:46:13] *** D-Boy has joined #angularjs
[22:46:26] *** Adran has left #angularjs
[22:46:45] *** doug64k has quit IRC
[22:46:46] *** livingstn has joined #angularjs
[22:46:57] *** codeman has joined #angularjs
[22:47:36] *** livingstn has joined #angularjs
[22:47:53] *** qdk has joined #angularjs
[22:48:24] *** glassir_ has quit IRC
[22:48:33] *** livingstn has joined #angularjs
[22:48:47] *** livingstn has quit IRC
[22:49:08] *** gabriel__ has joined #angularjs
[22:49:37] *** livingstn has joined #angularjs
[22:49:49] *** Stichoza has joined #angularjs
[22:49:50] *** Xaleph has quit IRC
[22:50:22] *** livingstn has joined #angularjs
[22:50:56] *** Trow has quit IRC
[22:51:23] *** livingstn has joined #angularjs
[22:51:28] *** evilaliv3 has joined #angularjs
[22:51:29] *** livingstn has quit IRC
[22:51:33] *** glassir has joined #angularjs
[22:52:08] *** sahbeewah has joined #angularjs
[22:52:15] *** codeman has quit IRC
[22:52:24] *** gabriel__ has quit IRC
[22:52:30] *** livingstn has joined #angularjs
[22:52:37] *** aslate has joined #angularjs
[22:53:19] *** _mtr has joined #angularjs
[22:53:30] *** livingstn has joined #angularjs
[22:54:06] *** Sky[x] has joined #angularjs
[22:54:30] *** livingstn has joined #angularjs
[22:55:16] <jaawerth> stormbytes: because you need to return new MsgFactory($log)
[22:55:28] *** ccohn has joined #angularjs
[22:55:30] *** livingstn has joined #angularjs
[22:55:34] *** Stichoza has quit IRC
[22:55:35] *** livingstn has quit IRC
[22:55:39] <stormbytes> huh
[22:55:52] <stormbytes> ugh
[22:56:01] *** shpoont has quit IRC
[22:56:01] <stormbytes> 1 sec
[22:56:02] *** Stichoza has joined #angularjs
[22:56:08] <jaawerth> or rather angular.module('app').factory(function($log) { return new MsgFactory($log) });
[22:56:31] *** livingstn has joined #angularjs
[22:56:37] *** plato1 has joined #angularjs
[22:56:43] <jaawerth> OR you can change function MsgFactory to function Msg and write another MsgFactory function that does the above
[22:56:56] <NevilleS> or
[22:57:05] *** aslate has quit IRC
[22:57:11] *** plato has quit IRC
[22:57:23] *** livingstn has joined #angularjs
[22:57:25] <NevilleS> angular.module('app').service
[22:57:29] *** livingstn has quit IRC
[22:57:35] <NevilleS> which calls new on it
[22:57:38] *** TommyO has quit IRC
[22:57:45] <jaawerth> well, except then you'd need to not use prototype for the init function
[22:58:04] *** night-owl is now known as zz_night-owl
[22:58:05] <jaawerth> but if you aren't planning on using it to instantiate more than one object, you don't really need the prototype anyway
[22:58:16] <NevilleS> ah true
[22:58:16] *** zz_night-owl is now known as night-owl
[22:58:33] <stormbytes> i need to be able to create multiple msg objects
[22:58:34] *** bmac has joined #angularjs
[22:58:37] *** danecando has quit IRC
[22:58:39] <stormbytes> this is so confusing
[22:59:02] <jaawerth> so you WOULD return the constructor the way you were in the first place
[22:59:08] <stormbytes> the only reason i'm using (and returning) that constructor is because i need to pass variables (args) to the object factory
[22:59:13] <jaawerth> you just need to use "new" on it when you want to instantiate the objects
[23:00:27] *** doug64k has joined #angularjs
[23:00:41] *** slopjong has quit IRC
[23:00:50] *** joshontheweb has quit IRC
[23:01:01] <stormbytes> which is what i'm doing
[23:01:10] <jaawerth> angular.module('app').factory(function($log) { return MsgFactory; });
[23:01:17] *** mrru has quit IRC
[23:01:19] *** dman777_alter has quit IRC
[23:01:48] *** rud has quit IRC
[23:02:31] <stormbytes> ah
[23:03:08] <stormbytes> so the function that is declared on the module is what needs to be new'd
[23:03:43] *** Christer has quit IRC
[23:03:45] *** ehalas_ has joined #angularjs
[23:03:57] *** nemothekid has quit IRC
[23:03:59] *** tristanp has joined #angularjs
[23:04:13] <jaawerth> whatever is returned from the callback passed to the factory is the singleton. in this case, it'd be a constructor function, so you'd need to call new on it to instantiate an object when you inject the factory
[23:04:26] *** PeterMet_ has joined #angularjs
[23:05:00] *** ehalas has quit IRC
[23:05:01] *** ehalas_ is now known as ehalas
[23:05:02] *** DLSteve has joined #angularjs
[23:05:56] *** SonikBoom has quit IRC
[23:06:27] *** chrisbirk has quit IRC
[23:06:57] *** PeterMetz has quit IRC
[23:07:36] *** NevilleS has quit IRC
[23:08:29] *** D-Boy has quit IRC
[23:08:41] *** tristanp has quit IRC
[23:08:42] *** D-Boy has joined #angularjs
[23:09:30] *** pknordic has joined #angularjs
[23:11:45] *** foofoobar has quit IRC
[23:12:52] <stormbytes> jaawerth checkin it
[23:13:40] *** pknordic has quit IRC
[23:13:52] <stormbytes> jaawerth i see what you're doing here
[23:13:53] *** _mtr has quit IRC
[23:14:13] <stormbytes> technically MsgFactory is misleading because 'new' should be a product of the facotry -- a Msg
[23:14:52] <stormbytes> the logging was just for error/debugging
[23:14:52] <jaawerth> yeah, I'd probably actually call it MsgConstructor
[23:15:07] <stormbytes> yeah even better
[23:15:10] <jaawerth> yeah, I just did that to demonstrate where you'd do the prototype stuff
[23:15:46] *** zemiudo has joined #angularjs
[23:15:49] <stormbytes> as I have it i doubt that object even needs prototype additions -- it hasn't got any methods (well.. not yet at least)
[23:16:06] *** emanresu404 has quit IRC
[23:16:09] <stormbytes> as i understand prototypes, its just a method thing (or mostly)
[23:16:49] <zeroquake> Horrible question , but am just curious , nevah did serious dev work in angular , with that said , am curious why companies are investing so into angular when it is pretty clear in coming years they need to rewrite the app if they want to move to newversions
[23:17:07] <themime> im rewriting my first major angular app, i have $http calls in my controller using .success. so much sad
[23:17:41] <themime> zeroquake: because some people rewrite that often anyway or because just because a new version out doesnt force anyone to use it
[23:17:52] *** danecando has joined #angularjs
[23:18:16] <themime> they just stop officially supporting it, community will still be contributing, just at a increasingly slower pace as more people adopt the new version
[23:18:42] <zeroquake> yes , but when a company is investing millions into a big project , isn't it a big red flag that there is no migration path to a newer version
[23:18:57] <themime> it depends on the project and what the needs are
[23:19:49] <stormbytes> zeroquake I'm not a lover of anything-Google and while I haven't done very much work with AngularJS (what little work I have done has been through a steep and painful learning curve) I can honestly tell you that Angular does incredible things by way of progress for a project :)
[23:20:12] <zeroquake> hmm i think i will dig into angular
[23:20:20] <themime> definitely worth it
[23:20:21] <stormbytes> zeroquake Its increasingly likely Angularjs 1.3 will be forked
[23:20:26] *** fairuz has quit IRC
[23:20:57] <zeroquake> what are some of things everyone loves about angular that are not so obvious immediately until you have been through that learning curve
[23:20:58] <stormbytes> if Google is batshit-crazy enough to make good on their threat... err... i mean "upgrade", they will leave 70% of the community behind.
[23:21:00] <themime> yea good point stormbytes, that ties into my "community support" comment- post official support
[23:21:28] *** laurensclaessen has quit IRC
[23:21:40] *** atomical has quit IRC
[23:21:41] *** superhard_ has joined #angularjs
[23:21:45] <zeroquake> directives initially drove me crazy when i was checking it out initially
[23:21:50] <themime> zeroquake: compared to what? i came from requirejs/jquery background and i can do everything i was doing before in 1/3 of the time or less now. and im not even unit testing like i should, i bet it would be 1/4 at this point, and the bigger your project the more time it saves
[23:22:01] <stormbytes> zeroquake custom events -- the ability to join together completely unrelated code-elements, dependency-injection (just bring it in and use it -- plain and simple), factories/services, and above all.. crazy crazy data-binding !!
[23:22:45] *** nopolabs has joined #angularjs
[23:22:53] <stormbytes> themime - you cant rely on Google to support anything. They are really good at buying into and starting/$ new ventures but they SUCK at seeing things through long term. ITs just not their M.O.
[23:23:07] <zeroquake> am going to take your work and try learning it . I am just starting to what actually di and few other concepts are
[23:23:13] *** macabre has joined #angularjs
[23:24:12] <stormbytes> zeroquake - i suggest you get your javascript down cold. I would recommend javascript pocket guide. The folks in here have been kind to me (tolerating my random rants!) and hopefully they will extend to you the same incredible attitude :)
[23:24:27] <davek> Anything about html5Mode that messes with redirects?
[23:24:55] *** atomical has joined #angularjs
[23:25:03] <stormbytes> zeroquake - expect to curse the hell out of everything in the first month (of FULL TIME Angularjs development). You will hate more about it then you like... until things start to click and you begin to make practical connections
[23:25:05] <themime> zeroquake: and don't be afraid to have small 1function files. don't be afraid to break up a page into several controllers and have them share data. don't use $broadcast or $watch unless you /really/ know what youre doing, as most of the time basic data binding works and makes things /really/ simple. also don't use ngRoute, use ui-router
[23:25:07] *** chachan has joined #angularjs
[23:25:17] <zeroquake> I think i learnt more in freenode irc chats than anywhere else , especially when people put complex concepts into 2 lines of explanation
[23:25:38] <themime> yea me too, thats why i try to answer questions when i can, id be nowhere without this channel
[23:25:59] *** nemothekid has joined #angularjs
[23:26:13] <themime> its a great community. its not just a strict channel like some others tend to be. very tolerant and open to discussion
[23:26:18] <themime> <3 you guys
[23:26:37] <stormbytes> aww
[23:27:06] <zeroquake> cool , i have a project in mind , dev environment that runs jasmine test or etc , using esprima to do some stuff , jslint etc
[23:27:08] *** exp10r3r1 has quit IRC
[23:27:44] *** deanclkclk has quit IRC
[23:27:52] *** mtsr has quit IRC
[23:27:59] <zeroquake> jsdiff and populate new comments into a tech doc , :P that would be awesome
[23:28:09] *** adben has quit IRC
[23:28:46] *** ccohn has quit IRC
[23:28:51] *** jr3 has joined #angularjs
[23:28:53] <jaawerth> stormbytes: yeah, prototypes aren't a huge deal most of the time. If you're instantiating multiple objects, they'll save you memory and processing because methods will refer to the same prototype for every object rather than creating a new function for each object
[23:28:57] <jaawerth> whereas if you're only instantiating a few objects (or making a singleton), and invoking said method a ton of times, it will save you a tiny amount of performance because it won't have to look up the prototype chain.
[23:29:30] <stormbytes> right, i'm starting to get that
[23:29:42] <stormbytes> its all in the application of the concepts
[23:29:52] <jaawerth> yeah
[23:29:53] *** cornerma1 has joined #angularjs
[23:30:17] <jaawerth> sometimes you can do prototype properties too, if for example you've got some sort of configuration property/object that all objects of that "class" share
[23:30:29] *** mtsr has joined #angularjs
[23:30:37] <zeroquake> btw hows testing in angular ?
[23:30:39] <jaawerth> it comes in handy, IMO, for collections and for building data models
[23:30:57] <themime> zeroquake: built into the basic tutorials. very engrained in the culture
[23:31:13] <jaawerth> takes some getting used to, but Angular was created with testing in mind so it lends itself quite well to it
[23:31:21] <themime> and if you dont you should be embarrased. (like me...)
[23:31:33] <themime> i am using gulp now though!
[23:31:40] <zeroquake> in time :P we will get it
[23:31:54] <jaawerth> <3 gulp
[23:32:00] <jaawerth> I just wish sails would make the switch
[23:32:10] <themime> yea i really get the hang of it now, everyone scared me with the learning curve but it wasn't too bad
[23:32:43] *** calmbird has quit IRC
[23:32:52] *** emanresu404 has joined #angularjs
[23:32:53] <jaawerth> I find it way easier to learn that grunt, because it's using JS and familiar node streams rather than a special json config
[23:32:58] *** Superhard has joined #angularjs
[23:33:05] *** cornerman has quit IRC
[23:33:13] *** cornerma1 is now known as cornerman
[23:33:35] *** annlewis has joined #angularjs
[23:34:14] *** mtsr has quit IRC
[23:35:43] *** chachan has quit IRC
[23:35:57] *** PeterMet_ has quit IRC
[23:36:03] *** chachan has joined #angularjs
[23:36:42] <themime> i had never used node but i didnt find the pipe concept difficult to copy/paste and adapt
[23:37:42] *** emanresu404 has quit IRC
[23:37:44] *** annlewis has quit IRC
[23:37:47] *** cakirke has joined #angularjs
[23:37:52] *** chachan_ has joined #angularjs
[23:38:14] <davek> Anyone know how to provide a redirect URL to your site when the hash screws everything up?
[23:38:49] *** superhard_ has quit IRC
[23:39:22] <jaawerth> uh... can you be more specific?
[23:39:22] *** chachan__ has joined #angularjs
[23:39:43] <jaawerth> themime: yeah - it also helps if you've done any linux stuff
[23:39:57] <jaawerth> piping commands all dayyyy
[23:40:17] *** chachan has quit IRC
[23:40:17] <themime> haha i didn't think of that. i do have linux exp though
[23:41:09] *** Zentdayn has joined #angularjs
[23:41:29] *** josh-k has quit IRC
[23:41:35] *** yts has quit IRC
[23:42:05] <jr3> BahamutWC: any further ideas on my ng disabled issue
[23:42:06] *** tbo_ has quit IRC
[23:42:15] *** chachan_ has quit IRC
[23:42:54] *** dhcar_AFK is now known as dhcar
[23:43:39] *** _mtr has joined #angularjs