[00:00:47] *** e0ipso has quit IRC
[00:00:50] <lenswipe> Grokling, it's in case I put in bootstrap or anything like that
[00:01:05] <Grokling> I mean, why is it a copy of your index.html?
[00:01:23] <lenswipe> oh, i imagine because it's hitting the webserver and getting a 404
[00:01:31] <Grokling> Because it's also defining an ng-app, and I wonder if that's screwing it over?
[00:01:35] <lenswipe> ait a sec
[00:01:38] *** s3shs has joined #angularjs
[00:01:40] <lenswipe> wait a sec*
[00:01:53] <lenswipe> Grokling, i told my webserver to respond to all routes with index.html
[00:01:56] <lenswipe> i wonder if that's it
[00:01:58] <lenswipe> surely not..
[00:02:17] <seanmacdonald> lol
[00:02:24] <lenswipe> nope, that's not it.
[00:02:51] <lenswipe> (gulp generates them for me)
[00:03:08] *** e0ipso|away has joined #angularjs
[00:03:18] *** e0ipso|away is now known as e0ipso
[00:04:56] *** dididi has quit IRC
[00:04:58] *** despai has quit IRC
[00:05:46] <Grokling> lenswipe: Where's your ui-view?
[00:05:53] <lenswipe> in index.html
[00:06:08] <Grokling> How come dev tools can't find it?
[00:06:28] *** SergioFilhow has joined #angularjs
[00:06:32] *** toad-br has joined #angularjs
[00:06:40] *** mamalyga has joined #angularjs
[00:06:57] <lenswipe> mother....f...
[00:07:07] <Grokling> That would probably do it eh..
[00:07:15] <lenswipe> i know whats wrong
[00:07:15] *** mamalyga has joined #angularjs
[00:07:19] *** s3shs has quit IRC
[00:07:25] <lenswipe> that's fragging my angular stuff
[00:07:44] <hernan> no luck with ui-router
[00:07:53] <hernan> :~
[00:07:55] <lenswipe> yep, that's it
[00:08:09] <lenswipe> hernan, now that i de-fucked my side of things, what's the deal?
[00:08:15] <Grokling> hernan: luck has little to do with it. Determination and persistence are the key!
[00:08:35] *** bealtine has quit IRC
[00:09:16] *** kwaledesign has joined #angularjs
[00:09:53] <mamalyga> I'm reading next styleguide for angular projects and I see the same sentence again: This way bindings are mirrored across the host object, primitive values cannot update alone using the revealing module pattern. Can someone explain and provide example why module reavealing should be avoided?
[00:10:00] *** RedOrangeZ has quit IRC
[00:10:39] *** epantzar has quit IRC
[00:10:39] *** kwaledesign has quit IRC
[00:10:40] *** tomengland_mbp has quit IRC
[00:11:09] <hernan> ok
[00:11:10] *** nuizzy has quit IRC
[00:11:29] *** ekinmur has quit IRC
[00:11:50] *** cannap has quit IRC
[00:11:57] *** ekinmur has joined #angularjs
[00:12:24] *** ekinmur has quit IRC
[00:12:39] *** loverajoel has quit IRC
[00:12:44] *** jacuqesdancona_ has joined #angularjs
[00:12:47] *** DrMabuse has joined #angularjs
[00:13:06] *** ron1 has quit IRC
[00:13:39] *** Maelstro has joined #angularjs
[00:14:07] *** samuel02 has quit IRC
[00:15:31] *** seanmacdonald has quit IRC
[00:15:45] *** nandoflorestan has joined #angularjs
[00:16:58] <wafflej0ck> lenswipe: just a heads up too since you are redirecting to index.html sometimes this can go bad if you mistype a URL you end up loading the index.html again which reloads angular and you'll get a warning but typically it will also recursively continue to execute and crash your browser tab
[00:17:06] *** asheinfeld has quit IRC
[00:17:06] *** jacuqesdancona_ has quit IRC
[00:17:18] <lenswipe> hmm
[00:17:22] <lenswipe> yeah, i changed that
[00:17:23] *** Spitstream has quit IRC
[00:17:42] <lenswipe> it was just to get html5 mode working
[00:17:46] *** dacuca has quit IRC
[00:18:07] *** DrMabuse has quit IRC
[00:19:01] *** dacuca has joined #angularjs
[00:19:14] *** delight has joined #angularjs
[00:19:17] *** Foxandxss has quit IRC
[00:19:35] *** mdedetrich has joined #angularjs
[00:19:46] *** Sontakey has quit IRC
[00:20:36] *** Solid1 is now known as Solid1_afk
[00:22:38] *** charlenopires has joined #angularjs
[00:22:59] *** nandoflorestan has quit IRC
[00:23:03] *** jeffisabelle has quit IRC
[00:23:05] *** appariti_ has quit IRC
[00:23:11] *** roven has quit IRC
[00:24:20] *** dweave has quit IRC
[00:25:46] *** Johnny13371337 has quit IRC
[00:27:21] *** charlenopires has quit IRC
[00:27:40] *** deanclkclk has joined #angularjs
[00:28:17] *** atomical has quit IRC
[00:28:37] *** chintanparikh has quit IRC
[00:28:44] <lenswipe> wafflej0ck, how would you handle multiple pages
[00:28:49] <lenswipe> say, home page, contact page etc.
[00:28:59] *** apparition168 has joined #angularjs
[00:29:04] <lenswipe> would you have a master page state or would you have a master state for each one?
[00:29:48] *** chintanparikh has joined #angularjs
[00:29:54] *** ekinmur has joined #angularjs
[00:30:44] *** cornerma1 has joined #angularjs
[00:30:46] *** cotko has joined #angularjs
[00:31:02] *** mokush has quit IRC
[00:31:29] *** ekinmur has quit IRC
[00:31:34] *** juanpablo__ has quit IRC
[00:32:09] *** ekinmur has joined #angularjs
[00:32:13] *** deanclkclk has quit IRC
[00:32:22] *** crakrjak has quit IRC
[00:33:38] *** MaxV has quit IRC
[00:33:41] *** BlinkyBill has quit IRC
[00:33:44] *** Nivag_ has joined #angularjs
[00:33:50] *** cornerman has quit IRC
[00:33:54] *** cornerma1 is now known as cornerman
[00:33:59] *** crakrjak has joined #angularjs
[00:34:56] *** charlenopires has joined #angularjs
[00:37:08] *** codeman has joined #angularjs
[00:37:48] *** dannyc has joined #angularjs
[00:38:22] *** JMZ_DMZ has quit IRC
[00:38:26] *** ProLoser has quit IRC
[00:38:38] <wafflej0ck> lenswipe: typically I keep things as simple as possible from the get go, if I feel there's some advantage to a layer of abstraction above some set of parts then I'll add it in later but I don't typically start with extra abstractions
[00:38:58] <Grokling> lenswipe: Ah, the old page/state paradigm shift. I think of it more like 'panes'. I have a frame/container state which handles the basic layout, and takes care of setting the app up (auth etc), then I have inner states for the main pane. I can swap them in and out according to the 'page' kind of concept.
[00:39:01] *** instence_ has joined #angularjs
[00:39:24] <Grokling> Stuff like headers, nav, menus etc can stay in the outer state, and we don't have to mess with them.
[00:39:41] *** charuru has joined #angularjs
[00:40:14] *** crakrjak has quit IRC
[00:40:15] *** zz_night-owl is now known as night-owl
[00:40:23] *** joehannes has quit IRC
[00:40:42] * Grokling makes note to self: Next time you throw an apple in the juicer, remember to take the sticker off first.
[00:40:57] <wafflej0ck> mmm adhesive
[00:41:57] *** dannyc has quit IRC
[00:42:09] *** delight has quit IRC
[00:42:14] *** ProLoser has joined #angularjs
[00:42:23] *** instence has quit IRC
[00:42:46] *** crakrjak has joined #angularjs
[00:42:56] <Grokling> mmm.. that's an unusually chewy piece of apple skin.. Has a look, realises what it is, and that tiny pieces of it will now be all through the drink.
[00:43:06] *** instence_ has quit IRC
[00:43:08] * Grokling shrugs and drinks it anyway.
[00:43:26] *** instence has joined #angularjs
[00:43:35] *** crakrjak has quit IRC
[00:43:46] *** Prjio has quit IRC
[00:44:09] *** brownbathrobe has joined #angularjs
[00:44:25] *** ProLoser has quit IRC
[00:45:01] *** dnull has joined #angularjs
[00:45:05] *** abosama has joined #angularjs
[00:46:26] *** CodeFriar has joined #angularjs
[00:47:04] *** whunt has quit IRC
[00:48:23] *** daminhove has quit IRC
[00:48:30] *** marshall has joined #angularjs
[00:48:47] *** mylord has joined #angularjs
[00:48:51] *** BillCriswell has joined #angularjs
[00:49:02] <wafflej0ck> hernan: any progress?
[00:49:16] <wafflej0ck> hernan: FYI your states cna have parent states and the URLs build on each other
[00:50:03] <wafflej0ck> hernan: check out nested states in the ui-router docs, also the docs have links to plunkr with ui-router already setup so can start with one of those and insert your code
[00:50:17] *** brownbathrobe has quit IRC
[00:52:51] *** ProLoser has joined #angularjs
[00:53:00] *** marshall has quit IRC
[00:53:20] <Fifty5Plus> greetings and happy thanksgiving to all
[00:54:17] <Grokling> How long does this Thanksgiving holiday go for? Isn't it still Thursday over there?
[00:55:12] <Fifty5Plus> Grokling: 5 of 14 hours to go :)
[00:55:20] <Fifty5Plus> 24*
[00:55:49] <Grokling> Ah. So it's a bit like putting up Christmas decorations at Easter then?
[00:56:03] *** crakrjak has joined #angularjs
[00:56:03] *** Shadeness has quit IRC
[00:56:12] *** dobladez has quit IRC
[00:56:33] <hernan> wafflej0ck: im trying but no luck
[00:56:42] *** emmesswhy has quit IRC
[00:56:58] *** boberober has quit IRC
[00:57:03] *** mylord has quit IRC
[00:57:22] *** Shadeness has joined #angularjs
[00:57:29] <Grokling> hernan: Trying to make a plunker?
[00:57:37] <hernan> trying to get routes working
[00:57:38] *** devhoag has quit IRC
[00:57:46] <Grokling> Avoiding plunker?
[00:57:47] <wafflej0ck> happy thanks giving Fifty5Plus haven't taken the time yet to sit down and read through your notes yet
[00:57:57] <hernan> dont know whats a plunker =p
[00:58:07] <hernan> ahhh
[00:58:12] <hernan> the plunker!!!
[00:58:19] <Grokling> That's a plunker.
[00:58:22] <hernan> yeah
[00:59:09] *** dhrami has joined #angularjs
[00:59:12] <Grokling> But, as wafflej0ck said, if you look in the ui-router docs, there are links to some already made ones.
[00:59:23] <hernan> i did some progress on my app... i can navigate and such but the url stays the same.
[00:59:29] *** yts has quit IRC
[00:59:42] <hernan> what if i pushstate manually ? is that wrong ?
[00:59:54] *** shpoont has joined #angularjs
[00:59:58] *** angularjs300 has quit IRC
[01:00:04] <tjsail33> how would i go about passing a function from a directive to the controller above it?
[01:00:05] *** shpoont has quit IRC
[01:00:23] *** s3shs has joined #angularjs
[01:00:42] <tjsail33> like i want the controller to be able to say directiveConfig.getText() and have it return the text in the directive's textarea
[01:00:56] *** P1RATEZ has joined #angularjs
[01:00:58] <hernan> i thought i had learned some angular... but then there is still an unverse to learn
[01:01:03] <Grokling> tjsail33: That sounds entirely back to front.. What are you trying to achieve?
[01:01:04] *** toad-br has quit IRC
[01:01:18] *** disorder20 has quit IRC
[01:01:36] *** mmealling has joined #angularjs
[01:01:59] <wafflej0ck> hernan: haven't done any of that I can think of but have seen code that modifies the states after config to add in resolves and the like (might still need to happen in config though)
[01:02:14] *** JMZ_DMZ has joined #angularjs
[01:02:17] *** s3shs has quit IRC
[01:02:20] <tjsail33> so like youre creating a post. inside is the summernote directive i want to write. when you click Post, i want to get the text from the directive
[01:02:33] <wafflej0ck> hernan: but yeah if we can see yer code running on a plunkr it helps us help you
[01:02:47] *** jonr22 has joined #angularjs
[01:02:48] <tjsail33> or is it better to us an on change and just dynamically update a two-way variable?
[01:03:43] *** dweave has joined #angularjs
[01:04:01] <Grokling> tjsail33: Or bind your directive's value to something that the post/controller knows about already?
[01:04:29] <ish> curious, anyone went to look at Ember then came back to angular?
[01:04:41] <hernan> wafflej0ck: i will have to make an example app
[01:04:54] <tjsail33> so pass a variable into the directive from the parent, and whenever summernote fires a change event update the value of that variable?
[01:04:59] <wafflej0ck> ish: I though about looking at Ember does that count?
[01:05:28] <wafflej0ck> ish: I just listened to a Javascript Jabber podcast recently with a guy who did some actual app in backbone, ember, and angular
[01:05:31] *** mkusher has quit IRC
[01:05:50] <hernan> the same app in 3 ?
[01:06:00] <wafflej0ck> ish: long story short he almost lost his mind and wishes he just focused on angular
[01:06:00] *** emmesswhy has joined #angularjs
[01:06:01] <hernan> i want to do that if i have time
[01:06:09] <hernan> hahahahah
[01:06:11] *** dweave has quit IRC
[01:06:33] <Grokling> tjsail33: Something like that, yes.
[01:07:06] <tjsail33> Grokling: hmm alright, thanks. i'll look into that.
[01:07:15] <Grokling> Bollocks. Now I've broken my JWT auth process.
[01:07:42] <ish> hmm. i'm not a front end guy but wanted to learn one way to do it angular has worked out well
[01:07:50] *** jmichaelward has joined #angularjs
[01:07:52] *** jonr22 has quit IRC
[01:08:11] <ish> just have to tune out the hipsters and cool kids and be comfortable with my decision
[01:08:16] *** vassagus has quit IRC
[01:08:22] *** dweave has joined #angularjs
[01:08:25] <wafflej0ck> ish: any MVC on the front end is difficult the first time
[01:08:30] *** dweave has quit IRC
[01:08:41] <wafflej0ck> ish: I learned Silverlight and Flex a little bit and decided to go with Flex, learned a ton there that applies to Angular
[01:08:43] *** silo has joined #angularjs
[01:08:51] *** dweave has joined #angularjs
[01:10:04] *** crakrjak has quit IRC
[01:10:06] * Grokling still forgets to handle promises properly sometimes.
[01:10:08] *** Shadeness has quit IRC
[01:10:12] *** lenswipe has quit IRC
[01:10:21] *** crakrjak has joined #angularjs
[01:10:28] *** charuru has quit IRC
[01:10:35] *** dweave has quit IRC
[01:10:47] <ish> angular is the first UI type code other than command line apps. but after learning some basics i am amazed at how fast i can whip up quick control panel like apps
[01:11:14] *** rhp has quit IRC
[01:11:39] *** Shadeness has joined #angularjs
[01:11:44] <hernan> yeh real fast
[01:11:56] <hernan> and just works
[01:11:56] *** Mackseraner has quit IRC
[01:12:12] *** recurrence has joined #angularjs
[01:12:21] *** jmichaelward has quit IRC
[01:12:40] <ish> of course i also use bootstrap
[01:13:29] *** loverajoel has joined #angularjs
[01:13:49] *** Spitstream has joined #angularjs
[01:14:20] *** plato has quit IRC
[01:14:23] *** doginal has quit IRC
[01:14:30] *** dweave has joined #angularjs
[01:14:53] *** charlenopires has quit IRC
[01:16:02] <tjsail33> Grokling: got it working, thanks for the input
[01:16:03] <wafflej0ck> yeah I use bootstrap too haven't yet but am thinking I should start using bootswatch or something too since I'm terrible at design
[01:16:09] *** plato has joined #angularjs
[01:16:22] *** codeman has quit IRC
[01:16:31] <wafflej0ck> and pretty sick of the default look
[01:16:49] *** crakrjak has quit IRC
[01:17:46] *** Maelstro has quit IRC
[01:18:05] *** cthrax has joined #angularjs
[01:18:07] *** loverajoel has quit IRC
[01:18:07] *** djam90 has quit IRC
[01:18:24] *** charlenopires has joined #angularjs
[01:18:45] *** k-dawg has joined #angularjs
[01:18:49] *** chintanparikh has quit IRC
[01:19:06] *** ProLoser has quit IRC
[01:19:19] *** bundledavid has joined #angularjs
[01:19:40] *** alinou has joined #angularjs
[01:19:55] *** kuadrosx_ has quit IRC
[01:20:05] *** doginal has joined #angularjs
[01:21:31] *** epantzar has joined #angularjs
[01:23:23] *** bundledavid has quit IRC
[01:24:36] *** CodeFriar has quit IRC
[01:24:51] *** josh-k has joined #angularjs
[01:25:28] *** cakirke has joined #angularjs
[01:25:42] *** ciro_nunes has joined #angularjs
[01:26:18] *** k-dawg has quit IRC
[01:26:31] *** epantzar has quit IRC
[01:26:31] *** \du has quit IRC
[01:27:20] *** marr has quit IRC
[01:27:21] *** nuizzy has joined #angularjs
[01:28:38] *** kuadrosx_ has joined #angularjs
[01:29:09] *** plato has quit IRC
[01:29:10] *** storresi has quit IRC
[01:29:11] *** dweave has quit IRC
[01:29:19] *** caitp has joined #angularjs
[01:30:13] *** toad-br has joined #angularjs
[01:31:05] *** TommyO has joined #angularjs
[01:31:07] *** aslate has joined #angularjs
[01:31:49] *** plato has joined #angularjs
[01:35:17] *** aslate has quit IRC
[01:35:57] *** m_rc has joined #angularjs
[01:36:46] *** tfennelly has quit IRC
[01:36:48] *** eBureau has quit IRC
[01:36:49] *** crakrjak has joined #angularjs
[01:38:36] *** dannyc has joined #angularjs
[01:38:46] *** Aliks has joined #angularjs
[01:39:00] *** plato has quit IRC
[01:39:49] *** oste has joined #angularjs
[01:40:44] *** ekinmur has quit IRC
[01:40:44] *** plato has joined #angularjs
[01:41:31] *** caitp has quit IRC
[01:42:20] *** \du has joined #angularjs
[01:42:21] *** \du has joined #angularjs
[01:42:53] *** dannyc has quit IRC
[01:43:13] *** tfennelly has joined #angularjs
[01:44:37] *** Prjio has joined #angularjs
[01:45:49] *** crunch-choco has quit IRC
[01:47:10] *** fedenunez has joined #angularjs
[01:47:31] *** moritzs has quit IRC
[01:49:19] *** Prjio has quit IRC
[01:49:27] *** \du has quit IRC
[01:50:19] *** startupality_ has quit IRC
[01:50:39] *** startupality has joined #angularjs
[01:51:01] *** evilaliv3 has joined #angularjs
[01:51:14] *** doginal has quit IRC
[01:51:30] <m_rc> if I have service that returns $http.get with a bunch of params, is there a way to unit test that particular params were included?
[01:51:39] *** crakrjak has quit IRC
[01:52:44] *** tfennelly has quit IRC
[01:53:27] *** tristanp has quit IRC
[01:54:40] *** plushy has joined #angularjs
[01:54:58] *** gunn has quit IRC
[01:55:07] *** narutimateum has quit IRC
[01:56:00] *** TeddyMurray has joined #angularjs
[01:56:14] <TeddyMurray> wow, had no idea this was so popular
[01:57:03] *** doginal has joined #angularjs
[01:57:05] *** cboden_ has joined #angularjs
[01:57:44] *** JBreit has quit IRC
[01:57:51] *** fairuz has joined #angularjs
[01:58:26]
<tjsail33> okay, i feel like a total id10t right now, but i have a line of html and a directive, and only half of my attributes are working properly. onChange and initialize work, but cuConfig and cuContents do nothing. any ideas? when i log $scope they both show as null. http://pastebin.com/FbExn9Z5
[01:59:43] *** evilaliv3 has quit IRC
[02:00:06] *** tristanp has joined #angularjs
[02:00:39] *** sirsirsir has joined #angularjs
[02:00:45] *** spairo has joined #angularjs
[02:00:49] *** TyrfingMjolnir has joined #angularjs
[02:00:53] *** yoshokatana has quit IRC
[02:00:57] *** nuizzy has quit IRC
[02:00:59] <spairo> hi guys!
[02:01:25] <spairo> I have a question/issue
[02:01:32] *** DrMabuse has joined #angularjs
[02:03:04] *** Shilon has quit IRC
[02:03:07] *** tristanp has quit IRC
[02:03:27] *** caitp has joined #angularjs
[02:04:05] *** charlenopires has quit IRC
[02:04:42] <spairo> ..
[02:05:03] *** phzon has joined #angularjs
[02:05:04] *** sirsirsir has quit IRC
[02:05:26] *** one0one_a has joined #angularjs
[02:05:34] *** spairo has quit IRC
[02:05:49] *** AciD`` has quit IRC
[02:05:52] *** one0one has quit IRC
[02:06:02] <tjsail33> ask away
[02:06:11] *** spairo has joined #angularjs
[02:06:22] <tjsail33> spairo: ask away
[02:06:22] *** cboden_ has quit IRC
[02:06:27] *** startupality has quit IRC
[02:06:29] *** DrMabuse has quit IRC
[02:06:38] <spairo> how can I pass a var between functions inside a controller
[02:06:59] <spairo> ?
[02:07:22] *** night-owl is now known as zz_night-owl
[02:07:38] *** JBreit has joined #angularjs
[02:07:46] *** asher^ has joined #angularjs
[02:07:47] *** atomical has joined #angularjs
[02:08:06] *** dacuca has quit IRC
[02:08:16] <spairo> I've tried put the var $scope.findcaseT = function(myvar){
[02:08:22] *** jmichaelward has joined #angularjs
[02:08:45] *** vassagus has joined #angularjs
[02:09:01] <spairo> but not working
[02:09:08] <tjsail33> can you make a plunkr or jsfiddle or pastebin of your code? its hard to read in IRC
[02:09:26] <spairo> okay
[02:09:29] *** rstyrman has joined #angularjs
[02:09:30] *** phzon has quit IRC
[02:11:17] *** silo has quit IRC
[02:11:39] *** k-dawg has joined #angularjs
[02:12:01] *** slacko191482 has joined #angularjs
[02:13:00] *** jmichaelward has quit IRC
[02:13:12] *** kuadrosx_ has quit IRC
[02:13:23] *** vassagus has quit IRC
[02:13:31] <spairo> heres the code:
[02:13:36] *** whunt has joined #angularjs
[02:13:51] *** Maelstro has joined #angularjs
[02:14:52] *** kuadrosx_ has joined #angularjs
[02:15:17] *** {DV8} has joined #angularjs
[02:15:39] *** lilbaby has joined #angularjs
[02:16:05] <lilbaby> When I'm mocking things for testing my app.config block doesn't get used.
[02:16:41] *** kuadrosx_ is now known as kuadrosx
[02:16:43] <spairo> mmm...
[02:16:52] *** GeneralChoomin has joined #angularjs
[02:16:52] *** GeneralChoomin has joined #angularjs
[02:17:24] <spairo> somebody?
[02:17:43] *** charlenopires has joined #angularjs
[02:17:58] *** Spitstream has quit IRC
[02:18:27] <lilbaby> Ah I got it
[02:18:33] *** whunt has quit IRC
[02:19:00] <spairo> checking...
[02:19:53] *** fedenunez has quit IRC
[02:19:59] <spairo> sublime!!! thanx for da support wafflejOck
[02:20:06] <wafflej0ck> spairo: np
[02:21:35] *** plushy1 has joined #angularjs
[02:22:08] *** snurfery has joined #angularjs
[02:22:17] *** spairo has quit IRC
[02:22:22] *** prbc has joined #angularjs
[02:22:31] *** slacko191482 has quit IRC
[02:23:33] *** m_rc has quit IRC
[02:23:42] *** tfennelly has joined #angularjs
[02:23:44] *** motionman has joined #angularjs
[02:23:47] *** prbc has quit IRC
[02:24:02] *** roven has joined #angularjs
[02:24:05] *** plushy2 has joined #angularjs
[02:24:11] *** prbc has joined #angularjs
[02:24:20] *** plushy1 has quit IRC
[02:24:42] *** bijan has joined #angularjs
[02:25:04] *** plushy has quit IRC
[02:25:44] *** Ansikt has joined #angularjs
[02:26:00] *** cthrax has quit IRC
[02:26:06] *** zz_night-owl is now known as night-owl
[02:26:28] *** rkjdid has quit IRC
[02:26:47] *** k-dawg has quit IRC
[02:26:51] *** kieunhuvan has joined #angularjs
[02:27:05] *** CodeFriar has joined #angularjs
[02:27:38] *** kieunhuvan has quit IRC
[02:28:36] *** roven has quit IRC
[02:28:42] *** fedenunez has joined #angularjs
[02:29:20] *** crakrjak has joined #angularjs
[02:31:01] *** tfennelly has quit IRC
[02:32:10] *** shepheb has joined #angularjs
[02:34:30] *** motionman has quit IRC
[02:34:52] *** Ansikt has quit IRC
[02:35:47] <recurrence> Is there a replacement for the now-removed angular.noConflict() ? I gather it may have had some unintended problems.
[02:35:54] *** shepheb_ has quit IRC
[02:36:44] *** skyx_ has quit IRC
[02:36:52] *** wolfman2000 has joined #angularjs
[02:37:04] *** skyx_ has joined #angularjs
[02:37:13] *** skyx_ has quit IRC
[02:37:18] *** m_rc has joined #angularjs
[02:37:36] *** josh-k_ has joined #angularjs
[02:37:43] *** plushy has joined #angularjs
[02:37:43] *** plushy2 has quit IRC
[02:37:57] *** atomical has quit IRC
[02:39:03] *** atomical has joined #angularjs
[02:39:26] *** TyrfingMjolnir has quit IRC
[02:39:26] *** dannyc has joined #angularjs
[02:40:46] *** dweave has joined #angularjs
[02:40:50] *** snurfery has quit IRC
[02:41:15] *** tomengland_mbp has joined #angularjs
[02:41:23] *** m_rc has quit IRC
[02:41:50] *** cacts has joined #angularjs
[02:41:59] *** josh-k has quit IRC
[02:42:30] *** JMZ_DMZ has quit IRC
[02:43:37] *** crakrjak has quit IRC
[02:43:59] *** crakrjak has joined #angularjs
[02:44:18] *** dannyc has quit IRC
[02:44:44] <recurrence> routing conflicts for example :)
[02:45:20] *** Prjio has joined #angularjs
[02:45:27] *** plushy has quit IRC
[02:45:32] *** cakirke has quit IRC
[02:48:58] *** DustinF has joined #angularjs
[02:49:09] *** dweave has quit IRC
[02:49:15] *** defaultdict has quit IRC
[02:49:55] *** Prjio has quit IRC
[02:49:55] *** alinou has quit IRC
[02:50:10] *** brettfrable has joined #angularjs
[02:50:24] *** jonr22 has joined #angularjs
[02:50:58] *** kayoone has quit IRC
[02:51:11] *** maikowblue has joined #angularjs
[02:51:26] *** crakrjak has quit IRC
[02:51:49] *** jonr2219 has joined #angularjs
[02:53:19] *** narutimateum has joined #angularjs
[02:53:37] *** tristanp has joined #angularjs
[02:54:14] *** charlenopires has quit IRC
[02:54:29] *** dsdeiz has joined #angularjs
[02:54:31] *** DustinF has left #angularjs
[02:54:50] *** dididi has joined #angularjs
[02:55:16] *** ekinmur has joined #angularjs
[02:55:27] *** motionman has joined #angularjs
[02:56:45] *** jonr2219 has quit IRC
[02:56:48] *** darrin has joined #angularjs
[02:57:26] *** jonr22 has quit IRC
[02:58:08] <jcool> any reason why datepicker will load date coming from database after 3 - 4 mins?
[02:58:28] <tjsail33> what do you mean
[02:58:56] <jcool> tjsail33, All data get loaded up in form but datepicker value doesnt. If you leave it for 3-4 mins it will update itself with database value
[02:59:18] <tjsail33> does it happen faster if you click the page after the data gets loaded?
[02:59:27] *** kirfu has quit IRC
[02:59:36] *** ekinmur has quit IRC
[03:00:05] <jcool> tjsail33, remains same.
[03:00:25] <tjsail33> hmm. without a plunkr/jsfiddle it'll be hard to figure it out
[03:01:02] *** cthrax has joined #angularjs
[03:01:04] <jcool> tjsail33, actually its 50 odd field form. I will still try to replicate only date part in plunker
[03:02:07] *** jonr22 has joined #angularjs
[03:03:26] *** narutimateum has quit IRC
[03:03:50] *** ome has joined #angularjs
[03:04:16] *** t1mmen has quit IRC
[03:05:05] *** mamalyga has quit IRC
[03:06:09] *** cotko has quit IRC
[03:06:13] *** andrewdee has joined #angularjs
[03:06:28] *** cotko has joined #angularjs
[03:07:23] *** tristanp has quit IRC
[03:07:53] *** doginal has quit IRC
[03:08:09] *** bundledavid has joined #angularjs
[03:08:18] *** emmesswhy has quit IRC
[03:08:50] *** poolside has quit IRC
[03:08:51] *** tomengland_mbp has quit IRC
[03:08:51] *** dseitz has quit IRC
[03:09:11] *** jmichaelward has joined #angularjs
[03:09:55] *** rburns has joined #angularjs
[03:12:09] *** tomengland_mbp has joined #angularjs
[03:12:36] *** bundledavid has quit IRC
[03:12:47] *** Iravan has joined #angularjs
[03:13:35] <wafflej0ck> jcool: yeah with regard to plunkr (for anyone not just you) always want to just show the minimum to reproduce the problem, that way any of us looking at it can figure it out more quickly instead of trying to understand all yer code
[03:13:40] *** mdedetrich has quit IRC
[03:13:54] *** jmichaelward has quit IRC
[03:13:59] *** ron1 has joined #angularjs
[03:14:04] *** Spitstream has joined #angularjs
[03:14:08] *** mdedetrich has joined #angularjs
[03:14:39] *** poolside has joined #angularjs
[03:14:53] *** dseitz has joined #angularjs
[03:16:06] *** doginal has joined #angularjs
[03:16:28] <jcool> wafflej0ck, sure. I am trying to get it done.
[03:16:40] *** tristanp has joined #angularjs
[03:17:27] *** mdedetrich has quit IRC
[03:17:42] *** asheinfeld has joined #angularjs
[03:17:49] *** Maelstro has quit IRC
[03:18:12] *** ron1 has quit IRC
[03:18:34] *** mdedetrich has joined #angularjs
[03:18:38] *** tomengland_mbp has quit IRC
[03:18:49] *** gunn has joined #angularjs
[03:19:02] <wafflej0ck> also sometimes people end up just figuring it out in the process of stripping things down
[03:19:06] *** tomengland_mbp has joined #angularjs
[03:19:17] *** Oddman has quit IRC
[03:19:18] *** Aliks has quit IRC
[03:19:21] *** saint-ron has joined #angularjs
[03:20:05] *** aslate has joined #angularjs
[03:20:11] *** josh has joined #angularjs
[03:20:53] <dididi> Hi! Can I call another module's controller in ui-router confgi? Such like this " .state('dashboard', { url: '/dashboard', controller: 'dashbard.Dashboard' }) "?
[03:21:24] <wafflej0ck> dididi: so long as you have a module as a dependency you can use controllers from it but they aren't really namespaced in any way
[03:21:26] *** poolside has quit IRC
[03:21:49] <tjsail33> you are better off explicitly defining the controller and then referencing it by name in the ui.router if you have to reuse it
[03:21:57] *** asheinfeld has quit IRC
[03:22:07] <dididi> Okay I see. I have to find another way.
[03:22:50] *** Poppa has joined #angularjs
[03:22:54] *** Greed` has joined #angularjs
[03:24:00] *** prbc_ has joined #angularjs
[03:24:19] *** Somatt_wrk has quit IRC
[03:24:25] *** Somatt_wrk has joined #angularjs
[03:24:28] *** Fuzzier has joined #angularjs
[03:24:34] *** Poppabear has quit IRC
[03:24:39] *** aslate has quit IRC
[03:24:48] *** amtiskaw has quit IRC
[03:25:13] *** saint-ron has quit IRC
[03:25:35] *** joshskidmore_ has quit IRC
[03:25:45] *** joshskidmore has joined #angularjs
[03:25:45] *** prbc has quit IRC
[03:25:46] *** T-Co has quit IRC
[03:25:52] *** T-Co has joined #angularjs
[03:26:02] *** saint-ron has joined #angularjs
[03:26:13] *** amtiskaw has joined #angularjs
[03:26:15] *** Fuzzy has quit IRC
[03:26:15] *** Greed has quit IRC
[03:26:21] *** BillCriswell has quit IRC
[03:26:44] *** Lynxium has quit IRC
[03:27:16] *** Lynxium has joined #angularjs
[03:28:10] *** dhrami has quit IRC
[03:28:59] *** dhrami has joined #angularjs
[03:30:03] *** GeneralChoomin has quit IRC
[03:30:11] *** mmealling has quit IRC
[03:30:40] *** mdedetrich has quit IRC
[03:31:03]
<Grokling> !remember plunker is ":nick, paste your code here: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS Try to isolate the specific problem (i.e. the least code you can use to show the issue - not your whole app), and get the code as near to running as you can, and someone will be happy to help."
[03:31:46] <Grokling> Grokling: !plunker
[03:31:47]
<UniBot> "Grokling, paste your code here: http://plnkr.co/edit/tpl:nKLNBdve51sqOoKZAOUS Try to isolate the specific problem (i.e. the least code you can use to show the issue - not your whole app), and get the code as near to running as you can, and someone will be happy to help."
[03:32:19] *** dididi has quit IRC
[03:32:26] *** Lewix has joined #angularjs
[03:32:27] *** mdedetrich has joined #angularjs
[03:32:36] <Grokling> Nice. That's going to save us some typing! eh wafflej0ck
[03:32:56] <wafflej0ck> hah nice
[03:33:12] <jcool> wafflej0ck, I tried value that I was getting from database. It sets up perfectly on datepicker
[03:33:37] <jcool> tjsail33, I think problem is something else.
[03:33:41] <wafflej0ck> jcool: would check what's going on in the network tab too and console.log in the response
[03:34:10] <jcool> wafflej0ck, yep. I am getting date in json response. I am printing that out.
[03:34:17] *** mdedetrich has quit IRC
[03:34:27] *** mary5030 has joined #angularjs
[03:34:38] <wafflej0ck> jcool: any way you can show it running?
[03:34:59] <jcool> wafflej0ck, its on local.that is the biggest issue.
[03:35:57]
<wafflej0ck> jcool: think this can work but haven't used it myself https://ngrok.com/ (just had others serve their stuff to the chat through it so they can shut it down easily)
[03:36:27] <wafflej0ck> jcool: otherwise if you're comfy with your router you can port forward 80 on it to your machine temporarily and PM your IP or whatever
[03:36:32] *** fedenunez has quit IRC
[03:36:51] <tjsail33> wafflej0ck thats a pretty cool service.
[03:37:08] *** ron1 has joined #angularjs
[03:37:22] *** RedOrangeZ has joined #angularjs
[03:37:35] *** Sontakey has joined #angularjs
[03:37:38] <wafflej0ck> tjsail33: yup seems like a nice idea
[03:38:23] <tjsail33> dsdeiz: what do you mean move these?
[03:38:41] <jcool> wafflej0ck, sure.
[03:38:57] *** asdofindia has quit IRC
[03:39:15] *** toad-br has quit IRC
[03:39:15] *** mdedetrich has joined #angularjs
[03:39:44] <dsdeiz> i'm trying to not have the app controller anything inside it. i'm wondering if i can just move the function it does inside run() to a service
[03:40:14] <dsdeiz> basically things like $rootScope.$on(...);
[03:41:11]
<wafflej0ck> dsdeiz: you can move those things to a service so long as they don't directly depend on $scope (or just have them store the data in the service itself where you were using $scope) with regard to run and config blocks check out the description here about them https://docs.angularjs.org/guide/module
[03:41:28] *** josh-k_ has quit IRC
[03:41:38] *** shinnya has quit IRC
[03:41:58] *** josh-k has joined #angularjs
[03:42:13] *** SergioFilhow has quit IRC
[03:42:38] *** tristanp has quit IRC
[03:42:49] *** SergioFilhow has joined #angularjs
[03:42:49] *** TyrfingMjolnir has joined #angularjs
[03:43:06] *** styles has quit IRC
[03:43:52] <dsdeiz> ahh sweet thx!
[03:44:36] <jcool> wafflej0ck, CORS issue.
[03:45:05] *** linojon has joined #angularjs
[03:45:48] <wafflej0ck> jcool: ah crappy... yeah I just deploy all my stuff using Jenkins so it's just a matter of pushing to a repo and waiting a few minutes for it to deploy.... actually right now working on setting up chains of project building in there since I started splitting out more of the components I use
[03:45:57] <Grokling> !remember moar is ":nick, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part)"
[03:46:05] <Grokling> !remember primitives is "Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes."
[03:46:07] *** Prjio has joined #angularjs
[03:46:30] *** zeezey has joined #angularjs
[03:46:34] *** josh-k has quit IRC
[03:46:39] <Grokling> !remember moar is ":nick, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)"
[03:46:42] <zeezey> googl
[03:46:48] <jcool> wafflej0ck, let me get all this up live so that you can easily see it.
[03:46:48] *** wsmoak has quit IRC
[03:47:03] <zeezey> google rocks!
[03:47:04] *** cotko has quit IRC
[03:47:30] *** TyrfingMjolnir has quit IRC
[03:48:16] *** ProLoser has joined #angularjs
[03:48:40] <zeezey> lol
[03:49:25] *** TyrfingMjolnir has joined #angularjs
[03:49:36] *** Sontakey has quit IRC
[03:49:40] *** mmealling has joined #angularjs
[03:50:17] *** DrMabuse has joined #angularjs
[03:50:36] <wafflej0ck> Grokling: can UniBot recognize variables in the commands? could have it automatically spit back a lmgtfy.com/?q=queryVar if someone types !google
[03:50:55] *** tomengland_mbp has quit IRC
[03:51:07] *** Prjio has quit IRC
[03:51:11] <wafflej0ck> Grokling: also the primitives one might be good to include a reference to the prototypical inhertience explanation from Mark R. on SO for the deep dive
[03:51:31] *** jonr22 has quit IRC
[03:51:34] <wafflej0ck> !google
[03:51:46] *** jonr22 has joined #angularjs
[03:51:47] *** dididi has joined #angularjs
[03:52:26] <Grokling> Let me see.. I think we can do it. Trouble is that we'll have to put in '+' to separate the words..
[03:52:51] <wafflej0ck> yeah just found the UniBot github page
[03:53:25] <Grokling> wafflej0ck: !google unibot
[03:53:32] <wafflej0ck> awe
[03:53:37] *** bmac has joined #angularjs
[03:53:40] <wafflej0ck> close
[03:53:46] *** brettfrable has quit IRC
[03:53:54] <Grokling> wafflej0ck: !google unibot
[03:54:36] <wafflej0ck> oh yeah need thee ? ahead of the q and = in between no?
[03:54:41] <wafflej0ck> the*
[03:54:45] <wafflej0ck> or thee whatever
[03:54:58] *** doodlehaus has joined #angularjs
[03:55:00] <Grokling> wafflej0ck: !google unibot
[03:55:00] *** DrMabuse has quit IRC
[03:55:23] <Grokling> Testing in production.. so fun.
[03:55:28] <Grokling> wafflej0ck: !google unibot
[03:55:56] <wafflej0ck> yeah iterative this is how programming goes for any newbs :)
[03:56:26] <wafflej0ck> oh it actually saved that eh
[03:56:34] <wafflej0ck> Grokling: !google unibot
[03:56:35] <zeezey> !google
[03:56:50] <wafflej0ck> zeezey: !google lmgtfy
[03:56:55] <wafflej0ck> haha okay I'll stop
[03:57:03] <Grokling> wafflej0ck: !stab
[03:57:04] <UniBot> stabs wafflej0ck with the jagged edge of a Playstation polygon.
[03:57:16] *** ProLoser has quit IRC
[03:57:17] *** alasi has joined #angularjs
[03:57:24] <Grokling> wafflej0ck: !unstab
[03:57:24] <UniBot> unstabs wafflej0ck , pulling out a bloody Playstation polygon.
[03:57:26] <wafflej0ck> heh nice... some way to list what Unibot already knows?
[03:57:34] *** asdofindia has joined #angularjs
[03:57:43] <zeezey> ninjitsu
[03:58:00] <Grokling> then click the commands link..
[03:58:14] <wafflej0ck> nice
[03:58:19] *** rburns has quit IRC
[03:58:24] <zeezey> !xy
[03:58:25] <UniBot> The XY problem: You want to do X, but don't know how. You think you can solve it using Y, but don't know how to do that either. You ask about Y, which is a strange thing to want to do. Just ask about X.
[03:58:27] <Grokling> wafflej0ck: what was that deepdive link for primitives?
[03:58:51] <alasi> Hi guys. I am a newbie having a bit of a dilemma. I've got a global scope object, and that object is bound to this high ranking controller. A lower ranking controller is using attributes from this object. How can I bind the lower ranking controller's attributes from the higher ranking controller's object? Or is there a better way to design this.
[03:59:18] <Grokling> !inheritance
[03:59:34] <alasi> ok ill check that out
[03:59:47] <Grokling> alasi: sorry.. that was purely coincidental!
[03:59:54] <alasi> Oh LOL
[03:59:58] <Grokling> But possibly still relevant!
[04:00:03] <alasi> Yeah it might! Lol
[04:00:07] <zeezey> whats the best course for noobs
[04:00:17] *** TeddyMurray has quit IRC
[04:00:18] <alasi> I just finished the one on CodeSchool its really good
[04:00:23] *** caitp has quit IRC
[04:00:31] <Grokling> zeezey: raw beginner? I'd start with the official phonecat one.
[04:00:33] *** wiherek has quit IRC
[04:00:39] <zeezey> yea
[04:00:56] *** rburns has joined #angularjs
[04:01:21] <Grokling> zeezey: !phonecat
[04:01:21] <alasi> Ok yeah this isnt quite helping me
[04:01:49] <zeezey> cool ill check those 2 out
[04:01:57] <Grokling> alasi: If you're 'sharing' stuff between controllers, you should use a service or factory, and inject it where you need it.
[04:02:08] <alasi> hang on let me clarify
[04:02:36] <Grokling> alasi: You _can_ also use scope to inherit, but that only helps if you have nested states (ui-router)
[04:02:43] *** TeddyMurray has joined #angularjs
[04:02:57] <alasi> heres an example. I have a table object. Then, I have a high ranking view controller. That controller represents the salad on the table [table.salad]. Now, I have a lower ranking controller. That one's model is based on the higher ranking controller's table.salad, and is salad.ingredients
[04:03:10] <Grokling> Also, $scope is going away soon, so best not to get too reliant on it for that sort of stuff.
[04:03:14] <wafflej0ck> alasi: honestly you pretty much don't need to clarify what Grokling said is the right way to go, you want slim controllers and fatter services/factories
[04:03:34] <alasi> wafflej0ck: hmm ill check it out
[04:03:37] <wafflej0ck> alasi: the service/factory is a singleton so one instance exists for the running of the app and you can store your data there
[04:03:48] *** jonr22 has quit IRC
[04:03:49] <alasi> Ideally the entire app is modifying a global object
[04:03:50] <alasi> Hmm cool
[04:04:16] <Grokling> alasi: Yeah, I have a Context service that acts as my single point of reference globally.
[04:04:52] <Grokling> It doesn't do anything except hold a bunch of arrays.
[04:04:59] <alasi> Grokling: But if theres more stuff on the "table", how do I ensure the current data I'm editing is the salad?
[04:05:09] *** asheinfeld has joined #angularjs
[04:05:11] <alasi> I was hoping the salad would be declared by the higher controller
[04:05:42] <Grokling> alasi: I think you might be confusing us with terminology? A controller connects factories/services with your view layer.
[04:06:01] <alasi> Oh, yes i am confused then Lol
[04:06:11] *** johnnyfive has quit IRC
[04:06:16] *** Left_Turn has quit IRC
[04:06:25] *** NoNMaDDeN has joined #angularjs
[04:06:25] <Grokling> So, you're doing a class based OO kind of thing yeah?
[04:06:31] <alasi> Because you can also choose which element of the table you want within another chunk of a view
[04:06:38] <alasi> Yeh, a text-adventure kind of editor XD
[04:06:57] <alasi> I was extending the metaphor a bit much wasnt i
[04:07:02] *** discgo has joined #angularjs
[04:07:31] <wafflej0ck> you were making me hungry is what you were doin..... where's my salad dammit
[04:07:36] <alasi> haha
[04:07:41] *** asher^ has quit IRC
[04:07:49] *** Greed` is now known as Greed
[04:07:53] <alasi> The whole game is in an object, and then there are sub-objects within it for each scene. You can select which scene you want to edit, and im just confused on where to make sure the entire app knows WHICH scene ur editing
[04:08:35] <Grokling> In my app I'd just check or set Context.active.scene
[04:09:21] *** dcherman has joined #angularjs
[04:09:33] <alasi> What is context?
[04:09:50] <alasi> is it native or a provider or factory or something
[04:09:52] <Grokling> var game = {scenes:[{name:'scene1'...},{..}]}
[04:09:56] *** solarnz has quit IRC
[04:10:13] <alasi> Yes
[04:10:38] <Grokling> Nope - context is something I created (can I claim that? Probably not) as a representation of my application context. I alter it's properties to reflect 'current state' of the app.
[04:11:00] *** vassagus has joined #angularjs
[04:11:07] <alasi> so it is a model ?
[04:11:14] <alasi> sorry i am such a noob
[04:11:34] *** tristanp has joined #angularjs
[04:11:35] <Grokling> it's a 'map'. just a plain old js object kept inside a service.
[04:11:46] <alasi> o ok
[04:11:56] <wafflej0ck> alasi: yup that's a correct way of looking at it, you store your data model and things that manipulate it in factories/services
[04:12:05] *** bhuvanaurora has joined #angularjs
[04:12:08] <wafflej0ck> alasi: you use your controllers to create references to those models, then you bind to them in the view
[04:12:26] *** TyrfingMjolnir has quit IRC
[04:12:27] <alasi> Awesome
[04:12:34] *** cthrax has quit IRC
[04:12:40] <Grokling> So, if you had an initial screen, with a list of scenes.. when you click on a scene, that would do Context.active.scene = scene; Then everywhere else that is also refering to Context.active.scene will know what you're up to.
[04:12:58] *** atomical has quit IRC
[04:14:14] *** Beatzebub has joined #angularjs
[04:14:21] *** bhuvanaurora has quit IRC
[04:14:26] <alasi> So how do you put context into a service? Wouldn't it be more likely to be like myService.getActiveScene() ?
[04:14:37] <Grokling> It seems like I do OO more vigorously than most people, so all my stuff is in custom classes with their own methods. I just think that way. Doesn't make it 'right'.
[04:14:41] *** ron1 has quit IRC
[04:14:48] <Grokling> Context is a service that returns an object.
[04:15:15] <Grokling> So once it's injected, you can just look at it's properties directly, without needing getters or setters.
[04:15:27] <wafflej0ck> yeah typically that's easier
[04:15:27] <alasi> Thats really cool
[04:15:43] *** vassagus has quit IRC
[04:16:02] *** zzing has joined #angularjs
[04:16:16] <wafflej0ck> alasi: if you want to try and isolate things more or something directives with isolate scope can help to "separate" things a bit more so you aren't always needing to reference things from the top level of the data model or whatever but typically you still have some set of factories/services backing that
[04:16:21] *** Renesans has joined #angularjs
[04:16:47] *** Renesans has quit IRC
[04:17:22] <Grokling> I use my resolves to 'prime' Context before my controllers get to see it. Makes it really slick to interact with things.
[04:18:07] <wafflej0ck> alasi: typically I think the route to learning is do everything in a controller, learn about factories/services, realize that's where you wanted your model to be defined really, once that settles in start learning to write directives (at least this is basically the path I took)
[04:18:13] *** whitebook has joined #angularjs
[04:18:14] *** Spitstream has quit IRC
[04:18:21] *** cthrax has joined #angularjs
[04:18:21] *** ron1 has joined #angularjs
[04:18:54] <alasi> aha, and Context's .$get is just the value it assumes when its injected
[04:19:00] *** ekinmur has joined #angularjs
[04:19:02] *** DoubleAW is now known as DoubleAW|STFU
[04:19:04] <alasi> hang on i need to try this before i keep asking questions
[04:19:11] *** DoubleAW|STFU is now known as DoubleAW
[04:19:19] <Grokling> Pretty much the same for me. I moved to services in that second phase, then realised that factories were a better fit for what I was doing.
[04:19:24] <alasi> oh nvm thats a provider
[04:19:42] <Grokling> Context is something you make up for yourself.. it doesn't come in the packet.
[04:19:44] <wafflej0ck> alasi: actually service/factories are just shortcuts for defining a provider
[04:19:48] *** cthrax has quit IRC
[04:19:53] *** rchavik has joined #angularjs
[04:19:54] <wafflej0ck> alasi: so you're half on the right track :)
[04:19:58] *** rchavik has quit IRC
[04:19:58] *** rchavik has joined #angularjs
[04:20:01] <alasi> Ok haha
[04:20:31] <alasi> oh im starting to get this a little better now
[04:21:11] *** doginal has quit IRC
[04:21:39] *** linojon has quit IRC
[04:21:45] <Grokling> I can't concentrate on what I'm meant to be doing. Might take a break and make a plunker for you..
[04:21:54] *** tristanp has quit IRC
[04:22:10] *** mmealling has quit IRC
[04:22:10] <alasi> :o
[04:22:40] *** artisangoose has joined #angularjs
[04:23:04] *** BobbieBarker has quit IRC
[04:24:02] *** jimvideo has joined #angularjs
[04:24:24] *** ron1 has quit IRC
[04:24:42] *** ron1 has joined #angularjs
[04:24:51] *** {DV8} has quit IRC
[04:24:58] *** roven has joined #angularjs
[04:25:11] *** davesidious_ has joined #angularjs
[04:29:02] *** davesidious has quit IRC
[04:29:37] *** doginal has joined #angularjs
[04:29:53] *** Aliks has joined #angularjs
[04:29:53] *** roven has quit IRC
[04:30:02] *** Sontakey has joined #angularjs
[04:31:48] *** SergioFilhow has quit IRC
[04:32:36] *** asher^ has joined #angularjs
[04:33:19] *** SergioFilhow has joined #angularjs
[04:34:03] *** asheinfeld has quit IRC
[04:34:42] *** cthrax has joined #angularjs
[04:35:50] <alasi> Hmm yeah all the code samples im finding are irrelevant
[04:35:55] *** s3shs has joined #angularjs
[04:36:02] *** TyrfingMjolnir has joined #angularjs
[04:36:24] <Grokling> alasi: I'm moments away from being relevant ;-)
[04:36:33] <alasi> Grokling: omg :D
[04:37:20] *** s3shs has quit IRC
[04:37:22] *** Milkweed has quit IRC
[04:37:32] *** SergioFilhow has quit IRC
[04:37:56] *** josh has quit IRC
[04:38:29] <recurrence> Is there a lib that would let you load two versions of a module in the same page?
[04:39:10] *** Poppa is now known as Poppabear
[04:39:14] <alasi> :O
[04:39:25] *** stephen has quit IRC
[04:40:13] <Grokling> alasi: Thats factories, factory methods, instances, instance methods, and the Context service all in one handy brain-bending little plunker..
[04:40:24] <alasi> Lol brain bending is true :O
[04:40:38] <alasi> Will one always use all 3?
[04:40:56] *** dannyc has joined #angularjs
[04:41:27] <Grokling> The way I use factories is not the most common (but the really smart people in here do it that way, and I want to be like them when I grow up)
[04:41:41] <Grokling> If you're thinking OO, this is a great way to go.
[04:41:45] <alasi> woooow
[04:41:46] *** audioburn has quit IRC
[04:42:32] <alasi> This is going to be my bible XD
[04:42:54] *** TyrfingMjolnir has quit IRC
[04:42:54] <alasi> The way factories work is perfect, it lets me load different game files
[04:43:19] *** Iravan has quit IRC
[04:43:22] <alasi> Whoaaaa
[04:43:29] <alasi> Lol this is blowing my mind right now
[04:43:38] *** Iravan has joined #angularjs
[04:43:42] *** JoeGaudet has joined #angularjs
[04:43:58] <Grokling> Make one factory for each 'Class' of thing. A Game factory, a Scene factory, a Character factory etc.
[04:44:04] *** jordandotdev has quit IRC
[04:44:38] <alasi> Ohh
[04:45:02] <Grokling> Then, you do new Class(someJsonObject), and you'll get an object with relevant methods and properties.
[04:45:31] *** dannyc has quit IRC
[04:46:06] *** SergioFilhow has joined #angularjs
[04:46:17] <Grokling> We can also inherit class behaviors - so common stuff like 'find' we only have to write once, and all our factories can inherit it. (not shown in this plunker - it's got enough going on already)
[04:46:44] *** darrin has quit IRC
[04:46:48] *** zanea is now known as zanea|away
[04:46:52] *** Prjio has joined #angularjs
[04:47:04] <alasi> the params $scope, Gadget, Context in the controller.. it always follows the Factory, Service model?
[04:47:12] *** Aliks has quit IRC
[04:47:34] <Grokling> No specific order there.. just inject what you need.
[04:47:39] *** TyrfingMjolnir has joined #angularjs
[04:47:41] <alasi> aha
[04:49:01] <alasi> Shouldnt gadgetCache be its own factory, gadgets?
[04:49:02] *** dseitz has quit IRC
[04:49:21] <alasi> and then u make instances of gadget and append them to gadgets
[04:50:14] *** wallerdev has joined #angularjs
[04:50:41] <Grokling> Ah. I knew you'd get to that! No. Gadget is the factory. One of the properties of the factory is that cache. The factory is instantiated once, and persists for the live of the app (a singleton). The factory can instantiate new gadgets. (gadget instances, distinct from the Gadget factory)
[04:51:11] <lilbaby> Angular routes can't have dashes in them like /dogs/toy-poodle?
[04:51:20] <Grokling> What it means is that we can do something like var myGadget = Gadget.find({id:2});
[04:51:31] <Grokling> Which is a factory method.
[04:51:39] *** tristanp has joined #angularjs
[04:51:50] *** Prjio has quit IRC
[04:51:51] *** TyrfingMjolnir has quit IRC
[04:51:52] <Grokling> Then we can do myGadget.save() which is an instance method.
[04:52:02] <alasi> hmm
[04:52:02] *** wallerdev has quit IRC
[04:52:30] *** crakrjak has joined #angularjs
[04:52:47] *** devhoag has joined #angularjs
[04:53:19] *** TyrfingMjolnir has joined #angularjs
[04:53:19] *** {DV8} has joined #angularjs
[04:53:19] *** cthrax has quit IRC
[04:53:52] <alasi> Because what if there is a shop, and the shop has a name, customers, AND gadgets. Would it then be Shop factory, and then a cache for the name, customers and gadgets?
[04:54:48] <Grokling> It would be a Shop factory. It would create instances of shops. Each shop would have the properties you outlined, AND an array of gadgets.
[04:56:45] *** caitp has joined #angularjs
[04:57:02] *** bundledavid has joined #angularjs
[04:57:20] *** kapil__ has joined #angularjs
[04:57:26] *** Shrooms has joined #angularjs
[04:57:45] <alasi> this is so fun
[04:57:48] *** mmealling has joined #angularjs
[04:57:55] *** jmichaelward has joined #angularjs
[04:58:03] *** doodlehaus has quit IRC
[04:58:10] *** gunn has quit IRC
[04:58:55] <Grokling> alasi: Have a go at adding the shop factory to the plunker..
[04:59:04] <alasi> Grokling: ok
[04:59:07] *** bhuvanaurora has joined #angularjs
[04:59:08] *** ekinmur has quit IRC
[04:59:15] <Grokling> Actually, hold on, I'll stream it, then I can help as you go.
[04:59:27] <alasi> Ok XD
[04:59:39] *** Hackwar1 has joined #angularjs
[04:59:45] <alasi> Bear with me as I am still confused af and it will probbaly only come to me later
[04:59:53] *** gunn has joined #angularjs
[05:00:12] <Grokling> That's situation normal around here. I'm always confused about something. Or sleeping. One of the two.
[05:00:25] <alasi> Yes and I am starting to require the latter D:
[05:00:32] <alasi> Ok lets do this
[05:00:47] *** tristanp has quit IRC
[05:00:56] *** threesixes has quit IRC
[05:01:01] *** jaydubya has quit IRC
[05:01:22] *** bundledavid has quit IRC
[05:01:23] *** caitp has quit IRC
[05:01:25] *** threesixes has joined #angularjs
[05:01:37] *** jaydubya has joined #angularjs
[05:01:52] *** Hackwar has quit IRC
[05:02:34] *** jmichaelward has quit IRC
[05:02:34] *** CodeFriar has quit IRC
[05:03:05] *** hecatonicosachor is now known as sacho
[05:03:10] <alasi> im just replacing keywords at this point
[05:03:24] *** Orbitrix has quit IRC
[05:03:31] *** crakrjak has quit IRC
[05:03:49] *** blackkbo- has joined #angularjs
[05:04:20] *** SergioFilhow has quit IRC
[05:05:15] *** hsn has quit IRC
[05:06:30] *** jaydubya has quit IRC
[05:09:06] *** aslate has joined #angularjs
[05:10:42] *** scriptThis has quit IRC
[05:13:17] *** aslate has quit IRC
[05:13:43] *** artisangoose has quit IRC
[05:14:24] *** Maelstro has joined #angularjs
[05:15:01] *** s3shs has joined #angularjs
[05:16:04] *** jordandotdev has joined #angularjs
[05:17:39] *** renlo has joined #angularjs
[05:17:42] *** renlo has left #angularjs
[05:18:07] *** Beatzebub has quit IRC
[05:18:34] *** renlo has joined #angularjs
[05:19:18] *** burzum2 has joined #angularjs
[05:19:19] *** Iravan_ has joined #angularjs
[05:19:37] *** bhuvanaurora has quit IRC
[05:20:10] *** ekinmur has joined #angularjs
[05:20:41] *** s3shs has quit IRC
[05:21:01] <lilbaby> Anyone know much about routes?
[05:21:39] *** burzum has quit IRC
[05:22:14] *** doug64k has quit IRC
[05:22:32] *** bhuvanaurora has joined #angularjs
[05:23:13] *** bmac has quit IRC
[05:23:31] *** Iravan has quit IRC
[05:24:11] *** ogdabou has joined #angularjs
[05:24:24] <alasi> Thanks so much Grokling!!!!!
[05:24:37] *** bmac has joined #angularjs
[05:24:49] *** alasi has quit IRC
[05:24:50] <Grokling> alasi: np. I should be around tomorrow. No idea what times though.
[05:25:09] *** mmealling has quit IRC
[05:25:13] *** tfennelly has joined #angularjs
[05:25:27] *** NoNMaDDeN has quit IRC
[05:25:37] <Grokling> what's happening lilbaby ? I know a bit about routes.. not a tonne, but maybe enough.
[05:26:06] *** diegoaguilar has joined #angularjs
[05:26:20] *** plex0r has quit IRC
[05:26:28] <lilbaby> Grokling: I have a route /patients/:patientId, and a patient Id consists of a few hyphen separated strings like 31280adf-f3f32fa-fdsa21
[05:26:46] <Grokling> heh.. another medical app!
[05:26:48] <lilbaby> Grokling: it routes to the template and controller, but immediately reroutes to the fall through
[05:27:32] <Grokling> lilbaby: Do you have onStateChange logging set up?
[05:27:51] <lilbaby> Grokling: no how can I do that?
[05:28:00] <Grokling> ui-router?
[05:28:16] * Grokling hopes, cause he doesn't know anything about the other one..
[05:28:48] <lilbaby> Grokling: oh, unfortunately not
[05:29:38] *** exp10r3r has joined #angularjs
[05:29:46] <Grokling> lilbaby: I guess you could take the opportunity to join the majority of angularites?
[05:29:55] <Grokling> That might fix it in itself..
[05:30:03] <wafflej0ck> yeah most of the knowledge transfers in either direction really
[05:30:07] *** tfennelly has quit IRC
[05:30:22] <wafflej0ck> you just lose nested states and abstract states and sibling states and have route based template/controller with the old router
[05:30:33] <wafflej0ck> pretty sure it still has the events too though
[05:30:42] *** TyrfingMjolnir has quit IRC
[05:30:42] *** instence_ has joined #angularjs
[05:31:07] *** instence has quit IRC
[05:31:39] <wafflej0ck> basically to understand ngRoute if you already know ui-router you just have to forget everything about states/inheritence and think if you only had one ui-view without a name
[05:32:13] <Grokling> Kind of like imagining your self with no arms, and only one leg really...
[05:32:16] <wafflej0ck> haha
[05:33:09] *** Yufei has quit IRC
[05:33:35] <lilbaby> Grokling: well how do I do this on statechange logging?
[05:34:41]
<wafflej0ck> lilbaby: see the docs here with $routeChangeSuccess and $routeChangeStart https://docs.angularjs.org/api/ngRoute/service/$route really though if you're pretty early on in your project (like not 90% done) you may want to just switch to ui-router at this point it's worth learning
[05:35:10] <lilbaby> wafflej0ck: I'm pretty far :(, but I'll check it in the future.
[05:35:22] <lilbaby> I've been using angular generator :(
[05:35:30] <lilbaby> generator-angular I should say
[05:35:38] <wafflej0ck> lilbaby: I use that too but just modified it severly from the base
[05:35:55] <Grokling> Ouch. Yeah, I'd just make the change. I was in a similar situation before I changed. I won't be going back anytime soon!
[05:37:04] <renlo> how do you guys 'collect' / organize all of your tests?
[05:37:07] <wafflej0ck> I used* that I should say now I use my own scripts that just clone a base repo for a website or component
[05:37:19] <wafflej0ck> renlo: in a tests folder, nothing really fancy
[05:37:54] <wafflej0ck> renlo: typically mirror the scripts folder where possible to make it easy to find and match things up and not spend time thinking about it
[05:38:13] <wafflej0ck> renlo: the istanbul grunt test:coverage, stuff is nice too so you can see how much of the code has tests written
[05:38:40] *** ron1 has quit IRC
[05:39:01] *** DrMabuse has joined #angularjs
[05:39:08] *** ron1 has joined #angularjs
[05:39:16] <renlo> thanks wafflej0ck, ill look into it
[05:39:56] <wafflej0ck> renlo: yeah if you already have grunt/gulp and karma configured it's easy to activate/configure the coverage reporting and a good motivater to show you what you've covered so far (and the long road ahead :) )
[05:40:33] <renlo> this is going to be a first time for me haha, already have a skeleton application up and want to get tests set up before moving too far ahead
[05:40:48] <wafflej0ck> renlo: good idea
[05:40:58] <renlo> i've seen implementations where they have the tests near the code
[05:41:09] *** ron1 has quit IRC
[05:41:14] <renlo> ie, if you have a partial then next to the partial you have a some_partial-test.js
[05:41:31] *** BobbieBarker has joined #angularjs
[05:41:32] <wafflej0ck> yeah I just like everything to have a bucket, also don't think you can really test partials can you?
[05:41:51] *** obelich has joined #angularjs
[05:41:56] <renlo> i have controllers for mine (gonna switch most of them over to directives)
[05:41:59] <wafflej0ck> I have tests for filters, controllers, and services, but haven't learned to test directives yet
[05:42:02] <obelich> hiyas good nite :)
[05:42:23] *** mogaj has joined #angularjs
[05:42:38] <obelich> Some one using AngularJs + Rails ?
[05:42:44] *** smoores has joined #angularjs
[05:43:46] <wafflej0ck> obelich: it doesn't really matter what the backend is so long as it uses JSON to communicate and ideally is RESTful, I'm sure there are lots of people using Ruby and Angular
[05:43:49] <ish> Is there away to apply an ng-click over a <tr>?
[05:43:50] *** DrMabuse has quit IRC
[05:43:51] <Lewix> obelich: i am
[05:44:13] <obelich> wafflej0ck: ty :)
[05:44:54] <obelich> Lewix: yupi jejeje :) i have some problem here in the method to delete in a form give a sec to make a gist :) and many many thanks again :)
[05:45:18] *** maikowblue has quit IRC
[05:46:12] *** mennea has joined #angularjs
[05:46:39] *** mennea has quit IRC
[05:46:45] *** nop has joined #angularjs
[05:46:50] *** nop has left #angularjs
[05:47:16] <wafflej0ck> obelich: I don't know Ruby but I can tell you this isn't the way to go
[05:47:24] *** mennea has joined #angularjs
[05:47:30] <wafflej0ck> obelich: in 99% of cases you don't want your backend writing out HTML
[05:47:37] *** Prjio has joined #angularjs
[05:47:38] <obelich> Lewix: for some razon if i delete one detail and then push submit button it create again the delete :(
[05:47:43] *** dcherman has quit IRC
[05:47:58] *** s3shs has joined #angularjs
[05:48:10] <wafflej0ck> obelich: you want HTML to be HTML, JS to be JS and angular to communicate with your backend using AJAX there should be nearly no need for server side templating
[05:48:50] <obelich> wafflej0ck: im only using ng-repeat to add the hidden inputs
[05:49:30] <obelich> wafflej0ck: and in edit if is new detail the new one no have id input
[05:49:33] *** ron1 has joined #angularjs
[05:49:41] <obelich> to that i add ng-if :P
[05:49:54] <wafflej0ck> obelich: still you Ruby shouldn't be mixed up with mark-up, only reason for this is if you benefit from server side caching and you guarantee your service will only ever work for clients in a browser
[05:49:56] <Lewix> obelich: it probably does not delete on the database level
[05:50:05] <wafflej0ck> your* Ruby
[05:50:21] *** delight has joined #angularjs
[05:50:29] *** bhuvanaurora has quit IRC
[05:51:00] <wafflej0ck> obelich: doing it this way completely couples the backend and the front end and makes testing difficult
[05:51:10] <wafflej0ck> obelich: do what you want but heed my warning!!!! :P
[05:51:58] *** bhuvanaurora has joined #angularjs
[05:52:08] <Grokling> obelich !digress
[05:52:08] <UniBot> Stop what you're doing, take a deep breath and a step back. Try explaining what you're trying to accomplish rather than ask how to accomplish it this way, you may be going down the wrong path.
[05:52:10] *** Prjio has quit IRC
[05:52:21] <obelich> wafflej0ck: i try to make it better but i need to make this work tomorrow :( me english is very bad and dont know good angularjs
[05:52:24] *** lilbaby has quit IRC
[05:52:56] <obelich> Lewix: im sure it delete i revise the database when im delete
[05:53:16] <wafflej0ck> obelich: I know you have a tough time with English sorry, but not about knowing Angular itself really well just separation of concerns (ugg hard to explain without complicated words)
[05:53:45] <obelich> Lewix: but if i click in submit button to update the others fields that item is go back :(
[05:54:04] <Lewix> obelich: use promises..or apply()
[05:54:05] <Lewix> ?
[05:54:36] <obelich> Lewix: i think no :(
[05:54:37] *** delight has quit IRC
[05:54:57] *** bijan has quit IRC
[05:55:06] *** bmac has quit IRC
[05:55:38] *** ron1 has quit IRC
[05:55:42] *** ogdabou has quit IRC
[05:55:59] *** smoores has quit IRC
[05:56:00] <Lewix> eliminarDetalle.then(apply(model_that_changed)) I think
[05:56:14] <obelich> i put the errors show me in the consol
[05:56:54] *** davek has joined #angularjs
[05:56:56] *** ron1 has joined #angularjs
[05:57:06] <obelich> Lewix: can modify the gist please i appreciate it very much :)
[05:57:23] *** cacts|wtf has joined #angularjs
[05:57:45] *** caitp has joined #angularjs
[05:58:28] *** NoNMaDDeN has joined #angularjs
[05:58:30] *** plato1 has joined #angularjs
[05:58:34] <davek> wafflej0ck, preach.
[05:58:42] *** jmichaelward has joined #angularjs
[05:58:42] <wafflej0ck> only do this if you hate life and want to waste it
[05:58:44] <wafflej0ck> hehe
[05:58:52] <wafflej0ck> was gonna not hit enter on that but the preach egged me on :)
[05:59:03] <Lewix> lol
[05:59:06] *** plato has quit IRC
[05:59:23] <obelich> wafflej0ck: im only it in one controller not in all the application :)
[05:59:28] <Lewix> wafflej0ck: am i right about the apply thingie
[05:59:50] <wafflej0ck> eh not sure hard to parse all that code plus spanish
[06:00:17] *** mennea has quit IRC
[06:00:25] <wafflej0ck> Lewix: might be though that something needs to be triggered after the deletion like a new call to fetch data, probably not $apply though
[06:00:34] <wafflej0ck> Lewix: $http will fire that one for ya when the response comes back
[06:00:43] *** cacts has quit IRC
[06:00:44] *** TeddyMurray has quit IRC
[06:00:46] *** TyrfingMjolnir has joined #angularjs
[06:00:49] *** mennea has joined #angularjs
[06:01:18] *** jrajaratnam has joined #angularjs
[06:01:19] <Lewix> wafflej0ck: his model is being reset to the old value somewhat then
[06:01:30] *** delight has joined #angularjs
[06:01:51] <obelich> Lewix: yep :(
[06:02:21] *** caitp has quit IRC
[06:02:24] *** mary5030 has quit IRC
[06:02:58] *** mary5030 has joined #angularjs
[06:03:04] <Lewix> obelich: after you delete you have to update your $scope.model
[06:03:07] <obelich> Lewix: i google for some examples but all times errors and errors many trying and naw can delete but it go back like a ghost
[06:03:19] *** rburns has quit IRC
[06:03:24] <Lewix> with the new set of data
[06:03:30] *** jmichaelward has quit IRC
[06:03:56] *** rburns has joined #angularjs
[06:04:49] <obelich> Lewix: in the method delcurrentdetalle i add $scope.detalles.splice(index, 1);
[06:04:54] *** plato1 has quit IRC
[06:05:15] <obelich> in the view delete in the database delete Lewix
[06:05:43] *** jrajaratnam has quit IRC
[06:05:51] <obelich> Lewix: can make a comment in the gist with the code i need to change please, onegai shimasu
[06:06:13] <Lewix> wafflej0ck: what does $httpBackend.flush(); does (im reading your tests)
[06:06:26] <davek> Lewix, it drops all pending requests.
[06:06:29] *** threesixes has quit IRC
[06:07:03] *** plato has joined #angularjs
[06:07:20] *** SergioFilhow has joined #angularjs
[06:07:22] <Lewix> obelich: what line is it = $scope.detalles.splice
[06:07:24] <wafflej0ck> yeah basically like davek said just completes any pending requests against $http based on whatever you mocked up for $httpBackend to do
[06:07:38] *** mary5030 has quit IRC
[06:07:46] <obelich> 179
[06:08:07] <Lewix> davek: thanks. what's the point of dropping pending requests
[06:08:10] <Lewix> wafflej0ck: ok thanks
[06:08:13] *** mmealling has joined #angularjs
[06:08:34] <obelich> Lewix: in file.js
[06:09:27] *** bijan has joined #angularjs
[06:09:38] <davek> Sorry not dropping, bad choice of words, it clears the current list of pending requests by whatever means they are scheduled to be fulfilled. So if you've mocked a successful response that gets sent and if you've mocked an error, etc, etc.
[06:09:47] *** morenoh149 has joined #angularjs
[06:10:28] <wafflej0ck> Lewix: !google $httpBackend
[06:11:03] <wafflej0ck> Lewix: in the top of the doc there second heading it's got Flushing HTTP requests
[06:11:54] *** SergioFilhow has quit IRC
[06:12:22] <Grokling> Hah wafflej0ck! I wondered how long before someone bust that out in anger ;-)
[06:12:25] *** yashveer has joined #angularjs
[06:12:26] *** jimvideo has quit IRC
[06:12:30] *** bbankes has quit IRC
[06:12:37] <wafflej0ck> haha not in anger just figured I'd use it....
[06:12:46] <wafflej0ck> just realized I wish it had gone to the I'm feeling lucky
[06:12:57] <obelich> Lewix: i see other think the detail i delete get new id not the old id
[06:12:59] *** bhuvanaurora has quit IRC
[06:14:31] *** Spitstream has joined #angularjs
[06:15:40] <Grokling> wafflej0ck: 'in anger' might be a colloquial phrase. It could be swapped for 'for real', or 'in the situation it was designed for'
[06:16:05] <wafflej0ck> gotcha, was just sayin' I'm having a pretty good day :P
[06:16:38] <Grokling> Turns out you don't need the quotes..
[06:16:41] <wafflej0ck> ah
[06:16:43] *** yashveer has quit IRC
[06:17:30] <Grokling> !remember moar is :nick, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)
[06:17:31] <tjsail33> if i have events executing asyncronously, how do i know when to call $scope.$apply and when not to?
[06:17:35] <Grokling> !remember primitives is Because javascript passes primitives by value, the values you assigned to $scope (the ones you're using in your view) are copies and not references, so they won't update when your data changes.
[06:17:53] *** Maelstro has quit IRC
[06:18:12] *** bmac has joined #angularjs
[06:18:20] <Grokling> Sorry - had to fix them.. I wouldn't have slept properly knowing that there were spare quotes on the internet.
[06:18:56] *** P1RATEZ has quit IRC
[06:19:20] <wafflej0ck> tjsail33: basically if you aren't in an angular context like $http callback or $timeout function or ng-click then you'll need to do it
[06:19:29] <TyrfingMjolnir> Any of the authors of AngularJS around?
[06:19:37] *** mmealling has quit IRC
[06:19:41] <wafflej0ck> tjsail33: so anytime you have a element.on('event', function(){}) you need to trigger it yourself basically
[06:19:45] <TyrfingMjolnir> Or anyone with the knowledge of how the DOM is intercepted, please PM me
[06:19:58] <tjsail33> wafflej0ck: alright, thanks.
[06:19:59] <Lewix> obelich: sorry I'm not sure. console.log your get request to investigate
[06:20:08] <tjsail33> TyrfingMjolnir: try just asking here.
[06:20:31] <obelich> i paste the console error in the gist :
[06:20:32] <obelich> :)
[06:20:58] <Grokling> TyrfingMjolnir: !ask!
[06:20:59] <UniBot> Ask forth your question to the all-knowing channel and we shall bestow upon you the answer of correctitude.
[06:21:08] <TyrfingMjolnir> If I would like to use AngularJS' 2 way data binding in other browser interpretable formats how would this be achieved?
[06:21:53] <wafflej0ck> browser interpretable formats?
[06:22:02] <wafflej0ck> TyrfingMjolnir: like SVG?
[06:22:10] <TyrfingMjolnir> or XML
[06:22:17] <TyrfingMjolnir> But SVG sure
[06:22:37] <TyrfingMjolnir> loading the angular.js is pretty straight forward
[06:22:41] *** josh has joined #angularjs
[06:23:16] <wafflej0ck> TyrfingMjolnir: or in the Directives and Bootstrap sections in there along with that
[06:23:48] *** rho has joined #angularjs
[06:23:48] *** rho has joined #angularjs
[06:24:05] <TyrfingMjolnir> Any immediate errors in this one?
[06:24:31] <wafflej0ck> TyrfingMjolnir: ah sorry I'm not familiar enough with SVG to help debug that
[06:24:40] *** ron1 has quit IRC
[06:24:46] <wafflej0ck> I've used it here or there but don't know it well enough to debug really
[06:24:47] *** bhuvanaurora has joined #angularjs
[06:25:03] *** tfennelly has joined #angularjs
[06:25:25] <wafflej0ck> TyrfingMjolnir: I know D3JS is using SVG underlying it and have written some basic D3 based directives
[06:25:43] <TyrfingMjolnir> But that is generating SVG from JS?
[06:25:47] <wafflej0ck> TyrfingMjolnir: basically setting up the watches to update the data for D3 which then updates some element
[06:25:52] *** roven has joined #angularjs
[06:25:59] <TyrfingMjolnir> It's the opposite approach to what I am looking into.
[06:26:09] <wafflej0ck> yeah I see what you're saying
[06:26:39] <wafflej0ck> but not sure how/if angular handles that at all but yeah would dig deep on the HTML compiler stuff and see if there's anything about SVG related to that
[06:27:26] *** nya_ has quit IRC
[06:27:28] *** sanjay has joined #angularjs
[06:27:40] <sanjay> Hello,I want to pass key Value pair into json??pls help out
[06:28:22] <Grokling> sanjay: What? Please clarify..
[06:29:18] <Grokling> var json={}; json[key]=value; ???
[06:29:49] *** jonr22 has joined #angularjs
[06:30:07] *** tfennelly has quit IRC
[06:30:07] *** davek has quit IRC
[06:30:18] *** TyrfingMjolnir has quit IRC
[06:30:32] *** mennea has quit IRC
[06:30:43] *** roven has quit IRC
[06:30:56] *** mennea has joined #angularjs
[06:31:17] <sanjay> in this lang model is not updating..when we r changing key value!!
[06:31:21] *** mennea has quit IRC
[06:31:21] *** tomengland_mbp has joined #angularjs
[06:31:59] *** bhuvanaurora has quit IRC
[06:32:09] <Grokling> sanjay: What are you expecting to happen?
[06:32:10] <wafflej0ck> ah left alread eh
[06:32:16] <wafflej0ck> there's the answer
[06:32:30] *** asher^ has quit IRC
[06:33:02] <sanjay> when we update key and value,it should update in parent model "lang" also !!!
[06:33:29] <Lewix> good night
[06:33:33] *** asher^ has joined #angularjs
[06:33:46] <Lewix> thanks for the help guys
[06:33:46] <wafflej0ck> 'night Lewix
[06:34:37] *** tjsail33 has quit IRC
[06:34:51] *** jonr22 has quit IRC
[06:36:13] *** mmealling has joined #angularjs
[06:37:12] <Grokling> sanjay: I have to leave now - I'm not sure why you're trying to do it that way - better to use an array of things than trying to jam them into an object like that. There's no guarantee of order in an object, and it just makes life difficult in this application.
[06:37:30] *** Lewix has quit IRC
[06:37:35] *** bmac has quit IRC
[06:38:40] *** josh has quit IRC
[06:39:10] *** Raging_Hog has joined #angularjs
[06:39:28] <sanjay> Ok Gorkling..will try...cya..thanks
[06:39:35] *** bhuvanaurora has joined #angularjs
[06:39:57] *** faddah has quit IRC
[06:40:43] *** threesixes has joined #angularjs
[06:43:09] *** charuru has joined #angularjs
[06:43:19] *** josh has joined #angularjs
[06:43:57] *** davek has joined #angularjs
[06:44:34] *** bhuvanaurora has quit IRC
[06:45:59] *** bundledavid has joined #angularjs
[06:48:20] *** nya has joined #angularjs
[06:48:22] *** Prjio has joined #angularjs
[06:48:36] <sanjay> hello need help
[06:48:50] *** bhuvanaurora has joined #angularjs
[06:48:54] *** mennea has joined #angularjs
[06:49:00] *** rho has quit IRC
[06:50:23] *** bundledavid has quit IRC
[06:50:35] *** nya has quit IRC
[06:50:47] *** renlo has left #angularjs
[06:51:05] *** renlo has joined #angularjs
[06:51:09] *** nya has joined #angularjs
[06:52:54] *** zzing has quit IRC
[06:53:05] *** jrajaratnam has joined #angularjs
[06:53:17] *** Prjio has quit IRC
[06:53:51] *** zhaoliang has joined #angularjs
[06:54:40] *** zhaoliang is now known as white_bird
[06:55:01] *** Sontakey has quit IRC
[06:55:32] *** greatdex has joined #angularjs
[06:55:38] *** bhuvanaurora has quit IRC
[06:55:53] *** startuper has joined #angularjs
[06:56:13] <wafflej0ck> sanjay: yeah you aren't going to be able to change the name of the property
[06:56:16] *** white_bird has left #angularjs
[06:56:30] *** DrMabuse has joined #angularjs
[06:57:05] <wafflej0ck> sanjay: this is equivalent to, var foo = {prop:'Apple'};// now change foo.prop to be foo.fruit
[06:57:18] <wafflej0ck> sanjay: you just can't do that
[06:57:37] <sanjay> yea wafflejack...actually i want to pass key value to the object....dynamically...m using ng-model....when i m updating key and value in text box...it is not updating into "lang" model
[06:57:53] <wafflej0ck> right I'm saying you can't change what a key is
[06:58:03] <wafflej0ck> think about doing it in JS it doesn't make sense
[06:58:07] *** aslate has joined #angularjs
[06:58:08] <wafflej0ck> you're making new properties on the object
[06:58:12] <sanjay> then how it is possible ??like array ?
[06:58:14] *** caitp has joined #angularjs
[06:58:20] <wafflej0ck> you wouldn't be "renaming" the property
[06:58:32] <wafflej0ck> you can have an object with two values you can change no problem
[06:58:43] *** doodlehaus has joined #angularjs
[06:58:50] <wafflej0ck> but you can't change the property and retain the value without copying the value to a new property and deleting the old property
[06:59:27] *** jmichaelward has joined #angularjs
[06:59:54] *** bhuvanaurora has joined #angularjs
[07:00:10] <wafflej0ck> and the new propert you make isn't really related to the old property you had in that case it just happens to point to the same value/object
[07:00:16] *** Sontakey has joined #angularjs
[07:00:17] <wafflej0ck> property*
[07:01:06] *** DrMabuse has quit IRC
[07:01:23] <sanjay> waffelj0ck: is there any solution to get 2 way data binding to model described in script.js? I wanted both key and value of languageKey editable
[07:01:40] <wafflej0ck> no there is literally no way to do that in any language
[07:01:49] <wafflej0ck> er any language I'm aware of
[07:01:56] <wafflej0ck> maybe LISP or haskell or something
[07:02:06] *** ciro_nunes has quit IRC
[07:02:34] *** aslate has quit IRC
[07:02:37] <renlo> wafflej0ck: when you run your angular tests, do you run them all at once, or just one at a time
[07:02:37] *** caitp has quit IRC
[07:02:56] <wafflej0ck> renlo: all at once but keep in mind all is like 20 :)
[07:03:12] <renlo> how do you run them all at once? what tool do you use?
[07:03:12] <wafflej0ck> itt or ddescribe are nice to isolate sections though
[07:03:16] <wafflej0ck> grunt
[07:03:21] *** doodlehaus has quit IRC
[07:03:55] *** {DV8} has quit IRC
[07:04:07] <renlo> was that the grunt-istanbul repo?
[07:04:12] *** jmichaelward has quit IRC
[07:04:20] <wafflej0ck> renlo: I started with the yeoman generator-angular plugin to get the Gruntfile.js that has test config parts already setup (cause didn't want to have to learn it all up front)
[07:04:40] <wafflej0ck> renlo: the istanbul part is just for the code coverage portion that reports how much of the JS is touched by tests
[07:04:53] <renlo> ah
[07:05:03] *** mmealling has quit IRC
[07:05:10] <renlo> thanks man, been looking for the past 30 minutes on how this is done
[07:05:13] <renlo> ill check out that generator
[07:05:26] *** devhoag has quit IRC
[07:05:29] <wafflej0ck> the way it fits together is, grunt runs Karma which is a test runner which uses Jasmine tests (optionally other test suites which has the stuff like expect().toBe()) but yea generator has it all in place good reference if nothing else
[07:05:39] <wafflej0ck> renlo: gulp is very popular nowadays too
[07:05:52] <renlo> yea i use gulp, i just need to see an example and i can emulate it
[07:05:56] <renlo> ie copy :P
[07:05:56] <wafflej0ck> drop in replacement for grunt but has it's own plugins mostly based on the same stuff
[07:05:58] *** dantheta has quit IRC
[07:05:58] <wafflej0ck> cool
[07:06:43] *** josh has quit IRC
[07:07:00] *** Raging_Hog has quit IRC
[07:08:07] *** SergioFilhow has joined #angularjs
[07:09:59] <wafflej0ck> renlo: I typically just leave Jenkins to run the tests and e-mail me if something went wrong then I run them locally to see what's up, not really enough tests yet to make it great but it's better than nothing
[07:10:49] <renlo> yea this is my first time working with tests, just trying to get set up in a somewhat decent way. at my work we are going to be using jenkins too to run things in the background
[07:11:56] <wafflej0ck> renlo: yeah I did a lot of previous AS3 and Java dev did more JUnit testing than tests on the AS3 side but we had some
[07:12:22] *** SergioFilhow has quit IRC
[07:13:15] *** bijan has quit IRC
[07:13:37] <wafflej0ck> right now working on Jenkins build configurations for a few components I broke out but have to fiddle with the Makefile and whatnot for each to deploy to the right place and debugging along the way
[07:13:45] *** Fire-Dragon-DoL has quit IRC
[07:13:54] *** chabier has joined #angularjs
[07:14:17] *** josh has joined #angularjs
[07:14:38] *** Beatzebub_ has joined #angularjs
[07:15:26] <renlo> how big is your application?
[07:17:30] *** cacts|wtf has quit IRC
[07:18:34] *** shepheb has quit IRC
[07:18:43] *** Spitstream has quit IRC
[07:18:47] *** startuper has quit IRC
[07:19:08] *** jrajaratnam has quit IRC
[07:20:09] <wafflej0ck> renlo: that's a really hard question to answer
[07:20:12] *** tfennelly has joined #angularjs
[07:20:22] *** shepheb has joined #angularjs
[07:21:29]
<wafflej0ck> renlo: I've done like 9 sites in angular couple of them just focused on payment forms attached to peoples existing sites (usually made with something horrible) I have a CRM app I've been cranking on for a bit here's the cloc output for that http://paste.ubuntu.com/9279044/ most of the PHP is in the vendor folder that it's showing there though
[07:22:11] *** chabier has quit IRC
[07:23:10] <renlo> ouch, php :P
[07:23:36] <wafflej0ck> renlo: eh I like it lots of haters but easy to ignore when things are working fine
[07:24:10] *** dannyc has joined #angularjs
[07:24:25] <wafflej0ck> renlo: Eloquent ORM gives you ActiveRecord and an abstraction from the underlying peristence which is what you get in any modern backend framework/ORM so to me it doesn't matter a ton
[07:24:36] *** chabier has joined #angularjs
[07:24:39] *** tfennelly has quit IRC
[07:25:09] *** soee has quit IRC
[07:27:15] <renlo> I've actually never really played around with PHP other than simple echos / editing random stuff here and there, but yea once you get an ORM it shouldn't be much different from other implementations
[07:28:06] *** recurrence has quit IRC
[07:28:54] *** dannyc has quit IRC
[07:29:39] <wafflej0ck> I did a lot of Java stuff in the past but maintaining the Java server is more work than PHP and just not worht it unless you're dealing with really high volume sites where you need to be able to use clusters of machines
[07:29:54] *** mennea has quit IRC
[07:29:56] *** AviMarcus has joined #angularjs
[07:30:25] *** plekplek has joined #angularjs
[07:30:30] *** josh has quit IRC
[07:30:32] *** mennea has joined #angularjs
[07:30:39] *** Aliks has joined #angularjs
[07:31:07] <renlo> spring?
[07:31:22] <renlo> *were you using spring?
[07:31:23] <wafflej0ck> yeah learned the ropes on that but didn't know it in depth
[07:32:13] <renlo> yea i've never had a project with enough volume to use something like that, although it seems intriguing
[07:32:16] <wafflej0ck> like learned about setting up the routing with it and setting up the beans to deal with authorization and some other things but only learned the basics, mostly writing DTO/DAO parts in Java
[07:34:01] *** goolia has quit IRC
[07:34:41] *** asheinfeld has joined #angularjs
[07:35:14] *** rburns has quit IRC
[07:35:38] *** rburns has joined #angularjs
[07:36:09] *** DrMabuse has joined #angularjs
[07:36:47] *** ggrzybek has joined #angularjs
[07:36:59] *** lampinen has joined #angularjs
[07:37:58] <wafflej0ck> heh next Adventures in Angular podcast to listen to in the queue was "Preferred Backends"
[07:39:10] *** IJNX has joined #angularjs
[07:39:22] *** kontinuity has joined #angularjs
[07:39:40] *** asheinfeld has quit IRC
[07:39:48] *** blackkbo- is now known as blackkbot
[07:40:31] <BahamutWC|Work> preferred backends?
[07:40:47] <BahamutWC|Work> sounds like a whole can of worms
[07:41:10] <davek> wafflej0ck, or you like performance. Java boasts the fastest turnaround times of any framework and certainly trumps PHP in most tests.
[07:41:30] <davek> By like performance I mean need performance, like your site actually depends on quick turnaround.
[07:41:31] <BahamutWC|Work> fastest turnaround meaning performance?
[07:41:47] <BahamutWC|Work> don’t think anyone would question that
[07:41:47] <Fifty5Plus> davek: how does node.js compare?
[07:41:49] <davek> Time from initial request to received response. There are various measurements of performance.
[07:42:23] <BahamutWC|Work> node does pretty well from all metrics I’ve seen, but just a little slower than Java
[07:42:46] <davek> Fifty5Plus not as good as Java generally, much better than PHP.
[07:43:05] <BahamutWC|Work> well, hard not to be faster than PHP currently
[07:43:21] *** dannyc has joined #angularjs
[07:43:22] <BahamutWC|Work> although PHP should be a lot better when the JIT lands
[07:43:29] <BahamutWC|Work> (than it currently is)
[07:43:31] <renlo> haha wafflej0ck
[07:43:53] <davek> PHP should have been a lot better a long time ago, I don't see the incentive in trying to modernize that language.
[07:43:54] *** faddah has joined #angularjs
[07:44:08] *** themime has quit IRC
[07:44:11] <BahamutWC|Work> most web servers still run PHP
[07:44:18] <sacho> should have?
[07:44:20] *** bhuvanaurora has quit IRC
[07:44:24] <sacho> that's a pretty strong statement to make
[07:44:52] <wafflej0ck> renlo: ah it's just the regulars :)
[07:44:54] <davek> BahamutWC|Work, which is not really a good indicator of a language's quality.
[07:45:13] *** sirsirsir has joined #angularjs
[07:45:13] <davek> WordPress, Joomla, etc grossly inflate those statistics.
[07:45:16] <BahamutWC|Work> no, but just pointing out that improving it wouldn’t be completely fruitless
[07:45:37] <BahamutWC|Work> and still a worthwhile effort for those concerned with those areas
[07:45:54] <BobbieBarker> there are a lot of back ends still being built on PHP
[07:45:59] <davek> Yeah, they still release new standards updates for Fortran that add to the language.
[07:46:20] <davek> I'm just saying holding out for PHP to be the next big back end is going to get pretty lonely.
[07:46:37] <BobbieBarker> PHP isn't going to be the next big back end... pretty sure it already is.
[07:46:43] <davek> Definitely isn't.
[07:46:46] <renlo> it is currently the biggest though
[07:46:55] <BobbieBarker> thats my point
[07:46:59] <renlo> but that includes wordpress, joomla, etc
[07:47:03] <wafflej0ck> yeah depends on how you define that I'm sure
[07:47:07] <BobbieBarker> yeah
[07:47:08] <davek> You're thinking market share, which I've already mentioned, is over-inflated by the number of popular CMS systems written in it that are purely fire and forget.
[07:47:09] <wafflej0ck> there's a lot of previous work
[07:47:21] <davek> Or primarily, not purely.
[07:47:23] *** dannyc has quit IRC
[07:47:31] <sacho> davek, so? upgrading php means eventual upgrades to those systems.
[07:47:36] <BobbieBarker> hey i'll jump to the front of the line on hating shit like WP and joomla, but the reality of that situation for the industry is that there is a lot of money flowing throw those piece of shit sites
[07:47:47] <sacho> they're not fire and forget all the time.
[07:47:47] <davek> sacho, so? How does that make PHP a good language?
[07:47:48] <BahamutWC|Work> WordPress and Drupal are still pretty popular - even prevalent around Bay Area startups for company homepages
[07:48:01] <sacho> davek, it doesn't, but that's not what you were talking about...
[07:48:19] *** dnull has quit IRC
[07:48:27] <davek> "PHP should have been a lot better a long time ago, I don't see the incentive in trying to modernize that language."
[07:48:36] <wafflej0ck> there's also Magento and lots of other "smaller" projects built on it and tons of interoperable APIs and example code to do all sorts of things
[07:48:37] <davek> Pretty much exactly what I was talking about.
[07:48:51] <sacho> davek, you're not making any sense.
[07:48:57] <wafflej0ck> I'm not trying to hold out on it forever but good enough for now
[07:49:07] <BobbieBarker> davek wheren't you in here like 3-4 weeks ago trolling about JS too?
[07:49:08] <sacho> There's systems that use php. They benefit from upgrading php.
[07:49:10] *** Prjio has joined #angularjs
[07:49:11] <Fifty5Plus> while i am barely following the tail end of this exchange, are you guys saying that cobol is fantastic becuse of the sheer amount of $dollars$ that it's powering withing the banking industry ;?)
[07:49:12] <BahamutWC|Work> I actually like working in Symfony
[07:49:28] <sacho> There's also systems that use fortran.
[07:49:30] <BahamutWC|Work> but one thing that is frustrating is setting up testing tooling is a pain in PHP
[07:49:32] <sacho> (more than haskell, for example)
[07:49:46] <davek> sacho, I think you're misunderstanding me. Performance improvements are done by implementers, language specifications are a different thing.
[07:49:52] <davek> Also, I use Fortran.
[07:50:07] <sacho> davek, yes, you were arguing "but most of those things are fire and forget! they'll never see the benefits!"
[07:50:09] <sacho> which I disagree with.
[07:50:18] <sacho> and then you somehow non-sequitur that to "php is a bad language"
[07:50:33] <davek> sacho, what? I never said that at all
[07:50:41] <sacho> <davek> sacho, so? How does that make PHP a good language?
[07:50:49] *** JohnBat26 has joined #angularjs
[07:51:06] *** bhuvanaurora has joined #angularjs
[07:51:09] <sacho> <davek> You're thinking market share, which I've already mentioned, is over-inflated by the number of popular CMS systems written in it that are purely fire and forget.
[07:51:13] <wafflej0ck> ah match in the powder keg, I'm missing my podcast
[07:51:16] *** jlmitch5dev has joined #angularjs
[07:51:25] <BahamutWC|Work> see what you started wafflej0ck!
[07:51:35] *** speaking1ode has joined #angularjs
[07:51:37] <davek> Yes... it is a poorly designed language.
[07:51:43] *** ome has quit IRC
[07:51:43] <sacho> davek, ok? so?
[07:51:49] <BahamutWC|Work> so is JavaScript
[07:51:52] <sacho> what does that have to do with upgrading it benefiting people?
[07:51:59] *** Sontakey has quit IRC
[07:52:00] <davek> sacho, so that was my point, you're getting all mustered up over an imaginary argument
[07:52:03] *** stephen has joined #angularjs
[07:52:15] <davek> sacho, that wasn't the discussion, either stay on topic or hop off the train.
[07:52:37] <sacho> the bullshit discussion "language is good at being a server" which is nonsense?
[07:52:38] <davek> BahamutWC|Work, that can definitely be argued BUT I do like the way they're moving with ES6.
[07:52:49] <davek> sacho, what?
[07:52:55] *** speakingcode has quit IRC
[07:53:08] <sacho> that's what you started with.
[07:53:42] <sacho> java(the language? or a platform using it?) is the fastest at turnaround!
[07:53:46] <davek> No not at all, again please stop with the straw men, this was not intended as a flame war.
[07:53:54] <sacho> you also called java a framework, which was more nonsense
[07:53:54] <davek> It is...
[07:53:55] <wafflej0ck> davek: agree on the move to ES6 I need to start using traceur ASAP
[07:54:14] <davek> Java-based frameworks consistently top the performance charts, sacho.
[07:54:23] *** nothingPT has quit IRC
[07:54:25] <stephen> Anyone participating in the Global Hackathon?
[07:54:29] <stephen> Koding?
[07:54:40] <davek> wafflej0ck, I'm drafting v2 of our site to just do the whole backend in ES6 with node's harmony support.
[07:55:18] <davek> Java has its own share of cruft, to be clear. There is no language in existence that is without its flaws, and that is not at all limited to programming languages. That is the nature of language itself.
[07:55:19] <wafflej0ck> davek: I'm still bummed about the lack of interfaces
[07:55:30] <davek> wafflej0ck, with duck typing? Everything is an interface.
[07:55:40] <BahamutWC|Work> I am not usually bothered by the flaws in various languages
[07:55:52] *** robe2 has quit IRC
[07:55:52] <wafflej0ck> eh I like to have an interface and be able to inject things/replace parts based on them implementing an interface
[07:55:55] *** Prjio has quit IRC
[07:56:01] *** xxMatiasFxx has joined #angularjs
[07:56:04] <davek> Right, but I am bothered by the ones in PHP that have gone unaddressed for such a long period of time. That was my primary concern.
[07:56:05] <BahamutWC|Work> the main question I seek to answer with a language is can I be productive with it
[07:56:22] <wafflej0ck> yeah for me PHP is about getting the job done quick
[07:56:30] <wafflej0ck> and not having a lot of server maintenance
[07:56:32] <sacho> wafflej0ck, sounds like what you really want is a type system
[07:56:44] <davek> JavaScript has a type system.
[07:56:49] *** xxMatiasFCxx has quit IRC
[07:56:51] <davek> That's what duck typing is, a flavor of type system.
[07:56:57] <sacho> please, javascript has a joke of a type system.
[07:57:32] <davek> Uhh, and you were defending PHP?
[07:57:38] <sacho> no, I wasn't..?
[07:58:00] <davek> Oh fair enough. Well your opinion is taken at face value then, which isn't much.
[07:58:16] <BahamutWC|Work> PHP does have stronger typing than JS…but this is a pretty stupid discussion atm
[07:58:16] <davek> If you'd like to discuss the specific technical shortfalls of JavaScript's type system, that might be interesting.
[07:59:04] <sacho> sure, you can't create new types or have guarantees about them.
[07:59:16] *** caitp has joined #angularjs
[07:59:32] *** phishy has quit IRC
[07:59:40] <davek> "Stronger" in what way?
[07:59:57] *** mennea has quit IRC
[08:00:08] *** roven has joined #angularjs
[08:00:17] <davek> sacho, yeah that's duck typing. Why is that bad? That's a conscious design decision. And there are minimal type guarantees, actually.
[08:00:21] <stephen> Well, with Object.freeze one can make it much stricter
[08:00:25] *** tjsail33 has joined #angularjs
[08:00:37] *** mennea has joined #angularjs
[08:00:47] <davek> wafflej0ck, thanks champ, I did study type systems in school :P.
[08:00:52] <sacho> davek, I didn't say it was "bad" generally. It's a bad type system.
[08:00:59] <sacho> It doesn't provide any benefits.
[08:01:02] <davek> sacho, right... what is the bad part?
[08:01:07] <wafflej0ck> davek: well you asked what he meant by "stronger"
[08:01:11] <davek> What kinda argument is that?
[08:01:42] <sacho> a type system sets constraints on your program and provides benefits for it.
[08:01:51] *** tjsail33 has quit IRC
[08:01:56] <sacho> javascript's type system sets some minimal constraints and provides no benefits.
[08:01:57] *** delight has quit IRC
[08:02:20] <davek> wafflej0ck, yes "stronger" is not a universally agreed upon term in the context of type systems, generally people are referring to type conversion/boxing mechanisms or type checking regimes.
[08:02:27] *** tjsail33 has joined #angularjs
[08:02:52] <davek> sacho, it provides no benefits compared to what? That argument is so bunk. PHP's type system also provides no benefits, prove me wrong!
[08:02:53] <stephen> Eh, types provide the level of custom classes... not much more
[08:02:55] <BahamutWC|Laptop> you can enforce types in the arguments in PHP functions
[08:02:57] *** jonr22 has joined #angularjs
[08:03:03] <sacho> davek, no benefits compared to it not existing.
[08:03:39] *** caitp has quit IRC
[08:03:41] *** tjsail33 has quit IRC
[08:03:42] <davek> sacho, that doesn't make any sense whatsoever.
[08:03:47] <sacho> because...?
[08:03:52] *** tomengland_mbp has quit IRC
[08:04:15] *** tjsail33 has joined #angularjs
[08:04:28] <davek> You can't have a language without types...
[08:04:44] *** jonr2219 has joined #angularjs
[08:04:52] <davek> Also JavaScript's type system, as V8 has demonstrated, contains at least enough to make some pretty respectable optimizations.
[08:05:01] <davek> So you're wrong, if only because your claim was silly.
[08:05:03] *** jonr22 has quit IRC
[08:05:27] <sacho> those optimizations are made in spite of the type system :|
[08:05:30] *** tjsail33 has quit IRC
[08:05:45] <davek> sacho not even REMOTELY true.
[08:05:46] *** rburns has quit IRC
[08:05:47] <sacho> hence the list of guidelines how to avoid breaking v8's optimizations.
[08:05:57] *** rburns has joined #angularjs
[08:06:04] <davek> Prototypical inheritance systems are the basis of V8's optimizations! Are you kidding?
[08:06:05] *** tjsail33 has joined #angularjs
[08:06:24] <BahamutWC|Laptop> that would be true - Google has already claimed that the Dart VM is faster than V8
[08:06:28] <sacho> what the hell do those have to do with types?
[08:06:29] *** dannyc has joined #angularjs
[08:06:31] *** jonr2219 has quit IRC
[08:06:41] *** jonr22 has joined #angularjs
[08:06:48] <sacho> not that I would agree that "prototypical inheritance is the basis...", but still
[08:06:56] <davek> BahamutWC|Laptop, aye the benefits of a more predictable type system.
[08:06:56] <BahamutWC|Laptop> but…part of it is that Google took the lessons it learned from V8 and used that to help design Dart
[08:07:17] <davek> sacho, it literally is though... have you not looked at the design documents for v8?
[08:07:20] *** tjsail33 has quit IRC
[08:07:36] * sacho sighs
[08:07:39] <sacho> nevermind
[08:07:52] *** tjsail33 has joined #angularjs
[08:08:28] <davek> sacho, is that a no? If not you may want to its fascinating.
[08:08:33] <sacho> I have
[08:08:40] <davek> An object's prototype chain is used to make a number of really clever optimizations.
[08:08:44] <sacho> would you like to point me to a part of them that substantiate your claim?
[08:08:53] *** SergioFilhow has joined #angularjs
[08:08:54] <davek> Yeah absolutely.
[08:09:02] <sacho> because it's hard for me to point out the part that proves the negative(e.g. all of it)
[08:09:31] *** tjsail33 has quit IRC
[08:09:38] <davek> Hey this is a good article on it.
[08:09:47] *** tjsail33 has joined #angularjs
[08:09:58] <sacho> what?
[08:10:07] *** oste has quit IRC
[08:10:20] <sacho> the examples of how v8 uses hidden classes to avoid the massive performance implications of a prototype inheritance?
[08:10:22] <davek> The use of hidden classes to optimize object construction based on a prototype hierarchy.
[08:10:31] <sacho> or the tagged values that avoid the massive performance problems of Number?
[08:10:42] *** dannyc has quit IRC
[08:11:00] *** tjsail33 has quit IRC
[08:11:02] <davek> Haha what "massive performance implication"?
[08:11:21] <davek> This is silly you're just arguing ideologically rather than factually.
[08:11:27] *** dsdeiz has quit IRC
[08:11:37] *** tjsail33 has joined #angularjs
[08:11:49] <sacho> try changing the properties of your prototype objects, or adding new properties in your constructors...etc
[08:11:54] *** Grokling_ has joined #angularjs
[08:12:13] <sacho> you could have the same optimizations if you didn't have prototypical inheritance
[08:12:13] *** jonr22 has quit IRC
[08:12:24] <sacho> thus, they're made *in spite* of it
[08:12:33] <davek> sacho I don't understand, that's exactly what hidden classes help to optimize.
[08:12:42] *** jonr22 has joined #angularjs
[08:12:50] *** tjsail33 has quit IRC
[08:12:53] <sacho> yes, and you could do the same without prototypical inheritance.
[08:12:54] <davek> sacho, yeah and PHP could be blazing fast if it was just C, what's your point?
[08:13:06] <sacho> um...........
[08:13:20] *** SergioFilhow has quit IRC
[08:13:21] <davek> sacho, you could do the same with many alternative type systems, you haven't suggested any. You've simply suggested removing the current one, which is stupid.
[08:13:23] *** tjsail33 has joined #angularjs
[08:13:28] *** soee has joined #angularjs
[08:13:30] <sacho> <davek> Prototypical inheritance systems are the basis of V8's optimizations! <-- how can it be the basis of the optimizations if the optimizations are done in spite of its existance?
[08:13:39] <sacho> you can do the same optimizations if you didn't have the inheritance system
[08:13:43] <sacho> in fact, those optimizations are limited by it
[08:13:52] <davek> You're arguing in circles. This is no longer constructive.
[08:14:22] <soee> good morning
[08:14:37] <sacho> davek, bahamut even suggested one you agreed with - dart
[08:14:39] *** tjsail33 has quit IRC
[08:14:45] *** Beatzebub__ has joined #angularjs
[08:14:45] *** jonr2219 has joined #angularjs
[08:14:56] *** jonr22 has quit IRC
[08:15:08] *** test_ has joined #angularjs
[08:15:14] *** tjsail33 has joined #angularjs
[08:15:19] *** uru|away is now known as uru
[08:15:28] <sacho> v8's done amazing work in spite of js's shortcomings
[08:15:29] *** test_ has left #angularjs
[08:15:59] *** zanea|away is now known as zanea
[08:16:30] *** tjsail33 has quit IRC
[08:16:45] *** doug64k has joined #angularjs
[08:16:46] *** jonr22 has joined #angularjs
[08:17:03] <sacho> (same with the jvm)
[08:17:06] *** jonr2219 has quit IRC
[08:17:06] *** tjsail33 has joined #angularjs
[08:17:53] *** Beatzebub_ has quit IRC
[08:18:20] *** tjsail33 has quit IRC
[08:18:35] *** chabier has quit IRC
[08:18:53] <davek> sacho, yeah I think that Dart has a good type system, I don't think that JS should have Dart's type system. You're unwilling to discuss the matter in an academic context so this is really a moot conversation.
[08:18:57] *** tjsail33 has joined #angularjs
[08:20:09] *** tjsail33 has quit IRC
[08:20:21] *** jonr22 has quit IRC
[08:20:27] <sacho> I'm not interested in what JS should or should not have, just disabusing notions like "js makes for a great optimization platform"
[08:20:45] *** tjsail33 has joined #angularjs
[08:20:49] *** jonr22 has joined #angularjs
[08:21:59] *** tjsail33 has quit IRC
[08:22:31] *** VeeWee has joined #angularjs
[08:22:40] *** tjsail33 has joined #angularjs
[08:22:53] *** jonr2219 has joined #angularjs
[08:23:02] *** jonr22 has quit IRC
[08:23:48] *** tjsail33 has quit IRC
[08:25:33] *** doginal has quit IRC
[08:26:03] *** Shrooms has quit IRC
[08:26:31] *** Sanny has joined #angularjs
[08:26:56] *** jonr22 has joined #angularjs
[08:27:04] <Sanny> hi
[08:27:14] *** jonr2219 has quit IRC
[08:27:21] *** iksik has joined #angularjs
[08:27:41] *** lemur has quit IRC
[08:28:00] <Sanny> Hey Guys , i am getting a bit confused in ng-route's $routeProvider and ui-router's $stateProvider
[08:28:19] *** lemur has joined #angularjs
[08:28:19] <Sanny> what's the difference and which one do is to use
[08:28:48] *** sanjay has quit IRC
[08:29:15] *** tjsail33 has joined #angularjs
[08:29:17] *** Embassy has joined #angularjs
[08:29:17] *** tjsail33 has quit IRC
[08:30:04] *** mennea has quit IRC
[08:30:11] *** tjsail33 has joined #angularjs
[08:30:30] <Grokling_> Sanny: ui-router ftw
[08:30:33] *** jonr22 has quit IRC
[08:30:35] *** one0one_a has quit IRC
[08:30:40] *** mennea has joined #angularjs
[08:31:01] *** jonr22 has joined #angularjs
[08:31:06] *** tjsail33 has quit IRC
[08:31:44] *** tjsail33 has joined #angularjs
[08:32:55] *** lemur has quit IRC
[08:32:57] *** tjsail33 has quit IRC
[08:33:36] *** tjsail33 has joined #angularjs
[08:33:36] *** asher^ has quit IRC
[08:33:48] *** saint-ron has quit IRC
[08:34:36] *** TyrfingMjolnir has joined #angularjs
[08:34:47] *** tjsail33 has quit IRC
[08:34:50] *** bundledavid has joined #angularjs
[08:35:06] *** jonr2219 has joined #angularjs
[08:35:12] *** jonr22 has quit IRC
[08:35:19] *** bhuvanaurora has quit IRC
[08:35:30] *** tjsail33 has joined #angularjs
[08:36:37] *** tjsail33 has quit IRC
[08:36:59] *** Oxynum has joined #angularjs
[08:37:11] *** sheplu has joined #angularjs
[08:37:29] *** tjsail33 has joined #angularjs
[08:38:20] *** nothingPT has joined #angularjs
[08:38:26] *** tjsail33 has quit IRC
[08:38:53] *** bundledavid has quit IRC
[08:39:04] *** tjsail33 has joined #angularjs
[08:39:28] *** Oxynum has quit IRC
[08:39:54] *** H1FuelCell has joined #angularjs
[08:40:06] *** NoNMaDDeN has quit IRC
[08:40:16] *** tjsail33 has quit IRC
[08:40:28] *** Oxynum has joined #angularjs
[08:40:43] *** jonr2219 has quit IRC
[08:41:07] *** NoNMaDDeN has joined #angularjs
[08:41:11] *** tjsail33 has joined #angularjs
[08:41:12] *** jonr22 has joined #angularjs
[08:42:05] *** tjsail33 has quit IRC
[08:42:54] *** Oxynum has quit IRC
[08:43:06] *** jonr22 has quit IRC
[08:43:12] *** mennea_ has joined #angularjs
[08:43:15] *** dididi has quit IRC
[08:43:15] *** jonr2219 has joined #angularjs
[08:43:19] *** mennea has quit IRC
[08:43:35] *** Sanny has left #angularjs
[08:43:42] *** trampi has joined #angularjs
[08:44:03] *** renlo has quit IRC
[08:44:11] *** dannyc has joined #angularjs
[08:44:48] *** tjsail33 has joined #angularjs
[08:44:48] *** jonr2219 has quit IRC
[08:45:24] *** jonr22 has joined #angularjs
[08:45:44] *** tjsail33 has quit IRC
[08:46:02] *** jacuqesdancona_ has joined #angularjs
[08:46:13] *** saint-ron has joined #angularjs
[08:46:21] *** tjsail33 has joined #angularjs
[08:46:41] *** NoNMaDDeN has quit IRC
[08:46:57] *** frankblizzar has joined #angularjs
[08:47:05] *** aslate has joined #angularjs
[08:47:35] *** tjsail33 has quit IRC
[08:47:51] *** evilaliv3 has joined #angularjs
[08:48:26] *** dannyc has quit IRC
[08:49:28] *** jonr2219 has joined #angularjs
[08:49:31] *** jonr22 has quit IRC
[08:49:58] *** tjsail33 has joined #angularjs
[08:50:04] *** Usuario has joined #angularjs
[08:50:04] *** Usuario is now known as frobs
[08:50:06] *** after_r has joined #angularjs
[08:50:30]
<after_r> Why do I get this result in my angular unit test using chai?: expected 'Welcome test user' to contain 'Welcome test user', see this: http://pastebin.mozilla.org/7603087
[08:51:07] <after_r> the elem.text() returns 'Welcome test user' for sure even when I call console.log(elem.text())
[08:51:23] *** tjsail33 has quit IRC
[08:51:27] *** aslate has quit IRC
[08:51:33] *** jonr22 has joined #angularjs
[08:51:34] <after_r> its saying the same thing as 'string' does not equal 'string'
[08:51:38] *** jonr2219 has quit IRC
[08:51:44] *** Prjio has joined #angularjs
[08:51:59] *** tjsail33 has joined #angularjs
[08:52:01] <after_r> but if I remove all of the HTML from the elem.html() call then it works
[08:52:32] *** NoNMaDDeN has joined #angularjs
[08:52:51] *** roven has quit IRC
[08:53:04] *** tjsail33 has quit IRC
[08:53:40] *** tjsail33 has joined #angularjs
[08:53:55] *** sirsirsir has quit IRC
[08:54:04] <after_r> anyone here?
[08:54:53] *** tjsail33 has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:28] *** tjsail33 has joined #angularjs
[08:55:40] *** snurfery has joined #angularjs
[08:55:53] *** epantzar has joined #angularjs
[08:56:07] *** Prjio has quit IRC
[08:56:43] *** tjsail33 has quit IRC
[08:57:16] *** tjsail33 has joined #angularjs
[08:58:03] <after_r> Great.
[08:58:33] *** tjsail33 has quit IRC
[08:59:03] *** jonr22 has quit IRC
[08:59:09] *** tjsail33 has joined #angularjs
[08:59:18] *** cheef1 has joined #angularjs
[08:59:21] *** cheef has joined #angularjs
[08:59:32] *** jonr22 has joined #angularjs
[08:59:33] *** doodlehaus has joined #angularjs
[08:59:42] *** bhuvanaurora has joined #angularjs
[08:59:45] *** caitp has joined #angularjs
[09:00:17] *** galdorvardamir has joined #angularjs
[09:00:23] *** tjsail33 has quit IRC
[09:00:40] <sacho> after_r,   is different from " "
[09:01:01] *** tjsail33 has joined #angularjs
[09:01:05] *** jonr22 has quit IRC
[09:01:07] *** tfennelly has joined #angularjs
[09:01:10] *** Grokling_ has quit IRC
[09:01:19] <after_r> I though that
[09:01:28] <after_r> but in console.log it shows it as a " " .
[09:01:32] *** lumio has joined #angularjs
[09:01:45] <sacho> it's a different character, not necessarily a different glyph
[09:01:46] *** jonr22 has joined #angularjs
[09:02:13] *** tjsail33 has quit IRC
[09:02:31] <after_r> ok maybe I need to create another element, and then compare it.s .text() to the main element im testing
[09:02:42] <after_r> ill try that
[09:03:38] *** jonr2219 has joined #angularjs
[09:03:38] *** threesixes has quit IRC
[09:03:41] *** jonr22 has quit IRC
[09:03:51] *** doodlehaus has quit IRC
[09:04:22] *** edy_ has joined #angularjs
[09:04:42] *** caitp has quit IRC
[09:04:54] *** tjsail33 has joined #angularjs
[09:05:13] *** BobbieBarker has quit IRC
[09:05:48] *** tfennelly has quit IRC
[09:05:52] *** tjsail33 has quit IRC
[09:06:15] *** Grokling_ has joined #angularjs
[09:06:15] *** edy_ is now known as edy
[09:06:33] *** tjsail33 has joined #angularjs
[09:07:45] <after_r> ok got it
[09:07:45] *** tjsail33 has quit IRC
[09:07:47] <after_r> ty
[09:07:51] *** after_r has quit IRC
[09:08:10] *** tomh has joined #angularjs
[09:08:32] *** tjsail33 has joined #angularjs
[09:08:44] *** Christer has joined #angularjs
[09:08:44] *** Christer has joined #angularjs
[09:09:30] *** tjsail33 has quit IRC
[09:09:43] *** jonr22 has joined #angularjs
[09:09:52] *** AWAW has joined #angularjs
[09:09:59] *** jonr2219 has quit IRC
[09:10:02] *** tomh has quit IRC
[09:10:03] *** sheplu has quit IRC
[09:10:08] *** tjsail33 has joined #angularjs
[09:10:23] *** Sontakey has joined #angularjs
[09:10:48] *** Artagan has joined #angularjs
[09:11:20] *** tjsail33 has quit IRC
[09:11:47] *** jonr2219 has joined #angularjs
[09:12:02] *** tjsail33 has joined #angularjs
[09:12:07] *** jonr22 has quit IRC
[09:12:54] *** SexualRickshaw|2 has joined #angularjs
[09:12:57] *** mennea_ has quit IRC
[09:13:10] *** tjsail33 has quit IRC
[09:13:19] *** DoubleAW has quit IRC
[09:13:39] *** mennea has joined #angularjs
[09:13:44] *** jonr2219 has quit IRC
[09:13:47] *** jonr22 has joined #angularjs
[09:14:02] *** Sontakey has quit IRC
[09:14:03] *** tjsail33 has joined #angularjs
[09:14:04] *** jordandotdev has quit IRC
[09:14:23] *** jdj_dk has joined #angularjs
[09:14:49] *** Beatzebub_ has joined #angularjs
[09:15:00] *** SexualRickshaw|3 has joined #angularjs
[09:15:01] *** tjsail33 has quit IRC
[09:15:20] *** davesidious_ has quit IRC
[09:15:24] *** jonr22 has quit IRC
[09:15:31] *** SexualRickshaw has quit IRC
[09:15:38] *** tjsail33 has joined #angularjs
[09:15:47] *** SexualRickshaw|3 is now known as SexualRickshaw
[09:15:49] *** jonr22 has joined #angularjs
[09:16:51] *** tjsail33 has quit IRC
[09:17:05] *** AngularUI has joined #angularjs
[09:17:06]
<AngularUI> [bootstrap] zaknuces opened pull request #3029: fix(Modal): Use attribute observe and add a render promise. (master...Modal_Updates) http://git.io/D0JNnQ
[09:17:06] *** AngularUI has left #angularjs
[09:17:34] *** Sky[x] has joined #angularjs
[09:17:42] *** tjsail33 has joined #angularjs
[09:18:29] *** white_bird has joined #angularjs
[09:18:40] *** tjsail33 has quit IRC
[09:18:50] *** Beatzebub__ has quit IRC
[09:18:51] *** marshall has joined #angularjs
[09:18:56] *** SexualRickshaw|2 has quit IRC
[09:19:18] *** greatdex has quit IRC
[09:19:35] *** tjsail33 has joined #angularjs
[09:19:53] *** Senjai has quit IRC
[09:19:55] *** jonr2219 has joined #angularjs
[09:20:18] *** jonr22 has quit IRC
[09:20:30] *** tjsail33 has quit IRC
[09:21:06] *** tjsail33 has joined #angularjs
[09:21:30] *** white_bird has left #angularjs
[09:21:44] *** despai has joined #angularjs
[09:22:21] *** tjsail33 has quit IRC
[09:22:59] *** jkj_ has joined #angularjs
[09:23:06] *** tjsail33 has joined #angularjs
[09:23:12] *** Iravan_ has quit IRC
[09:23:20] *** Evanion has joined #angularjs
[09:23:34] *** marr has joined #angularjs
[09:23:38] *** jonr2219 has quit IRC
[09:24:07] *** jonr22 has joined #angularjs
[09:24:09] *** tjsail33 has quit IRC
[09:24:33] <jkj_> Hi there. Has anyone here encountered issues with the the orderBy filter where it filters like this: 1, 0 2, 3, 4, 5, 6? For me it switches 0 and 1.
[09:24:37] *** StryKaizer has joined #angularjs
[09:24:59] *** tjsail33 has joined #angularjs
[09:26:00] *** tjsail33 has quit IRC
[09:26:11] *** Senjai has joined #angularjs
[09:26:36] *** tjsail33 has joined #angularjs
[09:26:57] *** ajay_ has joined #angularjs
[09:27:19] *** DrMabuse has quit IRC
[09:27:24] *** tangorri has joined #angularjs
[09:27:29] <ajay_> how can i use typeahead in form-schema
[09:27:49] *** tjsail33 has quit IRC
[09:28:02] *** jonr22 has quit IRC
[09:28:12] *** jonr22 has joined #angularjs
[09:28:15] *** nfroidure has joined #angularjs
[09:28:24] *** tjsail33 has joined #angularjs
[09:28:48] *** greatdex has joined #angularjs
[09:29:10] *** phzon has joined #angularjs
[09:29:11] <ajay_> please help ,how to make an autosuggest component which makes AJAX calls for JSON and displays the result
[09:29:25] <ajay_> using typeahead
[09:29:27] *** yelvert has joined #angularjs
[09:29:38] *** despai has quit IRC
[09:29:39] *** Hesesses has joined #angularjs
[09:29:59] *** frkout_ has joined #angularjs
[09:30:00] *** tjsail33 has quit IRC
[09:30:13] *** tjsail33 has joined #angularjs
[09:30:33] *** jonr2219 has joined #angularjs
[09:30:35] *** ajay_ has quit IRC
[09:30:54] *** jonr22 has quit IRC
[09:31:29] *** tjsail33 has quit IRC
[09:32:08] *** tjsail33 has joined #angularjs
[09:32:35] *** jonr22 has joined #angularjs
[09:32:35] *** jonr2219 has quit IRC
[09:32:47] *** mkusher has joined #angularjs
[09:32:49] *** Raging_Hog has joined #angularjs
[09:32:55] *** aks has joined #angularjs
[09:33:04] *** frkout has quit IRC
[09:33:23] *** Senjai has quit IRC
[09:33:30] *** tjsail33 has quit IRC
[09:34:01] <Hesesses> I'm using ngResource to communicate with API, everything worked as it should, but after i changed the backend format from [...] to {data: [..]} its not working anymore. Any ideas how to fix this?
[09:34:01] *** lampinen has quit IRC
[09:34:20] *** threesixes has joined #angularjs
[09:34:38] *** jonr2219 has joined #angularjs
[09:34:52] *** jonr22 has quit IRC
[09:35:07] *** tjsail33 has joined #angularjs
[09:35:42] *** Senjai has joined #angularjs
[09:35:55] *** swirlycheetah has joined #angularjs
[09:36:01] *** tjsail33 has joined #angularjs
[09:36:12] <swirlycheetah> how can I stop my unit tests trying to load an image tag?
[09:36:27] *** DrMabuse has joined #angularjs
[09:36:34] *** jkj_ has left #angularjs
[09:36:39] *** jonr2219 has quit IRC
[09:36:40] *** jonr22 has joined #angularjs
[09:36:45] *** vassagus has joined #angularjs
[09:36:58] *** pangan has joined #angularjs
[09:36:59] *** tjsail33 has quit IRC
[09:37:15] *** rburns has quit IRC
[09:37:32] *** tjsail33 has joined #angularjs
[09:37:36] *** rburns has joined #angularjs
[09:38:42] *** jonr2219 has joined #angularjs
[09:38:43] *** jonr22 has quit IRC
[09:38:48] *** tjsail33 has quit IRC
[09:39:00] *** laurensclaessen has joined #angularjs
[09:39:36] *** tjsail33 has joined #angularjs
[09:40:15] *** jonr2219 has quit IRC
[09:40:38] *** tjsail33 has quit IRC
[09:40:39] *** cheef1 has quit IRC
[09:40:43] *** jonr22 has joined #angularjs
[09:41:15] *** tjsail33 has joined #angularjs
[09:41:18] *** Christer has quit IRC
[09:41:54] *** vassagus has quit IRC
[09:42:04] *** intellix has joined #angularjs
[09:42:08] <davek> sacho, I believe it is my turn to do the sighing.
[09:42:26] *** jonr22 has quit IRC
[09:42:28] *** tjsail33 has quit IRC
[09:42:32] *** jonasliljestrand has joined #angularjs
[09:42:53] *** jonr22 has joined #angularjs
[09:42:56] *** discgo has quit IRC
[09:43:00] *** mennea has quit IRC
[09:43:05] *** tjsail33 has joined #angularjs
[09:43:37] *** mennea has joined #angularjs
[09:43:38] *** obelich has quit IRC
[09:44:00] <sacho> what now?
[09:44:18] *** tjsail33 has quit IRC
[09:44:20] <sacho> you disagree that   is different from a " "?
[09:44:22] *** kontinuity has quit IRC
[09:44:23] *** mennea has quit IRC
[09:44:38] *** threesixes has quit IRC
[09:44:47] *** jonr2219 has joined #angularjs
[09:44:51] *** tjsail33 has joined #angularjs
[09:44:52] *** jonr22 has quit IRC
[09:45:02] *** dannyc_ has joined #angularjs
[09:45:50] <AviMarcus> I'm using ui-router - I have a route registered, and it works when I change the URL, but my ui-sref link doesn't work. Does that make any sense?
[09:45:58] *** intellix has quit IRC
[09:46:08] *** tjsail33 has quit IRC
[09:46:10] <AviMarcus> It gets the little hand clicky, but doesn't do anything when I click
[09:46:27] <jonasliljestrand> AviMarcus: create a plunker and we can help you :)
[09:46:36] *** jagga has joined #angularjs
[09:46:38] <AviMarcus> mm. good point.
[09:46:44] *** tjsail33 has joined #angularjs
[09:47:41] *** mennea has joined #angularjs
[09:47:58] *** tjsail33 has quit IRC
[09:48:33] *** Alina-malina has quit IRC
[09:48:36] *** tjsail33 has joined #angularjs
[09:48:53] *** aks has quit IRC
[09:48:58] *** jonr22 has joined #angularjs
[09:49:03] *** jonr2219 has quit IRC
[09:49:07] <davek> sacho, not at all. Your none-too-subtle attempt at a last word by totally revoking all of your arguments.
[09:49:18] *** mennea has quit IRC
[09:49:19] *** dannyc_ has quit IRC
[09:49:19] *** aks has joined #angularjs
[09:49:35] *** Alina-malina has joined #angularjs
[09:49:36] *** Alina-malina has joined #angularjs
[09:49:48] *** tjsail33 has quit IRC
[09:50:25] *** tjsail33 has joined #angularjs
[09:50:33] *** ogdabou has joined #angularjs
[09:51:29] *** yts has joined #angularjs
[09:51:37] *** Christer has joined #angularjs
[09:51:38] *** tjsail33 has quit IRC
[09:51:39] *** foofoobar has joined #angularjs
[09:52:04] *** MaxV has joined #angularjs
[09:52:09] *** aks has quit IRC
[09:52:13] *** tjsail33 has joined #angularjs
[09:52:25] *** aks has joined #angularjs
[09:52:35] *** Prjio has joined #angularjs
[09:52:42] *** jonr22 has quit IRC
[09:52:55] <SexualRickshaw> Okay, so I have a JSON file with all my information in it, and I want to add a field to said JSON after it loads (to add a timestamp on it), how would I go about it?
[09:53:26] *** jonr22 has joined #angularjs
[09:53:28] *** tjsail33 has quit IRC
[09:53:29] <sacho> which part of doing all that is problematic for you
[09:54:02] *** josh-k has joined #angularjs
[09:54:04] *** tjsail33 has joined #angularjs
[09:54:12] <SexualRickshaw> Well, I got the proper data loading from the JSON with no issue, it's the adding the new field after loading that's giving me the issue
[09:54:44] *** yandos has joined #angularjs
[09:54:58] *** ciwolsey has quit IRC
[09:55:13] <sacho> If you have your json parsed into an object then it's a simple matter of assigning a new property, e.g. obj.prop = ...
[09:55:18] *** tjsail33 has quit IRC
[09:55:23] *** DoubleAW has joined #angularjs
[09:56:05] *** tjsail33 has joined #angularjs
[09:56:51] *** yandos has quit IRC
[09:56:54] *** mennea has joined #angularjs
[09:56:58] *** Prjio has quit IRC
[09:57:00] *** swirlycheetah has quit IRC
[09:57:08] *** tjsail33 has quit IRC
[09:57:44] *** bhuvanaurora has quit IRC
[09:57:58] *** SergioFilhow has joined #angularjs
[09:58:01] *** AWAW has quit IRC
[09:58:03] *** tjsail33 has joined #angularjs
[09:58:03] *** milka has joined #angularjs
[09:58:46] *** TheAceOfHearts has quit IRC
[09:58:58] *** tjsail33 has quit IRC
[09:59:40] *** tjsail33 has joined #angularjs
[09:59:48] *** doug64k has quit IRC
[09:59:53] <SexualRickshaw> I tried that already
[09:59:54] *** mennea has quit IRC
[10:00:20] *** tfennelly has joined #angularjs
[10:00:23] *** mennea has joined #angularjs
[10:00:30] *** caitp has joined #angularjs
[10:00:36] *** jonr22 has quit IRC
[10:00:48] *** tjsail33 has quit IRC
[10:00:51] *** tfennelly has quit IRC
[10:01:12] *** jonr22 has joined #angularjs
[10:01:20] *** tfennelly has joined #angularjs
[10:01:33] *** tjsail33 has joined #angularjs
[10:02:38] *** tjsail33 has quit IRC
[10:02:54] *** SergioFilhow has quit IRC
[10:02:56] <sacho> ok? what problem did you have?
[10:02:59] <sacho> try making a plunker.
[10:03:10] *** samuel02 has joined #angularjs
[10:03:16] *** tjsail33 has joined #angularjs
[10:03:28] *** kn_ has joined #angularjs
[10:03:53] *** crunch-choco has joined #angularjs
[10:04:17] *** crunch-choco is now known as Guest67848
[10:04:19] *** AciD`` has joined #angularjs
[10:04:20] *** beckyconning_ has joined #angularjs
[10:04:53] *** tjsail33 has quit IRC
[10:05:07] *** tjsail33 has joined #angularjs
[10:05:09] *** caitp has quit IRC
[10:05:57] *** greatdex has quit IRC
[10:06:19] *** tjsail33 has quit IRC
[10:06:22] *** JR___ has joined #angularjs
[10:06:27] *** motionman has quit IRC
[10:06:44] *** jonr22 has quit IRC
[10:07:04] *** davesidious has joined #angularjs
[10:07:11] *** jonr22 has joined #angularjs
[10:07:12] *** tjsail33 has joined #angularjs
[10:07:39] *** sirsirsir has joined #angularjs
[10:07:39] *** rburns has quit IRC
[10:07:53] <jacuqesdancona_> Has anyone made a small Angular test for applicants, or has someone seen one online? I need ideas because having Angularjs on your resume, and recruiters just putting buzzwords on resumes, doesn't mean they actually have any production experience
[10:07:57] *** rburns has joined #angularjs
[10:08:09] *** tjsail33 has quit IRC
[10:08:31] *** kontinuity has joined #angularjs
[10:09:08]
<beckyconning_> you know when in the your css property is crossed out like this in css property inspectors? like this in the chrome one: http://puu.sh/d8z4o/fff6c199ff.png how do you work out what went wrong?
[10:09:09] <jacuqesdancona_> For example "Make a small webapp with routes, a form which can be edited, some dom manipulation" doesn't really test any knowledge
[10:09:58] *** nesquerra has joined #angularjs
[10:10:35] *** tjsail33 has joined #angularjs
[10:10:47] *** jonr22 has quit IRC
[10:10:52] <jacuqesdancona_> beckyconning_: the css style is wrong, overwritten, commented out in the stylesheet
[10:11:14] <jacuqesdancona_> or can not be applied because it's not relevant for the browser
[10:11:15] *** jonr22 has joined #angularjs
[10:11:19] <beckyconning_> jacuqesdancona_: yeah but how do i work out where it was overwritten or what is wrong about it?
[10:11:48] *** tjsail33 has quit IRC
[10:11:56] *** cbennett has joined #angularjs
[10:11:59] <beckyconning_> or is there literally no way to find out without trial and error? : P
[10:12:19] *** startupality has joined #angularjs
[10:12:22] *** tjsail33 has joined #angularjs
[10:12:31] <jonasliljestrand> SexualRickshaw: you are trying to assign an key into an array, thats the main problem
[10:12:34] <jacuqesdancona_> ehm
[10:13:02] <jacuqesdancona_> can be trial and error
[10:13:09] <jacuqesdancona_> or look at computed styles
[10:13:10] *** jonr22 has quit IRC
[10:13:19] *** jonr2219 has joined #angularjs
[10:13:27] *** dannyc_ has joined #angularjs
[10:13:34] <SexualRickshaw> So how would I go about assigning data to that key?
[10:13:37] *** tjsail33 has quit IRC
[10:13:45] *** sikor_sxe has joined #angularjs
[10:13:57] <jacuqesdancona_> in the right part of the styles tab, you'll see another list of styles, click the one you're having problem with
[10:14:00] *** AviMarcus_ has joined #angularjs
[10:14:05] *** jdj_dk_ has joined #angularjs
[10:14:12] *** tjsail33 has joined #angularjs
[10:14:14] *** FarLight has joined #angularjs
[10:14:17] <beckyconning_> omg i jsut worked it out
[10:14:31] <beckyconning_> i am so spacey this morning lol
[10:14:32] <jacuqesdancona_> you can see where it is set, maybe it's overwritten by something higher in hierarchy, or somewhere else it's set to 1important
[10:14:36] <jacuqesdancona_> k
[10:14:49] <beckyconning_> i wrote img("path/to/image.svg")
[10:14:58] *** Beatzebub__ has joined #angularjs
[10:15:00] <beckyconning_> instead of url("path/to/image.svg")
[10:15:12] <beckyconning_> #facepalm
[10:15:27] *** tjsail33 has quit IRC
[10:15:51] <FarLight> Hey, I set $locationProvider.html5Mode(true);, to get rid of the hash from the URL.
[10:15:57] <FarLight> But now my index just gives a blank screen.
[10:16:08] *** tjsail33 has joined #angularjs
[10:16:10] *** doug64k has joined #angularjs
[10:16:13] <FarLight> and all other routes simply state "Cannot GET /whatever"
[10:16:30] <FarLight> I'm using ui router, no error appears in the console.
[10:16:47] <FarLight> I have a base tag <base href="/">
[10:17:04] *** JR___ has quit IRC
[10:17:16] *** tjsail33 has quit IRC
[10:17:37] *** bundledavid has joined #angularjs
[10:17:46] *** t1mmen has joined #angularjs
[10:17:52] *** DarrenCraig has joined #angularjs
[10:18:04] *** jdj_dk has quit IRC
[10:18:08] *** tjsail33 has joined #angularjs
[10:18:13] *** doug64k has quit IRC
[10:18:43] *** Beatzebub_ has quit IRC
[10:19:05] *** tjsail33 has quit IRC
[10:19:19] *** marr has quit IRC
[10:19:42] *** tjsail33 has joined #angularjs
[10:19:54] *** thomastuts has joined #angularjs
[10:20:23] *** H1FuelCell has quit IRC
[10:20:36] *** m8 has joined #angularjs
[10:20:55] *** tjsail33 has quit IRC
[10:21:31] *** tjsail33 has joined #angularjs
[10:21:52] *** thomastuts has quit IRC
[10:22:45] *** tjsail33 has quit IRC
[10:23:27] *** samuel02 has quit IRC
[10:23:39] *** tjsail33 has joined #angularjs
[10:24:07] *** H1FuelCell has joined #angularjs
[10:24:35] *** tjsail33 has quit IRC
[10:25:11] *** tjsail33 has joined #angularjs
[10:25:21] *** marshall has quit IRC
[10:26:24] *** tjsail33 has quit IRC
[10:26:59] *** tjsail33 has joined #angularjs
[10:27:03] *** jonr2219 has quit IRC
[10:27:16] *** aks has quit IRC
[10:27:16] *** thomastuts has joined #angularjs
[10:27:32] *** jonr22 has joined #angularjs
[10:28:15] *** tjsail33 has quit IRC
[10:28:33] *** foofoobar has quit IRC
[10:28:51] *** tjsail33 has joined #angularjs
[10:29:09] *** jonr22 has quit IRC
[10:29:12] *** fbenoit has joined #angularjs
[10:29:34] *** jonr22 has joined #angularjs
[10:29:55] *** mennea has quit IRC
[10:29:59] <cheef> guys, should $name be set on ngModelController if the input has a name specified?
[10:30:05] *** tjsail33 has quit IRC
[10:30:06] <cheef> seems to be always blank
[10:30:34] *** mennea has joined #angularjs
[10:30:38] *** tjsail33 has joined #angularjs
[10:31:01] *** tomengland_mbp has joined #angularjs
[10:31:57] *** kontinuity has quit IRC
[10:32:59] *** aks has joined #angularjs
[10:33:06] *** wwww_ has joined #angularjs
[10:33:15] *** azizur has joined #angularjs
[10:33:46] *** lemur has joined #angularjs
[10:33:57] *** jonr22 has quit IRC
[10:34:04] <wwww_> how to integrate angularjs with nodejs
[10:35:10] *** wwww_ has left #angularjs
[10:35:18] <AviMarcus_> wwww_, what are you doing with nodejs? An API with restify or sails or the like?
[10:35:44] *** tjsail33 has quit IRC
[10:35:44] *** kontinuity has joined #angularjs
[10:36:03] *** aslate has joined #angularjs
[10:36:06] *** yelvert has quit IRC
[10:36:28] *** sirsirsir has quit IRC
[10:36:44] *** yelvert has joined #angularjs
[10:37:47] *** muya_ has joined #angularjs
[10:37:56] *** startupality has quit IRC
[10:37:56] *** rburns has quit IRC
[10:38:20] <AviMarcus_> yeesh, he left. that was quick.
[10:38:34] *** rburns has joined #angularjs
[10:38:44] *** IJNX has quit IRC
[10:40:28] *** Solid1_afk is now known as Solid1
[10:40:46] *** newbster has joined #angularjs
[10:40:48] *** aslate has quit IRC
[10:40:50] *** DelphicOkami is now known as delphicokami
[10:41:09] <jonasliljestrand> AviMarcus_: maybe he found his way ;)
[10:41:19] *** aks has quit IRC
[10:41:23] *** frkout_ has quit IRC
[10:41:26] *** yelvert has quit IRC
[10:41:43] *** startupality has joined #angularjs
[10:41:50] *** frkout has joined #angularjs
[10:42:15] *** skyx_ has joined #angularjs
[10:42:42] *** thomastuts has quit IRC
[10:42:59] *** skyx_ has quit IRC
[10:43:33] *** aks has joined #angularjs
[10:43:36] *** skyx_ has joined #angularjs
[10:43:52] *** tarnus has joined #angularjs
[10:43:53] *** Sky[x] has quit IRC
[10:44:46] *** Ajans has joined #angularjs
[10:45:17] *** newbster has quit IRC
[10:45:26] *** sk87 has joined #angularjs
[10:45:35] *** moi has joined #angularjs
[10:45:40] *** moi is now known as newbster
[10:45:49] *** silo has joined #angularjs
[10:45:52] *** bengillies has joined #angularjs
[10:46:02] *** samuel02 has joined #angularjs
[10:47:27] *** rburns has quit IRC
[10:47:53] *** StryKaizer has quit IRC
[10:48:11] *** newbster has quit IRC
[10:48:12] *** mdedetrich has quit IRC
[10:48:31] *** newbster has joined #angularjs
[10:48:37] *** tarnus has quit IRC
[10:48:43] *** newbster has quit IRC
[10:50:31] *** rajeevs has joined #angularjs
[10:50:39] *** rajeevs has quit IRC
[10:52:04] *** saint-ron has quit IRC
[10:53:13] *** samuel02 has quit IRC
[10:53:16] *** Prjio has joined #angularjs
[10:53:22] *** roven has joined #angularjs
[10:53:40] *** azizur has quit IRC
[10:54:20] *** moritzs has joined #angularjs
[10:54:24] *** muya_ has left #angularjs
[10:54:32] *** motionman has joined #angularjs
[10:56:44] <cheef> guys ive got a directive for some radio buttons, and its got some additional validation that runs before the ngModelController has been instantiated
[10:56:50] *** Embassy has quit IRC
[10:56:57] <cheef> can I just defer it with something like if (!ctrl) return?
[10:57:17] *** Prjio has quit IRC
[10:57:37] *** instence has joined #angularjs
[10:58:03] *** ki0 has joined #angularjs
[10:58:25] <deebo> just register an actual validator?
[10:58:26] *** roven has quit IRC
[10:59:28] <cheef> its not that, its the way angular compiles and links directives
[10:59:32] *** Embassy has joined #angularjs
[10:59:38] <cheef> which is cool
[10:59:39] *** jonasliljestrand has quit IRC
[10:59:48] *** instence_ has quit IRC
[11:00:02] *** jonasliljestrand has joined #angularjs
[11:00:24] *** azizur has joined #angularjs
[11:00:25] *** doodlehaus has joined #angularjs
[11:00:33] <deebo> i ran into initialization order issues and had to change my approach
[11:00:38] *** mennea_ has joined #angularjs
[11:00:42] *** mennea has quit IRC
[11:00:53] <deebo> there was some quick trick you could do to reverse the order, but it didn't work for me
[11:01:01] *** sheplu has joined #angularjs
[11:01:16] *** caitp has joined #angularjs
[11:01:19] <cheef> ye, my directive gets compiled, which is essential a radio button tempalte (ng repeat) and each input has an ng-model defined [pretty standard id have thought]
[11:01:27] *** fedenunez has joined #angularjs
[11:01:38] <cheef> but its post-linking fn is run before the ngModelController
[11:02:37] <deebo> yeah i had an issue where a directive loads a template asynchronously, and the template creates additional directives that rely on the creating directives data
[11:02:46] <deebo> it was impossible to get the timing right, i had to give up on the template
[11:03:09] *** moritzschaefer has joined #angularjs
[11:03:14] <deebo> the inner directives always saw {{ value }} instead of the actual values
[11:03:25] *** white_bird has joined #angularjs
[11:03:51] <cheef> dont think theres a nice way to "wait" until those directives are compiiled and linked
[11:03:56] <cheef> i guess thats probably my question!
[11:03:57] *** webster has quit IRC
[11:04:01] <cheef> just returning works
[11:04:13] *** moritzs has quit IRC
[11:04:25] *** kn_ has quit IRC
[11:04:53] *** doodlehaus has quit IRC
[11:05:33] <cheef> ill do that for now
[11:05:39] <cheef> cant really see any way around it
[11:05:39] *** webster has joined #angularjs
[11:05:53] *** aks has quit IRC
[11:06:10] *** FarLight has quit IRC
[11:06:14] *** caitp has quit IRC
[11:07:00] <cheef> i spose the other question could be why do my directive controller methods get evaluated at least once?
[11:07:08] <cheef> spose thats my templates fault
[11:07:32] *** moritzschaefer has quit IRC
[11:08:47] *** delight has joined #angularjs
[11:08:57] *** saint-ron has joined #angularjs
[11:09:16] <sacho> you could have the directives require a top directive and notify it that they are linked
[11:09:22] *** IJNX has joined #angularjs
[11:09:25] *** Embassy has quit IRC
[11:09:41] <sacho> or you could emit events along the scope chain(not sure if that works with isolate scopes)
[11:09:55] *** JohnBat26 has quit IRC
[11:10:12] *** tomengland_mbp has quit IRC
[11:10:22] *** mrkake has quit IRC
[11:11:13] *** Grokling_ has quit IRC
[11:11:25] *** aks has joined #angularjs
[11:11:32] <cheef> so setup a messing system of some sort between the directives
[11:11:36] *** DuelShark has joined #angularjs
[11:13:01] <sacho> yeah, angular doesn't really have one built-in
[11:13:06] *** swapneshs has joined #angularjs
[11:13:16] <sacho> and thanks to async loading you can't rely on any order of execution
[11:13:53] *** TyrfingMjolnir has quit IRC
[11:14:17] *** TrialCoder has joined #angularjs
[11:14:34] <TrialCoder> Hello All
[11:14:37] *** glassir has joined #angularjs
[11:14:48] *** moritzschaefer has joined #angularjs
[11:14:57] <TrialCoder> How do I redirect to a location without losing rootscope AngularJS
[11:15:25] *** Beatzebub has joined #angularjs
[11:16:42] *** Nivag_ has quit IRC
[11:16:59] <cheef> cheers sacho i wasnt going mad :)
[11:17:27] *** mrkake has joined #angularjs
[11:18:05] *** bhuvanaurora has joined #angularjs
[11:18:16] *** mollitz has joined #angularjs
[11:18:57] *** Beatzebub__ has quit IRC
[11:19:18] *** duall has joined #angularjs
[11:19:47] *** tbo_ has joined #angularjs
[11:19:48] <duall> is it standard to have DOM in controller for prototyping, and splitting into directitves+services on later phase ?
[11:20:00] *** Embassy has joined #angularjs
[11:20:42] *** nesquerra has quit IRC
[11:21:19] *** moritzschaefer has quit IRC
[11:21:30] <zomg> duall: makes sense
[11:22:07] <zomg> just make sure everyone understands it's a prototype and you shouldn't do that in "real" code =)
[11:22:29] <duall> yeah there are toDo:'s in the code for splitting
[11:22:45] <zomg> in my experience nobody ever fixes todos in comments
[11:22:45] <zomg> :D
[11:22:49] <duall> stuff like this is in controller : label: '<a class="fa-icon removeField" ng-click="extraField.remove(schema, \'' + groupName + '\', \'' + newPropertyKey + '\')"></a><i class="icon {{ '+ngModel+'.customTitle.icon }}"></i> ' + dropdown
[11:23:10] <duall> zomg yeah you know.. ' don't fix it if its not broken '
[11:24:09] *** samuel02 has joined #angularjs
[11:24:11] *** cthrax has joined #angularjs
[11:24:27] *** fairuz has quit IRC
[11:24:45] *** jaydubya has joined #angularjs
[11:25:41] *** juristr has joined #angularjs
[11:26:22] *** AngularUI has joined #angularjs
[11:26:23]
<AngularUI> [bootstrap] cookfront opened pull request #3030: test: add buttons.spec.js unit test, coverage 100% (master...master) http://git.io/yS5eng
[11:26:23] *** AngularUI has left #angularjs
[11:27:07] *** Evanion has quit IRC
[11:28:01] *** mylord has joined #angularjs
[11:28:20] *** H1FuelCell has quit IRC
[11:28:59] *** djam90 has joined #angularjs
[11:29:12] *** saint-ron has quit IRC
[11:29:27] *** freelyfred has quit IRC
[11:30:00] *** mennea_ has quit IRC
[11:30:37] *** mennea has joined #angularjs
[11:31:08] *** san has joined #angularjs
[11:31:14] *** wa5ted has quit IRC
[11:31:32] *** san is now known as Guest23565
[11:31:57] *** storresi has joined #angularjs
[11:32:44] *** sirsirsir has joined #angularjs
[11:33:00] *** aks has quit IRC
[11:34:06] *** samuel02 has quit IRC
[11:35:14] *** aks has joined #angularjs
[11:35:42] *** basiclaser_ has joined #angularjs
[11:35:43] *** Left_Turn has joined #angularjs
[11:35:45] *** wa5ted has joined #angularjs
[11:36:19] *** diegoaguilar has quit IRC
[11:36:49] *** aendrew has joined #angularjs
[11:38:12] *** plushy has joined #angularjs
[11:38:40] *** GeneralChoomin has joined #angularjs
[11:38:40] *** GeneralChoomin has joined #angularjs
[11:38:56] *** chabier has joined #angularjs
[11:39:04] *** lugzer has joined #angularjs
[11:39:45] *** toin0u|away is now known as toin0u
[11:40:51] *** jeffisabelle has joined #angularjs
[11:41:00] *** nya has quit IRC
[11:41:26] *** jeffisabelle has quit IRC
[11:41:26] *** wa5ted has quit IRC
[11:41:28] *** nya has joined #angularjs
[11:42:04] *** jeffisabelle has joined #angularjs
[11:43:33] *** plushy1 has joined #angularjs
[11:43:33] *** dannyc has joined #angularjs
[11:43:48] *** bundledavid has quit IRC
[11:44:31] *** francog has quit IRC
[11:44:31] *** marr has joined #angularjs
[11:45:20] *** francog has joined #angularjs
[11:45:21] *** apertoire has quit IRC
[11:45:25] *** plushy has quit IRC
[11:45:25] *** toin0u is now known as toin0u|away
[11:45:40] *** francog has quit IRC
[11:45:40] *** francog has joined #angularjs
[11:45:42] *** nya has quit IRC
[11:45:48] *** aslate has joined #angularjs
[11:45:49] *** wa5ted has joined #angularjs
[11:46:01] *** apertoire has joined #angularjs
[11:46:23] *** saint-ron has joined #angularjs
[11:46:42] *** SergioFilhow has joined #angularjs
[11:47:43] *** clarkk has quit IRC
[11:48:17] <cheef> guys if i just want to wrap an element with an ng-if inside a directive
[11:48:33] <cheef> can i just use elem.wrap in the postLnk, or will i have to recompile it
[11:48:36] *** cotko has joined #angularjs
[11:48:43] <cheef> so that the ng-if directive gets compiled
[11:50:10] <sacho> elem.wrap()?
[11:50:28] <cheef> ye
[11:50:29] *** sirsirsir has quit IRC
[11:50:31] *** DuelShark has quit IRC
[11:50:37] <cheef> but would the ng-if get compiled then?
[11:50:43] *** nya has joined #angularjs
[11:51:00] *** SergioFilhow has quit IRC
[11:51:13] <sacho> oh that's a jqlite thing
[11:51:32] *** nya has quit IRC
[11:51:46] <cheef> ye
[11:51:57] <cheef> surely id need to recompile it
[11:52:00] <cheef> and replace the original element
[11:52:44] *** toin0u|away is now known as toin0u
[11:52:44] *** apertoire has quit IRC
[11:52:57] <juristr> Hi @ all. Do you normally create directives for repetitive buttons like save buttons, cancel buttons "add new" etc..
[11:53:13] *** cakirke has joined #angularjs
[11:53:15] <juristr> just for the purpose of not having to repetitively specify the HTML + translation filters etc..
[11:53:16] <sacho> cheef, yes, you'd need to compile the elements before you add them to the dom
[11:53:50] <cheef> cool
[11:54:04] *** Prjio has joined #angularjs
[11:54:08] <cheef> makes sense!
[11:54:10] <sacho> you'd probably just do .replace() then
[11:54:23] <cheef> ye
[11:54:30] <cheef> just need to figure out how to get the whole html
[11:54:40] <cheef> element.html doesnt return my container, just whats inside
[11:54:49] <cheef> but i want to wrap the whole thing
[11:54:54] <sacho> element[0].outerHTML
[11:55:06] *** nya has joined #angularjs
[11:55:27] <cheef> nice one, ta
[11:56:06] *** ansu has quit IRC
[11:56:27] *** nya_ has joined #angularjs
[11:56:27] *** omolio has joined #angularjs
[11:56:31] *** ansu has joined #angularjs
[11:56:50] *** davidreis has joined #angularjs
[11:56:54] *** cannap has joined #angularjs
[11:57:25] *** nya_ has quit IRC
[11:57:26] *** wsmoak has joined #angularjs
[11:57:34] *** bundledavid has joined #angularjs
[11:57:39] <cheef> ye that sorta works :D
[11:57:49] <omolio> Hello. The modelValue of my directive is set before I know how to run the formatter. I am gonna know that later, how can I run the formatter again? Is there a way to do that?
[11:58:29] *** mtsr has joined #angularjs
[11:58:42] *** Prjio has quit IRC
[11:59:30] *** nya has quit IRC
[11:59:37] *** aks has quit IRC
[11:59:57] *** Shashank1710 has joined #angularjs
[11:59:59] *** ko3t has quit IRC
[12:00:07] <Shashank1710> hi
[12:00:16] <Shashank1710> anyone there to help me
[12:00:18] *** qdk has quit IRC
[12:00:20] <Shashank1710> in angular js
[12:00:25] *** VerbGarden has quit IRC
[12:00:43] <Shashank1710> hello
[12:00:49] <cheef> probably in the right channel Shashank1710
[12:01:18] *** aks has joined #angularjs
[12:01:18] <Shashank1710> I need your help
[12:01:22] *** H1FuelCell has joined #angularjs
[12:01:36] <Shashank1710> is there something to show captcha in angular js
[12:02:09] *** davek has quit IRC
[12:02:24] *** caitp has joined #angularjs
[12:02:40] *** sacho_ has joined #angularjs
[12:03:53] *** sacho has quit IRC
[12:05:17] *** ko3t has joined #angularjs
[12:05:21] *** yandos has joined #angularjs
[12:06:12] *** white_bird has quit IRC
[12:06:18] *** ogdabou has quit IRC
[12:06:22] *** ko3t has quit IRC
[12:06:52] *** caitp has quit IRC
[12:07:34] *** JohnBat26 has joined #angularjs
[12:07:41] *** epantzar has quit IRC
[12:07:43] *** milka has quit IRC
[12:08:00] *** Senjai has quit IRC
[12:08:02] *** yelvert has joined #angularjs
[12:09:13] *** white_bird has joined #angularjs
[12:09:35] <beckyconning_> omg
[12:10:16] *** Guest23565 has quit IRC
[12:10:23] *** lemur has quit IRC
[12:11:00] *** lemur has joined #angularjs
[12:11:05] *** Aliks has quit IRC
[12:12:10] *** juampy has joined #angularjs
[12:12:10] *** samuel02 has joined #angularjs
[12:12:43] *** yelvert has quit IRC
[12:14:00] *** moritzschaefer has joined #angularjs
[12:14:41] *** bhuvanaurora has quit IRC
[12:14:54] *** storkme has joined #angularjs
[12:15:05] *** AviMarcus has quit IRC
[12:15:05] *** AviMarcus_ has quit IRC
[12:15:07] *** mollitz has quit IRC
[12:15:27] *** Beatzebub_ has joined #angularjs
[12:15:35] *** laurensclaessen has quit IRC
[12:15:48] *** lemur has quit IRC
[12:16:47] *** nesquerra has joined #angularjs
[12:17:37] *** ogdabou has joined #angularjs
[12:18:25] *** moritzschaefer has quit IRC
[12:18:36] *** jonr22 has joined #angularjs
[12:18:38] *** toin0u is now known as toin0u|away
[12:18:43] *** Beatzebub has quit IRC
[12:19:21] *** doodlehaus has joined #angularjs
[12:19:23] *** laurensclaessen has joined #angularjs
[12:19:29] *** tjsail33 has joined #angularjs
[12:19:32] *** samuel02 has quit IRC
[12:20:38] *** bhuvanaurora has joined #angularjs
[12:20:57] *** Aliks has joined #angularjs
[12:21:09] <TrialCoder> Hello All
[12:21:19] <TrialCoder> Need help
[12:21:21] <TrialCoder> How do I redirect to a location without losing rootscope AngularJS
[12:21:31] *** Senjai has joined #angularjs
[12:21:43] *** nesquerra has quit IRC
[12:22:28] <TrialCoder> any suggestion ?
[12:23:32] *** nya has joined #angularjs
[12:23:37] *** tjsail33 has quit IRC
[12:23:42] *** nya has quit IRC
[12:23:50] *** nya has joined #angularjs
[12:23:54] *** jonr22 has quit IRC
[12:23:58] *** plushy1 has quit IRC
[12:23:58] *** nya has quit IRC
[12:24:02] *** jeffisabelle has quit IRC
[12:24:16] *** nya has joined #angularjs
[12:24:55] *** IvailoStoianov has joined #angularjs
[12:24:59] *** rafagomes has joined #angularjs
[12:25:18] *** moritzschaefer has joined #angularjs
[12:25:40] *** jmichaelward has joined #angularjs
[12:25:54] *** elyssonmr has joined #angularjs
[12:26:17] *** fbenoit has quit IRC
[12:27:34] *** Milkweed has joined #angularjs
[12:28:17] *** aendrew has quit IRC
[12:28:54] *** Osman has joined #angularjs
[12:29:04] *** josh-k has quit IRC
[12:29:05] *** despai has joined #angularjs
[12:29:16] *** skyx_ has quit IRC
[12:29:37] <Osman> Hey guys
[12:29:51] *** skyx_ has joined #angularjs
[12:29:52] *** jmichaelward has quit IRC
[12:29:53] *** TyrfingMjolnir has joined #angularjs
[12:29:54] *** Artagan has quit IRC
[12:30:02] *** mennea has quit IRC
[12:30:17] *** moritzschaefer has quit IRC
[12:30:23] *** chabier has quit IRC
[12:30:41] *** mennea has joined #angularjs
[12:31:04] *** aendrew has joined #angularjs
[12:31:17] *** brettfrable has joined #angularjs
[12:31:29] *** chabier has joined #angularjs
[12:32:44] *** tarnus has joined #angularjs
[12:32:52] <Osman> anyone knows howto openlayers/angularjs?
[12:33:17] *** mica has joined #angularjs
[12:33:28] *** mica has left #angularjs
[12:33:29] *** SergioFilhow has joined #angularjs
[12:33:34] *** brettfrable has quit IRC
[12:34:56] <OnkelTem> Hi all!
[12:35:14] <Shashank1710> Hello
[12:35:28] <OnkelTem> Has anybody tried browserify with NG borwser apps?
[12:35:29] <Shashank1710> can you help me with angular js
[12:35:37] *** frobs has quit IRC
[12:35:45] <Shashank1710> yes
[12:36:50] *** Oxynum has joined #angularjs
[12:37:14] *** tarnus has quit IRC
[12:38:03] *** despai has quit IRC
[12:38:12] *** SergioFilhow has quit IRC
[12:38:56] *** aendrew has quit IRC
[12:39:17] *** elyssonmr has quit IRC
[12:39:54] *** t1mmen has quit IRC
[12:39:59] *** elyssonmr has joined #angularjs
[12:40:39] *** dobladez has joined #angularjs
[12:40:42] *** mkusher has quit IRC
[12:41:06] *** epantzar has joined #angularjs
[12:42:59] *** DrMabuse has quit IRC
[12:43:10] *** lemur has joined #angularjs
[12:43:28] *** Left_Turn has quit IRC
[12:44:16] *** IvailoStoianov_ has joined #angularjs
[12:44:28] *** elyssonmr has quit IRC
[12:44:49] *** djam90 has quit IRC
[12:45:13] <TyrfingMjolnir> What needs to be changed in angular for it to work on arbitrary xmls?
[12:45:57] *** IvailoStoianov has quit IRC
[12:46:06] *** IvailoStoianov_ is now known as IvailoStoianov
[12:46:08] *** aendrew has joined #angularjs
[12:46:36] *** RangerRick has quit IRC
[12:46:58] *** RangerRick has joined #angularjs
[12:47:39] *** Osman has quit IRC
[12:47:45] *** SergioFilhow has joined #angularjs
[12:47:50] <cheef> any ideas why id lose two way data binding with an ng-if?
[12:49:03] *** ravi has joined #angularjs
[12:49:42] *** aarapov has joined #angularjs
[12:50:04] *** GeneralChoomin has quit IRC
[12:50:50] *** moritzs has joined #angularjs
[12:50:54] *** ravi has quit IRC
[12:51:00] *** Milk_weed has joined #angularjs
[12:51:04] *** sirsirsir has joined #angularjs
[12:52:49] *** omolio has quit IRC
[12:53:42] *** Milkweed has quit IRC
[12:54:13] *** rburns has joined #angularjs
[12:54:39] *** roven has joined #angularjs
[12:54:48] *** Prjio has joined #angularjs
[12:54:54] *** cornerma1 has joined #angularjs
[12:55:17] *** sirsirsir has quit IRC
[12:55:44] *** bealtine has joined #angularjs
[12:56:51] *** omolio has joined #angularjs
[12:58:19] *** cornerman has quit IRC
[12:58:30] *** cornerma1 is now known as cornerman
[12:58:52] *** Shashank1710 has quit IRC
[12:59:13] *** Prjio has quit IRC
[12:59:32] *** jlmitch5dev has quit IRC
[12:59:50] *** JR___ has joined #angularjs
[12:59:54] *** roven has quit IRC
[13:00:06] *** jlmitch5dev has joined #angularjs
[13:01:06] *** jMyles has quit IRC
[13:01:07] *** Embassy has quit IRC
[13:01:32] *** Embassy has joined #angularjs
[13:01:33] *** yandos has quit IRC
[13:02:49] *** aendrew has quit IRC
[13:03:09] *** caitp has joined #angularjs
[13:03:26] *** yandos has joined #angularjs
[13:04:00] <TyrfingMjolnir> Which parts of the angular source code regards the tags( root tag ) and needs to be changed to have AngularJS work for arbitrary XMLs?
[13:04:42] *** jlmitch5dev has quit IRC
[13:04:58] *** iksik has quit IRC
[13:05:49] *** nesquerra has joined #angularjs
[13:06:04] *** N4N0 has joined #angularjs
[13:06:15] *** Hesesses has quit IRC
[13:06:25] <sacho_> what do you mean "work on arbitrary xmls"?
[13:07:23] *** caitp has quit IRC
[13:07:58] <TyrfingMjolnir> UBL
[13:08:02] <TyrfingMjolnir> OAG
[13:08:04] <TyrfingMjolnir> SVG
[13:09:25] *** glontu has quit IRC
[13:09:39] *** white_bird has quit IRC
[13:09:43] *** aendrew has joined #angularjs
[13:10:20] *** nesquerra has quit IRC
[13:12:04] *** white_bird has joined #angularjs
[13:13:40] *** FarLight has joined #angularjs
[13:13:55] *** sacho_ has quit IRC
[13:14:07] <FarLight> Has anyone been able to get $state.transitionTo to transition to the same page?
[13:14:08] *** sacho has joined #angularjs
[13:14:12] *** roachiepoopoo has quit IRC
[13:14:20] <FarLight> When I do it, the animations don't play, and it breaks my ng-clicks
[13:14:29] <FarLight> No error though, frustratingly.
[13:14:36] *** aendrew has quit IRC
[13:15:25] *** Beatzebub__ has joined #angularjs
[13:15:48] *** fabiofb has joined #angularjs
[13:16:16] *** Solid1 is now known as Solid1_afk
[13:17:39] *** aks has quit IRC
[13:17:47] *** chabier has quit IRC
[13:18:43] *** NoNMaDDeN has quit IRC
[13:18:58] *** iksik has joined #angularjs
[13:19:06] *** Beatzebub_ has quit IRC
[13:20:00] *** roachiepoopoo has joined #angularjs
[13:20:40] *** qdk has joined #angularjs
[13:21:13] *** djam90 has joined #angularjs
[13:21:27] *** Artagan has joined #angularjs
[13:21:57] *** atomatt has joined #angularjs
[13:23:07] *** NoNMaDDeN has joined #angularjs
[13:23:57] *** Deivdy has joined #angularjs
[13:24:02] <Deivdy> zzzzz
[13:24:35] *** laurensclaessen has quit IRC
[13:24:51] *** Deivdy has quit IRC
[13:25:00] *** aendrew has joined #angularjs
[13:25:51] *** OnkelTem has quit IRC
[13:25:53] *** DrMabuse has joined #angularjs
[13:26:20] <FarLight> Why does transitioning to the same state break my controller?
[13:26:57] *** morenoh149 has quit IRC
[13:27:31] *** leex has quit IRC
[13:28:02] *** OnkelTem has joined #angularjs
[13:29:57] *** plato has quit IRC
[13:30:04] *** mennea has quit IRC
[13:30:30] *** bundledavid has quit IRC
[13:30:40] *** mennea has joined #angularjs
[13:30:50] *** Naaab has joined #angularjs
[13:31:45] <Naaab> Hi guys im trying to get promisses workin in my app, but i cant quite understand what the deferred.resolve does ?
[13:31:58] *** plato has joined #angularjs
[13:32:42] <sacho> it resolves the promise of the deferred
[13:32:52] *** juampy is now known as juampy_away
[13:33:12] *** aton` has joined #angularjs
[13:33:30] *** mlpug has joined #angularjs
[13:33:33] *** evilaliv3 has quit IRC
[13:34:00] *** Evanion has joined #angularjs
[13:34:19] *** fedenunez has quit IRC
[13:34:52] *** NoNMaDDeN has quit IRC
[13:34:56] *** azizur has quit IRC
[13:35:00] *** FarLight has quit IRC
[13:35:48] *** mak`` has joined #angularjs
[13:37:39] *** t1mmen has joined #angularjs
[13:38:14] *** skyx_ has quit IRC
[13:38:23] *** lemur has quit IRC
[13:38:54] *** caitp has joined #angularjs
[13:38:57] *** kontinuity has quit IRC
[13:38:58] *** DrMabuse has quit IRC
[13:38:59] *** lemur has joined #angularjs
[13:39:04] *** atomical has joined #angularjs
[13:39:31] *** chabier has joined #angularjs
[13:39:45] *** rburns has quit IRC
[13:40:37] *** kent\n has quit IRC
[13:41:09] <Somatt_wrk> any idea how I could trigger a custom validation on a field when the model changes on another field ?
[13:41:54] *** yelvert has joined #angularjs
[13:41:55] *** Evanion has quit IRC
[13:42:09] *** chabier_ has joined #angularjs
[13:42:33] *** chabier_ has joined #angularjs
[13:42:35] <scav> whats the point of $resource compared to $http when my backend serve the correct json without the need for 100000 parameters?
[13:42:38] *** Left_Turn has joined #angularjs
[13:42:50] <scav> feels like it does nothing more than pack the result into a shitload of shit
[13:43:11] <sacho> Who's forcing you to use it?
[13:43:25] *** lemur has quit IRC
[13:44:08] *** chabier_ has quit IRC
[13:44:14] <andern> scav: isn't it nice being able to do object.$save(), and object automatically get its variables set to the return value of the service?
[13:44:18] *** chabier has quit IRC
[13:45:09] *** zanea is now known as zanea|away
[13:45:15] <scav> sacho: there was a question in there, you may have missed it
[13:45:27] *** cbennett has quit IRC
[13:45:31] <scav> andern: perhaps, but it feels awkward having to extract my result from a service method
[13:45:38] <sacho> your question doesn't make sense
[13:46:02] <sacho> $resource is useful in a very narrow context, where you need to consume a crud quickly
[13:46:12] *** DrMabuse has joined #angularjs
[13:46:23] <sacho> if your backend doesn't really match its preconceived notions, then you just wouldn't use it
[13:46:33] *** milka has joined #angularjs
[13:46:45] *** bhuvanaurora has quit IRC
[13:46:48] <scav> thanks
[13:47:00] *** yelvert has quit IRC
[13:47:01] <scav> made enough sense for you to answer it though
[13:47:25] *** chabier has joined #angularjs
[13:47:32] *** kent\n has joined #angularjs
[13:47:42] <sacho> I didn't really answer your question :)
[13:47:57] <scav> yeah, you did
[13:48:08] *** ahtik has joined #angularjs
[13:48:21] <scav> or whatever, cba to get into a debate over it
[13:48:28] <scav> thanks for your response anyway
[13:48:35] <sacho> there's also some project called restangular which aims to upgrade what $resource does
[13:48:37] *** chabier_ has joined #angularjs
[13:48:39] *** bhuvanaurora has joined #angularjs
[13:49:02] *** PrinceAMD has joined #angularjs
[13:49:13] *** kontinuity has joined #angularjs
[13:49:20] <scav> yeah, i looked at it
[13:50:24] *** fedenunez has joined #angularjs
[13:50:56] *** duall has quit IRC
[13:51:08] *** boxmein has joined #angularjs
[13:51:57] *** chabier has quit IRC
[13:52:30] *** ____aaaa1 has joined #angularjs
[13:53:01] *** foofoobar has joined #angularjs
[13:53:11] *** chabier_ has quit IRC
[13:53:24] *** caitp has quit IRC
[13:53:25] *** omolio has quit IRC
[13:53:32] *** sirsirsir has joined #angularjs
[13:54:09] *** djam90 has quit IRC
[13:54:30] *** areologist has joined #angularjs
[13:54:53] *** JR___ has quit IRC
[13:55:10] *** chabier has joined #angularjs
[13:55:33] *** Prjio has joined #angularjs
[13:55:50] *** simsketch has joined #angularjs
[13:56:06] *** moritzs has quit IRC
[13:56:59] *** areologist has quit IRC
[13:57:04] <Naaab> Can i make the call to the route associated controller wait for all my http requests to finish ?
[13:57:11] *** IJNX has quit IRC
[13:57:34] *** bhuvanaurora has quit IRC
[13:58:15] *** sirsirsir has quit IRC
[13:58:57] *** bundledavid has joined #angularjs
[13:59:36] *** chabier has quit IRC
[13:59:44] *** IJNX has joined #angularjs
[13:59:44] <sacho> have you seen the resolve parameter for routes?
[14:00:03] *** laurensclaessen has joined #angularjs
[14:00:07] *** mennea has quit IRC
[14:00:07] *** Prjio has quit IRC
[14:00:13] *** soee has quit IRC
[14:00:16] <Naaab> My prob is that im doing 7 request in my app.run (its common data to all my app so i wanted to make it avaible through $rootScoep
[14:00:24] *** tarnus has joined #angularjs
[14:00:27] <Naaab> uhhhh
[14:00:31] <Naaab> dont think so
[14:00:34] *** jonr22 has joined #angularjs
[14:00:41] *** mennea has joined #angularjs
[14:01:13] *** loverajoel has joined #angularjs
[14:01:20] <Naaab> but do u think its gonna be a issue doin 7 http request in the app.run
[14:01:21] <Naaab> ?
[14:01:24] *** rafagomes has quit IRC
[14:01:56] *** basiclaser_ has quit IRC
[14:02:12] *** rafagomes has joined #angularjs
[14:02:18] *** elmarquez has joined #angularjs
[14:04:39] *** azizur has joined #angularjs
[14:05:47] *** prbc_ has quit IRC
[14:05:59] *** duall has joined #angularjs
[14:06:04] *** kent\n has quit IRC
[14:06:05] *** Hounddog has joined #angularjs
[14:06:13] <sacho> not necessarily
[14:06:34] *** nesquerra has joined #angularjs
[14:07:36] *** jonr2219 has joined #angularjs
[14:08:10] *** TrialCoder has quit IRC
[14:08:11] <Naaab> Using the resolve attr i can say "yo wait for these to resolve and the go here!" ?
[14:08:18] <Naaab> *and then
[14:08:19] *** tjsail33 has joined #angularjs
[14:08:43] *** linojon has joined #angularjs
[14:08:56] *** N4N0 has quit IRC
[14:09:18] *** atomical has quit IRC
[14:09:56] *** djam90 has joined #angularjs
[14:09:57] *** DrMabuse has quit IRC
[14:10:50] *** GeneralChoomin has joined #angularjs
[14:10:50] *** phzon has quit IRC
[14:10:50] *** tomengland_mbp has joined #angularjs
[14:11:14] <sacho> yes
[14:11:23] <sacho> you'd have to provide the requests to resolve though
[14:11:23] <jacuqesdancona_> I've written a - I think - pretty decent testcase for front-end/angularjs applicants. If anyone is interested I'll translate it in English tomorrow. It twoway from ngMock:$httpBackend to a dedicated service/factory for API communication, through a controller, through a parent directive, through a child directive which requires the parent directive and back without (if done
[14:11:24] <jacuqesdancona_> right) any searching through the dom
[14:11:30] <sacho> for example you could write them to a value
[14:11:31] *** nesquerra has quit IRC
[14:11:47] <sacho> e.g. angular.value('waitOn', $q.all(your requests..))
[14:12:27] *** jonr2219 has quit IRC
[14:12:34] *** intellix has joined #angularjs
[14:12:42] *** bhuvanaurora has joined #angularjs
[14:12:51] *** kent\n has joined #angularjs
[14:12:56] *** tjsail33 has quit IRC
[14:14:26] *** jmichaelward has joined #angularjs
[14:14:33] *** GeneralChoomin has quit IRC
[14:14:57] *** JoeGaudet has quit IRC
[14:15:15] *** bhuvanaurora has quit IRC
[14:15:36] *** Beatzebub has joined #angularjs
[14:15:37] *** tomengland_mbp has quit IRC
[14:17:11] *** GeneralChoomin has joined #angularjs
[14:17:12] <Naaab> Using resolve i'd have to create dependencies(the data cooming from the request) between the controller and the service
[14:17:14] *** dannyc_ has quit IRC
[14:17:18] <Naaab> ?
[14:17:24] *** azizur has quit IRC
[14:18:05] *** cthrax has quit IRC
[14:18:06] *** dannyc_ has joined #angularjs
[14:18:15] *** hswolff has quit IRC
[14:18:16] *** dannyc_ has quit IRC
[14:18:30] *** tbo_ has quit IRC
[14:18:56] *** fbenoit has joined #angularjs
[14:19:02] *** Beatzebub__ has quit IRC
[14:19:06] *** jmichaelward has quit IRC
[14:19:13] *** Solid1_afk is now known as Solid1
[14:19:16] *** dannyc_ has joined #angularjs
[14:19:47] *** aviraldg has joined #angularjs
[14:19:52] <____aaaa1> Hi, Im new to angular. I've got a backend API written in Rails, and would like to develop a standalone angular app that interacts with the API. I followed Dan Wahlin's tutorial, where the backend is written in nodejs, and works wonderfully
[14:20:06] *** aviraldg has quit IRC
[14:20:29] <____aaaa1> However I'm having problems requesting the Rails backend. Any guides/posts/books that address this issue? Or steps to follow?
[14:20:31] *** aviraldg has joined #angularjs
[14:20:46] *** hswolff has joined #angularjs
[14:20:56] <kostiak> would it be possible to "read" a file using angular without uploading it to the server?
[14:20:59] *** aviraldg has quit IRC
[14:21:06] *** RobertMeta has quit IRC
[14:21:14] *** RobertMeta_ has joined #angularjs
[14:21:17] *** DrMabuse has joined #angularjs
[14:21:24] <zomg> kostiak: nothing to do with angular really, you would just use the html5 file io stuffs, eg. FileReader
[14:21:25] *** aviraldg has joined #angularjs
[14:22:16] *** fatshark has joined #angularjs
[14:22:23] *** aviraldg has joined #angularjs
[14:22:26] <kostiak> hmm.. how supported is this?
[14:22:28] *** sk87 has quit IRC
[14:22:42] <kostiak> (also is there a non-html5 way of doing it?)
[14:22:50] *** aviraldg has quit IRC
[14:22:51] *** jonr22 has quit IRC
[14:22:59] *** caitp has joined #angularjs
[14:23:05] <zomg> check caniuse, it oughta have a page on that
[14:23:15] <zomg> only non-html5 way would be to use Flash
[14:23:20] <zomg> (or upload to server)
[14:23:23] *** aviraldg has joined #angularjs
[14:23:39] <zomg> iirc the support is reasonably good except with the usual suspects (IE)
[14:23:52] *** aviraldg has quit IRC
[14:24:25] *** aviraldg has joined #angularjs
[14:24:49] *** ccbmx has quit IRC
[14:24:52] *** aviraldg has quit IRC
[14:24:53] *** whitebook has quit IRC
[14:25:13] *** Beatzebub has quit IRC
[14:26:58] *** H1FuelCell has quit IRC
[14:26:59] *** ____aaaa1 has quit IRC
[14:27:26] *** ____aaaah has joined #angularjs
[14:27:36] *** marcjs has joined #angularjs
[14:29:22] *** livingstn has joined #angularjs
[14:30:09] *** mennea has quit IRC
[14:30:22] *** skyx_ has joined #angularjs
[14:30:35] *** mogaj has quit IRC
[14:30:44] *** tjsail33 has joined #angularjs
[14:30:47] *** mennea has joined #angularjs
[14:32:15] *** aslate has quit IRC
[14:33:11] *** kuadrosx_ has joined #angularjs
[14:33:49] <Naaab> Can i do something like $routeProvider.when('/something', { templateUrl: 'templateX.html', controller: SomethingCtrl, resolve: app.run }) ???
[14:33:52] *** kuadrosx has quit IRC
[14:34:10] *** aendrew has quit IRC
[14:34:35] *** sk87 has joined #angularjs
[14:34:37] <Naaab> I mean I want to wait for the 'resolve' of the app.run which contains http calls
[14:35:57] *** FarLight has joined #angularjs
[14:36:05] <kostiak> yeah i think that's the point of using a resolve there
[14:36:33] <FarLight> Is there any way to execute a function when the current state's template intro animation has finished playing?
[14:37:06] *** ansu has quit IRC
[14:37:13] <kostiak> Naaab: "resolve - {Object.<string, function>=} - An optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, the router will wait for them all to be resolved or one to be rejected before the controller is instantiated." from the docs
[14:37:13] *** Embassy has quit IRC
[14:37:22] *** ogdabou has quit IRC
[14:37:52] *** ansu has joined #angularjs
[14:38:35] <Naaab> kostiak, ye i read it also, but inside my app.run i got 7 http requests
[14:38:42] *** TeddyMurray has joined #angularjs
[14:38:57] <Naaab> and i want to delay then until they'r all resolved
[14:41:54] <kostiak> "the router will wait for them all to be resolved or one to be rejected before the controller is instantiated."
[14:42:08] <kostiak> did you try it?
[14:43:01] *** ingsoc has joined #angularjs
[14:43:37] *** fairuz has joined #angularjs
[14:43:37] *** elmarquez has quit IRC
[14:43:37] *** rchavik has quit IRC
[14:43:40] *** shaym_ has joined #angularjs
[14:43:51] *** Evanion has joined #angularjs
[14:44:03] <ingsoc> is there a way to detect screen size so certain parts of DOM aren't built. I know your can show/hide content using css media queries but any idea how this can be done at the DOM/HTML level to prevent creation in the first place
[14:44:34] *** aendrew has joined #angularjs
[14:44:35] <FarLight> Can I somehow use $animate:after to see if a templates intro animation is complete?
[14:44:38] *** rchavik has joined #angularjs
[14:45:19] *** abosama has quit IRC
[14:45:31] *** bbankes has joined #angularjs
[14:46:09] *** cbennett has joined #angularjs
[14:47:16] *** cbennett has joined #angularjs
[14:47:54] *** kuadrosx_ has quit IRC
[14:49:30] *** phzon has joined #angularjs
[14:49:56] *** crakrjak has joined #angularjs
[14:49:57] *** aslate has joined #angularjs
[14:51:43] *** cbennett has quit IRC
[14:54:08] *** Alina-malina has quit IRC
[14:54:19] *** greengriminal has joined #angularjs
[14:54:20] *** sirsirsir has joined #angularjs
[14:54:21] *** lexek__ has joined #angularjs
[14:54:30] *** crakrjak has quit IRC
[14:55:35] *** roven has joined #angularjs
[14:55:56] *** rburns has joined #angularjs
[14:56:12] *** SonikBoom has joined #angularjs
[14:56:27] *** Prjio has joined #angularjs
[14:56:47] *** Alina-malina has joined #angularjs
[14:57:43] *** il has joined #angularjs
[14:58:55] *** sirsirsir has quit IRC
[14:59:11] *** cbennett has joined #angularjs
[14:59:20] *** roadrunneratwast has joined #angularjs
[14:59:24] *** cbennett has quit IRC
[14:59:54] *** Evanion_ has joined #angularjs
[14:59:58] *** cbennett has joined #angularjs
[15:00:09] *** ki0 has quit IRC
[15:00:11] *** mennea has quit IRC
[15:00:16] *** Evanion has quit IRC
[15:00:16] *** Evanion_ is now known as Evanion
[15:00:16] *** roven has quit IRC
[15:00:18] *** glassir has quit IRC
[15:00:19] *** vassagus has joined #angularjs
[15:00:47] *** mennea has joined #angularjs
[15:01:05] *** Prjio has quit IRC
[15:01:22] *** glassir has joined #angularjs
[15:01:32] *** FarLight has quit IRC
[15:02:08] *** il is now known as audioburn
[15:02:33] *** mjw56 has quit IRC
[15:02:51] *** cboden has joined #angularjs
[15:03:22] *** azizur has joined #angularjs
[15:03:29] *** intellix has quit IRC
[15:03:38] *** Embassy has joined #angularjs
[15:04:29] *** tarnus has quit IRC
[15:04:58] *** tfennelly has quit IRC
[15:05:00] *** vassagus has quit IRC
[15:05:09] *** tarnus has joined #angularjs
[15:05:44] *** tommix000 has joined #angularjs
[15:05:53] *** livingstn has quit IRC
[15:07:06] *** exp10r3r has quit IRC
[15:07:18] *** nesquerra has joined #angularjs
[15:08:37] <bin> hey guys, is there a way to download file through angularjs?
[15:08:44] *** PGTips has joined #angularjs
[15:08:46] <bd-> yes, the html5 File api
[15:08:57] *** kontinuity has quit IRC
[15:09:01] *** Lewix has joined #angularjs
[15:09:01] *** Lewix has joined #angularjs
[15:09:08] <bd-> but it is not well supported by browsers
[15:09:15] <bin> well it's for a private use so ..
[15:09:30] <bin> any deeper hints ? :D
[15:09:40] <zomg> define "download a file through angular"?
[15:09:46] <zomg> how does this differ from downloading a file normally?
[15:10:05] <bin> i mean
[15:10:09] <bin> i call a rest service
[15:10:19] <bin> via get and using $http
[15:10:36] <bin> afaik downloading file with XHR is not possible
[15:10:51] *** Siecje has joined #angularjs
[15:10:53] <zomg> There are ways to do it, for example mega.co.nz does that for all downloads
[15:11:05] <zomg> But if your URL is directly returning the file, you could just redirect the browser to it
[15:11:17] <zomg> Generally navigating to a file download does not count as navigating away from the page so it should stay visible
[15:11:19] *** crakrjak has joined #angularjs
[15:11:29] <bd-> bin: you can download the data with xhr, then use filewriter api to write that data to disk
[15:11:35] *** Lewix has quit IRC
[15:11:38] <bd-> but it's only chrome and opera it seems
[15:11:43] *** morenoh149 has joined #angularjs
[15:11:45] <bin> i 'm ok with it
[15:11:57] <zomg> I forget what Mega does but they support it bit better
[15:11:58] <bin> zomg: yes it's returning the file directly
[15:12:03] *** nesquerra has quit IRC
[15:12:06] <zomg> iirc they download it over XHR and save it into localStorage or smth
[15:12:24] <zomg> bin: yeah in that case just try redirecting the browser to the url
[15:12:57] <bin> zomg: well the whole point is that i must go through interceptor to add some headers ..
[15:13:14] <bin> at that point how do you redirect it as a normal request using that request?
[15:13:18] <bin> with added headers?
[15:14:10] *** ron1 has joined #angularjs
[15:14:31] <bin> bd-: cheers :D
[15:14:31] <zomg> yeah you can use that ^
[15:14:40] <bin> zomg: the file api ?
[15:14:47] <zomg> I wish the guys who wrote mega's download thing would make an article about it
[15:14:50] <zomg> because it's quite clever
[15:14:52] *** silo has quit IRC
[15:15:11] <zomg> yeah the file api should be reasonably widely available except in IE
[15:16:16] *** morenoh149 has quit IRC
[15:16:42] *** rburns has quit IRC
[15:16:48] *** kontinuity has joined #angularjs
[15:17:13] *** skyx_ has quit IRC
[15:17:23] *** crakrjak has quit IRC
[15:17:32] *** juanpablo__ has joined #angularjs
[15:18:34] *** jdj_dk_ has quit IRC
[15:19:21] *** motionman has quit IRC
[15:19:30] <bin> thanks guys
[15:19:54] <tangorri> something weirf with ui router, I go to stateHome, then stateNext. Click on back button => stateHome ok, click on next page => 404 (internal)
[15:21:56] <cheef> guys when i use $addControl on a valid form, the form says its till aded
[15:22:02] *** intellix has joined #angularjs
[15:22:03] <cheef> eventhough the control i added was required
[15:22:24] <cheef> valid*
[15:22:46] *** face_ has joined #angularjs
[15:23:31] *** Shilon has joined #angularjs
[15:24:22] *** mmealling has joined #angularjs
[15:24:24] *** rafagomes has quit IRC
[15:24:30] *** ki0 has joined #angularjs
[15:24:41] *** adben has joined #angularjs
[15:25:47] *** white_bird has quit IRC
[15:26:41] *** plekplek has quit IRC
[15:28:16] *** mkusher has joined #angularjs
[15:28:46] *** soee has joined #angularjs
[15:29:04] *** FIFOd[a] has joined #angularjs
[15:29:47] *** IJNX has quit IRC
[15:30:12] *** mennea has quit IRC
[15:30:23] *** FIFOd[a] has quit IRC
[15:30:48] *** Guest67848 has quit IRC
[15:30:49] *** mennea has joined #angularjs
[15:30:55] *** FIFOd[a] has joined #angularjs
[15:31:56] *** nemothekid has quit IRC
[15:33:19] *** Evanion has quit IRC
[15:33:42] *** NoNMaDDeN has joined #angularjs
[15:34:05] *** Hounddog has quit IRC
[15:34:51] <cheef> is there a way to defer doing stuff in directives against a form until after the next digest cycle?
[15:35:07] <cheef> running into loads of problems with me showing/hiding form elements(and removing them from the formCtrl) and adding them back
[15:35:27] *** whitebook has joined #angularjs
[15:36:37] *** samuel02 has joined #angularjs
[15:36:40] *** aendrew has quit IRC
[15:36:55] *** torghul has joined #angularjs
[15:37:24] *** vassagus has joined #angularjs
[15:37:58] *** samuel02 has quit IRC
[15:38:10] *** asheinfeld has joined #angularjs
[15:38:16] *** samuel02 has joined #angularjs
[15:38:41] *** Foxandxss has joined #angularjs
[15:38:58] *** face_ has quit IRC
[15:39:41] *** cakirke has quit IRC
[15:39:56] *** whitebook has quit IRC
[15:40:17] *** chabier has joined #angularjs
[15:40:43] *** aendrew has joined #angularjs
[15:41:26] *** chabier_ has joined #angularjs
[15:41:42] *** tommyjam has joined #angularjs
[15:41:43] *** greengriminal has quit IRC
[15:41:54] *** Oxynum has quit IRC
[15:42:33] *** pspfolio has joined #angularjs
[15:43:06] *** shinnya has joined #angularjs
[15:43:44] *** yelvert has joined #angularjs
[15:44:53] *** chabier has quit IRC
[15:44:56] *** lrvick has quit IRC
[15:45:02] *** mtsr has quit IRC
[15:45:16] *** FIFOd[a] has quit IRC
[15:45:48] *** evanjs has joined #angularjs
[15:45:53] *** chabier_ has quit IRC
[15:45:59] *** leonbienek has joined #angularjs
[15:46:08] *** mtsr has joined #angularjs
[15:46:15] *** plushy has joined #angularjs
[15:46:16] *** roadrunneratwast has quit IRC
[15:46:22] <leonbienek> Hey all
[15:47:02] <leonbienek> Can someone tell me if Restangular is being actively developed/used. Are there alternatives?
[15:47:31] *** danecando has quit IRC
[15:47:40] *** lrvick has joined #angularjs
[15:47:55] *** marcjs_ has joined #angularjs
[15:48:02] *** discgo has joined #angularjs
[15:48:36] *** yelvert has quit IRC
[15:49:56] <cheef> if i wrap a directive template in an ng-if and it has two-way data binding in is, how do I ensure that its resotred when the element is recreated?
[15:50:11] *** atomatt has quit IRC
[15:50:28] *** evanjs has quit IRC
[15:50:42] *** juristr has quit IRC
[15:51:03] *** marcjs has quit IRC
[15:51:05] *** atomatt has joined #angularjs
[15:51:14] *** lakshitha has joined #angularjs
[15:51:56] *** whitebook has joined #angularjs
[15:52:24] *** bmac has joined #angularjs
[15:53:51] *** cbennett has quit IRC
[15:53:55] *** tjsail33 has quit IRC
[15:54:33] *** robe2 has joined #angularjs
[15:54:38] *** atomical has joined #angularjs
[15:54:39] *** farzaneh has joined #angularjs
[15:54:49] <farzaneh> hi
[15:55:12] *** farzaneh has quit IRC
[15:55:35] *** farzaneh has joined #angularjs
[15:55:40] *** lakshitha has quit IRC
[15:56:22] *** ogdabou has joined #angularjs
[15:56:41] *** jonr22 has joined #angularjs
[15:57:04] *** Prjio has joined #angularjs
[15:57:08] *** farzaneh has quit IRC
[15:57:19] *** ciwolsey has joined #angularjs
[15:59:28] <cheef> sigh
[15:59:31] <cheef> dont get this!
[16:00:15] *** mennea has quit IRC
[16:00:31] *** cbennett has joined #angularjs
[16:00:53] *** mennea has joined #angularjs
[16:01:09] *** Christer has quit IRC
[16:01:25] *** Prjio has quit IRC
[16:01:26] *** cbennett has joined #angularjs
[16:01:41] *** jonr22 has quit IRC
[16:02:11] *** fabiofb has quit IRC
[16:02:37] *** prosper_ has joined #angularjs
[16:02:53] *** Fire-Dragon-DoL has joined #angularjs
[16:03:10] *** milka has quit IRC
[16:03:11] *** jmichaelward has joined #angularjs
[16:03:36] *** juristr has joined #angularjs
[16:04:04] *** krz has joined #angularjs
[16:05:06] <PGTips> Anyone know how to bind radio buttons to boolean properties as an ng-repeat filter?
[16:06:01] *** bundledavid has quit IRC
[16:06:43] *** dacuca has joined #angularjs
[16:07:05] <bin> zomg: hahaha used a.download and a.href from data :) it worked :)
[16:07:37] *** mkusher has quit IRC
[16:07:40] *** kas84 has joined #angularjs
[16:07:46] *** jmichaelward has quit IRC
[16:08:01] *** nesquerra has joined #angularjs
[16:08:17] *** foofoobar has quit IRC
[16:08:34] * PGTips wanders off and shoots himself
[16:09:24] *** prosper_ has quit IRC
[16:09:54] *** toin0u|away is now known as toin0u
[16:11:14] *** Aliks has quit IRC
[16:12:32] *** nesquerra has quit IRC
[16:12:58] *** asheinfeld has quit IRC
[16:13:05] *** prosper_ has joined #angularjs
[16:14:15] *** mylord has quit IRC
[16:14:52] *** bundledavid has joined #angularjs
[16:15:02] *** JSONB has joined #angularjs
[16:15:29] *** danon has joined #angularjs
[16:15:30] *** mylord has joined #angularjs
[16:16:54] *** jasonp has joined #angularjs
[16:17:14] *** asheinfeld has joined #angularjs
[16:17:24] *** rafagomes has joined #angularjs
[16:17:38] *** Shilon has quit IRC
[16:18:00] *** Shilon has joined #angularjs
[16:19:27] *** cacts has joined #angularjs
[16:19:58] *** disgrntld has joined #angularjs
[16:21:57] *** tommyjam has quit IRC
[16:22:12] *** kwaledesign has joined #angularjs
[16:22:55] *** Shilon has quit IRC
[16:24:19] *** josh has joined #angularjs
[16:24:30] *** ezakimak has quit IRC
[16:24:57] *** Oxynum has joined #angularjs
[16:25:24] *** sirsirsir has joined #angularjs
[16:25:39] *** pspfolio has quit IRC
[16:25:43] *** ezakimak has joined #angularjs
[16:26:12] *** kirfu has joined #angularjs
[16:26:49] *** caitp has quit IRC
[16:27:09] *** Pookz has quit IRC
[16:27:26] *** jonasliljestrand has quit IRC
[16:29:22] *** gh0st has quit IRC
[16:29:44] *** sirsirsir has quit IRC
[16:30:17] *** mennea has quit IRC
[16:30:57] *** mennea has joined #angularjs
[16:31:15] *** Rutix has quit IRC
[16:32:07] *** Rutix has joined #angularjs
[16:32:07] *** Rutix has joined #angularjs
[16:34:01] *** josh-k has joined #angularjs
[16:36:40] *** loverajoel has quit IRC
[16:37:44] *** ahtik has quit IRC
[16:37:50] *** e0ipso has quit IRC
[16:37:50] *** Seich has quit IRC
[16:38:34] *** amirn has joined #angularjs
[16:39:03] *** e0ipso has joined #angularjs
[16:39:20] *** Seich has joined #angularjs
[16:39:49] *** bhuvanaurora has joined #angularjs
[16:39:50] *** edzez has quit IRC
[16:40:20] *** edzez has joined #angularjs
[16:40:21] *** darrin has joined #angularjs
[16:40:30] *** rburns has joined #angularjs
[16:41:46] *** darrin has quit IRC
[16:42:01] *** roadrunneratwast has joined #angularjs
[16:42:08] *** darrin has joined #angularjs
[16:42:10] *** danon has quit IRC
[16:43:04] *** rud has quit IRC
[16:43:46] *** doodlehaus has quit IRC
[16:44:23] <nothingPT> i got that once when I was getting resources without being authenticated
[16:44:56] <nothingPT> I had to put an exception on the folder those resources were located
[16:45:07] *** asheinfeld has quit IRC
[16:45:15] <roadrunneratwast> I think it has to do with the Express Routing headers?
[16:45:20] *** amirn has quit IRC
[16:45:57] *** kontinuity has quit IRC
[16:46:44] *** kuadrosx_ has joined #angularjs
[16:46:46] <roadrunneratwast> response.set('Content-Type') ?
[16:46:52] *** intellix has quit IRC
[16:47:04] <nothingPT> have you tried res.setHeader('content-type', 'text/javascript'); ?
[16:47:22] <roadrunneratwast> yeah. that sounds good
[16:47:31] <roadrunneratwast> is there a way to get all header types?
[16:47:41] <roadrunneratwast> text/html and text/css
[16:47:46] <nothingPT> use -> application/javascript since text/javascript is obsolete
[16:47:48] *** epantzar has quit IRC
[16:47:54] <roadrunneratwast> oh
[16:48:18] *** Embassy has quit IRC
[16:48:39] *** sqwk has joined #angularjs
[16:48:56] *** epantzar has joined #angularjs
[16:49:05] *** dman777_alter has joined #angularjs
[16:49:30] *** zzing has joined #angularjs
[16:49:30] *** mayday_jay has joined #angularjs
[16:49:37] *** zzing has quit IRC
[16:50:27] *** intellix has joined #angularjs
[16:50:28] <sqwk> any recomendations for a library for working with the filesystem API in angular?
[16:50:46] *** jmichaelward has joined #angularjs
[16:50:51] *** roven has joined #angularjs
[16:50:52] *** lrvick has quit IRC
[16:51:12] *** jordandotdev has joined #angularjs
[16:51:36] *** kwaledesign has quit IRC
[16:52:05] *** kuadrosx_ has quit IRC
[16:52:15] *** e0ipso is now known as e0ipso|away
[16:52:19] *** lrvick has joined #angularjs
[16:52:51] *** e0ipso|away is now known as e0ipso
[16:53:23] *** nesquerra has joined #angularjs
[16:53:48] *** bundledavid has quit IRC
[16:55:45] *** JR___ has joined #angularjs
[16:55:46] *** VeeWee has quit IRC
[16:56:09] *** kuadrosx_ has joined #angularjs
[16:57:01] *** torghul has quit IRC
[16:57:07] *** lexek__ has quit IRC
[16:57:08] *** prosper_ has quit IRC
[16:57:10] *** dan2k3k4 has joined #angularjs
[16:57:28] <dan2k3k4> ng-click seems to ignore $.colorbox.remove();
[16:57:42] <sacho> what's that supposed to mean?
[16:57:45] *** ggrzybek has quit IRC
[16:57:46] *** Seich has quit IRC
[16:57:46] *** e0ipso has quit IRC
[16:57:57] *** Prjio has joined #angularjs
[16:58:06] <dan2k3k4> I have a colorbox with: ng-click="$.colorbox.remove(); myFunc('/some/page');" - so it should close the popup first then navigate to the page (as myFunc is for that)
[16:58:21] <dan2k3k4> but it doesn't seem to do the onclick
[16:58:31] <dan2k3k4> or ng-click*
[16:58:33] <dan2k3k4> hmm
[16:58:52] *** Seich has joined #angularjs
[16:59:02] *** e0ipso has joined #angularjs
[16:59:13] <dan2k3k4> well it does ng-click but only the controller function (myFunc)
[16:59:18] *** nesquerra has quit IRC
[16:59:56] *** Solid1 is now known as Solid1_afk
[16:59:57] *** JR___ has quit IRC
[17:00:20] *** mennea has quit IRC
[17:00:27] *** roadrunneratwast has quit IRC
[17:00:30] *** morenoh149 has joined #angularjs
[17:00:36] *** jagga has quit IRC
[17:00:57] *** mennea has joined #angularjs
[17:00:58] <dan2k3k4> even changing myFunc to just alert() doesn't work, I guess because it's only trying to run functions from the controller with ng-click?
[17:01:09] *** codeninja-don has joined #angularjs
[17:01:23] *** kapil__ has quit IRC
[17:01:40] *** rho has joined #angularjs
[17:01:40] *** rho has joined #angularjs
[17:02:09] *** doodlehaus has joined #angularjs
[17:02:21] *** dfew has joined #angularjs
[17:02:40] *** Prjio has quit IRC
[17:02:52] <sacho> your scope doesn't have a $ property
[17:02:54] *** dfew has quit IRC
[17:03:19] *** rburns has quit IRC
[17:03:23] *** azizur has quit IRC
[17:03:54] <dan2k3k4> sacho, is it 'wise' to add $ property ?
[17:03:58] *** sheplu has quit IRC
[17:04:00] *** mkusher has joined #angularjs
[17:04:02] <dan2k3k4> or would $$.colorbox.remove(); work ?
[17:04:06] <sacho> no?
[17:04:08] <sacho> to either
[17:04:12] <sacho> write a function to do what you want
[17:04:17] <sacho> complex expressions in directives are awful
[17:04:21] *** DrMabuse_ has joined #angularjs
[17:04:25] <leonbienek> ANyone have experience with Restangular?
[17:04:37] <sacho> not only are they not reusable, they're also incredibly hard to debug
[17:04:43] <sacho> and are prone to syntax errors
[17:04:47] <dan2k3k4> sacho, so something like ng-click="close(); go('my/page');" ?
[17:05:02] <sacho> sure
[17:05:07] <sacho> or just have a single function do both.
[17:05:13] <dan2k3k4> where close = function() { $.colorbox.remove(); }
[17:05:26] *** morenoh149 has quit IRC
[17:05:28] <sacho> ng-click="handleWhateverClick()" handleWhateverClick => $.colorbox.remove(); go('my/page')
[17:06:06] *** foofoobar has joined #angularjs
[17:07:54] *** DrMabuse has quit IRC
[17:08:08] *** doodlehaus has quit IRC
[17:08:23] *** bmac has quit IRC
[17:08:54] *** kuadrosx_ has quit IRC
[17:08:58] *** DrMabuse_ has quit IRC
[17:09:02]
<Somatt_wrk> I am trying to trigger a custom validation when an external model changes. validation is done as wanted, but the validity state isn't updated correctly. i.e. ctrl.$setValidity('dgpValid', true); is called but when I log ctrl it stills show invalid. any idea ? http://dpaste.com/3RBK93V
[17:09:13] *** jlmitch5dev has joined #angularjs
[17:09:30] *** prosper_ has joined #angularjs
[17:10:23] *** pushpak has joined #angularjs
[17:11:03] <Naaab> Hi guys so i need angular to resolve app.run before doing any route. I'm trying by adding resolve: app.run to the routes but without success, any ideas ? tks
[17:11:06] *** CodeFriar has joined #angularjs
[17:11:10] *** boxmein has quit IRC
[17:11:16] *** tommix000 has quit IRC
[17:12:06] *** lrvick has quit IRC
[17:12:22] *** lrvick has joined #angularjs
[17:12:24] <dan2k3k4> any recommendations for client (with push to server) side stats? similar to google analytics but self-hosted and managed / easy to customize etc. ?
[17:12:48] *** caitp has joined #angularjs
[17:12:56] *** m1hael has left #angularjs
[17:13:22] *** MaxV has quit IRC
[17:13:43] *** rchavik has quit IRC
[17:13:46] *** marshall has joined #angularjs
[17:14:36] *** BillCriswell has joined #angularjs
[17:14:37] *** jonr22 has joined #angularjs
[17:14:38] *** epantzar has quit IRC
[17:14:54] *** asheinfeld has joined #angularjs
[17:15:45] *** apoorvparijat has joined #angularjs
[17:16:20] *** aarapov has quit IRC
[17:16:21] *** MaxV has joined #angularjs
[17:16:46] *** bmac has joined #angularjs
[17:16:54] *** Sky[x] has joined #angularjs
[17:17:19] *** leonbienek has quit IRC
[17:17:24] *** cacts|wtf has joined #angularjs
[17:17:54] *** saint-ron has quit IRC
[17:17:55] *** wib has quit IRC
[17:18:00] *** Jack3l has joined #angularjs
[17:18:00] *** nothingPT has quit IRC
[17:18:03] *** wib has joined #angularjs
[17:18:03] *** wib has joined #angularjs
[17:18:53] *** boxmein has joined #angularjs
[17:19:08] <Jack3l> Hey all - does anyone have a good tutorial link for using jquery plugins with angular
[17:19:22] *** davidnknight has joined #angularjs
[17:19:35] *** NoNMaDDeN has quit IRC
[17:19:50] <zonetti> I'm using phonegap + bootstrap + angular.. and sometimes ngClick events just don't trigger, is this a known issue perhaps?
[17:20:00] *** PrinceAMD has quit IRC
[17:20:14] <Jack3l> I am working on a wordpress project that has angularjs kind of shoe-horned into it (I think it was a last min decision to use angular on one portion of the site)
[17:21:07] *** atomical has quit IRC
[17:21:09] <Jack3l> I need angular to trigger a function in my jquery code when a user clicks on a button in one of the templates in angular
[17:21:22]
<dhrami> I am trying to integrate a timeline component (http://www.simile-widgets.org/timeline/) into my angular project. The samples build out the timeline in an on_load handler in the body tag. This on_load handler assumes that the div where the timeline goes already exists. but my timeline div is deep in a nested ui-router tree and won't exist. then.
[17:21:57] <dhrami> what would be the angular way to do this? make a <TimeLine> tag directive and do the initialization in there?
[17:22:10] *** caitp has quit IRC
[17:22:16] *** samuel02 has quit IRC
[17:22:30] *** caitp has joined #angularjs
[17:22:38] *** Jack3l has quit IRC
[17:22:41] *** zemanel has joined #angularjs
[17:23:25] *** kwaledesign has joined #angularjs
[17:23:33] *** morenoh149 has joined #angularjs
[17:24:22] *** cthrax has joined #angularjs
[17:24:28] *** kuadrosx has joined #angularjs
[17:24:42] *** foofoobar has quit IRC
[17:25:45] *** NoNMaDDeN has joined #angularjs
[17:25:47] *** rud has joined #angularjs
[17:25:48] *** rud has joined #angularjs
[17:26:13] *** bmac has quit IRC
[17:26:50] *** rud has quit IRC
[17:27:10] *** arabot has joined #angularjs
[17:27:21] *** rud has joined #angularjs
[17:27:22] *** azizur has joined #angularjs
[17:27:41] *** tangorri has quit IRC
[17:27:57] *** morenoh149 has quit IRC
[17:28:05] *** deanclkclk has joined #angularjs
[17:29:38] *** krz has quit IRC
[17:30:02] *** doug64k has joined #angularjs
[17:30:15] <sakustar> zonetti: might try @ #ionic
[17:30:17] *** chabier has joined #angularjs
[17:30:28] <sakustar> zonetti: should be more ng + cordova peeps there
[17:31:23] *** mary5030 has joined #angularjs
[17:32:16] *** cheef has quit IRC
[17:32:32] *** dsdeiz has joined #angularjs
[17:33:26] *** bhuvanaurora has quit IRC
[17:33:52] *** rho has quit IRC
[17:33:55] *** azizur7 has joined #angularjs
[17:34:19] *** kostiak has quit IRC
[17:34:23] *** azizur has quit IRC
[17:34:59] *** chabier has quit IRC
[17:35:37] *** dweave has joined #angularjs
[17:36:36] <Naaab> Hi guys so i need angular to resolve app.run before doing any route. I'm trying by adding resolve: app.run to the routes but without success, any ideas ? tks
[17:37:28] *** mary5030 has quit IRC
[17:37:31] *** loverajoel has joined #angularjs
[17:38:00] *** mary5030 has joined #angularjs
[17:38:30] *** diegoaguilar has joined #angularjs
[17:38:35] <zonetti> sakustar, I see.. ty anyway :)
[17:39:25] *** arkin has quit IRC
[17:39:25] *** arkin has joined #angularjs
[17:39:39] <davesidious> Naaab - have you tried creating a service which contains a deferred object, and injecting that into your app.run and returning it from a resolve?
[17:40:03] <davesidious> then you just need to resolve it in app.run and then routing would start.
[17:40:15] *** aendrew has quit IRC
[17:40:28] *** oste has joined #angularjs
[17:40:44] *** laurensclaessen has quit IRC
[17:40:48] <sacho> alternatively write your own ng-view
[17:40:52] *** codeninja-don has left #angularjs
[17:40:52] <sacho> which waits on this service
[17:40:58] *** dan2k3k4 has quit IRC
[17:41:08] <davesidious> that sounds like the nuclear option :)
[17:41:13] <sacho> dunno
[17:41:25] <sacho> write my own directive seems to be the most common solution to my problems with angular currently
[17:41:26] <Naaab> davesidious, imma gonna be honest, i didnt undeerstand the deferred object thingy :/
[17:41:27] *** mary5030_ has joined #angularjs
[17:41:39] *** galdorvardamir has quit IRC
[17:41:39] *** mennea has quit IRC
[17:41:40] <davesidious> Naaab - that's the crux of resolving, pretty much.
[17:41:48] <sacho> Naaab, start by putting all your code that you do in app.run in a service
[17:41:55] <davesidious> it's really worth learning if you want to make anything remotely powerful
[17:41:57] *** loverajoel has quit IRC
[17:41:58] <sacho> Naaab, now, each of your http requests that you want to wait on return a promise
[17:42:09] *** atomical has joined #angularjs
[17:42:15] *** mennea has joined #angularjs
[17:42:19] <sacho> check out $q.all() how you cna create a promise that's resolved when all of the promises you pass to it are resolved(you'd pass all the http request promises to it)
[17:42:24] <davesidious> sacho - I think he wants app.run to be called *before* any routing happens, not before each route is resolved
[17:42:33] <sacho> then you expose this $q.all() via your service
[17:42:37] *** mary5030 has quit IRC
[17:42:44] *** arkin has quit IRC
[17:42:48] <sacho> and use it on every route
[17:42:52] <Naaab> I need to resolve 7 http request befero any rout is called
[17:43:13] *** fedenunez has quit IRC
[17:43:36] <Naaab> sacho, i could do that, pass the calls to a service, but then i got lost on " each of your http requests that you want to wait on return a promise"
[17:43:53] *** arkin has joined #angularjs
[17:44:39] *** arkin has quit IRC
[17:44:43] <Naaab> i understand the async shit, but the deferred thingy seems like, "Ok request resolve what do u wanna call?"
[17:44:50] *** arkin_ has joined #angularjs
[17:44:57] *** arkin_ is now known as arkin
[17:45:05] *** yelvert has joined #angularjs
[17:45:06] <Naaab> I guess i could call the controller
[17:45:35] *** mayday_jay has quit IRC
[17:45:43] *** jonr2219 has joined #angularjs
[17:45:44] <bealtine> prmises are like super callbacks
[17:45:49] <bealtine> promises
[17:46:00] *** atomatt has quit IRC
[17:46:21] *** toin0u is now known as toin0u|away
[17:46:24] *** chabier has joined #angularjs
[17:46:47] *** ccohn has joined #angularjs
[17:46:51] *** laurensclaessen has joined #angularjs
[17:47:13] *** Seich has quit IRC
[17:47:14] *** dsdeiz has quit IRC
[17:47:33] *** lucasjones has quit IRC
[17:47:43] *** lucasjones has joined #angularjs
[17:47:49] <Naaab> aint it be like the call in it self? promise = $http.get('/something') ? and then i need to add the promisse to the $q stack and give a callback func when its resolved ?
[17:47:54] <davesidious> yeah - you can do it the way I said
[17:48:02] *** lumio has quit IRC
[17:48:17] *** dsdeiz has joined #angularjs
[17:48:51] <sacho> Naaab, the calling $http.* returns a promise - you can collect these promises in an array
[17:49:02] <bealtine> return $http()
[17:49:04] <sacho> then you could create a new promise that's only resolved when your array of promises are all resolved
[17:49:15] <Naaab> aaaaaaaaaaaa
[17:49:26] *** nesquerra has joined #angularjs
[17:49:29] *** Seich has joined #angularjs
[17:49:41] *** CanyonMan has joined #angularjs
[17:49:42] <Naaab> shit i got it now
[17:49:54] <sacho> that's really the cool thing about promises
[17:49:57] <CanyonMan> I'm continually confused by whether I should be using a bower dependency ui-bootstrap
[17:49:58] <sacho> the ability to compose them
[17:49:59] *** t1mmen has quit IRC
[17:49:59] <CanyonMan> or angular-ui-bootstrap
[17:50:00] <Naaab> but i can put the init service in my route ?
[17:50:06] <Naaab> in the resolve part
[17:50:12] *** yelvert has quit IRC
[17:50:13] <sacho> Naaab, sure, it's a service, so it's injectable
[17:50:14] <bealtine> yeah once you get bitten everything turns into a promise
[17:50:20] *** jonr2219 has quit IRC
[17:50:20] *** djam90 has quit IRC
[17:50:25] <Naaab> yea like davesidious was saying
[17:50:27] <davesidious> I checked and this approach would definitely work
[17:50:33] <Naaab> yea yea
[17:50:36] *** djam90 has joined #angularjs
[17:50:36] <Naaab> cool
[17:50:39] <davesidious> :)
[17:50:55] <Naaab> tks guys
[17:51:10] *** oste has quit IRC
[17:51:33] <davesidious> good luck!
[17:51:37] *** ogdabou has quit IRC
[17:51:42] *** startupality has quit IRC
[17:51:43] *** wa5ted has quit IRC
[17:52:37] *** kirfu has quit IRC
[17:52:39] *** cbennett has quit IRC
[17:52:49] *** kirfu has joined #angularjs
[17:52:53] *** stylemistake has quit IRC
[17:52:56] *** DarrenCraig has quit IRC
[17:53:53] *** steeze has joined #angularjs
[17:54:53] *** cacts|wtf is now known as cacts|works
[17:54:54] *** duall has quit IRC
[17:54:57] *** nfroidure has quit IRC
[17:54:59] *** nesquerra has quit IRC
[17:55:53] *** elyssonmr has joined #angularjs
[17:55:57] *** fbenoit has quit IRC
[17:56:12] <lugzer> hi, I am barely starting with ng, and I noticed every tutorial has a different way of writing code. For example: Why controller is sometimes glued on to the module as its object, and why sometimes it's on its own?
[17:56:21] *** aendrew has joined #angularjs
[17:56:39] *** Embassy has joined #angularjs
[17:56:58] <bealtine> i prefer the .controller syntax
[17:57:14] <bealtine> the standalone syntax is older
[17:57:21] *** duall has joined #angularjs
[17:57:44] *** DuelShark has joined #angularjs
[17:58:43] <lugzer> is there any difference other than how it's written? another thing: why sometimes ng-app attribute has a value, sometimes not
[17:58:45] *** Prjio has joined #angularjs
[17:58:50] *** mayday_jay has joined #angularjs
[17:59:03] <Foxandxss> lugzer: on its own === bad
[17:59:04] <Foxandxss> always
[17:59:09] <Foxandxss> as easy as that
[17:59:15] <Foxandxss> ng-app should have a value
[17:59:16] *** kontinuity has joined #angularjs
[17:59:17] *** djam90 has quit IRC
[17:59:19] <Foxandxss> which is the main module of your app
[17:59:26] <AlexZan> has anyone here deployed their frontend to a amazon cloudfront or any other cdn?
[17:59:30] <Foxandxss> (technically it is the module the app will load)
[17:59:34] *** sk87 has quit IRC
[17:59:48] *** NormySan has joined #angularjs
[17:59:50] <Foxandxss> without parameter is when you use the controllers on their own (which is bad)
[18:01:03] <lugzer> Foxandxss: okay. but even official ng guide has controller written on its own..
[18:01:16] <Foxandxss> yeah, don't ask me why
[18:01:21] <Foxandxss> it is a basic way to do it
[18:01:24] <lugzer> ok
[18:01:30] <Foxandxss> I guess it is done for easiness
[18:01:50] <Foxandxss> or maybe to delay the module explanation (I didn't read the tutorial)
[18:01:55] *** zzing has joined #angularjs
[18:01:56] <Foxandxss> but real apps does controllers on modules
[18:01:59] *** t1mmen has joined #angularjs
[18:02:21] *** cthrax has quit IRC
[18:02:57] *** Prjio has quit IRC
[18:03:47] <snurfery> sup yall
[18:04:01] <snurfery> happy consumer feeding frenzy day
[18:04:08] <lugzer> Foxandxss: thanks. so the same applies for directives and so on? isn't it making the code a bit less readable (just an assumption)?
[18:04:28] *** vectra has joined #angularjs
[18:04:34] <Foxandxss> only controllers supports that syntax lugzer
[18:04:40] <Foxandxss> and it is not less readable, it is more
[18:04:52] <Foxandxss> because I know what that function does, without making assumptions
[18:04:56] <Foxandxss> snurfery: yeah, we just need money then
[18:05:06] * snurfery nods emphatically
[18:05:38] *** s3shs has joined #angularjs
[18:05:44] *** macgregor has quit IRC
[18:06:17] <snurfery> question about testing
[18:06:34] <snurfery> "I have a rash, and I was wondering...."
[18:06:41] <snurfery> woops wrong channel
[18:07:06] <Foxandxss> don't test that
[18:07:21] *** danecando has joined #angularjs
[18:07:26] <snurfery> I was wondering if you guys store all your mocked services centrally or re-define them in each test
[18:07:50] <Foxandxss> DRY
[18:07:53] <Foxandxss> that always apply :P
[18:08:35] *** TyrfingMjolnir has quit IRC
[18:09:06] <lugzer> Foxandxss: just a note, i found out that directives can be glued on too, works fine.. some tutorials use this notation too.
[18:09:18] *** macgregor has joined #angularjs
[18:09:28] *** alasi has joined #angularjs
[18:09:53] *** kuadrosx has quit IRC
[18:10:16] <Foxandxss> lugzer: glued where?
[18:10:36] <lugzer> Foxandxss: i mean, angular.module(...).controller(...).directive(...);
[18:11:08] *** bhuvanaurora has joined #angularjs
[18:11:12] <Foxandxss> that is the only notation
[18:11:18] <Foxandxss> there is no other notation
[18:11:21] <Foxandxss> except for controllers
[18:11:36] *** silo has joined #angularjs
[18:11:41] *** mennea has quit IRC
[18:11:42] <Foxandxss> sorry, when I said "only controllers supports that syntax" I meant the one without modules
[18:11:48] *** laurensclaessen has quit IRC
[18:11:57] <Foxandxss> function fooCtrl($scope) { ...}
[18:12:11] *** dsdeiz has quit IRC
[18:12:17] *** mennea has joined #angularjs
[18:12:28] <lugzer> Foxandxss: ok. this is different from the (outdated?) guide which first creates a var to hold the module, then app.controller(...), app.directive(..) etc
[18:12:42] *** emmesswhy has joined #angularjs
[18:12:56] <Foxandxss> no
[18:13:03] <Foxandxss> is not different
[18:13:09] <Foxandxss> angular.module returns a reference to the module
[18:13:10] <lugzer> i mean - different syntax
[18:13:13] <Foxandxss> so you can chain the calls
[18:13:20] *** DuelShark has quit IRC
[18:13:33] *** NoNMaDDeN has quit IRC
[18:13:34] *** DuelShark has joined #angularjs
[18:13:36] <Foxandxss> that mean that you can save that module into a variable "app" and reuse it to register more stuff
[18:13:40] *** vectra has quit IRC
[18:14:11] *** sirsirsir has joined #angularjs
[18:14:15] *** sqwk has quit IRC
[18:14:23] *** doginal has joined #angularjs
[18:14:24] <lugzer> okay. that is what the official guide does
[18:14:37] <sacho> lugzer, as to why, it's fairly common when the framework doesn't enforce a particular style.
[18:15:03] <sacho> the bigger practical difference is what style of DI you use
[18:15:06] *** DuelShark has joined #angularjs
[18:15:17] *** davidreis has quit IRC
[18:15:29] *** vectra has joined #angularjs
[18:15:32] *** MaxV has quit IRC
[18:16:15] *** DuelShark has quit IRC
[18:16:26] *** jacuqesdancona_ has quit IRC
[18:16:32] *** wa5ted has joined #angularjs
[18:16:50] <TeddyMurray> is it possible to bind data as it changes in the database? i want to make a buddy list that shows when people are online
[18:16:51] <alasi> Grokling: good morning :D I read the code more and its starting to make more sense! One thing I forgot to mention-- how come the shop -> gadget json can't be nested? Or can it?
[18:17:00] *** jacuqesdancona_ has joined #angularjs
[18:17:15] *** kwaledesign has quit IRC
[18:17:22] *** emmesswhy has quit IRC
[18:17:30] *** laurensclaessen has joined #angularjs
[18:17:47] *** darrin has quit IRC
[18:17:54] *** emmesswhy has joined #angularjs
[18:17:58] <alasi> TeddyMurray: for realtime, databases are not the best solution. I would try some sort of router thing that notifies their buddies as soon as they log in/ouy
[18:18:08] <lugzer> sacho: i see. i was just not sure if there's one "proper" way of working with this. as far as the DI goes, didn't use it yet, but I saw a way of doing it like so: ...['$scope', '$timeout', function($scope, $timeout) {}]
[18:18:09] *** darrin has joined #angularjs
[18:18:21] *** DuelShark has joined #angularjs
[18:18:33] <sacho> mhm
[18:18:56] *** DuelShark has joined #angularjs
[18:19:06] *** sirsirsir has quit IRC
[18:19:40] *** s3shs has quit IRC
[18:19:40] *** leonbienek has joined #angularjs
[18:19:42] *** mkusher has quit IRC
[18:19:45] <Bennit> Hello, I got a custom directive 'percentage-circle' that sets the img src attribute to a base64 image
[18:19:50] <lugzer> sacho ...which comes from an example which in fact uses a variable to hold the main module (var app = angular.module(..)
[18:19:52] *** atomical has quit IRC
[18:19:55] <snurfery> TeddyMurray: a lot of realtime services use pub/sub patterns and a service like redis
[18:20:02] <lugzer> anyway
[18:20:11] <snurfery> that's what I see recommended a lot
[18:20:13] <TeddyMurray> pub/sub?
[18:20:23] <Bennit> the directive works when hardcoding the parameters to the function that renders image
[18:20:28] <snurfery> publish / subscribe
[18:20:31] *** atomical has joined #angularjs
[18:20:49] <snurfery> for example when I type in this channel, I'm publishing
[18:20:55] *** apoorvparijat has quit IRC
[18:20:58] <snurfery> everyone else in the chat room is subscribed to the channel
[18:20:58] <Bennit> what approach should I take to make parameters of that function be passed as arguments to the img tag
[18:21:08] *** jacuqesdancona_ has quit IRC
[18:21:24] <TeddyMurray> but how does my client know when to get new messages?
[18:22:07] <alasi> the server can push a message to the client
[18:22:08] <Bennit> should I create new directive attributes for each of the parameters?
[18:22:10] <alasi> websockets are cool
[18:22:32] *** cthrax has joined #angularjs
[18:22:33] <TeddyMurray> oh nice, i will look into websockets
[18:22:36] <snurfery> TeddyMurray: websockets, socket.io, something like that
[18:22:39] <TeddyMurray> sorry for going a little off topic
[18:22:44] *** vonnegut has quit IRC
[18:22:56] <snurfery> nah it's cool, that's more on-topic than half the crap I talk about
[18:23:01] <alasi> socket.io is amazing
[18:23:02] <snurfery> I googled "redis node chat"
[18:23:36] <snurfery> I have to build that into my app at some point too =)
[18:23:38] <Bennit> Aha, =<attrname> will bind scope vars to attribute vars
[18:24:12] *** jmichaelward has quit IRC
[18:25:05] *** tfennelly has joined #angularjs
[18:25:07] *** BillCriswell has quit IRC
[18:25:07] <sacho> well
[18:25:10] *** atomical has quit IRC
[18:25:18] *** gh0st has joined #angularjs
[18:25:19] *** zzing has quit IRC
[18:25:27] *** epantzar has joined #angularjs
[18:25:51] *** m8 has quit IRC
[18:26:59] *** leonbienek has quit IRC
[18:27:56] <TeddyMurray> thanks for the help everyone
[18:28:02] *** t1mmen has quit IRC
[18:28:48] *** s3shs has joined #angularjs
[18:29:49] *** atomical has joined #angularjs
[18:29:53] *** epantzar has quit IRC
[18:30:25] *** soee_ has joined #angularjs
[18:31:02] *** Lewix has joined #angularjs
[18:31:03] *** Ajans has quit IRC
[18:31:14] *** kuadrosx has joined #angularjs
[18:31:23] <Lewix> what plugin do you use for atom for angular and jslint
[18:31:32] <Lewix> I'm tired of irrelevant error messages
[18:31:46] *** soee has quit IRC
[18:33:22] *** jacuqesdancona_ has joined #angularjs
[18:34:23] *** sikor_sxe has quit IRC
[18:34:29] *** kwaledesign has joined #angularjs
[18:35:32] *** phzon has quit IRC
[18:35:37] *** storkme has left #angularjs
[18:35:40] *** intellix has quit IRC
[18:35:54] *** prosper_ has quit IRC
[18:38:42] *** Johnny13371337 has joined #angularjs
[18:38:56] *** jonr22 has quit IRC
[18:39:11] *** delight has quit IRC
[18:39:24] *** jolts has quit IRC
[18:40:00] *** dannyc has quit IRC
[18:40:04] *** dannyc_ has quit IRC
[18:40:52] *** dannyc_ has joined #angularjs
[18:41:18] *** yandos has quit IRC
[18:41:44] *** mennea has quit IRC
[18:41:56] *** Sijdesign has joined #angularjs
[18:42:19] *** bundledavid has joined #angularjs
[18:42:22] *** mennea has joined #angularjs
[18:42:28] *** yandos has joined #angularjs
[18:43:10] <Naaab> Hi guys i need help adding services to the resolve attr in the routeProvider
[18:43:21] <Naaab> Im simply resolve: mySerivceName
[18:43:34] <Naaab> but get a error
[18:43:37] <Naaab> any ideas ?
[18:43:37] *** despai has joined #angularjs
[18:44:04] *** cthrax has quit IRC
[18:45:16] *** cacts has quit IRC
[18:46:46] *** glassir has quit IRC
[18:46:56] *** delight has joined #angularjs
[18:47:08] *** cacts|works has quit IRC
[18:47:13] *** dacuca has quit IRC
[18:47:28] *** bundledavid has quit IRC
[18:47:44] *** cacts|works has joined #angularjs
[18:48:59] *** livingstn has joined #angularjs
[18:49:12] *** jlmitch5dev has joined #angularjs
[18:49:53] *** frankblizzar has quit IRC
[18:50:28] *** robksawyer has joined #angularjs
[18:51:34] *** nesquerra has joined #angularjs
[18:51:58] *** DuelShark has quit IRC
[18:52:10] *** toad-br has joined #angularjs
[18:52:16] *** DuelShark has joined #angularjs
[18:52:58] *** ciwolsey has quit IRC
[18:53:11] *** loverajoel has joined #angularjs
[18:54:02] *** jaznow has quit IRC
[18:55:30] *** whitebook has quit IRC
[18:55:48] *** kwaledesign has quit IRC
[18:55:54] *** Lewix has quit IRC
[18:56:00] *** intellix has joined #angularjs
[18:56:18] *** nesquerra has quit IRC
[18:56:31] *** Artagan has quit IRC
[18:56:40] *** Oxynum has quit IRC
[18:57:23] *** kuadrosx has quit IRC
[18:57:37] *** loverajoel has quit IRC
[18:57:49] *** fedenunez has joined #angularjs
[18:58:00] *** xxtjaxx has joined #angularjs
[18:58:31] *** stephen has quit IRC
[18:58:32] <alasi> Hmm, after a bit of thinking, it seems that using a service without a factory is feasible at the moment. Would it be a total sin to do this?
[18:58:58] *** duall has quit IRC
[18:59:02] *** dman777_alter has quit IRC
[18:59:04] *** s3shs has quit IRC
[18:59:31] *** whatadewitt has joined #angularjs
[18:59:35] *** Prjio has joined #angularjs
[18:59:55] *** Lewix has joined #angularjs
[18:59:56] *** Lewix has joined #angularjs
[18:59:58] <snurfery> nope, I use tons of services and very few factories
[19:00:02] <snurfery> go for it
[19:00:06] <whatadewitt> hey everyone, i'm using "angular-local-storage" in my app, but i'm looking for something similar for session storage...
[19:00:10] <snurfery> they're very similar
[19:00:14] *** jaznow has joined #angularjs
[19:00:18] *** larsam has quit IRC
[19:00:29] *** elyssonmr has quit IRC
[19:00:30] *** Prjio has quit IRC
[19:00:46] *** elyssonmr has joined #angularjs
[19:01:00] <alasi> snurfery: k cool
[19:01:10] *** juristr has quit IRC
[19:01:12] *** ron1 has quit IRC
[19:01:13] *** Prjio has joined #angularjs
[19:02:03] *** Ragn has joined #angularjs
[19:02:18] *** xxtjaxx has left #angularjs
[19:02:20] *** motionman has joined #angularjs
[19:02:49] *** Fishy__ has quit IRC
[19:02:51] <Ragn> Hi guys, does anyone here know of a good tutorial to learn how to set upp all of the following at once? An app written in angular.js, using jasmine (run by Karma), Bower, and grunt?
[19:02:59] *** ccohn has quit IRC
[19:03:06] <snurfery> Ragn: use Yeoman
[19:03:12] <snurfery> it'll set all that up for you
[19:03:25] <snurfery> google "yeoman angular" and search for a recent tutorial
[19:03:50] *** threesixes has joined #angularjs
[19:04:09] <Ragn> Thanks snurfery, will look at that
[19:04:17] *** loverajoel has joined #angularjs
[19:04:30] *** Ragn has quit IRC
[19:05:20] *** zemanel has quit IRC
[19:05:39] *** jacuqesdancona_ has quit IRC
[19:06:13] *** jacuqesdancona_ has joined #angularjs
[19:06:32] *** doodlehaus has joined #angularjs
[19:07:17] *** laurensclaessen has quit IRC
[19:08:12] *** loverajoel has quit IRC
[19:08:59] *** azizur7 has quit IRC
[19:10:05] *** fedenunez has quit IRC
[19:10:42] *** jacuqesdancona_ has quit IRC
[19:10:54] *** ki0 has quit IRC
[19:11:09] *** jonr22 has joined #angularjs
[19:11:29] *** fedenunez has joined #angularjs
[19:11:45] *** mennea has quit IRC
[19:11:54] *** brettfrable has joined #angularjs
[19:12:05] *** yoshokatana has joined #angularjs
[19:12:24] *** mennea has joined #angularjs
[19:13:29] *** pretzel80 has joined #angularjs
[19:13:37] <alasi> I'm literally smiling right now at how awesome angular is :D
[19:14:51] <Naaab> When i add a resolve to my route it means that route will only get throught when the resolve attr is done? But if my service does x http request it will always do the x http requests ? but what if i just want call them once ? Like the first time the app runs
[19:14:58] *** sirsirsir has joined #angularjs
[19:15:00] *** mkusher has joined #angularjs
[19:15:23] *** asdrubalivan has joined #angularjs
[19:15:58] *** ehalas has joined #angularjs
[19:16:12] *** intellix has quit IRC
[19:16:28] *** renlo has joined #angularjs
[19:16:48] *** alasi has quit IRC
[19:17:02] *** juanpablo__ has quit IRC
[19:17:12] *** juanpablo_ has joined #angularjs
[19:19:04] *** sirsirsir has quit IRC
[19:19:53] *** alasi has joined #angularjs
[19:19:58] *** Lewix has quit IRC
[19:20:31] *** dweave has quit IRC
[19:21:04] *** prosper_ has joined #angularjs
[19:21:24] *** whatadewitt has quit IRC
[19:21:26] *** yandos has quit IRC
[19:21:28] *** chabier has quit IRC
[19:22:03] *** bmac has joined #angularjs
[19:22:16] *** Lewix has joined #angularjs
[19:22:17] *** Lewix has joined #angularjs
[19:22:57] *** daslicht has joined #angularjs
[19:23:13] *** mak`` has quit IRC
[19:23:37] *** optikalmouse has joined #angularjs
[19:23:51] *** bhuvanaurora has quit IRC
[19:25:04] *** bmac has quit IRC
[19:25:26] *** mtsr has quit IRC
[19:25:33] *** asdrubalivan has quit IRC
[19:26:07] *** ron1 has joined #angularjs
[19:26:23] *** kas84 has quit IRC
[19:26:25] *** bmac has joined #angularjs
[19:26:38] *** t1mmen has joined #angularjs
[19:28:33] *** yandos has joined #angularjs
[19:29:28] *** deanclkclk_ has joined #angularjs
[19:29:34] *** prosper_ has quit IRC
[19:29:57] *** mennea has quit IRC
[19:30:00] *** deanclkclk has quit IRC
[19:30:09] *** juampy_away has quit IRC
[19:30:25] *** bhuvanaurora has joined #angularjs
[19:31:05] *** JSONB has quit IRC
[19:31:42] *** MIR100 has quit IRC
[19:32:57] *** adben has quit IRC
[19:33:43] *** Shrooms has joined #angularjs
[19:34:28] *** eBureau has joined #angularjs
[19:34:45] *** jonr2219 has joined #angularjs
[19:34:52] *** Sna4x8 has joined #angularjs
[19:36:46] *** soee_ is now known as soee
[19:37:43] *** chabier has joined #angularjs
[19:37:52] *** emmesswhy has quit IRC
[19:38:00] *** cbennett has joined #angularjs
[19:38:38] *** basiclaser_ has joined #angularjs
[19:39:17] *** jonr2219 has quit IRC
[19:40:06] *** Lingo has joined #angularjs
[19:40:26] *** yoshokatana has quit IRC
[19:40:27] *** renlo has quit IRC
[19:41:07] *** cthrax has joined #angularjs
[19:41:08] *** yandos has quit IRC
[19:41:30] *** dannyc_ has joined #angularjs
[19:41:56] *** deanclkclk_ has quit IRC
[19:42:08] *** MaxV has joined #angularjs
[19:42:11] *** doodlehaus has quit IRC
[19:42:56] *** dobladez has quit IRC
[19:43:14] *** chabier has quit IRC
[19:43:44] *** mennea has joined #angularjs
[19:43:50] *** chabier has joined #angularjs
[19:44:03] *** disorder20 has joined #angularjs
[19:44:28] *** vassagus has quit IRC
[19:45:08] *** chabier_ has joined #angularjs
[19:45:54] *** prosper_ has joined #angularjs
[19:46:20] *** dannyc_ has quit IRC
[19:46:58] *** Techdeck has joined #angularjs
[19:47:55] *** pretzel80 has quit IRC
[19:48:42] *** chabier has quit IRC
[19:49:20] *** spaceonline has quit IRC
[19:49:55] <Techdeck> hi folks, I wanted to build an angularjs module for a dynamically sized gallery (i.e. I need to modify the image sizes inside it according to the window size and a few other parameters). I was thinking of creating a directive for the wrapping div of all the images, and another directive for each image inside (could be a div, not just an 'img' tag). Let's say I have the inner directive with
[19:49:56] <Techdeck> ng-repeat on it, how do I know to only start calculating things in the upper directive when the last image appears inside the the inner directive? Do you have a better idea as to how to write this module? maybe directives is not what I want?
[19:50:14] *** Lingo has quit IRC
[19:50:26] *** ciwolsey has joined #angularjs
[19:50:57] *** jmichaelward has joined #angularjs
[19:51:08] *** pushpak has quit IRC
[19:51:14] *** JSONB has joined #angularjs
[19:52:21] *** nesquerra has joined #angularjs
[19:52:24] *** josh has quit IRC
[19:52:36] *** whitebook has joined #angularjs
[19:52:37] *** loverajoel has joined #angularjs
[19:52:49] *** cbennett has quit IRC
[19:53:50] *** emmesswhy has joined #angularjs
[19:54:13] *** night-owl is now known as zz_night-owl
[19:54:47] *** bundledavid has joined #angularjs
[19:55:24] *** jmichaelward has quit IRC
[19:55:31] *** brettfrable has quit IRC
[19:55:50] *** discgo has quit IRC
[19:56:02] *** Lingo has joined #angularjs
[19:56:33] *** Beatzebub has joined #angularjs
[19:56:51] *** kontinuity has quit IRC
[19:56:53] *** robe2 has quit IRC
[19:56:54] *** nesquerra has quit IRC
[19:57:39] *** epantzar has joined #angularjs
[19:57:47] *** cbennett has joined #angularjs
[19:58:08] *** asheinfeld has quit IRC
[19:58:10] *** bengillies has quit IRC
[19:58:23] *** xxMatiasFCxx has joined #angularjs
[19:58:25] *** emmesswhy has quit IRC
[19:58:29] *** loverajoel has quit IRC
[19:59:28] *** bundledavid has quit IRC
[20:00:32] *** davek has joined #angularjs
[20:00:44] *** emmesswhy has joined #angularjs
[20:01:02] *** lugzer has quit IRC
[20:01:37] <Techdeck> guess not.. :)
[20:01:54] *** cbennett has quit IRC
[20:01:54] *** crakrjak has joined #angularjs
[20:02:13] *** dhrami has quit IRC
[20:02:18] *** xxMatiasFxx has quit IRC
[20:03:00] *** emmesswhy has quit IRC
[20:03:18] *** vassagus has joined #angularjs
[20:03:22] *** ciwolsey has quit IRC
[20:03:58] *** emmesswhy has joined #angularjs
[20:04:28] *** Lewix has quit IRC
[20:05:11] *** cotko has quit IRC
[20:05:20] *** deanclkclk has joined #angularjs
[20:05:47] *** busticated has quit IRC
[20:05:55] *** Sijdesign has quit IRC
[20:06:12] *** aslate has quit IRC
[20:06:25] *** Lewix has joined #angularjs
[20:06:25] *** Lewix has joined #angularjs
[20:06:34] *** fizbani has quit IRC
[20:06:48] *** gularpold has quit IRC
[20:06:50] *** livingstn has quit IRC
[20:06:53] *** discgo has joined #angularjs
[20:07:02] *** medice has quit IRC
[20:07:17] *** kajstrom has quit IRC
[20:07:43] *** robksawyer has quit IRC
[20:07:58] *** jonr22 has quit IRC
[20:10:20] *** avree has joined #angularjs
[20:10:29] *** chabier_ has quit IRC
[20:11:22] *** SonikBoom has quit IRC
[20:12:40] <Naaab> Well this route resolve thingy just blows dead rotten corpse diick
[20:12:43] *** fizbani has joined #angularjs
[20:12:50] <Naaab> just sayin
[20:13:06] *** mennea has quit IRC
[20:13:27] *** kajstrom has joined #angularjs
[20:13:42] *** medice has joined #angularjs
[20:13:45] *** mennea has joined #angularjs
[20:14:02] *** lilbaby has joined #angularjs
[20:14:04] *** josh has joined #angularjs
[20:14:48] *** Ivan____ has joined #angularjs
[20:15:06] *** cthrax has quit IRC
[20:15:42] *** bmac has quit IRC
[20:16:42] *** bbankes has quit IRC
[20:16:53] *** jacuqesdancona_ has joined #angularjs
[20:17:13] *** SergioFilhow has quit IRC
[20:17:44] *** SergioFilhow has joined #angularjs
[20:17:46] *** Oxynum has joined #angularjs
[20:18:03] *** beckyconning_ has quit IRC
[20:18:10] *** BobbieBarker has joined #angularjs
[20:18:49] *** Praveer has joined #angularjs
[20:19:09] *** gularpold has joined #angularjs
[20:19:33] *** Praveer has quit IRC
[20:20:50] *** lexek__ has joined #angularjs
[20:21:34] *** jacuqesdancona_ has quit IRC
[20:22:12] *** SergioFilhow has quit IRC
[20:22:49] *** samuel02 has joined #angularjs
[20:23:19] *** Naaab has quit IRC
[20:23:57] <davek> Constructive.
[20:24:02] *** renlo has joined #angularjs
[20:24:04] *** phzon has joined #angularjs
[20:24:14] *** deanclkclk_ has joined #angularjs
[20:25:55] <Lewix> davek: can i mix $httpbackend with regular backend routes
[20:26:06] *** crakrjak has quit IRC
[20:26:23] *** motionman has quit IRC
[20:26:34] *** mjw56 has joined #angularjs
[20:27:23] <Lewix> davek: i get an error because i have to passthrough every single routes i believe , is there a better way?
[20:27:24] *** samuel02 has quit IRC
[20:27:30] *** nanashiRei has quit IRC
[20:27:59] *** ron1 has quit IRC
[20:28:42] *** phzon has quit IRC
[20:28:57] *** doug64k has quit IRC
[20:29:08] *** zzing has joined #angularjs
[20:29:26] *** robksawyer has joined #angularjs
[20:30:31] *** chabier has joined #angularjs
[20:31:04] *** jMyles has joined #angularjs
[20:31:20] *** Oxynum has quit IRC
[20:31:24] *** kas84 has joined #angularjs
[20:32:27] *** lilbaby has quit IRC
[20:32:30] *** boxmein is now known as [boxmein]
[20:33:13] *** IvailoStoianov has quit IRC
[20:33:28] *** cjimti has quit IRC
[20:33:40] *** Oxynum has joined #angularjs
[20:34:02] *** pangan has quit IRC
[20:34:19] *** ron1 has joined #angularjs
[20:34:44] *** cjimti has joined #angularjs
[20:34:53] *** jeffisabelle has joined #angularjs
[20:35:02] *** moritzs has joined #angularjs
[20:35:09] *** Circlefusion has quit IRC
[20:36:15] *** e0ipso is now known as e0ipso|away
[20:37:05] *** iffert has joined #angularjs
[20:37:12] *** BillCriswell has joined #angularjs
[20:37:13] *** e0ipso|away is now known as e0ipso
[20:37:22] *** rafagomes has quit IRC
[20:37:58] *** rafagomes has joined #angularjs
[20:38:29] *** nanashiRei has joined #angularjs
[20:38:59] *** IvailoStoianov has joined #angularjs
[20:40:51] *** chabier has quit IRC
[20:42:01] *** Embassy has quit IRC
[20:42:21] *** rafagomes has quit IRC
[20:43:09] *** mennea has quit IRC
[20:43:44] *** storresi has quit IRC
[20:43:48] *** mennea has joined #angularjs
[20:43:59] *** kas84 has quit IRC
[20:44:07] *** [boxmein] has quit IRC
[20:45:26] *** njbair has joined #angularjs
[20:45:31] <Lewix> can we use run() mutilple times
[20:45:43] *** sirsirsir has joined #angularjs
[20:45:58] *** Embassy has joined #angularjs
[20:46:18] *** Solid1_afk is now known as Solid1
[20:47:08] *** bmac has joined #angularjs
[20:47:08] *** Lingo has quit IRC
[20:47:28] *** Aliks has joined #angularjs
[20:47:50] *** doug64k has joined #angularjs
[20:48:08] *** Circlefusion has joined #angularjs
[20:48:21] *** Ivan____ has quit IRC
[20:49:57] *** sirsirsir has quit IRC
[20:50:03] *** quantax has joined #angularjs
[20:50:23] *** yandos has joined #angularjs
[20:51:23] *** quantax- has quit IRC
[20:51:30] *** ingsoc has quit IRC
[20:51:58] <Lewix> jaawerth: wafflej0ck davek : how to pass through every single url
[20:52:21] *** alasi has quit IRC
[20:53:14] *** Embassy has quit IRC
[20:53:15] *** glassir has joined #angularjs
[20:53:21] *** nesquerra has joined #angularjs
[20:53:25] *** AngularUI has joined #angularjs
[20:53:26]
<AngularUI> [ui-router] sgebhardt opened pull request #1597: Updated version number in README.md to 0.2.13 (master...master) http://git.io/Dh4u6Q
[20:53:26] *** AngularUI has left #angularjs
[20:53:46] *** Embassy has joined #angularjs
[20:54:50] *** CodeFriar has quit IRC
[20:56:42] *** Beatzebub_ has joined #angularjs
[20:57:06] *** elyssonmr has quit IRC
[20:57:15] *** bealtine has quit IRC
[20:57:28] *** renlo has quit IRC
[20:57:37] *** nesquerra has quit IRC
[20:58:10] *** atomical has quit IRC
[20:59:20] *** epantzar has quit IRC
[20:59:32] *** Shrooms has quit IRC
[21:00:00] *** crakrjak has joined #angularjs
[21:00:21] *** Beatzebub has quit IRC
[21:00:52] *** AngularUI has joined #angularjs
[21:00:52]
<AngularUI> [ui-router] christopherthielen pushed 2 new commits to master: http://git.io/ghszhQ
[21:00:53] <AngularUI> ui-router/master 7d86812 Sebastian Gebhardt: Updated version number in README.md to 0.2.13
[21:00:53] <AngularUI> ui-router/master cff83dd Chris Thielen: Merge pull request #1597 from sgebhardt/master...
[21:00:53] *** AngularUI has left #angularjs
[21:01:46] *** renlo has joined #angularjs
[21:02:09] *** DuelShark has quit IRC
[21:02:58] *** Lingo has joined #angularjs
[21:06:25] *** JoeGaudet has joined #angularjs
[21:07:13] *** jonasliljestrand has joined #angularjs
[21:07:15] *** whitebook has quit IRC
[21:08:30] *** zz_night-owl is now known as night-owl
[21:08:34] *** jonasliljestrand has quit IRC
[21:08:53] *** marcjs_ has quit IRC
[21:09:09] *** emmesswhy has quit IRC
[21:09:21] *** mtsr has joined #angularjs
[21:09:23] *** Paoczor has joined #angularjs
[21:09:45] *** steeze has quit IRC
[21:10:02] *** Aliks has quit IRC
[21:10:38] *** Aliks has joined #angularjs
[21:11:04] *** threesixes has quit IRC
[21:12:03] *** Circlefusion has quit IRC
[21:12:12] *** Beg has joined #angularjs
[21:12:41] *** jlmitch5dev has quit IRC
[21:12:47] *** MIR100 has joined #angularjs
[21:12:47] *** robe2 has joined #angularjs
[21:13:10] *** AWAW has joined #angularjs
[21:13:42] *** discgo has quit IRC
[21:13:51] *** mennea_ has joined #angularjs
[21:13:59] *** mennea has quit IRC
[21:14:24] *** NoNMaDDeN has joined #angularjs
[21:14:57] *** Aliks has quit IRC
[21:15:23] *** prosper_ has quit IRC
[21:15:40] *** MIR100 has quit IRC
[21:16:08] *** crakrjak has quit IRC
[21:16:28] *** DoubleAW has quit IRC
[21:16:38] *** renlo has quit IRC
[21:16:43] *** sacho_ has joined #angularjs
[21:17:19] *** aslate has joined #angularjs
[21:17:45] *** Siecje has left #angularjs
[21:17:56] *** vectra has quit IRC
[21:18:13] *** SergioFilhow has joined #angularjs
[21:18:37] *** NoNMaDDeN has quit IRC
[21:19:05] *** opiates has joined #angularjs
[21:19:35] *** sacho has quit IRC
[21:20:06] *** night-owl is now known as zz_night-owl
[21:21:11] *** BillCriswell has quit IRC
[21:21:58] *** MistahKurtz has joined #angularjs
[21:22:06] *** mtsr has quit IRC
[21:22:20] *** aslate has quit IRC
[21:22:31] *** emmesswhy has joined #angularjs
[21:22:47] *** nnob has joined #angularjs
[21:22:56] *** SergioFilhow has quit IRC
[21:23:23] <nnob> o/
[21:23:58] *** vectra has joined #angularjs
[21:24:52] *** darrin has quit IRC
[21:24:58] *** Oddman has joined #angularjs
[21:25:39] *** despai has quit IRC
[21:25:47] *** deanclkclk has quit IRC
[21:25:48] *** audioburn is now known as il
[21:27:20] *** emmesswhy has quit IRC
[21:27:40] *** Circlefusion has joined #angularjs
[21:28:07] *** emmesswhy has joined #angularjs
[21:28:40] *** yandos has quit IRC
[21:28:48] *** cigol_ has quit IRC
[21:29:41] *** djam90 has joined #angularjs
[21:29:45] *** JoeGaudet has quit IRC
[21:30:48] *** AWAW has quit IRC
[21:31:06] *** crakrjak has joined #angularjs
[21:31:19] *** AWAW has joined #angularjs
[21:32:11] *** mtsr has joined #angularjs
[21:33:19] <ioudas> is it possible to use a timeout that is based off a scope variable/boolean/string that would cancel and active http promise? I cant seem to find any working examples.
[21:36:38] *** caitp has quit IRC
[21:36:38] *** tomengland_mbp has joined #angularjs
[21:37:34] *** kuadrosx has joined #angularjs
[21:37:35] *** crakrjak has quit IRC
[21:38:17] *** PrinceAMD has joined #angularjs
[21:38:26] *** optikalmouse has quit IRC
[21:39:17] *** zz_night-owl is now known as night-owl
[21:39:54] *** eol` has joined #angularjs
[21:40:05] *** Joe_knock has joined #angularjs
[21:40:17] *** Joe_knock has joined #angularjs
[21:40:24] *** Rampages_afk has quit IRC
[21:40:33] *** JosephSilber has quit IRC
[21:40:38] *** zouave has quit IRC
[21:41:04] *** tomengland_mbp has quit IRC
[21:41:06] *** DrMabuse has joined #angularjs
[21:41:28] *** djam90 has quit IRC
[21:42:13] *** jonasliljestrand has joined #angularjs
[21:42:34] *** jimvideo has joined #angularjs
[21:43:18] *** Paoczor has quit IRC
[21:43:24] *** dannyc_ has joined #angularjs
[21:43:32] *** zouave has joined #angularjs
[21:43:34] *** mennea_ has quit IRC
[21:43:36] *** bundledavid has joined #angularjs
[21:43:50] *** caitp has joined #angularjs
[21:43:51] *** mennea has joined #angularjs
[21:44:01] *** mtsr has quit IRC
[21:44:04] *** mlpug has quit IRC
[21:46:52] *** IvailoStoianov has quit IRC
[21:47:01] *** discgo has joined #angularjs
[21:47:29] *** medice has quit IRC
[21:47:52] *** memento_ has joined #angularjs
[21:47:58] *** moritzs has quit IRC
[21:47:59] *** bundledavid has quit IRC
[21:48:08] *** dannyc_ has quit IRC
[21:48:13] *** medice has joined #angularjs
[21:48:14] *** gularpold has quit IRC
[21:48:28] *** Aliks has joined #angularjs
[21:48:31] *** caitp has quit IRC
[21:49:01] *** optikalmouse has joined #angularjs
[21:51:06] <Sna4x8> I understand the issue, and my work around seems hacky. Is there a better way of doing what I've done there?
[21:51:09] *** Joe_knock has left #angularjs
[21:51:44] <Sna4x8> Basically, that filter ought to filter on the sub items. E.g. if you type "engine" in the filter, you should see Right- and Left-handed widgets.
[21:52:11] *** PrinceAMD has quit IRC
[21:52:52] *** despai has joined #angularjs
[21:53:47] *** nesquerra has joined #angularjs
[21:54:22] *** mtsr has joined #angularjs
[21:54:34] *** MaxV has quit IRC
[21:54:36] *** caitp has joined #angularjs
[21:54:44] *** mtsr has quit IRC
[21:55:48] *** yandos has joined #angularjs
[21:56:39] *** jonasliljestrand has quit IRC
[21:57:01] *** Beatzebub__ has joined #angularjs
[21:57:47] *** mtsr has joined #angularjs
[21:58:20] *** nesquerra has quit IRC
[21:58:49] *** stillbourne has joined #angularjs
[21:59:02] *** laurensclaessen has joined #angularjs
[21:59:10] *** nya has quit IRC
[21:59:41] *** jonr22 has joined #angularjs
[21:59:42] *** nya has joined #angularjs
[21:59:51] *** mtsr has quit IRC
[22:00:19] *** gularpold has joined #angularjs
[22:00:24] *** renlo has joined #angularjs
[22:00:27] *** dman777 has joined #angularjs
[22:00:37] *** Beatzebub_ has quit IRC
[22:00:42] <dman777> ng-change="$form.persistance.$setPristine()" hmm...how can I get this to work inside the html?
[22:01:01] *** BobbieBarker has quit IRC
[22:01:03] *** lilbaby has joined #angularjs
[22:01:38] *** Embassy has quit IRC
[22:01:56] *** basiclaser_ has quit IRC
[22:01:57] *** caitp has quit IRC
[22:02:42] <ioudas> is it possible to use a timeout that is based off a scope variable/boolean/string that would cancel and active http promise? I cant seem to find any working examples.
[22:02:48] *** Embassy has joined #angularjs
[22:03:07] <dman777> ioudas: sure
[22:03:20] *** JSONB has quit IRC
[22:03:22] *** mtsr has joined #angularjs
[22:03:26] *** Aliks has quit IRC
[22:03:31] *** TheAceOfHearts has joined #angularjs
[22:04:12] *** Oddman has quit IRC
[22:04:26] *** laurensclaessen has quit IRC
[22:04:28] <dman777> function foo() { if (scope.bar) { do something} else { setTimeout(foo, 3000) } }
[22:04:28] <wafflej0ck> Sna4x8: nothing wrong with what you're doing here this looks pretty typical for an array filter (caching the result is a plus)
[22:04:43] <dman777> ioudas: function foo() { if (scope.bar) { do something} else { setTimeout(foo, 3000) } }
[22:04:55] <Sna4x8> All right, thanks wafflej0ck.
[22:05:14] *** Aliks has joined #angularjs
[22:05:15] <wafflej0ck> gotta bounce be back later probably
[22:05:21] *** bmac has quit IRC
[22:05:22] <dman777> ioudas: or you can use $timeout also...which acutally better since the $destroy will destroy it
[22:05:24] *** robe2 has quit IRC
[22:05:40] *** wafflej0ck has quit IRC
[22:06:18] *** lilbaby has quit IRC
[22:06:27] *** tfennelly has quit IRC
[22:07:07] *** emmesswhy has quit IRC
[22:07:36] *** bmac has joined #angularjs
[22:08:25] *** Johnny13371337 has quit IRC
[22:09:07] *** beilabs has joined #angularjs
[22:10:11] *** epantzar has joined #angularjs
[22:10:56] *** Raging_Hog has quit IRC
[22:11:07] *** D-Boy has quit IRC
[22:11:15] *** D-Boy has joined #angularjs
[22:12:38] *** doginal has quit IRC
[22:13:55] *** doginal has joined #angularjs
[22:14:19] *** one0one has joined #angularjs
[22:14:22] *** hs has joined #angularjs
[22:14:30] *** epantzar has quit IRC
[22:15:01] *** mtsr has quit IRC
[22:15:02] *** hs has quit IRC
[22:15:16] *** wa5ted has quit IRC
[22:15:25] *** doginal has joined #angularjs
[22:15:26] *** dweave has joined #angularjs
[22:16:09] *** JSONB has joined #angularjs
[22:16:13] <ioudas> dman777, doesnt that always time out
[22:16:15] <ioudas> regardless
[22:16:18] *** mtsr has joined #angularjs
[22:16:20] *** JSONB has quit IRC
[22:17:04] <dman777> ioudas: no...not if scope.bar is ture...then it "do something"
[22:17:10] <dman777> s/ture/true
[22:17:16] <ioudas> gotcha
[22:17:49] <ioudas> lemme try that out and then paste some code if thats ok... if I cant get it goin
[22:17:54] <dman777> +1
[22:18:45] *** yandos has quit IRC
[22:18:58] *** SergioFilhow has joined #angularjs
[22:19:24] *** darrin has joined #angularjs
[22:19:40] *** stillbourne has quit IRC
[22:19:55] *** wa5ted has joined #angularjs
[22:20:07] <ioudas> bah im so confused on this still
[22:20:11] <ioudas> let me paste my promise chain
[22:20:37] *** Embassy has quit IRC
[22:20:53] *** darrin has quit IRC
[22:21:04] *** yandos has joined #angularjs
[22:21:15] *** darrin has joined #angularjs
[22:21:36] *** Embassy has joined #angularjs
[22:21:48] *** doginal has quit IRC
[22:22:39] *** darrin has quit IRC
[22:23:21] *** peterp has joined #angularjs
[22:23:32] *** SergioFilhow has quit IRC
[22:23:32] *** mtsr has quit IRC
[22:23:37] *** Nivag_ has joined #angularjs
[22:23:44] <ioudas> Ok so on line 48 I make a promise.... its making a http get request.. then i show a modal pop up box... i want when the person clicks cancel.... for it to cancel the http get... entirely... and if they dont cancel, then to just load the response... goto a new state
[22:23:45] *** delight has quit IRC
[22:23:49] *** Shilon has joined #angularjs
[22:23:52] <ioudas> and dispose of the pop up
[22:23:53] <peterp> How do you guys handle external plugins in Angular? I have this svg plugin I'm using, but I can only use it inside one directive because "its not defined" in another directive I might have
[22:23:59] <ioudas> but i cant fathom what i am doing wrong
[22:24:03] <ioudas> in terms of that if statement
[22:24:10] <peterp> for example - I want to control the rendering of the map in one directive (the SVG) and then I want the map controls to each be under their own directive
[22:24:51] *** Lewix has quit IRC
[22:25:09] *** mary5030_ has quit IRC
[22:25:42] *** mary5030 has joined #angularjs
[22:27:17] *** Lewix has joined #angularjs
[22:27:17] *** Lewix has joined #angularjs
[22:28:03] *** enaqx has joined #angularjs
[22:28:09] <peterp> so basically, I need to make `var myElemen = svgPanZoom(..)` global
[22:28:20] <peterp> How do I make myElemen global for every directive to access?
[22:28:24] <peterp> at least global in terms of Ng
[22:29:06] *** yelvert has joined #angularjs
[22:29:23] *** s3shs has joined #angularjs
[22:29:39] *** nesquerra has joined #angularjs
[22:29:42] *** chabier has joined #angularjs
[22:30:07] *** mary5030 has quit IRC
[22:30:26] *** davidnknight has quit IRC
[22:30:27] *** startupality has joined #angularjs
[22:30:51] *** jlmitch5dev has joined #angularjs
[22:31:02] *** wolfman2000 has quit IRC
[22:31:20] *** TeddyMurray has quit IRC
[22:31:36] *** mtsr has joined #angularjs
[22:32:11] *** MuffinMan` has joined #angularjs
[22:32:38] *** alinou has joined #angularjs
[22:33:22] *** Sontakey has joined #angularjs
[22:33:37] *** chabier_ has joined #angularjs
[22:33:40] *** yelvert has quit IRC
[22:33:50] *** MetaCosm has quit IRC
[22:33:54] *** despai has quit IRC
[22:33:57] *** nesquerra has quit IRC
[22:34:19] *** chabier has quit IRC
[22:34:31] *** sirsirsir has joined #angularjs
[22:34:42] *** Grokling_ has joined #angularjs
[22:34:54] *** mtsr has quit IRC
[22:34:56] *** peterp has quit IRC
[22:35:21] *** mtsr has joined #angularjs
[22:35:41] *** marcjs_ has joined #angularjs
[22:35:57] *** beilabs_ has joined #angularjs
[22:36:12] *** beilabs has quit IRC
[22:36:15] *** vectra has quit IRC
[22:36:20] *** MetaCosm has joined #angularjs
[22:37:16] *** tfennelly has joined #angularjs
[22:37:39] *** s3shs has quit IRC
[22:37:40] *** mtsr has quit IRC
[22:38:22] *** chabier_ has quit IRC
[22:38:38] *** nodedfree has quit IRC
[22:38:42] *** sirsirsir has quit IRC
[22:38:46] *** dobladez has joined #angularjs
[22:38:50] *** glassir has quit IRC
[22:39:19] *** tfennelly has quit IRC
[22:39:32] *** tfennelly has joined #angularjs
[22:39:49] *** toad-br has quit IRC
[22:40:22] *** whatadewitt has joined #angularjs
[22:41:04] *** nnob has quit IRC
[22:42:06] *** doginal has joined #angularjs
[22:42:16] *** despai has joined #angularjs
[22:43:01] *** caitp has joined #angularjs
[22:43:15] *** mennea has quit IRC
[22:43:52] <ioudas> Does anyone know how to customize ionic popup or loading to cancel an existing http get promise when clicked? Using $timeout?.
[22:43:54] *** mennea has joined #angularjs
[22:44:03] *** Shilon has quit IRC
[22:44:11] *** nodedfree has joined #angularjs
[22:45:12] *** iH8Pickles has quit IRC
[22:45:37] *** deweydb has quit IRC
[22:46:44] *** mtsr has joined #angularjs
[22:48:54] *** mtsr has quit IRC
[22:51:08] *** whatadewitt has quit IRC
[22:52:14] *** t1mmen has quit IRC
[22:52:52] *** btc_panhandler has joined #angularjs
[22:55:01] *** Grokling_ has quit IRC
[22:55:36] *** jmichaelward has joined #angularjs
[22:55:37] *** chabier has joined #angularjs
[22:55:47] *** marcjs_ has quit IRC
[22:55:51] *** jonr22 has quit IRC
[22:56:07] *** doug64k has quit IRC
[22:56:34] *** discgo has quit IRC
[22:56:59] *** Beatzebub_ has joined #angularjs
[22:57:01] *** TeddyMurray has joined #angularjs
[22:57:15] *** despai has quit IRC
[22:57:43] *** jonr22 has joined #angularjs
[22:58:26] *** dhrami has joined #angularjs
[23:00:24] *** jmichaelward has quit IRC
[23:00:26] *** Beatzebub__ has quit IRC
[23:01:21] *** nocturne777 has joined #angularjs
[23:02:43] *** yandos has quit IRC
[23:02:43] *** Tagliatelli has joined #angularjs
[23:03:11] *** jonr22 has quit IRC
[23:04:57] *** zzing has quit IRC
[23:06:13] *** aslate has joined #angularjs
[23:06:40] *** jacuqesdancona_ has joined #angularjs
[23:06:53] *** kuadrosx has quit IRC
[23:07:15] <renlo> I currently have different sections of my application loaded as partials. Each one of these partials has its own controller. ex: I have a sidebar partial. The sidebar has a SidebarController with its own scope. What would be the benefit of implementing the same thing but with directives?
[23:07:58] *** atomical has joined #angularjs
[23:08:11] *** s3shs has joined #angularjs
[23:08:11] *** Tagliatelli has quit IRC
[23:08:28] *** atomical has quit IRC
[23:08:39] *** chabier has quit IRC
[23:09:16] *** atomical has joined #angularjs
[23:10:09] *** beilabs_ has quit IRC
[23:10:31] *** JohnBat26 has quit IRC
[23:10:46] *** aslate has quit IRC
[23:10:55] *** kuadrosx has joined #angularjs
[23:11:12] *** jacuqesdancona_ has quit IRC
[23:11:34] *** despai has joined #angularjs
[23:12:39] *** jonr22 has joined #angularjs
[23:12:52] *** alasi has joined #angularjs
[23:12:56] *** beilabs__ has joined #angularjs
[23:13:34] *** aendrew has quit IRC
[23:13:39] *** mtsr has joined #angularjs
[23:15:32] *** user_02 has joined #angularjs
[23:15:55] *** user_02 has left #angularjs
[23:16:02] *** mtsr has quit IRC
[23:16:10] *** juanpablo__ has joined #angularjs
[23:16:31] <Grokling> renlo: Directives are useful when you're doing the same thing repeatedly. What you're talking about sounds like it's probably a prime candidate for ui-router and nested states.
[23:17:09] <renlo> yea I'm using ui-router at the moment, but still using ng-include
[23:17:26] <Grokling> Are you nesting states?
[23:17:27] *** Oxynum has quit IRC
[23:17:32] <renlo> yes
[23:17:37] *** jonr22 has quit IRC
[23:17:41] *** stormbytes has joined #angularjs
[23:17:46] <stormbytes> happy tg
[23:18:08] <stormbytes> how do you create watchers in a custom service (factory)
[23:18:11] <Grokling> So the q was just out of curiosity?
[23:18:12] <renlo> am i correct in thinking that directives are really useful for changing based on the scope that their in?
[23:18:29] <renlo> i'm just unsure of when it would be a better idea to use partials vs directives
[23:18:48] <stormbytes> i don't get how you pass $scope to the service
[23:18:54] *** juanpablo_ has quit IRC
[23:18:58] <Grokling> stormbytes: You don't. ever.
[23:19:14] *** BobbieBarker has joined #angularjs
[23:19:20] <stormbytes> reading a book that says you shouldn't put watchers inside a controller
[23:19:32] <stormbytes> i'm talking about $scope.$watch..
[23:19:48] <renlo> i use the observer model; someService.registerObserver(someCb)
[23:19:51] *** crakrjak has joined #angularjs
[23:19:54] *** Lewix has quit IRC
[23:19:57] <jaawerth> Lewix: pass through every URL?
[23:20:08] <jaawerth> oh, evidently I'm too late
[23:20:23] <Grokling> jaawerth: he saw you coming ;-)
[23:20:36] <stormbytes> renlo how do you watch a specific model?
[23:20:40] <jaawerth> haha
[23:20:47] *** mtsr has joined #angularjs
[23:20:53] <jaawerth> he tried to PM me the other day but I wasn't around, so now we're even
[23:20:54] *** fedenunez has quit IRC
[23:21:02] <jaawerth> my use of ZNC sometimes confuses people
[23:22:31] <renlo> in the service: set_some_val = function(v) { some_val = v; notifyValObservers(); }
[23:22:50] <renlo> notifyValObservers = function() { for cb in the observers { cb(); } }
[23:22:53] <renlo> pseudo code
[23:22:57] *** Dixty has joined #angularjs
[23:23:02] *** kas84 has joined #angularjs
[23:23:09] *** DrMabuse has quit IRC
[23:23:27] *** optikalmouse has quit IRC
[23:23:31] *** mtsr has quit IRC
[23:23:54] <Grokling> Hi alasi.. still plugging away I see!
[23:24:01] <alasi> Hey :D Yeah
[23:24:04] *** epantzar has joined #angularjs
[23:24:11] *** wolfman2000 has joined #angularjs
[23:24:34] *** mennea has quit IRC
[23:24:37] <alasi> I have decided to stick to only a service for now, as the factory <-> service concept confused me. It works great that way atm
[23:24:41] <jaawerth> stormbytes: the only surefire time to use $watch is in a directive. You CAN use them in the controller, but 9 times out of 10 there is likely a better way to do it, and using it is probably a cruttch
[23:24:43] <alasi> so thanks again for that :D
[23:25:10] *** mennea has joined #angularjs
[23:25:21] <Fuzzier> hahaha
[23:25:30] *** dweave has quit IRC
[23:25:37] *** despai has quit IRC
[23:25:52] <stormbytes> jaawerth i need to 'dispatch' a websocket call when some model changes, in order to keep 2 devices (or browswers on devices) synchronized
[23:25:59] <alasi> oh, fixed it!
[23:26:00] <stormbytes> there a better way to do that then with watchers?
[23:26:02] <alasi> stupid this
[23:26:07] <Grokling> alasi: It is not for everyone. It is extremely powerful, but is an advanced usage. Service will seem easier, but you might find yourself wanting 'more'..
[23:26:23] <alasi> Yes, i suppose I will once I actually learn to use angular XD
[23:26:50] <Grokling> alasi: also, get used to feeling confused. That's normal around here!
[23:26:55] <jaawerth> stormbytes: well, what is the model that you're changing, and how is it changed?
[23:27:00] <alasi> Grokling: haha :D
[23:27:26] <jaawerth> stormbytes: if it's anything using ng-model, then you can most likely just use ng-change to react to user input
[23:27:50] <stormbytes> its changed via user input but there are multiple inputs that can change the same value, it would make no sense to trigger the cb from the user input -- much more sensible to trap the 'effect' (model change)
[23:27:53] *** ron1 has quit IRC
[23:28:27] <renlo> whenever you update the model, notify the observers
[23:28:29] <stormbytes> not all use ng-model, some use controller methods
[23:28:38] <renlo> iirc $watch has a performance overhead
[23:28:39] <snurfery> queestion
[23:28:51] <stormbytes> what are observers?
[23:29:04] *** mtsr has joined #angularjs
[23:29:15] <snurfery> I have a named form inside of a template
[23:29:21] <snurfery> this template is being ng-included
[23:29:26] <snurfery> so it has its own scope
[23:29:38] <jaawerth> the problem with $watch is that it's going to check your $watched value on EVERY digest / $scope.$apply that gets called
[23:29:39] <snurfery> the problem is that I'm trying to get to it from the controller and it's not working
[23:29:49] <jaawerth> so it generates extra overhead on each digest, and digests tend to be frequent
[23:30:00] *** wafflej0ck has joined #angularjs
[23:30:11] *** mdedetrich has joined #angularjs
[23:30:16] *** s3shs has quit IRC
[23:30:20] <jaawerth> I would instead use the $viewChangeListeners object in ngModelController, probably
[23:30:22] <snurfery> anyone experienced this before? Needing to publish a form to a parent scope?
[23:30:25] *** nesquerra has joined #angularjs
[23:30:25] <jaawerth> (if you're using ~1.3.x)
[23:30:38] <stormbytes> i am
[23:30:50] <jaawerth> actually scratch that, I think that's available in 1.2.x too
[23:30:52] <stormbytes> not familiar with $viewChangeListeners
[23:30:57] <alasi> Grokling: hmm
[23:31:09] *** t1mmen has joined #angularjs
[23:31:11] <jaawerth> "Array of functions to execute whenever the view value has changed. It is called with no arguments, and its return value is ignored. This can be used in place of additional $watches against the model value."
[23:31:26] *** mtsr has quit IRC
[23:31:37] <stormbytes> what about $scope.on ?
[23:31:42] *** mkusher has quit IRC
[23:31:48] <alasi> Grokling: is there a way to make the options 1 and 2, rather than no and yes?
[23:31:48] <renlo> observers work well for me, theyre simple and they work
[23:31:56] <stormbytes> the issue there is that i need to watch the $scope not the view
[23:32:09] <Grokling> alasi: So your key is the same as your value?
[23:32:14] <stormbytes> renlo what are observers?
[23:32:28] *** bundledavid has joined #angularjs
[23:32:31] <renlo> i meant the observer pattern
[23:32:44] *** dimetron has joined #angularjs
[23:32:56] <stormbytes> ok
[23:33:03] <alasi> Grokling: Ideally you have [{id: 1}, {id: 2}] and then u have the options [1] and [2] to choose from
[23:33:17] *** plato has quit IRC
[23:33:53] <alasi> It is weird, i know but there is a bigger part of the object
[23:34:02] *** edy has quit IRC
[23:34:12] <Grokling> alasi: if those are all the properties your options will have, just dispense with the object notation, and throw them straight into the array.. [1,2]
[23:34:15] <stormbytes> "The digest cycle allows for 200 operations a second. Until that limit is reached, I suggest not doing premature optimization."
[23:34:25] <stormbytes> err. sorry, renlo:
[23:34:41] <Grokling> alasi: Otherwise, with that plunker I sent: ng-options="answer.id as answer.id for (key, answer) in question.answers">
[23:34:44] *** SergioFilhow has joined #angularjs
[23:34:54] <alasi> Grokling: ahhh ok, I was expecting a native solution
[23:34:57] *** nesquerra has quit IRC
[23:34:57] <alasi> thx
[23:34:59] <stormbytes> will look at that.. thanks!
[23:35:01] <renlo> stormbytes: look at the highest rated answer
[23:35:13] *** dimetron has quit IRC
[23:35:13] <Grokling> alasi: what is a 'native' solution?
[23:35:27] *** s3shs has joined #angularjs
[23:35:33] <Grokling> Is that like indigenous code?
[23:36:02] *** plato has joined #angularjs
[23:36:02] <alasi> Grokling: like my original bin, where the syntax for ng-options reflects my desired output
[23:36:14] <snurfery> heh
[23:36:18] *** Lingo has quit IRC
[23:36:52] *** wafflej0ck has quit IRC
[23:36:53] *** bundledavid has quit IRC
[23:37:23] *** eol` has quit IRC
[23:38:15] *** nemothekid has joined #angularjs
[23:38:19] *** apertoire has joined #angularjs
[23:38:31] *** stormbytes has quit IRC
[23:38:56] *** SergioFilhow has quit IRC
[23:39:53] *** s3shs has quit IRC
[23:40:29] <Grokling> alasi: Yeah, I think that's the only way - you have an array of objects (which one is indicated by the 'key') Each one is represented by the 'value' variable. Then you're telling it you're interested in the value.id for the model, and you want to use the value.id as the displayed option text as well.
[23:41:00] <alasi> ok thx
[23:41:59] *** arpu has quit IRC
[23:43:05] *** robksawyer has quit IRC
[23:43:42] *** mtsr has joined #angularjs
[23:45:34] *** ziggurat81 has joined #angularjs
[23:45:36] *** marshall_ has joined #angularjs
[23:47:14] *** eribeiro_ has left #angularjs
[23:47:31] <Grokling> alasi: Re: the service/factory thing - the way I was showing you yesterday in effect gives you both. Gadget.getAllGadgets() is the same as GadgetService.getAllGadgets()
[23:47:40] *** mtsr has quit IRC
[23:47:49] *** Sontakey has quit IRC
[23:47:56] *** marshall has quit IRC
[23:48:08] <alasi> Grokling: ahhhh thats why it was confusing me :P. I can't thank you enough for helping me on that though!
[23:48:30] <Grokling> The bonus is that you can var myNewGadget = new Gadget(json) and get a new instance of the Gadget class.
[23:49:28] *** Milk_weed has quit IRC
[23:49:53] <Grokling> alasi: the 'Aha' moment comes when you grasp the difference between the factory methods (which are the same as a service) and instance methods (which you only get when you have an object of a custom Class)
[23:51:26] <alasi> I will someday find that aha moment, i hope XD
[23:52:05] <Grokling> And, yes, you could make a service method that creates new custom classes - it'd just have different syntax, and would be stepping all over the factory pattern (in much the same way that my factory steps all over the service pattern - I just think the syntax is more logical for me..)
[23:52:08]
<jaawerth> alasi: this plunk might help demonstrate some of what Grokling's talking about it - it's (mostly) the same service, but implemented a few different ways (including the factory constructor/instantiation way) http://plnkr.co/edit/PgGjSZ0zMXoOOOHUZ0Cx?p=preview
[23:52:09] *** kzoo has joined #angularjs
[23:52:19] <alasi> ooooh
[23:52:37] <alasi> I will check that in a bit, gonna wire some things up
[23:53:59] *** lemur has joined #angularjs
[23:54:28] *** mdedetrich has quit IRC
[23:54:34] *** lilbaby has joined #angularjs
[23:54:34] *** mennea has quit IRC
[23:54:36] <kzoo> how can i use ng-src to and ensure when it attempts to display the images it adds the "Authorization: Bearer ..." header?
[23:54:58] <alasi> Oh nooooo
[23:55:08] <kzoo> right now, it just attempts to download, but i my api returns a 401 because it cannot serve it without authentication
[23:55:13] *** mennea has joined #angularjs
[23:55:49] <jaawerth> kzoo: ng-src doesn't do that, it just makes sure the browser doesn't try to load the image with an improper src before your code has executed
[23:55:58] <alasi> The flaw in the dispense solution is that I cannot update the data!!
[23:55:59] <Grokling> jaawerth: alasi and I spent some time yesterday working through a variant of the ConstructorFct, but with the addition of factory methods (which makes it also work like your SimpleSvc)
[23:56:12] *** juanpablo__ has quit IRC
[23:56:19] *** phishy has joined #angularjs
[23:56:32] <jaawerth> yeah, but I've found that seeing them side-by-side can sometimes help people
[23:56:41] *** juanpablo__ has joined #angularjs
[23:57:03] *** beilabs___ has joined #angularjs
[23:57:04] <alasi> Oh , they are two different approaches ? cool
[23:57:05] *** Beatzebub__ has joined #angularjs
[23:57:12] <Grokling> alasi: You could do it directly, OR use an instance method..
[23:57:13] <kzoo> i wonder if using a angular directive instead of ng-src to populate the image elements with a base64 encoded image would work better
[23:57:24] *** lilbaby has quit IRC
[23:57:32] <jaawerth> alasi: that plunk shows like 3-4 different approaches to a service side-by-side (with a very, very simple service as an example)
[23:57:41] <alasi> Grokling: What do you mean by doing it directly ? Like your plunk ?
[23:57:41] *** t1mmen has quit IRC
[23:57:50] <Grokling> jaawerth: true. Or confuse them further ;-)
[23:57:52] <jaawerth> kzoo: for that, you may need to use an $http interceptor, or if you don't want to add that to every call you make to the server, you may need, as you said, a directive that grabs and inserts the image for you
[23:58:05] *** roadrunneratwast has joined #angularjs
[23:58:08] <jaawerth> Grokling: that plunk hash a pretty good track record! above 0.500 anyway ;-)
[23:58:20] <alasi> haha
[23:58:40] <jaawerth> anyway, gotta go - might be back later thouogh
[23:58:43] <Grokling> jaawerth: You've confused more than half the people? ;-)
[23:58:44] <kzoo> jaawerth, i'm still a newbie, so i'll try the directive first :)
[23:58:46] <kzoo> thanks
[23:58:52] <roadrunneratwast> I am getting WARNING: Tried to load angular more than once . Problem with ui-router?
[23:58:53] *** lexek__ has quit IRC
[23:58:55] <jaawerth> later all
[23:58:58] <alasi> cya
[23:58:58] *** despai has joined #angularjs
[23:59:07] *** edrocks has joined #angularjs
[23:59:07] <Grokling> alasi: if you have a var thing = {someProperty:1};
[23:59:17] <alasi> yes
[23:59:28] *** marshall_ has quit IRC
[23:59:31] <Grokling> Then you can do thing['someProperty']=newValue;
[23:59:50] *** night-owl is now known as zz_night-owl
[23:59:54] *** beilabs__ has quit IRC
[23:59:54] <alasi> Hmmmmmmm
[23:59:56] <Grokling> or thing.someProperty=newValue;