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

Toggle Join/Part | bottom
[00:00:00] <Zesty> this is a very noob question... sorry there's so much to absorb. How do I have a single value that carries across multiple controllers? I have an accounting app and i want their 'baseCurrency' to be available in everything. its a simple thing like { baseCurrency: 'USD' }
[00:00:04] *** secondjeff has quit IRC
[00:00:05] <bullicon> I am using karma/mocha/chai
[00:00:14] *** mchapman has quit IRC
[00:00:20] *** bejames has quit IRC
[00:00:35] <bullicon> it should be trivial to import a file into your test file
[00:00:36] <monokrome> Zesty: The most simple answer is "angular.module('yourmodule').value('baseCurrency', 'USD')"
[00:00:37] *** mchapman has joined #angularjs
[00:00:37] *** bpayne has joined #angularjs
[00:00:38] *** dbouwman_ has joined #angularjs
[00:00:59] *** bpayne has quit IRC
[00:01:07] *** conan_the_destro has quit IRC
[00:01:14] <monokrome> Where you could make it a provider and change baseCurrency during the .config stage
[00:01:27] <Zesty> hmm ok that is above my pay grade :|
[00:01:31] <Zesty> i guess ill go back to reading...
[00:01:33] <monokrome> if it needs to be dynamic at runtime, then you can adjust things at runtime
[00:01:34] *** jsoverson has quit IRC
[00:01:37] *** seydoggy has quit IRC
[00:01:42] <Zesty> it would be loaded in dynamically with all the other data
[00:01:44] *** ngoyal has quit IRC
[00:01:59] *** kalehv has joined #angularjs
[00:02:00] <monokrome> from an API?
[00:02:10] <wafflejock_> djam90: you should get used to using the debugger then it's clear(er) to watch the execution path of your code
[00:02:11] <wafflejock_> djam90: er debugging panel in chrome in this case
[00:02:11] *** seydoggy has joined #angularjs
[00:02:15] *** jsoverson has joined #angularjs
[00:02:16] <CocoStorm> Hey guys, I need to filter a list by 'tags' using a drop down menu. However my tags an array within an object within an array so I'm not sure how to get each tag and list them as a drop down list http://pastebin.com/Jzm7q5Df
[00:02:19] <wafflejock_> djam90: also I like to just add console.log statements throughout code when I'm trying to get a solid understanding of the order of functions being executed/called
[00:02:41] <alphonse23_> does anyone know of a way to load data before a route finishes rendering a view? using angular's native router?
[00:02:49] *** ngoyal_ has quit IRC
[00:02:49] *** Sgeo has quit IRC
[00:02:50] *** MacWinner has quit IRC
[00:03:02] *** aaronmitchell has joined #angularjs
[00:03:03] <alphonse23_> I know it's easy with angularUI router using the render field
[00:03:04] <CocoStorm> using <select ng-model="clip" ng-options="item.scripArticle.tags for item in clipList"></select> I can get a list of tags in each element in the drop down menu which is not what I want. I need each separate tag so I can filter a list by them
[00:03:06] <alphonse23_> but with the native router
[00:03:09] <alphonse23_> is it possible?
[00:03:17] *** Ronyrun has quit IRC
[00:03:57] *** jsoverson has quit IRC
[00:04:22] *** cpciv has quit IRC
[00:04:22] *** dbouwman has quit IRC
[00:04:28] *** cpciv has joined #angularjs
[00:04:37] *** jsoverson has joined #angularjs
[00:04:57] *** Ethix has joined #angularjs
[00:05:06] <djam90> I found the problem with my code
[00:05:10] *** enigmarm has quit IRC
[00:05:13] *** Hyperking has joined #angularjs
[00:05:16] *** MuffinMan` has joined #angularjs
[00:05:21] <djam90> cos I am switching my jQuery ajax calls to $http, I have to get rid of all the $scope.apply
[00:05:29] <djam90> and i think Angular was hiding the error for some reason
[00:05:35] <Hyperking> if i am storing all "articles" in a single flat json file would this be the equivilent to a cached json request from a Rest api quering "articles"?
[00:05:52] *** jsoverson has quit IRC
[00:06:07] *** mindlace has joined #angularjs
[00:06:11] *** kennbrodhagen has quit IRC
[00:06:30] *** jsoverson has joined #angularjs
[00:06:40] *** Sgeo has joined #angularjs
[00:07:01] *** seydoggy has quit IRC
[00:07:05] <wafflejock_> djam90: should have complained already in $apply
[00:07:15] <djam90> it never complained
[00:07:18] <djam90> yet THAT was the issue
[00:07:40] <CocoStorm> anyone?
[00:08:01] <bullicon> its actually easier than i thought monokrome
[00:08:01] *** dancek has joined #angularjs
[00:08:06] *** jsoverson has quit IRC
[00:08:10] *** Stephen has quit IRC
[00:08:21] *** Drako_ has quit IRC
[00:08:30] <monokrome> Zesty: I made an example, just trying to fix a syntax error real quick
[00:08:43] <Zesty> monokrome: thanks :) (sorry didnt see your Q)
[00:08:47] <Zesty> yes from API
[00:08:48] *** jsoverson has joined #angularjs
[00:09:04] <Zesty> it will be sent with all the users general preferences... 1line vs 2line register, user name, base currency, etc
[00:09:12] *** arizzo has joined #angularjs
[00:09:19] <Zesty> it just applies to the entire app, not just 1 controller.
[00:09:19] *** gnar_matix has quit IRC
[00:09:27] <Zesty> for example, all the table headers need to show 'USD' as the column
[00:09:49] <CocoStorm> hi
[00:09:52] <CocoStorm> can anyone help
[00:09:53] <CocoStorm> ...
[00:10:08] <reduce> why is replace being depracated from directives - it seems like a good option?
[00:10:10] *** greg5green has joined #angularjs
[00:10:11] <monokrome> Zesty: http://codepen.io/monokrome/professor/raudD/
[00:10:21] <monokrome> You just need an intermediate service to share the data
[00:10:31] <monokrome> You could also create a higher level controller to reference it as well
[00:10:32] <wafflejock_> CocoStorm: drop it into a plunkr
[00:10:44] <Zesty> thanks!
[00:10:56] <Zesty> what about having something like a 'home controller'
[00:10:57] <Zesty> errr
[00:11:02] <Zesty> app controller, that applies to the entire app
[00:11:03] *** Kamshak has quit IRC
[00:11:15] <wafflejock_> CocoStorm: the link is in the topic description just move in the code you need to test it you can make a someData.json file if you want to simulate loading data from an API
[00:11:16] *** adharris has joined #angularjs
[00:11:22] <monokrome> codebro: Use a filter?
[00:11:38] <Zesty> monokrome: thanks :)
[00:11:39] <Zesty> this is great
[00:11:44] <monokrome> Zesty: Does that help?
[00:11:52] <wafflejock_> Hyperking: yeah basically
[00:11:52] <Zesty> yep!
[00:11:54] <Zesty> thanks a lot
[00:12:00] <monokrome> Zesty: You can also use another controller above those two and it's data will be available
[00:12:05] <monokrome> whichever makes the most sense
[00:12:08] <Zesty> is there a downside to that?
[00:12:14] <Zesty> i was thinking of having just an entire 'app controller'
[00:12:21] <Zesty> that applies to everything. not sure if thats frowned upon though
[00:12:21] <monokrome> It's more coupled
[00:12:30] *** jsoverson has quit IRC
[00:12:33] <monokrome> It could be a good or bad thing to couple those controllers together
[00:12:44] <monokrome> Depends on what you are doing / what you like
[00:13:01] <Zesty> oh snap..........
[00:13:04] <Zesty> this updates in real time??
[00:13:10] <Zesty> that must be new
[00:13:15] <wafflejock_> Zesty: yeah easier to break things up usually so you don't end up with 1000 line controller, an instance of the controller is created each time you use ng-controller or have a router that uses that controller and the view changes
[00:13:22] *** jsoverso_ has joined #angularjs
[00:13:26] <reduce> how can i set a directive to replace the element its declared on in a future proof way with replace being depracated?
[00:13:33] *** arizzo has quit IRC
[00:13:53] <Zesty> hmm
[00:14:22] <monokrome> Zesty: Do you not want it to update in realtime?
[00:14:26] *** jsoverso_ has quit IRC
[00:14:28] <Zesty> no i really like that
[00:14:33] <Zesty> no i mean codepen
[00:14:36] <monokrome> Are you talking about the example or codepen?
[00:14:37] <Zesty> i see you typing
[00:14:39] <monokrome> Oh, okay
[00:14:43] <Zesty> thats cool, didnt know it did that
[00:14:44] <monokrome> oh haha
[00:14:48] <monokrome> That's because I have a pro account
[00:14:53] <Zesty> how do i group controllers? my app has 10 'pages' i guess... so would that be 10 modules each which consist of multiple controllers for each 'section'?
[00:15:03] <monokrome> I can show you the other option if you want
[00:15:05] *** jsoverson has joined #angularjs
[00:15:19] <Zesty> well ill do it with best practice way to start.. ill look and research what you wrote
[00:15:30] <Zesty> i havent gotten to factories yet but ill use this as an opportunity to read about em
[00:15:49] <monokrome> Zesty: Look @ this one to see the other option
[00:15:51] <monokrome> http://codepen.io/monokrome/professor/FLBAI/
[00:15:53] <monokrome> It might be more simple
[00:16:04] *** andkan__ has quit IRC
[00:16:09] <BobbieBarker> you don't necessarily need a controller per page
[00:16:16] <BobbieBarker> alot of your "pages" should just be partials anyways
[00:16:23] *** jdcasey has quit IRC
[00:16:36] *** andkan__ has joined #angularjs
[00:16:41] *** jsoverson has quit IRC
[00:16:44] *** darkelda has quit IRC
[00:17:04] <Zesty> what is more akin to a 'page' of my app.. a module or a controller?
[00:17:16] <monokrome> probably a controller
[00:17:18] <BobbieBarker> once you get on your feet with angular you'll see there are smarter more sophisticated ways of setting up the architecture to your app
[00:17:20] <monokrome> maybe a directive.
[00:17:23] *** jdj_dk has joined #angularjs
[00:17:24] *** jsoverson has joined #angularjs
[00:17:25] <Zesty> in my accounting app i have a summary of accounts, summary broken down by currency, summary broken down by xyz
[00:17:27] <BobbieBarker> or none of the above
[00:17:29] *** mikehaas763 has joined #angularjs
[00:17:29] <Zesty> theyre all separate tables
[00:17:36] *** scmx has quit IRC
[00:17:37] <Zesty> i was thinking each of those is a controller
[00:17:43] <CocoStorm> wafflejock_, http://jsfiddle.net/MarcoCollura/49gXZ/
[00:17:47] <BobbieBarker> don't think of it on a "by page" basis think of it more on a "by feature" basis
[00:17:51] <Zesty> hmmm
[00:18:01] *** patrickarlt has quit IRC
[00:18:01] <wafflejock_> reduce: http://ng-learn.org/2014/06/Migration_Guide_from_1-2_to1-3/
[00:18:02] <Zesty> ok
[00:18:05] <BobbieBarker> pages are just views
[00:18:07] <CocoStorm> wafflejock_, I need to have them as separate tags in the drop down menu.. and avoid duplicates
[00:18:10] <BobbieBarker> they're not your software
[00:18:25] *** intellix has quit IRC
[00:18:38] *** jsoverson has quit IRC
[00:18:42] <monokrome> BobbieBarker: Generally a "view" contains a "directive", right?
[00:18:46] <BobbieBarker> is anyone else being affected by this internet outage stuff?
[00:18:50] <BobbieBarker> it can contain a directive
[00:18:57] <monokrome> or more than one
[00:18:59] <BobbieBarker> if you want it to either ones you wrote or ones you use from 3rd party
[00:19:02] <BobbieBarker> or more than one
[00:19:04] <BobbieBarker> lots of directives
[00:19:12] <BobbieBarker> directives are just angulars way of manipulating the dom
[00:19:18] <monokrome> right
[00:19:18] *** jsoverson has joined #angularjs
[00:19:33] <CocoStorm> that question is open to anybody btw
[00:19:42] <wafflejock_> CocoStorm: sounds like you probably want to do some preprocessing of the data maybe something related to this http://plnkr.co/edit/Hq8GE5PxUCvzOG8j0Rer?p=preview
[00:19:42] <BobbieBarker> I don't write a lot of my own directives unless it's something to manipulate the dom directly or its something that i'm going to use through out the project
[00:19:52] <Zesty> BobbieBarker: monokrome thanks for your help, i will be back no doubt :|
[00:20:07] <BobbieBarker> well since i can't access my fucking APIs i'll be sitting ehre
[00:20:10] <BobbieBarker> with my thumb up my ass
[00:20:13] <BobbieBarker> doing nothing
[00:20:20] <wafflejock_> CocoStorm: in that code we iterate over objects and for the set of tags we create a unique set and use them for the select
[00:20:21] *** feelfine has quit IRC
[00:20:22] <BobbieBarker> today has been a non-productive day
[00:20:23] <Zesty> dont feel bad we have a hurricane heading towards us i think
[00:20:44] *** Zesty has quit IRC
[00:20:48] *** feelfine has joined #angularjs
[00:20:50] *** jsoverson has quit IRC
[00:20:52] <BobbieBarker> i don't feel bad i'm irritated i got nothing done today, tomarrow is the 4th and the day after is my bday
[00:20:55] <wafflejock_> BobbieBarker: maybe take the time to write tests if you don't have them
[00:20:59] *** Aliks has joined #angularjs
[00:21:06] <monokrome> I don't write controllers that aren't directives -.-
[00:21:13] <monokrome> Well, aren't bound to directives
[00:21:13] <BobbieBarker> if i hadn't told my boss i would get this use case done i would of left for the weekend like 7 hrs ago when ir ealized the internet was fucked up
[00:21:20] *** andkan__ has quit IRC
[00:21:28] *** jsoverson has joined #angularjs
[00:21:31] <monokrome> :(
[00:21:36] <BobbieBarker> wafflejock_ i'm terrible with tests
[00:21:38] *** dhcar has left #angularjs
[00:21:42] *** jdj_dk has quit IRC
[00:21:43] <BobbieBarker> its like my deep dark secret
[00:22:01] <monokrome> I wish there was a way to just route to a directive
[00:22:05] <monokrome> instead of a template
[00:22:18] <BobbieBarker> what do you mean by route to a directive?
[00:22:26] <BobbieBarker> like just hit the directive directly ?
[00:22:28] <BobbieBarker> off of your routes?
[00:22:41] <monokrome> instead of `template: '<div data-my-directive />'`
[00:22:44] *** pdillinger has quit IRC
[00:22:53] <monokrome> just `directive: 'myDirective'`
[00:23:03] <BobbieBarker> oh
[00:23:12] *** jsoverson has quit IRC
[00:23:13] *** jacuqesdancona_ has quit IRC
[00:23:19] <monokrome> because I end up using templateUrl otherwise, because it feels wrong to write a template in code
[00:23:30] <monokrome> if I was just referencing a directive's coded name it would be fine
[00:23:31] *** kalehv has quit IRC
[00:23:35] <CocoStorm> wafflejock_, thanks for that I'm just looking at it now
[00:23:37] *** Nelio has quit IRC
[00:23:38] <CocoStorm> trying to understand it
[00:23:43] <BobbieBarker> we use ui.router and i just set my teamplates off of the config files
[00:23:46] *** jacuqesdancona_ has joined #angularjs
[00:23:47] *** kalehv has joined #angularjs
[00:23:49] <monokrome> and I think that routing to controllers is an anti-pattern
[00:23:50] <reduce> do you end up with lots of templates with only a few lines of html?
[00:23:51] *** jsoverson has joined #angularjs
[00:24:00] <monokrome> I use ui-router also
[00:24:01] <BobbieBarker> no
[00:24:06] <BobbieBarker> @reduce no
[00:24:14] <monokrome> reduce: I end up with a lot with only one line
[00:24:34] *** Destos has quit IRC
[00:24:35] *** intellix has joined #angularjs
[00:24:42] *** jacuqesdancona_ has quit IRC
[00:24:48] <monokrome> which would mostly be gone if I could do `directive: 'myDirective'` from ui-router
[00:25:00] *** jacuqesdancona_ has joined #angularjs
[00:25:02] *** feelfine has quit IRC
[00:25:05] *** intellix has quit IRC
[00:25:07] *** jsoverson has quit IRC
[00:25:08] *** mchapman has quit IRC
[00:25:14] *** Willow has quit IRC
[00:25:23] <BobbieBarker> I think people tend to try to build too much into their directives
[00:25:34] *** digia is now known as digia|away
[00:25:47] *** Willow has joined #angularjs
[00:25:48] *** jsoverson has joined #angularjs
[00:25:48] <wafflejock_> monokrome: why not add it and do a PR?
[00:25:56] <BobbieBarker> but its easy todo cuz directives can be super powerful
[00:25:58] <monokrome> A lot of the time I end up with a template to put the directive in so that I can route to that template, but the directive is basically just providing a template again so I just have a template for referencing something that binds a controller to yet another template
[00:26:17] <wafflejock_> monokrome: see what others think about it... I typically don't design things that way but doesn't mean it shouldn't be an option
[00:26:26] *** shoelessone has joined #angularjs
[00:26:28] <jaawerth> what kind of things are you putting in these megadirectives?
[00:26:30] <monokrome> It seems like an anti-pattern for routes to take a controller/template combination, because that's literally why directives exist already
[00:26:38] *** nibster has quit IRC
[00:26:44] *** spencercarnage has quit IRC
[00:26:52] <jaawerth> uh not really
[00:26:54] <monokrome> solving the same problem in 2 places
[00:26:57] <joroci> monokrome is there a simple solution for making less web requests for all the js files?
[00:27:08] <jaawerth> directives are reusable dom manipulation modules meant for use inside of your views
[00:27:08] <monokrome> joroci: You can use $templateCache
[00:27:15] <wafflejock_> joroci: are you using grunt/gulp?
[00:27:18] <reduce> im thinking of having directives for different types of form control, like <custom-date-control>, which would have a <th><td> pair with label and input + datepicker respectively
[00:27:19] *** jsoverson has quit IRC
[00:27:24] <joroci> no
[00:27:25] <jaawerth> they aren't really meant to BE the views. Which isn't to say you're doing it wrong necessarily, but NOT doing that certainly isn't an anti-pattern
[00:27:26] <wafflejock_> joroci: you typically concat the files and minify using one of those tools
[00:27:27] <monokrome> joroci: I made this for that stuff https://github.com/monokrome/angular-glp
[00:27:46] *** alinou has quit IRC
[00:27:54] <reduce> so all of these directives for different types of form controls would only have a few lines of html
[00:27:58] *** patrickarlt has joined #angularjs
[00:28:04] *** jsoverson has joined #angularjs
[00:28:10] *** newUser1234 has quit IRC
[00:28:11] *** Hyperking has left #angularjs
[00:28:13] <reduce> actually ive move the th to its own directive too
[00:28:20] <reduce> s/ive/id
[00:28:25] <monokrome> If it makes sense for them to be directives
[00:28:58] <monokrome> Angular comes with a ton of form directives, so maybe it doesn't make sense in that case
[00:29:13] *** jsoverson has quit IRC
[00:29:20] <jaawerth> well, ngModelController
[00:29:23] *** encryptd_fractl has quit IRC
[00:29:26] <CocoStorm> wafflejock_, I'm conused, is there a simpler way?
[00:29:30] *** patrickarlt has quit IRC
[00:29:35] <reduce> ui widget form directives?
[00:29:36] <jaawerth> is a good reason to write a form directive that wraps angular's form directives
[00:29:46] *** fedenunez has quit IRC
[00:29:49] *** jonnybro has joined #angularjs
[00:29:50] *** jsoverson has joined #angularjs
[00:29:54] <joroci> what is better loading files on demand like requirejs or just bundle all of the files and load it at one time?
[00:30:14] *** Willow has quit IRC
[00:30:15] <BobbieBarker> depends, i prefer to load them all at one time
[00:30:36] <jaawerth> joroci: depends on the scale of your app. I personally am in favor of just concatenating and minifying and doing it all at once until my code becomes so big that that's a problem - but that usually only happens on a very large scale
[00:30:42] <BobbieBarker> which i tihnk is the way to go unless you have a massive amount of shit
[00:30:46] <wafflejock_> CocoStorm: if you want to get unique list of tags you basically need the functions in that plunkr, it's not written in a clean way cause I was just helping someone along in here to get the thing working but you need the same functionality, step through a list of objects get the array of tags and only keep the unique ones
[00:31:05] *** shoelessone has quit IRC
[00:31:07] <BobbieBarker> ^^jawerth has the detailed answer for the win
[00:31:14] *** jsoverson has quit IRC
[00:31:16] <monokrome> jaawerth: I'm saying that you probably will have a directive that's an entire form, not just a small subsection of that form
[00:31:24] *** jonnybro has left #angularjs
[00:31:34] <jaawerth> why?
[00:31:34] *** jb076 has quit IRC
[00:31:38] <wafflejock_> monokrome: your way of doing things isn't the same as everyone else's
[00:31:39] <BobbieBarker> ya why?
[00:31:43] <monokrome> Unless you have shared control groups
[00:31:44] <CocoStorm> wafflejock_, I'm trying the same ng-options as that example but I'm not getting anything http://jsfiddle.net/MarcoCollura/49gXZ/
[00:31:51] <BobbieBarker> what does that buy you? Unles you're using that form all over the place
[00:31:55] *** jsoverson has joined #angularjs
[00:32:00] <wafflejock_> it's fine if you choose that way and could benefit from changes to ui-router but saying everyone should do it this way isn't right
[00:32:04] *** Xethron has quit IRC
[00:32:06] <BobbieBarker> like how many places are you going to use the "registration form" or the contact us form"
[00:32:16] <jaawerth> I mean I can maybe see a directive that does a TYPE of form, with various ways you can set the contents using attributes
[00:32:18] <monokrome> one or two
[00:32:40] *** gnar_matix has joined #angularjs
[00:32:41] <joroci> large scale would be more than 1mb?
[00:32:53] <monokrome> It's not difficult at all to componentize things, so why wouldn't you?
[00:32:58] <zelrik> G1eb, you still need help with modals?
[00:33:02] <joroci> i have about 600k with angular
[00:33:06] <wafflejock_> joroci: for angular code that would be pretty huge honestly
[00:33:09] *** jsoverson has quit IRC
[00:33:15] <joroci> and jquery
[00:33:16] <wafflejock_> after minification and gzipping?
[00:33:19] <joroci> no
[00:33:21] <joroci> before
[00:33:28] <jaawerth> well if you componentize an entire form then every time you a need a different type of form you have to write an entire new directive
[00:33:41] <BobbieBarker> 1mb before min and concat probably won't be all that much afterwards
[00:33:50] <BobbieBarker> 1mb really isn't large scale after concat either
[00:33:54] <jaawerth> I'd rather use directive to make specialized elements that go into the form, and then use those in my templates where I make the form
[00:34:00] *** jsoverson has joined #angularjs
[00:34:01] <joroci> 1mb was an example
[00:34:01] <jaawerth> directives*
[00:34:07] <BobbieBarker> lol sorry
[00:34:09] <BobbieBarker> for taking it lterally
[00:34:15] <monokrome> jaawerth: That's another good use of them if it's necessary
[00:34:16] *** spencercarnage has joined #angularjs
[00:34:17] <joroci> i have about 600kb with angular and jquery
[00:34:40] *** arizzo has joined #angularjs
[00:34:43] <joroci> without min and gzip
[00:35:00] *** jamto11 has joined #angularjs
[00:35:03] <zelrik> it s good to load them with cdns
[00:35:05] *** jsoverson has quit IRC
[00:35:08] <BobbieBarker> ewww why do you have jquery in your angular?
[00:35:21] <zelrik> yeah
[00:35:21] <monokrome> BobbieBarker: Angular comes with jqLite
[00:35:26] <zelrik> why jquery
[00:35:30] *** mchapman has joined #angularjs
[00:35:33] <monokrome> Some things like angular-ui-bootstrap require jQuery
[00:35:39] <joroci> because i didn't find any good custom scrollbar
[00:35:41] <jaawerth> I mean if you write a form into an entire directive and then you realize you need its inputs to be different, you'll have to write a whole new directive with a different template
[00:35:41] *** joshontheweb has joined #angularjs
[00:35:43] *** jsoverson has joined #angularjs
[00:35:48] <BobbieBarker> ya but thats different' that not like you're using jquery
[00:35:55] <zelrik> build your own :p
[00:35:57] <jaawerth> on the other hand, if I just write templates for each of my forms, I can write directives to use in them for different behaviors
[00:35:59] <monokrome> jaawerth: Why wouldn't you just change the current one?
[00:36:09] *** Aliks has quit IRC
[00:36:18] <joroci> still you will need jquery mousewheel for it to work smooth
[00:36:22] <monokrome> jaawerth: I think that we're talking about different things here
[00:36:23] *** patrickarlt has joined #angularjs
[00:36:23] <CocoStorm> ?
[00:36:29] <BobbieBarker> Cocostorm what is wrong with your select boxes?
[00:36:44] <monokrome> BobbieBarker: So, if I drive a car I'm not using a tired?
[00:36:45] <monokrome> tire*
[00:36:51] <jaawerth> I use directives (when not just wrapping external DOM libraries and such) to make reusable building blocks in my code
[00:36:55] <jaawerth> or, in my templates rather
[00:37:00] *** jsoverson has quit IRC
[00:37:01] <zelrik> I managed to build our angular app entirely with angularJS so far
[00:37:03] <zelrik> touching wood
[00:37:07] <BobbieBarker> no the car engine is using the tires to move you down the road, you're just sitting in the car.
[00:37:12] <CocoStorm> BobbieBarker, I'm trying to get each tag in the list
[00:37:16] <jaawerth> using them AS the templates just seems like it defeats the point of that to me
[00:37:26] <BobbieBarker> try using track by
[00:37:36] <CocoStorm> BobbieBarker, trying to get each item in the tags array
[00:37:41] *** braoru has joined #angularjs
[00:37:41] *** jsoverson has joined #angularjs
[00:37:41] <jaawerth> monokrome: you're right, and I'm not saying you're wrong, I'm just saying I really don't think controllers and templates are an anti-pattern for the above reason
[00:37:53] <monokrome> Just becaues an interface has abstracted something doesn't mean you aren't using the things that it abstracted :/
[00:37:59] *** aaronmitchell has quit IRC
[00:38:20] <BobbieBarker> i think its exactly what it means, plants make oxygen and you breath oxygen that doesn't mean you use plants to breath
[00:38:27] <monokrome> By that logic I can do: notjQuery = function () { jQuery(_.toArray(arguments)); }
[00:38:27] *** Aliks has joined #angularjs
[00:38:39] <monokrome> and now if anyone asks if I use jQuery, I can say "No, I use notjQuery."
[00:38:45] <wafflejock_> joroci: I'm on a project with 690kb in source code not including angular, after everything is minified including angular and dependencies it's about 400kb gzipped it's about 85kb
[00:38:46] *** arizzo has quit IRC
[00:38:47] <BobbieBarker> lol
[00:38:48] <jaawerth> wait what
[00:38:52] <jaawerth> now I'm lost
[00:39:05] *** jsoverson has quit IRC
[00:39:07] *** jbourassa has quit IRC
[00:39:16] <BobbieBarker> i just owned him with circular logic
[00:39:20] <BobbieBarker> BOOM
[00:39:23] <zelrik> why providing your own angular.js with your app
[00:39:23] <BobbieBarker> interface that
[00:39:25] <jaawerth> haha
[00:39:27] *** bullicon has quit IRC
[00:39:29] <zelrik> cdns are always cached
[00:39:33] *** jamto11 has quit IRC
[00:39:36] <jaawerth> some of us don't trust cdns
[00:39:45] <BobbieBarker> i don't use cdns
[00:39:46] <monokrome> BobbieBarker: It does mean that I use plants to breathe
[00:39:54] <wafflejock_> zelrik: it's a guarantee when CDNs go down or mess up, IE jQuery CDN latest
[00:39:54] <zelrik> well you could have a plan B is the cdn is not available
[00:39:55] <monokrome> They are a tool that allows me to dos o
[00:39:57] <monokrome> do so*
[00:40:01] <monokrome> Get rid of the plants, I don't breathe
[00:40:01] *** kennbrodhagen has joined #angularjs
[00:40:14] *** jsoverson has joined #angularjs
[00:40:17] <jaawerth> Okay, le me rephrase: what's the BENEFIT of writing your entire template into a directive instead of just a template?
[00:40:24] <wafflejock_> zelrik: sometime easier to just make that plan A it depends on your audience to some degree
[00:40:27] <BobbieBarker> beats the shit out of me
[00:40:39] <jaawerth> I mean don't get me wrong, I love directives
[00:40:43] <joroci> so you're saying just minify ang gzip, thanks
[00:40:46] <monokrome> jaawerth: The point is that I don't have any templates that aren't directives except for the ones for routing
[00:40:51] <zelrik> wafflejock_, my point is that those cdns are usually already loaded
[00:40:55] <zelrik> saying loading time
[00:41:00] *** jsoverson has quit IRC
[00:41:06] <zelrik> saving
[00:41:06] <monokrome> and the ones for routing are annoying
[00:41:24] <monokrome> There's no benefit in not using a directive
[00:41:33] <monokrome> and there's no benefit in having two things that behave the same
[00:41:33] <wafflejock_> zelrik: yeah but if your audience is a small set of admin users who never want the thing to be down or acting funky because of something that happened outside of your control and they will have your copy cached after the first go you don't really benefit
[00:41:42] *** jsoverson has joined #angularjs
[00:41:47] *** blueadept has quit IRC
[00:42:00] <zelrik> ok
[00:42:09] <zelrik> maybe for admin stuff it s ok
[00:42:09] <monokrome> No problems can come from using a directive. Many can come from not using a directive. That's the difference.
[00:42:12] <BobbieBarker> Cocostorm: Uncaught Error: Bootstrap's JavaScript requires jQuery maybe build in plunkr? i think its a better enviroment than fiddle
[00:42:34] <CocoStorm> BobbieBarker, it doesn't work for you? :S
[00:42:36] *** m0t0r has quit IRC
[00:42:38] <wafflejock_> zelrik: yeah if you're working on FB or Twitter or something CDN might be a good option but then you probably have your own caching systems
[00:42:40] <BobbieBarker> no
[00:42:51] *** aaronmitchell has joined #angularjs
[00:42:58] *** jsoverson has quit IRC
[00:43:03] *** braoru has quit IRC
[00:43:13] <wafflejock_> zelrik: can be a boost for mobile too like you mentioned cause of the caching and whatnot
[00:43:41] *** jsoverson has joined #angularjs
[00:44:05] <jaawerth> what problems come from not using a directive? not counting people who try to directly manipulate the DOM outside of them, anyway
[00:44:10] *** UniBot has joined #angularjs
[00:44:11] *** kennbrodhagen has quit IRC
[00:44:19] *** Reskp has quit IRC
[00:44:26] <zelrik> directives are awesome
[00:44:39] *** tomzx is now known as tomzx`afk
[00:44:40] <monokrome> jaawerth: 6 months later someone wants your login page to show up in a modal when someone clicks a specific button on some obscure page
[00:44:47] *** fedenunez has joined #angularjs
[00:44:51] <CocoStorm> BobbieBarker, http://jsfiddle.net/MarcoCollura/49gXZ/1/
[00:44:52] *** nanoyak has quit IRC
[00:44:53] <BobbieBarker> no one is saying directives aren't awesome
[00:45:11] <zelrik> BobbieBarker, I am sure there are people out there that do :p
[00:45:21] *** jsoverson has quit IRC
[00:45:22] <BobbieBarker> savages
[00:45:28] <monokrome> but you made the login template a separate template and someone else decided it was cool to throw a whole bunch of stuff unrelated to login into it because you have classified it as a "login page" instead of a directive specifically for "login"
[00:45:29] <BobbieBarker> jquery savages that refuse to see the light
[00:45:32] *** joshontheweb has quit IRC
[00:45:46] *** mattwynne has joined #angularjs
[00:45:51] <zelrik> I know my previous boss wants to stop using RoR for his site and is hiring php devs lol
[00:45:55] <marcospgp> savages ahahah laughed
[00:46:00] *** jsoverson has joined #angularjs
[00:46:01] <zelrik> he s kinda of a fool lol
[00:46:03] <sal1191> bah
[00:46:23] <monokrome> So, now you have to 1) convert the login portion to a directive (should have been done in the first place) 2) get rid of all the stuff unrelated to login, because it was a page and now it's a component, and 3) make sure you didn't break whichever logic was added to the *page* in doing so (hopefully you have E2E testing)
[00:46:38] <CocoStorm> BobbieBarker, can you see it now?
[00:46:38] *** mewm has quit IRC
[00:46:40] <jaawerth> well that's a team management problem
[00:46:42] *** arizzo has joined #angularjs
[00:46:50] <BobbieBarker> Cocostorm it's hard to look at that raw json in your controller, but it looks like you have 2 items in that scope and i see 2 items in your drop down
[00:46:53] <BobbieBarker> so whats up?
[00:46:57] <monokrome> No, it's a design problem.
[00:47:12] *** s3ri0us has quit IRC
[00:47:22] <jaawerth> if I have a login template, and someone suddenly wants to stick that into a modal, then I stick the login template into a modal directive
[00:47:25] <jaawerth> done!
[00:47:45] *** jsoverson has quit IRC
[00:47:50] <CocoStorm> BobbieBarker, need to get each item in the array tags
[00:47:51] <monokrome> Nice. You paid attention to 60% of my situation.
[00:47:54] <CocoStorm> I'll paste you the json
[00:47:57] <jaawerth> hahaha
[00:47:57] <monokrome> The least interesting part, as well.
[00:48:00] <jaawerth> well it's specious
[00:48:02] <BobbieBarker> array tags?
[00:48:03] *** joshontheweb has joined #angularjs
[00:48:10] <CocoStorm> BobbieBarker, http://pastebin.com/Jzm7q5Df
[00:48:15] <jaawerth> templates should BE components
[00:48:22] *** d3wayne has quit IRC
[00:48:26] *** jsoverso_ has joined #angularjs
[00:48:29] <monokrome> jaawerth: No, directives should be components.
[00:48:34] <BobbieBarker> you mean the tags property
[00:48:36] <BobbieBarker> with the array?
[00:48:38] *** KendrickVT has quit IRC
[00:48:38] <zelrik> templates, templates everywhere
[00:48:39] <jaawerth> using ui-router anyway
[00:48:47] <zelrik> I never used ui-router
[00:48:48] <BobbieBarker> i see it as being there?
[00:48:56] <BobbieBarker> ui router is the shit!
[00:49:01] <zelrik> I dont understand its use
[00:49:06] <jaawerth> and anyway, I'd rather write a login template that has a fancy login dialog, and THAT part is the directive
[00:49:21] <wafflejock_> zelrik: nested states
[00:49:34] <BobbieBarker> ui router is one of those things you have to really sit down and read on because there is nothing ot look at
[00:49:34] *** wafflejock_ has quit IRC
[00:49:51] <zelrik> nested states?
[00:49:57] *** brianturgeon has joined #angularjs
[00:49:58] <BobbieBarker> you can do other cool stuff too like inject your API data straight into a controller
[00:50:11] *** jsoverso_ has quit IRC
[00:50:18] <BobbieBarker> so the controller never touches any logic/API stuff it just recieves json
[00:50:24] <BobbieBarker> nom nom nom
[00:50:25] <jaawerth> monokrome: I mean to use your example, what if the same guy who wants to add a bunch of weird gizmos to my login page just goes and adds them to your login directive?
[00:50:30] <jaawerth> same problem
[00:50:41] <zelrik> BobbieBarker, hmm I am confused but ok :)
[00:50:43] *** mattwynne has quit IRC
[00:50:46] <CocoStorm> BobbieBarker, yeah, but it should be separate
[00:50:52] *** jsoverson has joined #angularjs
[00:51:03] <CocoStorm> so |top story| disease | instead of |top story, disease |
[00:51:03] <BobbieBarker> what do you mean by seperate?
[00:51:10] <zelrik> my api stuff is in a service
[00:51:12] <BobbieBarker> oh
[00:51:15] <zelrik> or several services even
[00:51:27] <zelrik> my controllers are fairly empty
[00:51:30] <jaawerth> anyway, I write all of my stuff as components
[00:51:31] <monokrome> jaawerth: Generally I've seen that the concept of a routed template is accepted to be more ad-hoc than a directive which is seen to be more oriented to one specific behavior/task
[00:51:42] <zelrik> besides the application controller
[00:51:47] *** tylerjohnst has quit IRC
[00:51:50] <monokrome> So, maybe my experience is just inaccurate of the usual case here.
[00:52:02] <jaawerth> like, "login component/module --> view(s)/controller(s)/whatever"
[00:52:07] *** jsoverson has quit IRC
[00:52:32] <jaawerth> that way I can reuse them and just dependency inject
[00:52:39] *** wafflejock_ has joined #angularjs
[00:52:46] *** jsoverson has joined #angularjs
[00:52:52] <BobbieBarker> CocoStorm change the array to look like this : "tags": ["Top Story, Disease"],
[00:52:54] <zelrik> what s a component anyway
[00:53:42] <jaawerth> well in the context I'm talking about it, just the way I separate my code into modules based on their function
[00:53:45] <CocoStorm> BobbieBarker, that's what it looks like though
[00:53:46] <monokrome> It's a specific unit on a page that tries to solve a single specific problem
[00:53:51] <BobbieBarker> no it isn't
[00:53:57] <CocoStorm> BobbieBarker, you mean the whole json?
[00:53:59] <zelrik> ok
[00:54:01] <BobbieBarker> yeah
[00:54:04] <zelrik> so either a directive
[00:54:08] <zelrik> or a module
[00:54:12] *** jsoverson has quit IRC
[00:54:12] <BobbieBarker> what you have is a string formatting issue not an angularJS issue
[00:54:22] *** lw has joined #angularjs
[00:54:29] *** djam90 has quit IRC
[00:54:30] <monokrome> O_o
[00:54:32] *** Rahul_Roy has quit IRC
[00:54:41] *** lw has quit IRC
[00:54:42] *** xavia has left #angularjs
[00:54:52] *** jsoverson has joined #angularjs
[00:54:59] <monokrome> http://getbootstrap.com/components/
[00:55:01] <monokrome> Those are components
[00:55:13] *** kalehv has quit IRC
[00:55:14] <jaawerth> lol
[00:55:22] *** lw has joined #angularjs
[00:55:26] *** bkuberek_ has joined #angularjs
[00:55:31] *** DerekPerkins has quit IRC
[00:55:35] <jaawerth> well, component-based software engineering is much more generic than that. bootstrap components are TYPE of component
[00:55:45] <monokrome> right
[00:55:46] <jaawerth> really it's about separation of concerns for your code with a focus on modularity and reusability
[00:55:51] <CocoStorm> BobbieBarker, oh really? I can't really change it as this is what gets returned when i send the get request. So the select ng-options attribute is correct?
[00:56:07] *** jsoverson has quit IRC
[00:56:12] <jaawerth> it doesn't have to be a part of a page, it can also be part of your logic
[00:56:13] <BobbieBarker> yeah it's doing exactly what it should be doing
[00:56:31] <BobbieBarker> if you cahnge the json to how i told you and mix up the formatting it will display how you want it to display
[00:56:37] <BobbieBarker> unless i misunderstood you
[00:56:46] *** jsoverson has joined #angularjs
[00:56:55] <BobbieBarker> what you could do is write a factory/function that formats the string
[00:56:59] <monokrome> jaawerth: Would you disagree that those are components?
[00:56:59] *** enapupe has quit IRC
[00:57:02] <BobbieBarker> or better yet a filter
[00:57:12] *** joshontheweb has quit IRC
[00:57:36] <zelrik> oh
[00:57:47] <zelrik> so what I wrote was a component
[00:57:55] *** ascarter has joined #angularjs
[00:57:55] <BobbieBarker> also CocoStorm you might want to consider using a 3rd party directive for the drop boxes if you're not already doing so
[00:57:56] *** jsoverson has quit IRC
[00:57:58] <zelrik> I just call it a module because that s what it is
[00:58:00] <zelrik> in practice
[00:58:03] <BobbieBarker> i'm partial to the angular-strap project
[00:58:18] *** brianturgeon has quit IRC
[00:58:20] *** bkuberek has quit IRC
[00:58:31] *** joshontheweb has joined #angularjs
[00:58:31] *** andkan__ has joined #angularjs
[00:58:33] *** cpciv has left #angularjs
[00:58:38] *** jsoverson has joined #angularjs
[00:59:11] <jaawerth> zelrik: check out this "best practice" guide from google, it explains components a little better in the context of angular specifically https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub
[00:59:32] *** bkuberek_ has quit IRC
[00:59:36] <BobbieBarker> ^^ we use that and its bad ass
[00:59:42] *** Ymesio has quit IRC
[00:59:42] <BobbieBarker> so we break every thing down to modules
[00:59:48] <jaawerth> I'm a huge fan
[00:59:49] <BobbieBarker> and we handle all the routing and everything insicd the modules
[00:59:52] *** jsoverson has quit IRC
[00:59:53] <BobbieBarker> dependency njection etc
[00:59:57] <zelrik> oh I see
[00:59:58] <BobbieBarker> hapens in the module
[01:00:04] <wafflejock_> yup same
[01:00:17] <BobbieBarker> app.js just injects the modules
[01:00:19] <zelrik> jaawerth, so it s mostly folder organization and semantics
[01:00:20] <jaawerth> that means you can just drop in your directory for that module, include and inject it, and BAM
[01:00:22] *** shabadoo_ has quit IRC
[01:00:31] <BobbieBarker> so you end up with a very modular and reusable piece of software
[01:00:34] *** jsoverson has joined #angularjs
[01:00:35] <monokrome> jaawerth: That documentation is pretty vague about what a component is really
[01:00:39] <wafflejock_> zelrik: it's about some piece of functionality you can just plugin
[01:00:43] <jaawerth> zelrik: folder organizatoin and semantics following a specific software engineering philosophy and organizatoinal approach, yeah
[01:00:50] <BobbieBarker> its not semantics its software architecture
[01:01:04] <zelrik> alright :D
[01:01:05] <jaawerth> monokrome: well the examples make it pretty clear
[01:01:16] <CocoStorm> BobbieBarker, I drew you a diagram http://i57.tinypic.com/1hrr4z.jpg
[01:01:23] *** cthrax_ has quit IRC
[01:01:29] *** mrogne_afk has quit IRC
[01:01:34] *** d3wayne has joined #angularjs
[01:01:37] <BobbieBarker> also we group everything by feature/purpose we don't group things by what they are i.e factories controllers etc
[01:01:47] <BobbieBarker> i see a lot of people doing that
[01:01:49] *** jsoverson has quit IRC
[01:01:50] <BobbieBarker> in their little demos
[01:01:55] *** shabadoo has joined #angularjs
[01:02:00] *** cujojp has quit IRC
[01:02:01] <wafflejock_> if that piece of functionality is centered around DOM manipulation or adding behaviors to DOM elements then it would be in a directive
[01:02:01] <zelrik> I do a lot of that
[01:02:05] <zelrik> well a bit of a mix
[01:02:08] <jaawerth> well, that's how the most popular yeoman generator does it
[01:02:08] *** HACKING-FACEBOOK has joined #angularjs
[01:02:09] *** HACKING-FACEBOOK has quit IRC
[01:02:10] <wafflejock_> BobbieBarker: yeah that's based on the original angular-seed and yeoman apps
[01:02:26] <jaawerth> but there are a lot of proposals to redo that, and I believe it's in progress
[01:02:27] *** jsoverson has joined #angularjs
[01:02:28] *** HACKING-FACEBOOK has joined #angularjs
[01:02:29] *** moritzs has joined #angularjs
[01:02:29] *** HACKING-FACEBOOK has quit IRC
[01:02:35] <CocoStorm> any ideas how I can make this happen http://i57.tinypic.com/1hrr4z.jpg
[01:02:49] <BobbieBarker> i didn't know that waffle
[01:02:50] <wafflejock_> yeah if you follow links in that document jaawerth posted there are people showing their various versions
[01:02:50] *** atomical has quit IRC
[01:02:51] <zelrik> jaawerth, https://github.com/AlexCppns/ac-fancy-input that s what I have been working on
[01:02:51] <CocoStorm> so far I have this http://jsfiddle.net/MarcoCollura/49gXZ/1/
[01:03:00] <zelrik> if you wanna see how I have been coding up to now
[01:03:00] *** HACKING-FACEBOOK has joined #angularjs
[01:03:02] *** HACKING-FACEBOOK has quit IRC
[01:03:03] <monokrome> jaawerth: It's also weird that components don't have controllers.
[01:03:11] *** moritzs has quit IRC
[01:03:17] <monokrome> in that "best practices"
[01:03:21] *** cpciv has joined #angularjs
[01:03:28] *** jsoverson has quit IRC
[01:04:08] *** jsoverson has joined #angularjs
[01:04:12] *** Alax has quit IRC
[01:04:19] <CocoStorm> wafflejock_, BobbieBarker ? :)
[01:04:32] <BobbieBarker> sorry i spaced out
[01:04:35] <BobbieBarker> i have developers ADD
[01:04:35] *** bealtine^ has quit IRC
[01:04:41] <Foxandxss> so a directive should have controllers?
[01:04:42] *** moritzs has joined #angularjs
[01:04:46] *** elrabin has quit IRC
[01:04:49] *** PLATOSCAVE has joined #angularjs
[01:04:53] *** hswolff has quit IRC
[01:05:02] *** pdillinger has joined #angularjs
[01:05:03] *** mrogne_busy has joined #angularjs
[01:05:13] <jaawerth> monokrome: huh, that is a strange omission. MINE certainly do! ;-)
[01:05:14] <zelrik> Foxandxss, not always but it can be nice
[01:05:15] *** PLATOSCAVE has quit IRC
[01:05:27] *** jsoverson has quit IRC
[01:05:31] *** ngoyal has joined #angularjs
[01:05:36] <jaawerth> when necessary, at least
[01:05:41] <BobbieBarker> so don't send "top story" with it
[01:05:51] <zelrik> in my case it was required
[01:05:52] *** PLATOSCAVE has joined #angularjs
[01:06:00] <zelrik> at least the way I have done it
[01:06:01] *** PLATOSCAVE has quit IRC
[01:06:03] *** jamto11 has joined #angularjs
[01:06:05] <monokrome> I usually try to avoid what they call "subsections" as well
[01:06:05] <CocoStorm> BobbieBarker, I can't an article has many tags
[01:06:07] *** jsoverson has joined #angularjs
[01:06:10] <BobbieBarker> it looks like you want to use "top story" more like a headline/label than a valid choice off of the drop box
[01:06:10] <monokrome> They just make things complicated
[01:06:10] *** sonofdirt has quit IRC
[01:06:26] <jaawerth> that, I think, depends on scale
[01:06:33] <CocoStorm> BobbieBarker, the product requires this tag
[01:06:34] *** PLATOSCAVE has joined #angularjs
[01:06:39] *** kennbrodhagen has joined #angularjs
[01:06:40] <BobbieBarker> where the shit are you getting this json from
[01:06:41] <monokrome> They become complicated as number of developers scales
[01:06:48] <jaawerth> yeah
[01:06:52] *** jamto11_ has joined #angularjs
[01:06:55] *** waylon999 has quit IRC
[01:06:56] <jaawerth> but a huge app very well could need them
[01:06:56] *** thomasreggi has quit IRC
[01:07:00] *** stirlingw has joined #angularjs
[01:07:04] <monokrome> It's more explicit to just define those as separate modules completely
[01:07:06] <monokrome> separate repositories
[01:07:06] <BobbieBarker> you should shoot who ever wrote your API
[01:07:25] <zelrik> which API
[01:07:34] <BobbieBarker> what ever teh fuck CocoStorm is using
[01:07:53] <jaawerth> Anyway, I don't have to write in large scales. My coding style is based around the idea of maximizing my efficiency either as a single dev or on a small team, and that means as much modularity as possible
[01:07:58] <jaawerth> (and reusability)
[01:08:12] <wafflejock_> CocoStorm: http://jsfiddle.net/49gXZ/4/
[01:08:18] <BobbieBarker> **jaawerth and i share a hive mind
[01:08:27] <jaawerth> er, that is not so much "in large scales" but "in large teams"
[01:08:29] *** verbgarden has left #angularjs
[01:08:35] *** Vloz_ has joined #angularjs
[01:08:51] *** kalehv has joined #angularjs
[01:08:51] *** cthrax_ has joined #angularjs
[01:08:55] *** joshontheweb has quit IRC
[01:09:09] <CocoStorm> wafflejock_, that's exactly what I wanted! how did you do it .. hmmm *checks*
[01:09:15] <monokrome> jaawerth: This whole thing stemmed from you not wanting directives for certain templates
[01:09:17] <jaawerth> when it comes to this approach with angular specifically I've also caged a lot from wafflejock, robdubya, and some others
[01:09:19] <wafflejock_> CocoStorm: using the code I had from the plunkr
[01:09:20] *** markisonfire has quit IRC
[01:09:28] <monokrome> directives increase modularity of your components, so I don't understand how they could cause problems
[01:09:31] <wafflejock_> CocoStorm: it just grabs the tags shoves them all in an array then gets rid of duplicates
[01:09:32] *** DerekPerkins has joined #angularjs
[01:09:37] *** secondjeff has joined #angularjs
[01:09:37] <jaawerth> monokrome: I LOVE directives, I just don't want them to be the whole template!
[01:09:42] *** mrogne_busy has quit IRC
[01:09:44] *** pdillinger has quit IRC
[01:10:00] <CocoStorm> wafflejock_, grabbing the tags is what I had a problem with though
[01:10:04] *** moritzs has quit IRC
[01:10:17] <CocoStorm> I see you're diong this by 'tags for tags in uniqueTags'
[01:10:21] *** JoshGlzBrk has joined #angularjs
[01:10:23] <CocoStorm> which I'm struggling to understand
[01:10:24] <marcospgp> Guys, I have to recreate this http://startpagerr.com/ using angular, and I know the basics and all but I'm pretty much lost and don't know where to start. Can someone please help me?
[01:10:25] *** jamesshijie has joined #angularjs
[01:10:33] <BobbieBarker> CocoStorm thats exactly what i told you to do
[01:10:38] *** jamto11 has quit IRC
[01:10:40] <CocoStorm> *tag for tag in uniqueTags
[01:10:43] *** lw has quit IRC
[01:10:44] <CocoStorm> BobbieBarker, really?
[01:10:48] <wafflejock_> CocoStorm: ah it's just the weird ng-options syntax you need if you have an array of strings
[01:10:50] <BobbieBarker> yeah like 15 minutes ago
[01:10:53] <monokrome> jaawerth: I just don't see why you wouldn't want the whole template to be a directive (not the other way around)
[01:10:56] <jaawerth> if I write a login page, it's a view in my login component
[01:11:01] <BobbieBarker> i told you to write something that formats the strings
[01:11:01] *** joshontheweb has joined #angularjs
[01:11:18] <BobbieBarker> waffle is just nicer than me and he went ahead and did it
[01:11:35] *** jsoverson has quit IRC
[01:11:38] <wafflejock_> BobbieBarker: well I had already written this up for someone else like 6 days ago
[01:11:42] <CocoStorm> BobbieBarker, ah I would've attempted to if I knew what you mean sorry
[01:11:46] <BobbieBarker> hahah
[01:11:51] <BobbieBarker> np
[01:11:56] <jaawerth> because that makes it harder to reuse it as a drop-in
[01:12:12] <CocoStorm> so tag for tag in unniqueTags how is this interpreted
[01:12:15] <BobbieBarker> Coco if youwanted to get fancy you could take what waffle did and drop it into like a filter
[01:12:16] *** Vloz has quit IRC
[01:12:17] *** DANtheBEASTman has quit IRC
[01:12:19] <CocoStorm> I'm beyong confused
[01:12:24] *** mrogne_busy has joined #angularjs
[01:12:24] <monokrome> No, it makes it easier. If it made it harder then that would defeat the entire reason why directives exist.
[01:12:29] <zelrik> monokrome, what do you mean by the other way around
[01:12:30] <BobbieBarker> well you really should so that you don't have those kind of functions sitting in your controller
[01:12:32] <jaawerth> I don't mind rewriting templates. I like my directives to be little nuggles I sprinkle liberally into my templates to be layed out how I want
[01:12:33] <wafflejock_> CocoStorm: basically just saying to use the object that you iterate over for the label and the value
[01:12:42] *** joshfinnie has quit IRC
[01:12:43] *** jnwhiteh has quit IRC
[01:12:50] <wafflejock_> CocoStorm: and get them from the uniqueTags array which I populated in the controller
[01:12:52] *** Jdubs has quit IRC
[01:12:53] *** PeteCampbell has quit IRC
[01:12:55] *** DerekPerkins_ has joined #angularjs
[01:12:55] *** bealtine has joined #angularjs
[01:13:19] <monokrome> jaawerth: but this isn't preventing you from doing that
[01:13:31] <monokrome> so that's a bit of a moot point
[01:13:32] *** jory has quit IRC
[01:13:41] <monokrome> you can use directives within directives after all
[01:13:47] <jaawerth> it could easily lead to a bloated directive
[01:13:57] *** licyeus has quit IRC
[01:13:58] <wafflejock_> monokrome: directives exist to allow you to add strings to the markup that manipulate the DOM elements or extend the behavior
[01:13:59] <BobbieBarker> CocoStorm see that $scope.uniqueTags at the bottom @ line 91 thats where the magic is happening
[01:14:07] <jaawerth> ^^ what wafflejock said
[01:14:12] <monokrome> Sure, if people don't know how to componentize their DOM properly - but the same can be said for your template
[01:14:18] *** chrisshattuck has quit IRC
[01:14:19] *** t_smith has joined #angularjs
[01:14:22] *** maegeri has quit IRC
[01:14:23] *** JSON_voorhees has quit IRC
[01:14:24] *** jnwhiteh has joined #angularjs
[01:14:26] *** kennbrodhagen has quit IRC
[01:14:30] *** t_smith has quit IRC
[01:14:37] *** joshfinnie has joined #angularjs
[01:14:46] *** licyeus has joined #angularjs
[01:14:47] *** oddalot has quit IRC
[01:14:51] <monokrome> wafflejock_: That's not the only reason they exist, that's just a feature
[01:15:22] *** secondjeff has quit IRC
[01:15:22] *** MacWinner has joined #angularjs
[01:15:23] <jaawerth> basically if I don't need to use the link or compile functions, I'm not going to write it as a directive unless I need it as a cookie-cutter widget that I'll need to use in my templates
[01:15:24] *** Guest60427 has joined #angularjs
[01:15:25] *** rho has quit IRC
[01:15:27] *** MacWinner has quit IRC
[01:15:37] <monokrome> jaawerth: What if you need a controller?
[01:15:43] <jaawerth> then I use a controller
[01:15:43] <CocoStorm> I see
[01:16:00] <monokrome> jaawerth: an ad-hoc controller?
[01:16:05] <monokrome> <ng-controller> ?
[01:16:07] *** Guest81517 has joined #angularjs
[01:16:08] *** oddalot has joined #angularjs
[01:16:13] <jaawerth> depends on the situation
[01:16:17] <zelrik> I like to put my controllers in directives more and more
[01:16:17] <monokrome> oh
[01:16:20] <monokrome> I don't use ng-controller.
[01:16:20] <jaawerth> but sometimes
[01:16:24] *** DerekPerkins has quit IRC
[01:16:33] <wafflejock_> http://youtu.be/ZhfUv0spHCY?t=19m25s
[01:16:36] <zelrik> what do you use then monokrome
[01:16:37] <wafflejock_> monokrome: ^
[01:16:40] <monokrome> directives
[01:16:42] *** jamto11 has joined #angularjs
[01:17:03] <zelrik> monokrome, what do you use instead of your application controller
[01:17:15] <monokrome> An application directive
[01:17:31] <zelrik> so your app is just one big directive?
[01:17:32] <zelrik> ??
[01:17:33] *** patrickarlt has quit IRC
[01:17:43] <jaawerth> directiveception
[01:17:44] *** AciD`` has quit IRC
[01:17:54] *** intellix has joined #angularjs
[01:17:59] <monokrome> No, it is generally just a directive containing the layout, related views, and a controller
[01:17:59] *** rkalfane has quit IRC
[01:18:27] <zelrik> yeah I dont code all that way
[01:18:29] <monokrome> That's actually a concrete example of why directives exist
[01:18:32] *** intellix has quit IRC
[01:18:39] <zelrik> I used to have everything in ng-controllers
[01:18:45] *** mmitchel_ has quit IRC
[01:18:57] <jaawerth> if it works for you, great, not doing it that way is anything but an anti-pattern
[01:18:59] <zelrik> I am moving a lot of that in directives, but I still have very general controllers
[01:19:01] <jaawerth> but*
[01:19:04] *** armdale has joined #angularjs
[01:19:08] *** anjumkaiser has joined #angularjs
[01:19:10] *** rkalfane has joined #angularjs
[01:19:20] <monokrome> jaawerth: I'm saying that I think routing to controllers is an anti-pattern
[01:19:26] *** jamto11_ has quit IRC
[01:19:28] *** IJNX has quit IRC
[01:19:33] <jaawerth> well, you route to a view
[01:19:39] <monokrome> I personally don't like ng-controller, but it's not an anti-pattern. Routing to controllers inspires bad habits.
[01:19:43] <zelrik> I have a controller per layout
[01:19:45] <zelrik> in the routes
[01:19:46] <jaawerth> the controller is just gluing your backend logic to the view
[01:19:59] <monokrome> joroci: Isn't that what a directive controller is anyway?
[01:20:03] <monokrome> er, jaawerth ^
[01:20:18] <jaawerth> yeah
[01:20:21] <zelrik> monokrome, why routing to controllers is a bad habit?
[01:20:28] <bealtine> one big directive sounds like the ultimate anti-pattern to me
[01:20:33] *** jamto11_ has joined #angularjs
[01:20:35] <monokrome> zelrik: Because it easily turns into coding your own router
[01:20:38] *** joshontheweb has quit IRC
[01:20:47] <monokrome> bealtine: They don't get that big really
[01:21:17] <monokrome> They just glue together a bunch of other directives
[01:21:22] <zelrik> monokrome, alright that statement confuses the hell out of me
[01:21:33] <monokrome> O_o
[01:21:37] <jaawerth> I mean, a controller should ALWAYS just be gluing your backend logic to a view, regardless of whether it's a directive controller or a more general one
[01:21:49] <wafflejock_> monokrome: controllers in directives are for hooking up directives to other directives really https://docs.angularjs.org/guide/directive#creating-directives-that-communicate
[01:21:59] *** IJNX has joined #angularjs
[01:22:03] <zelrik> how can you code your own router
[01:22:11] <wafflejock_> zelrik: ui-router is a third party thing
[01:22:26] <jaawerth> an awesome third party thing! ;-)
[01:22:30] <wafflejock_> zelrik: you just write the code as a provider that does the routing... all of angualar is written in JS
[01:22:30] *** cthrax_ has quit IRC
[01:22:32] <zelrik> wafflejock_, and I am not using it so I dont knwo :)
[01:22:34] *** jamto11 has quit IRC
[01:22:50] *** joshontheweb has joined #angularjs
[01:23:27] <zelrik> I just use the regular routeprovider the way I use RoR routing
[01:23:40] <jaawerth> well you can do that with a provider as well
[01:23:45] <zelrik> and assign to each path a layout with its own controller
[01:24:23] *** bbankes has joined #angularjs
[01:24:34] <monokrome> wafflejock_: That's basically the same problem that people try to solve with ng-controller anyway
[01:24:52] <zelrik> the very tricky part is to avoid page refresh when changing path
[01:25:04] *** brownbathrobe has joined #angularjs
[01:25:11] <jaawerth> well people abuse controllers by putting too much logic into them, there's no question there
[01:25:19] <monokrome> The only benefit of it is that I never define controllers in markup or routes, so I always know that directives are providing whichever data through their controllers
[01:25:27] <CocoStorm> I understand it now wafflejock_ ! It's actually pertty clever :)
[01:25:28] <CocoStorm> thanks!
[01:25:36] <wafflejock_> CocoStorm: np
[01:25:37] <brownbathrobe> any directive gurus in the place?
[01:25:38] <CocoStorm> So you're looking in a list you've created rather than the list
[01:25:38] *** Jdubs_ has joined #angularjs
[01:25:44] <wafflejock_> brownbathrobe: talk to monokrome :P
[01:25:48] <CocoStorm> rather than the json
[01:25:48] <brownbathrobe> i'm having a transclusion nightmare!
[01:25:48] <jaawerth> hahaha
[01:25:49] <CocoStorm> awesome
[01:25:50] <CocoStorm> also
[01:26:02] <monokrome> O_O
[01:26:03] *** vf1 has quit IRC
[01:26:07] <CocoStorm> wafflejock_, how do I implement the actual filtering, that would be the easy part right
[01:26:10] *** lw has joined #angularjs
[01:26:11] <zelrik> brownbathrobe, I have done some pretty annoying transclusion recently, what s up
[01:26:14] *** RedOrangeZ2 has joined #angularjs
[01:26:18] <monokrome> brownbathrobe: That's never fun. What's the problem?>
[01:26:31] *** RedOrangeZ has quit IRC
[01:26:32] <wafflejock_> CocoStorm: yeah you should be able to just use someArray|filter:theModelFromTheSelect
[01:26:55] <brownbathrobe> zelrik: http://plnkr.co/edit/VBQuZn?p=preview
[01:26:56] <brownbathrobe> monokrome: http://plnkr.co/edit/VBQuZn?p=preview
[01:26:57] <CocoStorm> wafflejock_, thanks!
[01:27:10] *** shoelessone has joined #angularjs
[01:27:13] <brownbathrobe> trying to dynamically add a directive to another directive
[01:27:28] <brownbathrobe> getting a gross error in the console
[01:27:34] *** Johnny- has quit IRC
[01:27:37] *** kalehv has quit IRC
[01:27:52] *** mrogne_afk has joined #angularjs
[01:28:07] <brownbathrobe> "Illegal use of ngTransclude directive in the template"
[01:28:34] *** howitdo has quit IRC
[01:28:34] *** PeteCampbell has joined #angularjs
[01:29:04] *** mrogne_busy has quit IRC
[01:29:11] <joroci> i don't get, why using window.history.back() isn't like using the browser back button?
[01:29:27] <joroci> get it*
[01:29:48] <brownbathrobe> i can't decide if:
[01:29:50] <brownbathrobe> A) what i'm trying to do is stupid
[01:29:56] *** aslate has joined #angularjs
[01:29:59] <brownbathrobe> B) angular is stupid
[01:30:03] *** earthquake has quit IRC
[01:30:06] <zelrik> probably A :D
[01:30:13] <joroci> or C :P
[01:30:13] <brownbathrobe> C) all of the above
[01:30:20] <monokrome> Neither can I, because this isn't really the use case your code is doing. It's just a random transclude.
[01:30:28] <monokrome> 90% of the time when someone is using transclude, they don't need it
[01:30:38] <monokrome> Thee other 10% of the time it's debatable.
[01:30:47] *** disorder20 has quit IRC
[01:31:02] <zelrik> I wish my use case made more sense
[01:31:35] *** shoelessone has quit IRC
[01:31:46] <joroci> :|
[01:31:59] <brownbathrobe> monokrome: let's pretend the `outer` directive has a purpose...
[01:32:00] <brownbathrobe> :)
[01:32:07] <marcospgp> Hey guys. say I want to check the documentation for the value() function. Where can I find it?
[01:32:12] <monokrome> oh no
[01:32:15] <monokrome> firefox froze
[01:32:43] <wafflejock_> marcospgp: look for angular provider
[01:33:09] <wafflejock_> marcospgp: https://docs.angularjs.org/guide/providers
[01:33:16] *** tenfloors has joined #angularjs
[01:33:31] <marcospgp> thank you!
[01:33:36] <wafflejock_> marcospgp: np
[01:33:53] <monokrome> brownbathrobe: I think it had something to do with what you're doing in compile
[01:34:06] *** thomasreggi has joined #angularjs
[01:34:07] <zelrik> brownbathrobe, what are you trying to do in practice
[01:34:11] <monokrome> Is ysour goal just to create a tooltip?
[01:34:14] *** aslate has quit IRC
[01:35:27] <marcospgp> does anyone know any good examples of angular apps I can check the code of?
[01:35:29] <brownbathrobe> i am trying to create a directive that adds a tooltip (with tooltip-placement & tooltip-append-to-body & tooltip-defaults-that-i-want-everywhere)
[01:35:33] <marcospgp> preferably ones using different modules and such
[01:35:46] *** Ruckus has quit IRC
[01:35:55] *** matiasow has joined #angularjs
[01:36:00] *** jamesshijie has quit IRC
[01:36:01] *** ascarter has quit IRC
[01:36:04] *** jamto11_ has quit IRC
[01:36:12] <marcospgp> brownbathrobe: Have you tried searching for one? Tooltips are general enough to have already been created I would imagine
[01:36:36] *** jamesshijie has joined #angularjs
[01:37:20] <brownbathrobe> marcospgp: i am intending to use ui-bootstrap tooltip
[01:37:22] *** mguillech has quit IRC
[01:37:25] <joroci> ok using window.history.back() works if i just do in the developer console but doesn't work using $window service
[01:37:35] *** markisonfire has joined #angularjs
[01:37:41] *** earthquake has joined #angularjs
[01:37:43] <monokrome> marcospgp: Are you using bootstrap tooltips (or some other 3rd party) or defining your own tooltip directive?
[01:37:49] <monokrome> Sorry, brownbathrobe ^
[01:37:54] * monokrome is getting tired -.-
[01:37:55] <brownbathrobe> monokrome: ui-bootstrap
[01:38:02] <monokrome> oh no
[01:39:01] <monokrome> maybe this is a case for the 'require' option to the directive?
[01:39:14] <monokrome> Does ui-bootstrap support doing that?
[01:39:17] <joroci> this is the most annoying thing ever
[01:39:28] <brownbathrobe> monokrome: not a clue
[01:39:59] <monokrome> I was going to try to fix it but it froze my browser twice and plunkr bugs me -.0
[01:41:08] <brownbathrobe> oh plunkr
[01:41:26] *** scriptThis has quit IRC
[01:41:28] *** mehlah has quit IRC
[01:41:34] *** zwacky has quit IRC
[01:41:34] <monokrome> So, am all QQ now
[01:41:37] *** howitdo has joined #angularjs
[01:42:14] *** CocoStorm has quit IRC
[01:42:26] <brownbathrobe> monokrome: so is it that the `inner` directive is getting compiled first but IT doesn't have `transclude: true` ?
[01:42:35] *** atomical has joined #angularjs
[01:43:09] <monokrome> let me try in Chrome
[01:43:48] *** fedenunez has quit IRC
[01:44:10] *** JoshGlzBrk has quit IRC
[01:44:18] <caitp> http://plnkr.co/edit/RfuXTl?p=preview
[01:44:24] <caitp> @whoever was asking
[01:45:18] *** Reskp has joined #angularjs
[01:45:31] *** tomzx`afk is now known as tomzx
[01:45:38] *** texinwien has quit IRC
[01:45:39] *** bmac has joined #angularjs
[01:45:50] <monokrome> brownbathrobe: I think it's because of the removeAttr('inner')
[01:46:02] <monokrome> but I can't remove that part or there's an infinite loop.
[01:46:38] <brownbathrobe> monokrome: yes, that is a bad road
[01:46:41] *** kennbrodhagen has joined #angularjs
[01:47:55] <monokrome> Is there a way to get angular to remove directives from the HTML that it creates?
[01:48:07] <monokrome> I'm assuming that Angular has a virtual DOM here
[01:48:09] *** Ruckus has joined #angularjs
[01:48:19] <brownbathrobe> monokrome: that's what i was attempting to do with `removeAttr`
[01:48:29] <monokrome> I know, that's what reminded me of it
[01:49:03] <monokrome> I don't know exactly what the issue is, but I think there's an outer getting put in your inner somehow
[01:49:07] <monokrome> or else your inner has an inner inside of it
[01:49:11] *** UniBot has quit IRC
[01:49:15] *** freeman42 has quit IRC
[01:49:29] *** RedOrangeZ2 has quit IRC
[01:49:31] <brownbathrobe> monokrome: the DOM looks fine
[01:49:41] *** Reskp has quit IRC
[01:49:44] <brownbathrobe> even though Angular barfs about it in the console
[01:49:48] <monokrome> brownbathrobe: When you don't remove the node does it still look fine?
[01:49:58] <brownbathrobe> don't removeAttr?
[01:50:34] <monokrome> The removeAttr is causing an infinite loop for some reason
[01:50:44] *** lw has quit IRC
[01:50:48] <monokrome> oh
[01:50:55] <monokrome> You're calling $compile in the postlink function
[01:51:00] *** jamto11 has joined #angularjs
[01:51:07] <monokrome> which is going to cause another postlink if you don't remove the aattr
[01:51:18] <brownbathrobe> monokrome: right
[01:51:23] *** matiasow has quit IRC
[01:51:27] *** fels_zh has joined #angularjs
[01:51:29] <monokrome> why?
[01:51:38] <monokrome> To get it to recompile?
[01:51:42] <brownbathrobe> why am i calling compile in postLink?
[01:51:45] <monokrome> (to find the tooltip?)
[01:51:47] <brownbathrobe> yeah
[01:52:23] <wafflejock_> brownbathrobe: did you see caitp's plunkr?
[01:52:30] *** kennbrodhagen has quit IRC
[01:52:31] *** Ymesio has joined #angularjs
[01:52:38] <brownbathrobe> wafflejock_: no i did not
[01:52:52] <monokrome> I don't think so. I tried adding `var dirty = true;` in the compile function and only call $compile if dirty was true, then set it to false after calling $compile
[01:52:53] <wafflejock_> think that was meant for you
[01:52:55] *** OddDuck has quit IRC
[01:52:56] *** kalehv has joined #angularjs
[01:52:56] <monokrome> still an infinite loop
[01:53:06] <monokrome> oooh ordering maybe
[01:53:14] <brownbathrobe> wafflejock_: looking at it now
[01:53:23] <brownbathrobe> monokrome: oh, like priority?
[01:53:54] *** night-owl-MBP has joined #angularjs
[01:54:05] <monokrome> priority would be good
[01:54:18] <monokrome> I mentioned that above, thought you said it didn't work
[01:54:38] *** MistahKurtz has quit IRC
[01:55:00] *** bayousoft has joined #angularjs
[01:55:45] *** senayar_ has quit IRC
[01:55:47] *** corban has quit IRC
[01:55:53] *** bmac has quit IRC
[01:56:25] <brownbathrobe> monokrome: priority doesn't seem to help
[01:56:26] *** senayar has joined #angularjs
[01:57:00] *** night-owl-MBP has quit IRC
[01:57:26] <wafflejock_> brownbathrobe: does caitp's example not solve the original problem?
[01:57:47] *** mikehaas763 has quit IRC
[01:57:57] *** mven_ has joined #angularjs
[01:57:58] *** snurfery has quit IRC
[01:58:00] <wafflejock_> it looks like it does based on reading your description but I haven't been following along
[01:58:23] *** gordroid has joined #angularjs
[01:58:41] <wafflejock_> I need some pizza brb gotta get the oven goin
[01:59:48] *** caitp has quit IRC
[02:00:21] <brownbathrobe> wafflejock_: just checking it out to see if it solves my use-case
[02:00:34] *** senayar has quit IRC
[02:00:37] *** Jdubs_ has quit IRC
[02:00:41] *** danielpquinn has quit IRC
[02:01:17] *** DrMabuse has quit IRC
[02:01:36] *** TorpedoSkyline has joined #angularjs
[02:01:37] *** gordroidJS has joined #angularjs
[02:02:12] *** gordroid has quit IRC
[02:02:40] *** tenfloors has quit IRC
[02:02:42] *** arizzo has quit IRC
[02:02:55] *** lw has joined #angularjs
[02:03:17] *** arizzo has joined #angularjs
[02:03:22] *** kennbrodhagen has joined #angularjs
[02:03:31] *** henn1nk has quit IRC
[02:03:48] *** cthrax has joined #angularjs
[02:03:54] *** tsalb has quit IRC
[02:04:16] *** TorpedoSkyline has quit IRC
[02:04:38] *** drej has quit IRC
[02:05:37] *** jamesshijie has quit IRC
[02:05:47] *** gordroidJS has quit IRC
[02:05:57] *** subnl has quit IRC
[02:06:17] *** Shrooms` has joined #angularjs
[02:06:40] <marcospgp> Can I use a service/factory as an object containing app settings in angular?
[02:07:01] <marcospgp> I think angular is finally clicking for me! Woo!
[02:07:22] <wafflejock_> marcospgp: yup it might make more sense as a provider so you can config it but otherwise yes either of those other two act as singletons
[02:07:39] *** arizzo has quit IRC
[02:07:45] *** caitp has joined #angularjs
[02:08:05] <marcospgp> wafflejock_: ahah I feel so goooooood :D
[02:08:15] <wafflejock_> marcospgp: hehe yeah it's good when things are clicking
[02:08:17] *** Destos has joined #angularjs
[02:08:43] *** fels_zh has quit IRC
[02:09:16] *** fels_zh has joined #angularjs
[02:09:39] <wafflejock_> I would feel good but pretty freakin hungry... that will be solved soon though
[02:10:29] *** jchamberlain has joined #angularjs
[02:10:35] *** charuru has quit IRC
[02:10:42] *** bayousoft has quit IRC
[02:10:51] *** jchamberlain has joined #angularjs
[02:11:02] <marcospgp> wafflejock_: My life is just the conjunction of a constant succession of intervals where I am looking forward to the next time I get to eat
[02:11:16] <jchamberlain> hey all
[02:11:30] <wafflejock_> marcospgp: space delimited meal time I get it :)
[02:11:37] <wafflejock_> jchamberlain: hiya
[02:11:48] <jchamberlain> hey can somebody check something for me?
[02:12:02] *** beckyconning__ has quit IRC
[02:12:08] <jchamberlain> I'm having a problem with a demo on a angularjs doc page and its implementation in plunker
[02:12:29] <jchamberlain> here's the doc page: https://docs.angularjs.org/api/ng/input/input%5Bcheckbox%5D
[02:12:29] *** kennbrodhagen has quit IRC
[02:12:32] <marcospgp> sure, link us
[02:12:41] *** MuffinMan` has quit IRC
[02:12:42] *** YancyFry has quit IRC
[02:12:53] *** Yancy has joined #angularjs
[02:13:03] *** caitp has quit IRC
[02:13:05] *** arizzo has joined #angularjs
[02:13:12] <jchamberlain> in the example, when you toggle the second checkbox, does the value shown remain YES or NO?
[02:13:19] *** kennbrodhagen has joined #angularjs
[02:13:19] <jchamberlain> without quotes around it?
[02:13:31] <jchamberlain> it does for me, but when I load it in plunkr
[02:13:32] *** fels_zh has quit IRC
[02:13:40] <jchamberlain> it puts quotes around it
[02:13:54] <jchamberlain> i.e., it casts the ng-true-value and ng-false-value to string
[02:13:57] <jchamberlain> but only in plunkr
[02:14:05] *** scriptThis has joined #angularjs
[02:14:46] *** Reskp has joined #angularjs
[02:14:59] *** howitdo has quit IRC
[02:15:25] *** tendencydriven has joined #angularjs
[02:15:48] <jchamberlain> it matters to me because my app is behaving like the plunker example, when I really need to it to behave like the docs
[02:15:52] *** seydoggy has joined #angularjs
[02:16:51] *** vf1 has joined #angularjs
[02:16:52] <tendencydriven> When I click on a link to my Angular App (from an email, for example) it takes me to the root of the AngularApp, not the path linked to. Anyone have any idea why? html5 mode is enabled, using ExpressJS as the back-end.
[02:17:00] <wafflejock_> jchamberlain: just remove the single quotes in the ng-false-value and ng-true-value
[02:17:17] <wafflejock_> jchamberlain: not sure why the docs example works tbh but removing the qutoes in the plunkr seems to resolve it
[02:17:24] <jchamberlain> wafflejock_: that would remove the quotes, but that's not the point actually
[02:17:36] <jchamberlain> ng-false-value is supposed to be an expression
[02:17:44] <jchamberlain> so putting the single quotes around it means it will be a string
[02:17:44] *** arizzo has quit IRC
[02:18:02] <jchamberlain> except in plunker, where it's treating it as a string to begin with
[02:18:21] *** thomasreggi has quit IRC
[02:18:26] <jchamberlain> so I should be able, as per the docs, to put ng-false-value="false" and have it set to boolean false
[02:18:38] <wafflejock_> jchamberlain: here's where it's doing the business https://github.com/angular/angular.js/blob/master/src/ng/directive/input.js#L1200
[02:18:39] <jchamberlain> but in the plunker, it would set it to the string "false"
[02:19:05] *** aslate has joined #angularjs
[02:19:07] <marcospgp> time to hit the hay, happy coding fellow coders
[02:19:08] *** joshontheweb has quit IRC
[02:19:14] <wafflejock_> marcospgp: yup g'night
[02:19:22] <jchamberlain> gotcha
[02:19:24] *** Reskp has quit IRC
[02:20:04] *** aaronmitchell has quit IRC
[02:20:23] *** brownbathrobe has quit IRC
[02:20:52] *** jamto11 has quit IRC
[02:20:57] *** kennbrodhagen has quit IRC
[02:21:06] *** aaronmitchell has joined #angularjs
[02:21:20] *** cthrax has quit IRC
[02:21:55] <tendencydriven> anyone know why linking isn't working correctly on my app? When clicking on a link from an email for example it will take me to the root of the application, and not the correct path. I have html5mode set to true. I'm using ExpressJS for the backend and I think I'm correctly passing all non-api routes to angular.
[02:22:14] *** aaronmitchell has quit IRC
[02:22:20] *** marcospgp has quit IRC
[02:22:53] *** patrick__ has joined #angularjs
[02:23:14] *** marr has quit IRC
[02:23:18] *** aslate has quit IRC
[02:23:20] <wafflejock_> tendencydriven: I would put a route change start event handler into the app temporarily with a debugger; statement in there and check out what's going on when the app loads
[02:23:48] *** cthrax has joined #angularjs
[02:23:57] *** subnl2 has joined #angularjs
[02:24:20] <wafflejock_> tendencydriven: or maybe even drop one into a script block in the top of the page so you get the chance to inspect what's going on as early as possible
[02:24:29] <wafflejock_> personally I just don't use html5mode though
[02:25:18] <tendencydriven> wafflejock_ I'll give that a shot, cheers. What do you use instead? Or do you just not sure anything like that?
[02:25:37] *** night-owl has joined #angularjs
[02:25:56] *** gordroid has joined #angularjs
[02:25:59] *** seydoggy has quit IRC
[02:26:33] *** patrickc_ has quit IRC
[02:26:58] <wafflejock_> tendencydriven: yeah I just leave it with the #
[02:27:00] *** vf1 has quit IRC
[02:27:02] *** patrick__ has quit IRC
[02:27:27] <wafflejock_> tendencydriven: don't do anything about it, URLs end up with tons of crap in them most of the time anyway if people use them they just copy paste they don't care what's in there
[02:27:42] *** narutimateum has joined #angularjs
[02:27:48] *** vf1 has joined #angularjs
[02:27:53] *** Foxandxss has quit IRC
[02:27:57] *** shoelessone has joined #angularjs
[02:28:03] <tendencydriven> I suppose the people that would care about URL structures are developers anyway... Hmm...
[02:28:14] *** wilmoore has joined #angularjs
[02:28:30] *** howitdo has joined #angularjs
[02:28:58] *** kennbrodhagen has joined #angularjs
[02:29:10] *** dashed has quit IRC
[02:29:19] <narutimateum> i need some advice... i have 3 level navigation.... i want to make that when a page is visited the menu will be active accordingly... any food for thought?
[02:30:14] <wafflejock_> pizza
[02:30:44] <tendencydriven> nauritmateum: Angular-strap does that (it's a angularjs and bootstrap lovechild) http://mgcrea.github.io/angular-strap/
[02:30:52] *** gordroid has quit IRC
[02:31:00] <tendencydriven> narutimateum: *
[02:31:23] *** markisonfire has quit IRC
[02:31:38] *** gordroid has joined #angularjs
[02:31:41] <wafflejock_> narutimateum: you using ui-router
[02:32:02] *** DrMabuse has joined #angularjs
[02:32:11] <narutimateum> sorry... not using angy... work >.<
[02:32:27] <narutimateum> any jquery only solution?
[02:32:28] *** shoelessone has quit IRC
[02:32:37] <wafflejock_> probably the worst place to ask :P
[02:32:41] <tendencydriven> Haha :P
[02:33:03] <narutimateum> someone somewhere should know something.. you cant be an expert on just one thing XD
[02:33:08] *** wilmoore has quit IRC
[02:33:14] <narutimateum> havent been here for so long though
[02:33:24] <narutimateum> the love hate relation with angy
[02:33:24] <narutimateum> lel
[02:33:26] *** bmac has joined #angularjs
[02:33:27] <tendencydriven> This might be of use... http://css-tricks.com/snippets/jquery/add-active-navigation-class-based-on-url/
[02:34:06] <jchamberlain> wafflejock_: thought you might be interested in seeing what I found: https://github.com/angular/angular.js/commit/c90cefe16142d973a123e945fc9058e8a874c357
[02:34:16] *** cthrax has quit IRC
[02:34:25] <jchamberlain> the ability to parse expressions, rather than just treat them as strings, is a recent addition
[02:34:40] <jchamberlain> and not yet in the beta, just on master
[02:34:49] <wafflejock_> jchamberlain: ah yeah well thank caitp for that one she's not in the room right now though
[02:34:59] <wafflejock_> jchamberlain: thanks for pointing out the change though
[02:35:04] <narutimateum> good link ..but i have 3-4 level nav
[02:35:16] *** aaronmitchell has joined #angularjs
[02:36:06] <jchamberlain> yeah
[02:36:10] <jchamberlain> thanks for your help
[02:36:14] <jchamberlain> I'm off for now
[02:36:17] *** willmarshall has joined #angularjs
[02:36:20] <wafflejock_> jchamberlain: sure np ttyl
[02:36:42] *** jchamberlain has quit IRC
[02:36:43] <tendencydriven> wafflejock_ what's the best way to debug my routes? I'm new to Angular, I've removed html5mode for now, doesn't solve the issue
[02:36:43] *** AciD` has quit IRC
[02:36:49] *** Destos has quit IRC
[02:36:54] *** OdinIncarnate has joined #angularjs
[02:37:07] *** DrMabuse has quit IRC
[02:37:26] *** wilmoore has joined #angularjs
[02:37:34] *** SpearThruster has quit IRC
[02:37:58] *** arizzo has joined #angularjs
[02:38:00] <wafflejock_> tendencydriven: hmm so you're being redirected as though it's not matching any routes, are you using ngRoute or ui-router? also on the express side ( I don't know jack about express ) can you get it to log out the rewrites that are going on
[02:38:01] *** phpxadmin has quit IRC
[02:38:17] *** sethen has joined #angularjs
[02:38:22] *** JoshGlzBrk has joined #angularjs
[02:38:23] *** tfennelly has quit IRC
[02:38:33] <sethen> Anyone help with my Angular question? http://stackoverflow.com/questions/24565099/dynamic-models-and-dirty-checking-with-ng-repeat-in-angular
[02:38:47] <wafflejock_> tendencydriven: also just to be clear this happens even if you navigate to some page copy the url open a new tab and paste that URL
[02:39:17] *** earthquake has quit IRC
[02:39:23] <wafflejock_> sethen: is that your pic for real, pretty funny
[02:39:35] <sethen> Haha, yeah that's me.
[02:39:51] <sethen> No cares.
[02:40:19] *** kennbrodhagen has quit IRC
[02:40:30] <wafflejock_> yeah you look pretty chilled out... the issue is a bit weird though
[02:40:40] *** DerekPerkins has joined #angularjs
[02:40:51] <wafflejock_> sethen: have you tried like form[field.name].$dirty ?
[02:41:02] <tendencydriven> wafflejock_ Cheers for the help, turns out I spelt the bloody route wrong >_> :P
[02:41:11] *** stirlingw has quit IRC
[02:41:16] <wafflejock_> tendencydriven: gotcha makes sense then
[02:41:23] <sethen> wafflejock_: The question is weird?
[02:41:29] <sethen> wafflejock_: I will try that.
[02:41:31] *** bmac has quit IRC
[02:41:39] <wafflejock_> well just that way of doing things I've done it before too but it feels a bit hacky
[02:41:40] *** dc_ has joined #angularjs
[02:42:06] <sethen> wafflejock_: I just tried that, no luck.
[02:42:19] *** LuxuryMode has joined #angularjs
[02:42:21] <sethen> I think if you saw the context in how I was doing it it would probably make more sense.
[02:42:24] *** caitp has joined #angularjs
[02:42:26] <wafflejock_> like using the array syntax for accessing properties and iterating over things it works (for the most part) but it seems like it shoudln't for some reason
[02:42:49] *** arizzo has quit IRC
[02:42:51] <wafflejock_> yeah I mean like I said done it myself before too cause it seemed to make sense and it worked for me but didn't do the dirty checking part
[02:43:27] *** lw has quit IRC
[02:43:33] <sethen> The only reason I put it in arrays was because if I put it in just plain objects there is no guarantee that my form comes out the way I want it. This way the objects are indexed by number and I am guaranteed the order.
[02:43:40] *** Destos has joined #angularjs
[02:44:05] *** emps has quit IRC
[02:44:32] *** DerekPerkins_ has quit IRC
[02:44:36] *** Aliks has quit IRC
[02:44:57] *** ngbot has joined #angularjs
[02:44:57] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/Rk-XYg
[02:44:58] <ngbot> angular.js/master cb42766 Caitlin Potter: fix(parseKeyValue): ignore properties in prototype chain....
[02:44:58] *** ngbot has left #angularjs
[02:45:04] *** DerekPerkins has quit IRC
[02:45:07] *** tfennelly has joined #angularjs
[02:45:16] *** andkan__ has quit IRC
[02:45:41] *** vf1_ has joined #angularjs
[02:45:52] *** andkan__ has joined #angularjs
[02:46:02] *** alpha080 has joined #angularjs
[02:46:28] *** andkan__ has quit IRC
[02:46:58] *** raghunayyar has quit IRC
[02:47:49] *** arizzo has joined #angularjs
[02:47:57] *** cujojp has joined #angularjs
[02:48:28] <wafflejock_> sethen: well I can show you why it's not working http://jsfiddle.net/HB7LU/4765/
[02:48:31] *** vf1 has quit IRC
[02:48:42] <wafflejock_> sethen: looks like the interpolation for the name is ineffective
[02:48:44] *** xavia has joined #angularjs
[02:48:57] <sethen> Yeah, that makes sense.
[02:49:07] <sethen> I printed out form too
[02:49:16] <sethen> And I saw that, I am wondering if there is a way around it.
[02:49:27] *** boptop has quit IRC
[02:49:30] *** tfennelly has quit IRC
[02:49:30] <wafflejock_> yeah not sure started trying some things but to no avail
[02:49:38] <sethen> Hmm..
[02:49:42] <sethen> This seems like a really easy thing.
[02:49:44] <wafflejock_> typically I have done what you did for things like value="{{}}" where I need to
[02:49:54] <wafflejock_> and it works fine so not sure what the dillyo
[02:49:55] *** Johnny- has joined #angularjs
[02:49:56] <wafflejock_> haha
[02:50:09] *** boptop has joined #angularjs
[02:50:57] <sethen> Hmm..
[02:51:03] <sethen> There's gotta be a way to do this.
[02:51:56] *** wilmoore has quit IRC
[02:52:04] *** arizzo has quit IRC
[02:52:11] *** r2 has joined #angularjs
[02:52:43] <wafflejock_> sethen: Since you cannot dynamically generate the name attribute of input elements using interpolation, you have to wrap each set of repeated inputs in an ngForm directive and nest these in an outer form element.
[02:52:49] <wafflejock_> from https://docs.angularjs.org/api/ng/directive/form
[02:53:15] *** aaronmitchell has quit IRC
[02:53:16] *** arizzo has joined #angularjs
[02:53:25] <sethen> Hmm, alright I will have a look at that.
[02:53:51] *** gordroidJS has joined #angularjs
[02:53:56] *** Asiajey has quit IRC
[02:55:35] *** JoshGlzBrk has quit IRC
[02:56:42] *** gordroid has quit IRC
[02:57:34] *** arizzo has quit IRC
[02:57:43] *** Sakurazaki is now known as Sakurazaki|off
[02:58:45] *** sdouglas has joined #angularjs
[02:59:16] *** jdj_dk has joined #angularjs
[02:59:35] *** podsiad has joined #angularjs
[02:59:37] *** aaronmitchell has joined #angularjs
[02:59:48] *** scriptThis has quit IRC
[03:00:05] *** aaronmitchell has quit IRC
[03:00:15] *** chrisbirk has joined #angularjs
[03:00:28] *** kroogs has joined #angularjs
[03:00:39] *** MistahKurtz has joined #angularjs
[03:00:50] *** Jdubs has joined #angularjs
[03:01:32] *** danielpquinn has joined #angularjs
[03:01:44] *** htowngangsta has joined #angularjs
[03:02:35] *** Destos has quit IRC
[03:03:54] *** jdj_dk has quit IRC
[03:03:59] *** wa5ted_ has joined #angularjs
[03:04:06] *** JoshGlzBrk has joined #angularjs
[03:04:46] *** whunt has quit IRC
[03:04:47] *** heidi has quit IRC
[03:04:54] *** kroogs has quit IRC
[03:05:42] *** Sakurazaki|off is now known as Sakurazaki
[03:05:43] *** danielpquinn has quit IRC
[03:05:44] *** pdillinger has joined #angularjs
[03:06:09] *** DerekPerkins has joined #angularjs
[03:06:36] *** wa5ted has quit IRC
[03:06:37] *** wa5ted_ is now known as wa5ted
[03:06:39] *** chrisbirk has quit IRC
[03:06:57] *** jareddlc has quit IRC
[03:07:17] *** Emperor_Earth_ has quit IRC
[03:07:27] *** gordroidJS has quit IRC
[03:07:46] *** richardbaker has joined #angularjs
[03:07:57] *** sdouglas has quit IRC
[03:08:16] *** arizzo has joined #angularjs
[03:08:28] *** sdouglas has joined #angularjs
[03:08:34] <sethen> wafflejock_: That worked, thanks for your help!
[03:08:45] *** ner0x has joined #angularjs
[03:08:45] <wafflejock_> sethen: yup np glad you got it sorted
[03:08:57] *** tfennelly has joined #angularjs
[03:09:05] *** sdouglas has joined #angularjs
[03:09:09] *** nemothekid has quit IRC
[03:09:46] *** kkthxbye has joined #angularjs
[03:09:51] *** pdillinger has quit IRC
[03:09:57] *** scriptThis has joined #angularjs
[03:09:58] *** mdedetrich has joined #angularjs
[03:10:10] *** matiasow has joined #angularjs
[03:10:41] *** Nizumzen has joined #angularjs
[03:11:18] *** mindlace has quit IRC
[03:11:28] *** matiasow_ has joined #angularjs
[03:11:33] *** Rebirth has quit IRC
[03:11:57] *** Gambit- has quit IRC
[03:12:44] *** arizzo has quit IRC
[03:12:54] *** mindlace has joined #angularjs
[03:13:17] *** tk has quit IRC
[03:13:26] *** tfennelly has quit IRC
[03:13:28] *** maegeri has joined #angularjs
[03:14:03] *** ngoyal_ has joined #angularjs
[03:14:06] *** ngoyal has quit IRC
[03:14:46] *** matiasow has quit IRC
[03:14:58] *** one_zero has joined #angularjs
[03:15:08] *** TorpedoSkyline has joined #angularjs
[03:15:28] *** Reskp has joined #angularjs
[03:15:47] *** jh3 has joined #angularjs
[03:16:00] *** mmitchel_ has joined #angularjs
[03:17:05] *** gordroid has joined #angularjs
[03:18:25] *** tommmied has joined #angularjs
[03:19:26] *** tommmied has left #angularjs
[03:19:54] *** whunt has joined #angularjs
[03:20:03] *** Reskp has quit IRC
[03:20:04] *** TorpedoSkyline has quit IRC
[03:20:26] *** juanlas has quit IRC
[03:21:35] *** heidi has joined #angularjs
[03:22:26] *** BlinkyBill has quit IRC
[03:22:53] *** bkuberek has joined #angularjs
[03:22:57] *** SomeKittens has quit IRC
[03:23:03] *** jeffisabelle has quit IRC
[03:23:07] *** arizzo has joined #angularjs
[03:23:17] *** patrickc_ has joined #angularjs
[03:24:10] *** dbouwman_ has quit IRC
[03:24:57] *** dashed has joined #angularjs
[03:25:18] *** dc_ has quit IRC
[03:26:33] *** mindlace has quit IRC
[03:27:03] *** bkuberek has quit IRC
[03:27:18] *** arizzo has quit IRC
[03:27:35] *** patrickc_ has quit IRC
[03:27:54] *** TyrfingMjolnir has joined #angularjs
[03:28:13] *** rtpg has joined #angularjs
[03:28:21] *** darrin has joined #angularjs
[03:28:45] *** shoelessone has joined #angularjs
[03:29:13] *** adharris has quit IRC
[03:29:46] *** KernelCurry has quit IRC
[03:29:53] *** rtpg has quit IRC
[03:30:09] *** rtpg has joined #angularjs
[03:31:29] *** rtpg has quit IRC
[03:31:36] *** DrMabuse has joined #angularjs
[03:32:02] *** rtpg has joined #angularjs
[03:32:37] *** mtho11 has quit IRC
[03:32:44] *** fedenunez has joined #angularjs
[03:33:06] *** shoelessone has quit IRC
[03:33:47] *** Jdubs has quit IRC
[03:34:02] *** motionman has joined #angularjs
[03:34:03] *** motionman has joined #angularjs
[03:34:31] *** stirlingw has joined #angularjs
[03:35:48] *** pkayfire has joined #angularjs
[03:36:03] *** DrMabuse has quit IRC
[03:36:14] *** rtpg has quit IRC
[03:36:17] *** The_HunterT has quit IRC
[03:36:21] *** rtpg has joined #angularjs
[03:36:46] *** waylon999 has joined #angularjs
[03:36:52] *** matiasow_ has quit IRC
[03:36:53] *** shoelessone has joined #angularjs
[03:37:31] *** heidi has quit IRC
[03:37:59] *** jeffisabelle has joined #angularjs
[03:38:01] *** arizzo has joined #angularjs
[03:39:05] *** bayousoft has joined #angularjs
[03:40:37] *** lw has joined #angularjs
[03:40:48] *** alpha080 has quit IRC
[03:41:35] *** vf1_ has quit IRC
[03:41:47] *** dc_ has joined #angularjs
[03:42:06] *** blueadept has joined #angularjs
[03:42:06] *** blueadept has joined #angularjs
[03:42:21] *** OdinIncarnate has quit IRC
[03:44:46] *** wxo has quit IRC
[03:45:25] *** whunt has quit IRC
[03:45:31] *** shinnya has quit IRC
[03:45:34] *** Siecje has joined #angularjs
[03:46:19] *** matiasow has joined #angularjs
[03:47:41] *** alekibango_ has joined #angularjs
[03:47:46] *** arizzo has quit IRC
[03:48:40] *** seydoggy has joined #angularjs
[03:48:58] *** alekibango has quit IRC
[03:50:58] *** jh3 has quit IRC
[03:51:04] *** mattwynne has joined #angularjs
[03:51:25] *** seydoggy has quit IRC
[03:51:34] *** anjumkaiser has quit IRC
[03:52:00] *** seydoggy has joined #angularjs
[03:52:15] *** anjumkaiser has joined #angularjs
[03:52:26] *** Gooder has left #angularjs
[03:53:13] *** bayousoft has quit IRC
[03:53:16] *** seydoggy_ has joined #angularjs
[03:53:36] *** Gooder has joined #angularjs
[03:54:25] *** charuru has joined #angularjs
[03:55:09] *** caitp has quit IRC
[03:55:26] *** dbouwman has joined #angularjs
[03:55:29] *** Stephen has joined #angularjs
[03:55:32] *** mattwynne has quit IRC
[03:55:32] *** caitp has joined #angularjs
[03:55:37] *** ner0x has quit IRC
[03:55:51] *** seydoggy_ has quit IRC
[03:56:06] *** seydoggy has quit IRC
[03:56:07] *** gunn has joined #angularjs
[03:56:24] *** seydoggy has joined #angularjs
[03:56:33] *** DerekPerkins has quit IRC
[03:56:54] *** InezK is now known as InezK_away
[03:57:09] *** wxo has joined #angularjs
[03:57:42] *** boptop has quit IRC
[03:58:07] *** JoshGlzBrk has quit IRC
[03:58:20] *** arizzo has joined #angularjs
[03:59:37] *** JoshGlzBrk has joined #angularjs
[04:01:08] *** seydoggy has quit IRC
[04:01:36] *** rystraum has quit IRC
[04:01:54] *** podsiad has quit IRC
[04:02:04] *** wxo has quit IRC
[04:02:09] *** danielpquinn has joined #angularjs
[04:02:11] *** rystraum has joined #angularjs
[04:02:47] *** cobakobodob has quit IRC
[04:02:51] *** arizzo has quit IRC
[04:03:02] *** dawhite has quit IRC
[04:04:08] *** drej has joined #angularjs
[04:04:23] *** lanier has joined #angularjs
[04:04:31] *** kalehv has quit IRC
[04:05:26] *** kalehv has joined #angularjs
[04:05:55] *** shoelessone has quit IRC
[04:05:56] *** DerekPerkins has joined #angularjs
[04:06:53] *** rystraum has quit IRC
[04:06:54] *** danielpquinn has quit IRC
[04:07:23] *** kalehv_ has joined #angularjs
[04:09:21] *** stevvooe_ has joined #angularjs
[04:09:58] *** kalehv has quit IRC
[04:11:02] *** fedenunez has quit IRC
[04:11:42] *** dc_ has quit IRC
[04:12:06] *** AciD` has joined #angularjs
[04:12:20] *** stevvooe has quit IRC
[04:12:51] *** arizzo has joined #angularjs
[04:13:23] *** wxo has joined #angularjs
[04:13:25] *** gunn has quit IRC
[04:14:33] *** gunn has joined #angularjs
[04:14:45] *** aaronmitchell has joined #angularjs
[04:14:49] *** gunn has quit IRC
[04:16:08] *** Reskp has joined #angularjs
[04:17:04] *** xastey- has joined #angularjs
[04:17:11] *** patrickarlt has joined #angularjs
[04:17:26] *** arizzo has quit IRC
[04:17:36] *** gunn has joined #angularjs
[04:18:22] *** DerekPerkins has quit IRC
[04:18:35] *** rho has joined #angularjs
[04:18:55] *** bayousoft has joined #angularjs
[04:19:02] *** xastey has quit IRC
[04:19:21] *** gunn has quit IRC
[04:19:38] *** bpayne has joined #angularjs
[04:19:43] *** gnar_matix has quit IRC
[04:20:02] *** InezK_away is now known as InezK
[04:20:06] *** jkremser has quit IRC
[04:20:18] *** patrickarlt has quit IRC
[04:20:34] *** Reskp has quit IRC
[04:20:44] *** gnar_matix has joined #angularjs
[04:23:14] *** PLATOSCAVE has quit IRC
[04:23:39] *** bkuberek has joined #angularjs
[04:23:44] *** DerekPerkins has joined #angularjs
[04:24:22] *** cujojp has left #angularjs
[04:25:02] *** rystraum has joined #angularjs
[04:25:23] *** annlewis has quit IRC
[04:25:25] *** KernelCurry has joined #angularjs
[04:25:52] *** jonnybro has joined #angularjs
[04:26:23] *** ngoyal_ is now known as ngoyal
[04:26:41] *** rburns has joined #angularjs
[04:26:53] *** gordroid has quit IRC
[04:27:11] *** PLATOSCAVE has joined #angularjs
[04:27:52] *** bkuberek has quit IRC
[04:27:55] *** arizzo has joined #angularjs
[04:28:25] *** knownasilya has joined #angularjs
[04:29:17] *** gunn has joined #angularjs
[04:29:39] *** cobakobodob has joined #angularjs
[04:30:18] *** KernelCurry has quit IRC
[04:30:35] *** Siecje has quit IRC
[04:30:38] *** gunn has quit IRC
[04:31:08] *** frkout_ has joined #angularjs
[04:31:12] *** bpayne has quit IRC
[04:31:19] *** aaronmitchell has quit IRC
[04:31:37] *** Hackwar1 has joined #angularjs
[04:32:16] *** gunn has joined #angularjs
[04:32:23] *** DrMabuse has joined #angularjs
[04:32:24] *** arizzo has quit IRC
[04:32:24] *** Hackwar has quit IRC
[04:32:26] *** TyrfingMjolnir has quit IRC
[04:32:27] *** SahanH has joined #angularjs
[04:33:01] *** rho has quit IRC
[04:33:09] *** gunn has quit IRC
[04:33:26] *** rystraum has quit IRC
[04:33:56] *** caitp has quit IRC
[04:34:41] *** frkout has quit IRC
[04:36:06] *** davesidious has joined #angularjs
[04:36:36] *** PLATOSCAVE has quit IRC
[04:36:53] *** davesidious_ has quit IRC
[04:37:04] *** DrMabuse has quit IRC
[04:37:46] *** Nizumzen has quit IRC
[04:39:20] *** stevvooe_ has quit IRC
[04:39:53] *** stevvooe has joined #angularjs
[04:40:44] *** gunn has joined #angularjs
[04:40:57] *** kennbrodhagen has joined #angularjs
[04:41:04] *** bmac has joined #angularjs
[04:41:27] *** TorpedoSkyline has joined #angularjs
[04:41:50] *** mrogne_afk is now known as mrogne
[04:41:51] *** mrogne has joined #angularjs
[04:42:31] *** jkremser has joined #angularjs
[04:42:31] *** jkremser has joined #angularjs
[04:42:59] *** arizzo has joined #angularjs
[04:43:04] *** kalehv_ has quit IRC
[04:43:19] *** gunn has quit IRC
[04:43:26] *** kalehv has joined #angularjs
[04:43:33] *** PLATOSCAVE has joined #angularjs
[04:45:41] *** kennbrodhagen has quit IRC
[04:46:30] *** wilmoore has joined #angularjs
[04:47:18] *** arizzo has quit IRC
[04:47:48] *** jdj_dk has joined #angularjs
[04:47:52] *** scriptThis has quit IRC
[04:48:39] *** mmitchel_ has quit IRC
[04:49:11] *** gunn has joined #angularjs
[04:50:00] *** waylon999 has quit IRC
[04:51:31] *** heidi has joined #angularjs
[04:51:53] *** scriptThis has joined #angularjs
[04:52:09] *** jdj_dk has quit IRC
[04:52:48] *** PLATOSCAVE has quit IRC
[04:53:10] *** tfennelly has joined #angularjs
[04:53:35] *** scriptThis has quit IRC
[04:54:15] *** htowngangsta has quit IRC
[04:54:48] *** jonnybro has quit IRC
[04:56:16] *** annlewis has joined #angularjs
[04:57:32] *** InezK is now known as InezK_away
[04:57:34] *** tfennelly has quit IRC
[04:57:46] *** annlewis has quit IRC
[04:57:48] *** PLATOSCAVE has joined #angularjs
[04:58:02] *** annlewis has joined #angularjs
[04:58:53] *** gunn has quit IRC
[04:59:43] *** kroogs has joined #angularjs
[05:00:01] *** charuru has quit IRC
[05:00:25] *** ngoyal has quit IRC
[05:00:38] *** caitp has joined #angularjs
[05:01:00] *** heidi has quit IRC
[05:01:07] *** terrykfwong has joined #angularjs
[05:02:11] *** waylon999 has joined #angularjs
[05:02:47] *** annlewis has quit IRC
[05:02:49] *** jayrobot has joined #angularjs
[05:02:54] *** danielpquinn has joined #angularjs
[05:03:04] *** Vloz_ has quit IRC
[05:03:44] *** seydoggy has joined #angularjs
[05:03:50] *** MistahKurtz has quit IRC
[05:04:44] *** caitp has quit IRC
[05:04:54] *** kroogs has quit IRC
[05:06:28] *** pdillinger has joined #angularjs
[05:06:34] *** PLATOSCAVE has quit IRC
[05:06:57] *** dbouwman has quit IRC
[05:07:08] *** danielpquinn has quit IRC
[05:08:34] *** shabadoo has quit IRC
[05:08:55] *** bkuberek has joined #angularjs
[05:09:26] *** PLATOSCAVE has joined #angularjs
[05:09:45] *** xavia has left #angularjs
[05:10:46] *** pdillinger has quit IRC
[05:11:03] *** stevvooe has quit IRC
[05:11:33] *** nickp has joined #angularjs
[05:12:05] *** bayousoft has quit IRC
[05:12:18] *** isern has quit IRC
[05:12:36] *** shabadoo has joined #angularjs
[05:12:44] *** mtho11 has joined #angularjs
[05:12:56] *** TorpedoSkyline has quit IRC
[05:13:38] *** drej has quit IRC
[05:14:19] *** snurfery has joined #angularjs
[05:14:39] *** gnar_matix has quit IRC
[05:15:02] *** anjumkaiser has quit IRC
[05:15:15] *** mogaj has joined #angularjs
[05:15:34] *** bayousoft has joined #angularjs
[05:16:45] *** TyrfingMjolnir has joined #angularjs
[05:16:52] *** nemothekid has joined #angularjs
[05:17:08] *** Reskp has joined #angularjs
[05:17:18] *** anjumkaiser has joined #angularjs
[05:18:42] *** MTGap has quit IRC
[05:19:48] *** PLATOSCAVE has quit IRC
[05:21:36] *** Reskp has quit IRC
[05:22:19] *** gnar_matix has joined #angularjs
[05:23:32] *** Ethix has quit IRC
[05:24:19] *** dbouwman has joined #angularjs
[05:24:31] *** Milanito has joined #angularjs
[05:24:35] *** patrickc_ has joined #angularjs
[05:24:41] *** patrickarlt has joined #angularjs
[05:25:26] *** night-owl-MBP has joined #angularjs
[05:25:53] *** PLATOSCAVE has joined #angularjs
[05:26:12] *** KernelCurry has joined #angularjs
[05:26:12] *** bayousoft has quit IRC
[05:27:37] *** patrickarlt has quit IRC
[05:28:53] *** arizzo has joined #angularjs
[05:28:54] *** cthrax has joined #angularjs
[05:30:29] *** scriptThis has joined #angularjs
[05:30:33] *** KernelCurry has quit IRC
[05:31:26] *** darrin has quit IRC
[05:32:51] *** nodweber has joined #angularjs
[05:33:07] *** DrMabuse has joined #angularjs
[05:33:22] *** terrykfwong has quit IRC
[05:33:32] *** arizzo has quit IRC
[05:33:43] *** Yancy has quit IRC
[05:33:54] *** Yancy has joined #angularjs
[05:35:10] *** PLATOSCAVE has quit IRC
[05:35:44] *** wxo has quit IRC
[05:37:34] *** mdedetrich has quit IRC
[05:37:46] *** sneakertack has joined #angularjs
[05:37:48] *** acconrad has quit IRC
[05:38:12] <BobbieBarker> http://plnkr.co/edit/Zd7sMHyTbAI1Ipj1JIys?p=preview I am trying to get a textarea to work inside of a popover if you look at the UI and click on the second button over you'll see the popover show up
[05:38:15] <BobbieBarker> with the text area
[05:38:15] *** DrMabuse has quit IRC
[05:38:17] <BobbieBarker> but youc an't type in it
[05:38:21] <BobbieBarker> what to do?
[05:38:52] <BobbieBarker> is this even possible>?
[05:38:52] *** sneakertack has joined #angularjs
[05:38:56] *** gnar_matix has quit IRC
[05:39:03] *** sneakertack has quit IRC
[05:40:57] *** kalehv has quit IRC
[05:40:58] *** sneakertack has joined #angularjs
[05:41:20] *** rchavik has joined #angularjs
[05:41:52] *** PLATOSCAVE has joined #angularjs
[05:41:56] *** wilmoore has quit IRC
[05:41:57] *** sneakertack has joined #angularjs
[05:42:07] *** sneakertack has quit IRC
[05:42:42] *** sneakertack has joined #angularjs
[05:43:10] *** daryllxd has joined #angularjs
[05:43:32] *** wilmoore has joined #angularjs
[05:43:36] *** arizzo has joined #angularjs
[05:43:49] <chovy> BobbieBarker: why is it rendering as a table?
[05:43:59] <BobbieBarker> the popover?
[05:44:02] *** gauravsaini03 has joined #angularjs
[05:44:34] *** altious has joined #angularjs
[05:44:41] *** jaitaiwan has joined #angularjs
[05:45:39] *** styles has joined #angularjs
[05:45:47] <chovy> the textarea
[05:46:13] <chovy> but besides that you are trying to do absolute positioning in a TD -- that doesn't work well.
[05:46:20] <chovy> TD does not behave like DIV.
[05:46:32] *** wilmoore- has joined #angularjs
[05:46:36] *** nickp has quit IRC
[05:46:38] <BobbieBarker> this is just a shit plunk i don't care about the CSS. the text area is there
[05:46:41] <BobbieBarker> are you clicking on the right button?
[05:46:45] <BobbieBarker> the pop over shows up
[05:46:51] <BobbieBarker> you can't write anything in the text area though
[05:46:52] <chovy> yeah
[05:46:56] <chovy> right.
[05:47:08] <chovy> its your absolutely positioned popup. don't do it in TD.
[05:47:21] <BobbieBarker> seriously thats what is killing this?
[05:47:41] <chovy> i've seen weird shit with tables and absolute positioning. That's my guess. Everything else looks fine.
[05:47:43] <BobbieBarker> cuz i set a min and max values on the text area?
[05:47:54] <BobbieBarker> you're kind of blowing my mind right now
[05:47:57] *** arizzo has quit IRC
[05:48:01] <chovy> no you have <td><div style="position: absolute">
[05:48:07] *** wilmoore has quit IRC
[05:48:12] <chovy> don't do that
[05:48:28] <chovy> try <td><div><div style="postiion: absolute">
[05:48:36] *** josh-k has quit IRC
[05:48:52] *** patrickc_ has quit IRC
[05:48:56] *** joshontheweb has joined #angularjs
[05:49:05] *** josh-k has joined #angularjs
[05:49:09] <BobbieBarker> hey not to look like a dunce but what file are you seeing that in?
[05:49:30] *** altious has quit IRC
[05:49:40] *** DerekPerkins has quit IRC
[05:50:11] *** nytrm has joined #angularjs
[05:50:13] <BobbieBarker> chovy i don't see the absolute posistioning dude
[05:50:24] *** seydoggy has quit IRC
[05:50:32] *** speakingcode has quit IRC
[05:50:35] <chovy> your popup is not absolutely poisition?
[05:50:58] *** seydoggy has joined #angularjs
[05:51:00] *** MistahKurtz has joined #angularjs
[05:51:35] *** steffengy has joined #angularjs
[05:51:37] <BobbieBarker> not that i can see
[05:51:44] <BobbieBarker> i hate this plunk shit
[05:52:15] *** PeteCampbell has quit IRC
[05:52:19] *** speakingcode has joined #angularjs
[05:52:24] <mogaj> ng-grid not showing data ... getting data from server but it is not showing up in ng-grid .. pls can someone help? Getting blank ng-grid the code i wrote is http://pastebin.com/jt9dDd5S
[05:52:30] *** aviraldg has joined #angularjs
[05:52:39] <BobbieBarker> i don't have any inline css like you're suggesting
[05:52:45] *** altious has joined #angularjs
[05:53:05] *** dman777 has quit IRC
[05:53:07] <BobbieBarker> unless you're refering to the css on the TDs
[05:53:08] *** dancek has quit IRC
[05:53:33] *** josh-k has quit IRC
[05:53:56] *** wilmoore- has quit IRC
[05:54:27] *** steffengy1 has quit IRC
[05:54:43] *** nytrm has quit IRC
[05:55:02] *** seydoggy has quit IRC
[05:56:36] *** annlewis has joined #angularjs
[05:57:53] *** Mouzi has joined #angularjs
[05:58:18] *** anotherwise has joined #angularjs
[05:58:33] *** wilmoore has joined #angularjs
[05:59:12] *** cpciv1 has joined #angularjs
[05:59:19] *** cpciv has quit IRC
[05:59:29] *** hychen has joined #angularjs
[05:59:51] *** MistahKurtz has quit IRC
[06:00:27] *** bmac has quit IRC
[06:00:37] *** kroogs has joined #angularjs
[06:01:02] *** harvey203 has joined #angularjs
[06:01:02] *** altmind has joined #angularjs
[06:01:02] *** daryllxd has quit IRC
[06:01:07] *** caitp has joined #angularjs
[06:01:08] *** annlewis has quit IRC
[06:01:09] *** daryllxd has joined #angularjs
[06:01:10] <BobbieBarker> ya i don't see what you where talking about with absolute posistioning chovy, but thanks for taking a look dude
[06:01:18] *** Milanito has quit IRC
[06:01:44] *** tyfighter has joined #angularjs
[06:01:50] *** altious has quit IRC
[06:02:13] <mogaj> getting blank ng-grid http://pastebin.com/jt9dDd5S please assist me
[06:02:24] *** altmind has quit IRC
[06:03:40] *** SahanH has quit IRC
[06:03:40] *** danielpquinn has joined #angularjs
[06:05:16] *** kroogs has quit IRC
[06:05:21] *** harvey203 has quit IRC
[06:05:31] *** mdedetrich has joined #angularjs
[06:05:32] *** caitp has quit IRC
[06:05:46] *** ishara has joined #angularjs
[06:06:13] *** dancek has joined #angularjs
[06:08:22] *** danielpquinn has quit IRC
[06:08:25] *** TyrfingMjolnir_ has joined #angularjs
[06:08:32] *** TyrfingMjolnir has quit IRC
[06:08:32] *** TyrfingMjolnir_ is now known as TyrfingMjolnir
[06:08:51] <anotherwise> Hi everyone. Opinions please: should I place current user information in $rootScope? What do YOU put in $rootScope?
[06:09:19] <BobbieBarker> no you shouldn't proably be using rootscope at all
[06:09:22] <mdedetrich> anotherwise: you really shouldn't be putting anything in rootscope
[06:09:41] *** LuxuryMode has quit IRC
[06:09:43] <mdedetrich> anotherwise: using a service is probably the best place to deal with stuff like holding the currently logged in user info
[06:09:59] <BobbieBarker> that is probably correct
[06:10:00] *** SahanH has joined #angularjs
[06:10:22] *** wallerdev has joined #angularjs
[06:10:23] *** enxtur has joined #angularjs
[06:10:24] <BobbieBarker> depending on what you want to do with it
[06:10:41] <BobbieBarker> if you want the current user info to be persistent through out the site then a service is probably a great place for it
[06:11:48] *** wallerdev has quit IRC
[06:11:50] *** z00py has joined #angularjs
[06:12:09] *** TorchDragon has joined #angularjs
[06:12:59] <BobbieBarker> anyone have any examples or any insight on how to get a form/text area to work in a popover directive
[06:13:03] *** ibk has joined #angularjs
[06:13:05] <BobbieBarker> specifically angular strap pop over
[06:13:08] <ajk27> mogaj: See if you have better luck with something like this: http://pastebin.com/E1Wyb7Xf
[06:13:10] *** arizzo has joined #angularjs
[06:13:10] <mdedetrich> yup, BobbieBarker is right, it does depend on what you want to do with a "user", but if you have a typical website where a single person logs in at a time, a service is probably the best place to put it
[06:13:19] *** harvey203 has joined #angularjs
[06:13:36] <BobbieBarker> i have a plunk if anyone is curious
[06:13:47] *** cpciv1 has quit IRC
[06:13:54] <anotherwise> Thanks mdedetrich :) But I dislike long function definitions, and creating a service and using it will add another dependency in long lists of dependencies. Won't using $rootScope be cleaner, lexically and logically?
[06:14:09] <BobbieBarker> fuck no
[06:14:17] <anotherwise> Why?
[06:14:35] <BobbieBarker> think of your rootscope as a nuclear reactor that you shouldn't be touching
[06:14:39] *** cpciv has joined #angularjs
[06:15:05] <BobbieBarker> also if you have WAAAy too many dependencies you're probably doing something wrong especially if you "ran out of room" before you got to something important like handling the users session
[06:16:13] *** z00py has quit IRC
[06:16:30] <BobbieBarker> fuck these god damn pop over directives
[06:16:33] *** TorchDragon has quit IRC
[06:17:24] *** arizzo has quit IRC
[06:17:32] *** lanier has quit IRC
[06:17:57] *** Reskp has joined #angularjs
[06:19:45] *** Reskp_ has joined #angularjs
[06:20:05] *** stirlingw has quit IRC
[06:20:20] *** wilmoore has quit IRC
[06:21:14] <monokrome> BobbieBarker: Do you think that it's an anti-pattern to broadcast events from $rootScope?
[06:21:29] <monokrome> Sorry, emit
[06:21:44] <monokrome> I rarely use events, so get them mixed up
[06:21:46] <BobbieBarker> i don't know about anti-patterns but i think it has the potential to melt your shit
[06:21:49] <BobbieBarker> np dude
[06:22:02] <BobbieBarker> i think it's bad form/practice
[06:22:03] <monokrome> Not sure what the alternative is
[06:22:06] <BobbieBarker> it's like using global variables
[06:22:10] <monokrome> Watch service data for changes from a controller and emit?
[06:22:14] *** Reskp has quit IRC
[06:22:17] *** tfennelly has joined #angularjs
[06:22:26] *** rchavik has quit IRC
[06:22:26] <BobbieBarker> maybe
[06:22:28] *** braoru has joined #angularjs
[06:22:47] *** jamto11 has joined #angularjs
[06:22:55] <monokrome> If it's in a controller then you don't have to emit anyway I would think
[06:22:58] <BobbieBarker> but you're talking to a guy that can't get a fucking text area to work in a pop over right now so what do i know?
[06:22:58] <snurfery> there are better ways to handle most situations than emit
[06:23:16] <monokrome> What about cases like ui-router which inject $rootScope so that they can emit routing events?
[06:23:34] *** wilmoore has joined #angularjs
[06:23:42] *** k-dawg has joined #angularjs
[06:23:43] *** arizzo has joined #angularjs
[06:23:58] <BobbieBarker> i make exceptions for bad ass tools like uirouter
[06:24:08] <monokrome> O_o
[06:24:13] *** waylon999 has quit IRC
[06:24:14] <BobbieBarker> lol
[06:24:20] <monokrome> Well, what about ngRouter then? :D
[06:24:24] *** Reskp_ has quit IRC
[06:24:28] *** waylon999 has joined #angularjs
[06:24:29] <BobbieBarker> don't use it
[06:24:36] <BobbieBarker> it's not bad ass enough
[06:24:58] <monokrome> That's the point!
[06:25:10] <monokrome> It's events seem reasonable, and they come from $rootScope iirc
[06:25:18] *** braoru has quit IRC
[06:26:15] <BobbieBarker> anyone care to look at my plunk, click on the 2nd file glyph over and explain to me why i can't write anything into that text area
[06:26:19] *** the_drow has quit IRC
[06:26:30] * monokrome looks for a link
[06:27:00] *** KernelCurry has joined #angularjs
[06:27:12] *** tfennelly has quit IRC
[06:27:13] <BobbieBarker> http://plnkr.co/edit/Zd7sMHyTbAI1Ipj1JIys?p=preview
[06:27:26] <BobbieBarker> sorry i had a brain fart i'm trying to find some thing i can read up on to solve my problem
[06:27:39] *** jamto11 has quit IRC
[06:27:46] <monokrome> What's the problem?
[06:28:02] <BobbieBarker> pop over pops up, but you can't write anything in the text area
[06:28:07] *** arizzo has quit IRC
[06:28:21] <monokrome> which text area?
[06:28:35] <BobbieBarker> see the file glyphs
[06:28:41] <BobbieBarker> click one on the right
[06:28:45] *** dbouwman has quit IRC
[06:28:53] <BobbieBarker> should make a pop over appear with a text area in it
[06:29:16] <monokrome> http://cl.ly/image/0V1U0o2c4527
[06:29:20] <monokrome> That's what I see
[06:29:36] <BobbieBarker> well that is not a winner my friend
[06:29:50] <BobbieBarker> http://plnkr.co/edit/Zd7sMHyTbAI1Ipj1JIys?p=preview
[06:29:53] <BobbieBarker> try reloading?
[06:29:55] <BobbieBarker> something went wrong
[06:30:01] <BobbieBarker> i can atleast assure you the buttons are there
[06:30:02] <BobbieBarker> lol
[06:30:07] <snurfery> BobbieBarker: why do you have ng-bind-html there?
[06:30:20] <snurfery> won't that effectively make it readonly?
[06:30:21] <BobbieBarker> was messing around
[06:30:28] <BobbieBarker> i didn't think so?
[06:30:47] <snurfery> it's trying to enforce that the contents need to be that
[06:30:49] <monokrome> BobbieBarker: tried new link, same thing
[06:30:52] <snurfery> so I think that's what's messing it up
[06:30:58] <BobbieBarker> i removed the ng-bind and i still can't write in the text area
[06:30:58] <mogaj> ajk27, thankyou it worked but grid is not showing data but the grid is like this http://picpaste.com/Screenshot_from_2014-07-04_09_59_36-i2nBCuSk.png
[06:31:03] <BobbieBarker> negative snurf
[06:31:39] <BobbieBarker> also i have a placeholder message in there and if you look in dev tools you can see that when it grabs the template it has the place holder in it
[06:31:47] <BobbieBarker> but the placeholder message never appears in the view
[06:31:52] *** KernelCurry has quit IRC
[06:32:17] <snurfery> what template am I looking at here
[06:32:21] <snurfery> timetracker.notes.html?
[06:32:26] <BobbieBarker> yeah
[06:33:07] *** emps has joined #angularjs
[06:33:37] *** alpha080 has joined #angularjs
[06:33:44] <BobbieBarker> @monokrome the interwebz have been broke today thats why i'm fooling around on the plunk and not working in my dev enviroment
[06:33:51] <BobbieBarker> and its probably why you can't look at that plunk
[06:33:53] *** DrMabuse has joined #angularjs
[06:34:44] <snurfery> I think there's something wrong with whatever JS is making the textarea resizeable
[06:35:15] <BobbieBarker> turn the resize property off in css?
[06:35:32] <snurfery> maybe
[06:35:52] <BobbieBarker> no dice
[06:35:53] *** joshontheweb has quit IRC
[06:35:56] <BobbieBarker> still broke
[06:37:06] *** nemothekid has quit IRC
[06:37:52] <monokrome> wat
[06:38:05] <monokrome> Does anyone know what the tool Google made to convert ES6 into ES5 is called
[06:38:11] *** pdillinger has joined #angularjs
[06:38:16] <monokrome> It's got a hard-to-remember name, but I'd like to try it tonight
[06:38:23] *** arizzo has joined #angularjs
[06:38:32] <snurfery> BobbieBarker: is it legit to have a block element inside of an inline element?
[06:38:33] *** DrMabuse has quit IRC
[06:38:38] <snurfery> <span> <div>
[06:38:54] *** ascarter has joined #angularjs
[06:38:59] *** ascarter has quit IRC
[06:39:00] <BobbieBarker> uh that is a legit question
[06:39:02] <BobbieBarker> i dunno
[06:39:10] <BobbieBarker> maybe change that span to a div?
[06:39:29] *** ascarter has joined #angularjs
[06:39:36] * snurfery nods
[06:39:40] <BobbieBarker> done
[06:39:42] <BobbieBarker> no affect
[06:39:56] *** tk has joined #angularjs
[06:40:04] *** ascarter has joined #angularjs
[06:40:49] <snurfery> hmm I'm stumped
[06:41:47] <BobbieBarker> me too i don't even know if this is doable i just thought it would be bad ass
[06:41:50] *** kennbrodhagen has joined #angularjs
[06:42:40] *** BahamutWC|Laptop has joined #angularjs
[06:43:02] *** arizzo has quit IRC
[06:43:56] *** dancek has quit IRC
[06:44:23] <ajk27> mogaj: Sorry not sure what's going on there, not sure if it has to do with what's coming back from the $http call or something else
[06:44:29] *** joshontheweb has joined #angularjs
[06:44:44] <BobbieBarker> thanks for taking a look snurfery
[06:44:55] <snurfery> np
[06:45:11] <BobbieBarker> i do have a use case where i need to basically achieve something identical to this
[06:45:21] <ajk27> mogaj: Do you have a more complete example (plunk, jsfiddle, etc)? Might be worth temporarily setting your $scope.assetsList to a static array, just until you get the grid piece worked out.
[06:45:24] <BobbieBarker> where a user can click on that glyph and save a note
[06:45:28] <BobbieBarker> any ideas on how to do that?
[06:46:00] <snurfery> I think that what you did should work, I don't see any reason why not!
[06:46:11] *** encryptd_fractl has joined #angularjs
[06:46:15] <BobbieBarker> well that makes me feel bettter that i'm not doing anything blatantly retarded
[06:46:18] *** dancek has joined #angularjs
[06:46:23] <BobbieBarker> but at the same time i wish it would fucking work
[06:46:34] *** kennbrodhagen has quit IRC
[06:46:59] <mogaj> ajk27, this is the format of dat i am getting from server http://pastebin.com/TZWUtc9m
[06:47:32] <snurfery> so I noticed your popup logic was all just using classes
[06:47:35] <snurfery> err
[06:47:52] <morenoh149> can I add a function inside a controller? like function foo {}
[06:47:53] <snurfery> you were displaying it with ng-show but other than that it's just bootstrap classes
[06:47:54] *** dc_ has joined #angularjs
[06:48:19] <BobbieBarker> thats basically what angular strap has in their doc/demo thing
[06:48:25] <snurfery> weren't you using angularstrap?
[06:48:25] <snurfery> oh
[06:48:26] *** sharad has joined #angularjs
[06:48:32] <BobbieBarker> ya i'm using angularstrap
[06:48:34] <snurfery> I would've thought there'd be a directive
[06:48:53] <BobbieBarker> home.html line 128 bs-popover is the diretive
[06:49:17] *** arkanciscan_ has joined #angularjs
[06:49:33] <sharad> hi guys => i am doing this and its not working ($scope.Drop.passenger[0]==null)
[06:50:01] <BobbieBarker> snurfery if you're curious this is the demo code for the popover template from the angular strap project
[06:50:02] <BobbieBarker> https://github.com/mgcrea/angular-strap/blob/master/src/popover/docs/popover.tpl.demo.html
[06:50:06] <BobbieBarker> i pretty much copy pasta'd it
[06:50:12] *** encryptd_fractl has quit IRC
[06:50:20] *** wilmoore has quit IRC
[06:50:21] <sharad> is any another way to check to null value in string using $scope
[06:50:22] * snurfery nods
[06:50:24] *** cthrax has quit IRC
[06:50:38] *** encryptd_fractl has joined #angularjs
[06:50:44] <BobbieBarker> i've never used this angular strap directive before and certainly never tried to stick form elements in it
[06:50:46] <BobbieBarker> either
[06:51:02] <sharad> how to validate partial form field on ng-click
[06:51:05] <snurfery> sharad: use three = signs
[06:51:12] <snurfery> === null
[06:51:15] <BobbieBarker> ^^^ what snurf says
[06:52:13] *** anotherwise has quit IRC
[06:52:24] <sharad> snurfery: its not working
[06:52:26] *** nemothekid has joined #angularjs
[06:52:33] <mogaj> ajk27, even with static array http://pastebin.com/5MA6gagH i am getting this http://picpaste.com/Screenshot_from_2014-07-04_10_21_10-ETfKNbZC.png
[06:53:05] *** mattwynne has joined #angularjs
[06:53:29] <sharad> snurfery : actually i am validating my form but partially only for valid mail rest data is optional
[06:53:31] *** AviMarcus has joined #angularjs
[06:53:38] *** josh-k has joined #angularjs
[06:53:40] <snurfery> it's probably the code surrounding it that's not working ;)
[06:53:59] <BobbieBarker> angular has built in email validation just use that
[06:54:00] <sharad> and i found lots of example to validate form using $dirty,#valid
[06:54:04] *** joshontheweb has quit IRC
[06:54:05] <BobbieBarker> declare the input type to be email
[06:54:51] <mogaj> ajk27, i am using alternate syntax%% %% is this causing problem?
[06:54:56] *** dc_ has quit IRC
[06:56:42] *** annlewis has joined #angularjs
[06:57:27] *** mattwynne has quit IRC
[06:57:49] <sharad> BobbieBarker : i mentioned email but on ng-click i called a function say Droprequest() ,form get submitted on this function
[06:57:55] *** ngoyal has joined #angularjs
[06:58:11] <BobbieBarker> yeah but what i'm saying is that angularjs has baked in validation for email
[06:58:16] <BobbieBarker> so you con't really need to do anything fancy
[06:58:21] *** arkanciscan_ has quit IRC
[06:58:23] *** frkout_ has quit IRC
[06:58:25] <BobbieBarker> cept tap into what angular is giving you
[06:59:00] *** frkout has joined #angularjs
[06:59:03] <BobbieBarker> unless i'm missing the point
[06:59:57] <monokrome> angula validates emails?...
[07:00:05] <BobbieBarker> doesn't it? am i imagining this shit?
[07:00:09] *** encryptd_fractl has quit IRC
[07:00:52] *** kroogs has joined #angularjs
[07:01:08] *** annlewis has quit IRC
[07:01:47] *** encryptd_fractl has joined #angularjs
[07:01:53] *** caitp has joined #angularjs
[07:01:53] <BobbieBarker> http://laravel.io/bin/XD5KB
[07:02:31] <BobbieBarker> i knew i wasn't making it up, thats old code from an old project of mine
[07:02:46] *** ngoyal has quit IRC
[07:03:08] <BobbieBarker> i believe if you don't like angulars regex evaluations for email you can use a custom one
[07:03:13] <BobbieBarker> with out having to do anything nutty/hard
[07:03:43] *** wilmoore has joined #angularjs
[07:04:22] *** PLATOSCAVE has quit IRC
[07:04:26] *** danielpquinn has joined #angularjs
[07:05:28] *** kroogs has quit IRC
[07:05:33] *** snurfery has quit IRC
[07:06:20] *** caitp has quit IRC
[07:08:12] *** umib0zu has joined #angularjs
[07:08:51] *** arizzo has joined #angularjs
[07:09:03] *** ascarter has quit IRC
[07:09:14] *** danielpquinn has quit IRC
[07:10:03] *** secondjeff has joined #angularjs
[07:10:12] *** Evankhell has joined #angularjs
[07:11:10] <mogaj> ajk27, i found the problem i am using alternate start and tags in angularjs i.e %% and %% but in ng-grid {{ and }} is being used it is causing the problem how can i rectify it i.e how to make ng-grid use alternate start and end tags?
[07:11:33] <BobbieBarker> use ng-bind instead of {{}}
[07:11:34] <BobbieBarker> ?
[07:12:09] *** DerekPerkins has joined #angularjs
[07:12:11] <mogaj> BobbieBarker, its ng-grid generated code
[07:12:29] <BobbieBarker> oh i thought you where working in the html with ng-grid sorry
[07:13:08] *** PLATOSCAVE has joined #angularjs
[07:13:16] <mogaj> BobbieBarker, how can i make ng-grid generate code with alternate tags?
[07:13:24] *** arizzo has quit IRC
[07:13:30] <BobbieBarker> i have no idea dude i misunderstood you and tbh i don't use ng-grid
[07:14:17] <mogaj> BobbieBarker, ok ,thanku
[07:14:27] <BobbieBarker> np sorry i couldn't be of more help
[07:15:48] *** nodweber has quit IRC
[07:17:03] *** secondjeff has quit IRC
[07:17:46] *** sethen has quit IRC
[07:17:59] *** nibster has joined #angularjs
[07:18:38] *** armdale has quit IRC
[07:19:50] *** artgon has quit IRC
[07:20:03] *** Ericx2x has joined #angularjs
[07:20:20] *** Gambit- has joined #angularjs
[07:20:25] *** Reskp has joined #angularjs
[07:20:34] *** umib0zu has quit IRC
[07:22:08] <willmarshall> I've got to a point with a few pages where I'm chaining together multiple filters, potentially slow stuff
[07:22:24] *** tfennelly has joined #angularjs
[07:22:40] <willmarshall> In particular, filters further down the chain will change their behavior based on the results of filters further up: e.g. the possible set of options is reduced as the result set is reduced
[07:23:13] <BobbieBarker> Filters are generaly fast if yours are slow you probably wrote code with a poor computational complexity
[07:23:24] *** PLATOSCAVE has quit IRC
[07:23:33] <BobbieBarker> how many filters are you chaining?
[07:23:52] *** arizzo has joined #angularjs
[07:23:54] <willmarshall> 4 at the moment. Performance per-se isn't the problem
[07:23:54] <BobbieBarker> i frequently chain 2-3 filters and don't notice any performance drop
[07:23:58] <willmarshall> The issue is
[07:24:03] <willmarshall> First filter is a free text filter
[07:24:11] <BobbieBarker> free text?
[07:24:22] <willmarshall> Soft matching against object.name and object.description
[07:24:28] <BobbieBarker> oh
[07:24:51] <willmarshall> The second filter restricts by object.taxons (array of objects with IDs)
[07:25:03] *** illume has joined #angularjs
[07:25:04] *** Reskp has quit IRC
[07:25:13] <willmarshall> But there's some logic: my UI only displays taxons that are present on objects returned from the first filter
[07:25:41] <BobbieBarker> why not just have 1 filter
[07:25:55] <willmarshall> I could write a meta-filter ... hmmm
[07:26:16] *** thomastuts has joined #angularjs
[07:26:23] <BobbieBarker> and make sure you're using lodash
[07:26:45] <willmarshall> Then I could cache the result of the first step so the UI can rebuild the options in a handy declarative way
[07:26:53] <BobbieBarker> keep your filters well oiled
[07:27:18] <BobbieBarker> ya i'm not going to pretend like i totally understand everything you're doing, but it sounds like you where letting your filters get too complicated
[07:27:22] *** tfennelly has quit IRC
[07:27:25] <BobbieBarker> by doing weird shit
[07:27:33] <BobbieBarker> just have 1 filter imo
[07:27:44] <willmarshall> It's just good UX stuff
[07:27:49] *** nodweber has joined #angularjs
[07:27:54] <BobbieBarker> screw the user
[07:27:59] <BobbieBarker> no one likes those people anyways
[07:28:02] <willmarshall> Haha no
[07:28:12] <willmarshall> I can make a filter that calls my other filters internally no problem
[07:28:24] <BobbieBarker> thats an option too
[07:28:30] *** arizzo has quit IRC
[07:29:19] *** arizzo has joined #angularjs
[07:29:46] *** Ericx2x has quit IRC
[07:29:46] *** tk has quit IRC
[07:30:16] *** chakkimatti has joined #angularjs
[07:30:23] *** aljohri has joined #angularjs
[07:30:43] *** JoshGlzBrk has quit IRC
[07:31:08] <willmarshall> Or
[07:31:13] <willmarshall> I can do ng-repeat on a simple array
[07:31:22] <willmarshall> And use callbacks/events to trigger each step of the filter chain
[07:31:45] <willmarshall> So I only have to run the section of the filter chain that's downstream from the change
[07:32:09] <willmarshall> See The second filter restricts the data to things
[07:32:15] <willmarshall> See: http://tech.small-improvements.com/2013/09/10/angularjs-performance-with-large-lists/
[07:32:16] *** PLATOSCAVE has joined #angularjs
[07:32:46] <mogaj> Any inputs please https://github.com/angular-ui/ng-grid/issues/1282
[07:32:55] *** sigurding has joined #angularjs
[07:33:16] *** illume has quit IRC
[07:33:23] *** matiasow has quit IRC
[07:33:41] *** chakkimatti has quit IRC
[07:33:45] *** ppppaul has joined #angularjs
[07:33:54] *** arizzo has quit IRC
[07:34:37] *** DrMabuse has joined #angularjs
[07:35:13] *** cctom has joined #angularjs
[07:36:02] *** the-erm has quit IRC
[07:36:20] *** rystraum has joined #angularjs
[07:37:00] *** josh-k has quit IRC
[07:37:55] *** JoshGlzBrk has joined #angularjs
[07:38:57] *** ETBlue has quit IRC
[07:39:18] *** DrMabuse has quit IRC
[07:41:19] *** partikus has joined #angularjs
[07:41:24] *** PLATOSCAVE has quit IRC
[07:42:33] *** jdj_dk_ has joined #angularjs
[07:42:52] *** tomzx is now known as tomzx`afk
[07:44:11] *** arizzo has joined #angularjs
[07:44:49] *** artgon has joined #angularjs
[07:46:16] *** waylon999 has quit IRC
[07:47:04] *** scmx has joined #angularjs
[07:47:10] *** jdj_dk_ has quit IRC
[07:48:05] *** alt_qq has joined #angularjs
[07:48:38] *** arizzo has quit IRC
[07:49:18] *** Ymesio has quit IRC
[07:50:11] *** asbfd has joined #angularjs
[07:50:26] <asbfd> eqwewq
[07:51:02] *** artgon has quit IRC
[07:51:28] *** waylon999 has joined #angularjs
[07:51:52] *** seydoggy has joined #angularjs
[07:53:33] *** hecatonicosachor is now known as sacho
[07:54:08] *** Milanito has joined #angularjs
[07:55:02] *** scmx has quit IRC
[07:55:09] <Cixis> weird that that article doesn't mention "track by" but has an example of it in one spot
[07:55:23] *** cctom has quit IRC
[07:55:29] <Cixis> pretty glad it didn't start off with something like "use react instead!"
[07:56:01] *** bweston has joined #angularjs
[07:56:17] <ibk> hi, any recommendation for super simple angularjs seed/boilerplate? as simple as possible. i don't need bower and nodejs
[07:56:24] *** seydoggy has quit IRC
[07:56:42] *** annlewis has joined #angularjs
[07:57:02]
[07:57:04] *** jaitaiwan has quit IRC
[07:57:06] <sacho> advice in 2013
[07:57:14] <sacho> "be sure to use a function that's been deprecated for several years"
[07:57:15] *** nodweber has quit IRC
[07:57:43] *** discipolo has quit IRC
[07:57:55] *** mikehaas763 has joined #angularjs
[07:58:03] <sacho> ibk, well, what do you need in this seed?
[07:58:13] <sacho> angular doesn't have very much boilerplate at all
[07:58:56] *** arizzo has joined #angularjs
[07:58:58] *** JoshGlzBrk has quit IRC
[07:59:16] *** InezK_away is now known as InezK
[07:59:19] <Cixis> ibk: grab html5 boilerplate. add angularjs. done
[07:59:47] *** dbouwman has joined #angularjs
[07:59:52] *** tendencydriven has quit IRC
[08:00:00] *** mchapman has quit IRC
[08:00:44] *** annlewis has quit IRC
[08:00:52] *** nodweber_ has joined #angularjs
[08:01:55] *** waylon999 has quit IRC
[08:02:40] *** caitp has joined #angularjs
[08:04:14] *** dbouwman has quit IRC
[08:04:44] *** TheAceOfHearts has joined #angularjs
[08:05:29] *** danielpquinn has joined #angularjs
[08:06:27] *** waylon999 has joined #angularjs
[08:06:44] *** caitp has quit IRC
[08:07:02] *** hessi has joined #angularjs
[08:07:14] *** snurfery has joined #angularjs
[08:08:33] *** roymiloh has joined #angularjs
[08:08:33] *** DerekPerkins has quit IRC
[08:08:57] <snurfery> oh snap, 1.2.19 came out
[08:08:58] <snurfery> nice.
[08:09:02] <sharad> thanks
[08:09:08] <sharad> thanks:)
[08:09:58] *** danielpquinn has quit IRC
[08:10:34] *** Click66 has joined #angularjs
[08:10:37] *** BobbieBarker has quit IRC
[08:10:52] <ibk> Cixis : thanks.
[08:11:04] *** mogaj has quit IRC
[08:12:12] *** cctom has joined #angularjs
[08:13:36] *** TorchDragon has joined #angularjs
[08:13:37] *** encryptd_fractl has quit IRC
[08:14:14] <hessi> hi, I have one question where I didn't find a 'satisfying' answer on the interwebs, I need to pass routeparams which might contain slashes (read: an URL) to have e.g. a route like this: #/url/www.example.com where 'www.example.com' should be the parameter
[08:15:12] *** pdillinger has quit IRC
[08:15:30] <hessi> I tried URL encoding it, didn't work, I found this: http://stackoverflow.com/questions/16256615/pass-url-to-as-routeparam-in-angularjs-app which cloaks the URL - but I'd like to have a 'clean' URL where the parameter is readable. Are you aware of another approach how to handle this?
[08:15:59] *** partikus has quit IRC
[08:16:58] *** waylon999 has quit IRC
[08:17:00] *** foofoobar has joined #angularjs
[08:17:15] *** Asiajey has joined #angularjs
[08:17:39] *** asbfd has quit IRC
[08:17:55] *** balboah has joined #angularjs
[08:18:04] *** TorchDragon has quit IRC
[08:18:06] *** TheAceOfHearts has quit IRC
[08:20:08] *** nodweber_ has quit IRC
[08:21:19] *** Reskp has joined #angularjs
[08:22:13] *** balboah has quit IRC
[08:22:49] *** dc_ has joined #angularjs
[08:23:29] *** jamto11 has joined #angularjs
[08:23:33] *** arizzo has quit IRC
[08:24:42] *** sdouglas has joined #angularjs
[08:25:31] *** waylon999 has joined #angularjs
[08:25:34] *** Reskp has quit IRC
[08:25:54] *** ekmartin has joined #angularjs
[08:26:14] *** svycka has joined #angularjs
[08:27:39] *** joshontheweb has joined #angularjs
[08:27:53] *** jamto11 has quit IRC
[08:27:56] *** sdouglas_ has joined #angularjs
[08:29:02] *** nodweber has joined #angularjs
[08:29:27] <sacho> why didn't url encoding it work?
[08:29:54] *** caitp has joined #angularjs
[08:29:56] *** waylon999 has quit IRC
[08:30:04] <hessi> don't know, the route still didn't match, I assume angular is resolving this somehow
[08:30:36] <hessi> in the stackoverflow article mentioned it was also mentioned that it didn't work
[08:30:54] *** mdedetrich has quit IRC
[08:31:07] *** mikehaas763 has quit IRC
[08:31:14] *** luuse has joined #angularjs
[08:31:41] *** alt_qq has quit IRC
[08:32:06] *** stodan has joined #angularjs
[08:32:10] *** sdouglas has quit IRC
[08:32:28] <hessi> Ah, I think I found something, guess where: documentation :)
[08:32:59] <hessi> https://docs.angularjs.org/api/ngRoute/provider/$routeProvider it states that "path can contain named groups starting with a colon and ending with a star: e.g.:name*. All characters are eagerly stored in $routeParams under the given name when the route matches."
[08:33:04] <ekmartin> no one noticed that the plnkr template in the topic has an error?
[08:33:06] *** waylon999 has joined #angularjs
[08:33:16] <ekmartin> "data-semver", semver.. :P
[08:33:56] <sacho> uh..yes?
[08:34:01] *** LuxuryMode has joined #angularjs
[08:34:05] *** arizzo has joined #angularjs
[08:34:14] <ekmartin> nevermind :D
[08:34:56] <sacho> ok
[08:35:21] *** DrMabuse has joined #angularjs
[08:35:43] *** thomastuts has quit IRC
[08:36:04] *** zwacky has joined #angularjs
[08:36:31] *** sharad has quit IRC
[08:36:47] *** jaitaiwan has joined #angularjs
[08:36:52] *** cctom has joined #angularjs
[08:37:54] *** jaitaiwan has quit IRC
[08:38:03] <ekmartin> choosing the newest version doesn't bump up the data-require field though, but still works so np. Just too early in the morning :D
[08:38:11] *** waylon999 has quit IRC
[08:38:27] *** arizzo has quit IRC
[08:38:29] *** atomical has quit IRC
[08:38:39] *** m1hael has joined #angularjs
[08:39:12] *** HelperW has joined #angularjs
[08:39:49] *** Milanito has quit IRC
[08:39:56] *** wilmoore has quit IRC
[08:40:01] *** mdedetrich has joined #angularjs
[08:40:03] *** DrMabuse has quit IRC
[08:40:12] *** blueadept has quit IRC
[08:41:22] *** bkuberek has quit IRC
[08:42:42] *** kennbrodhagen has joined #angularjs
[08:42:44] *** aljohri has left #angularjs
[08:42:44] *** bkuberek has joined #angularjs
[08:43:22] *** waylon999 has joined #angularjs
[08:44:20] *** encryptd_fractl has joined #angularjs
[08:45:38] *** jshultz has quit IRC
[08:47:15] *** kennbrodhagen has quit IRC
[08:47:35] *** daslicht has joined #angularjs
[08:47:48] *** Evankhell has quit IRC
[08:48:00] *** pdillinger has joined #angularjs
[08:48:04] *** Oiioij has joined #angularjs
[08:49:57] *** scmx has joined #angularjs
[08:49:59] *** Natsu- has joined #angularjs
[08:50:03] *** bweston has quit IRC
[08:50:18] *** djam90 has joined #angularjs
[08:50:31] *** lw has quit IRC
[08:52:45] *** peldan has joined #angularjs
[08:52:59] *** subnl2 has quit IRC
[08:53:33] *** waylon999 has quit IRC
[08:54:58] *** tarnus has quit IRC
[08:55:08] *** dancek has quit IRC
[08:55:14] *** sdouglas_ has quit IRC
[08:55:14] *** jaitaiwan has joined #angularjs
[08:55:56] *** encryptd_fractl has quit IRC
[08:56:52] *** annlewis has joined #angularjs
[08:57:11] <djam90> hmm, I want the latest Angular but also we have to support IE8 :(
[08:57:19] *** Evankhell has joined #angularjs
[08:57:33] *** jdj_dk has joined #angularjs
[08:58:18] *** mdedetrich has quit IRC
[08:58:24] *** annlewis_ has joined #angularjs
[08:58:35] *** dc_ has quit IRC
[08:58:48] *** ngoyal has joined #angularjs
[08:59:02] *** Jon30 has quit IRC
[08:59:21] *** anjumkaiser has quit IRC
[08:59:33] *** dancek has joined #angularjs
[08:59:39] *** kroogs has joined #angularjs
[09:00:22] *** nytrm has joined #angularjs
[09:00:23] *** hannesvdvreken has joined #angularjs
[09:00:49] *** dbouwman has joined #angularjs
[09:01:08] *** annlewis has quit IRC
[09:02:00] *** mogaj has joined #angularjs
[09:02:39] *** AndyFTP has joined #angularjs
[09:02:44] *** annlewis_ has quit IRC
[09:03:18] *** cpciv has quit IRC
[09:03:31] *** cpciv has joined #angularjs
[09:04:05] *** ngoyal has quit IRC
[09:04:27] *** arizzo has joined #angularjs
[09:04:37] *** AciD`` has joined #angularjs
[09:04:56] *** kroogs has quit IRC
[09:05:24] *** dbouwman has quit IRC
[09:05:52] *** illume has joined #angularjs
[09:06:05] <snurfery> oh snizapppp
[09:06:08] *** danielpquinn has joined #angularjs
[09:06:11] <snurfery> bootstrap 3.2.0 is outtttt
[09:06:14] * snurfery cheers
[09:06:41] <storkme> is that good?
[09:06:42] *** sacho has quit IRC
[09:06:49] *** jaitaiwan has quit IRC
[09:06:57] <Cixis> is it beta still?
[09:07:01] <Cixis> oh
[09:07:03] <Cixis> derp ignore me
[09:07:18] <snurfery> yeah I've been waiting for a fix that's in 3.2.0
[09:07:55] <snurfery> jumpiness related to the window resizing when a scroll-bar appears/disappears, which often happens when using modals
[09:08:25] <Cixis> i just set body {overflow:scroll} to prevent that
[09:08:36] *** jaitaiwan has joined #angularjs
[09:08:50] *** bullicon has joined #angularjs
[09:09:09] *** arizzo has quit IRC
[09:10:46] *** danielpquinn has quit IRC
[09:10:53] *** sk87 has joined #angularjs
[09:11:21] *** ustunozg_ has joined #angularjs
[09:11:36] *** jonasrosenlind has joined #angularjs
[09:11:44] *** mchammer has joined #angularjs
[09:13:30] *** nodweber has quit IRC
[09:14:05] *** nodweber has joined #angularjs
[09:14:35] *** frkout_ has joined #angularjs
[09:14:43] *** nytram has joined #angularjs
[09:15:00] *** HelperW_ has joined #angularjs
[09:15:05] *** DrMabuse has joined #angularjs
[09:16:43] *** CocoStorm has joined #angularjs
[09:16:58] *** nytrm has quit IRC
[09:17:29] *** nodweber has quit IRC
[09:18:00] *** nodweber has joined #angularjs
[09:18:39] *** frkout has quit IRC
[09:18:45] *** nemothekid has quit IRC
[09:18:46] *** HelperW has quit IRC
[09:19:14] *** srph has joined #angularjs
[09:19:16] *** arizzo has joined #angularjs
[09:19:28] <eighty4> If I'd like to create a little directive that remove a class from input elements on focus, how would I target this?
[09:19:43] *** VeeWee has joined #angularjs
[09:20:11] *** rockfordal has quit IRC
[09:20:15] *** srph has quit IRC
[09:20:29] *** jaitaiwan has quit IRC
[09:20:38] *** rockfordal has joined #angularjs
[09:21:22] *** stirlingw has joined #angularjs
[09:22:19] *** stirling_ has joined #angularjs
[09:22:37] *** dc_ has joined #angularjs
[09:22:51] *** senayar has joined #angularjs
[09:23:16] *** Oiioij has quit IRC
[09:23:19] <davesidious> Hey folks - I'm using the UI Router, and I have a base state (which is abstract), which seems to be being delayed by the child index state, causing a delay. Does anyone know how I can get this base state to load immediately and render? The base state has no resolves, whereas the child state does.
[09:23:34] *** arizzo has quit IRC
[09:23:58] <Cixis> eighty4: no need for a directive
[09:24:11] <Cixis> use ng-focus, set some variable, and use ng-class to use the variable
[09:24:12] *** bullicon has quit IRC
[09:24:24] *** waylon999 has joined #angularjs
[09:24:48] *** Click66 has quit IRC
[09:25:03] <eighty4> Cixis: I was thinking of doing it that way but that would require me to have to add that to all input fields
[09:25:12] <eighty4> Cixis: wouldn't it be simpler to just do one directive?
[09:25:29] *** CocoStorm has quit IRC
[09:25:40] <eighty4> Cixis: basicly I want to remove the class "error" from any input field that gets focused
[09:25:42] *** stirlingw has quit IRC
[09:26:18] *** waylon999 has quit IRC
[09:26:20] *** waylon99_ has joined #angularjs
[09:26:34] <Cixis> guess it depends on how your form is set up
[09:26:38] *** GeertV___ has joined #angularjs
[09:26:40] <snurfery> davesidious: this is when you're going to the child state?
[09:26:48] <Cixis> writing a directive isn't a bad idea, i suppose
[09:26:48] <snurfery> right, because the parent is abstract
[09:27:33] <snurfery> I just kinda accepted that resolves are going to delay a state... if the parent is 'abstract', it doesn't really have anything of its own to render, you know?
[09:27:37] <davesidious> snurfery - it's when the app first loads - the abstract "base" state waits for the child
[09:27:49] *** guilbep has joined #angularjs
[09:27:51] <davesidious> snurfery - it does have its own template
[09:28:08] *** mzehrer_ has joined #angularjs
[09:28:33] <snurfery> 'an abstract state can have child states but cannot be activated itself'
[09:28:40] <davesidious> yes, but it can have its own template
[09:28:42] <snurfery> so it has to wait
[09:29:00] <davesidious> that's terrible :)
[09:29:02] <snurfery> sure, you're right I was mistaken
[09:29:02] <davesidious> oh well.
[09:29:04] <snurfery> heh
[09:29:10] <eighty4> Cixis: if I were to go the directives way, how would I target the inputs? I could do <input clear-on-focus> I guess, but is that the best way?
[09:29:13] *** frkout has joined #angularjs
[09:29:14] *** frkout_ has quit IRC
[09:29:15] <snurfery> about the 'having anything of its own to render'
[09:29:27] <snurfery> that's news to me, I haven't run into that exact problem
[09:29:47] <davesidious> it's just rather annoying as the navigation (abstract state) waits for the child's state's resolves, causing a blank screen.
[09:29:48] <snurfery> maybe you can just ditch the resolves to get the page to load up quicker
[09:29:49] *** frkout has joined #angularjs
[09:29:53] *** JoshGlzBrk has joined #angularjs
[09:29:54] <davesidious> I need the resolves :)
[09:29:56] <Cixis> eighty4: that's how i would do it
[09:30:00] <davesidious> there must be a cleaner way to deal with it.
[09:30:06] *** hessi has quit IRC
[09:30:26] <snurfery> you're fetching some stuff asynchronously I take it?
[09:30:30] *** waylon99_ has quit IRC
[09:30:33] <davesidious> yup - in the child state
[09:30:57] <snurfery> and it simply *must* be there from the beginning?
[09:31:11] <eighty4> Cixis: cool :) thanks
[09:31:22] <snurfery> otherwise you can put your resolve logic into the child state's controller
[09:31:41] <snurfery> it'll show up sooner then the data will get populated
[09:31:57] *** cctom has quit IRC
[09:31:59] <snurfery> dunno your exact use-case of course
[09:32:17] *** willmarshall has quit IRC
[09:32:31] *** freeman42 has joined #angularjs
[09:33:13] *** mdedetrich has joined #angularjs
[09:34:27] *** bweston has joined #angularjs
[09:34:39] *** alekibango has joined #angularjs
[09:35:07] *** alekibango_ has quit IRC
[09:35:32] *** styles has quit IRC
[09:36:05] *** DrMabuse_ has joined #angularjs
[09:37:15] *** SahanH has quit IRC
[09:37:26] *** hessi has joined #angularjs
[09:37:38] *** monn has joined #angularjs
[09:38:30] *** rtpg has quit IRC
[09:38:36] *** nytram has quit IRC
[09:38:39] *** nodweber has quit IRC
[09:38:49] *** rtpg has joined #angularjs
[09:38:53] *** nytrm has joined #angularjs
[09:39:10] *** nodweber has joined #angularjs
[09:39:11] *** josh-k has joined #angularjs
[09:39:14] *** Milanito has joined #angularjs
[09:39:21] *** arizzo has joined #angularjs
[09:39:25] *** evilaliv3 has joined #angularjs
[09:39:27] *** marcghorayeb has joined #angularjs
[09:40:04] *** TyrfingMjolnir has quit IRC
[09:40:08] *** Milanito has quit IRC
[09:40:58] *** AngularUI has joined #angularjs
[09:40:58] <AngularUI> [bootstrap] petebacondarwin opened pull request #2419: fix(tooltip): remove when body is clicked (master...popover-clickoff) http://git.io/z90Lcw
[09:40:59] *** AngularUI has left #angularjs
[09:41:28] *** DrMabuse_ has quit IRC
[09:41:30] *** nemothekid has joined #angularjs
[09:43:34] *** arizzo has quit IRC
[09:43:47] *** nodweber has quit IRC
[09:43:57] *** Daven__ has joined #angularjs
[09:44:22] *** daivyk has quit IRC
[09:46:08] *** daivyk has joined #angularjs
[09:46:12] *** HelperW_ has quit IRC
[09:46:43] *** mewm has joined #angularjs
[09:46:48] *** HelperW_ has joined #angularjs
[09:46:50] *** rockfordal has quit IRC
[09:47:08] *** dancek has quit IRC
[09:47:11] *** rockfordal has joined #angularjs
[09:47:50] *** DevAntoine has joined #angularjs
[09:49:09] *** dancek has joined #angularjs
[09:50:26] *** fbenoit has joined #angularjs
[09:51:02] *** Stephen has quit IRC
[09:51:21] *** IJNX has quit IRC
[09:51:38] *** tyfighter has quit IRC
[09:51:42] *** luuse has quit IRC
[09:51:49] *** rtpg has quit IRC
[09:51:53] *** frkout_ has joined #angularjs
[09:51:55] *** dancrew32 has joined #angularjs
[09:52:06] *** Evankhell has quit IRC
[09:52:43] *** mehlah has joined #angularjs
[09:52:55] *** kalehv has joined #angularjs
[09:52:59] *** ayman has joined #angularjs
[09:53:05] *** sacho has joined #angularjs
[09:53:07] <ayman> please help me with this http://stackoverflow.com/questions/24569270/preload-background-image-using-angularjs-promises
[09:53:48] *** marcospgp has joined #angularjs
[09:53:55] *** cpciv1 has joined #angularjs
[09:54:14] *** mzehrer_ has quit IRC
[09:54:34] *** cpciv has quit IRC
[09:54:46] *** kalehv_ has joined #angularjs
[09:55:12] *** frkout has quit IRC
[09:55:51] *** stephen has joined #angularjs
[09:55:57] *** stephen has quit IRC
[09:56:29] *** stephen has joined #angularjs
[09:56:39] *** fels_zh has joined #angularjs
[09:56:42] *** annlewis has joined #angularjs
[09:57:10] *** dc_ has quit IRC
[09:57:25] *** frankblizzard has joined #angularjs
[09:57:34] *** kalehv has quit IRC
[09:57:34] *** devier has joined #angularjs
[09:57:43] *** nodweber has joined #angularjs
[09:57:46] *** dancrew32 has quit IRC
[09:58:20] *** bkuberek_ has joined #angularjs
[09:58:52] *** stephen has joined #angularjs
[09:58:55] *** henn1nk has joined #angularjs
[09:58:57] *** stephen has quit IRC
[09:59:09] *** Daven__ has quit IRC
[09:59:56] *** frkout_ has quit IRC
[09:59:57] *** frkout has joined #angularjs
[10:00:37] <senayar> ayman: http://stackoverflow.com/questions/17884399/image-loaded-event-in-for-ng-src-in-angularjs
[10:00:58] *** kroogs has joined #angularjs
[10:01:03] *** annlewis has quit IRC
[10:01:07] *** bkuberek has quit IRC
[10:02:42] *** Drako_ has joined #angularjs
[10:02:50] *** joshbrw has joined #angularjs
[10:02:52] *** nfroidure_ has joined #angularjs
[10:02:54] <senayar> https://gist.github.com/bennadel/9805954 ayman
[10:03:29] *** cctom_ has joined #angularjs
[10:03:58] *** Raging_Hog has joined #angularjs
[10:04:09] <ayman> senayar thank you, but I am talking about css background-image
[10:04:33] <ayman> the concept works fine with img tag, but not with css background-image
[10:04:56] *** Click66 has joined #angularjs
[10:05:08] *** jerev has joined #angularjs
[10:05:16] *** jordandotdev has joined #angularjs
[10:05:46] *** kroogs has quit IRC
[10:06:00] <jerev> Can anyone link me any example implementations of a splitview similar to the ipads, that allows navigation in both master & detail?
[10:06:11] *** Leon has joined #angularjs
[10:06:13] <mogaj> how to access a cell value of a selected row in ng-grid?
[10:06:41] *** Daven__ has joined #angularjs
[10:06:54] *** danielpquinn has joined #angularjs
[10:07:11] *** hessi has quit IRC
[10:07:41] *** henn1nk has quit IRC
[10:07:47] *** bengillies has joined #angularjs
[10:08:25] *** Click66 has quit IRC
[10:10:21] *** Tidwell has joined #angularjs
[10:10:31] *** Click66 has joined #angularjs
[10:10:33] *** matt_foucault has joined #angularjs
[10:11:34] *** danielpquinn has quit IRC
[10:11:43] *** Sebastien-L has joined #angularjs
[10:11:48] *** Tidwell has quit IRC
[10:11:57] *** dve has joined #angularjs
[10:12:11] *** zanea is now known as zanea|away
[10:12:26] *** anjumkaiser has joined #angularjs
[10:13:07] *** feelfine has joined #angularjs
[10:14:02] *** sneakertack has left #angularjs
[10:14:18] *** sneakertack has joined #angularjs
[10:14:23] <matt_foucault> Hello, I am a computer science PhD student, and I'm doing an empirical study in which I analyze the history of different projects (including AngularJS)
[10:14:24] *** scmx has quit IRC
[10:14:52] <matt_foucault> At one point of the study I need to split the code of the project into modules/components
[10:15:36] *** dve_ has joined #angularjs
[10:15:56] *** MathiasM has joined #angularjs
[10:16:27] *** milka has joined #angularjs
[10:16:44] *** mdedetrich has quit IRC
[10:16:51] <matt_foucault> Can I consider that each .js file is a single module/component, or are there files that are tightly coupled and should be grouped in a single component?
[10:17:58] *** quantax- has quit IRC
[10:19:23] *** frkout has quit IRC
[10:19:32] *** storresi has joined #angularjs
[10:19:34] *** dve has quit IRC
[10:19:47] *** JoshGlzBrk has quit IRC
[10:19:58] *** frkout has joined #angularjs
[10:20:10] *** bkuberek_ has quit IRC
[10:20:23] *** ETBlue has joined #angularjs
[10:20:24] *** willmarshall has joined #angularjs
[10:20:36] *** terrykfwong has joined #angularjs
[10:20:57] *** marcospgp has quit IRC
[10:22:21] *** dossy has joined #angularjs
[10:22:44] *** Vloz has joined #angularjs
[10:23:09] *** dve has joined #angularjs
[10:24:19] *** jamto11 has joined #angularjs
[10:24:22] *** MathiasM has quit IRC
[10:24:39] <dossy> can any one help me out here?
[10:24:57] <dossy> http://plnkr.co/edit/2SRABf9ejxYWiMJS7H8J?p=preview
[10:26:08] *** dve_ has quit IRC
[10:26:42] *** Milanito has joined #angularjs
[10:27:00] *** Joulse has joined #angularjs
[10:27:12] *** ayman has quit IRC
[10:27:39] *** waylon999 has joined #angularjs
[10:28:56] *** jamto11 has quit IRC
[10:29:32] *** dancek has quit IRC
[10:29:44] *** arizzo has joined #angularjs
[10:30:04] *** tfennelly has joined #angularjs
[10:30:10] *** mennea has joined #angularjs
[10:30:21] *** azizur has joined #angularjs
[10:31:11] *** hannesvdvreken has quit IRC
[10:31:20] *** aslate has joined #angularjs
[10:32:22] *** waylon999 has quit IRC
[10:32:22] *** hannesvdvreken has joined #angularjs
[10:32:49] *** Anticom has joined #angularjs
[10:33:00] *** ineedarobot has joined #angularjs
[10:33:46] <night-owl> is there a way to use the built in filters to filter an array of strings by first letter?
[10:34:04] *** scmx has joined #angularjs
[10:34:11] *** arizzo has quit IRC
[10:34:17] *** stirling_ has quit IRC
[10:34:42] <joroci> you will probably need to map the array first
[10:34:53] *** MathiasM has joined #angularjs
[10:34:59] *** tendencydriven has joined #angularjs
[10:35:17] *** bengillies has quit IRC
[10:35:37] *** avens has joined #angularjs
[10:35:49] *** willmarshall has quit IRC
[10:35:52] <night-owl> looks like you can use a function as a filtering parameter
[10:35:55] <night-owl> i got it
[10:35:56] *** intellix has joined #angularjs
[10:36:06] *** willmarshall has joined #angularjs
[10:36:15] *** richardbaker has quit IRC
[10:36:42] <intellix> is it normal to npm install karma -g? seems to throw all kinds of errors -.-
[10:36:51] *** DrMabuse_ has joined #angularjs
[10:36:58] <storkme> are you running it as root
[10:37:10] *** pluma has joined #angularjs
[10:37:19] *** zz_Brocken is now known as Brocken
[10:37:34] *** Imdsm is now known as Imdsm_
[10:37:37] *** xjiujiu has joined #angularjs
[10:37:41] <intellix> yeah, always get aload of this sort of thing: glob error { [Error: EMFILE, readdir '/usr/local/lib/node_modules/generator-webapp-bfytw/node_modules/yeoman-generator/node_modules/cli-table/node_modules/colors’]
[10:38:09] *** Imdsm_ is now known as Imdsm^
[10:38:37] *** juampy has joined #angularjs
[10:38:59] *** dve_ has joined #angularjs
[10:39:32] *** JudeArasu has joined #angularjs
[10:40:46] *** amedia has joined #angularjs
[10:41:02] *** anjumkaiser has quit IRC
[10:41:32] *** DrMabuse_ has quit IRC
[10:41:45] *** dancek has joined #angularjs
[10:42:04] *** dve has quit IRC
[10:43:04] *** bengillies has joined #angularjs
[10:43:37] *** kennbrodhagen has joined #angularjs
[10:43:53] *** luuse has joined #angularjs
[10:44:10] *** arizzo has joined #angularjs
[10:44:40] *** joshbrw has quit IRC
[10:46:03] *** mennea_ has joined #angularjs
[10:47:29] *** marr has joined #angularjs
[10:47:37] *** xjiujiu has quit IRC
[10:47:50] *** mennea has quit IRC
[10:48:04] *** xjiujiu has joined #angularjs
[10:48:22] *** kennbrodhagen has quit IRC
[10:48:34] *** arizzo has quit IRC
[10:49:57] <Anticom> Hi all
[10:50:06] *** Evankhell has joined #angularjs
[10:51:27] *** MathiasM has quit IRC
[10:51:28] <Anticom> I'm playing around with angular and stumbled upon PouchDB. I thought it would be nice to implement that classic todo-app using PouchDB. I was looking for some Pouch-bindings for angular but only found this: https://github.com/wspringer/angular-pouchdb . Problem now is, that i don't quite get, when and/or where to update my db on some model changes
[10:52:18] *** Gooder has quit IRC
[10:52:31] *** Sebastien-L has quit IRC
[10:52:37] *** mdedetrich has joined #angularjs
[10:52:40] *** Sebastien-L has joined #angularjs
[10:54:54] *** Hounddog has joined #angularjs
[10:55:56] *** aslate has quit IRC
[10:56:16] *** CocoStorm has joined #angularjs
[10:56:19] *** tarnus has joined #angularjs
[10:56:37] *** annlewis has joined #angularjs
[10:57:20] *** klaut has joined #angularjs
[10:57:54] <CocoStorm> Hey guys, I have a select drop down which filters a list by the item selected and works fine. I want the top item to be a generic item that says 'Filter By Tag' which doesn't filter at all. At the moment I have a <option style="display:none" value="">Filter By Tag</option> which seems to work initially but when selecting a tag that default value disappears and I cannot select it again. Any ideas h
[10:57:54] <CocoStorm> ow I can achieve this?
[10:58:57] *** rystraum has quit IRC
[10:59:13] *** arizzo has joined #angularjs
[10:59:24] *** rystraum has joined #angularjs
[10:59:32] *** ngoyal has joined #angularjs
[10:59:58] *** xjiujiu has quit IRC
[11:00:01] <sacho> remove the display:none?
[11:00:23] *** xjiujiu has joined #angularjs
[11:00:40] *** bengillies has quit IRC
[11:00:43] <CocoStorm> oh wow...I can't believe I didn't..
[11:00:45] <CocoStorm> thanks sacho
[11:00:51] *** sk87 has quit IRC
[11:00:55] *** tarnus has quit IRC
[11:00:56] *** aslate has joined #angularjs
[11:01:08] *** annlewis has quit IRC
[11:01:16] *** BahamutWC has joined #angularjs
[11:01:17] *** MathiasM has joined #angularjs
[11:01:41] *** bengillies has joined #angularjs
[11:01:47] <dossy> can any one tell me how to set image on canvas from input file in angular js?
[11:02:11] *** dbouwman has joined #angularjs
[11:03:31] <dossy> thanks 4 help
[11:03:34] *** arizzo has quit IRC
[11:03:34] <dossy> can any one tell me how to set image on canvas from input file in angular js?
[11:03:38] *** rockfordal has quit IRC
[11:04:05] *** rockfordal has joined #angularjs
[11:04:15] *** rystraum has quit IRC
[11:04:22] *** ngoyal has quit IRC
[11:04:28] *** Hounddog has quit IRC
[11:04:39] *** Raging_Hog has quit IRC
[11:04:59] *** sk87 has joined #angularjs
[11:05:51] *** pkayfire_ has joined #angularjs
[11:06:57] *** nemothekid has quit IRC
[11:06:57] *** dbouwman has quit IRC
[11:07:16] *** luuse has quit IRC
[11:07:29] *** danielpquinn has joined #angularjs
[11:07:59] *** Hounddog has joined #angularjs
[11:08:04] *** jaitaiwan has joined #angularjs
[11:08:12] <dossy> can any one tell me how to set image on canvas from input file in angular js?
[11:09:06] *** InezK is now known as InezK_away
[11:09:07] *** sigurding has quit IRC
[11:09:22] <Anticom> dossy http://lmgtfy.com/?q=javascript+image+to+canvas
[11:09:27] *** pkayfire has quit IRC
[11:10:15] *** sigurding has joined #angularjs
[11:10:19] *** xjiujiu has quit IRC
[11:10:24] *** Natsu-- has joined #angularjs
[11:10:26] *** feelfine has quit IRC
[11:10:44] *** xjiujiu has joined #angularjs
[11:11:21] *** secondjeff has joined #angularjs
[11:11:42] <dossy> <Anticom> I want to get the file from input type type file object
[11:11:58] *** Daven__ has quit IRC
[11:12:10] <dossy> <Anticom> http://plnkr.co/edit/2SRABf9ejxYWiMJS7H8J?p=preview
[11:12:39] *** danielpquinn has quit IRC
[11:13:00] <Anticom> dossy http://jsfiddle.net/t7mv6/86/
[11:13:34] *** Natsu- has quit IRC
[11:13:39] <Anticom> dossy you might want to scale the image and stuff and things like that, but that's basically how it works
[11:14:24] *** squeakytoy has joined #angularjs
[11:15:14] <dossy> Ohhh... Thankyou very much .... It had helped me alot... will b greatfull if i get your email if i do hav any other query...
[11:15:36] <CocoStorm> Hey guys, I have checkboxes in ng-repeat and I am using ng-checked to keep track of what is selected.. but I also want a 'select all' checkbox which uses ng-checked and ng-model for slave and master to check all checkboxes.. it means that I would need two ng-checked attributes in the checkbox.. How do I go about this?
[11:15:54] *** TorchDragon has joined #angularjs
[11:16:32] <Anticom> dossy... that snippet is not by me. i just googled it
[11:16:40] *** Daven__ has joined #angularjs
[11:17:32] *** daryllxd has quit IRC
[11:17:51] <dossy> thank for that too I just want to implement the same in angular and will try to get it now..
[11:19:09] *** lelu has joined #angularjs
[11:20:22] *** TorchDragon has quit IRC
[11:20:35] *** secondjeff has quit IRC
[11:21:26] *** rystraum has joined #angularjs
[11:21:48] *** himanshu has joined #angularjs
[11:21:58] *** avens has quit IRC
[11:22:15] <intellix> mmm I’m creating a templateCache and using with templateUrl but my tests are saying: “unexpected request: GET template/blah/blah.html”
[11:22:17] <CocoStorm> Hey guys, I have checkboxes in ng-repeat and I am using ng-checked to keep track of what is selected.. but I also want a 'select all' checkbox which uses ng-checked and ng-model for slave and master to check all checkboxes.. it means that I would need two ng-checked attributes in the checkbox.. How do I go about this?
[11:22:44] *** Milanito has quit IRC
[11:22:51] <intellix> how is it unexpected? I’m telling it to do it
[11:23:02] <himanshu> angular js
[11:23:33] *** avens has joined #angularjs
[11:24:07] *** mange has quit IRC
[11:24:25] *** dc_ has joined #angularjs
[11:24:28] *** sdouglas has joined #angularjs
[11:24:39] <Cixis> CocoStorm: there is a checkbox group directive out there
[11:25:00] *** jae has joined #angularjs
[11:25:01] <CocoStorm> checkbox group?
[11:25:08] <CocoStorm> hm i'll look it up what is it supposedn to do
[11:25:09] *** Leon has quit IRC
[11:25:41] <Cixis> it gives you a select-all checkbox and handles the cases necessary
[11:26:01] *** mdedetrich has quit IRC
[11:26:13] <CocoStorm> oh I see
[11:26:21] <CocoStorm> hmm sounds like what I need thanks I'll try and find it
[11:26:26] *** blakef has joined #angularjs
[11:26:37] *** hubertus_ has joined #angularjs
[11:26:56] *** anjumkaiser has joined #angularjs
[11:27:00] *** Marco__ has joined #angularjs
[11:27:09] *** davinciIT has joined #angularjs
[11:27:42] *** avens has quit IRC
[11:28:01] *** avens has joined #angularjs
[11:28:39] *** Milanito has joined #angularjs
[11:29:26] *** sdouglas has quit IRC
[11:29:46] *** dossy has quit IRC
[11:34:10] <intellix> if I do app.run() with templateCache.put, my unit tests shouldn’t make a GET request right?
[11:34:15] <intellix> it doesn’t make sense, there’s nothing on google -.-
[11:34:42] <hubertus_> i cant find why my product type checkboxes disapear after a search or selection of a region http://plnkr.co/edit/b50oW1egLTuk1mnGu7gM?p=preview
[11:34:57] <hubertus_> been building this for a week now but i dont give up :)
[11:35:09] <hubertus_> hope anyone of you pros can help this noob :|
[11:35:38] <intellix> ugh -.- found it, JSHint on my “watch” not creating the dist files
[11:37:22] *** Joulse has quit IRC
[11:37:37] *** DrMabuse_ has joined #angularjs
[11:38:01] *** davinciIT has left #angularjs
[11:38:30] *** drbee has joined #angularjs
[11:38:42] *** daslicht has quit IRC
[11:38:43] *** Joulse has joined #angularjs
[11:38:47] *** bkuberek has joined #angularjs
[11:38:48] *** ustunozg_ has quit IRC
[11:39:12] <drbee> Hi! I want to make a filter that return HTML, but I want to html-scape the original text
[11:39:13] *** Milanito has quit IRC
[11:39:40] <drbee> Has anyone done anything similar?
[11:40:22] <drbee> "kangaroo" => "<em>kang</em>aroo" where q="kang"
[11:40:24] <OnkelTem> I've just discovered $stateProvider.decorator(). What a cool thing! Trying to use it now..
[11:40:33] *** bkuberek_ has joined #angularjs
[11:40:43] <storkme> kaaaaaaaaaaaaaaaaaang!
[11:41:18] *** Milanito has joined #angularjs
[11:41:40] <drbee> but if "kangaroo<script>malicous()</script>" i dont want to $sce.trustAsHtml "<em>kang</em>aroo<script>malicous()</script>"
[11:42:03] *** DrMabuse_ has quit IRC
[11:43:18] *** bkuberek has quit IRC
[11:44:32] *** feelfine has joined #angularjs
[11:45:22] *** bkuberek_ has quit IRC
[11:46:59] *** jae is now known as Jae
[11:46:59] *** willmarshall has quit IRC
[11:47:55] *** daryllxd has joined #angularjs
[11:48:24] *** massi_syed has joined #angularjs
[11:48:48] *** Somatt_wrk has quit IRC
[11:51:41] <Anticom> assuming my model is an object that i've got in my scope, how can i watch the entire object for changes? http://jsbin.com/yesosipo/1/edit?js,output
[11:51:56] <Anticom> $scope.model has firstName, lastName & checkBox
[11:52:33] *** daryllxd has quit IRC
[11:53:19] *** Evankhell has quit IRC
[11:55:08] *** senayar has quit IRC
[11:55:34] *** fire_ has joined #angularjs
[11:55:36] *** Yancy has quit IRC
[11:55:44] <fire_> hi everyone, my ng-table is not reloading new data...
[11:55:45] <fire_> any ideas?
[11:55:45] *** Yancy has joined #angularjs
[11:56:00] <Anticom> oh, i got it
[11:56:06] *** himanshu has quit IRC
[11:56:17] *** math_ has joined #angularjs
[11:56:36] *** ibk has left #angularjs
[11:56:37] *** matt90 has joined #angularjs
[11:56:42] *** annlewis has joined #angularjs
[11:56:46] *** math_ has quit IRC
[11:57:03] *** Click66 has quit IRC
[11:58:14] <matt90> Hello! I have some problems with angularjs.. I want to insert into a html page (in a div container) some scala code but I get only the plain text! how can I define this code to be executed correctly instead of just print it?
[11:58:57] *** zemanel has joined #angularjs
[11:59:03] *** dc_ has quit IRC
[11:59:46] *** rburns has quit IRC
[11:59:52] <drbee> matt90: scala doesnt execute in the browser..(?)
[12:00:44] *** kroogs has joined #angularjs
[12:00:56] <fire_> anyone know much about ng-table?
[12:01:08] *** annlewis has quit IRC
[12:01:41] *** joshbrw has joined #angularjs
[12:02:10] *** jonasrosenlind has quit IRC
[12:02:32] *** hannesvdvreken has quit IRC
[12:02:38] <Pierre_N> a malevolent force is at work - angularjs works fine in this apache vhost I set up, but as soon as I try and load it via nodejs + express, stuff like {{ 1 + 2 }} works in my template, but values in my controller aren't appearing in the html.
[12:02:56] *** DevAntoine has quit IRC
[12:03:02] *** dbouwman has joined #angularjs
[12:03:10] <matt90> drbee: I use playframework with angularjs and scala.. I defined a "player.scala.html" page that should be insert in a div element.. I can correctly show this page using @player("someparams")("otherparams"). I want to inject this " at player(" dot ...")("...")" from a javascript but I get only the plain text instead of the player.scala.html page segment
[12:03:36] <sacho> Pierre_N, that's nice.
[12:03:53] *** avens has quit IRC
[12:04:10] *** rystraum has quit IRC
[12:04:16] *** ipalaus has joined #angularjs
[12:04:22] *** Click66 has joined #angularjs
[12:04:33] *** sigurding has quit IRC
[12:04:40] <Pierre_N> yep ://
[12:05:10] *** kroogs has quit IRC
[12:05:12] *** IRCTC has joined #angularjs
[12:05:18] <IRCTC> hellooooo
[12:05:32] *** orion1111 has joined #angularjs
[12:06:06] <Pierre_N> the exact same code, via express. what.
[12:07:04] *** dbouwman has quit IRC
[12:07:28] *** senayar has joined #angularjs
[12:07:44] *** frkout_ has joined #angularjs
[12:07:46] *** Evankhell has joined #angularjs
[12:07:51] <drbee> matt90: I strongly recommend to use plain html with angular, and use play as a pure REST API
[12:07:58] <orion1111> When routing to different page, I use $templateCache.removeAll(); to clear cache - so page is each time freshly reloaded. Is there possible case, when this wouldn't work?
[12:08:09] <drbee> matt90: you don't need to do any scala preproccessing
[12:08:19] <drbee> angular is perfect for that
[12:08:21] *** rystraum has joined #angularjs
[12:08:26] *** fire_ has quit IRC
[12:08:26] *** danielpquinn has joined #angularjs
[12:08:59] *** Click66 has quit IRC
[12:09:52] <Pierre_N> ohhhh.
[12:09:54] <Pierre_N> awkward.
[12:09:55] <drbee> <p>My name is {{player.name}}</p> and then $http.get('/player').success(function(player){$scope.player=player}) in your controller
[12:10:12] *** arizzo has joined #angularjs
[12:10:17] <Pierre_N> something is hijacking {{ }} on the server side, so they're not appearing on load. I'm not forcing it to use a template engine though.
[12:11:02] *** frkout has quit IRC
[12:12:12] *** ppppaul has quit IRC
[12:12:27] *** frkout_ has quit IRC
[12:13:06] <Pierre_N> \o/
[12:13:27] *** danielpquinn has quit IRC
[12:14:44] *** Foxandxss has joined #angularjs
[12:15:00] *** blakef has quit IRC
[12:15:01] *** Milanito has quit IRC
[12:15:22] *** avens has joined #angularjs
[12:16:12] *** disorder20 has joined #angularjs
[12:17:19] <hubertus_> is there a way to directly control filters by the URL in angular?
[12:17:54] *** dariocravero has joined #angularjs
[12:17:58] <hubertus_> only filters not a SPA
[12:17:59] <Anticom> I've tried implementing a delay into my watch function using $timeout according to this SO answer: http://stackoverflow.com/a/20397577/966530 Here's my code: http://jsbin.com/yesosipo/3/edit?js,output The timeout thing doesn't seem to work :/
[12:18:06] *** daryllxd has joined #angularjs
[12:18:10] <Anticom> Any ideas what's going wrong there?
[12:18:28] <Anticom> oh, nvm
[12:18:33] <Anticom> forgott to inject $timeout
[12:18:33] *** arizzo has quit IRC
[12:18:33] *** Daven__ has quit IRC
[12:18:59] *** disorder20 has quit IRC
[12:19:08] *** Shrooms` has quit IRC
[12:19:24] *** hubertus_ has quit IRC
[12:19:55] *** morenoh149 has quit IRC
[12:19:59] *** hubertus_ has joined #angularjs
[12:20:33] *** juampy has quit IRC
[12:20:44] <orion1111> how to disable/clear cache for partials (those included with ng-include) ?
[12:20:50] *** motionman has quit IRC
[12:20:50] *** hubertu__ has joined #angularjs
[12:21:28] *** rystraum has quit IRC
[12:22:03] *** juampy has joined #angularjs
[12:22:06] *** rystraum has joined #angularjs
[12:22:30] *** mehlah has quit IRC
[12:22:37] *** blakef has joined #angularjs
[12:23:00] *** blakef has joined #angularjs
[12:23:23] <Anticom> orion1111 maybe expire header in response?
[12:23:29] *** peldan has quit IRC
[12:23:36] *** nytrm has quit IRC
[12:24:02] *** peldan has joined #angularjs
[12:24:12] *** morenoh149 has joined #angularjs
[12:24:21] *** senayar has quit IRC
[12:24:27] *** ppppaul has joined #angularjs
[12:24:36] <joroci> orion you mean from $templateCache?
[12:24:37] *** arizzo has joined #angularjs
[12:24:58] *** hubertus_ has quit IRC
[12:25:16] *** jamto11 has joined #angularjs
[12:25:29] *** daryllxd has quit IRC
[12:25:44] <orion1111> I mean for those like: <div ng-include src="'partials/test.html'"></div>
[12:26:00] <joroci> try $templateCache.removeAll();
[12:26:14] *** Joulse has quit IRC
[12:26:27] *** rystraum has quit IRC
[12:26:51] <joroci> or
[12:27:23] <joroci> $templateCache.remove(fileincluded)
[12:27:55] *** Click66 has joined #angularjs
[12:28:29] *** waylon999 has joined #angularjs
[12:28:42] *** ustunozg_ has joined #angularjs
[12:28:53] *** arizzo has quit IRC
[12:28:56] *** arek_at_work has joined #angularjs
[12:29:34] <orion1111> joroci: thank you so much
[12:29:35] <orion1111> it works
[12:29:51] <orion1111> by putting your last sentence in controller
[12:29:52] *** dc_ has joined #angularjs
[12:29:53] *** jamto11 has quit IRC
[12:29:54] <Foxandxss> intellix: hey
[12:29:59] <joroci> np
[12:30:04] *** hubertu__ has quit IRC
[12:30:40] *** hubertus_ has joined #angularjs
[12:30:41] *** drbee has quit IRC
[12:30:47] *** hubertus_ has quit IRC
[12:31:02] *** hubertus_ has joined #angularjs
[12:32:57] *** snyx has joined #angularjs
[12:33:03] *** waylon999 has quit IRC
[12:34:13] *** senayar has joined #angularjs
[12:34:30] *** dc_ has quit IRC
[12:35:05] *** intellix has quit IRC
[12:35:46] *** mehlah has joined #angularjs
[12:36:59] *** k-dawg has quit IRC
[12:37:01] *** amedia has quit IRC
[12:37:55] *** bengillies has quit IRC
[12:38:21] *** bengillies has joined #angularjs
[12:38:23] *** DrMabuse_ has joined #angularjs
[12:38:41] *** joroci has quit IRC
[12:39:40] *** amedia has joined #angularjs
[12:41:26] *** bkuberek has joined #angularjs
[12:41:28] <pdillinger> hi, how to output html tags in vars (in curly braces). Let's say i have var $scope.someVar = 'Some dummy <b>text</b>' and need to output with tag <b>
[12:41:47] <storkme> i'm so sick of dealing with CORS.
[12:43:05] *** hubertus_ has quit IRC
[12:43:14] *** bengillies has quit IRC
[12:43:34] *** DrMabuse_ has quit IRC
[12:43:47] *** Evankhell has quit IRC
[12:43:50] *** hubertus_ has joined #angularjs
[12:44:34] *** kennbrodhagen has joined #angularjs
[12:45:00] *** hubertus_ has quit IRC
[12:45:05] *** hubertu__ has joined #angularjs
[12:45:49] <Anticom> pdillinger http://stackoverflow.com/questions/15754515/how-to-render-html-with-angular-templates
[12:45:58] *** alpha080 has quit IRC
[12:45:59] *** k-dawg has joined #angularjs
[12:46:12] *** bkuberek has quit IRC
[12:46:15] *** frankblizzard has quit IRC
[12:46:24] *** k-dawg has joined #angularjs
[12:47:23] *** alpha080 has joined #angularjs
[12:47:30] <pdillinger> Anticom: thanks! :)
[12:47:35] <Anticom> cheers
[12:47:46] <Anticom> whish there was a simple filter for that...
[12:47:59] <Anticom> like {{ model|raw }} in your view
[12:48:03] <Anticom> would be so convenient
[12:48:10] *** Ch4rAss has joined #angularjs
[12:48:10] *** bengillies has joined #angularjs
[12:48:12] *** avens_ has joined #angularjs
[12:48:51] <IRCTC> dd
[12:48:54] *** kennbrodhagen has quit IRC
[12:48:58] <IRCTC> anybody therererere
[12:49:02] *** AlSquirrel has joined #angularjs
[12:49:11] <IRCTC> somebody here
[12:49:12] <pdillinger> yes, maybe in AJS2
[12:49:14] <IRCTC> nobody here
[12:49:26] <Foxandxss> IRCTC: chill
[12:49:30] <IRCTC> no might not be in ajs2
[12:49:32] <IRCTC> chill
[12:49:40] <IRCTC> no
[12:49:42] <IRCTC> not chill
[12:49:49] <IRCTC> i am not chill
[12:49:52] <IRCTC> i am irctc
[12:50:17] *** enxtur has quit IRC
[12:50:25] *** AlSquirikou has joined #angularjs
[12:50:34] *** ishara has quit IRC
[12:51:01] *** AlSquirrel has quit IRC
[12:51:22] <IRCTC> no reply
[12:51:26] <IRCTC> any bydy there
[12:51:28] <IRCTC> no body here
[12:51:33] <IRCTC> chill
[12:51:36] *** avens has quit IRC
[12:51:38] *** Keika has joined #angularjs
[12:51:46] <IRCTC> people who are joining
[12:51:51] <IRCTC> type something
[12:51:56] <orion1111> ask
[12:51:57] <IRCTC> use u r keyboard
[12:51:57] *** AlSquire has quit IRC
[12:51:58] <IRCTC> not mouse
[12:52:03] <sacho> please stop spamming.
[12:52:04] *** krnflake has quit IRC
[12:52:04] <IRCTC> what is what
[12:52:04] *** daryllxd has joined #angularjs
[12:52:22] <IRCTC> sacho ....please stop being in manmohan singh mode
[12:52:27] <IRCTC> i mean silent mode
[12:52:39] <IRCTC> you are not here to monitor
[12:52:53] <IRCTC> you are here to reply to people's questions
[12:52:55] *** ChanServ sets mode: +o Foxandxss
[12:53:00] *** Foxandxss sets mode: +b *!b6485852@gateway/web/freenode/ip.182.72.88.82
[12:53:00] *** IRCTC was kicked by Foxandxss (Your behavior is not conducive to the desired environment.)
[12:53:21] <Foxandxss> and I am here to ban retards
[12:53:23] <Foxandxss> what a job
[12:53:40] <Ch4rAss> :)
[12:53:58] <storkme> it's a thankless task so i'm not going to thank you
[12:54:12] *** waylon999 has joined #angularjs
[12:54:13] *** sigurding has joined #angularjs
[12:54:17] *** k-dawg has quit IRC
[12:55:21] <Foxandxss> storkme: depend, I could leave hi, to flood the channel
[12:55:53] *** Milanito has joined #angularjs
[12:56:38] *** annlewis has joined #angularjs
[12:56:59] *** krnflake has joined #angularjs
[12:57:07] *** AciD`` has quit IRC
[12:57:08] *** SpearThruster has joined #angularjs
[12:57:19] *** tarnus has joined #angularjs
[12:58:25] <MalfaitRobin> Does anyone have a nice way to authenticate users in angluarjs?
[12:58:34] <MalfaitRobin> using Laravel as back-end
[12:58:45] *** enxtur has joined #angularjs
[12:58:49] *** bengillies has quit IRC
[12:59:04] *** waylon999 has quit IRC
[12:59:15] *** bengillies has joined #angularjs
[13:00:06] *** aslate has quit IRC
[13:00:16] *** kroogs has joined #angularjs
[13:00:29] *** night-owl-MBP is now known as night-owl2
[13:00:36] *** disorder20 has joined #angularjs
[13:00:42] *** ngoyal has joined #angularjs
[13:01:01] *** RedOrangeZ has joined #angularjs
[13:01:04] *** fouadm has quit IRC
[13:01:08] *** annlewis has quit IRC
[13:01:17] *** marcghorayeb is now known as marcghorayeb|afk
[13:01:34] *** krnflake has quit IRC
[13:01:59] *** sk87 has quit IRC
[13:02:00] *** tarnus has quit IRC
[13:03:52] *** dbouwman has joined #angularjs
[13:03:58] *** bengillies has quit IRC
[13:04:42] *** disorder20 has quit IRC
[13:05:06] *** ngoyal has quit IRC
[13:05:27] *** nytrm has joined #angularjs
[13:05:33] *** kroogs has quit IRC
[13:05:37] *** aslate has joined #angularjs
[13:05:52] *** Keika has quit IRC
[13:06:30] *** sneakertack has quit IRC
[13:08:15] *** dbouwman has quit IRC
[13:08:48] *** Daven__ has joined #angularjs
[13:09:08] *** danielpquinn has joined #angularjs
[13:09:56] *** sk87 has joined #angularjs
[13:10:31] *** arizzo has joined #angularjs
[13:10:37] *** MathiasM has quit IRC
[13:10:58] <Foxandxss> MalfaitRobin: try jwt
[13:11:23] *** Milanito has quit IRC
[13:12:00] *** Milanito has joined #angularjs
[13:12:22] *** matt90 has quit IRC
[13:13:38] *** marcghorayeb|afk is now known as marcghorayeb
[13:13:52] *** braoru has joined #angularjs
[13:14:03] *** bengillies has joined #angularjs
[13:14:16] *** danielpquinn has quit IRC
[13:15:22] *** arizzo has quit IRC
[13:16:22] <massi_syed> Hi all, After calling a inline function in assignement statement , i need to return the value in it?
[13:16:40] <sacho> massi_syed, your question is unclear
[13:19:05] <massi_syed> ok, can i write like this : $scope.assignedDetails[0].category= function(){ for(var j=0;j<$scope.labourList.length;j++){ if(data[i].consID==$scope.labourList[j].code){ return $scope.labourList[j].name; }}};
[13:19:18] *** drej has joined #angularjs
[13:19:23] *** Cavallari has joined #angularjs
[13:19:23] *** bengillies has quit IRC
[13:19:27] *** Cavallari has quit IRC
[13:19:42] *** MathiasM has joined #angularjs
[13:20:46] *** hubertu__ has quit IRC
[13:20:49] <sacho> what do you expect that to do?
[13:21:00] *** intellix has joined #angularjs
[13:21:01] <sacho> you're assigning a function to .category
[13:21:04] *** amedia_ has joined #angularjs
[13:21:05] *** justinobney has joined #angularjs
[13:21:08] <sacho> if you want to assign the result of calling it, you need to call it first.
[13:21:19] *** drbee has joined #angularjs
[13:21:50] *** Freeman42x has joined #angularjs
[13:22:04] <intellix> helloooo Foxandxss, was just at lunch :P I imagine you’re here to kick my ass regarding the PR
[13:22:09] *** rystraum has joined #angularjs
[13:22:12] *** amedia has quit IRC
[13:22:12] *** amedia_ is now known as amedia
[13:22:24] <Foxandxss> intellix: meh, not that much
[13:22:37] *** freeman42 has quit IRC
[13:22:38] <Foxandxss> the thing is that angular-toastr as today is just a direct port of the real deal
[13:22:41] <Foxandxss> which doesn't allow that
[13:22:54] <Foxandxss> BUT that doesn't mean that I can move the template to a .html file
[13:23:11] <massi_syed> sacho:ok , i can't directly write like this, tqs
[13:23:13] <Foxandxss> and someone could just create a $templateCache entry with that key and replace the template
[13:23:54] <Foxandxss> so I can still maintain the "originality" and allow others to override the template
[13:24:02] <Foxandxss> just moving from template to templateUrl
[13:24:14] <Foxandxss> that also needs a little bit of changes on my gruntfile, but just that
[13:24:47] *** DrJae has joined #angularjs
[13:24:58] *** jk-5 has quit IRC
[13:25:13] *** Jae has quit IRC
[13:25:17] *** DrJae is now known as Jae
[13:25:23] *** Jae has joined #angularjs
[13:26:46] *** rystraum has quit IRC
[13:27:16] *** Freeman42x has quit IRC
[13:29:28] *** ceephax has quit IRC
[13:30:12] *** arizzo has joined #angularjs
[13:31:28] *** jk-5 has joined #angularjs
[13:31:31] *** krnflake has joined #angularjs
[13:31:59] *** hubertus_ has joined #angularjs
[13:32:03] *** mercwithamouth has joined #angularjs
[13:32:24] *** HardFu has joined #angularjs
[13:33:13] *** marcospgp has joined #angularjs
[13:33:30] *** jdj_dk has quit IRC
[13:34:23] *** intellix has quit IRC
[13:34:48] *** arizzo has quit IRC
[13:34:51] *** jordandotdev has quit IRC
[13:35:08] *** justinobney has quit IRC
[13:35:48] *** gauravsaini03 has quit IRC
[13:35:50] <marcospgp> Which is better? ng-boilerplate or the yeoman setup?
[13:37:03] <Foxandxss> that is a hard question
[13:37:04] *** hubertus_ has quit IRC
[13:37:09] *** tfennelly has quit IRC
[13:37:48] <marcospgp> For a beginner who still doesn't understand the framework completely and intends to start a medium sized app
[13:38:27] *** liri has quit IRC
[13:38:58] *** jdj_dk has joined #angularjs
[13:39:07] *** DrMabuse_ has joined #angularjs
[13:39:13] *** glitchff has joined #angularjs
[13:39:19] *** Daven__ has quit IRC
[13:39:24] *** drbee has quit IRC
[13:39:31] <Foxandxss> I wouldn't use any of those
[13:39:41] <Foxandxss> but I trust joshdmiller (ngboilerplate)
[13:39:44] <marcospgp> What should I use then?
[13:39:51] *** justinob_ has joined #angularjs
[13:39:54] *** braoru has quit IRC
[13:39:55] <Foxandxss> your own grunt/gulp file
[13:39:58] <Foxandxss> just that
[13:40:32] *** bweston has quit IRC
[13:41:28] *** rystraum has joined #angularjs
[13:41:31] <marcospgp> hm
[13:41:41] *** Stephen has joined #angularjs
[13:41:47] <sacho> marcospgp, angular has very little boilerplate. The main focus of those setups are related to setting up an environment around angular.
[13:42:14] *** bkuberek has joined #angularjs
[13:42:15] <marcospgp> I know, but about the architecture, I need to separate modules and controllers etc
[13:42:21] <storkme> I use generator-angular at the moment
[13:42:41] <sacho> marcospgp, not really.
[13:42:50] *** gsdds has joined #angularjs
[13:43:16] *** glitchff has joined #angularjs
[13:43:18] *** avens_ has quit IRC
[13:43:35] <marcospgp> hm, how should I organize my app then, to start with?
[13:43:45] *** Anticom has quit IRC
[13:44:08] *** DrMabuse_ has quit IRC
[13:44:13] <sacho> well, you could start with an app.js, where you define a module for your app, and everything else.
[13:44:19] *** rystraum has quit IRC
[13:44:26] *** jonasrosenlind has joined #angularjs
[13:44:41] *** Natsu-- has quit IRC
[13:44:45] *** dashed has quit IRC
[13:45:04] *** arizzo has joined #angularjs
[13:45:13] *** avens has joined #angularjs
[13:45:44] <storkme> personally I would say start with a generator, then once you understand how stuff works better and learn more about it, ditch the generators and do your own thing :x
[13:45:47] <marcospgp> and then refactor when it gets too big?
[13:46:25] <marcospgp> storkme: yea I guess I kind of agree, there's no point in going ahead and doing my own thing if I don't know how to just yet
[13:46:34] *** bkuberek has quit IRC
[13:46:52] <Zerot> storkme: be careful about which generator you use. A lot of them tend to prefer the "separate module for directives, controller, services, etc." which is of course a very bad way to organize an application
[13:47:07] *** disorder20 has joined #angularjs
[13:47:19] <marcospgp> Zerot: How should it be done then?
[13:47:28] <Zerot> you should organize you modules per function they provide. e.g. a tooltip module, a auth module, etc.
[13:47:30] <storkme> I started with generator-angular, I still mostly use it but I'm slowly changing it to better fit my workflow (less instead of sass for instance)
[13:47:34] *** mattia90 has joined #angularjs
[13:47:45] *** mercwithamouth has quit IRC
[13:48:11] *** Milanito has quit IRC
[13:48:16] *** ustunozg_ has quit IRC
[13:48:28] <marcospgp> Can someone please link me to some source code I can look at as example?
[13:48:41] <Zerot> marcospgp: so a module can contain multiple services, directives, controllers, etc. As long as they are all relevant/tightly coupled to eachother
[13:48:56] <marcospgp> I searched already but best I found was a shopping app with global functions that were called inside modules
[13:48:58] *** jk-5 has quit IRC
[13:49:04] *** kalehv_ has quit IRC
[13:49:07] *** sk87 has quit IRC
[13:49:22] <marcospgp> Zerot: And would that be a module per file, a module separated in files?
[13:49:25] *** danizord has joined #angularjs
[13:49:28] <Zerot> multiple files
[13:49:29] *** Milanito has joined #angularjs
[13:49:29] *** arizzo has quit IRC
[13:49:48] <Zerot> concat them at build time
[13:50:35] <Zerot> marcospgp: basically, for modules, I should be able to remove a depenendcy from your app module and that should have no effect on the other dependencies in your app module
[13:50:40] *** one_zero has quit IRC
[13:51:01] <Foxandxss> it is horrible to read your code, see an ng-click not firing anything, why I put that there?
[13:51:26] <Zerot> Foxandxss: sleep deprivation?
[13:51:36] <Foxandxss> impossible :P
[13:51:53] <Foxandxss> tests passes when I remove that
[13:51:55] <Foxandxss> so...
[13:52:45] *** drbee has joined #angularjs
[13:52:49] <Foxandxss> rev087: ping
[13:52:54] *** Stephen has quit IRC
[13:53:22] *** hychen has quit IRC
[13:53:39] *** Siyfion has joined #angularjs
[13:53:53] <marcospgp> Zerot: I'm not really seeing the big picture yet. Oh well
[13:53:59] *** jk-5 has joined #angularjs
[13:55:40] <marcospgp> May I ask again if anyone knows of any source code I can look at? Something a bit bigger than the phonecat app in the tutorial?
[13:56:10] <Zerot> marcospgp: if you make these modules: app.services, app.controllers, etc. then app.controllers will fail when I remove app.services from the dependencies list. But what if I have these modules: app.auth, app.dates. I can remove app.auth without having app.dates break
[13:56:21] <Foxandxss> marcospgp: check angular-app
[13:56:27] <storkme> if I'm broadcasting events related to authentication in my SPA, should I be broadcasting these events from the service/factory handling the authentication, or the controller that requested the action? and where should I make this broadcast? an eventemitter in my service, or on some $scope object?
[13:56:36] *** annlewis has joined #angularjs
[13:56:36] *** msafi has joined #angularjs
[13:56:53] <marcospgp> Zerot: That makes sense! But in practice, how would I make that work?
[13:56:58] <Zerot> storkme: first things first: do you need that broadcast?
[13:57:31] <Zerot> marcospgp: by splitting up your responsibilties. give every module their own responsibility
[13:57:44] <marcospgp> @Foxandxss: Yes I have checked that app and on top of being a pain to set up it just is confusing to me, I wish I could see a more practical app like a shop or something
[13:58:09] <Foxandxss> you want everything then
[13:58:11] <Foxandxss> that doesn't exist
[13:58:17] <Foxandxss> grab the ideas you like from everywhere
[13:58:18] <marcospgp> Zerot: How do I have the same module in separate files?
[13:58:20] <Zerot> marcospgp: this is basic design that you will encounter in every language/framework. So you don't necesarily need to check angular sources to learn about it
[13:58:22] <Foxandxss> and start your own product
[13:58:31] <Foxandxss> there is no ultimate truth on angular dev
[13:58:39] <Foxandxss> there are multiple ways of structuring your app
[13:58:55] <Foxandxss> of creating your workflow and ultimately, coding it
[13:59:04] *** Bodin- has joined #angularjs
[13:59:10] *** JudeArasu has quit IRC
[13:59:10] *** msafi1 has quit IRC
[13:59:12] *** stodan has quit IRC
[13:59:17] <Foxandxss> grab the ideas that makes sense to you, create your own Gruntfile (From those ideas) and start moving
[13:59:22] <Foxandxss> that is my advice
[13:59:28] <Zerot> marcospgp: using "angular.module(name).controller" etc. if you don't supply a dependency list(e.g. []) as a second parameter, it is a module lookup. With a dependency list it creates the modules
[13:59:29] <storkme> Zerot: well somewhere in my page i'm gonna need to switch from displaying "not logged in" to "logged in as <user>"
[14:00:10] <Zerot> storkme: what is stopping you from just updating the data? which is on the scope for that controller? which will cause it to auto update without needing an event
[14:00:16] *** rockfordal has quit IRC
[14:00:30] *** juo100 has joined #angularjs
[14:00:32] *** fels_zh has quit IRC
[14:00:35] <marcospgp> Zerot: I've seen in some apps they do var app = module(tatata) because then you can change the module names and things still work, that wouldn't be doable with that method would it?
[14:00:40] *** rockfordal has joined #angularjs
[14:00:42] *** tarnus has joined #angularjs
[14:00:44] <Zerot> storkme: e.g. store data in the service. expose service on scope. use that in view. when service updates it will cause the view to be updated
[14:00:54] *** annlewis has quit IRC
[14:01:04] *** fels_zh has joined #angularjs
[14:01:08] <marcospgp> @Foxandxss: thanks for the advice, grunt is the thing that builds your app right? I have yet to learn how to set that up myself
[14:01:20] <Foxandxss> yes
[14:01:36] <marcospgp> Is it simple? I hope so aha
[14:01:39] <Zerot> marcospgp: it would require a rename everywhere you use "angular.module(name)". but how often do you need that? a simple replace in files can already fix it if needed
[14:01:43] *** daryllxd has quit IRC
[14:01:58] *** joshontheweb has quit IRC
[14:02:02] *** jamieshepherd has quit IRC
[14:02:09] *** fels_zh_ has joined #angularjs
[14:02:11] <storkme> Zerot: I don't think that works - my ui isn't updating when the service value changes
[14:02:27] <Zerot> storkme: then you either copied the data or didn't expose it correctly
[14:02:28] *** Daven__ has joined #angularjs
[14:02:32] <marcospgp> Zerot: Yea you're right aha, damn I just need some code to get me started, I really need something to look at
[14:02:49] <Zerot> storkme: the object on the scope needs to be the same object as is used in the service
[14:02:56] *** evilaliv4 has joined #angularjs
[14:03:07] *** Milanito has quit IRC
[14:03:23] <storkme> literally the same object? So I can't reassign it in the service?
[14:03:28] <Zerot> marcospgp: imo, best is to just get started. use version control and commit often
[14:03:44] <Zerot> storkme: yes. You can use angular.copy to keep the same reference
[14:04:09] * storkme is having a 'this changes everything' moment
[14:04:12] <marcospgp> By the way, how do you deal with css? Various files for each partial, one big file?
[14:04:14] <Foxandxss> storkme: if you reassign, you lose the reference
[14:04:22] *** dbouwman has joined #angularjs
[14:04:23] <Foxandxss> if you lose the reference, the controller won't know of any change
[14:04:42] <Foxandxss> the idea is, don't change it, so use any technique you like, like Zerot suggestion
[14:05:12] <Zerot> marcospgp: even if you have something you can look at, you will make differences to it. You will end up with your own design. And learning how to design applications can basically only be done by experimentation and practice
[14:05:28] *** evilaliv3 has quit IRC
[14:05:45] *** fels_zh has quit IRC
[14:05:48] *** seydoggy has joined #angularjs
[14:06:02] *** rockfordal has quit IRC
[14:07:23] *** justinob_ has quit IRC
[14:07:46] <marcospgp> Zerot: Well I know, but I need something to start. I'm gonna try to find something
[14:07:53] *** justinobney has joined #angularjs
[14:08:04] <Zerot> marcospgp: sometimes it is just best to start
[14:08:22] *** jk-5 has quit IRC
[14:08:25] <marcospgp> Zerot: But I don't know how to start
[14:08:26] *** rockfordal has joined #angularjs
[14:08:53] *** dbouwman has quit IRC
[14:08:59] <Zerot> marcospgp: open text editor. add line: angular.module('app', []);
[14:09:02] <m1hael> hi, i have a list (created with ng-repeat) and i have a checkbox which is bound to a value in my scope. now i want to filter the displayed list items depending on the value of the checkbox. what is the best approach?
[14:09:45] <Zerot> marcospgp: think about what you want to build. find a small part of it that sounds relatively easy to implement. implement it
[14:09:47] *** danielpquinn has joined #angularjs
[14:09:52] *** Nizumzen has joined #angularjs
[14:10:06] *** tfennelly has joined #angularjs
[14:10:14] *** instence has joined #angularjs
[14:10:23] <marcospgp> Zerot: thanks man!
[14:10:36] *** instence_ has quit IRC
[14:10:42] *** arizzo has joined #angularjs
[14:10:53] *** harvey203 has quit IRC
[14:11:47] *** ustunozg_ has joined #angularjs
[14:12:28] *** thomastuts has joined #angularjs
[14:13:10] <marcospgp> Is mongodb + nodejs worth looking into? I haate mysql to be honest
[14:13:46] *** azizur has quit IRC
[14:14:22] <G1eb> marcospgp, yes
[14:14:24] *** danielpquinn has quit IRC
[14:14:38] <G1eb> is 'resolve' the only way of loading the data before changing states?
[14:14:45] <marcospgp> Gleb: thanks
[14:14:46] *** benjf has quit IRC
[14:14:53] *** benjf_ has joined #angularjs
[14:14:56] *** arizzo has quit IRC
[14:15:04] *** tfennelly has quit IRC
[14:15:04] *** night-owl2 has quit IRC
[14:15:15] <Zerot> marcospgp: depends. do you need a nosql db? both relational as well as nosql dbs have their place and both serve a different function
[14:15:17] *** Joulse has joined #angularjs
[14:15:34] <Zerot> marcospgp: instead of mysql, look into postgresql if you want a different relational database
[14:15:57] *** Milanito has joined #angularjs
[14:16:28] <marcospgp> Zerot: Well I don't know, what I need is the basic stuff you need from a backed, user details and information associated to an id
[14:16:37] <marcospgp> backend*
[14:16:49] *** fouzko has joined #angularjs
[14:17:05] *** fouzko has quit IRC
[14:17:12] <m1hael> ok. found it (i think). in angular a filter is not a filter (in the common sense). it is more a of a transfomer. but the filter filter ( what a genius name ) does take a function and can filter the list.
[14:17:45] *** TorchDragon has joined #angularjs
[14:17:47] *** Alex_______ has joined #angularjs
[14:18:07] *** MathiasM has quit IRC
[14:18:26] <storkme> Zerot: this means I need to expose the property from my factory/service, right? is there any way to expose it as like a read-only property, so I don't accidentally try to set it somewhere?
[14:18:53] *** joshontheweb has joined #angularjs
[14:19:03] *** gnar_matix has joined #angularjs
[14:19:07] <marcospgp> Is there a certain order the different files should be included in the index.html? If the main module depends on other modules, do I have to include those before the main one?
[14:19:21] *** avens has quit IRC
[14:19:21] *** justinobney has quit IRC
[14:19:45] *** Hounddog has quit IRC
[14:19:56] *** justinobney has joined #angularjs
[14:19:57] *** joshontheweb has quit IRC
[14:20:24] *** foofoobar has quit IRC
[14:20:26] *** fels_zh_ has quit IRC
[14:20:46] *** HelperW_ has quit IRC
[14:21:01] *** jk-5 has joined #angularjs
[14:21:01] *** fels_zh has joined #angularjs
[14:21:06] <Zerot> storkme: not really. js does have ways to make properties with only a getter. Look at the Object functions on mdn.
[14:21:15] *** drej has quit IRC
[14:21:17] *** faviouz has joined #angularjs
[14:21:19] *** MathiasM has joined #angularjs
[14:21:28] *** jaxtrx has left #angularjs
[14:21:32] *** Milanito has quit IRC
[14:21:48] <Zerot> marcospgp: no. order doesn't really matter. The only thing that matters is that they need to be loaded before angular is bootstrapped. which is at document.ready when your use the ng-app directive
[14:21:50] *** gnar_matix has quit IRC
[14:21:57] *** alinou has joined #angularjs
[14:22:00] *** gnar_matix has joined #angularjs
[14:22:14] *** TorchDragon has quit IRC
[14:22:21] *** fels_zh_ has joined #angularjs
[14:22:22] *** fels_zh has quit IRC
[14:22:27] *** Alex_______ has quit IRC
[14:23:14] *** gnar_matix has quit IRC
[14:23:22] *** gnar_matix has joined #angularjs
[14:23:52] *** jumpstracks has joined #angularjs
[14:24:24] *** \du has joined #angularjs
[14:24:33] *** justinobney has quit IRC
[14:25:33] *** intellix has joined #angularjs
[14:25:35] <storkme> I defined a function in my scope that evaluates the property being watched, and it appears angular re-evaluated this function when the value changed in the background. Is this voodoo or something? I think I should probably read up on this.
[14:25:44] *** DevAntoine has joined #angularjs
[14:25:50] *** Guest60427 is now known as jory
[14:25:51] *** seydoggy has quit IRC
[14:26:08] *** jamto11 has joined #angularjs
[14:26:23] *** seydoggy has joined #angularjs
[14:26:35] *** jumpstracks has quit IRC
[14:26:59] *** jumpstracks has joined #angularjs
[14:27:00] *** okapi has joined #angularjs
[14:27:01] *** sdouglas has joined #angularjs
[14:27:43] <intellix> back again Fox :P as long as I have my fork I don’t mind, can use that one still
[14:27:58] *** okapi is now known as okapii
[14:28:03] *** Sebastien-L has quit IRC
[14:28:06] <intellix> it’s because I’m using angular-gettext so wanted to put the header and content through the translate filter (I don’t send HTML personally)
[14:28:23] <Foxandxss> intellix: ah, I see
[14:28:54] <Foxandxss> I'll try to adapt it so it will work for you
[14:28:57] <sacho> storkme, test case please.
[14:29:03] <Foxandxss> I am fixing another PR atm :p
[14:29:29] *** orion1111 has quit IRC
[14:29:35] *** Milanito has joined #angularjs
[14:30:21] *** aljohri has joined #angularjs
[14:30:37] *** jamto11 has quit IRC
[14:30:46] *** seydoggy has quit IRC
[14:30:47] *** jb076 has joined #angularjs
[14:30:49] *** tangorri has joined #angularjs
[14:30:53] *** jb076 has quit IRC
[14:31:30] *** dc_ has joined #angularjs
[14:32:09] *** sdouglas has quit IRC
[14:33:12] *** quantax- has joined #angularjs
[14:33:18] *** sk87 has joined #angularjs
[14:34:02] <tangorri> anyone's tip to manage mouseOut event here ?
[14:35:06] <tangorri> I'd like to close my panel on mouseDownOuside event (like flex event -_-)
[14:35:57] *** bengillies has joined #angularjs
[14:36:03] *** blakef has quit IRC
[14:36:06] *** dc_ has quit IRC
[14:36:18] *** OdinIncarnate has joined #angularjs
[14:37:12] *** blakef has joined #angularjs
[14:37:40] *** msafi1 has joined #angularjs
[14:37:50] *** Sebastien-L has joined #angularjs
[14:38:04] *** msafi has quit IRC
[14:38:29] *** SpearThruster has quit IRC
[14:39:34] *** mogaj has quit IRC
[14:39:52] *** DrMabuse_ has joined #angularjs
[14:41:57] *** soichih has joined #angularjs
[14:42:56] *** bkuberek has joined #angularjs
[14:43:11] *** jerev is now known as jerev_away
[14:43:36] *** jerev_away is now known as jerev
[14:43:48] *** jerev has left #angularjs
[14:44:38] *** DrMabuse_ has quit IRC
[14:45:22] *** kennbrodhagen has joined #angularjs
[14:45:36] *** sigurding has quit IRC
[14:45:41] *** arizzo has joined #angularjs
[14:46:00] *** gnar_matix has quit IRC
[14:46:30] *** chachan has joined #angularjs
[14:46:33] *** \du has quit IRC
[14:47:02] <djam90> if I have HTML coming from database and I am outputting it in the view in an expression, how can I parse it as HTML? for example <br> shows on the page and not as an actual break tag
[14:47:09] *** gnar_matix has joined #angularjs
[14:47:14] <chachan> hey guys, I have this: <option ng-repeat="opt in optsAirlines" value="{{opt.id}}">{{opt.name}}</option>
[14:47:23] *** fedenunez has joined #angularjs
[14:47:24] *** bkuberek has quit IRC
[14:47:27] <chachan> how can I orderBy opt.name?
[14:47:51] <chachan> I tried adding | orderBy:opt.name, but it's not working at all
[14:48:08] <wafflejock_> chachan: | orderBy:'name'
[14:48:20] *** dancek has quit IRC
[14:48:22] <chachan> wafflejock_: not need to "opt.
[14:48:24] <chachan> ?
[14:48:35] <wafflejock_> think that's what you need.... sorry just got up my brain isn't working yet... one minute
[14:48:55] <wafflejock_> https://docs.angularjs.org/api/ng/filter/orderBy
[14:48:58] <wafflejock_> yea that should work
[14:49:06] <wafflejock_> says the expression can be a string like 'name'
[14:49:10] *** disorder20 has quit IRC
[14:49:30] <chachan> wafflejock_: indeed, it does :) Thanks!
[14:49:34] *** milka has quit IRC
[14:49:34] <wafflejock_> np
[14:49:56] *** kennbrodhagen has quit IRC
[14:50:04] *** arizzo has quit IRC
[14:50:17] *** shinnya has joined #angularjs
[14:50:33] <wafflejock_> djam90: you need to use ngSanitize and ng-bind-html to show the HTML in the page
[14:50:35] *** milka has joined #angularjs
[14:50:46] <djam90> how do I use that?
[14:51:01] *** drbee has quit IRC
[14:51:10] *** xjiujiu has quit IRC
[14:51:15] *** mkulke has joined #angularjs
[14:51:56] <wafflejock_> djam90: you have to inlcude angular-sanitize.js then include the ngSanitize module in your app, then for strings that you want to be trusted as HTML you use $sce.trustAsHtml https://docs.angularjs.org/api/ng/service/$sce
[14:52:13] <djam90> that seems a lot of work to make HTML work
[14:52:29] *** xjiujiu has joined #angularjs
[14:52:34] <wafflejock_> Can I disable SCE completely?
[14:52:34] <wafflejock_> Yes, you can. However, this is strongly discouraged. SCE gives you a lot of security benefits for little coding overhead. It will be much harder to take an SCE disabled application and either secure it on your own or enable SCE at a later stage. It might make sense to disable SCE for cases where you have a lot of existing code that was written before SCE was introduced and you're migrating them a module at a time.
[14:52:47] <wafflejock_> it stops from having injection problems
[14:53:03] <wafflejock_> this way <script> blocks your "users" inject into the page won't be executed
[14:53:05] *** okapii has quit IRC
[14:53:26] <wafflejock_> someone could put a script in there that send the users data to some other service or something like that
[14:53:30] <wafflejock_> having SCE stops that
[14:53:57] <djam90> i only have a <br> tag that I need to make work, do I really need to start including extra files?
[14:53:58] *** peldan has quit IRC
[14:54:09] <wafflejock_> djam90: if you want to use html in a page that comes from code yes
[14:54:20] <djam90> damn
[14:54:20] <wafflejock_> otherwise you disable it and take the security risk
[14:54:31] <djam90> is it still possible without sce
[14:54:55] *** peldan_ has joined #angularjs
[14:55:02] <wafflejock_> yeah see the part I pasted above in the page I linked it has instructions to disable
[14:55:12] <wafflejock_> I wouldn't do it though
[14:55:13] *** Milanito has quit IRC
[14:55:14] *** enxtur has quit IRC
[14:55:45] *** HardFu has quit IRC
[14:55:54] *** sunisu has joined #angularjs
[14:56:39] *** annlewis has joined #angularjs
[14:56:44] <wafflejock_> the code to use SCE isn't really that terribly complicated or long
[14:57:00] *** sunisu has quit IRC
[14:57:10] *** xjiujiu has quit IRC
[14:57:21] <wafflejock_> and it saves you and your users from potential security risks I don't see a good reason to disable that aside from what they note in the docs for a migration effort that would eventually end in using SCRE
[14:57:23] <wafflejock_> SCE*
[14:57:58] *** Milanito has joined #angularjs
[14:58:15] *** djam90 has quit IRC
[14:59:08] *** \du has joined #angularjs
[14:59:10] *** feelfine has quit IRC
[15:00:24] *** peldan_ has quit IRC
[15:00:57] *** peldan has joined #angularjs
[15:01:08] *** annlewis has quit IRC
[15:01:20] *** ngoyal has joined #angularjs
[15:01:42] *** fbenoit has quit IRC
[15:01:50] *** drej has joined #angularjs
[15:02:03] *** xjiujiu has joined #angularjs
[15:02:26] <wafflejock_> happy 4th to my fellow merikans in the chat (and everyone else)
[15:02:28] <marcospgp> Hm I just had an idea
[15:02:52] <marcospgp> what if I had multiple css files for each partial and such, and with grunt on the build process I just concatenated all of them?
[15:03:16] <marcospgp> easy and organized development, with no need for injecting css or whatever you'd call it
[15:03:33] <wafflejock_> marcospgp: you can do that but typically it's easier to have consolidate CSS IMO
[15:03:46] <marcospgp> wafflejock_: consolidate CSS?
[15:03:49] <wafflejock_> I just started using LESS on a project and am really liking it to make things more concise
[15:04:06] <wafflejock_> marcospgp: yeah I mean just having a few CSS files rather than bits of CSS scattered throughout code
[15:04:27] <wafflejock_> no styles only classes in the HTML and only a few CSS files (or less files that just compile into CSS)
[15:04:43] <marcospgp> wafflejock_: oh sure, but I meant for each partial html file, having its own css near it so it is easier to know which css applies where
[15:05:07] <wafflejock_> yeah I'm saying I would just do that all in one CSS file, with less you can nest CSS classes which makes it easier
[15:05:10] *** fels_zh_ has quit IRC
[15:05:13] *** senayar_ has joined #angularjs
[15:05:21] *** dbouwman has joined #angularjs
[15:05:22] <wafflejock_> so you can make a class that is at the top level of each partial that makes sense for that partial
[15:05:35] *** arizzo has joined #angularjs
[15:05:55] <marcospgp> wafflejock_: Yep not following you here :D
[15:05:56] *** avens has joined #angularjs
[15:05:59] <wafflejock_> then in the CSS you just have a section that matches and you can style all the parts within that section (because of the nested classes in CSS and how that becomes just like the nested hierarchy of the DOM it's easy to see what goes where)
[15:06:09] *** ngoyal has quit IRC
[15:06:09] *** squeakytoy has quit IRC
[15:06:13] *** cbeacock has joined #angularjs
[15:06:32] *** massi_syed has quit IRC
[15:06:54] *** wiherek has joined #angularjs
[15:07:02] <wafflejock_> marcospgp: one sec trying to find an example of what I'm talking about in less
[15:07:29] <wafflejock_> marcospgp: http://stackoverflow.com/questions/5117133/less-css-nesting-classes
[15:07:30] *** wxo has joined #angularjs
[15:07:40] <wiherek> hi, I am creating a ng-repeat list of articles, sorted by date, and whenever the month switches, I need to insert a blank item with the month name
[15:07:47] <ppppaul> i find CSS pretty confusing
[15:07:53] *** dancek has joined #angularjs
[15:07:55] *** h4pless has joined #angularjs
[15:08:04] <wiherek> can I do that from within the list somehow?
[15:08:10] <wafflejock_> marcospgp: so you can have a thing in your CSS like
[15:08:10] <wafflejock_> .homePage{
[15:08:11] <wafflejock_> header{}
[15:08:11] <wafflejock_> .someImage{}
[15:08:11] <wafflejock_> }
[15:08:15] *** senayar has quit IRC
[15:08:18] <wafflejock_> sorry should have pastebinned
[15:08:21] *** azizur has joined #angularjs
[15:08:44] <marcospgp> hm that looks pretty weird to me :D
[15:08:51] <wafflejock_> and that makes it so only header elements and elements with the class someImage in the object with a class that says homePage will get those styels
[15:09:00] <wafflejock_> well I didn't fill in the styles
[15:09:06] <wafflejock_> just trying to show the CSS structure for less
[15:09:13] <wafflejock_> it would match the DOM structure more closely
[15:09:33] *** dbouwman has quit IRC
[15:09:58] *** xjiujiu has quit IRC
[15:10:14] *** shinnya has quit IRC
[15:10:27] *** xjiujiu has joined #angularjs
[15:10:37] <wafflejock_> marcospgp: how CSS determines which styles to apply depends on the specificity of a style and where it's applied and what order they're applied in (and what has !important on it) so it can become a mess if you have a ton of CSS files on top of all those rules to figure out why a style is applied
[15:10:43] *** danielpquinn has joined #angularjs
[15:10:44] *** TorpedoSkyline has joined #angularjs
[15:10:52] *** squeakytoy has joined #angularjs
[15:10:56] *** anjumkaiser has joined #angularjs
[15:11:00] *** GeertV___ has quit IRC
[15:11:01] *** tomzx`afk is now known as tomzx
[15:11:17] *** jdj_dk has quit IRC
[15:11:27] <marcospgp> wafflejock_: I get it now, read some less documentation ahah thanks :D
[15:11:47] <wafflejock_> np yeah I think I'm gonna start using it on my other projects going forward
[15:11:56] *** peldan_ has joined #angularjs
[15:12:10] *** SeniorMVC has joined #angularjs
[15:12:16] <SeniorMVC> kk
[15:12:32] *** SeniorMVC has quit IRC
[15:12:58] *** \du has quit IRC
[15:12:58] *** gnar_matix has quit IRC
[15:12:58] *** gnar_mat_ has joined #angularjs
[15:13:08] *** combat has quit IRC
[15:13:58] *** GeertV____ has joined #angularjs
[15:14:04] *** arizzo has quit IRC
[15:14:29] *** cboden has joined #angularjs
[15:15:02] *** peldan has quit IRC
[15:15:21] *** shinnya has joined #angularjs
[15:15:51] *** danielpquinn has quit IRC
[15:15:53] *** xjiujiu has quit IRC
[15:15:58] *** rburns has joined #angularjs
[15:16:18] *** xjiujiu has joined #angularjs
[15:16:49] *** Milanito has quit IRC
[15:16:56] *** TorpedoSkyline has quit IRC
[15:17:03] *** lw has joined #angularjs
[15:17:32] *** aslate has quit IRC
[15:17:38] *** bayousoft has joined #angularjs
[15:17:48] *** lw has joined #angularjs
[15:17:50] *** svycka has quit IRC
[15:17:55] *** dariocravero has quit IRC
[15:17:56] <h4pless> Is there any reason why popstate events and angular wouldn't work together? Assuming this is a fully functional angular app with the currentTab starting as 'show' here's the offending code: https://gist.github.com/anonymous/d9562c10198d8dabfbce The issue is that when you click the back button, you get 'index' printed to the console, but angular does not register the change to currentTab
[15:18:16] *** dariocravero has joined #angularjs
[15:19:03] <wafflejock_> wiherek: not enough info there to tell you what to do but feel free to show a demo or elaborate
[15:19:30] <wiherek> nevermind. I just thought about it, I'll modify the list before displaying it
[15:19:33] *** Siyfion has quit IRC
[15:19:37] <wiherek> tx though
[15:20:05] *** MTGap has joined #angularjs
[15:20:05] <wafflejock_> h4pless: if you are doing something outside of angular context like listening to events then want a change in angular to be known you need to call $scope.$apply() to trigger a digest which means all the watches will be processed
[15:20:09] <wafflejock_> wiherek: sure
[15:20:20] <ansu> is pnkr.co down?
[15:20:27] *** samsamm777 has joined #angularjs
[15:20:30] <ansu> plnkr.co ^^
[15:20:39] <wafflejock_> definitely slow response
[15:20:42] <wafflejock_> maybe down
[15:20:49] <h4pless> wafflejock_, I'll look into that. Thanks for the quick reply
[15:21:00] <wafflejock_> h4pless: sure thing
[15:21:09] <wafflejock_> ansu: yeah I think she be down
[15:21:17] <wafflejock_> yar
[15:21:28] *** squeakytoy has quit IRC
[15:21:29] *** pluma has quit IRC
[15:21:57] <wafflejock_> http://www.isitdownrightnow.com/plnkr.co.html
[15:22:17] <wafflejock_> unable to connect to any application instances it says
[15:22:21] *** combat has joined #angularjs
[15:22:24] <ansu> yep got that message too
[15:22:26] <wafflejock_> think they have some cluster config issue
[15:22:40] <wafflejock_> maybe just restarting some things
[15:23:28] <wafflejock_> plnkr has a pretty decent page rank for being a site for geeks, I suppose everyone links there
[15:23:45] *** gnar_matix has joined #angularjs
[15:23:49] *** aslate has joined #angularjs
[15:23:56] *** dancek has quit IRC
[15:23:59] <ansu> wafflejock_, maybe you have an idea for this: i'm trying to reformat user input (date string through a datepicker) by a directive that pushes a formatter function to the ngModelController, but well it doesn't format after selecting a date ?
[15:24:10] *** ascarter has joined #angularjs
[15:24:38] *** gnar_mat_ has quit IRC
[15:24:53] <wafflejock_> ansu: sorry not familiar with using the formatters or parsers really just aware they are there
[15:25:10] *** arizzo has joined #angularjs
[15:25:32] <wafflejock_> also I haven't fiddled much with the input type="date" I think the support is flakey, so far when I needed a date input I've used the bootstrap ui datepicker mostly
[15:25:41] *** TorpedoSkyline has joined #angularjs
[15:25:52] *** dancek has joined #angularjs
[15:26:13] *** xjiujiu has quit IRC
[15:26:13] *** intellix has quit IRC
[15:26:33] *** Daven__ has quit IRC
[15:26:40] *** xjiujiu has joined #angularjs
[15:27:09] *** \du has joined #angularjs
[15:27:48] *** TorpedoSkyline has quit IRC
[15:27:55] *** rystraum has joined #angularjs
[15:27:58] *** bayousoft has quit IRC
[15:28:17] *** DrMabuse has quit IRC
[15:29:08] <ansu> wafflejock_, i don't use type="date" neither, also a datepicker, but i want the model value to be iso formatted and the value the user sees to be localized.
[15:29:12] *** Jae has quit IRC
[15:29:33] *** arizzo has quit IRC
[15:29:34] *** motionman has joined #angularjs
[15:29:34] *** motionman has joined #angularjs
[15:30:00] <ansu> so e.g. in the model "2014-07-04" and "04.07.2014" should be displayed in the input field.
[15:30:08] *** Daven__ has joined #angularjs
[15:31:15] *** rystraum has quit IRC
[15:31:27] *** rystraum has joined #angularjs
[15:32:06] <wafflejock_> ansu: yeah typically I've just dealt with doing the date formatting somewhere in the service object before sending data back to the API or when receiving data from the API, it's not ideal but like I said just haven't looked into formatters yet
[15:32:54] *** jbourassa has joined #angularjs
[15:33:20] *** seydoggy has joined #angularjs
[15:33:24] <wafflejock_> ansu: have you checked that your formatter function is being called?
[15:33:40] *** alt_qq has joined #angularjs
[15:33:42] <wafflejock_> and that it has a return value?
[15:35:16] *** secondjeff has joined #angularjs
[15:35:34] *** xjiujiu has quit IRC
[15:35:55] *** alpha080 has quit IRC
[15:36:02] *** xjiujiu has joined #angularjs
[15:37:06] *** aljohri has quit IRC
[15:37:36] *** Ch4rAss has quit IRC
[15:37:39] <ansu> wafflejock_, it has a return value but it's not being called
[15:38:04] *** corban has joined #angularjs
[15:38:13] *** sirkitree|afk is now known as sirkitree
[15:38:21] <ansu> wafflejock_, so in you're approach you're going to convert the date strings from the API into js Date objects and vice-versa ?
[15:38:28] *** alt_qq has quit IRC
[15:38:32] <m1hael> hi, i am trying to use angular-leaflet. any idea where one would add a layergroup? controller?
[15:38:42] <CocoStorm> Hi guys, I currently have a list of items with checkboxes. Each checkbox has an ng-click="toggleSeletion($index)" where toggleselection adds the index to an array so tht when delete selected is clicked, a function uses that array to splice each item in that array so that the checked items are deleted. How can I have a select all checkbox to achieve the same thing? I don't think the togglesSelectio
[15:38:42] <CocoStorm> n function gets called because I'm not actually clicking on them
[15:39:11] *** alt_qq has joined #angularjs
[15:39:15] <CocoStorm> they just appear checked
[15:39:23] <CocoStorm> or at least that's what I think the problem is
[15:39:35] <CocoStorm> and plus I can't get the select all checkbox to work
[15:39:41] *** sirkitree is now known as sirkitree|afk
[15:39:58] *** rystraum has quit IRC
[15:40:28] *** rystraum has joined #angularjs
[15:40:31] *** arizzo has joined #angularjs
[15:40:39] *** DrMabuse has joined #angularjs
[15:40:54] *** gnar_matix has quit IRC
[15:41:49] *** jdj_dk has joined #angularjs
[15:42:08] <wafflejock_> ansu: yeah basically
[15:42:21] *** intellix has joined #angularjs
[15:42:22] *** dariocravero has quit IRC
[15:42:58] <wafflejock_> ansu: depends on the exact scenario what I'd be converting to/from but typically just converting a SQL friendly datetime or timestamp or whatever into a JS Date or a Moment using MomentJS then do other stuff from there
[15:43:40] *** alt_qq has quit IRC
[15:43:48] *** bkuberek has joined #angularjs
[15:44:35] <msafi1> If my ng-model is a JavaScript object { name: 'foo', value: 'bar' }, can I still get the <input> element to display whatever is the property 'name'?
[15:44:41] *** msafi1 is now known as msafi
[15:44:42] *** arizzo has quit IRC
[15:44:46] <tangorri> directive : can I prototype handler for all [btn] children of an element ?
[15:44:54] <wafflejock_> CocoStorm: typically I would be binding a selected property to the model for each repeated item like ng-model="item.selected" then in the JS you can loop over items and change the selected value
[15:45:00] *** CodeFriar has joined #angularjs
[15:45:11] *** rystraum has quit IRC
[15:45:20] <wafflejock_> msafi: yeah something like ng-model="myModel.name"
[15:45:21] *** DrMabuse has quit IRC
[15:45:31] *** Freeman42x has joined #angularjs
[15:45:56] *** xjiujiu has quit IRC
[15:45:57] <tangorri> ok need to write another directive maybe
[15:46:06] *** boptop has joined #angularjs
[15:46:09] <CocoStorm> wafflejock_, so you'd get rid of my ng-click?
[15:46:10] <msafi> wafflejock_: the problem is that I have a directive that assigns an object { name: 'foo', value: 'bar' } to ngModel. If I do like you said, the directive is gonna assign that object to myModel.name
[15:46:16] *** jdj_dk has quit IRC
[15:46:24] *** xjiujiu has joined #angularjs
[15:46:33] <ansu> wafflejock_, I though of this approach too, because I needed sorting on dates, but then again if you use ISO date formats the lexicographical order corresponds to the chronological order.
[15:46:36] <wafflejock_> CocoStorm: you probably could if you track the selected on the items
[15:46:41] *** bayousoft has joined #angularjs
[15:47:18] <CocoStorm> wafflejock_, but how would I be able to splice each item when delete selected is called?
[15:47:29] <wafflejock_> msafi: not clear what you're doing really provide some code ideally in a plnkr.co looks like they're back up ansu
[15:47:29] <CocoStorm> I would need an arrya of the indexes to be spliced
[15:47:59] *** mrogne has quit IRC
[15:48:02] <wafflejock_> CocoStorm: you can step through the list for each one that is selected you can use the current iterator value as the index (i) to splice out the element
[15:48:16] <wafflejock_> you'll have to decrement the counter I think when you splice so you check that element again though
[15:48:26] <wafflejock_> since the list will shift
[15:48:47] *** bkuberek has quit IRC
[15:48:50] *** fedenunez has quit IRC
[15:48:58] *** mrogne_busy has joined #angularjs
[15:49:07] *** DrMabuse has joined #angularjs
[15:49:20] <wafflejock_> ansu: well on the SQL side you still have the date type or whatever so the sorting will work and if you convert to Date() or MomentJS types those should sort according to the date as well
[15:49:23] <msafi> wafflejock_: basically, I want to be able to assign a javascript object to an ng-model of an input field of type text <input type='text' ng-model='my.model'> but when this <input> field is rendered, I want its text box to have the value of my.model.name, not my.model
[15:49:47] *** IJNX has joined #angularjs
[15:50:18] <wafflejock_> msafi: that doesn't really make sense to me
[15:50:23] *** faviouz has quit IRC
[15:50:39] <wafflejock_> msafi: you are giving it a thing to two way bind to but you want it to show something other than what it's bound to
[15:50:47] <wafflejock_> so when someone types there does it remove the object
[15:50:47] <wafflejock_> ?
[15:50:47] *** gnar_matix has joined #angularjs
[15:50:48] *** arizzo has joined #angularjs
[15:51:16] <ansu> wafflejock_, i agree and i totally see the benefits of how you handle it :)
[15:51:19] *** rystraum has joined #angularjs
[15:51:24] <CocoStorm> wafflejock_, so for i=0, i<list.length, i++ { if item.selected == true, splice i. } What did you mean by decrement the counter?
[15:51:29] <msafi> wafflejock_: i see what you're asking. let me think about it...
[15:51:42] <wafflejock_> 3 conversations at once fun :P
[15:51:44] *** MTGap has quit IRC
[15:52:15] <wafflejock_> ansu: cool yeah let me know if you figure out what's up with the formatters but otherwise something of a solution
[15:52:48] *** gnar_matix has quit IRC
[15:52:52] <wafflejock_> CocoStorm: I mean when you splice i do i-- so that i stays at the same number cause say you remove element 10, well now element 11 is in element 10's spot and we want to check element 10 again (cause really that's now element 11)
[15:53:14] <wafflejock_> or I suppose do the reverse traversal
[15:53:35] <wafflejock_> so start at the end of the list that way when you remove them you don't affect the next one your going to check
[15:53:38] *** cthrax has joined #angularjs
[15:53:47] *** bkuberek has joined #angularjs
[15:53:50] *** xjiujiu has quit IRC
[15:54:16] *** xjiujiu has joined #angularjs
[15:54:37] *** night-owl-MBP has joined #angularjs
[15:54:41] *** peldan_ has quit IRC
[15:54:55] *** AlSquirikou has quit IRC
[15:55:02] *** arizzo has quit IRC
[15:55:06] *** AlSquirikou has joined #angularjs
[15:55:53] *** xjiujiu has quit IRC
[15:56:31] *** atomical has joined #angularjs
[15:56:36] *** annlewis has joined #angularjs
[15:56:45] *** Siecje has joined #angularjs
[15:57:13] *** AlSquirrel has joined #angularjs
[15:57:51] *** rystraum_ has joined #angularjs
[15:58:22] *** aljohri has joined #angularjs
[15:58:30] <CocoStorm> wafflejock_, I see I'll give it a shot. I've just tried using the ng-model="item.Selected" as you say but when I click on the 'select all' checkbox nothing happens and then I uncheck that box and all the checkboxes are ticked, but if I check it again they are unticked (so the reverse is happening for some reason)
[15:58:53] *** jayrobot has quit IRC
[15:59:18] *** AlSquirikou has quit IRC
[15:59:21] <wafflejock_> CocoStorm: can you show a sample in pnlkr
[15:59:37] *** FunnyLookinHat has joined #angularjs
[15:59:55] *** Daven__ has quit IRC
[16:00:08] *** tendencydriven has quit IRC
[16:00:10] <CocoStorm> wafflejock_, okay one sec
[16:00:28] *** jayrobot has joined #angularjs
[16:00:34] *** rystraum has quit IRC
[16:00:56] <m1hael> hi, i have a checkbox and want to call a function in the controller using ng-click. but how do i get the state of the checkbox in the function?
[16:01:14] *** annlewis has quit IRC
[16:01:17] <tangorri> m1hael : like in vanillaJS
[16:01:27] <m1hael> tangorri: ?
[16:01:27] <tangorri> m1hael : think with model not dom
[16:01:29] <wafflejock_> m1hael: typically you use the model to store the selected state
[16:01:37] *** tfennelly has joined #angularjs
[16:01:53] *** sigurding has joined #angularjs
[16:02:06] <wafflejock_> m1hael: so you are just checking some property of your model on the scope to see if it's selected or not
[16:02:07] <m1hael> tangorri: LOL. thanx for the hint. already doing it =)
[16:02:14] <tangorri> :)
[16:02:33] *** rystraum_ has quit IRC
[16:03:12] *** peldan has joined #angularjs
[16:03:43] *** braoru has joined #angularjs
[16:04:04] *** TorpedoSkyline has joined #angularjs
[16:04:24] *** elux has joined #angularjs
[16:04:58] *** alt_qq has joined #angularjs
[16:05:38] *** arizzo has joined #angularjs
[16:06:02] *** tfennelly has quit IRC
[16:06:03] *** Guest81517 is now known as JSON_voorhees
[16:06:14] *** dbouwman has joined #angularjs
[16:06:33] *** JSON_voorhees is now known as Guest43899
[16:06:46] *** jumpstracks has quit IRC
[16:06:47] *** anjumkaiser has quit IRC
[16:07:18] *** nfroidure_ has quit IRC
[16:07:40] <m1hael> tangorri: i pass the model to a function in the ng-click attribute. but the state of the model is not yet updated when checked in the called function. any hint?
[16:07:54] *** mennea_ has quit IRC
[16:08:14] *** CodeFriar has quit IRC
[16:08:15] *** wxo has quit IRC
[16:08:49] <tangorri> do not passe the model
[16:08:50] *** wxo has joined #angularjs
[16:08:56] <tangorri> why ?
[16:09:11] <CocoStorm> wafflejock_, http://jsfiddle.net/MarcoCollura/49gXZ/5/
[16:09:15] *** Milanito has joined #angularjs
[16:09:46] *** arizzo_ has joined #angularjs
[16:09:48] *** sk87_ has joined #angularjs
[16:09:59] *** dbouwman has quit IRC
[16:10:01] *** aaronmitchell has joined #angularjs
[16:10:03] *** sk87 has quit IRC
[16:10:12] *** dbouwman has joined #angularjs
[16:10:17] *** danizord has quit IRC
[16:10:34] <wafflejock_> m1hael: http://plnkr.co/edit/3WfDFP6GDrBY5HaTPi4J?p=preview
[16:10:47] *** sk87_ has quit IRC
[16:10:58] *** sk87 has joined #angularjs
[16:11:18] *** alt_qq has quit IRC
[16:11:18] *** danielpquinn has joined #angularjs
[16:11:25] <wafflejock_> CocoStorm: same problem as in my plnkr to m1hael you want ng-change not ng-click
[16:11:27] *** seydoggy has quit IRC
[16:11:32] *** roymiloh has quit IRC
[16:11:45] <wafflejock_> sorry for the misdirection there
[16:11:56] *** jumpstracks has joined #angularjs
[16:11:56] *** arizzo__ has joined #angularjs
[16:11:59] <wafflejock_> didn't realize the model isn't updated yet when you use ng-click
[16:12:00] *** seydoggy has joined #angularjs
[16:12:18] *** jdj_dk has joined #angularjs
[16:12:20] <m1hael> wafflejock_: yes. just found this thread https://github.com/angular/angular.js/issues/4765 ... seems i should use ng-change instead of ng-click
[16:12:26] *** aljohri has quit IRC
[16:12:40] <CocoStorm> I see okay I'll try
[16:13:07] *** arizzo has quit IRC
[16:13:15] *** danizord has joined #angularjs
[16:13:37] *** braoru has quit IRC
[16:14:01] <CocoStorm> wafflejock_, awesome that worked thanks :) now to see if I can implement the delete part
[16:14:01] <CocoStorm> hm
[16:14:05] *** roymiloh has joined #angularjs
[16:14:05] <CocoStorm> one sec
[16:14:17] *** arizzo_ has quit IRC
[16:15:42] *** danielpquinn has quit IRC
[16:15:45] *** CodeFriar has joined #angularjs
[16:15:56] *** Asiajey has quit IRC
[16:16:30] *** Asiajey has joined #angularjs
[16:16:32] *** night-owl-MBP has quit IRC
[16:16:36] *** seydoggy has quit IRC
[16:16:40] *** discipolo has joined #angularjs
[16:16:48] *** jdj_dk has quit IRC
[16:16:49] *** sacho has quit IRC
[16:16:50] *** marcghorayeb has quit IRC
[16:17:59] *** sk87 has quit IRC
[16:18:09] *** sk87_ has joined #angularjs
[16:18:19] *** tomzx is now known as tomzx`afk
[16:18:21] <wafflejock_> there's an interesting bit here in one of the alternative answers about using the label with ng-click as well http://stackoverflow.com/questions/19496821/clicking-a-checkbox-with-ng-click-does-not-update-the-model#
[16:18:33] *** arizzo has joined #angularjs
[16:18:38] <wafflejock_> m1hael: thx for the issue link
[16:19:13] <CocoStorm> wafflejock_, the deletion didn't work http://jsfiddle.net/MarcoCollura/49gXZ/6/
[16:19:14] <wafflejock_> I suppose the ng-change would still work if the label is clicked though
[16:19:27] <CocoStorm> (function is removeClipsTest)
[16:19:41] *** sigurding has quit IRC
[16:19:47] <CocoStorm> for the delete selected button
[16:20:30] *** tangorri has quit IRC
[16:20:58] *** aaronmitchell has quit IRC
[16:21:20] *** ojacobson has joined #angularjs
[16:21:29] *** matt_foucault has quit IRC
[16:21:32] *** arizzo_ has joined #angularjs
[16:21:53] *** cctom_ has quit IRC
[16:22:06] <CocoStorm> am I doing it wrong ;S
[16:22:40] *** arizzo__ has quit IRC
[16:23:13] <wafflejock_> CocoStorm: http://jsfiddle.net/49gXZ/7/
[16:23:51] <wafflejock_> yup so I reversed the traversal of the list and simplified the ng-click business think it can actually be removed
[16:24:33] *** arizzo has quit IRC
[16:24:57] *** seydoggy has joined #angularjs
[16:25:10] *** SomeKittens has joined #angularjs
[16:25:16] <wafflejock_> CocoStorm: yeah removed it still works fine http://jsfiddle.net/49gXZ/8/ since ng-model is updating that value anyhow no need to double duty
[16:25:25] *** Click66 has quit IRC
[16:25:36] <wafflejock_> the main thing here I'd say is don't use $index passed along from the view to do things in the controller
[16:25:46] *** Nizumzen has quit IRC
[16:25:57] <wafflejock_> once you start applying order by or filters to the array the $index isn't going to reliably reflect the order of elements in the original array
[16:26:15] <wafflejock_> instead use the item/datum itself to do operations
[16:26:40] <ansu> wafflejock_, my solution now looks like this: let the datepicker enter the date localized and then I have a parser for localized -> iso and a formatter for iso -> localized.as I don't have to support multiple localization this should be enough ...
[16:26:43] *** CodeFriar has quit IRC
[16:26:51] <CocoStorm> Ohhh I see
[16:26:56] <CocoStorm> yeah that makes sense
[16:27:07] *** Joulse has quit IRC
[16:27:11] <CocoStorm> wafflejock_, so happy that works thanks a lot pal! I'm not entirely sure how you did it
[16:27:12] *** jamto11 has joined #angularjs
[16:27:23] *** Click66 has joined #angularjs
[16:27:31] <CocoStorm> why did you have to reverse it?
[16:27:37] <CocoStorm> starting from the lenght of the list?
[16:27:39] <wafflejock_> CocoStorm: np yeah took a lot of stumbling through this stuff myself the first couple of times around but I just have a bag of rules I apply now...
[16:27:43] *** arizzo_ has quit IRC
[16:27:45] *** Sijdesign has joined #angularjs
[16:27:58] <wafflejock_> the reason for going backwards through the list is when we splice elements from the list we actually change the list
[16:28:04] *** Daven__ has joined #angularjs
[16:28:07] *** Sijdesign has joined #angularjs
[16:28:12] <wafflejock_> if we are stepping forward through the list and we remove an element then the rest of the elements "shift left" to fill in the spot
[16:28:23] <wafflejock_> so now we have to check the same spot again
[16:28:29] *** arizzo has joined #angularjs
[16:28:36] <wafflejock_> if we start at the end we are always going to the left in the list, so when it shifts we don't care
[16:28:39] *** Daven__ has quit IRC
[16:28:42] *** arizzo has quit IRC
[16:28:48] <wafflejock_> we're still just going to the next item to the left in the list
[16:29:01] *** arizzo has joined #angularjs
[16:29:01] <CocoStorm> ohhh I see. Clever!
[16:29:03] <wafflejock_> it basically makes the logic in the loop simpler
[16:29:03] *** Sijdesign has quit IRC
[16:29:06] <CocoStorm> thanks
[16:29:09] <wafflejock_> yup np
[16:29:12] *** TorpedoSkyline has quit IRC
[16:29:22] <CocoStorm> and the other thing i was missing was clipList[i]
[16:29:27] <wafflejock_> ah right
[16:29:28] <CocoStorm> which makes a whole lotta sense
[16:29:29] <CocoStorm> heh
[16:29:45] <CocoStorm> so those two were changed cool I got it
[16:29:54] <CocoStorm> Thanks a lot
[16:29:57] <CocoStorm> :)
[16:30:08] *** marcospgp has quit IRC
[16:30:09] <wafflejock_> yup
[16:30:19] *** TheAceOfHearts has joined #angularjs
[16:30:22] *** hubertus_ has joined #angularjs
[16:30:34] *** marcghorayeb has joined #angularjs
[16:30:52] *** gnar_matix has joined #angularjs
[16:31:04] *** sk87_ has quit IRC
[16:31:21] *** fl0ppy has joined #angularjs
[16:31:53] *** jamto11 has quit IRC
[16:32:26] <wafflejock_> ansu: cool yeah sounds reasonable
[16:32:44] <TheAceOfHearts> NodeConf is cool
[16:32:54] <wafflejock_> where's that?
[16:33:03] *** cctom has joined #angularjs
[16:33:03] *** arizzo has quit IRC
[16:33:19] <TheAceOfHearts> like 1hr north from SF
[16:33:21] <wafflejock_> ah CA
[16:33:31] <TheAceOfHearts> WHERE ELSE WOULD IT BE? MUH FREEDUMS
[16:33:34] <wafflejock_> I gotta get involved in some more Chicago based groups
[16:33:39] *** cpciv1 has quit IRC
[16:33:40] *** arizzo has joined #angularjs
[16:34:52] *** nytrm has quit IRC
[16:35:11] <wafflejock_> I've done some stuff with the arduino group and android user groups but not in a while... crap missed the last LUG meeting, woudl have been a good one too OpenVPN and Docker
[16:35:24] *** RaphaelRocca has joined #angularjs
[16:35:25] *** peldan has quit IRC
[16:35:27] *** avens has quit IRC
[16:35:28] *** annlewis has joined #angularjs
[16:35:32] *** jacuqesdancona_ has quit IRC
[16:35:43] <RaphaelRocca> Hi everyone,
[16:36:02] *** jonasrosenlind has quit IRC
[16:36:03] <wafflejock_> hiya RaphaelRocca
[16:36:04] *** jacuqesdancona_ has joined #angularjs
[16:36:06] <RaphaelRocca> I'm new to angular.. an resolve my older questions here, thank you!..
[16:36:19] <RaphaelRocca> I have a new question..
[16:36:21] <gnar_matix> Hey RaphaelRocca
[16:36:27] <RaphaelRocca> simple i Think..
[16:36:42] *** sigurding has joined #angularjs
[16:37:21] *** seydoggy has quit IRC
[16:37:27] *** intellix has quit IRC
[16:37:29] <RaphaelRocca> I need to make a simple function and use on two diferent buttons on diferent views and diferent controllers..
[16:37:29] *** arizzo_ has joined #angularjs
[16:37:41] <RaphaelRocca> I need to create a directive for that right?
[16:37:48] *** azizur8 has joined #angularjs
[16:37:56] *** seydoggy has joined #angularjs
[16:37:57] *** mikaeldice has quit IRC
[16:38:09] *** arizzo has quit IRC
[16:38:17] <wafflejock_> RaphaelRocca: nope, directives are for DOM manipulation or adding behavior, you probably need a service/factory if you want to share data between the controllers but otherwise no need for a directive based on your descritpion
[16:38:30] *** mikehaas763 has joined #angularjs
[16:38:46] <RaphaelRocca> i already have the function on my servie..
[16:38:50] *** FunnyLookinHat has quit IRC
[16:39:32] <RaphaelRocca> but when i click on the button and the function fire's.. when my promise complete i need to disable the button..
[16:40:02] *** sk87 has joined #angularjs
[16:40:14] <wafflejock_> RaphaelRocca: http://youtu.be/ZhfUv0spHCY?t=19m12s <-- regarding the reasoning for directives
[16:40:22] *** azizur has quit IRC
[16:40:27] *** mikaeldice has joined #angularjs
[16:40:28] *** avens has joined #angularjs
[16:40:32] <wafflejock_> RaphaelRocca: so in both controllers you just need to know if the button has been clicked and the promise has resolved right?
[16:40:33] *** jacuqesdancona_ has quit IRC
[16:40:43] *** AndyFTP has quit IRC
[16:41:04] *** Click66 has quit IRC
[16:41:17] <RaphaelRocca> yeap.. and then disable the button...
[16:41:24] *** DrMabuse_ has joined #angularjs
[16:42:01] <wafflejock_> RaphaelRocca: so that's some information you can store on an object in the service and the inject that service into each controller and assign some $scope property to point to the shared object from the service
[16:42:13] *** TorpedoSkyline has joined #angularjs
[16:42:20] <wafflejock_> RaphaelRocca: in your markup then you'll be able to reference that shared object through your scope property you just assigned to point to the object
[16:42:34] *** seydoggy has quit IRC
[16:42:47] <wafflejock_> RaphaelRocca: my code in the body of this answer shows what I'm trying to describe http://stackoverflow.com/questions/17667455/angular-http-vs-service-vs-ngresource
[16:42:51] *** Absolute0 has joined #angularjs
[16:43:01] <wafflejock_> ignore the overall conversation and just look at the code for now
[16:44:26] *** arizzo_ has quit IRC
[16:44:59] *** arizzo has joined #angularjs
[16:45:21] *** melter has quit IRC
[16:46:02] *** sk87_ has joined #angularjs
[16:46:10] <RaphaelRocca> hmmm ok. thanks.. I'll try this now.. I thing that this resolve my question! Thanks
[16:46:11] *** shinnya has quit IRC
[16:46:13] *** kennbrodhagen has joined #angularjs
[16:46:25] *** DrMabuse_ has quit IRC
[16:46:27] *** sk87 has quit IRC
[16:47:24] <wafflejock_> RaphaelRocca: yup sure let me know if you get hung up.. the main point is never use = to replace the original object from the service or all your other references will be broken so only modify the object by changing it's properties values using = or if it's an array by pushing/popping things, if you need to replace the entire contents of the object/array use angular.copy, if you follow that then you'll never lose the reference
[16:47:24] <wafflejock_> to the original object you made and it should all just work
[16:47:43] *** feelfine has joined #angularjs
[16:47:49] *** TorpedoSkyline has quit IRC
[16:48:07] *** johnstorey has joined #angularjs
[16:48:23] *** chrisshattuck has joined #angularjs
[16:48:36] <Absolute0> If I am not mistaken I believe that angular passed the right factory to a controller based on the name used in constructing the anonymouse function (second arg). Is this so?
[16:48:40] *** juo100 has left #angularjs
[16:49:03] <wafflejock_> Absolute0: yea angular dependency injection depends on reflection of the function parameters
[16:49:11] *** benjf_ is now known as benjf
[16:49:13] <Absolute0> wafflejock_: is this magic or js supports this
[16:49:14] <Absolute0> ?
[16:49:14] *** Nizumzen has joined #angularjs
[16:49:23] *** intellix has joined #angularjs
[16:49:26] *** milka has quit IRC
[16:49:28] <Absolute0> Or can a module only have a single factory?
[16:49:33] <antihero> How do I add text to the "empty" option in ng-options?!
[16:49:40] <wafflejock_> Absolute0: so it reads the param name and looks for the parameter name as string in a list the $injector in angular handles this
[16:49:44] *** arizzo has quit IRC
[16:50:06] <Absolute0> wafflejock_: can js do this? I looked at "arguments" and it's just an array
[16:50:13] <wafflejock_> Absolute0: https://docs.angularjs.org/guide/di
[16:50:20] *** arizzo has joined #angularjs
[16:50:24] *** jae has joined #angularjs
[16:50:34] *** mrogne_busy has quit IRC
[16:50:35] <wafflejock_> Absolute0: yeah JS has some reflection built in
[16:50:45] *** kennbrodhagen has quit IRC
[16:50:48] *** artisangoose has joined #angularjs
[16:50:49] *** sigurding has quit IRC
[16:50:50] *** \du has quit IRC
[16:50:54] <Absolute0> wafflejock_: so how can you a get a functions arg definition?
[16:51:22] *** InezK_away is now known as InezK
[16:51:30] *** sacho has joined #angularjs
[16:51:52] *** nodweber_ has joined #angularjs
[16:52:05] <Absolute0> http://jsfiddle.net/G94Zt/
[16:52:23] *** feelfine has quit IRC
[16:52:30] *** shinnya has joined #angularjs
[16:52:38] <Absolute0> none of foo.member return the names of the args...
[16:52:44] *** arizzo has quit IRC
[16:53:04] *** nodweber has quit IRC
[16:53:19] *** arizzo has joined #angularjs
[16:53:34] <wafflejock_> Absolute0: here's where it does the business https://github.com/angular/angular.js/blob/master/src/auto/injector.js#L73
[16:54:07] <Absolute0> wafflejock_: I see thanks :)
[16:54:11] <Absolute0> Seems like a hack :)
[16:54:20] <wafflejock_> Absolute0: it does
[16:54:28] *** jnaour has quit IRC
[16:54:30] <wafflejock_> but it works I suppose
[16:54:40] <Absolute0> Can that code never fail?
[16:54:40] *** mikehaas763 has quit IRC
[16:54:43] *** tomzx`afk is now known as tomzx
[16:54:47] <Absolute0> I guess it passed the test cases
[16:54:49] *** dancrew32 has joined #angularjs
[16:54:50] <wafflejock_> Absolute0: right :P
[16:54:56] <wafflejock_> I think that's how JS is
[16:55:01] *** devier has quit IRC
[16:55:04] <wafflejock_> does it pass the test... okay well then it's good
[16:55:16] *** disorder20 has joined #angularjs
[16:55:18] *** azizur has joined #angularjs
[16:55:38] <Absolute0> why did the decide to name "function foo("")" a comment?
[16:55:43] <Absolute0> "STRIP_COMMENTS"
[16:56:02] <Absolute0> I would call it, STRIP_NON_ARGS
[16:56:09] *** enxtur has joined #angularjs
[16:56:53] <Absolute0> Do you guys use jquery with angularjs, or is it unecessary?
[16:56:57] <wafflejock_> Absolute0: sorry don't follow ont hat? where does it say something about function foo
[16:57:04] <Absolute0> for ajax stuff
[16:57:08] *** wxo has quit IRC
[16:57:11] *** enriques has joined #angularjs
[16:57:18] <wafflejock_> Absolute0: I don't use jQuery if something I'm using doesn't require it
[16:57:24] <Absolute0> [10:52] <Absolute0> http://jsfiddle.net/G94Zt/
[16:57:26] <wafflejock_> for AJAX stuff I use $resource now but started with $http
[16:58:00] *** tfennelly has joined #angularjs
[16:58:04] *** mrogne_busy has joined #angularjs
[16:58:12] *** azizur8 has quit IRC
[16:58:14] <wafflejock_> Absolute0: not familiar with that syntax why def?
[16:58:27] *** arizzo has quit IRC
[16:58:34] <wafflejock_> that looks like python or something to me (even though I don't know python)
[16:58:37] <Absolute0> wafflejock_: sorry http://jsfiddle.net/G94Zt/1/
[16:58:38] *** mattia90 has quit IRC
[16:58:51] <Absolute0> Oh I assigned, a model to the window. When I updated the model the changes weren't updated in the browser. Does angular call an update after each set to a model?
[16:58:53] *** orion1111 has joined #angularjs
[16:59:08] *** jbourassa has quit IRC
[16:59:10] <Absolute0> window.my_model = $scope.my_model
[16:59:12] *** jae is now known as Jae
[16:59:21] <Absolute0> window.my_model = "new value" <-- doesn't update the model
[16:59:22] *** intellix has quit IRC
[16:59:28] *** instence_ has joined #angularjs
[16:59:39] <wafflejock_> Absolute0: yeah it calls $apply internally in $http and $timeout and ng-click and other things to make the digest occur to update watchers
[16:59:41] <Absolute0> oh perhaps I didn't copy the reference, but the value
[16:59:42] *** kroogs has joined #angularjs
[16:59:55] <wafflejock_> Absolute0: also typically better to use a factory/service to wrap things up instead of throwing them into the global space
[17:00:12] <wafflejock_> Absolute0: factory/service are singletons so when you injected them throughout the app they are using the same instance
[17:00:17] <Absolute0> wafflejock_: I was just running experiments for the sake of science...
[17:00:28] *** instence has quit IRC
[17:00:29] *** azizur8 has joined #angularjs
[17:00:29] *** azizur has quit IRC
[17:00:33] *** mchammer has quit IRC
[17:00:39] *** ascarter has quit IRC
[17:00:50] <wafflejock_> SCIENCE!
[17:00:55] *** TheAceOfHearts has quit IRC
[17:00:56] *** enxtur has quit IRC
[17:00:58] <wafflejock_> that's all good :P
[17:01:34] *** Jae has quit IRC
[17:01:49] *** arizzo has joined #angularjs
[17:02:07] *** mikehaas763 has joined #angularjs
[17:02:14] *** tfennelly has quit IRC
[17:02:21] *** ineedarobot has quit IRC
[17:02:25] *** dancrew32 has quit IRC
[17:02:43] <Absolute0> wafflejock_: how do I call $apply? $scope.$apply?
[17:02:50] <wafflejock_> yeah typically looks like that
[17:02:51] *** DrMabuse has quit IRC
[17:02:56] *** Stephen has joined #angularjs
[17:03:07] *** mikehaas763 has quit IRC
[17:03:09] *** kalehv has joined #angularjs
[17:03:14] <wafflejock_> Absolute0: usually you are doing it in a directive when you are handling some event from the browser and want to cause a digest to occur
[17:03:14] *** AviMarcus has quit IRC
[17:03:43] *** kalehv has quit IRC
[17:04:02] <wafflejock_> otherwise usually there is something built into angular to do it for you like $timeout or $http or whatever that will do some other work and call $apply for you
[17:04:16] *** intellix has joined #angularjs
[17:04:21] *** \du has joined #angularjs
[17:04:36] <Absolute0> using window.$scope = $scope along with $scope.$apply did the trick.
[17:04:53] <Absolute0> So everytime an input changes a model $apply is invoked.
[17:04:56] <Absolute0> interesting
[17:04:57] *** kroogs has quit IRC
[17:05:09] *** pluma has joined #angularjs
[17:05:20] *** snyx has quit IRC
[17:05:34] *** RaphaelRocca has quit IRC
[17:05:46] *** mrogne_busy has quit IRC
[17:06:03] *** DevAntoine has quit IRC
[17:06:09] <wafflejock_> sort of... I mean someone wrote the code to call apply wherever they change model related bits, eventually they will be able to observe the data more directly if the browsers support that to clean things up I think and make it all faster and smarter
[17:06:14] *** aslate has quit IRC
[17:06:16] *** mrogne_busy has joined #angularjs
[17:06:23] <Absolute0> These would be some kick-ass interview questions!
[17:06:33] <orion1111> $apply should be called only in directives (links). Am I right?
[17:06:40] <Absolute0> although I would probably fail if I was asked them yesterday
[17:07:27] *** InezK is now known as InezK_away
[17:07:41] *** mennea has joined #angularjs
[17:07:53] *** mzehrer_ has joined #angularjs
[17:07:59] <wafflejock_> orion1111: typically but like $http is a service and calls it same with $timeout http://www.benlesh.com/2013/08/angularjs-watch-digest-and-apply-oh-my.html
[17:07:59] *** DevAntoine has joined #angularjs
[17:08:20] *** mennea has quit IRC
[17:08:25] <wafflejock_> orion1111: in some cases you need to call it from a function and then you use $rootScope to call it but it's not typically needed in that way
[17:08:45] *** hychen has joined #angularjs
[17:08:52] *** azizur8 has quit IRC
[17:08:53] <wafflejock_> Absolute0: I think those are things someone who is applying to be an intermediate/upper position in Angular should be able to answer
[17:09:14] <wafflejock_> Absolute0: I wouldn't expect a new hire coming in at the base level to know things like that necessarily
[17:09:26] *** jshultz has joined #angularjs
[17:09:44] *** dve_ has quit IRC
[17:09:47] *** rockfordal has quit IRC
[17:09:52] <Absolute0> wafflejock_: I was thinking that they would be good js interview questions
[17:09:58] <Absolute0> not the $apply part
[17:10:06] <Absolute0> for someone who has no idea about angular
[17:10:06] <wafflejock_> Absolute0: ah well most of that stuff is all angular specific
[17:10:19] *** amedia has quit IRC
[17:10:26] <Absolute0> "How do you get the names of a functions argument list?"
[17:10:33] *** rockfordal has joined #angularjs
[17:10:48] <Absolute0> "How to store a reference to an objects member and update it at a later time?"
[17:10:59] *** squeakytoy has joined #angularjs
[17:11:05] *** Willow has joined #angularjs
[17:11:11] *** kalehv has joined #angularjs
[17:12:06] *** danielpquinn has joined #angularjs
[17:12:39] *** jae has joined #angularjs
[17:12:52] *** mennea has joined #angularjs
[17:12:56] <wafflejock_> eh not a typical problem either, I'd want people to know things like how do you pass a function to another function, what does it actually do in that process, how do you set default values on objects, what are the possible states an object can be in (undefined, null, or has value truthy/falsey), write a for loop that finds an element based on some key/value, have some understanding of what it means for strings to be immutable
[17:12:56] <wafflejock_> and understanding of references vs values and primitives vs objects
[17:12:58] <Moult> (newbie disclaimer) i'd like to split up my angular controllers/directives/horses/rats into multiple files. what's the best way to load these files and properly include them into a single script tag?
[17:13:08] *** evilaliv4 is now known as evilaliv3
[17:13:08] *** arizzo has quit IRC
[17:13:35] *** azizur has joined #angularjs
[17:13:39] <sacho> Moult, use a tool that will concatenate them
[17:13:41] *** pdillinger has quit IRC
[17:13:44] *** arizzo has joined #angularjs
[17:13:52] <Moult> sacho: cool, what is the current recommended tool?
[17:13:54] <wafflejock_> Moult: you using grunt or gulp yet?
[17:14:04] <Moult> wafflejock_: nope
[17:14:23] <wafflejock_> Moult: gulp I think is the more popular one at this moment in time but probably more grunt stuff out there still since it came first
[17:14:29] *** djam90 has joined #angularjs
[17:14:38] *** bmac has joined #angularjs
[17:14:39] <wafflejock_> Moult: grunt basically does some operation to files and puts them somewhere, gulp does it in memory with pipes
[17:14:46] *** ppppaul has quit IRC
[17:15:20] *** ineedarobot has joined #angularjs
[17:15:24] <wafflejock_> Moult: either way you install grunt or gulp and then you setup a config file that tells it what tasks to run, like concat all my files and minify them, ngmin is a nice one to prepare angular code for minifcation if you didn't use the minsafe syntax with arrays/strings for defining your objects
[17:15:34] *** mrogne_busy has quit IRC
[17:15:42] <Absolute0> wafflejock_: what's the difference between null and undefined?
[17:15:51] <Absolute0> I gues you can't set a var to undefined.
[17:15:57] <wafflejock_> Moult: if you go with grunt I can help you out since I use it but gulp you'd have to find your own way or talk to others here
[17:16:39] *** chrisshattuck has quit IRC
[17:16:40] <wafflejock_> Absolute0: http://stackoverflow.com/questions/2235622/setting-a-variable-to-undefined this answers it more completely than I can in chat easily
[17:17:07] *** Milanito has quit IRC
[17:17:09] *** danielpquinn has quit IRC
[17:17:21] <wafflejock_> Absolute0: it's a common stumbling point in JS when people come from other languages where there is no undefined only null
[17:17:42] *** OdinIncarnate has quit IRC
[17:18:07] <senayar_> what can do double click on mobile device and not in desktop ? can't found how to fix it :( I got a datepicker who work nice on desktop but when i click on arrow or number in calendar on mobile i got twice click on the same element
[17:18:12] *** fbenoit has joined #angularjs
[17:18:22] *** arizzo has quit IRC
[17:18:25] *** aslate has joined #angularjs
[17:18:33] <Moult> wafflejock_: that sounds awesome, i'll go check it out. (a quick google has first impressions rooting for gulp)
[17:18:46] *** marcospgp has joined #angularjs
[17:18:51] <Moult> wafflejock_: as for minification, should i use the minisafe syntax or just not bother?
[17:18:58] <wafflejock_> Moult: yeah I really like how gulp works better honestly but haven't made the switch
[17:19:13] *** digia|away is now known as digia
[17:20:00] *** chrisshattuck has joined #angularjs
[17:20:01] <wafflejock_> Moult: I use ngmin for most everything there are some edge cases that you might have to deal with like if you define things in a strange way or perhaps some ui-router parts you have to use the minsafe parts manually but ngmin does a good job in general if you start with it early and test builds as you move forward you can catch any problems earlier
[17:20:03] *** dve has joined #angularjs
[17:20:20] <wafflejock_> Moult: after ngmin runs it goes through uglify which does the concat and minification
[17:21:04] *** SpearThruster has joined #angularjs
[17:21:50] *** djam90 has quit IRC
[17:22:14] <Moult> wafflejock_: hahahaha just read the ngmin readme. it's a tool dedicated so lazy people don't have to write the minisafe syntax
[17:22:30] <wafflejock_> Moult: truth! :P
[17:22:38] <Moult> "it expands your code so that you can minify it" :D
[17:22:45] <gnar_matix> What is the purpose of minisafe / ngmin??
[17:22:47] <gnar_matix> I've never heard of this
[17:22:48] *** jonasrosenlind has joined #angularjs
[17:22:57] *** cthrax has quit IRC
[17:22:57] <gnar_matix> Is minification not safe? It's the same code is it not :S
[17:22:58] *** hubertu__ has joined #angularjs
[17:23:01] <wafflejock_> I like my code to be not so verbose and it's easy to f up the order of the params and strings and have wackiness ensue
[17:23:05] <Moult> wafflejock_: i think for this case i'm just going to write the code _properly_ :)
[17:23:20] <wafflejock_> it's not out of laziness really
[17:23:36] <Moult> actually, simpler code is a strong motivator
[17:24:01] <wafflejock_> Moult: yeah also when you accidentally swap the string order but not the param order you get confused as can be
[17:24:03] *** kev has joined #angularjs
[17:24:25] <wafflejock_> gnar_matix: it's not minsafe if you don't use minsafe syntax because the parameters will be minified so injection breaks
[17:24:27] *** kev is now known as Guest87548
[17:24:51] <wafflejock_> gnar_matix: http://stackoverflow.com/questions/2235622/setting-a-variable-to-undefined see a note on minification
[17:25:00] <Moult> wafflejock_: ok, i'm convinced to use ngmin :)
[17:25:10] *** save has joined #angularjs
[17:25:47] <orion1111> If I $watch for something, and I manually with code change it, I must use $apply after it?
[17:25:48] <gnar_matix> wafflejock_ and running ngmin will protect against this
[17:25:54] <Moult> wafflejock_: thanks for the quick (and useful) answers. i'm going to give it a spin :)
[17:26:01] *** GeertV____ has quit IRC
[17:26:09] *** hubertus_ has quit IRC
[17:26:23] <wafflejock_> Moult: cool np godspeed
[17:26:26] *** Guest87548 has quit IRC
[17:26:44] <wafflejock_> gnar_matix: ngmin will add the extra array and string bits so then when it runs through the minifier it'll be okay again
[17:26:54] <wafflejock_> gnar_matix: it depends on you using somewhat regular syntax for injection though
[17:26:58] <wafflejock_> not getting too far off the rails
[17:27:35] <wafflejock_> orion1111: it depends on what the context is your changing it in, most of the angular calls will have already called $apply for you
[17:27:38] <gnar_matix> wafflejock_ I'm confused as to what ['$http', function ($http) { .. }] does in addition to function ($http) { .. }
[17:27:48] <wafflejock_> orion1111: if you update the value in some random event handler though you'll need to call $apply
[17:27:58] *** azizur has quit IRC
[17:28:02] <wafflejock_> gnar_matix: it just has a string version of it and strings don't get minified
[17:28:19] <wafflejock_> gnar_matix: so during injection after it's minified it can still see it needs to inject $http as the first argumetn
[17:28:45] *** DangRabbit has joined #angularjs
[17:29:11] <gnar_matix> wafflejock_ Ahh. Okay minification sets short variable names for functions. So then the order of ['$d1', '$d2', function ($d1, $d2) { .. } ] is important as well?
[17:29:11] *** Milanito has joined #angularjs
[17:29:39] *** blakef has quit IRC
[17:29:40] <gnar_matix> wafflejock_ i.e. ['$http', 'ngResource', function (ngResource, $http) { .. } ] will not inject properly
[17:29:59] <wafflejock_> gnar_matix: right
[17:29:59] <wafflejock_> gnar_matix: and leads to massive confusion
[17:30:46] <gnar_matix> wafflejock_ i'm glad i'm figuring out about this now. I was not using the array notation and was running minification on prod build. I haven't USED prod build yet, so I'm sure I would have run into huge problems later haha
[17:30:48] *** narutimateum has quit IRC
[17:31:03] <gnar_matix> wafflejock_ and had NO idea wtf was going on at that point.
[17:31:03] <wafflejock_> gnar_matix: heh yea good timing
[17:32:00] *** madskonradsen has joined #angularjs
[17:32:14] *** samsamm777 has quit IRC
[17:32:34] *** djam90 has joined #angularjs
[17:32:55] *** FunnyLookinHat has joined #angularjs
[17:33:10] *** m1hael has left #angularjs
[17:33:12] <madskonradsen> Do anyone know any good AngularJS forums, where i can get critique on my first Angular-project?
[17:33:23] *** thomasreggi has joined #angularjs
[17:33:35] *** cctom has quit IRC
[17:33:44] <sacho> have you tried code review on SO?
[17:34:05] *** squeakytoy has quit IRC
[17:34:11] *** Mamian has joined #angularjs
[17:34:19] *** thomasreggi has quit IRC
[17:34:22] <wafflejock_> madskonradsen: if it's publicly accesible you could drop the link here
[17:34:32] *** mrogne_busy has joined #angularjs
[17:34:33] *** atomical has quit IRC
[17:34:58] <Moult> wafflejock_: gee, this is much easier than i though. already set it up and i'm rolling along :D
[17:35:40] <wafflejock_> Moult: awesome to hear will have to switch to gulp eventually but already have all my tasks setup in grunt for watches and tests and builds
[17:35:45] *** illume has quit IRC
[17:35:51] <Absolute0> does $http.get call $apply after a success?
[17:35:57] <wafflejock_> Absolute0: yup
[17:36:17] *** DevAntoine has quit IRC
[17:36:22] *** h4pless has quit IRC
[17:36:25] <DangRabbit> Hi, I've got a div with an ng-click="setActiveContainer(item, $event)". I'd only like that function to be called when clicking a blank space in the div. but it's currently being called even when clicking a child element, like for instance when clicking a checkbox. This causes an issue where the checkbox reloads and returns to it's original state.
[17:36:37] *** madskonradsen has left #angularjs
[17:36:52] *** ineedarobot has quit IRC
[17:37:01] <DangRabbit> Perhaps it's because I'm stopping the event from propagating. (which I have to do because I've got a nested template structure)
[17:37:08] *** madskonradsen_ has joined #angularjs
[17:37:18] <DangRabbit> this is what i'm doing with the event variable at the top of the function
[17:37:18] <DangRabbit> if (isDefined($event) && isDefined($event.stopPropagation)) $event.stopPropagation(); if (isDefined($event) && isDefined($event.preventDefault)) $event.preventDefault();
[17:37:56] *** Ymesio has joined #angularjs
[17:38:04] <wafflejock_> DangRabbit: you might be looking at writing a custom directive
[17:38:07] *** dve has quit IRC
[17:38:21] *** shinnya has quit IRC
[17:38:23] <wafflejock_> DangRabbit: think you want to check if the target of the click is the same as the element you registered the click handler on
[17:38:23] *** cmoneylulz has joined #angularjs
[17:38:24] *** seydoggy has joined #angularjs
[17:38:30] <Stephen> Need advice on setting up a local testing cloud for supported browsers
[17:38:42] *** dve has joined #angularjs
[17:38:45] *** arizzo has joined #angularjs
[17:38:49] <pluma> Stephen: "don't"?
[17:38:50] <Stephen> IE: BrowserStack or SauceLabs, only local
[17:38:52] <wafflejock_> local and cloud are confusing?
[17:39:03] *** CodeFriar has joined #angularjs
[17:39:06] *** ineedarobot has joined #angularjs
[17:39:09] <pluma> wafflejock_: I think he means "cloud" as in "bunch of virtual servers"
[17:39:11] <Stephen> I use the term losely
[17:39:13] *** TheAceOfHearts has joined #angularjs
[17:39:15] <Stephen> loosely
[17:39:18] <wafflejock_> okay
[17:39:35] <pluma> Technically "cloud" just means "black box"
[17:39:51] <Stephen> We support IE11 primarily, but also Chrome & Firefox
[17:39:58] *** mkulke has quit IRC
[17:40:07] <TheAceOfHearts> oh man
[17:40:11] <pluma> Stephen: why do you want to build a local one?
[17:40:15] <TheAceOfHearts> I have to support IE10 too, it's terrible
[17:40:24] <Stephen> Evergreen only, thank goodness
[17:40:24] <DangRabbit> wafflejock: good idea, thanks
[17:40:26] *** azizur has joined #angularjs
[17:40:28] * pluma has to support IE8+
[17:40:39] <TheAceOfHearts> AHAHAHAHHAAHHAHHAHA
[17:40:44] <TheAceOfHearts> *cries deeply*
[17:40:57] *** Jon30 has joined #angularjs
[17:40:57] *** Jon30 has joined #angularjs
[17:41:10] <Stephen> pluma: Because I work for a secure facility, and exporting the tests isn't feasible
[17:41:10] <pluma> Well, IE9+ most of the time, but in the next big project we'll need to support IE8 too.
[17:41:27] <madskonradsen_> I have created my first small AngularJS-project, which basically lets you search youtube, choose a video, and watch it. It also supports changing the APIkey. My question is, did i use directives, controllers and services the way it's intended, or did i break some best practices?
[17:41:27] <madskonradsen_> Demo: http://madskonradsen.dk/youtube-app Sourcode: https://github.com/madskonradsen/youtube-app
[17:42:01] <pluma> Stephen: okay, isn't one of the SaaS solutions open source (i.e. you can deploy it on your own hardware without buying a license)?
[17:42:09] *** DrMabuse has joined #angularjs
[17:42:11] *** jumpstracks has quit IRC
[17:42:32] <pluma> Not sure which one, but I'm pretty sure I heard it from one of them. Maybe browserling.
[17:42:44] *** mGuv has joined #angularjs
[17:42:54] <pluma> (or was it just the ci?)
[17:43:03] *** cctom_ has joined #angularjs
[17:43:12] *** dve has quit IRC
[17:43:21] <Stephen> Selenium
[17:43:22] *** nicholaswyoung has joined #angularjs
[17:43:24] <Stephen> Im a moron
[17:43:25] *** seydoggy has quit IRC
[17:43:30] *** lelu has quit IRC
[17:43:31] *** IJNX has quit IRC
[17:44:18] *** mikehaas763 has joined #angularjs
[17:44:58] <wafflejock_> madskonradsen_: looks pretty much good, only thing I'd say is you could pull some of the API $http bits into a service as well just to simplify the controller and have those bits be re-usable
[17:45:04] *** wilmoore has joined #angularjs
[17:45:26] <wafflejock_> madskonradsen_: also in terms of folder organization it's "better" typically to group things that functionally work together instead of based on the "angular type"
[17:45:56] <wafflejock_> madskonradsen_: in terms of directives and whatnot though it looks good to me
[17:46:04] <Stephen> This looks interesting....
[17:46:05] <Stephen> https://github.com/theintern
[17:46:15] *** arizzo has quit IRC
[17:46:22] *** Ethix has joined #angularjs
[17:46:34] *** DrMabuse has quit IRC
[17:46:44] *** jacuqesdancona_ has joined #angularjs
[17:46:45] <madskonradsen_> wafflejock_ : Thanks! Great to now that i'm not completely wrong, and now i have a few things to consider! Thanks again! :)
[17:46:50] *** arizzo has joined #angularjs
[17:47:04] *** guilbep has quit IRC
[17:48:00] <OnkelTem> Hi
[17:48:09] <OnkelTem> I wonder why and how Angular fetches templates?
[17:48:27] <OnkelTem> s/why/when/
[17:48:32] *** arizzo_ has joined #angularjs
[17:48:33] *** mrogne_busy has quit IRC
[17:48:40] <ojacobson> Despite ending in a question mark, that's a statement, not a question
[17:48:45] <sacho> when they're requrested from the template cache
[17:48:49] <sacho> requested, even
[17:48:54] <OnkelTem> Hm
[17:49:15] <OnkelTem> I'd like to implement a kind of server-side minifier/aggregator
[17:49:17] *** guilbep has joined #angularjs
[17:49:38] *** mehlah has quit IRC
[17:49:48] <OnkelTem> and as my template names are automatic now (I calculate them in $stateProvider.decorator('views', ...)
[17:50:03] *** VeeWee has quit IRC
[17:50:12] *** milka has joined #angularjs
[17:50:13] <OnkelTem> I think I can make only one request to a server to get all templates at once
[17:50:24] <wafflejock_> OnkelTem: yeah aggregator = concat
[17:50:25] <OnkelTem> then splite them and feed to tempalteCache
[17:50:27] *** jae is now known as Jae
[17:50:33] <OnkelTem> wafflejock_: exactly :)
[17:50:38] <wafflejock_> OnkelTem: you can just use something like html-build task
[17:50:48] *** ineedarobot has quit IRC
[17:51:03] <wafflejock_> OnkelTem: here's one of em https://www.npmjs.org/package/grunt-angular-templates
[17:51:14] <wafflejock_> there's a few plugins/tasks floating around that do that kind of business for you
[17:51:18] *** jacuqesdancona_ has quit IRC
[17:51:21] *** arizzo has quit IRC
[17:51:36] *** waylon999 has joined #angularjs
[17:51:47] *** tedwing has joined #angularjs
[17:51:48] *** milka has quit IRC
[17:51:54] <sacho> OnkelTem, you might be able to use an $http interceptor to load your bundled file instead of some specific requested template
[17:51:56] *** intellix has quit IRC
[17:51:57] *** johnstorey has quit IRC
[17:52:01] * sacho hasn't tried it
[17:52:05] *** ineedarobot has joined #angularjs
[17:52:17] *** MathiasM has quit IRC
[17:52:35] <OnkelTem> sacho: $http interceptor?
[17:52:41] *** amedia has joined #angularjs
[17:52:44] *** azizur has quit IRC
[17:53:10] <OnkelTem> sacho: I was gonna use $http.get() but not sure when/where. Maybe in root-state resolve
[17:53:24] <OnkelTem> wafflejock_: thanks, reading
[17:54:09] <sacho> well, you could alternatively place all your templates in a <script> tag that you load before your app
[17:54:29] <Stephen> Preference on localStorage/Webstoage wrappers anyone?
[17:54:30] *** dancrew32 has joined #angularjs
[17:54:44] *** wilmoore has quit IRC
[17:54:58] *** jk-5 is now known as jk-5|gone
[17:55:05] *** jk-5|gone is now known as jk-5
[17:55:30] *** mehlah has joined #angularjs
[17:55:41] <night-owl> if i have a big array of user objects, and i want to paginate them alphabetically by users.username, is it bad to pass the whole array to $scope, or should I store the whole array in a service and request each chunk as it's needed to be displayed?
[17:55:41] <OnkelTem> sacho: yes, but in that case I should augment page's html with all those tempaltes
[17:55:50] *** dancrew32 has quit IRC
[17:56:02] *** cctom_ has quit IRC
[17:56:08] <OnkelTem> sacho: while I care a lot about SEO and even built snapshoter on PhantomJS :)
[17:56:38] <night-owl> does that make sense? :p
[17:56:55] <OnkelTem> wafflejock_: not sure I got what that grunt task does. So it runs as daemon on server?
[17:57:37] *** TheAceOfHearts has quit IRC
[17:57:43] <wafflejock_> OnkelTem: nope it's just used during build time it just reads the template files and wraps them in JS so they can be loaded into the templateCache by simply loading the output file from the task
[17:57:54] *** DrMabuse has joined #angularjs
[17:57:57] *** \du has quit IRC
[17:57:59] *** DrMabuse has quit IRC
[17:58:02] *** cmoneylulz has quit IRC
[17:58:04] <wafflejock_> OnkelTem: in terms of server deployment I use jenkins to setup builds to run tasks
[17:58:05] *** DrMabuse has joined #angularjs
[17:58:06] *** johnstorey has joined #angularjs
[17:58:07] *** daslicht has joined #angularjs
[17:58:12] <OnkelTem> wafflejock_: please define 'build time' :)
[17:58:21] <wafflejock_> OnkelTem: when you run grunt build
[17:58:36] <OnkelTem> wafflejock_: is it rebuilt upon files change?
[17:58:37] *** pluma has quit IRC
[17:58:44] <wafflejock_> for me since I have jenkins configured to watch my git repo it happens within 1 minute after I commit code
[17:58:51] <wafflejock_> but not ordinarily
[17:58:59] <wafflejock_> it's something you do manually if you don't have a CI server setup
[17:59:00] <OnkelTem> and... Hm. I already have PHP on the server side
[17:59:05] <wafflejock_> jenkins is free and relatively easy
[17:59:52] *** rbs has quit IRC
[17:59:59] <wafflejock_> I had to install some plugins for it to work nice with git but after setting up one project it's simple to clone it and tweak a few things for other projects to automatically build and you can setup automatic deployment and rollback if you want to get fancy with it
[18:00:20] *** jdj_dk has joined #angularjs
[18:00:43] *** kroogs has joined #angularjs
[18:01:06] *** cmoneylulz has joined #angularjs
[18:01:06] <Moult> any conventions on namespacing angular modules and naming controllers/services?
[18:01:22] *** madskonradsen_ has quit IRC
[18:01:33] <wafflejock_> only down side I've seen with Jenkins is it eats up a fair amount of resources especially when starting up and needs a decent amount of RAM a t1.micro instance from AWS wasn't cutting it
[18:01:44] *** hswolff has joined #angularjs
[18:01:47] *** discipolo has quit IRC
[18:02:05] *** cmoneylulz has quit IRC
[18:02:35] *** josh-k has quit IRC
[18:02:43] *** mgolawala has joined #angularjs
[18:02:47] <wafflejock_> Moult: controllers typically MyCtrl end with Ctrl are upper case, same with services directives are typically "myDirective" in code which translates to my-directive in the markup typically you should have some prefix that is not ng- and is unique to your stuff to make it easier to identify, beyond that I think it's mostly up to you
[18:03:03] <wafflejock_> well it's all up to you but you catch my drift I'm sure
[18:03:22] <OnkelTem> So this is a kind of projects maintaining system. Interesting, thanks for explanations. Though I don't feel like I'm ready to invest much time in a thing like that now
[18:03:29] *** heavyhorse has joined #angularjs
[18:03:34] *** sk87_ has quit IRC
[18:03:37] *** arizzo_ has quit IRC
[18:03:42] <wafflejock_> OnkelTem: yeah it was a bit of time to get it rolling, really happy with it now though
[18:03:57] <Moult> wafflejock_: ok, what about modules? justCamelNameSpacedCased?
[18:04:12] *** arizzo has joined #angularjs
[18:04:14] <wafflejock_> Moult: typically that's what I've seen
[18:04:18] <Moult> OnkelTem: i would +1 on wafflejock_'s jenkins recommendation. CI is dead useful
[18:04:43] *** jdj_dk has quit IRC
[18:05:05] *** TheAceOfHearts has joined #angularjs
[18:05:10] *** kroogs has quit IRC
[18:05:15] *** mewm has quit IRC
[18:05:38] <Fishy> anyone have experience with Restangular? i bring down an object into a form and when i update the model in a textbox it and object.put() it does not have the updated value.
[18:05:45] *** thomastuts has quit IRC
[18:05:49] <TheAceOfHearts> ugh
[18:05:52] <TheAceOfHearts> Restangular is bleh
[18:05:55] *** armdale has joined #angularjs
[18:06:02] <TheAceOfHearts> I made my own model layer, with blackjack and hookers.
[18:06:08] <OnkelTem> Back to grunt-angular-templates... I'd like my templates to be rebuilt immediately once I change any file
[18:06:21] <Moult> wafflejock_: so in the tutorials i've read, all the modules's contents all remained within the same scope. there was var module = angular.module(, and then app.controller(, app.whatever(. however i have also seen usage of prototype. why the difference?
[18:06:27] <Fishy> TheAceOfHearts: yeah i used through recommendation its not going as well as i thought
[18:06:28] <TheAceOfHearts> OnkelTem: I have that, but with gulp
[18:06:47] *** mennea has quit IRC
[18:07:17] <OnkelTem> TheAceOfHearts: it uses a kind of system notify?
[18:07:23] <Fishy> TheAceOfHearts: good joke though
[18:07:34] *** aljohri has joined #angularjs
[18:07:54] *** guilbep has quit IRC
[18:08:11] <TheAceOfHearts> OnkelTem: I just have a watcher on all my jade files, and whenever any of em change, it'll recopmile it and once it's done it'll trigger a reload
[18:08:13] <TheAceOfHearts> zen as fuck
[18:08:23] <OnkelTem> cool
[18:08:29] <OnkelTem> (SO MANY NAMES!)
[18:08:33] <OnkelTem> new names
[18:08:36] *** bengillies has quit IRC
[18:08:40] <TheAceOfHearts> drop grunt, use gulp
[18:08:41] <TheAceOfHearts> transcend.
[18:08:41] *** arizzo has quit IRC
[18:08:44] *** mennea has joined #angularjs
[18:08:50] <OnkelTem> okay :)))
[18:08:50] <heavyhorse> gulp yes
[18:09:02] <wafflejock_> Moult: well you can define an object outside of the angular context so it can be used outside of angular or in lots of cases the project was built pre-angular and so that was the way to define a "custom class" essentially http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/
[18:09:13] *** bengillies has joined #angularjs
[18:09:28] *** fedenunez has joined #angularjs
[18:09:28] *** daslicht has quit IRC
[18:09:32] *** Demego has quit IRC
[18:09:51] *** \du has joined #angularjs
[18:09:52] *** \du has joined #angularjs
[18:09:56] <Moult> wafflejock_: i understand prototypes, but i was wondering if there is a benefit to building your objects in prototypes and then uh... binding? them to angular as opposed to just putting them immediately in angular
[18:10:04] <wafflejock_> Moult: if you want to have this separation so whatever JS code you're writing can work/live outside of angular then using the prototype to define some functions/properties for the new object type can be useful
[18:10:08] <gnar_matix> Does gulp do anything grunt doesn't do
[18:10:23] <wafflejock_> gnar_matix: it doesn't deal with the files directly for the most part
[18:10:26] <OnkelTem> So is Gulp better then PHP LOL?
[18:10:27] <gnar_matix> Or is it just trendy like being a celiac..
[18:10:27] <wafflejock_> it just pipes data in memory
[18:10:28] <Moult> wafflejock_: off the top of my head, working with plain old javascript objects perhaps might ease testing? (but i haven't looked closely into how to mock angular in tests, so this is just a guess)
[18:10:30] *** SpearThruster has quit IRC
[18:10:33] * OnkelTem wearing a helmet, hides
[18:10:40] *** MuffinMan` has joined #angularjs
[18:10:46] <monn> Hello Friend, I'm loading a template from a service and then appending it to the body, can give it a controller and inject data to it?
[18:10:59] <TheAceOfHearts> Gulp doesn't require making custom plugins for everything, for one thing
[18:11:12] <wafflejock_> Moult: it might I think really it's just nice to be able to work on something in a simple context sometimes and also nice if you are worried about the future of angular or using the code in other contexts
[18:11:30] *** azizur has joined #angularjs
[18:11:55] <Moult> wafflejock_: yes, but if your code is using special angular vars anyway like $http... :)
[18:12:08] <wafflejock_> Moult: well not in the case that you separate it properly
[18:12:16] *** chltjdgh86 has joined #angularjs
[18:12:39] <wafflejock_> like the google maps stuff could have a wrapper object that makes it simpler to interact with for common things you might want to do to the map or give you callback hooks that you can hook into from angular
[18:12:42] <Moult> yes, true, do people separate it properly? ie. make some sort of interface for http and other collaborators, then hook it up?
[18:12:48] <wafflejock_> yeah
[18:12:51] *** Browser has left #angularjs
[18:13:01] *** danielpquinn has joined #angularjs
[18:13:30] *** bengillies has quit IRC
[18:13:42] *** boptop has quit IRC
[18:13:46] *** klaut has quit IRC
[18:13:47] *** boptop_ has joined #angularjs
[18:13:55] *** discipolo has joined #angularjs
[18:13:57] *** richardbaker has joined #angularjs
[18:14:02] *** jonasrosenlind has quit IRC
[18:14:18] *** bbankes_ has joined #angularjs
[18:14:19] <wafflejock_> I've seen the argument for D3JS stuff too just to keep the code "cleaner" I think in the sense that the angular code is just doing angular stuff and D3 wrapper code is doing stuff with D3
[18:14:26] <wafflejock_> since that can get complicated on it's own
[18:14:55] *** dve has joined #angularjs
[18:15:25] *** matiasow has joined #angularjs
[18:15:26] *** CodeFriar has quit IRC
[18:15:29] <Moult> erugh, d3 looks tightly coupled to the dom
[18:15:34] *** brownbathrobe has joined #angularjs
[18:15:46] <wafflejock_> yeah you end up writing directives
[18:15:53] *** bkuberek_ has joined #angularjs
[18:15:54] <wafflejock_> it's all good
[18:16:23] <wafflejock_> nvd3 is a set of them already written there's a few others
[18:16:30] <Moult> nah the POJO should be dom agnostic, and angular agnostic.
[18:16:45] <wafflejock_> Moult: http://stackoverflow.com/questions/18725144/do-angularjs-directives-for-d3js-exist this is my question on it
[18:16:54] <wafflejock_> Moult: well it doesn't depend on anything in the DOM already
[18:17:01] <wafflejock_> it just creates it's own stuff and managesit
[18:17:36] <Moult> wafflejock_: ok, i might have to do some architectural experiments :)
[18:17:37] *** danielpquinn has quit IRC
[18:17:39] <OnkelTem> TheAceOfHearts: watched slideshow about it. Goood! really
[18:17:40] *** ascarter has joined #angularjs
[18:17:55] <TheAceOfHearts> wait, watched slideshow about what?
[18:18:01] <OnkelTem> TheAceOfHearts: I'm thinking about migrating from my PHP server-side to gulp
[18:18:12] <OnkelTem> TheAceOfHearts: http://slides.com/contra/gulp#/
[18:18:18] *** bbankes has quit IRC
[18:18:27] <wafflejock_> OnkelTem: well it's not a server side replacement
[18:18:27] <OnkelTem> The best thing is this demo - 3D effect
[18:18:35] <TheAceOfHearts> wat
[18:18:36] <tedwing> I'm writing a directive that transcludes a third-party directive. I need to isolate scope on my directive but also share scope with the transcluded template. How would I do this?
[18:18:43] <Moult> wafflejock_: another question (sorry for the bombarding) - directives are clearly for dom manip. however i'm finding the controller-services divide slightly blurred
[18:18:45] <OnkelTem> wafflejock_: I know, I just meant those things which could be replaced
[18:19:11] <Moult> wafflejock_: gut instinct tells me everything should be a service, and a controller simply hooks up services
[18:19:11] *** bkuberek has quit IRC
[18:19:40] <wafflejock_> Moult: no worries, yeah so controllers I think of as the switchboard for the view to do stuff with it's model but typically that model is supplied by and manipulated in a service or factory
[18:20:00] <OnkelTem> TheAceOfHearts: how slides slide :)
[18:20:18] <TheAceOfHearts> I'm at nodeconf
[18:20:22] <OnkelTem> ah
[18:20:41] *** davi has joined #angularjs
[18:20:56] *** MTGap has joined #angularjs
[18:21:08] <wafflejock_> Moult: like you said most of the real work is going on in a service or factory
[18:21:18] <wafflejock_> Moult: that way all that business is shared throughout the app lifecycle
[18:22:03] <wafflejock_> the controllers are also like you said essentially giving your view hooks into the service, but they might do a couple of other things, like helper functions for use in ng-class or ng-hide or the like
[18:22:07] *** brownbathrobe has quit IRC
[18:22:08] <Moult> wafflejock_: ok, now this is interesting, service vs factory. what's the difference?
[18:22:20] <wafflejock_> Moult: really just a difference in syntactic sugar
[18:22:29] <wafflejock_> well one other minor thing
[18:22:31] <Moult> hmm, things rarely are?
[18:22:39] *** Moon_ has joined #angularjs
[18:22:43] <wafflejock_> Moult: http://stackoverflow.com/questions/15666048/angular-js-service-vs-provider-vs-factory
[18:22:58] *** knownasilya has quit IRC
[18:23:30] *** ustunozgur has joined #angularjs
[18:24:26] *** nodweber_ has quit IRC
[18:24:39] *** monn has quit IRC
[18:24:50] *** Mamian is now known as mamian
[18:24:55] <wafflejock_> Moult: basically when you make a service it is calling new yourServiceFunction() when you make a factory it is calling yourServiceFunction() and using the result of that call
[18:25:32] <wafflejock_> Moult: but in the ends they are both singletons so it just affects how you define them mostly... I typically use "service" when I'm doing something with an API and "factory" when I just want to make some models for the client side bits
[18:25:46] *** Guest8431 has joined #angularjs
[18:26:05] <wafflejock_> and really I always use a factory like syntax where I declare the object I'm going to return in advance to I don't have to use "this" because I hate it in JS
[18:26:06] <Moult> wafflejock_: hmm, i get the service/factory difference, what's this provider thing? (rereading now)
[18:26:14] *** mac_ified has joined #angularjs
[18:26:18] <wafflejock_> Moult: well factories and services are really providers
[18:26:20] *** brownbathrobe has joined #angularjs
[18:26:33] <wafflejock_> so provider is a more advanced way of defining the provider objects that lets you setup stuff for a config block
[18:26:39] <wafflejock_> in case you want your service to be configurable basically
[18:26:58] *** CocoStorm has quit IRC
[18:27:17] *** Marco__ has quit IRC
[18:27:27] *** kennbrodhagen has joined #angularjs
[18:27:45] *** ustunozg_ has quit IRC
[18:27:50] *** jamto11 has joined #angularjs
[18:28:04] *** arizzo has joined #angularjs
[18:28:20] *** save has quit IRC
[18:28:26] <Moult> wafflejock_: ahh i see, the second answer on stackoverflow helped explain it to me with the code example
[18:28:42] <Moult> wafflejock_: so, controllers, directives, services, factories, providers... what else am i forgetting?
[18:28:51] <wafflejock_> Moult: values and constants
[18:28:57] <wafflejock_> I think that's it
[18:29:03] <wafflejock_> oh filters
[18:29:12] *** Guest8431 has quit IRC
[18:29:13] *** Moon_ has quit IRC
[18:29:15] *** arabot has joined #angularjs
[18:29:20] <ojacobson> provider is the generic case; almost all of the others are specializations of it, sometimes with additional expectations imposed by angular itself
[18:29:22] *** arabot has quit IRC
[18:29:30] <wafflejock_> yup
[18:29:30] *** Moon_ has joined #angularjs
[18:29:44] *** matiasow has quit IRC
[18:29:45] <ojacobson> (for example a controller is not just a special kind of provider; the provided function must be usable by ngController)
[18:29:55] <Moult> ojacobson: thanks, that seems to make sense
[18:30:02] *** matiasow has joined #angularjs
[18:30:06] <wafflejock_> there's a guy who covers it in a somewhat rough fashion here https://www.youtube.com/watch?v=VxuN6WO3tIA&list=PLvdwIJ_SnRtaYahN9fKTNc8mlwZpwJs9j
[18:30:18] *** Moon_ has quit IRC
[18:31:00] *** dve has quit IRC
[18:31:08] *** mrogne_busy has joined #angularjs
[18:31:09] *** mrogne_busy is now known as mrogne
[18:31:09] *** mrogne has joined #angularjs
[18:31:25] <wafflejock_> if you decide to watch I wasn't a fan of the second talk at all and it starts around 9 min in
[18:31:41] <Moult> wafflejock_: ok, filters are pretty obvious, just little formatting helpers
[18:32:00] *** arizzo has quit IRC
[18:32:20] *** jamto11 has quit IRC
[18:32:22] <Moult> wafflejock_: where can i find reading on values and constants? my api doc searching is fail
[18:32:22] *** joshbrw has quit IRC
[18:32:37] <wafflejock_> Moult: https://docs.angularjs.org/guide/providers
[18:32:42] *** mGuv has quit IRC
[18:32:46] *** arizzo has joined #angularjs
[18:33:23] <Moult> wafflejock_: cheers, i just browsed to the dev guide page :)
[18:33:45] *** CodeFriar has joined #angularjs
[18:33:56] <wafflejock_> yup lots of good stuff there now
[18:33:57] <mrogne> Has anyone dealt with building an offline angular web application? Just wondering if someone can point me in the right direction.
[18:34:27] *** gunn has joined #angularjs
[18:34:38] <wafflejock_> mrogne: I haven't are you using ionic though or have you checked it out
[18:34:59] <wafflejock_> mrogne: it's easy to setup and builds an APK based on some angular code or IPA or whatever based on the stuff you have installed for packaging
[18:35:02] <mrogne> wafflejock_: checking that out now (ionic), thanks
[18:35:09] *** pdillinger has joined #angularjs
[18:35:10] *** subnl2 has joined #angularjs
[18:35:11] *** Click66 has joined #angularjs
[18:35:16] *** Dalsass_mobi has joined #angularjs
[18:35:18] *** arizzo_ has joined #angularjs
[18:35:35] *** ascarter has quit IRC
[18:35:51] <Moult> wafflejock_: yeah this is good reading :) cool, i now feel comfortable with what everything is in angular, have ideas about structure, and know the workflow. what next? writing apps of course :D
[18:36:10] *** nicholaswyoung has quit IRC
[18:36:16] <wafflejock_> Moult: indeed time to get your hands dirty and learn the ropes/pitfalls
[18:36:33] <Moult> wafflejock_: exactly :) ahhh wait one more thing before i get hands dirty
[18:36:37] *** feelfine has joined #angularjs
[18:37:04] *** Sebastien-L has quit IRC
[18:37:10] *** arizzo has quit IRC
[18:37:22] <Moult> wafflejock_: stubbing angular in tests. any recommendations? i peeked at jasmine and i think it'll work fine, but good to hear if there's anything i should watch out for
[18:37:33] *** darrin has joined #angularjs
[18:38:13] <wafflejock_> Moult: I've really just started setting up my test bits, wanted to get CI setup first but now the tests are feeling like a gap that said I know it currently runs my 1 karma test in the CI build and using Jasmine works fine, that said I don't have extensive experience with testing in JS
[18:38:44] *** Willow has quit IRC
[18:38:46] <Moult> ok, i will be BDDing this app, so i would like to get my testing sorted out right at the beginning :)
[18:38:51] *** seydoggy has joined #angularjs
[18:39:04] <Moult> i've got jasmine+karma running, but haven't actually stubbed angular in yet
[18:39:19] *** Willow has joined #angularjs
[18:39:23] <Moult> it's probably a google away :)
[18:39:30] *** tyfighter has joined #angularjs
[18:39:53] <wafflejock_> Moult: yeah I started off with he yeoman generator that had a test case built in but haven't added to it really just tweaked it to be sure it was working but haven't added tests for my own code yet
[18:40:08] *** kennbrodhagen has quit IRC
[18:40:16] <Moult> wafflejock_: i saw the yeoman generator. it looks horribad.
[18:40:22] *** Nizumzen has quit IRC
[18:40:26] <wafflejock_> Moult: yeah it took a lot of tearing apart
[18:40:35] <wafflejock_> but I'm happy with the project template I have now
[18:40:54] <Moult> /app/service/factoricontroller/grobbulator/myfile.js :(
[18:41:14] *** Nek has joined #angularjs
[18:41:18] *** richardbaker has quit IRC
[18:41:35] <Moult> as opposed to /app/feature/subfeature.js
[18:41:39] <wafflejock_> Moult: yeah I just used it to get the basic gruntfile and redid the structure within the app folder basically
[18:41:45] *** feelfine has quit IRC
[18:41:49] *** Absolute0 has quit IRC
[18:41:57] *** AlSquirikou has joined #angularjs
[18:42:02] *** AlSquirrel has quit IRC
[18:42:07] <wafflejock_> Moult: it gives you the test setup and some base files to start with then I eventually stripped out the gruntfile too and just added back the bits I wanted
[18:42:09] *** motionman has quit IRC
[18:42:12] *** arizzo_ has quit IRC
[18:42:22] <Moult> wafflejock_: sounds cool :) i would've probably done the same (ie. stolen their environment setup, but not the architecture)
[18:42:26] *** bbankes_ has quit IRC
[18:42:42] <wafflejock_> Moult: yeah was easier than starting entirely from scratch and not knowing what others are doing
[18:42:50] *** arizzo has joined #angularjs
[18:42:53] *** jk-5 is now known as jk-5|gone
[18:42:57] *** jk-5|gone is now known as jk-5
[18:43:02] *** seydoggy has quit IRC
[18:43:10] *** mrogne is now known as mrogne_busy
[18:43:16] *** theeluwin has joined #angularjs
[18:43:33] *** Willow has quit IRC
[18:44:04] <Moult> wafflejock_: awesome, well thanks again very much for your help in clearing up the many mysteries of angular (tm), i shall have to afk now, and perhaps tomorrow i shall have time to try things out :)
[18:44:38] *** zaal has quit IRC
[18:44:43] *** nodweber has joined #angularjs
[18:45:27] *** Shrooms` has joined #angularjs
[18:46:07] *** arizzo has quit IRC
[18:46:09] <wafflejock_> Moult: yup just use the plnkr.co when you need help there's a link in the IRC topic always hard to guess what people are trying to do
[18:46:20] *** nicholaswyoung has joined #angularjs
[18:46:42] *** arizzo has joined #angularjs
[18:47:05] *** arizzo has quit IRC
[18:47:11] *** marcghorayeb has quit IRC
[18:47:30] *** arizzo has joined #angularjs
[18:47:32] *** johnstorey has quit IRC
[18:47:47] *** murosai has left #angularjs
[18:48:05] *** dashed has joined #angularjs
[18:49:09] *** pdillinger has quit IRC
[18:49:35] *** zaal has joined #angularjs
[18:49:37] * tedwing found it: http://angular-tips.com/blog/2014/03/transclusion-and-scopes/
[18:50:01] *** sloria has left #angularjs
[18:50:50] *** tfennelly has joined #angularjs
[18:51:16] <Foxandxss> tedwing: the solutions I expose there are good, but maybe makes your code less obvious
[18:51:18] <Foxandxss> keep that in mind
[18:52:18] *** Click66 has quit IRC
[18:52:24] *** jk-5 is now known as jk-5|gone
[18:53:55] *** DangRabbit has quit IRC
[18:54:48] *** avens has quit IRC
[18:55:10] *** theeluwin has quit IRC
[18:56:15] *** tfennelly has quit IRC
[18:56:19] *** tyfighter has quit IRC
[18:56:35] *** greg5green has quit IRC
[18:56:38] *** tyfighter has joined #angularjs
[18:56:42] *** greg5green has joined #angularjs
[18:56:55] *** dve has joined #angularjs
[18:57:10] *** enxtur has joined #angularjs
[18:57:26] *** feelfine has joined #angularjs
[18:57:56] *** Ymesio has quit IRC
[18:57:58] *** jaitaiwan has quit IRC
[18:58:04] *** zwacky has quit IRC
[18:58:15] <Siecje> How can I track down what is causing an error? I set a break point at the beginning of my code and stepped through it but it happens after my code. But clearly my code is causing it. Here is the error https://dpaste.de/WwFx
[18:58:22] <tedwing> Foxandxss: thanks, will do.
[18:58:41] *** cmoneylulz has joined #angularjs
[18:59:04] <Foxandxss> moduleProvider? wtf
[18:59:06] <Foxandxss> show code Siecje
[18:59:16] <wafflejock_> yup
[19:00:05] *** kroogs has joined #angularjs
[19:00:06] *** jdj_dk has joined #angularjs
[19:00:06] *** arizzo has quit IRC
[19:00:29] *** annlewis has quit IRC
[19:00:41] *** TheAceOfHearts has quit IRC
[19:00:45] *** juampy has quit IRC
[19:00:48] *** TheAceOfHearts has joined #angularjs
[19:00:56] *** arizzo has joined #angularjs
[19:01:01] *** annlewis has joined #angularjs
[19:01:26] <Siecje> Foxandxss: It's very long ... https://dpaste.de/Ui2X
[19:01:30] *** enxtur has quit IRC
[19:01:39] <Foxandxss> the interesting part :P
[19:01:57] <Siecje> The strange thing is that the site seems to work usually when I get an error the variables show up as {{ varName }} etc
[19:01:57] *** disorder20 has quit IRC
[19:02:11] <Siecje> Foxandxss: I'm not sure which part is interesting.
[19:02:25] <Foxandxss> the one which fails! heh, ah
[19:02:27] <Foxandxss> let me see
[19:04:24] *** Ymesio has joined #angularjs
[19:04:28] *** dve has quit IRC
[19:04:32] *** TheAceOfHearts has quit IRC
[19:05:07] *** jdj_dk has quit IRC
[19:05:09] *** fedenunez has quit IRC
[19:05:10] *** kroogs has quit IRC
[19:05:11] <Foxandxss> Nothing obvious
[19:05:14] *** fedenunez1 has joined #angularjs
[19:05:14] <Foxandxss> does it happen on one page?
[19:05:16] <Foxandxss> all pages?
[19:05:20] *** annlewis has quit IRC
[19:05:41] *** fbenoit has quit IRC
[19:05:44] *** kalehv has quit IRC
[19:05:46] *** arizzo has quit IRC
[19:05:57] <Siecje> This is the newest code that I added https://dpaste.de/w6y4
[19:06:19] *** kalehv has joined #angularjs
[19:06:28] *** mvovchak has joined #angularjs
[19:06:31] <Foxandxss> did you add some new dependencies on the app module?
[19:06:46] <Siecje> It only happens on the one route
[19:06:52] <Siecje> nope
[19:07:00] <Foxandxss> and I will ignore that jQuery on the controller
[19:07:02] *** cmoneylulz has quit IRC
[19:07:24] *** JudeArasu has joined #angularjs
[19:07:41] *** mvovchak has quit IRC
[19:07:47] *** aljohri has quit IRC
[19:07:57] *** mvovchak has joined #angularjs
[19:08:06] *** scmx has quit IRC
[19:08:14] <Foxandxss> so happens on the build agenda route?
[19:08:16] *** dancrew32 has joined #angularjs
[19:08:16] *** djam90 has quit IRC
[19:08:31] *** charuru has joined #angularjs
[19:08:45] *** tyfighter has quit IRC
[19:09:02] <Siecje> yeah
[19:09:21] <Foxandxss> that previewModulePictures is receiving a module param
[19:09:23] <Siecje> Foxandxss: Would you prefer I set a boolean and have an ng-if on the modal?
[19:09:26] <Foxandxss> it shouldn't inject there
[19:09:32] *** tyfighter has joined #angularjs
[19:09:33] <Foxandxss> but who knows
[19:09:51] <Foxandxss> at least move it to a service
[19:09:52] <Siecje> That param is just to display the module name
[19:09:54] <Foxandxss> a service to manage that modal
[19:10:15] *** mvovchak has left #angularjs
[19:10:41] <Foxandxss> ah wait, there is more code on that controller
[19:10:52] *** zemanel has quit IRC
[19:11:03] *** pkayfire_ has quit IRC
[19:11:08] *** kalehv has quit IRC
[19:11:14] <Foxandxss> you're gonna need to start commenting out code
[19:11:16] <Foxandxss> to see what one breaks
[19:12:27] *** TheAceOfHearts1 has joined #angularjs
[19:13:08] *** thedodd has joined #angularjs
[19:13:37] *** danielpquinn has joined #angularjs
[19:15:08] *** aljohri has joined #angularjs
[19:16:05] *** mehlah has quit IRC
[19:16:12] <Siecje> If I uncomment the HTML modal code, there is no error message. https://dpaste.de/6TVg I'm using angular-ui's bootstrap.
[19:16:12] <Siecje> It's weird the modal was appearing (without the images) even with the error.
[19:16:21] *** azizur has quit IRC
[19:16:31] *** jumpstracks has joined #angularjs
[19:17:10] <Foxandxss> weird indeed
[19:17:10] *** nibster has quit IRC
[19:17:58] *** Reskp has joined #angularjs
[19:17:59] *** danielpquinn has quit IRC
[19:18:53] *** lewix has joined #angularjs
[19:18:58] <lewix> any idea why my ui-bootstrap is not being injected? appModule = angular.module(appName,['directives', 'services'].map(function(t) {
[19:18:58] <lewix> return appName + '.' + t;
[19:18:58] <lewix> }, ['ui.bootstrap']));
[19:19:22] *** dancrew32 has quit IRC
[19:19:38] *** snurfery has quit IRC
[19:19:48] *** jumpstracks has quit IRC
[19:19:53] <Foxandxss> I don't understand that complex syntax
[19:19:58] <Foxandxss> pretending that is ok
[19:20:04] <Foxandxss> do you have ui-bootstrap-tpls loaded?
[19:20:13] <wafflejock_> yeah probably missing the js
[19:20:18] <ojacobson> lewix: angular.module doesn't take a third argument
[19:20:27] <ojacobson> (well, it does, but it ignores it as far as I know)
[19:20:31] <wafflejock_> lewix: also structuring by lumping all directives or all servies together isn't the best project structure
[19:21:06] *** bayousoft has quit IRC
[19:21:20] <sacho> lewix, why are you passing ['ui.bootstrap'] as the `this` arg to your map function?
[19:21:23] <sacho> you don't seem to be using it.
[19:21:26] *** aljohri has quit IRC
[19:21:34] <ojacobson> sacho: oh, better read
[19:21:38] <ojacobson> ignore me, I miscounted the )s
[19:21:44] <wafflejock_> oh yeah wait that is quite confusing
[19:22:11] <Foxandxss> but but but, why that syntax?
[19:22:17] *** Reskp has quit IRC
[19:22:19] <Foxandxss> what's wrong with traditional syntax?
[19:22:23] <Siecje> Foxandxss: in my modal HTML code I had the controller name wrong.
[19:22:29] <lewix> sacho, how can i add the ui-bootstrap correctly here , ojacobson , wafflejock_
[19:22:51] <wafflejock_> lewix: typically you just want angular.module("myApp", ["ui.bootstrap"])
[19:22:54] <lewix> Foxandxss, yes i do and its loading
[19:22:55] <ojacobson> lewix: put it in the dependency list
[19:22:58] *** aslate has quit IRC
[19:23:05] <ojacobson> you've made your dependency list over-clever; simplify it
[19:23:15] <ojacobson> you'll see the problem quickly enough :)
[19:23:22] <Foxandxss> Siecje: ah, cool
[19:23:34] <sacho> also, you're using different modules for your directives and services. :|
[19:24:02] *** jeffisabelle has quit IRC
[19:24:45] *** storresi has quit IRC
[19:26:06] *** mikehaas763 has quit IRC
[19:26:14] *** Cavallari has joined #angularjs
[19:26:24] <davi> Is there a IRC channel for Jasmine?
[19:26:31] <davi> an*
[19:26:41] <gnar_matix> How does routing work if an Angular app is served from a subdir
[19:27:07] <gnar_matix> e.g. domain.com/angularapp
[19:27:20] *** Reskp has joined #angularjs
[19:27:26] *** amedia has quit IRC
[19:27:35] <gnar_matix> Will all the angular routes be relative to that url?
[19:27:36] <sacho> the same way it works if you don't
[19:27:55] <sacho> depends how you specify the routes.
[19:27:58] *** ineedarobot has quit IRC
[19:28:29] *** thedodd has quit IRC
[19:28:33] *** arizzo has joined #angularjs
[19:28:46] <Siecje> Foxandxss: how should I display a modal without using jQuery?
[19:29:09] *** jk-5|gone is now known as jk-5
[19:29:11] <gnar_matix> davi #jasmine . no one is there though
[19:29:37] <Foxandxss> Siecje: have you seen ui-bootstrap modal? it is a function you run and opens a modal
[19:29:49] *** iksik___ has quit IRC
[19:30:42] *** ineedarobot has joined #angularjs
[19:30:44] *** pushrax_ is now known as pushrax
[19:30:54] <lewix> thanks ojacobson ,sacho, wafflejock_
[19:30:57] *** knownasilya has joined #angularjs
[19:30:58] <lewix> the three musketers
[19:31:00] *** Shrooms` has quit IRC
[19:31:01] *** Jon30 has quit IRC
[19:31:06] *** arizzo has quit IRC
[19:31:08] *** iksik has joined #angularjs
[19:31:23] *** nodweber has quit IRC
[19:31:23] *** annlewis has joined #angularjs
[19:31:33] *** dve has joined #angularjs
[19:31:38] *** arizzo has joined #angularjs
[19:31:41] <davi> thanks gnar_matix. I an other guy are in there now :)
[19:31:49] <davi> you can join if you want
[19:31:56] *** nodweber has joined #angularjs
[19:32:18] *** isthisreallife has joined #angularjs
[19:32:36] <sacho> they don't have an official irc channel.
[19:32:42] <gnar_matix> sacho: Okay here's what's happening.. I'm serving Angular using Express. Static files are served from /static. The Angular index is served from /:client/*. The index loads a config file /config.js based on the request Referer header (regex match client)
[19:32:55] *** isthisreallife has left #angularjs
[19:33:11] *** disorder20 has joined #angularjs
[19:33:27] <gnar_matix> sacho: basically I have a single app that needs to be served, but different config files need to be loaded depending on /:client/* .. Then all Angular routes should be relative to /:client/*
[19:33:48] <Foxandxss> davi: for question related to angular (and jasmine) you can ask here
[19:34:04] <gnar_matix> sacho: right now I just have a <script src="config.js"></script>
[19:35:26] *** nerdfiles has joined #angularjs
[19:35:38] *** annlewis has quit IRC
[19:35:46] <orion1111> I have for example in view: <div ng-click="myf()">content</div> and in controller: $scope.myf = function() { $scope.persons[0].name = 'pete'; } . How does loop(digest) know that scope has changed? Are there any special internal watches, that watch over scope variables?
[19:35:50] *** arizzo has quit IRC
[19:36:02] *** arizzo has joined #angularjs
[19:36:03] *** annlewis has joined #angularjs
[19:36:08] *** nodweber has quit IRC
[19:36:25] *** nanoyak has joined #angularjs
[19:36:59] *** nemothekid has joined #angularjs
[19:37:07] *** brownbathrobe has quit IRC
[19:37:32] *** Reskp has quit IRC
[19:37:38] *** tylerjohnst has joined #angularjs
[19:37:43] *** nanoyak has quit IRC
[19:37:48] *** arizzo_ has joined #angularjs
[19:38:26] <sacho> gnar_matix, /path is relative to the host
[19:38:58] *** nodweber has joined #angularjs
[19:39:00] <nerdfiles> $scope has a $$phase property which is part of its $digest cycle.
[19:39:15] <nerdfiles> I think its properties are checked.
[19:39:20] <sacho> you could append a "base_path" to your urls if you want to use /path
[19:39:36] <sacho> e.g. base_path + "/mypath" -> /angular/mypath
[19:40:08] *** pvde has joined #angularjs
[19:40:20] *** annlewis has quit IRC
[19:40:20] *** chachan has quit IRC
[19:40:35] *** arizzo has quit IRC
[19:41:12] *** ineedarobot has quit IRC
[19:41:33] *** scmx has joined #angularjs
[19:42:27] *** emps is now known as empz
[19:42:33] *** mary5030 has joined #angularjs
[19:42:36] <gnar_matix> sacho: Do you mean in Angular or in node
[19:42:48] <gnar_matix> Anyone on grooveshark?
[19:43:15] *** TheAceOfHearts1 has quit IRC
[19:45:29] *** zwacky has joined #angularjs
[19:47:02] *** JudeArasu has quit IRC
[19:47:02] *** \du has quit IRC
[19:47:31] *** gordroid has joined #angularjs
[19:49:48] *** bpayne has joined #angularjs
[19:50:41] *** fedenunez has joined #angularjs
[19:50:52] *** vorktanamobay has joined #angularjs
[19:51:36] *** kalehv has joined #angularjs
[19:51:37] <davi> thanks Foxandxss
[19:52:42] *** Stephen has quit IRC
[19:53:23] *** D-Boy has quit IRC
[19:53:42] *** fedenunez1 has quit IRC
[19:53:56] *** darrin has quit IRC
[19:56:34] *** vorktanamobay has quit IRC
[19:56:36] *** annlewis has joined #angularjs
[19:57:05] *** orion1111 has quit IRC
[19:58:42] *** s3shs has joined #angularjs
[19:59:35] *** davi has quit IRC
[20:00:10] *** kroogs has joined #angularjs
[20:00:44] *** annlewis has quit IRC
[20:00:53] *** jdj_dk has joined #angularjs
[20:01:08] *** dancek has quit IRC
[20:02:20] *** dancek has joined #angularjs
[20:02:55] *** Cache_Money has joined #angularjs
[20:03:08] *** joshbrw has joined #angularjs
[20:03:39] *** JudeArasu has joined #angularjs
[20:03:54] *** Willow has joined #angularjs
[20:05:04] *** kroogs has quit IRC
[20:05:25] *** cmfatih has joined #angularjs
[20:05:37] *** Freeman42x has quit IRC
[20:06:58] <reduce> is using the attribute name ngModel bad practice on custom directives like this http://plnkr.co/edit/oEg09KXB0e4EtrKCF9tl
[20:07:11] *** dve has quit IRC
[20:07:11] <reduce> ?
[20:07:24] *** tyfighter has quit IRC
[20:07:48] *** senayar_ has quit IRC
[20:07:49] *** jdj_dk has quit IRC
[20:07:53] *** dve has joined #angularjs
[20:09:01] <Foxandxss> using ngModel on directives is suggested
[20:09:07] <Foxandxss> if you need what the ngModel providces
[20:09:10] <Foxandxss> provides*
[20:09:10] *** wa5ted_ has joined #angularjs
[20:09:34] <reduce> Foxandxss: have you looked at the code snippit? What does ngModel provide in this case?
[20:09:52] *** bpayne has quit IRC
[20:09:54] *** wa5ted has quit IRC
[20:09:58] <Foxandxss> well, that example is too small
[20:10:02] <Foxandxss> there it doesn't provide anything
[20:10:03] *** wa5ted_ is now known as wa5ted
[20:10:07] <reduce> Foxandxss: am i even causing the ngModel directive to be added to my directvie?
[20:10:11] <Foxandxss> but extra unneeded layer
[20:10:50] <reduce> Foxandxss: ok, assuming the widget encapsulates more html. I just wanted to make sure you knew how i was using it.
[20:11:16] <Foxandxss> keep working
[20:11:22] <Foxandxss> if that does work for you, go ahead
[20:11:25] <Foxandxss> what do you have to lose?
[20:11:41] *** mary5030 has quit IRC
[20:11:42] <lewix> how to pass html into a property
[20:11:44] *** SchizoDuckie has joined #angularjs
[20:11:59] <lewix> example <button property="{{i ant some html here}}">
[20:12:13] <SchizoDuckie> hi all :)
[20:12:22] *** howitdo has quit IRC
[20:12:37] <reduce> Foxandxss: do you think the ngModel directive is being "instantiated" or whetever the phrase is for my own directive as well as the input?
[20:12:46] <Foxandxss> yes
[20:12:53] *** dve has quit IRC
[20:13:11] <ojacobson> reduce: if you place an attribute 'ng-model' in the DOM somewhere, angular will use the ngModel directive to process it, regardless of what other directives might apply to the element
[20:13:12] *** Reskp has joined #angularjs
[20:13:45] <Foxandxss> lewix: that doesn't sound any good
[20:14:22] *** danielpquinn has joined #angularjs
[20:15:09] *** TheAceOfHearts has joined #angularjs
[20:15:50] <reduce> second question heh
[20:16:16] <marcospgp> I'm following this http://scotch.io/bar-talk/setting-up-a-mean-stack-single-page-application is it recommended?
[20:16:18] <reduce> actually, ill make another plunkr
[20:16:47] *** kennbrodhagen has joined #angularjs
[20:17:02] <Foxandxss> scoth is a good dev
[20:17:04] <Foxandxss> scotch
[20:18:47] *** anjumkaiser has joined #angularjs
[20:19:02] *** danielpquinn has quit IRC
[20:19:12] *** D-Boy has joined #angularjs
[20:20:18] *** nerdfiles has quit IRC
[20:20:20] *** foofoobar has joined #angularjs
[20:20:32] *** nerdfiles has joined #angularjs
[20:21:00] <marcospgp> hm okay thanks
[20:21:30] *** jeffszusz has joined #angularjs
[20:21:41] <jeffszusz> hey guys - do angularjs and requirejs play nicely together?
[20:21:48] <Foxandxss> no
[20:21:59] <Foxandxss> but you can force angular
[20:22:03] *** zwacky has quit IRC
[20:22:11] <marcospgp> i was wondering, since he declares a new module for each factory, each in a separate file
[20:22:16] *** jharbaug_ has quit IRC
[20:22:30] <Foxandxss> he does?
[20:22:42] <jeffszusz> Foxandxss, does it make more sense to just forego requirejs ?
[20:22:45] <Foxandxss> I see
[20:22:50] *** jharbaugh has joined #angularjs
[20:22:55] <Foxandxss> marcospgp: that is a little bit overkilling for a small project
[20:22:58] <Foxandxss> even medium project
[20:23:35] <Foxandxss> jeffszusz: it works good without it, most of the users of this channel goes without it
[20:23:45] *** mehlah has joined #angularjs
[20:23:49] <Foxandxss> there are some ways to use requirejs but usually brings more pain than love
[20:24:31] <jeffszusz> Foxandxss, so what do you do instead? Do you just put every single script into a script tag?
[20:24:35] <jeffszusz> We're likely to have quite a few
[20:24:42] <marcospgp> @Foxandxss: https://github.com/scotch-io/starter-node-angular
[20:24:53] <Foxandxss> jeffszusz: I concat them so I only need to add one
[20:25:07] <Foxandxss> on the other hand, there are grunt tasks that add them for you
[20:25:10] <Foxandxss> but I prefer the concat way
[20:25:19] *** sloria has joined #angularjs
[20:25:33] *** arek_at_work has quit IRC
[20:25:40] *** Willow has quit IRC
[20:25:42] <Foxandxss> marcospgp: I know you were looking for a proper boilerplate today
[20:25:47] <Foxandxss> just pick one
[20:25:49] <Foxandxss> and try it
[20:25:54] <Foxandxss> none is perfect
[20:25:56] *** howitdo has joined #angularjs
[20:26:02] <Foxandxss> not even the one you could make yourself for your needs
[20:26:08] *** Willow has joined #angularjs
[20:26:15] <Foxandxss> and there is not wrong
[20:26:17] <Foxandxss> or bad
[20:26:42] <Foxandxss> fwiw I use lineman
[20:26:46] <Foxandxss> there is an example: https://github.com/linemanjs/lineman-angular-template
[20:26:51] <Foxandxss> that is just frontend, no backend
[20:26:55] <Foxandxss> backend is another history
[20:27:02] *** mikehaas763 has joined #angularjs
[20:27:12] *** jharbaugh has quit IRC
[20:27:31] <marcospgp> I think I'm gonna change scotch's template,
[20:27:57] <marcospgp> @Foxandxss: and have just one big module with all those services, instead of a module per service
[20:28:05] *** faviouz has joined #angularjs
[20:28:17] <Foxandxss> whichever works for you
[20:28:25] <marcospgp> or like you or someone else mentioned, a module per functionality, right?
[20:28:32] <Foxandxss> looking for the right option is an endless fight
[20:28:36] *** kalehv_ has joined #angularjs
[20:28:40] <marcospgp> cheers :)
[20:28:45] <wafflejock_> marcospgp: typically I have one module with a service maybe a couple of controllers
[20:28:45] *** jamto11 has joined #angularjs
[20:28:47] <Foxandxss> I read a sentence one time, I love it
[20:28:47] *** klaskagan has joined #angularjs
[20:28:59] <Foxandxss> Good judgement comes from experience, experience comes from bad judgement
[20:29:01] <wafflejock_> marcospgp: but like Foxandxss says it's some personal preference and some learning from doing and not 1 size fits all
[20:29:13] *** Willow_ has joined #angularjs
[20:29:22] <Foxandxss> you can't do it right if you didn't do it wrong
[20:29:35] *** Dalsass_mobi has quit IRC
[20:29:42] <marcospgp> I agree ehe but when you know you have to try and fail to learn and you haven't failed yet you're kinda reluctant to go fail
[20:29:45] <Foxandxss> I would love to go back in time, maybe just 5 years with that in mind
[20:29:49] <marcospgp> thanks for the help :D
[20:29:53] *** Willow__ has joined #angularjs
[20:29:54] *** kalehv has quit IRC
[20:30:01] <Foxandxss> I created a project and said, meh, works but I don't like the approach
[20:30:06] <Foxandxss> so the next one uses a different one
[20:30:18] <marcospgp> I see
[20:30:30] <Foxandxss> in the way, you are learning more stuff, more ideas and well, that evolves into better results
[20:30:35] *** Willow has quit IRC
[20:30:51] <wafflejock_> Foxandxss++ truth
[20:30:54] *** TorpedoSkyline has joined #angularjs
[20:31:01] <Foxandxss> so my advice is, goes to the one that makes more sense for you
[20:31:26] <Foxandxss> I can create you a workflow, and you are in all the rights of saying... wtf is this crap
[20:31:50] *** anjumkaiser has quit IRC
[20:31:54] *** mikehaas763 has quit IRC
[20:32:12] *** nerdfiles has quit IRC
[20:32:28] *** nerdfiles has joined #angularjs
[20:32:28] *** jhulten has quit IRC
[20:33:47] *** jamto11 has quit IRC
[20:33:57] *** Willow_ has quit IRC
[20:33:59] *** aslate has joined #angularjs
[20:34:21] <TheAceOfHearts> I only have one module for my app
[20:34:34] *** anjumkaiser has joined #angularjs
[20:34:40] <Foxandxss> I tried the one component per module
[20:34:44] *** btc_panhandler has joined #angularjs
[20:34:45] <Foxandxss> it didn't bring any good
[20:34:48] <TheAceOfHearts> yeah
[20:34:58] <TheAceOfHearts> it makes sense for libs
[20:35:05] <TheAceOfHearts> but for an app, idk
[20:35:09] <Foxandxss> probably
[20:35:14] *** subnl2 has quit IRC
[20:35:17] <Foxandxss> Someone sold that idea to me once I guess
[20:35:30] <wafflejock_> I do 1 module per functional area of an app
[20:35:47] <Foxandxss> yeah, makes sense
[20:35:50] <wafflejock_> it works out well to keep the modules/files relatively small and everything is coherent I don't have to open 10 files to see what's going on between some controllers and services
[20:36:12] <marcospgp> Sorry guys I was hacking the template :p
[20:36:33] *** dashed has quit IRC
[20:36:42] <marcospgp> Yea I guess as long as I don't take 10 hours to search what I'm looking for and don't scratch my head every 5 minutes things are okay
[20:36:51] *** Brocken is now known as zz_Brocken
[20:36:57] <marcospgp> okay maybe 5 minutes is acceptable. say 5 seconds
[20:37:09] *** nerdfiles has quit IRC
[20:37:14] <Foxandxss> IDEs and editors have good search capabilities
[20:37:26] *** nerdfiles has joined #angularjs
[20:37:27] <wafflejock_> yeah big sublimetext fan personally
[20:37:41] <marcospgp> I am a fan just for the fact that it is like winrar
[20:37:44] <wafflejock_> if I'm dealing with huge libraries I still use grep but generally SublimeText search and whatnot does me good
[20:37:50] <marcospgp> small popup once in a while
[20:37:55] *** zemanel has joined #angularjs
[20:37:59] <marcospgp> when I become rich I'm buying sublime text aha
[20:38:20] <Foxandxss> I use webstorm even when I have sublime license
[20:38:36] *** nerdfiles has quit IRC
[20:38:45] *** aslate has quit IRC
[20:38:48] *** TorpedoSkyline has quit IRC
[20:38:52] *** wiherek has quit IRC
[20:38:54] *** cmfatih has quit IRC
[20:39:11] *** jchamberlain has joined #angularjs
[20:39:46] *** TorpedoSkyline has joined #angularjs
[20:40:04] <marcospgp> I'm going into college in a year and I wouldn't mind going into webdev afterwards. From what I've seen web is seen as the easier part of programming and usually pays less but with all this knowledge I'm getting maybe things will be different :)
[20:40:04] *** saganbyte has joined #angularjs
[20:40:06] *** xavia has joined #angularjs
[20:40:40] *** saganbyte has left #angularjs
[20:40:47] <wafflejock_> marcospgp: eh web dev is huge
[20:40:52] *** zemanel has quit IRC
[20:40:53] *** night-owl-MBP has joined #angularjs
[20:41:08] <wafflejock_> marcospgp: you wouldn't get paid as much as being a specialist probably but those jobs are also fewer and further between
[20:41:09] <Foxandxss> wafflejock_: I am digging into android this weeks and it is much much harder than angular
[20:41:09] <Siecje> webdev is easier to learn because of the wealth of information on the web
[20:41:16] *** bkuberek_ has quit IRC
[20:41:17] <marcospgp> the way I see it php has its days counted
[20:41:36] <wafflejock_> marcospgp: hard to say it's still huge in terms of devs
[20:41:51] <wafflejock_> marcospgp: Java has been around for a while too and still a large base of devs
[20:41:54] <marcospgp> that's probably because it's so easy
[20:42:07] <wafflejock_> marcospgp: it's based on C and open source and available on servers everywhere
[20:42:18] <wafflejock_> marcospgp: it has history and things like WordPress and Magento behind it
[20:42:26] <marcospgp> and it's been used traditionally with apache and such for years
[20:42:29] *** nerdfiles has joined #angularjs
[20:42:31] <wafflejock_> right
[20:42:35] <marcospgp> but that LAMP stack is slowly being changed
[20:42:42] <wafflejock_> will take a while to go away even if Node is the new hot stuff
[20:42:43] <cboden> and now Facebook is forcing modern features on PHP
[20:42:45] <marcospgp> even youtube now is a SPA
[20:43:04] *** klaskagan has left #angularjs
[20:43:12] <wafflejock_> it's like electric cars if we got rid of all gas car sales today it would take 20 years before the last gas car is off the road
[20:43:36] <marcospgp> yea it has its inertia
[20:43:42] <wafflejock_> indeed
[20:43:43] <cboden> SPA’s are a fancy UI. Still need a backend, in what ever language serves the API
[20:43:46] <Foxandxss> Laravel is pretty pretty good
[20:43:58] <marcospgp> but well, better for us who are in the front
[20:43:59] *** nodweber has quit IRC
[20:44:06] *** Reskp has quit IRC
[20:44:10] *** chrisshattuck has quit IRC
[20:44:18] <wafflejock_> yeah I use Slim framework a lot and have started messing with Eloquent so it sort of feels like maybe laravel is a good choice but want to get some time to explore some of node too
[20:44:34] *** Reskp has joined #angularjs
[20:44:35] *** nodweber has joined #angularjs
[20:44:53] <cboden> I do Angular, Python, and Objective-C in my day job and PHP in my hobby projects. The PHP community is stronger than its ever been
[20:45:02] <marcospgp> the thing with node is that when you change to it from apache it feels like you have to do everything yourself
[20:45:16] <marcospgp> express and such helps, but still
[20:45:22] *** jbourassa has joined #angularjs
[20:45:23] <wafflejock_> marcospgp: right the advantage I see is not having to switch languages
[20:45:24] <marcospgp> even redirecting to the index.html has to be done by you
[20:45:27] <wafflejock_> marcospgp: the context switching is rough
[20:45:34] *** dashed has joined #angularjs
[20:45:53] <jchamberlain> I'm doing a large Laravel + Angular app right now, and don't find the switching between front and back very hard
[20:45:54] *** mven_ has quit IRC
[20:46:03] <jchamberlain> I do them so differently it feels natural to use different languages
[20:46:14] <wafflejock_> I have to focus on one at a time
[20:46:17] <wafflejock_> not that it's a terrible thing
[20:46:23] <wafflejock_> but I'll type var into my php
[20:46:38] <marcospgp> well I'm used to php also and it felt pretty normal to me
[20:46:48] <marcospgp> there was a clear distinction between server/client
[20:46:55] <wafflejock_> just takes some rejiggering in my brain so I focus on building the PHP and testing it with POSTMan then switch to building the frontend
[20:46:57] <cboden> lol I do the same thing waffle. But I have a hard time serving web stuff w/ Node. Simple page servings don’t fit the async paradigm well
[20:47:07] *** peldan has joined #angularjs
[20:47:42] <marcospgp> node seems awesome because setting everything up yourself and such is something you want to do for webapps
[20:47:54] <marcospgp> ofc for static websites apache with php will always make the most sense
[20:48:26] <jchamberlain> or nginx + hhvm :)
[20:48:33] *** mven_ has joined #angularjs
[20:48:46] <marcospgp> or that
[20:48:51] <marcospgp> except node
[20:49:01] <marcospgp> unless you want to have a lot of work aha
[20:49:29] <grizzm0> hhvm <3
[20:49:33] *** nodweber_ has joined #angularjs
[20:49:33] *** nodweber has quit IRC
[20:49:45] <marcospgp> ideally in the future google will launch google API where you set up your back end through a user interface
[20:49:51] <marcospgp> for free
[20:50:10] <marcospgp> or if google API is misleading, google BACKEND
[20:50:19] <grizzm0> Tried apigility?
[20:50:31] *** arizzo_ has quit IRC
[20:50:38] <grizzm0> Should be easy to setup APIs afaik ;]
[20:50:45] <grizzm0> That's basically all it does
[20:50:46] *** kennbrodhagen has quit IRC
[20:50:47] *** night-owl-MBP has quit IRC
[20:50:50] <marcospgp> ooh
[20:50:53] <grizzm0> Coded on top of zend framework 2
[20:50:53] <marcospgp> someone stole my idea
[20:50:56] <Foxandxss> wafflejock_: yesterday, doing android, I got an error
[20:50:57] <marcospgp> there goes my million euros
[20:51:02] <Foxandxss> you can't convert int into var
[20:51:03] *** arizzo has joined #angularjs
[20:51:08] *** artisangoose has quit IRC
[20:51:11] <Foxandxss> and I said... wtf happen
[20:51:14] <Foxandxss> ah, var size;
[20:51:20] *** nagappan has quit IRC
[20:51:29] *** danizord has quit IRC
[20:51:38] <grizzm0> Actually zend themselfs that's behind apigility
[20:51:54] *** nagappan has joined #angularjs
[20:52:07] *** mzehrer_ has quit IRC
[20:52:17] <marcospgp> that color scheme though
[20:53:32] *** nerdfiles has quit IRC
[20:53:45] <wafflejock_> Foxandxss: yeah I haven't done any Android Java in a while but I've only played with it
[20:53:48] *** nerdfiles has joined #angularjs
[20:53:51] <wafflejock_> Foxandxss: the face recognition stuff is pretty sweet
[20:54:02] *** ekmartin has left #angularjs
[20:54:36] *** TheAceOfHearts has quit IRC
[20:54:43] <wafflejock_> I used to work on J2EE stuff running on WebSphere using Spring and BlazeDS so it would use Java JDBC to connect to data sources (configured in websphere) then use BlazeDS to turn Java objects into AMF for an AS3 frontend which is really where my focus was
[20:55:15] *** nerdfiles has quit IRC
[20:55:18] <wafflejock_> since I felt Flash was headed for a quick and firey death I switched stacks (also just like using PHP more most of the time)
[20:55:40] *** arizzo has quit IRC
[20:55:40] *** mary5030 has joined #angularjs
[20:56:40] *** annlewis has joined #angularjs
[20:56:56] *** avens has joined #angularjs
[20:57:00] <Foxandxss> wafflejock_: I am liking it
[20:57:04] <wafflejock_> I still miss Flex and Flash sometimes but think ProcesingJS or other similar things can fill the void
[20:57:41] <wafflejock_> Foxandxss: yeah Android dev can be a lot of fun... I didn't have a lot of faith early on in them beating out iOS but I'd feel more confident about using it now
[20:57:51] *** Malone has joined #angularjs
[20:58:01] *** enxtur has joined #angularjs
[20:58:26] <wafflejock_> fragmentation is still a bit of a problem but not nearly as bad as it was earlier on too
[20:58:31] <Foxandxss> programming is fun, it has a lot of functionality
[20:58:45] <Foxandxss> intents to open other software
[20:58:46] *** nerdfiles has joined #angularjs
[20:58:52] <Foxandxss> background services
[20:58:55] <reduce> ok, got a plunker for my 2nd question woho
[20:58:56] <wafflejock_> yeah lots of ways to hook between things
[20:59:00] <Foxandxss> widgets..
[20:59:13] <wafflejock_> the idea of intents is pretty awesome
[20:59:25] <Foxandxss> yes
[20:59:26] <reduce> how can i pass the select expression through the directive to ngOptions on the nested directive? http://plnkr.co/edit/oEg09KXB0e4EtrKCF9tl?p=preview
[21:00:06] <SchizoDuckie> hey guys, anyone with an android tablet here that's willing to test something for me? http://duckietv.github.io/DuckieTV/ <-- do the images load?
[21:00:09] <reduce> you'll note the 3rd drop down doesnt work
[21:00:39] <reduce> hold on, i forgot to create a link function
[21:00:44] *** annlewis has quit IRC
[21:01:30] *** joshbrw has quit IRC
[21:02:11] <reduce> here it is now http://plnkr.co/edit/oEg09KXB0e4EtrKCF9tl?p=preview
[21:02:33] *** enxtur has quit IRC
[21:02:40] <wafflejock_> SchizoDuckie: which pictures? the icons on the left
[21:03:12] <wafflejock_> I have a spinner says Please wait while loading trakt.tv's trending tv shows
[21:03:22] *** hychen has quit IRC
[21:04:26] *** Click66 has joined #angularjs
[21:04:30] <SchizoDuckie> yeah that spinner should resolve into a list of images wafflejock_
[21:04:35] <SchizoDuckie> thanks for trying for me :)
[21:04:49] *** atomical has joined #angularjs
[21:04:52] <wafflejock_> SchizoDuckie: np yeah just stuck on the spinner though, tried reloading once too
[21:05:14] *** bmac has quit IRC
[21:05:35] *** atomical has quit IRC
[21:05:38] *** jbourassa has quit IRC
[21:06:06] <SchizoDuckie> wafflejock_: do any images appear if you start typing something in the searchbox? (e.g. 'game' )
[21:06:19] <SchizoDuckie> it's a separate datasource
[21:06:27] *** bpayne has joined #angularjs
[21:06:31] <wafflejock_> nope still just a spinner I typed game and hit go
[21:06:58] <SchizoDuckie> hmm okay that needs some work then. thanks a lot for trying that :)
[21:07:05] *** Ymesio has quit IRC
[21:07:17] *** digia is now known as digia|away
[21:07:27] <SchizoDuckie> should work nicely in a regular chrome/opera/safari browser though
[21:07:35] *** Simone\ has quit IRC
[21:07:38] *** Click66 has quit IRC
[21:07:57] *** bkuberek has joined #angularjs
[21:07:59] <wafflejock_> SchizoDuckie: well if it's any indication the same thing happens in chrome for me
[21:08:16] <wafflejock_> XMLHttpRequest cannot load http://jsonp.jit.su/?url=http%3A%2F%2Fapi.trakt.tv%2Fsearch%2Fshows.json%2F32e05d4138adb5da5b702b362bd21c52%3Fquery%3Dgame. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://duckietv.github.io' is therefore not allowed access. in the console
[21:08:21] *** Malone has quit IRC
[21:08:21] <SchizoDuckie> what the
[21:08:25] <SchizoDuckie> they closed the service
[21:08:29] <wafflejock_> SchizoDuckie: CORS?
[21:08:35] <SchizoDuckie> yes.
[21:08:39] <SchizoDuckie> this is a cors proxy
[21:08:42] <SchizoDuckie> but they killed it
[21:08:54] *** Malone has joined #angularjs
[21:09:08] <SchizoDuckie> too bad, it worked brilliantly
[21:09:43] <andrew9183> is there an equivalent of object.push in angularjs ? i tried regular javascript push, but it's not updating the model correctly
[21:09:52] <SchizoDuckie> http://jsonp.jit.su/?url=http%3A%2F%2Fapi.trakt.tv%2Fshows%2Ftrending.json%2F32e05d4138adb5da5b702b362bd21c52
[21:09:53] <SchizoDuckie> ghehe
[21:09:56] <SchizoDuckie> whoops :P
[21:09:56] <wafflejock_> andrew9183: what context are you pushing things in with
[21:10:04] <wafflejock_> SchizoDuckie: ah hit a limit
[21:10:23] <andrew9183> basically i have an array of people and creating a new person, and pushing it into the array
[21:10:34] <wafflejock_> andrew9183: I mean like in an ng-click handler or $http response
[21:10:40] <wafflejock_> andrew9183: or in response to some browser event?
[21:10:42] *** zwacky has joined #angularjs
[21:10:51] <andrew9183> oh its a method on the controller, through ng-click
[21:10:53] <wafflejock_> if it's the latter you need to call $scope.$apply() to trigger the update to the watchers
[21:11:00] *** avens has quit IRC
[21:11:03] <wafflejock_> andrew9183: okay with ng-click it should call $apply for you
[21:11:14] <andrew9183> ah
[21:11:19] <andrew9183> let me give it a shot
[21:11:29] <wafflejock_> andrew9183: would have to show some more code for me to tell you what's going wrong
[21:11:41] <wafflejock_> andrew9183: plnkr.co is ideal, link in the IRC topic to a setup template with angular
[21:12:09] <lewix> <script type="text/ng-template" id="templateId.html">
[21:12:09] <lewix> <button class= "btn btn-default" onclick="$('#mypopover').popover('hide');">No</button>
[21:12:09] <lewix> <button class="btn btn-success" type="reset" ng-click="show_container(container, 'click_cancel')">Yes</button>
[21:12:09] <lewix> </script>
[21:12:22] <lewix> im trying to understand why ng-click is not executed
[21:12:24] <lewix> the function
[21:12:38] <lewix> doesnt it work inside tempaltes
[21:12:42] *** dualmoon has joined #angularjs
[21:12:54] <wafflejock_> lewix: yeah typically templates are compiled depends on how you load the template though
[21:13:08] <lewix> wafflejock_, i compile it
[21:13:23] *** dualmoon has left #angularjs
[21:13:29] *** Malone has quit IRC
[21:13:34] <wafflejock_> sure you're compiling it against the right scope
[21:13:37] *** blueadept has joined #angularjs
[21:13:38] *** Ymesio has joined #angularjs
[21:13:39] *** Simone\ has joined #angularjs
[21:13:51] <wafflejock_> also should get that jquery out of there it's fugly
[21:14:02] *** ineedarobot has joined #angularjs
[21:14:04] <lewix> wafflejock_, http://plnkr.co/edit/qoTcdEAA5o0PgQ7IwJLb?p=preview
[21:14:32] *** darrin has joined #angularjs
[21:14:35] *** pfbc has joined #angularjs
[21:14:49] *** pfbc has left #angularjs
[21:15:19] *** danielpquinn has joined #angularjs
[21:16:12] *** gnar_matix has quit IRC
[21:16:21] *** gnar_matix has joined #angularjs
[21:17:12] *** mtho11 has quit IRC
[21:17:29] *** mrogne_busy has quit IRC
[21:19:39] *** danielpquinn has quit IRC
[21:19:40] <wafflejock_> don't see you compiling anything there just fetching the template
[21:20:05] *** dbouwman has quit IRC
[21:20:16] *** Bade has joined #angularjs
[21:20:38] *** JudeArasu has quit IRC
[21:21:03] <wafflejock_> lewix: you'd typically inject $compile then do something like $compile(someElement)(someScopeObject)
[21:21:21] *** mikehaas763 has joined #angularjs
[21:21:27] *** CodeFriar has quit IRC
[21:21:50] *** Milanito has quit IRC
[21:23:32] *** TorchDragon has joined #angularjs
[21:24:09] *** ineedarobot has quit IRC
[21:24:11] <wafflejock_> lewix: the call to compile will find any directives in the element provided and will call compile (if you only define a link function and not a compile function it basically just calls that link function otherwise it uses the result of the call to the compile function as the link function) then it passes the object you provide as the scope for the link function call on any directives it found
[21:24:32] *** dc_ has joined #angularjs
[21:25:35] *** Shrooms has joined #angularjs
[21:26:08] *** freeman42 has joined #angularjs
[21:27:18] *** damoncasale has joined #angularjs
[21:27:23] <damoncasale> Afternoon, folks...
[21:27:34] *** TorchDragon has quit IRC
[21:27:43] <damoncasale> Complete newbie here, please excuse my ignorance of basic Angular functionality.
[21:27:44] <lewix> wafflejock_, how to pass the scope in
[21:27:47] <lewix> my example above
[21:27:47] *** alt_qq has joined #angularjs
[21:28:20] *** SchizoDuckie has left #angularjs
[21:28:35] <damoncasale> Attempting to learn Angular JS and I have a question. It looks like "template" is one of the parameters for the return value of a directive. Is it possible to use the contents of an embedded script tag instead of the template field?
[21:28:57] <damoncasale> I know I can use ng-include on a DIV *inside* the template HTML text, but I'd rather avoid that since it seems ugly.
[21:30:40] *** wa5ted_ has joined #angularjs
[21:30:59] *** nodweber_ has quit IRC
[21:31:17] <wafflejock_> damoncasale: do you want templateUrl?
[21:31:26] <damoncasale> That could be it.
[21:31:31] *** nodweber has joined #angularjs
[21:31:48] *** wa5ted has quit IRC
[21:31:49] *** wa5ted_ is now known as wa5ted
[21:32:04] <damoncasale> I don't need a routeProvider if I'm pointing directly to a template, right?
[21:32:06] *** chltjdgh86 has quit IRC
[21:32:16] *** squeakytoy has joined #angularjs
[21:32:33] *** chltjdgh86 has joined #angularjs
[21:32:40] <wafflejock_> lewix: I'd really suggest using ui-bootstrap for the pop-over you'll still need to add a directive to do the compile bit for you but I've added this into ui-bootstrap and it wasn't terribly complicated
[21:32:43] *** hswolff has quit IRC
[21:32:59] <wafflejock_> I should actually clean that up and add a PR for it
[21:33:23] *** tangorri has joined #angularjs
[21:33:30] <wafflejock_> damoncasale: you need routeProvider for doing the configuration of the routes that tells it when you see XYZ URL load A template and B controller
[21:33:56] *** fedenunez has quit IRC
[21:34:10] <wafflejock_> damoncasale: lots of us use ui-router in place of ngRoute too FYI just cause it allows for nested states and abstract states and a few other things that make it easier to use as projects get larger
[21:34:12] <damoncasale> Okay. So if I'm doing a single page app (just to get started and learn Angular), I don't need that, it seems like.
[21:34:12] *** SyBr has joined #angularjs
[21:34:20] * damoncasale nods.
[21:34:27] <wafflejock_> damoncasale: yeah if you're just starting you don't need routers necessarily
[21:34:29] <damoncasale> Lemme just feel my way around Angular first. :)
[21:34:32] <damoncasale> Thanks!
[21:34:35] <wafflejock_> np
[21:35:11] *** Ymesio has quit IRC
[21:35:18] *** bpayne has quit IRC
[21:35:38] *** jshultz has quit IRC
[21:35:52] <damoncasale> Hmm...looks like you were advising someone else on using ui-bootstrap. I'm familiar with Bootstrap from other projects. So ui-bootstrap allows for doing modal popups?
[21:36:03] *** nodweber has quit IRC
[21:36:09] <wafflejock_> damoncasale: ui-bootstrap is just an angular wrapper on the bootstrap js code
[21:36:13] <damoncasale> I found some code online that does it w/o ui-bootstrap, just checking to see what's possible.
[21:36:28] <damoncasale> Oh, so would I use the same Bootstrap markup, or no?
[21:36:40] <wafflejock_> damoncasale: it uses the bootstrap css
[21:36:42] <damoncasale> data-toggle="modal" etc.
[21:36:43] <damoncasale> Ah.
[21:36:44] *** chltjdgh86 has quit IRC
[21:36:46] <wafflejock_> the js is slightly different sometimes
[21:36:50] <wafflejock_> er the directives
[21:36:54] *** rburns has quit IRC
[21:37:33] <wafflejock_> it stays pretty true to bootstrap though, there's also angularstrap but I've used the former more as do most of the people who chat in here, but also some foundation or ionic users in various scenarios
[21:37:39] <Foxandxss> lewix: stop everything you're doing, think again
[21:37:43] *** nodweber has joined #angularjs
[21:38:05] *** Dalsass_mobi has joined #angularjs
[21:38:09] *** DrMabuse has quit IRC
[21:39:20] *** Dalsass_mobi has quit IRC
[21:39:20] *** fedenunez has joined #angularjs
[21:40:27] *** jumpstracks has joined #angularjs
[21:42:14] *** JesseEichar_ has joined #angularjs
[21:42:22] *** JesseEichar_ has quit IRC
[21:43:13] *** Simone\_ has joined #angularjs
[21:43:21] *** Simone\ has quit IRC
[21:43:34] *** anjumkaiser1 has joined #angularjs
[21:44:09] *** bkuberek_ has joined #angularjs
[21:44:14] *** bpayne has joined #angularjs
[21:44:51] *** apetro_ has joined #angularjs
[21:44:51] *** Simone\_ has quit IRC
[21:45:04] *** anjumkaiser has quit IRC
[21:45:04] *** soichih has left #angularjs
[21:46:22] <lewix> wafflejock_, Foxandxss i just want to know how to pass the scope
[21:46:24] *** DrMabuse has joined #angularjs
[21:46:33] *** MTGap has quit IRC
[21:47:17] *** punisher has joined #angularjs
[21:47:26] *** arek_deepinit has joined #angularjs
[21:47:54] *** bkuberek has quit IRC
[21:48:13] *** Simone\ has joined #angularjs
[21:49:14] *** jdj_dk has joined #angularjs
[21:51:15] *** kijiuuuiu has joined #angularjs
[21:51:21] *** kijiuuuiu has left #angularjs
[21:52:03] *** faviouz has quit IRC
[21:52:20] *** fl0ppy_ has joined #angularjs
[21:52:37] <rev087> Foxandxss: sorry, was hibernating
[21:53:10] <Foxandxss> let me think
[21:53:12] <Foxandxss> ah
[21:53:22] <Foxandxss> doesn't ng-inspector work on file:/// ?
[21:53:27] <rev087> nope =/
[21:53:34] *** jdj_dk has quit IRC
[21:53:34] *** fl0ppy has quit IRC
[21:53:34] *** fl0ppy_ is now known as fl0ppy
[21:53:36] <Foxandxss> ok, was wondering :)
[21:53:48] <rev087> it's a security limitation in browsers, sadly
[21:54:27] <Foxandxss> in my libs, I have some playgrounds to try stuff and it was just file:///
[21:55:22] *** jchamberlain has quit IRC
[21:55:50] <rev087> do you use a mac?
[21:55:57] <wafflejock_> lewix: this does it http://plnkr.co/edit/YcDlsshWdkfbLRdIXgLV?p=preview
[21:56:07] <rev087> python -m SimpleHTTPServer ${1:-8000}
[21:56:09] <Foxandxss> rev087: yup
[21:56:12] <Foxandxss> yah, that is right
[21:56:24] <rev087> opens a webserver at the folder...it's a little more work, but does the trick =P
[21:56:25] *** Milanito has joined #angularjs
[21:56:36] <Foxandxss> indeed, or just a grunt-connect
[21:56:38] *** annlewis has joined #angularjs
[21:56:38] <Foxandxss> but that is easier
[21:56:52] *** heavyhorse has quit IRC
[21:56:56] <rev087> yeah, that works too
[21:57:07] <rev087> I put that in my ~/.profile file
[21:57:08] *** heavyhorse has joined #angularjs
[21:57:14] <Foxandxss> put what
[21:57:20] <rev087> the python command
[21:57:25] <Foxandxss> an alias?
[21:57:45] <rev087> for some reason I made it a function, but an alias should work too
[21:57:47] <rev087> I think
[21:57:50] <rev087> I'm a bash noob lol
[21:57:51] <Foxandxss> paste it
[21:57:54] <Foxandxss> I am too
[21:58:01] <rev087> serve () {
[21:58:01] <rev087> python -m SimpleHTTPServer ${1:-8000}
[21:58:01] <rev087> }
[21:58:07] <wafflejock_> Foxandxss: is it cool if I post a gource output of ui-bootstrap on YouTube or would that piss people off?
[21:58:09] <Foxandxss> and show you call it?
[21:58:14] *** nanoyak has joined #angularjs
[21:58:19] <rev087> just type "serve" in the directory
[21:58:24] <rev087> works like an alias
[21:58:26] <Foxandxss> wafflejock_: it is already public
[21:58:29] *** senayar has joined #angularjs
[21:58:36] <wafflejock_> right that's what I figure too
[21:58:39] <wafflejock_> it just came from git data
[21:58:53] *** jumpstracks has quit IRC
[21:59:08] *** mven_ has quit IRC
[21:59:28] <wafflejock_> Foxandxss: well here it is then https://www.youtube.com/watch?v=rMa2luqadVA
[21:59:46] *** bpayne has quit IRC
[21:59:56] *** Milanito has quit IRC
[22:00:42] *** fl0ppy has quit IRC
[22:00:56] <wafflejock_> just been getting a kick out of these lately, good for catching up on a long running projects history a bit too
[22:00:57] *** styles has joined #angularjs
[22:01:08] *** annlewis has quit IRC
[22:01:17] <Foxandxss> command works
[22:01:26] <Foxandxss> but my playground has an href as ../gen/foo
[22:01:27] *** Milanito has joined #angularjs
[22:01:32] <Foxandxss> and that is not working
[22:01:35] <Foxandxss> maybe on another folder...
[22:01:52] <Foxandxss> that way works
[22:01:56] *** heavyhorse has quit IRC
[22:02:18] <Foxandxss> wafflejock_: cool
[22:03:02] *** fedenunez has quit IRC
[22:03:03] <Foxandxss> my name is on youtube, cool
[22:03:05] <Foxandxss> tomorrow, tv
[22:03:28] <wafflejock_> haha yeah I don't think my channel is getting you there but small steps :)
[22:04:24] *** bpayne has joined #angularjs
[22:05:02] *** squeakytoy has quit IRC
[22:05:14] *** save has joined #angularjs
[22:06:26] *** mven_ has joined #angularjs
[22:06:31] <Foxandxss> ohh
[22:09:51] *** Ymesio has joined #angularjs
[22:10:27] <wafflejock_> lewix: you see the plunkr does that work for you?
[22:11:23] *** euskadi313 has quit IRC
[22:11:36] *** euskadi31 has joined #angularjs
[22:11:45] *** lewix has quit IRC
[22:11:58] *** Dalsass_mobi has joined #angularjs
[22:12:32] *** chltjdgh86 has joined #angularjs
[22:13:10] *** SuRfDeMoN has joined #angularjs
[22:13:12] *** subnl2 has joined #angularjs
[22:14:03] *** subnl2 has left #angularjs
[22:14:10] *** vorktanamobay has joined #angularjs
[22:14:19] *** kalehv has joined #angularjs
[22:15:18] *** heavyhorse has joined #angularjs
[22:16:02] *** marcospgp has quit IRC
[22:16:20] *** dancek has quit IRC
[22:16:31] *** TorpedoSkyline has quit IRC
[22:16:48] *** bpayne has quit IRC
[22:17:01] *** nerdfiles has quit IRC
[22:17:40] *** kalehv_ has quit IRC
[22:19:23] *** elux has quit IRC
[22:19:49] *** mrogne has joined #angularjs
[22:20:48] *** heavyhorse has quit IRC
[22:20:59] *** Bade has quit IRC
[22:21:03] *** heavyhorse has joined #angularjs
[22:21:36] *** darrin has quit IRC
[22:21:42] *** subnl2 has joined #angularjs
[22:22:11] *** Yahkob has joined #angularjs
[22:23:12] *** TheAceOfHearts has joined #angularjs
[22:23:42] *** heavyhor1e has joined #angularjs
[22:24:04] *** heavyhorse has quit IRC
[22:24:31] *** tpyo has joined #angularjs
[22:25:15] *** dashed has quit IRC
[22:26:09] *** mary5030 has quit IRC
[22:26:52] *** TorpedoSkyline has joined #angularjs
[22:27:30] *** lewix has joined #angularjs
[22:28:54] <wafflejock_> angular is surprisingly small in terms of number of files in the project and the pace isn't as crazy as it seems when you see the constant release numbers
[22:29:38] *** jamto11 has joined #angularjs
[22:29:50] *** Bade has joined #angularjs
[22:30:01] *** fedenunez has joined #angularjs
[22:32:47] *** MathiasM has joined #angularjs
[22:32:54] *** futuredale has quit IRC
[22:33:04] <wafflejock_> ah was looking at the site repo that makes more sense :P
[22:33:58] *** jamto11 has quit IRC
[22:34:36] <lewix> wafflejock_, thank you. ill check it out
[22:34:55] *** aslate has joined #angularjs
[22:35:08] *** TorpedoSkyline has quit IRC
[22:37:09] <wafflejock_> ah yeah so angular source line count info http://paste.ubuntu.com/7748615/
[22:37:21] *** Jae has quit IRC
[22:37:29] <wafflejock_> lewix: np think it's probably what your looking for but not sure
[22:37:33] *** vorktanamobay has quit IRC
[22:38:57] *** MathiasM has quit IRC
[22:39:03] *** aslate has quit IRC
[22:39:50] *** lewix has quit IRC
[22:40:09] *** nicholaswyoung has quit IRC
[22:40:35] *** nicholaswyoung has joined #angularjs
[22:41:15] *** GeertV____ has joined #angularjs
[22:43:07] *** Inge- has quit IRC
[22:44:27] *** arek_deepinit has quit IRC
[22:44:43] *** nicholaswyoung_ has joined #angularjs
[22:44:45] *** nicholaswyoung has quit IRC
[22:45:04] *** RandomStranger has quit IRC
[22:45:10] *** RandomStranger has joined #angularjs
[22:45:29] *** Inge- has joined #angularjs
[22:46:16] *** fedenunez has quit IRC
[22:46:31] *** aaronmitchell has joined #angularjs
[22:46:38] *** lw has quit IRC
[22:46:58] *** Nizumzen has joined #angularjs
[22:47:02] *** Dalsass_mobi has quit IRC
[22:47:28] *** danielpquinn has joined #angularjs
[22:48:29] *** jdj_dk has joined #angularjs
[22:51:27] *** kennbrodhagen has joined #angularjs
[22:52:20] *** caitp has quit IRC
[22:52:21] *** danielpquinn has quit IRC
[22:52:36] *** vonnegut has quit IRC
[22:53:35] *** jdj_dk has quit IRC
[22:54:52] *** Cache_Money has quit IRC
[22:55:57] *** kennbrodhagen has quit IRC
[22:56:28] *** caitp has joined #angularjs
[22:56:40] *** annlewis has joined #angularjs
[22:57:03] *** zwacky has quit IRC
[22:57:05] *** drej has quit IRC
[22:57:23] *** gnar_matix has quit IRC
[22:57:56] *** subnl2 has quit IRC
[22:58:59] *** Siecje has left #angularjs
[22:59:23] *** alt_qq has quit IRC
[22:59:49] *** Willow__ has quit IRC
[22:59:56] *** alt_qq has joined #angularjs
[23:00:10] *** dancek has joined #angularjs
[23:00:16] *** Willow__ has joined #angularjs
[23:00:35] *** jtimon has joined #angularjs
[23:01:08] *** annlewis has quit IRC
[23:01:47] *** tylerjohnst has quit IRC
[23:02:47] *** marcospgp has joined #angularjs
[23:02:58] *** Dalsass_mobi has joined #angularjs
[23:03:39] *** TorpedoSkyline has joined #angularjs
[23:03:51] *** tpyo has quit IRC
[23:04:46] *** apetro_ has quit IRC
[23:04:54] *** Willow__ has quit IRC
[23:05:49] *** Stephen has joined #angularjs
[23:05:54] *** sdouglas has joined #angularjs
[23:07:23] *** TheAceOfHearts has quit IRC
[23:09:02] *** cboden has quit IRC
[23:10:43] *** dbouwman has joined #angularjs
[23:10:57] *** TheAceOfHearts has joined #angularjs
[23:11:43] <Foxandxss> friday night
[23:12:42] *** jae has joined #angularjs
[23:15:17] *** ustunozgur has quit IRC
[23:15:18] *** dbouwman has quit IRC
[23:15:31] *** jae is now known as Jae
[23:16:51] *** save has quit IRC
[23:17:04] *** btc_panhandler has quit IRC
[23:17:46] *** btc_panhandler has joined #angularjs
[23:18:14] *** Mouzi has quit IRC
[23:19:10] *** Ymesio has quit IRC
[23:19:15] *** bmac has joined #angularjs
[23:19:17] *** sdouglas has quit IRC
[23:19:26] *** ojacobson has quit IRC
[23:22:09] *** shinnya has joined #angularjs
[23:22:14] *** gordroid has quit IRC
[23:22:21] *** peldan has quit IRC
[23:22:47] *** peldan has joined #angularjs
[23:24:17] *** aslate has joined #angularjs
[23:24:47] *** ceephax has joined #angularjs
[23:24:56] *** TorchDragon has joined #angularjs
[23:26:16] *** bmac has quit IRC
[23:26:39] *** patrickarlt has joined #angularjs
[23:26:56] *** _sean has joined #angularjs
[23:27:20] *** peldan has quit IRC
[23:27:26] *** patrickarlt has quit IRC
[23:28:01] *** patrickarlt has joined #angularjs
[23:28:22] <wafflejock_> Foxandxss: 4th of July for US too will be heading out myself soon
[23:28:48] <wafflejock_> just did the gource on angular source pretty entertaining, as of 2013 it's just a consant stream of different people committing
[23:28:49] <Foxandxss> ah, true
[23:28:54] <Foxandxss> drink drink and drink?
[23:29:00] *** Cache_Money has joined #angularjs
[23:29:00] <wafflejock_> yeh probably
[23:29:08] <Foxandxss> share something
[23:29:09] *** aslate has quit IRC
[23:29:30] *** gnar_matix has joined #angularjs
[23:29:32] <wafflejock_> yup most likely
[23:29:51] *** TorchDragon has quit IRC
[23:31:20] *** pdillinger has joined #angularjs
[23:32:33] *** tyfighter has joined #angularjs
[23:32:33] *** patrickarlt has quit IRC
[23:33:03] *** cullum has quit IRC
[23:34:10] *** feelfine has quit IRC
[23:34:31] *** gnar_matix has quit IRC
[23:35:35] *** gnar_matix has joined #angularjs
[23:37:29] *** feelfine has joined #angularjs
[23:37:42] *** DrMabuse has quit IRC
[23:37:58] *** punisher has quit IRC
[23:38:23] *** bmac has joined #angularjs
[23:39:32] *** richardbaker has joined #angularjs
[23:39:34] *** alinou has quit IRC
[23:39:41] *** jumpstracks has joined #angularjs
[23:40:03] *** punisher has joined #angularjs
[23:40:26] <TheAceOfHearts> there's a wall of drinks in NodeConf
[23:40:31] <TheAceOfHearts> infinite beer, whiskey, etc.
[23:41:08] *** Shrooms has quit IRC
[23:41:18] *** Louis11 has joined #angularjs
[23:41:32] *** punisher has quit IRC
[23:42:28] *** TheAceOfHearts has quit IRC
[23:42:41] *** punisher has joined #angularjs
[23:43:58] *** sacho_ has joined #angularjs
[23:44:06] <Louis11> I'm having a weird problem: I have a controller that creates an object and then uses ng-repeat to render it. Locally, this works but when I try and run it on a remote server it breaks. It appears as though on the remote server it's trying to render the HTML, but I get empty elements. I've checked the $scope, and everything seems to be OK there . . . any ideas why this is happening? Relevant code on SO: http://stackoverflow
[23:44:17] *** chltjdgh_ has joined #angularjs
[23:46:29] *** tedwing has quit IRC
[23:46:33] *** Louis11 has quit IRC
[23:46:45] *** sacho has quit IRC
[23:46:55] *** futuredale has joined #angularjs
[23:46:56] *** Louis11 has joined #angularjs
[23:47:03] *** benjf_ has joined #angularjs
[23:47:32] *** chltjdgh86 has quit IRC
[23:47:53] *** btc_panhandler has quit IRC
[23:48:20] *** chltjdgh_ has quit IRC
[23:48:24] *** jdj_dk has joined #angularjs
[23:48:57] *** morenoh149 has quit IRC
[23:50:14] *** benjf has quit IRC
[23:51:16] *** Tidwell has joined #angularjs
[23:51:56] <wafflejock_> Louis11: incomplete link
[23:52:06] *** benjf_ is now known as benjf
[23:52:19] *** jumpstracks has quit IRC
[23:52:57] *** jdj_dk has quit IRC
[23:52:59] *** btc_panhandler has joined #angularjs
[23:53:23] *** snurfery has joined #angularjs
[23:53:28] *** nodweber has quit IRC
[23:54:49] *** SyBr has quit IRC
[23:55:02] *** enriques has quit IRC
[23:55:53] <Louis11> wafflejock_: to stack overflow?
[23:55:58] *** heavyhor1e has quit IRC
[23:55:59] <wafflejock_> Louis11: yup
[23:56:10] <Louis11> http://stackoverflow.com/questions/24569688/angularjs-data-binding-producing-empty-html-tags
[23:56:14] <Louis11> how's that?
[23:56:18] <wafflejock_> good
[23:56:44] <Louis11> This has been driving me crazy. As far as I can tell it's working . . . but the <h1> tags and the <li> are simply empty…
[23:57:15] <Louis11> And when I work locally, they aren't empty . . . I took out the API call, and just hard coded the data in, same thing.
[23:57:17] <wafflejock_> Louis11: do you have a reference to the running code
[23:57:23] *** darrin has joined #angularjs
[23:57:26] *** Cache_Money has quit IRC
[23:57:29] <marcospgp> damn i'm having so much trouble setting up a backend with nodejs and express. can someone point me in the right direction?
[23:57:36] *** dotts has joined #angularjs
[23:57:39] <Louis11> Yes, one sec. I modified it a bit.
[23:57:50] *** wa5ted has quit IRC
[23:58:13] *** wa5ted has joined #angularjs
[23:58:42] *** jkremser has quit IRC
[23:58:56] <Louis11> wafflejock_: http://pocketplaid.com/#/
[23:59:33] <Louis11> click the button in the top left to show the sidebar. You'll notice the API request is successful, and that if you inspect the html it's built out correctly. But the data isn't binding or something...
[23:59:38] *** kroogs has joined #angularjs
[23:59:55] *** MTGap has joined #angularjs
top

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