Switch to DuckDuckGo Search
   December 11, 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:03] *** Ix-Xitan has joined #angularjs
[00:00:03] *** Ix-Xitan is now known as PointBlank
[00:00:13] *** elrabin has joined #angularjs
[00:00:15] *** sharkcat has joined #angularjs
[00:00:26] *** vaerros has joined #angularjs
[00:00:28] <BobbieBarker_> mdcox: dependency injection
[00:00:37] <BobbieBarker_> inject 'modelName' into your controller
[00:00:41] <mdcox> Is it something where I should just have access to it? Or is there soething similar to $scope I need to call/assign it to?
[00:00:44] <jaawerth> BobbieBarker_: Honestly, I repeat myself so often in here (lots of trends with questions) that I want to do it so I can just whip out a blog post with a bunch of info and code samples
[00:00:48] <blackkbot> I half-read blogs ... i usually just scan through them to see their code samples and see what they are talking about
[00:00:48] *** chrisbirk has quit IRC
[00:00:49] *** prbc has joined #angularjs
[00:01:11] <BobbieBarker_> jaawerth: that's a good point
[00:01:13] *** caitp has quit IRC
[00:01:34] <mdcox> *something
[00:01:34] <BobbieBarker_> i also have a tremendously short attention span
[00:01:37] *** {DV8} has quit IRC
[00:01:43] <jaawerth> as it is, I just have a few starred plunks I keep around and try to maintain to cover some key concepts, and a few great blogp posts I have saved in Pocket that I'll link people on certain subjects
[00:01:54] *** netameta has joined #angularjs
[00:02:03] <Grokling> jaawerth: I started adding stuff to unibot.
[00:02:08] <BobbieBarker_> jaawerth: do you have an example of DI for mdcox here since he isn't picking up what i'm putting down
[00:02:11] *** dc has quit IRC
[00:02:20] *** dcherman2 has joined #angularjs
[00:02:30] *** HMBBabyface has joined #angularjs
[00:02:32] *** ingsoc has quit IRC
[00:02:32] *** phuh has quit IRC
[00:02:33] *** elrabin_ has quit IRC
[00:02:43] *** Wizek has joined #angularjs
[00:02:51] <jaawerth> hrm, how deep down the rabbit hole are we going here?
[00:02:52] <mdcox> BobbieBarker, jaawerth: Thanks! That should be enough for me to search the rest up on my own. I appreciate it!
[00:02:58] *** phuh has joined #angularjs
[00:03:00] <Grokling> mdcox: !google angularjs+dependency+injection
[00:03:01] <UniBot1> mdcox: http://lmgtfy.com/?q=angularjs+dependency+injection
[00:03:01] <UniBot> mdcox: http://lmgtfy.com/?q=angularjs+dependency+injection
[00:03:10] *** Kzsh_ has quit IRC
[00:03:11] <jaawerth> lol
[00:03:13] <mdcox> Alot of it was just the vocab in how to search for it since no one seems to talk about it in terms of models
[00:03:13] *** chachan has quit IRC
[00:03:22] <jaawerth> mdcox: angular does it magically
[00:04:01] <mdcox> magically as in it should already be accessible?
[00:04:14] <BobbieBarker_> yes via dependency injection
[00:04:23] <sharkcat> Q: hiya! :) can someone please explain to me how these two differ? 1. app.controller("SomeController", function($scope) { ... 2. app.controller("SomeController", ["$scope", function($scope) { ... I'm curious how $scope magically come in with the first version. :)
[00:04:42] *** Etherael has quit IRC
[00:04:59] *** chrisshattuck has quit IRC
[00:05:06] <mdcox> Hmmm, I've probably royally messed something up then. Cool, thanks for setting me on the right track! I always hate asking questions like that since it feels like its a "rtfm" moment.
[00:05:10] *** chrisbirk has joined #angularjs
[00:05:12] <jaawerth> mdcox: so here's the idea - when you do angular.module('foo', []), you're declaring a new module. angular.module('foo') is an "accessor" for the module, and when you call/chain .factory(function(stuff)), .controller(function(stuff) { on it, you're passing those functions into a method that registers them on the module
[00:05:13] *** oste has quit IRC
[00:05:13] *** wartech1 has quit IRC
[00:05:42] *** neilff has quit IRC
[00:05:47] *** jdcasey has quit IRC
[00:05:49] <Grokling> sharkcat: The same magic applies in both cases. The second syntax is minification safe.
[00:05:55] <jaawerth> mdcox: so angular knows about them. It knows enough to look at the parameters in all of those functions, and compare them to known providers - built-in or otherwise - by name and pass them in where necessary
[00:05:55] *** jdivock_ has quit IRC
[00:06:28] <mdcox> Hmmm, I've gotten a Provider error when I try to access it directly, which is why I thought I needed to pass it in somewhere
[00:06:33] <sharkcat> @Grokling: that's very helpful, thanks. :) appreciate your help
[00:06:34] <BobbieBarker_> FYI you don't need to write the min safe syntax anymore
[00:06:39] <BobbieBarker_> i'm sure we all know that
[00:06:45] *** bayousoft has quit IRC
[00:06:48] <jaawerth> in other words, angular.module('app').controller(function(YourFactory) { is all you need - but the name has to match, and if you use minification you need to use array syntax (or automate it), because minifiers scramble all the variable/function param names
[00:06:54] *** HMBBabyface has quit IRC
[00:07:01] <BobbieBarker_> no they don't
[00:07:08] <sharkcat> @jaawerth: that bit about angular.module(name) vs angular.module(name, []) is very interesting, thanks :)
[00:07:08] <BobbieBarker_> i haven't written the minsafe syntax in for ever
[00:07:10] <jaawerth> sshhh I'm giving the simple version
[00:07:17] <BobbieBarker_> jaawerth: sorry
[00:07:20] <jaawerth> BobbieBarker_: you're probably using ngAnnotate
[00:07:25] <BobbieBarker_> ofc i am
[00:07:29] <BobbieBarker_> cuz i'm not a common savage
[00:07:34] <jaawerth> so you're automating the safe syntax
[00:07:37] <jaawerth> like I mentioned :P
[00:07:39] <Grokling> uncommon savage ;-)
[00:07:40] <BobbieBarker_> lol
[00:07:44] *** apertoire has joined #angularjs
[00:07:45] <BobbieBarker_> ofc i am
[00:07:52] <BobbieBarker_> cuz i want my code to be as readable as possible
[00:07:57] <jaawerth> lol
[00:08:08] <jaawerth> I kinda like the array stuff
[00:08:13] *** Foxandxss has quit IRC
[00:08:14] * Grokling bets BobbieBarker_ also uses livereload..
[00:08:14] <BobbieBarker_> i find it to be an eye sore
[00:08:19] <BobbieBarker_> fuck ya i do
[00:08:37] <BobbieBarker_> i get paid to be productive not press the refresh button on my browser
[00:08:42] *** neilff has joined #angularjs
[00:08:42] <jaawerth> I like it now that I don't have to wait for grunt for a million years
[00:08:44] *** Wizek has quit IRC
[00:08:51] <BobbieBarker_> i use gulp
[00:08:53] <jaawerth> same
[00:09:00] <Grokling> gulp is the beans.
[00:09:02] *** chrisbirk has quit IRC
[00:09:07] <BobbieBarker_> no doubt
[00:09:21] <BobbieBarker_> if you haven't checked out the gulp swiip angular yoeman generator i would
[00:09:22] <jaawerth> I like it so much better that the fact that sails uses grunt makes me less interested in using it, which is sad because I really want to use it
[00:09:27] <BobbieBarker_> i used to write my own gulp shit from scratch
[00:09:32] <jaawerth> gulp swiip?
[00:09:34] <BobbieBarker_> but that yo generator is fucking bad ass
[00:09:36] *** diraol has joined #angularjs
[00:09:43] <Grokling> Especially now that I've fixed it so it doesn't reload my entire backend when I change the frontend stuff.
[00:09:52] *** g33k5z has quit IRC
[00:10:00] <Grokling> jaawerth: Easy enough to turn off grunt in sails.
[00:10:02] <jaawerth> I've checked out generator-gulp-angular. It's the first generator that comes anywhere close to my preferred style of project organization, and yeah, the gulpfiles are great
[00:10:18] *** g33k5z has joined #angularjs
[00:10:19] <BobbieBarker_> https://github.com/Swiip/generator-gulp-angular
[00:10:25] <jaawerth> ah yeah, same one I use
[00:10:25] <diraol> Hi friends, can someone give some help with angular (for a mobile app) + CSRFToken (from a Django REST API) ?
[00:10:30] <BobbieBarker_> hands down best yo generator out there for gulp+angular imo
[00:10:35] <diraol> I can't make it work at all....
[00:10:38] *** rev087 has quit IRC
[00:10:53] *** yelvert has quit IRC
[00:11:06] *** chrisbirk has joined #angularjs
[00:11:14] <jaawerth> one of the only things it's really missing is an action to inject all of your custom components with gulp-inject - which is a strange ommission since they're already USING gulp-inject for other things. easy enough to add the 10 lines or so to get that action, though
[00:11:16] <BobbieBarker_> jaawerth: i agree it's the first generator that comes close to my preferred style of project organization as well
[00:11:20] *** yelvert has joined #angularjs
[00:11:38] *** woah has quit IRC
[00:11:39] *** PointBlank has quit IRC
[00:11:44] <BobbieBarker_> jaawerth: you know how it is when you're running a project some times bug fixes trump new features
[00:11:46] <jaawerth> it bugs me that they put navbar in /components and didn't give it its own module though
[00:11:49] <BobbieBarker_> even if the feature is simple
[00:12:02] <BobbieBarker_> jaawerth: i nuke that shit out of there soon as i fun the generator
[00:12:07] <jaawerth> haha yeah
[00:12:10] <BobbieBarker_> i don't even remember what their demo shit looks like
[00:12:21] *** chrisbirk has quit IRC
[00:12:25] <BobbieBarker_> personally i do put my navbar into it's own module
[00:12:26] <jaawerth> lol. it just bugs me on principle
[00:12:35] <BobbieBarker_> usually i write the navbar into a directive though
[00:12:37] <jaawerth> as a rule, everything in my /components folder is a module
[00:12:43] <BobbieBarker_> i agree
[00:12:51] * jaawerth high fives
[00:12:53] *** jasonp has quit IRC
[00:12:55] *** swist has joined #angularjs
[00:13:06] <BobbieBarker_> i recipicate your digital high five
[00:13:18] *** richardlitt has joined #angularjs
[00:13:29] *** uru is now known as uru|away
[00:13:36] <jaawerth> do you use gulp-inject to add them all? I LOVE being able to do that. it's the easiest way to automate installing a component you're written short of making private bower repos
[00:13:50] *** aslate has joined #angularjs
[00:13:50] <BobbieBarker_> naw cuz i'm a bum
[00:13:55] <jaawerth> I think wafflej0ck recommended that one to me
[00:13:58] <BobbieBarker_> i should do that though
[00:13:59] *** TheAceOfHearts has quit IRC
[00:14:21] <BobbieBarker_> do you have anything you can link me up on
[00:14:32] <BobbieBarker_> so i can check this out
[00:14:40] *** g33k5z has quit IRC
[00:14:50] *** yts has joined #angularjs
[00:15:14] <diraol> Hi friends, can someone give some help with angular (for a mobile app) + CSRFToken (from a Django REST API) ? I've tried tons of things and it's not working... =/
[00:15:44] <Grokling> speaking of minification and stuff.. is there a safe way to smash my variable names to shorten them right up? var myEasyToUnderstandWhatItsFor = {} etc
[00:15:45] *** FunnyLookinHat has quit IRC
[00:15:48] *** neilff has quit IRC
[00:15:49] *** yelvert has quit IRC
[00:16:05] <jaawerth> BobbieBarker_: https://gist.github.com/jaawerth/648ba323875d28f0b8dd
[00:16:10] *** prbc has quit IRC
[00:16:14] *** dannyc has joined #angularjs
[00:16:16] <jaawerth> that's my 9-line task code that does it
[00:16:49] <BobbieBarker_> my hero
[00:16:50] *** pknordic has joined #angularjs
[00:16:52] <BobbieBarker_> thanks broseph
[00:17:03] *** TheAceOfHearts has joined #angularjs
[00:17:25] <jaawerth> only thing you gotta watch out for is to make sure your module declarations in /components/ get injected before all its pieces. I just put the declaration in the root of the component and all the other js in a sub-dir so I don't have to worry about what letter my files start with
[00:17:38] <Grokling> jaawerth I'm going to leech that on the way past. Was thinking about doing something like that just last night.
[00:17:43] <BobbieBarker_> i'll look into it tonigght
[00:17:57] <jaawerth> and when I'm screwing with a new piece of code and don't want it injected, I just change the extension to foo._js until I'm ready for it to be injected
[00:17:57] *** aslate has quit IRC
[00:18:07] *** dcherman2 has quit IRC
[00:18:08] <BobbieBarker_> groovy
[00:18:16] *** HMBBabyface has joined #angularjs
[00:18:30] <jaawerth> MOAR INFO https://github.com/klei/gulp-inject
[00:18:33] *** opiates has quit IRC
[00:19:04] *** goodenough has joined #angularjs
[00:19:10] *** mven has quit IRC
[00:19:37] *** Solid1 is now known as Solid1_afk
[00:19:41] *** dcherman2 has joined #angularjs
[00:20:18] <jaawerth> diraol: I've never done it with DJango but I hear it's annoying
[00:20:32] *** busticated has joined #angularjs
[00:20:36] *** mary5030 has quit IRC
[00:20:38] *** dannyc has quit IRC
[00:21:12] <diraol> I'm almost hitting my head on the wall.... 1 day fighting with CORS (Cross Origin Request) and now it's one day fighting with CSRF ...
[00:21:25] *** pknordic has quit IRC
[00:21:32] *** a3gis has joined #angularjs
[00:21:51] <diraol> jaawerth, the server response says "CSRF cookie not set", but I have the CSRFToken and I'm sending it on the request header....
[00:21:59] *** mmealling has quit IRC
[00:22:05] *** Limix has joined #angularjs
[00:22:28] <jaawerth> diraol: have you verified that via your network tab on dev tools?
[00:22:28] *** zbzzn has quit IRC
[00:22:49] *** richardlitt has quit IRC
[00:22:49] <diraol> jaawrth: yeah!!
[00:22:51] *** yts has quit IRC
[00:23:06] *** zbzzn has joined #angularjs
[00:23:07] *** Trindaz has joined #angularjs
[00:23:10] <diraol> I'm sending the token on the header and on the request data, with the form data....
[00:23:10] <jaawerth> does it work when you send the request manually via something like Postman?
[00:23:24] <diraol> Hum... I haven't tried it...
[00:23:41] <diraol> I've tried on the web browser and on the mobile (I'm using ionic + cordova + angular)
[00:23:44] <jaawerth> because there are two possibilities: either something's wrong with your request, or there's something wrong with your API ;-)
[00:23:51] <diraol> ;)
[00:23:58] <diraol> That's make sense hehehe
[00:24:05] *** mzabriskie has quit IRC
[00:24:07] *** bulkan has joined #angularjs
[00:24:11] <Trindaz> $httpBackend. I don't get it - I'm pretty sure I've used it in the past without defining a response, and in the examples at https://docs.angularjs.org/api/ngMock/service/$httpBackend I can see simple usage examples like .expectGet('/auth.py')
[00:24:24] <jaawerth> if postman fails the same way, it's probably an API problem.. or you were given the wrong spec or something.
[00:24:36] <Trindaz> However when I try to use it the same way I get Error: No response defined !
[00:24:37] <Trindaz> why?
[00:24:50] *** ron1 has quit IRC
[00:25:01] <diraol> jaawerth: that's a good idea to test were the problem is. I'll try to do the POST on the command line with CURL
[00:25:02] *** a3gis has quit IRC
[00:25:22] *** dylan9o4 has joined #angularjs
[00:25:29] <dylan9o4> How can
[00:25:51] <Grokling> Two can
[00:25:57] *** _mtr has quit IRC
[00:26:02] <jaawerth> Trindaz: I'm guessing it has something to do with that table at the top of the docs
[00:26:03] *** plex0r has quit IRC
[00:26:09] *** danecando has joined #angularjs
[00:26:32] *** elrabin has quit IRC
[00:27:00] <dylan9o4> How can I use a custom filter funtion within ng-repeat to say if a property matches a regex it will be added?
[00:27:09] *** roadrunneratwast has quit IRC
[00:27:28] *** areologist has quit IRC
[00:27:33] *** g33k5z_ has joined #angularjs
[00:27:38] <jaawerth> dylan9o4: what are you filtering? an array?
[00:27:56] <Trindaz> thanks jaawerth. So if you don't want to specify a response on the expectGet usage then you have to have previously defined one using .when
[00:28:16] <jaawerth> yeah, pretty sure
[00:28:16] <dylan9o4> jaawerth: yes from a json object
[00:28:43] *** cdaringe has joined #angularjs
[00:28:46] *** bostonaholic has joined #angularjs
[00:28:47] *** startupality has joined #angularjs
[00:29:03] <jaawerth> ..is it an array or an object?
[00:29:03] *** sonofdirt has quit IRC
[00:29:29] *** _ritchie_ has joined #angularjs
[00:29:33] <jaawerth> (filtering an ng-repeat works way better with arrays)
[00:30:34] *** robdubya has joined #angularjs
[00:30:37] <dylan9o4> It's an object, and they demonstrate always fetching data as a json object
[00:30:41] *** vaerros has left #angularjs
[00:30:52] <diraol> jaawerth: Thanks for the smart tip, I've done a CURL post and it has worked (or, at least, it seems to)
[00:30:53] *** bostonaholic has quit IRC
[00:31:27] <diraol> It seems that I have to pass the cookie itself on the request, not just the token.
[00:31:37] *** araujo has quit IRC
[00:31:45] *** SargoDarya has joined #angularjs
[00:31:55] *** robdubya has quit IRC
[00:32:21] <jaawerth> diraol: ack yeah, one of those two-parter nightmares
[00:32:47] <jaawerth> dylan9o4: who's "they"?
[00:33:00] <Grokling> dylan9o4: A json object can contain arrays. If you're ng-repeating on an array, you can use the builtin filter. If you're ng-repeating on an object, you have to roll your own, and it's harder work.
[00:33:02] <diraol> I just don't understand why angular is not sending the cookie, since I've said to... but... let's find out...
[00:33:03] *** cdaringe has quit IRC
[00:33:08] *** merobertsjr has joined #angularjs
[00:33:08] <jaawerth> anyway, you can put an array as a property on a json obj- what Grokling said
[00:33:09] *** roadrunneratwast has joined #angularjs
[00:33:11] *** cdaringe has joined #angularjs
[00:33:38] *** robdubya has joined #angularjs
[00:34:05] *** bostonaholic has joined #angularjs
[00:34:07] *** HMBBabyface has joined #angularjs
[00:35:24] *** mdcox has quit IRC
[00:35:39] *** christo_m has quit IRC
[00:36:00] *** dcherman has joined #angularjs
[00:36:07] *** vassagus has quit IRC
[00:36:21] <dylan9o4> jaawerth: angular's tutorials on data binding use json objects
[00:36:40] *** SargoDarya has quit IRC
[00:37:29] <dylan9o4> In this case it is an object though, and I want to filter one of the keys to a regex
[00:37:37] *** richardlitt has joined #angularjs
[00:37:54] <dylan9o4> one of the values*
[00:38:15] *** dcherman2 has quit IRC
[00:38:29] *** bkuberek has joined #angularjs
[00:38:33] *** d10n-work has quit IRC
[00:38:39] *** HMBBabyface has quit IRC
[00:38:50] <moogey> When using the controllerAs syntax in directives that require a parent, if the child directive needs to call a parents function, is there a clean way to do that without going $scope.{parent controllerAs name}.{method} and requiring the parent to place it's method on the $scope?
[00:38:57] *** maikowblue has joined #angularjs
[00:38:59] <jaawerth> you can't filter an ng-repeated object that way without a workaround that basically involves converting it to an array on the fly
[00:39:03] *** MistahKurtz has quit IRC
[00:39:20] *** plekplek has quit IRC
[00:39:52] *** cdaringe has quit IRC
[00:40:05] *** plekplek has joined #angularjs
[00:41:25] *** cotko has joined #angularjs
[00:41:38] *** Joe_knock has joined #angularjs
[00:41:52] *** cdaringe has joined #angularjs
[00:41:53] *** zbzzn has quit IRC
[00:42:05] *** ChadStrat has quit IRC
[00:42:09] <jaawerth> with an array, you can just do ng-repeat="item in items|filter:someFunc" and any items for which someFunc returns true, the item is included in the ng-repeat (so you'd execute your regex in the func)
[00:42:21] *** mdcox has joined #angularjs
[00:42:40] <jaawerth> function(item) { return yourRegexp.test(item) }
[00:42:51] *** Evanion has quit IRC
[00:43:03] <jaawerth> with an object it's more complicated, because the whole object ends up getting passed into a filter
[00:43:31] *** Rojtjo has joined #angularjs
[00:44:26] *** RobinBAwesome has quit IRC
[00:44:59] *** bradmaxs has quit IRC
[00:45:06] *** RobinBAwesome has joined #angularjs
[00:45:14] *** Sawbones has quit IRC
[00:45:49] *** merobertsjr has quit IRC
[00:46:04] *** cdaringe has quit IRC
[00:46:06] *** ChadStrat has joined #angularjs
[00:46:47] *** Guest22 has quit IRC
[00:46:47] *** a3gis has joined #angularjs
[00:46:48] *** phuh has quit IRC
[00:47:27] *** robdubya has quit IRC
[00:47:37] *** federicobucchi has joined #angularjs
[00:47:43] *** balr0g has quit IRC
[00:47:46] *** robdubya has joined #angularjs
[00:48:02] *** Foxandxss has joined #angularjs
[00:48:11] *** katsh has joined #angularjs
[00:48:11] *** Superhard_ has quit IRC
[00:48:46] *** Superhard_ has joined #angularjs
[00:49:32] *** Sawbones has joined #angularjs
[00:49:36] *** MistahKurtz has joined #angularjs
[00:49:44] *** baweaver has quit IRC
[00:49:50] *** HMBBabyface has joined #angularjs
[00:50:29] *** Johnny13371337 has quit IRC
[00:50:40] *** dcherman has quit IRC
[00:50:54] *** platonic has quit IRC
[00:50:55] *** frem_ has quit IRC
[00:52:06] *** bkuberek has quit IRC
[00:52:43] *** doginal has quit IRC
[00:53:04] *** Superhard_ has quit IRC
[00:54:17] *** HMBBabyface has quit IRC
[00:54:49] *** dylan9o4 has quit IRC
[00:55:24] *** g33k5z_ has quit IRC
[00:56:18] *** rtpg has joined #angularjs
[00:56:21] *** startupality has quit IRC
[00:57:18] *** platonic has joined #angularjs
[00:57:44] *** rho has quit IRC
[00:58:11] *** rho has joined #angularjs
[00:58:13] *** tfennelly has quit IRC
[00:58:57] *** jonathanpglick has quit IRC
[00:59:22] *** greg5green has joined #angularjs
[00:59:40] *** ebryn_ is now known as ebryn
[00:59:57] *** roadrunneratwast has quit IRC
[01:01:00] *** g33k5z has joined #angularjs
[01:01:11] *** doginal has joined #angularjs
[01:01:42] *** caitp has joined #angularjs
[01:02:10] <zwischenzug> hello....is plunker down for anyone else?
[01:02:36] *** dmack has joined #angularjs
[01:03:00] <Grokling> zwischenzug: Yes - been down for at least 48hrs.
[01:03:10] *** CanyonMan has joined #angularjs
[01:03:11] *** Rejected has joined #angularjs
[01:03:37] <zwischenzug> does this room have a recommended alternative?
[01:03:44] *** jonathanpglick has joined #angularjs
[01:03:54] *** baweaver has joined #angularjs
[01:04:00] *** knownasilya has quit IRC
[01:04:00] *** simook has quit IRC
[01:04:18] <Grokling> There's codepen, or jsfiddle (probably in that order?)
[01:04:59] *** elaijuh has joined #angularjs
[01:05:34] *** HMBBabyface has joined #angularjs
[01:06:32] *** richardlitt has quit IRC
[01:06:45] *** Left_Turn has quit IRC
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:01] *** aboudreault has quit IRC
[01:10:11] *** HMBBabyface has quit IRC
[01:10:31] *** elestud has joined #angularjs
[01:11:00] *** e0ipso is now known as e0ipso|away
[01:11:30] *** startupality has joined #angularjs
[01:12:11] *** startupality has quit IRC
[01:12:16] <lebster> ngdialog any good? or is something else better out there
[01:13:23] *** rafagomes has joined #angularjs
[01:13:37] *** jtimon has quit IRC
[01:13:46] *** aboudreault has joined #angularjs
[01:13:58] *** jonathanpglick has quit IRC
[01:14:23] <blackkbot> im sure ngdialog is good but is it what you need?
[01:14:36] *** jonathanpglick has joined #angularjs
[01:14:37] *** rafagomes_ has joined #angularjs
[01:14:49] *** rafagomes has quit IRC
[01:16:00] *** cthrax has quit IRC
[01:16:31] <moogey> same question as before http://stackoverflow.com/questions/27413213/accessing-parents-methods-using-controlleras-syntax-in-directives
[01:16:31] <lebster> well i need modal pop up
[01:17:07] <lebster> so it does what i need, but is it the best thing to fullfill my need blackkbot ?
[01:17:10] *** deanclkclk has joined #angularjs
[01:17:47] <blackkbot> how do i know?
[01:18:40] *** bbfck has left #angularjs
[01:18:47] *** Zentdayn has joined #angularjs
[01:18:50] *** rtpg has quit IRC
[01:18:59] *** AciD`` has quit IRC
[01:20:44] *** panzon has quit IRC
[01:21:16] *** jonasliljestrand has quit IRC
[01:21:20] *** HMBBabyface has joined #angularjs
[01:21:36] *** ChadStrat has quit IRC
[01:22:08] <lebster> i donno, i just asked if there is a better alternative, and you asked if its what i need? what alternative solutions are there that don't do what ngdialog does but fullfills the need of showing a modal popup?
[01:22:25] *** _ritchie_ has quit IRC
[01:22:25] *** _mtr has joined #angularjs
[01:23:10] *** jonasliljestrand has joined #angularjs
[01:23:28] *** DrMabuse has quit IRC
[01:23:41] *** charuru has quit IRC
[01:23:56] *** night-owl is now known as zz_night-owl
[01:24:00] *** qwerty2 has joined #angularjs
[01:24:14] *** cthrax has joined #angularjs
[01:24:20] <qwerty2> hi
[01:24:23] *** jonasliljestrand has quit IRC
[01:25:21] *** cacts|works has quit IRC
[01:25:36] *** dacuca has quit IRC
[01:25:43] *** fairuz has joined #angularjs
[01:25:50] <blackkbot> i was only suggesting you use what you have if it fulfills your requirements
[01:25:58] *** HMBBabyface has quit IRC
[01:25:58] <Grokling> lebster: You've asked for an opinion as to the 'goodness' of ngdialog, but without giving any criteria. A chainsaw is great. But absolute rubbish for knitting with.
[01:26:00] <qwerty2> I discover yeoman and their generators. help me a lot! :-D
[01:26:31] <CanyonMan> I'm using cloudpebble because trying to install the real sdk on my ancient ubuntu was a nightmare. It's on my list of things to do over Christmast to get myself up to date.
[01:26:37] <qwerty2> if I have this json http://pastebin.com/pRK5nspY ¿could I find the element with id = 1 please?
[01:26:39] <CanyonMan> Where do console.logs go ?
[01:26:43] <CanyonMan> oh crap
[01:26:44] <CanyonMan> haha
[01:26:45] <blackkbot> the console
[01:26:46] <blackkbot> lol
[01:26:47] <CanyonMan> i meant to ask that in #pebble
[01:26:47] <CanyonMan> sorry
[01:26:51] <CanyonMan> dammit
[01:26:51] *** tfennelly has joined #angularjs
[01:27:22] <CanyonMan> this is what happens when you try to do too many things at once
[01:27:31] *** _mtr has quit IRC
[01:28:04] *** g-nom3 has joined #angularjs
[01:28:57] *** g33k5z has quit IRC
[01:29:04] <Grokling> qwerty2: lodash.find, array.prototype.find, array.map, angular.forEach - so many options.
[01:29:06] *** soj has quit IRC
[01:29:19] *** evilaliv3 has quit IRC
[01:29:35] <qwerty2> if I have this json http://pastebin.com/pRK5nspY ¿could I find the element with id = 1 please?
[01:29:55] <Grokling> qwerty2: lodash.find, array.prototype.find, array.map, angular.forEach - so many options.
[01:30:47] <lebster> hmm i guess theres no criteria other then what is most common for a generic solution to displaying modal
[01:31:13] <lebster> just want to see if theres other things out there
[01:31:29] <Grokling> Google is a great place to start.
[01:31:32] *** soj has joined #angularjs
[01:31:49] *** mary5030 has joined #angularjs
[01:31:54] <themime> Grokling: woooow ive been using for loops in my code
[01:32:16] <Grokling> Oh yeah.. I forgot for loops..
[01:32:24] <themime> haha
[01:32:45] <Grokling> But don't do that.. they're slow and cumbersome.
[01:32:58] <themime> faster than angular.forEach
[01:33:02] *** kakashiA1 has quit IRC
[01:33:16] <themime> well for (var i =0 ...etc)
[01:33:34] <themime> i didn't know about array.prototype.find
[01:33:39] *** soj has quit IRC
[01:34:00] <Grokling> themime: http://jsperf.com/angular-foreach-vs-jquery-each/11
[01:34:06] *** wartech1 has joined #angularjs
[01:34:14] <Grokling> themime: You could add in a case to compare a for loop if you like..
[01:34:19] *** ProLoser has quit IRC
[01:34:24] *** soj has joined #angularjs
[01:34:28] *** platonic has quit IRC
[01:34:31] *** Aliks_ has joined #angularjs
[01:34:51] <themime> Grokling: none of the examples there describe the for loop i mentioned
[01:34:55] *** k-dawg has joined #angularjs
[01:35:02] <Grokling> themime: You could add in a case to compare a for loop if you like..
[01:35:16] <themime> my understanding is that angular.forEach is x3 slower than for(var i=0..etc)
[01:35:24] <Grokling> Thank goodness for copy+paste.. I feel like an echo!
[01:35:26] *** tfennelly has quit IRC
[01:35:43] <lebster> yeah i found ngdialog and bootstrap.modal, but nothing that compares the two
[01:36:32] <robdubya> will somebody plz reboot plunker?
[01:36:33] *** mary5030 has quit IRC
[01:36:34] *** Aliks has quit IRC
[01:36:36] <robdubya> its really cramping my style
[01:36:47] <g-nom3> haha
[01:37:07] *** HMBBabyface has joined #angularjs
[01:37:21] <themime> Grokling: or i can google it :3 http://jsperf.com/angular-foreach-vs-native-for-loop/3
[01:37:34] <themime> robdubya: seriously
[01:37:44] *** wartech1 is now known as davek
[01:37:46] <themime> robdubya: people can barely get help here too
[01:37:47] *** bbankes has quit IRC
[01:37:50] <themime> cause im all
[01:37:54] <themime> make a plunker!
[01:37:56] * themime waves cane
[01:37:57] *** axsuul has quit IRC
[01:37:59] <Grokling> robdubya: I thought you would've forked it by now!
[01:38:45] *** zlalanne has quit IRC
[01:39:32] *** baweaver has quit IRC
[01:39:43] <themime> Grokling: that link shows native and angular.foreach 91% slower than native for (angular slightly outperforms native foreach as expected though, but not by much)
[01:40:04] <themime> er ignore that first 'native'
[01:40:33] *** christo_m has joined #angularjs
[01:40:33] *** sharkcat has quit IRC
[01:40:51] *** platonic has joined #angularjs
[01:40:55] *** lexek__ has quit IRC
[01:41:40] *** HMBBabyface has quit IRC
[01:42:20] <Grokling> themime: lodash is only just behind.
[01:42:27] <Grokling> http://jsperf.com/angular-foreach-vs-jquery-each/12
[01:43:41] <Trindaz> here was a mind-boggling experience I had with angular today. http://stackoverflow.com/questions/27413517/how-can-this-statement-possibly-return-undefined
[01:44:38] <themime> Grokling: nice i don't use lodash but it seems really common here. i bet they detect whether its an actual array or just an object and use the approriate paradigm
[01:44:53] <themime> doesnt seem that hard to extend angular to do that
[01:44:59] *** rho has quit IRC
[01:45:13] *** cthrax has quit IRC
[01:45:25] *** kolyaflash has quit IRC
[01:45:26] *** deanclkclk_ has joined #angularjs
[01:45:27] <themime> Grokling: heh on mine lodash was faster than the native for (var i =)
[01:45:45] *** deanclkclk has quit IRC
[01:46:34] *** caitp has quit IRC
[01:46:34] <themime> by 8%
[01:46:35] <Grokling> themime: I think lodash is pretty hard to beat overall - they've made it their mission to make it as fast as possible, on every combination of browser and OS.
[01:46:35] *** DLSteve has quit IRC
[01:46:47] *** Anonymous_ has quit IRC
[01:47:33] <icfantv> lodash is AWESOME
[01:47:39] <Grokling> I'm using a bunch of stuff all over the place, none of it lodash. On my list of things to do when I have spare time (which will never happen) is to convert stuff to using one library..
[01:48:23] <themime> yea i like the throttle and debounce, but i always seem to find a way around it
[01:48:29] *** ProLoser has joined #angularjs
[01:48:31] <themime> around anything lodash might do
[01:48:35] <icfantv> Grokling: is that like: "we'll release it as is for now and then go back and fix it."
[01:48:35] *** Rejected has quit IRC
[01:48:50] <icfantv> and then you never go back and fix it...
[01:49:17] *** Superhard_ has joined #angularjs
[01:49:39] <Grokling> Something along those lines - "It's working, so don't mess with it because you've already pushed out the deadline a few times, and making it 2% faster really isn't on the critical path at this point"
[01:49:49] * mdcox would also like to throw in his praise of lodash.
[01:50:11] *** MaxV has quit IRC
[01:50:17] <mdcox> I work on an app that takes crazy amounts of data structure manipulation, and without lodash it'd be so much slower it's crazy.
[01:50:30] *** glaksmono has joined #angularjs
[01:50:36] *** ChadStrat has joined #angularjs
[01:50:37] <Grokling> icfantv: When I get a minion, that will be a good job for them to do ;-)
[01:50:48] <themime> what i don't get is how they make it faster than the native for(var i =0) - are they like...passing it off to some precompiled ASM or something
[01:51:28] <Grokling> themime: Probably looking at the whole statement, realising that it doesn't actually do anything, and skipping to the end ;-)
[01:52:16] *** g33k5z has joined #angularjs
[01:52:20] <themime> aah
[01:52:29] *** baweaver has joined #angularjs
[01:52:50] *** HMBBabyface has joined #angularjs
[01:53:15] <diraol> folks, I can't understand why, but my Angular APP is not getting cookies from the server it's requesting data.
[01:53:23] <diraol> When I access $cookies It's just empty...
[01:53:26] *** bostonaholic has quit IRC
[01:53:38] *** Superhard_ has quit IRC
[01:53:56] *** icfantv has quit IRC
[01:53:59] <mdcox> The code itself is beautiful and really well documented: https://github.com/lodash/lodash/blob/master/lodash.js . It's obviously a real work of love
[01:54:06] *** pootpoot has quit IRC
[01:54:15] <Grokling> themime: Really, I have no idea, but that's what I'd do.. I once optimised the crap out of an Oracle performance tuning exercise by resizing the terminal window to as small as it would go. The instructor couldn't believe the results I posted, and couldn't get close to those numbers himself.
[01:55:31] <themime> haha thats great
[01:56:21] <themime> mdcox: nice looks like a while loop is the core
[01:56:25] *** Joe_knock has quit IRC
[01:56:35] <themime> and they have a helper function that pulls off the next element
[01:57:15] <themime> wait nm looking at a special on
[01:57:16] <themime> e
[01:57:23] *** HMBBabyface has quit IRC
[01:57:31] <themime> will have to poke around that later
[01:57:57] *** elaijuh has quit IRC
[01:58:26] *** a3gis has quit IRC
[01:58:26] *** kolyaflash has joined #angularjs
[01:58:41] *** mogaj has joined #angularjs
[01:58:57] *** {DV8} has joined #angularjs
[02:00:10] *** zz_night-owl is now known as night-owl
[02:00:19] *** doginal has quit IRC
[02:00:22] *** DrMabuse has joined #angularjs
[02:00:37] *** jchamberlain has quit IRC
[02:01:19] *** shaym_ has quit IRC
[02:01:30] <diraol> Friends, anyone with any idea why my $cookies is just empty?
[02:01:47] *** settinghead has quit IRC
[02:01:48] *** grantfunke_ has quit IRC
[02:01:55] <Grokling> Does anyone know of a directive/widget that combines an <input> with a <select>? So you can type, or dropdown a list?
[02:02:11] *** cacts has joined #angularjs
[02:02:17] *** Zentdayn has quit IRC
[02:02:31] *** settinghead has joined #angularjs
[02:02:39] *** baweaver has quit IRC
[02:02:47] *** aslate has joined #angularjs
[02:02:57] *** OddDuck has quit IRC
[02:03:05] *** phzon has joined #angularjs
[02:03:21] <jaydubya> Grokling: I do just that using the typeahead directive
[02:03:27] *** fairuz has quit IRC
[02:03:56] <Grokling> jaydubya: Does it allow you to dropdown a list of options without needing to type something first?
[02:04:36] *** jeffisabelle has quit IRC
[02:05:01] *** dannyc has joined #angularjs
[02:05:16] <jaydubya> Grokling: I use this one http://hakib.github.io/MassAutocomplete/ but I don't have that use case so I don't know
[02:05:38] *** bbankes has joined #angularjs
[02:05:39] *** pknordic has joined #angularjs
[02:06:44] *** settinghead has quit IRC
[02:07:22] *** phzon has quit IRC
[02:07:52] *** aslate has quit IRC
[02:07:55] *** rtpg has joined #angularjs
[02:08:40] *** HMBBabyface has joined #angularjs
[02:09:27] *** dannyc has quit IRC
[02:09:30] *** torartc has quit IRC
[02:09:34] *** Left_Turn has joined #angularjs
[02:09:37] *** babykosh has joined #angularjs
[02:09:53] *** yoshokatana has joined #angularjs
[02:10:12] *** pknordic has quit IRC
[02:10:13] <Grokling> jaydubya: thanks - I can probably hack that into doing what I need easier than I can write my own today.
[02:10:55] *** codeman has joined #angularjs
[02:11:04] *** circ-user-DYCGC has joined #angularjs
[02:11:43] *** bkuberek has joined #angularjs
[02:11:47] *** frem_ has joined #angularjs
[02:12:08] *** codeman has quit IRC
[02:12:12] *** ChadStrat has quit IRC
[02:12:27] *** circ-user-OX34E has joined #angularjs
[02:12:35] <jaydubya> Grokling: glad to help since you have helped me so much
[02:12:50] <circ-user-DYCGC> ping
[02:12:51] *** Foxandxss has quit IRC
[02:13:00] *** codeman has joined #angularjs
[02:13:02] <jaydubya> cobra
[02:13:14] *** nicholes has quit IRC
[02:13:19] <Grokling> scorpion
[02:13:28] *** HMBBabyface has quit IRC
[02:13:42] <jaydubya> NO, he was starting a list of golf equipment manufactureres
[02:13:50] <jaydubya> callaway
[02:14:42] <Grokling> Oh. In that case I have no idea. No time for golf.. too much work to be done!
[02:14:43] *** peterp has joined #angularjs
[02:14:59] <peterp> Has anyone ever sorted ascending/descending in a dropdown?
[02:15:03] <peterp> https://docs.angularjs.org/api/ng/filter/orderBy
[02:15:09] <peterp> shows how to switch with ng-click
[02:15:47] <Grokling> peterp: an autocomplete/typeahead kind of thing?
[02:15:58] *** fairuz has joined #angularjs
[02:16:03] *** windsurf_ has joined #angularjs
[02:16:09] <peterp> Nope I just have a dropdown with different ways you can sort
[02:16:17] <windsurf_> how can I catch the success and error handlers for $scope.user.$save() ?
[02:16:22] <peterp> Right now sorting works, but I need to be able to sort in reverse if you select it again
[02:16:23] <windsurf_> user is an ngResource
[02:16:23] *** jchamberlain has joined #angularjs
[02:16:47] *** circ-user-DYCGC has quit IRC
[02:16:57] *** circ-user-5jURQ has joined #angularjs
[02:17:09] *** codeman has quit IRC
[02:17:13] <Grokling> windsurf_: as long as $save returns a promise, .then() should work?
[02:17:14] *** babykosh has quit IRC
[02:17:42] *** jchamber_ has joined #angularjs
[02:18:00] *** jchamberlain has quit IRC
[02:18:13] *** inspiron has quit IRC
[02:18:26] *** doginal has joined #angularjs
[02:18:38] *** boxmein has quit IRC
[02:18:45] <windsurf_> Grokling: ok, it does
[02:18:54] *** codeman has joined #angularjs
[02:19:02] *** dacuca has joined #angularjs
[02:19:38] *** caitp has joined #angularjs
[02:19:40] *** jeffisabelle has joined #angularjs
[02:19:46] *** goodenough has quit IRC
[02:20:17] *** zumba_ad_ has joined #angularjs
[02:20:18] <lebster> anyone know of a modal directive that allows me to set with width on the directive itself instead of with a class name?
[02:20:30] <zumba_ad_> do you guys use regex to validate strings? or is filter better?
[02:20:36] *** SargoDarya has joined #angularjs
[02:21:04] *** circ-user-5jURQ has quit IRC
[02:21:10] *** bmac has joined #angularjs
[02:21:16] *** HarryAtMove has quit IRC
[02:21:22] *** cakirke has joined #angularjs
[02:21:24] <s00pcan> zumba_ad_: regex has nearly unlimited flexibility and filter(s) are shortcuts.
[02:21:34] <zumba_ad_> k
[02:21:46] <s00pcan> shortcuts that you should use whenever possible
[02:21:49] <robdubya> "now you have two problems"
[02:22:39] <zumba_ad_> hey robdubya, how are you?
[02:22:49] <windsurf_> Grokling: yep that works, thank you!
[02:22:50] *** balr0g has joined #angularjs
[02:23:19] *** ProLoser has quit IRC
[02:23:32] *** _mtr has joined #angularjs
[02:24:17] <zumba_ad_> I'm actually being added as a reviewer by other team. I noticed they like using hasOwnProperty(). Is this ok to use?
[02:24:25] *** HMBBabyface has joined #angularjs
[02:24:25] *** MuffinMan` has joined #angularjs
[02:24:26] *** m3l720__ has quit IRC
[02:24:37] <zumba_ad_> i'm not used to using this function
[02:25:23] *** SargoDarya has quit IRC
[02:26:13] *** rtpg has quit IRC
[02:26:40] *** k-dawg has quit IRC
[02:26:43] *** axsuul has joined #angularjs
[02:27:17] *** DrMabuse has quit IRC
[02:27:36] *** doginal has quit IRC
[02:27:41] *** dmack has quit IRC
[02:28:05] <robdubya> i'm well, thanks. you?
[02:28:15] *** _mtr has quit IRC
[02:28:37] *** HMBBabyface has quit IRC
[02:28:49] *** marr has quit IRC
[02:29:47] *** jonathanpglick has quit IRC
[02:30:07] *** tfennelly has joined #angularjs
[02:30:40] *** stormbytes has joined #angularjs
[02:30:44] *** circ-user-OX34E has quit IRC
[02:31:08] <qwerty2> great
[02:31:11] <qwerty2> great
[02:31:13] *** jMyles has quit IRC
[02:31:45] *** rtpg has joined #angularjs
[02:32:35] *** Limix has quit IRC
[02:33:04] *** codeman has quit IRC
[02:33:36] *** rev087 has joined #angularjs
[02:34:59] *** nuizzy has quit IRC
[02:35:32] *** peterp has quit IRC
[02:35:44] *** jchamber_ has quit IRC
[02:35:46] <qwerty2> great
[02:35:54] *** Sawbones has quit IRC
[02:36:05] *** bkuberek has quit IRC
[02:36:24] *** snapwich has quit IRC
[02:36:36] *** jchamberlain has joined #angularjs
[02:37:00] *** tfennelly has quit IRC
[02:37:15] *** anapitupulu has joined #angularjs
[02:37:17] *** yoshokatana has quit IRC
[02:38:10] *** joncodo has joined #angularjs
[02:38:23] <joncodo> Know of any irc channels for freelance coders?
[02:38:55] *** peterp has joined #angularjs
[02:39:29] *** woah has joined #angularjs
[02:39:49] *** bmac has quit IRC
[02:39:56] *** Sawbones_ has joined #angularjs
[02:40:08] *** HMBBabyface has joined #angularjs
[02:40:10] *** rev087 has quit IRC
[02:40:14] *** Sawbones_ has quit IRC
[02:40:14] *** jchamberlain has quit IRC
[02:40:15] *** dc has joined #angularjs
[02:40:25] *** woah has quit IRC
[02:42:12] <elestud> if anyone can help, I have a scope that's bound properly, but doesn't seem to replace the template variables with anything but blank space
[02:42:30] <elestud> http://pastebin.com/kDL8FfuS http://pastebin.com/W3k0ZuM3 -- those are the source files
[02:42:49] <elestud> I checked in the browser to make sure that the variables were being properly bound to the scope, and they are
[02:43:01] <windsurf_> I have a user object which is an ngResource at $scope.user . I have a couple views that bind to it. In my form view which has the fields contained in user (name etc), when I go $scope.user.$save() it succeeds but apparently the $scope loses its reference to the original resource instance because the views that bind to it go blank
[02:43:07] <windsurf_> what have I done wrong?
[02:43:19] *** icarus-c has joined #angularjs
[02:43:41] <windsurf_> (I’ve confirmed in the db and the success handler that the $save() succeeds)
[02:44:24] *** BahamutWC|Work has quit IRC
[02:44:55] *** HMBBabyface has quit IRC
[02:46:10] *** dc has quit IRC
[02:46:10] *** morenoh150 has quit IRC
[02:46:46] *** dc_ has joined #angularjs
[02:48:12] <qwerty2> great
[02:48:39] <qwerty2> I start fallinbg in love with angular!
[02:48:48] <diraol> Friends, I have a AngularAPP that do some requests to a REST Backend, but it is not saving the cookie from the backend, the $cookies object is empty. Any idea why it would be happening?
[02:49:18] *** bostonaholic has joined #angularjs
[02:51:01] *** bkuberek has joined #angularjs
[02:51:11] *** MaxV has joined #angularjs
[02:51:15] *** richardbkr has quit IRC
[02:51:41] *** richardbkr has joined #angularjs
[02:52:01] *** jeffisabelle has quit IRC
[02:52:16] *** BahamutWC|Work has joined #angularjs
[02:52:51] *** anapitupulu has quit IRC
[02:53:08] *** BahamutWC|Work has quit IRC
[02:53:18] *** drej has joined #angularjs
[02:53:36] *** cornerma1 has joined #angularjs
[02:53:37] *** fairuz has quit IRC
[02:54:05] *** richardbkr has quit IRC
[02:54:43] *** richardbkr has joined #angularjs
[02:54:58] *** jareddlc has quit IRC
[02:55:14] *** platonic has quit IRC
[02:55:50] *** MaxV has quit IRC
[02:55:55] *** HMBBabyface has joined #angularjs
[02:56:29] *** cornerman has quit IRC
[02:56:34] *** marcjs has quit IRC
[02:56:39] *** cornerma1 is now known as cornerman
[02:56:43] *** zumba_ad_ has quit IRC
[02:57:00] *** mdcox has quit IRC
[02:57:06] *** icarus-c has quit IRC
[02:57:46] *** DanSkaggs has quit IRC
[02:58:07] *** juanlas has joined #angularjs
[02:58:15] *** Left_Turn has quit IRC
[02:58:46] *** wsmoak has quit IRC
[02:59:02] *** richardbkr has quit IRC
[02:59:33] *** linojon has quit IRC
[02:59:41] *** peterp has quit IRC
[03:00:22] *** Zentdayn has joined #angularjs
[03:00:33] *** HMBBabyface has quit IRC
[03:01:05] *** ngbot has joined #angularjs
[03:01:05] <ngbot> [angular.js] jesselpalmer pushed 3 new commits to materialize: http://git.io/3aggIg
[03:01:05] <ngbot> angular.js/materialize 0c7b258 Palmer: docs(app): matches anchor tags to bootstrap
[03:01:06] <ngbot> angular.js/materialize a113fc5 Palmer: docs(app): fixes tabbing
[03:01:06] <ngbot> angular.js/materialize 7811ada Jesse Palmer: Merge pull request #10393 from jesselpalmer/updates_anchor_styles...
[03:01:06] *** ngbot has left #angularjs
[03:01:08] *** platonic has joined #angularjs
[03:01:21] <windsurf_> should my server respond to $scope.user.$save() with the full user object? My form gets emptied out with the current return of {success:true}
[03:04:08] *** linojon has joined #angularjs
[03:04:57] *** muffin has joined #angularjs
[03:05:15] *** linojon has quit IRC
[03:06:10] *** bostonaholic has quit IRC
[03:06:56] *** emanresu404 has joined #angularjs
[03:07:03] *** _mtr has joined #angularjs
[03:07:36] *** joncodo has left #angularjs
[03:08:00] *** swist has quit IRC
[03:08:02] *** circ-user-OX34E has joined #angularjs
[03:08:06] *** rchavik has joined #angularjs
[03:08:07] *** MuffinMan` has quit IRC
[03:08:08] *** linojon has joined #angularjs
[03:09:53] <windsurf_> seems to be so, works nwo.
[03:09:57] <windsurf_> now*
[03:10:00] *** windsurf_ has quit IRC
[03:10:22] <themime> ew poor windsurf with his awful code
[03:10:25] <themime> aw*
[03:10:35] <themime> was sympathy not disgust :P
[03:11:16] *** grantfunke_ has joined #angularjs
[03:11:22] *** babykosh has joined #angularjs
[03:11:38] *** ngbot has joined #angularjs
[03:11:39] <ngbot> [angular.js] jesselpalmer pushed 2 new commits to materialize: http://git.io/2a0D9g
[03:11:39] <ngbot> angular.js/materialize 3a4febb Josh Kurz: docs(app): adding a mobile first breadcrumb solution...
[03:11:39] <ngbot> angular.js/materialize 6b69860 Jesse Palmer: Merge pull request #10396 from joshkurz/materialize...
[03:11:39] *** ngbot has left #angularjs
[03:11:41] *** gekido has joined #angularjs
[03:11:47] *** HMBBabyface has joined #angularjs
[03:12:08] *** Pawp has joined #angularjs
[03:12:31] *** jrajaratnam has joined #angularjs
[03:12:53] *** dacuca has quit IRC
[03:13:28] *** emanresu404 has quit IRC
[03:13:46] *** circ-user-5jURQ has joined #angularjs
[03:13:54] <elestud> anyone around
[03:14:00] *** circ-user-5jURQ has quit IRC
[03:14:18] *** bradmaxs has joined #angularjs
[03:14:21] <elestud> I know this is probably a minor issue that will only take a minute to fix, but I'd be incredibly grateful
[03:14:38] *** qwerty2 has quit IRC
[03:15:36] *** mdcox has joined #angularjs
[03:15:47] *** babykosh has quit IRC
[03:16:28] *** HMBBabyface has quit IRC
[03:16:39] *** neilff has joined #angularjs
[03:17:28] <elestud> http://pastebin.com/kDL8FfuS http://pastebin.com/W3k0ZuM3 -- for some reason, the scope is being bound appropriately, but the templatating replaces the bound items with blank space
[03:17:50] <elestud> checking the scope with angular.element(theElement).scope() shows the the vars are bound appropriately
[03:18:00] <elestud> but the templating doesn't seem to work, and I'm not sure why
[03:19:15] *** fedenunez has joined #angularjs
[03:19:18] *** stormbytes has quit IRC
[03:19:32] *** ron1 has joined #angularjs
[03:19:34] <elestud> for anyone who can help me fix this, I will gladly Paypal you dinner :)
[03:19:41] *** juanlas has quit IRC
[03:20:58] *** neilff has quit IRC
[03:21:03] *** Sawbones has joined #angularjs
[03:21:18] <jsheely> What the hell happened to plunker?
[03:21:19] *** mdcox has quit IRC
[03:22:00] *** shampine has quit IRC
[03:23:18] *** devhoag has joined #angularjs
[03:24:09] *** nemothekid has quit IRC
[03:24:36] <jsheely> elestud try putting a $scope.$apply() after the $scope.channel_id
[03:24:40] *** oste has joined #angularjs
[03:24:45] <jsheely> If that works then you have a digest issue
[03:25:04] <bradmaxs> I have this input with ng-model and a value in a directive. <input ng-model="updated.printer" value="order.Printer.id"> Then I want to send that model to an actionwithin the controller with ng-click. The action is getting called but there is no data being sent. <button type="button" ng-click="update(updated)">Proceed</button> Any ideas?
[03:25:33] <elestud> jsheely: ok thanks -- trying it now
[03:25:46] <jsheely> elestud You also shouldn't put variables directly on the scope. You want something like $scope.viewModel = {channel_id:56}
[03:26:07] *** patrick99e99 has quit IRC
[03:26:12] <elestud> hmm
[03:26:30] *** circ-user-OX34E has quit IRC
[03:26:35] <elestud> is viewModel an angular convention, or is that just a namespace to hold the content I bind
[03:26:36] *** moe_khan123 has joined #angularjs
[03:26:40] *** gladely has quit IRC
[03:26:46] <jsheely> made up variable
[03:26:51] *** shinnya has quit IRC
[03:26:55] *** __danimal__ has joined #angularjs
[03:26:56] <jsheely> call it bob ><
[03:27:17] <moe_khan123> Hello everyone, first time using IRC. And this is the first channel I've joined... :)
[03:27:23] *** ivor has quit IRC
[03:27:27] <elestud> ok
[03:27:28] *** HMBBabyface has joined #angularjs
[03:27:31] *** whitebook has joined #angularjs
[03:27:39] <elestud> so calling $scope.$apply() gives this:
[03:27:41] <elestud> Error: [$rootScope:inprog] $digest already in progress
[03:27:42] <jsheely> the whole point is that it needs the . in order not be a reference variable
[03:27:46] <jsheely> elestud That's good
[03:28:27] *** bostonaholic has joined #angularjs
[03:28:28] <jsheely> That means the scope is being digested correctly. Your problem then is simply in the scope.
[03:28:37] *** devhoag has quit IRC
[03:28:39] *** zivester has joined #angularjs
[03:28:40] <elestud> so when I examine the scope
[03:28:42] *** plato has quit IRC
[03:28:50] <elestud> both of those vars are there
[03:29:00] *** Marcus_aurelius has joined #angularjs
[03:29:02] <jsheely> Try using the dot notation
[03:29:20] <elestud> ok -- how does that work
[03:29:26] <jsheely> $scope.viewModel = {} $scope.viewModel.channel_id = data.channel_id;
[03:29:40] <jsheely> then in your template {{viewModel.channel_id}}
[03:29:41] *** Fullmetal99012 has joined #angularjs
[03:29:46] <elestud> ok -- one sec
[03:30:01] *** Fullmetal99012 has left #angularjs
[03:30:17] *** ron1_ has joined #angularjs
[03:30:17] *** moe_khan123 has quit IRC
[03:30:19] *** Marcus_aurelius has left #angularjs
[03:30:42] *** soj has quit IRC
[03:31:18] <elestud> ugh
[03:31:33] <jsheely> Was that a positive ugh or a negative ugh =)
[03:31:34] <elestud> I know why this isn't working, and it's the silliest reason of all time
[03:31:38] <elestud> I'm ready to jump out a window
[03:31:42] <jsheely> elestud They always are
[03:31:55] * elestud slaps self
[03:32:04] *** ron1 has quit IRC
[03:32:05] *** HMBBabyface has quit IRC
[03:32:06] <jsheely> The internet just lost about 10,000 man hours because of the Batarang plugin
[03:32:36] *** plato has joined #angularjs
[03:32:43] *** plato has joined #angularjs
[03:32:46] *** robdubya has quit IRC
[03:32:50] *** Joy__ has quit IRC
[03:33:31] <elestud> haha, Batarang plugin?
[03:33:39] <jsheely> Angular chrome extension
[03:33:51] *** __danimal__ has quit IRC
[03:33:54] <jsheely> Shows you scope in the inspector window
[03:34:12] *** Simsalabim has joined #angularjs
[03:34:20] <elestud> ahhh
[03:34:25] <elestud> nice
[03:34:26] *** AWAW has quit IRC
[03:34:43] <elestud> the thing is, this is why I hate implementations that fail silently
[03:34:47] <jsheely> There was a bug in it that invasively effected any site with angular
[03:34:48] *** DoubleAW has joined #angularjs
[03:34:53] *** cakirke has quit IRC
[03:35:04] <elestud> oh no :(
[03:35:04] <jsheely> What was your bug sir?
[03:35:24] <elestud> the angular templates were being intercepted by the backend template platform
[03:35:25] *** SexualRickshaw has quit IRC
[03:35:37] *** ron1 has joined #angularjs
[03:35:49] <elestud> and because the backend template platform was architected to the fail silently, the fact that the vars did not exist made no difference to it
[03:36:02] *** SexualRickshaw has joined #angularjs
[03:36:12] *** recurrence has joined #angularjs
[03:36:18] <jsheely> That doesn't make sense. But I'll take your word for it
[03:36:27] *** ron1_ has quit IRC
[03:36:32] *** grantfunke_ has quit IRC
[03:37:15] *** Iravan has joined #angularjs
[03:37:25] *** richardbkr has joined #angularjs
[03:37:32] *** frkout has joined #angularjs
[03:37:37] <elestud> as in, the backend template language is configured by default to accept anything surrounded by {{ }} as a template variable
[03:37:42] *** RobinBAwesome has quit IRC
[03:37:57] *** mdedetrich has joined #angularjs
[03:38:06] <elestud> so the backend templating language was consuming all the template constructs and replacing them with nothing, before it ever got to the browser
[03:38:16] <elestud> thus Angular didn't have anything to replace
[03:38:17] *** Simsalabim has quit IRC
[03:38:48] *** jrajaratnam has quit IRC
[03:38:49] *** stillbourne has quit IRC
[03:38:49] *** Superhard_ has joined #angularjs
[03:38:49] <jsheely> I see
[03:38:53] <elestud> if the backend template language would throw and error when there's a variable referenced that doesn't exist, I'd have caught it
[03:39:04] <elestud> but it's setup to just replace {{missing_var}} with nothing
[03:39:06] *** zB0hs has quit IRC
[03:39:09] *** emanresu404 has joined #angularjs
[03:39:11] *** stillbourne has joined #angularjs
[03:39:16] <elestud> and continue as if all is well
[03:39:47] <jsheely> Well in either case. My advice was stil sound =)
[03:39:52] <elestud> haha, yeah
[03:40:11] <jsheely> $scope.$apply() is good for testing digest cycle issues
[03:40:18] *** sirkitree|afk is now known as sirkitree|afk|af
[03:40:31] *** frkout_ has quit IRC
[03:40:36] <elestud> this is my second day using Angular, so I'm not even far enough to know what a digest cycle is
[03:40:38] <jsheely> In case you use something like jQuery to update a variable outside of angulars ability to know if something updated
[03:40:49] <elestud> ok
[03:41:00] <jsheely> elestud Think of it like a loop that check to see if anything on the scope has changed
[03:41:08] <elestud> the thing is, because I checked the scope on the target element, I knew the vars were set correctly
[03:41:14] <elestud> that's why I was so confused
[03:41:29] *** mven has joined #angularjs
[03:41:36] <jsheely> Yea that's in normal circumstances a digest cycle issue
[03:41:46] <elestud> hmm
[03:41:59] <jsheely> if you do something like $('[ng-controller]').scope().channel_id = 5
[03:42:05] <jsheely> Angular doesn't know you did that
[03:42:07] *** richardbkr has quit IRC
[03:42:11] <elestud> well, I checked in Angular
[03:42:19] <jsheely> Yea, I'm just saying
[03:42:19] <elestud> with angular.element(blah).scope()
[03:42:25] <jsheely> Yea same thing
[03:42:36] <jsheely> angular.element() is just jQuery-lite
[03:42:47] *** frem_ has quit IRC
[03:42:51] *** Superhard_ has quit IRC
[03:42:58] <jsheely> If you outside of angular change it. It won't trigger a digest cycle
[03:43:13] *** HMBBabyface has joined #angularjs
[03:43:16] <jsheely> So the templates don't get updated. So the scope variable will be: B but the templates still think it's: A
[03:43:21] *** SexualRickshaw has quit IRC
[03:43:25] <elestud> ok, so the digest cycle is when Angular updates the tamples to be consistent with the new scope
[03:43:30] <elestud> *templates
[03:43:38] <jsheely> Basically
[03:43:56] <jsheely> It's more than that but in a nut shell yea
[03:44:00] <elestud> makes sense
[03:44:16] *** jrajaratnam has joined #angularjs
[03:44:29] <jsheely> digest is the magic sauce of angular. It's what does the dirty checking to know what was changed and what to update
[03:44:39] *** kirfu has joined #angularjs
[03:44:40] *** dsdeiz_ has quit IRC
[03:44:46] *** phrozensilver has quit IRC
[03:44:50] <jsheely> And you can feed it hints on what to "double check" on with $scope.$watch()
[03:44:54] *** ron_frown has joined #angularjs
[03:45:08] *** cotko has quit IRC
[03:45:08] <ron_frown> is there a decent way of expposing a scope method to javascript land?
[03:45:18] *** SexualRickshaw has joined #angularjs
[03:45:24] <ron_frown> I got stuff coming in signalr pipe, and angular is managing it on the other side
[03:45:46] *** emanresu404 has quit IRC
[03:46:01] <jsheely> ron_frown yea you can use angular.element("jQuery reference to element").scope() or $('[ng-controller]').scope();
[03:46:06] <jsheely> then fire said function
[03:46:17] <elestud> jsheely: thanks for the help -- it's much appreciated
[03:46:55] *** ryfaceman has joined #angularjs
[03:47:12] *** ryfaceman is now known as ryanfaceryan
[03:47:12] <jsheely> elestud You can also do $scope.$digest() but I forget off the top of my head the difference between that and $apply()
[03:47:28] <themime> $apply calls $digest, but with 1.3 you should really never need to call it
[03:47:29] <jsheely> I think $digest() is actually the better one ><
[03:47:31] <ron_frown> jsheely is there a reason why I woudlnt want to do that
[03:47:32] *** D9 has joined #angularjs
[03:47:37] <jaawerth> ugh no
[03:47:58] *** HMBBabyface has quit IRC
[03:48:08] <jsheely> ron_frown Only if you have too. Typically you'd do all that within angular and not let outside forces do weird stuff
[03:48:12] <jaawerth> $digest() will *only* update your local scope, which will put it out of sync with the rest of your app
[03:48:28] <jaawerth> it also doesn't wrap what it executes in angular's error handlers
[03:48:37] <ron_frown> ok
[03:48:44] *** bostonaholic has quit IRC
[03:48:45] <jsheely> jaawerth yea that's it. I knew there was something special with that one
[03:48:50] <jaawerth> there are situations where it's a benefit to call it directly, but one shouldn't use it without knowing the implications
[03:49:05] <jsheely> jaawerth It's a performance issue to do $digest() in isolation
[03:49:08] *** bulkan_ has joined #angularjs
[03:49:12] *** mmitchell has joined #angularjs
[03:49:18] <jsheely> vs doing a full cycle digest with $apply()
[03:49:28] <jsheely> but in most applications it won't make a difference
[03:49:46] <jsheely> unless you have a billion watches,
[03:50:05] <jaawerth> not so many an issue as an optimization, but you should ONLY use $digest if you know for a fact that it being out of sync won't matter, like if it's something specific to an isolte scope for a DOM thing or something
[03:50:11] <jaawerth> it can be hairy territory if one isn't cancel
[03:50:13] <jaawerth> er, careful
[03:50:13] *** Templarian__ is now known as Templarian
[03:50:25] <jsheely> yea, use with caution
[03:50:48] <mmitchell> are watches on $scope (in a controller) removed when the controller $scope is destroyed?
[03:50:54] *** debunk has quit IRC
[03:50:58] <jaawerth> that's another reason why it's good not to overuse $watch too, because all watchers will get triggered on every $apply
[03:51:14] <jaawerth> (every digest, really, unless you do an isolated digest)
[03:51:47] *** aslate has joined #angularjs
[03:51:49] <jaawerth> yeah, I believe unregistering the watchers happens automatically on the '$destroy' event
[03:52:12] *** busticated has quit IRC
[03:52:21] <mmitchell> cool that's what i thought too, but have seen code (in the wild) explicitly remove on the $scope's $destroy event
[03:52:24] *** snapwich1 has joined #angularjs
[03:52:52] *** snapwich1 has quit IRC
[03:53:00] <ryanfaceryan> :)
[03:53:03] *** snapwich has joined #angularjs
[03:53:03] *** bulkan has quit IRC
[03:53:12] *** axsuul has quit IRC
[03:53:17] *** snapwich has quit IRC
[03:53:35] <jsheely> mmitchell That's when it's helpful to just open angular.js and look at the $destroy function
[03:53:37] *** fairuz has joined #angularjs
[03:53:48] <mmitchell> ahh good idea
[03:53:50] *** dannyc has joined #angularjs
[03:53:56] *** _2_KennedyAlves has joined #angularjs
[03:54:02] <rtpg> has anyone ever had issues with angularJS not bootstrapping properly sometimes? I'm not exactly sure what's triggering the bootstrapping failure but I think when I load the page mostly from cache the bootstrapping triggers but on first load nothing seems to work
[03:54:12] *** bostonaholic has joined #angularjs
[03:54:22] *** pknordic has joined #angularjs
[03:54:44] <jsheely> rtpg The #1 reason is you're missing the ng-app attribute. After that it's something else =()
[03:55:28] *** elaijuh has joined #angularjs
[03:55:32] <rtpg> the ng-app attribute is there, but the bootstrapping doesn't seem to happen the first time I load the page. On refreshes it works every time though (no code changes)
[03:55:39] *** _2_KennedyAlves has left #angularjs
[03:56:25] <jsheely> rtpg Yea that's not normal. Something specific with your setup
[03:56:32] *** aslate has quit IRC
[03:56:38] <jsheely> Perhaps your script tag is in the wrong place or something
[03:56:43] <rtpg> was just wondering if anyone has experienced "race conditions" or something
[03:56:54] *** evanjs has joined #angularjs
[03:57:15] <rtpg> that's my theory too, going to look at it more in detail later (sometimes the bug doesn't happen even on first load..)
[03:57:16] <mmitchell> jsheely: where is $scope $destroy defined in the code? Digging through via github search now...
[03:58:14] *** dannyc has quit IRC
[03:58:33] <mmitchell> i see rootScope.js
[03:58:48] <jsheely> Depends on version obviously
[03:58:51] *** pknordic has quit IRC
[03:58:59] *** HMBBabyface has joined #angularjs
[03:59:05] <jsheely> But on like 7580 of 1.3.0
[03:59:15] <jsheely> isolateScope.$on('$destroy', unwatch);
[03:59:19] *** SexualRickshaw has quit IRC
[03:59:21] *** djvirgen has quit IRC
[03:59:25] *** bradmaxs has quit IRC
[03:59:39] *** nashimus has quit IRC
[03:59:42] <jaawerth> it wouldn't be the $destroy code
[03:59:42] *** zeezey has quit IRC
[03:59:48] <jaawerth> it would be the $watch code
[03:59:55] *** axsuul has joined #angularjs
[03:59:57] *** elaijuh has quit IRC
[04:00:06] *** ron1_ has joined #angularjs
[04:00:23] <mmitchell> i think i understand
[04:00:32] *** jpstokes has joined #angularjs
[04:00:43] *** ProLoser has joined #angularjs
[04:01:04] *** bradmaxs has joined #angularjs
[04:01:21] <jsheely> jaawerth Nah I'm fairly sure this is it. It's on the $destory event it unhooks all the watchers for all the controllers being torn down
[04:01:48] <jsheely> var unwatch = scope.$watch($parse(attrs[attrName], parentValueWatch), null, parentGet.literal);
[04:01:48] <jsheely> isolateScope.$on('$destroy', unwatch);
[04:02:04] <jaawerth> that's specifically for an isolate scope directive
[04:02:07] *** ron1 has quit IRC
[04:02:10] <jaawerth> you can tell from the context
[04:03:02] <jsheely> Well sure but the mechcanism I assume is the same. Maybe not
[04:03:16] *** SexualRickshaw has joined #angularjs
[04:03:32] *** HMBBabyface has quit IRC
[04:03:40] *** dsdeiz has joined #angularjs
[04:03:51] *** RobinBAwesome has joined #angularjs
[04:04:09] *** bostonaholic has quit IRC
[04:04:39] <jpstokes> Hey just learning angular...I'm following a tutorial and I'm just about finished but now my site stop working and I can't figure out why
[04:04:48] <jpstokes> https://gist.github.com/jpstokes/cc6ea64cdc579801c833
[04:04:52] *** RobinBAwesome has quit IRC
[04:04:53] <jsheely> $destory: function() fires an event broadcast of this.broadcast('$destroy'); which would trigger that $on('$destory') which would unhook the watch.
[04:05:07] *** digisky1 has quit IRC
[04:05:10] <jsheely> But that was like 3 minutes of scanning the code. Not 100%
[04:05:38] *** digisky1 has joined #angularjs
[04:05:54] <jaawerth> boom https://github.com/angular/angular.js/blob/e80053d91fd7c722e092a23d326384de2e552eb6/src/ng/rootScope.js#L897-L898
[04:06:07] *** MistahKurtz has quit IRC
[04:06:19] <jaawerth> it just kills the $$watchers array
[04:06:21] *** araujo has joined #angularjs
[04:06:21] *** araujo has joined #angularjs
[04:06:54] <jaydubya> I am posting to an API and I console.logged the returned data (see pix) ... I have tried everything I could imagine to harvest the insert id so I can assign it to the $scope. It is there at d.$$state.value.data.message but when I try to just log that value, it says "Cannot read property '$$state' of undefined" http://cl.ly/image/381E0E2s270f
[04:07:00] *** zeezey has joined #angularjs
[04:07:10] *** djvirgen has joined #angularjs
[04:07:27] <jsheely> jaawerth Yea, So we are both right
[04:07:31] *** marcjs has joined #angularjs
[04:07:36] <davek> jaawerth was more right.
[04:07:38] *** dave_boling has joined #angularjs
[04:07:58] <jsheely> =(
[04:08:12] <jaawerth> yeah, the bit you're referencing is in the code for $compile https://github.com/angular/angular.js/blob/d8e37078600089839f82f0e84022f1087e1fd3f2/src/ng/compile.js#L1964
[04:09:26] *** SargoDarya has joined #angularjs
[04:09:32] <jaawerth> basically when a scope gets destroyed, part of the destruction process is to kill the $$watchers. the bit of code there is to kill the automatic watchers on attributes
[04:09:52] *** zeezey has quit IRC
[04:09:56] *** davesidious__ has joined #angularjs
[04:10:01] *** araujo has quit IRC
[04:10:34] *** busticated has joined #angularjs
[04:10:37] *** lemur has joined #angularjs
[04:10:40] <jsheely> I see
[04:10:44] <jaawerth> hence the part about parsing attrs
[04:11:20] *** zeezey has joined #angularjs
[04:11:21] <jaawerth> sorry, didn't mean to pop your balloon ;-). it's way easier to trawl the code using the github repo, fwiw, easier to spot the context ;-)
[04:11:38] <jpstokes> Hey just learning angular...I'm following a tutorial and I'm just about finished but now my site stop working and I can't figure out why
[04:11:39] <jpstokes> https://gist.github.com/jpstokes/cc6ea64cdc579801c833
[04:11:43] *** lemur has quit IRC
[04:11:47] *** araujo has joined #angularjs
[04:11:52] *** caitp has quit IRC
[04:11:56] *** lemur has joined #angularjs
[04:12:07] *** bostonaholic has joined #angularjs
[04:12:12] *** marcjs has quit IRC
[04:12:25] <jsheely> Yup, My point was really to him was to just check to code. In either case 5 minutes and we got the answer.
[04:12:50] *** boneskull has joined #angularjs
[04:12:52] <jaawerth> jpstokes: any errors on the console?
[04:13:00] <jaawerth> jpstokes: this could be a problem jpstokes: well this could be it https://gist.github.com/jpstokes/cc6ea64cdc579801c833#file-app-js-L2
[04:13:02] <jpstokes> yeah I just add to gist
[04:13:03] <jaawerth> (trailing comma)
[04:13:08] *** startupality has joined #angularjs
[04:13:18] *** bostonah_ has joined #angularjs
[04:13:19] *** Hackwar1 has joined #angularjs
[04:13:37] *** SargoDarya has quit IRC
[04:13:42] *** davesidious_ has quit IRC
[04:14:01] *** Aliks_ has quit IRC
[04:14:10] <jpstokes> removed comma still getting same error
[04:14:35] *** Aliks has joined #angularjs
[04:14:45] *** HMBBabyface has joined #angularjs
[04:14:56] <jpstokes> the tutorial said something about the routing changed in v2+...I hunted around and found an example but I'm not sure if it right...not even sure if that's what's causing the issue
[04:15:08] *** _ritchie_ has joined #angularjs
[04:15:14] *** rtpg has quit IRC
[04:15:42] *** Hackwar has quit IRC
[04:15:59] *** DrMabuse has joined #angularjs
[04:16:05] *** djvirgen has quit IRC
[04:16:17] *** soj has joined #angularjs
[04:16:38] *** bostonah_ has quit IRC
[04:16:55] *** araujo has quit IRC
[04:17:03] <jaawerth> routing looks fine at a glance
[04:17:18] *** bostonaholic has quit IRC
[04:17:23] <jpstokes> jaawerth: the error page is saying something about ngRoute
[04:17:30] *** rtpg has joined #angularjs
[04:17:31] <bradmaxs> I have a general directive that I am calling more than once on a page. In each one I have to set variables that I will be sending back to a REST API. I cna't do it with hidden inputs and models it seems. I can't set it on scope because there are a bunch and I am not sure how to call them. People seems to say ng-init isn't an option. Any siggestions?
[04:17:40] *** startupality has quit IRC
[04:18:00] <jaawerth> jpstokes: oh, lol, you don't have the source for it
[04:18:28] *** araujo has joined #angularjs
[04:18:38] <jaawerth> jpstokes: it's split into a separate module so people can swap it out for custom or 3rd party ones (like ui-router, which is everyone's favorite)
[04:18:39] *** Sawbones has quit IRC
[04:18:43] *** jchamberlain has joined #angularjs
[04:18:49] *** Aliks has quit IRC
[04:18:51] <jaydubya> drink kool-aid!!!
[04:18:57] <jpstokes> ahhh....ok...I'll see if I could find it
[04:19:13] *** HMBBabyface has quit IRC
[04:19:17] <jaawerth> if you're using bower, you can just do bower install --save angular-route
[04:19:17] *** tomengland_mbp has joined #angularjs
[04:19:44] *** RedOrangeZ has quit IRC
[04:20:54] *** DrMabuse has quit IRC
[04:20:55] <jaawerth> bradmaxs: either a service, or a parent directive with a controller so you can use require to grab it from your various directives for them to add their data do it
[04:21:00] *** {DV8} has quit IRC
[04:21:34] <jaydubya> if I am posting via a service, would there be a way to for the API's response so I could use the .success() method to harvest the insert_id?
[04:22:12] <bradmaxs> jaawerth: thanks for responding. I will look into those now.
[04:22:33] *** rtpg has quit IRC
[04:22:35] *** rtpg_ has joined #angularjs
[04:22:40] <jaawerth> jaydubya: don't use .success, it won't let you do promise chaining
[04:22:48] <jaawerth> .then is for winners ;-)
[04:23:05] *** chrisbirk has joined #angularjs
[04:23:09] *** gunn has quit IRC
[04:23:40] *** bostonaholic has joined #angularjs
[04:23:41] <jpstokes> jaawerth: I think that did it...got another error but I think I could figure this one out
[04:23:42] <jpstokes> thx
[04:24:32] *** t_p has joined #angularjs
[04:24:42] <jaydubya> ok, then() works ... I am using that in other places but is the concept sound ... force the post into a promise?
[04:24:57] <jaawerth> "force"?
[04:25:07] <katsh> luke
[04:25:10] <katsh> use it
[04:25:26] * jaawerth levitates some rocks
[04:25:36] <jaydubya> so confused, I don't even know HOW to ask
[04:25:40] *** TyrfingMjolnir has joined #angularjs
[04:25:48] *** earthquake has joined #angularjs
[04:26:17] *** gunn has joined #angularjs
[04:26:22] <jaawerth> $http already returns a promise, it just also gives a .success method for a callback because... reasons
[04:26:54] <jaawerth> the only difference is that the callback params are all properties of the response object in the .then instead of separate arguments
[04:27:02] <jaydubya> I am mapping a $scope method to a service (that's new to me as of 4:00 today) and the insert works and the api sends back this scary looking object that won't let me get to the insert_id
[04:27:45] *** rafagomes_ has quit IRC
[04:27:59] <jaydubya> but I am logging the response to the console from within the service so maybe that is confusing me
[04:28:16] *** rtpg_ has quit IRC
[04:28:40] <jaydubya> but because of this mapping this, I don't get a resolve because essentially I am calling this from the view (I think)
[04:28:45] <jaydubya> ^thing
[04:28:49] *** rtpg has joined #angularjs
[04:29:10] <jaawerth> dude, write your methods in the service and use them from the controller
[04:29:17] <jaawerth> controller methods will then call the service methods
[04:29:43] *** prbc has joined #angularjs
[04:30:04] *** Sawbones has joined #angularjs
[04:30:12] <katsh> I have very newbie question on overall controllers. I have a sidebar and main content. When I click on a link on the sidebar, main content changes. Should these things be two different controllers?
[04:30:22] <katsh> I ask because I don't wanna reload the sidebar each time i click a link in it
[04:30:32] *** HMBBabyface has joined #angularjs
[04:30:53] *** gladely has joined #angularjs
[04:31:31] <themime> katsh: use ng-show, it doesn't remove it from the dom - if its removed from the dom itll be destroyed and recreated
[04:31:55] <jaydubya> jaawerth: this is in my controller and is called by an ng-click from the view "$scope.createFarmer = FarmersFactory.createFarmer;"
[04:31:58] <themime> katsh: a good question to ask though is, "wdo i not want this sidebar to be destroyed?" - might be a sign that there is a better design possible
[04:32:14] <jsheely> Using services to pass around "state" is something that I don't think people get right away with Angular
[04:32:22] *** ron1_ has quit IRC
[04:32:33] *** glaksmono has quit IRC
[04:32:44] *** chrisbirk has quit IRC
[04:32:52] *** ron1 has joined #angularjs
[04:32:54] <jaydubya> jaawerth: so are you saying that returns a promise?
[04:32:55] <jaawerth> jaydubya: $scope.createFarmer = function() { return FarmersFactory.createFarmer(); };
[04:32:57] *** kirfu has quit IRC
[04:33:06] *** kirfu has joined #angularjs
[04:33:08] *** chrisbirk has joined #angularjs
[04:33:13] <jaawerth> if createFarmer is returning an $http call, sure
[04:33:48] *** TheAceOfHearts has quit IRC
[04:33:51] <jaydubya> jaawerth: and so this I do $scope.createFarmer = function() { return FarmersFactory.createFarmer().then( blah blah blah); };
[04:34:05] <jaawerth> that'd do it
[04:34:22] *** glaksmono has joined #angularjs
[04:34:24] <jaydubya> awesome ... the map thing I just didn't understand
[04:34:30] <jaawerth> .then(function(res) { // do stuff with res.data, res.status, res.headers, res.status })
[04:34:41] <jaydubya> thanks
[04:34:43] <jaawerth> sure
[04:35:03] *** HMBBabyface has quit IRC
[04:35:38] *** t_p has quit IRC
[04:36:12] *** rtpg has quit IRC
[04:36:54] *** AngularUI has joined #angularjs
[04:36:55] <AngularUI> [ng-grid] wgorder opened pull request #2326: Add feature: Entity dependent edit drop down options (master...2309) http://git.io/u-bV_Q
[04:36:55] *** AngularUI has left #angularjs
[04:39:23] <jpstokes> how do I get my app to run without a server...I think the error I'm getting now is coming from the fact that I just opened my index file in the browser and it doesn't like that
[04:40:11] <jsheely> jpstokes Get a server. Anything will do~
[04:40:18] *** babykosh has joined #angularjs
[04:41:33] *** SomeKittens has joined #angularjs
[04:41:41] <ryanfaceryan> it's simpler just to run it through a server
[04:41:53] <ryanfaceryan> what OS are you on?
[04:43:08] *** prbc has quit IRC
[04:43:46] *** prbc has joined #angularjs
[04:43:58] <katsh> http://tabbit.org/fRd_WO having / in the routes throws an error. why is this?
[04:44:58] *** prbc has quit IRC
[04:45:09] *** zeezey has quit IRC
[04:45:22] *** prbc has joined #angularjs
[04:45:50] *** Superhard_ has joined #angularjs
[04:46:14] <jpstokes> Awesome my first app works
[04:46:16] <jpstokes> !!!
[04:46:54] *** fedenunez has quit IRC
[04:47:04] *** recurrence has quit IRC
[04:47:17] *** annlewis_ has quit IRC
[04:47:33] *** earthquake has quit IRC
[04:47:39] <themime> yay!
[04:47:43] <themime> and also yay plunker is back up!
[04:47:49] *** annlewis has joined #angularjs
[04:48:10] <ryanfaceryan> katsh: can't you juse use .otherwise instead of '/' ?
[04:48:34] <ryanfaceryan> i don't even know anything!
[04:48:42] <katsh> ryanfaceryan: i could. but how do i provide a view with that?
[04:48:44] *** Grokling_ has joined #angularjs
[04:49:07] *** torartc has joined #angularjs
[04:49:08] *** jsheely has quit IRC
[04:49:16] *** jsheely|2 has joined #angularjs
[04:49:17] <ryanfaceryan> i'm guessing just replace redirectTo with templateUrl
[04:49:24] <katsh> but ive used / in routes before. it shouldnt be causing an error. unless they disallowed it in the past 4 months
[04:49:25] <ryanfaceryan> in your otherwise call
[04:50:01] *** Superhard_ has quit IRC
[04:50:08] *** zeezey has joined #angularjs
[04:50:23] *** annlewis_ has joined #angularjs
[04:50:24] *** annlewis has quit IRC
[04:51:28] <ryanfaceryan> you could look into your local copy of angular-route.js on line that is throwing the error
[04:51:49] <ryanfaceryan> undefined is not a funciton can happen when you pass a null reference in as a controller, try removing the controller from the .otherwise and leave only the redirectTo
[04:51:58] *** settinghead has joined #angularjs
[04:53:13] *** t_p has joined #angularjs
[04:53:13] *** kirfu has quit IRC
[04:53:14] *** tomengland_mbp has quit IRC
[04:53:20] *** ninjaparade has joined #angularjs
[04:53:39] <ryanfaceryan> ohhh, redirectTo is supposed to be either a string or a function, not an object
[04:53:47] *** annlewis_ has quit IRC
[04:54:13] *** annlewis has joined #angularjs
[04:54:16] *** oste has quit IRC
[04:54:21] <katsh> but it's a string right now. '/'
[04:54:32] *** doug64k has quit IRC
[04:54:32] <ryanfaceryan> katsh: try this: .otherwise('/')
[04:54:35] *** Superhard_ has joined #angularjs
[04:54:43] <ryanfaceryan> yeah sorry disregard the function/string comment
[04:55:17] *** platonic has quit IRC
[04:55:26] <ryanfaceryan> coz you want it to go back to your already defined route, no need to specify a controller
[04:56:15] <ryanfaceryan> did that work?
[04:56:35] *** zeezey has quit IRC
[04:56:36] *** mdedetrich has quit IRC
[04:56:54] <katsh> Nope.
[04:56:55] *** TheAceOfHearts has joined #angularjs
[04:57:38] <ryanfaceryan> commit your whole thing up to a github project i reckon otherwise can't really help without being able to reproduce :)
[04:57:53] *** annlewis_ has joined #angularjs
[04:57:55] *** crakrjak has joined #angularjs
[04:58:02] *** Superhard_ has quit IRC
[04:58:03] *** busticated has quit IRC
[04:58:13] *** annlewis has quit IRC
[04:58:26] *** Superhard_ has joined #angularjs
[04:58:34] *** jsheely|2 has quit IRC
[04:58:41] *** Superhard_ has quit IRC
[04:58:43] *** mdedetrich has joined #angularjs
[04:58:44] *** emanresu404 has joined #angularjs
[04:59:05] <katsh> one sec :) when something like this happens i like to dig deep to get a better understanding of the framework
[04:59:12] <themime> plunker!
[04:59:15] <themime> is back up
[04:59:17] *** Superhard_ has joined #angularjs
[04:59:43] <katsh> ryanfaceryan: the issue isn't in the routes, but in the views.
[04:59:43] *** jchamberlain has quit IRC
[04:59:54] <Grokling_> must be only just.. I just loaded one optimistically, and it didn't quite make it all the way.
[05:00:20] *** mdcox has joined #angularjs
[05:00:35] <ryanfaceryan> you're getting an error in angular-routes.js on line ~800 because of the views?
[05:00:46] <ryanfaceryan> is the error you're getting now the same?
[05:01:15] *** annlewis_ has quit IRC
[05:01:16] *** gekido has quit IRC
[05:01:28] *** HMBBabyface has joined #angularjs
[05:01:36] *** platonic has joined #angularjs
[05:01:43] <katsh> yeah. im suspecting because something's wrong with the view, the function returns a non-object, and the next .when() fails because .when() is not a property of a non-object
[05:01:52] *** annlewis has joined #angularjs
[05:01:55] *** Crumb has quit IRC
[05:02:16] *** ron1 has quit IRC
[05:02:19] *** _mtr has quit IRC
[05:02:33] *** DrJae is now known as Jae
[05:02:36] <ryanfaceryan> katsh: can you upload all of your app somewhere so i can run it? then i could figure it out
[05:02:37] <themime> Grokling_: aw try again maybe? its working smooth for me. maybe its dns related and shiz is still propagating
[05:02:44] *** Jae has quit IRC
[05:02:45] *** Jae has joined #angularjs
[05:02:56] <Grokling_> Still poked here..
[05:03:22] *** ron1_ has joined #angularjs
[05:03:50] <Grokling_> Actually.. that might be batarang now.. "Uncaught RangeError: Maximum call stack size exceeded from ngHintModules"
[05:04:05] *** Superhard_ has quit IRC
[05:04:13] *** bostonaholic has quit IRC
[05:04:51] <Grokling_> Yep. Just batarang. Plunker works! Hooray!!
[05:05:21] *** annlewis_ has joined #angularjs
[05:05:26] *** Wizek has joined #angularjs
[05:05:26] *** annlewis has quit IRC
[05:05:29] *** earthquake has joined #angularjs
[05:05:30] *** crakrjak has quit IRC
[05:05:32] *** burzum2 has joined #angularjs
[05:05:51] *** whitebook has quit IRC
[05:06:12] *** evanjs has quit IRC
[05:06:22] *** HMBBabyface has quit IRC
[05:06:26] <ryanfaceryan> katsh: upload to http://plnkr.co/ :)
[05:07:10] *** platonic has quit IRC
[05:07:15] <katsh> ryan. give me some time chief.i like to solve things on my own first. especially when new to the framework. stay tuned
[05:07:21] <katsh> (but many thanks for the help thus far)
[05:07:25] *** burzum has quit IRC
[05:08:37] *** annlewis_ has quit IRC
[05:08:54] <ryanfaceryan> lol ok
[05:09:03] *** annlewis has joined #angularjs
[05:09:34] *** Una has joined #angularjs
[05:09:57] *** Wizek has quit IRC
[05:10:03] *** red_horned_rihno has quit IRC
[05:10:17] *** zeezey has joined #angularjs
[05:10:27] <ryanfaceryan> katsh: dive into the line in the framework that is throwing the error, 864 and see what it's trying to call that is undefined as a function
[05:10:54] *** glaksmono has quit IRC
[05:11:05] *** annlewis has quit IRC
[05:11:49] *** torartc has quit IRC
[05:11:55] *** annlewis has joined #angularjs
[05:13:21] *** platonic has joined #angularjs
[05:15:34] *** annlewis_ has joined #angularjs
[05:15:37] *** mohinesh27 has joined #angularjs
[05:15:42] *** annlewis has quit IRC
[05:15:56] *** tripu has joined #angularjs
[05:16:46] *** DrMabuse has joined #angularjs
[05:17:47] *** annlewis has joined #angularjs
[05:17:52] *** bmac has joined #angularjs
[05:18:16] *** annlewis_ has quit IRC
[05:18:25] *** Sawbones has quit IRC
[05:18:50] *** glaksmono has joined #angularjs
[05:19:38] *** red_horned_rihno has joined #angularjs
[05:19:39] *** Z3R0 has joined #angularjs
[05:19:55] *** crakrjak has joined #angularjs
[05:20:25] *** icarus-c has joined #angularjs
[05:20:29] *** moogey has quit IRC
[05:20:38] <katsh> might be $transclude
[05:21:09] *** alpha080 has joined #angularjs
[05:21:43] *** DrMabuse has quit IRC
[05:22:00] <bradmaxs> still struggling. I need to set different variables per generic directive. Then I need to update them in a function. Everythign is working except how to set the variables per directive. http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info
[05:22:10] *** zeezey has quit IRC
[05:22:11] *** slickuser has joined #angularjs
[05:22:12] *** slickuser has joined #angularjs
[05:22:27] <bradmaxs> Seems crazy that I can't use a hidden input and set variables on that and pass with ng-model.
[05:22:33] <katsh> does ng-view need to be inside an ng-controller?
[05:22:37] *** slickuser has left #angularjs
[05:22:57] *** annlewis has quit IRC
[05:23:07] *** annlewis has joined #angularjs
[05:24:18] *** bmac has quit IRC
[05:24:30] *** richardbkr has joined #angularjs
[05:24:51] *** annlewis has quit IRC
[05:25:17] *** annlewis has joined #angularjs
[05:26:17] *** prbc has quit IRC
[05:26:21] *** mohinesh27 has quit IRC
[05:26:39] *** bmac has joined #angularjs
[05:26:54] *** red_horned_rihno has quit IRC
[05:27:41] *** annlewis has quit IRC
[05:27:45] *** annlewis_ has joined #angularjs
[05:27:48] *** robdubya has joined #angularjs
[05:28:28] *** MacWinner has joined #angularjs
[05:28:37] *** richardbkr has quit IRC
[05:29:06] *** jchamberlain has joined #angularjs
[05:29:37] *** dc_ has quit IRC
[05:30:09] *** MacWinner has joined #angularjs
[05:30:37] *** Aliks has joined #angularjs
[05:30:37] *** rtpg has joined #angularjs
[05:30:50] *** prbc has joined #angularjs
[05:31:28] *** annlewis has joined #angularjs
[05:31:48] *** zeezey has joined #angularjs
[05:32:11] *** annlewis_ has quit IRC
[05:32:17] <katsh> ryanfaceryan: http://plnkr.co/edit/QYUYPFRsShi0DELB4MV8?p=preview
[05:32:57] *** ron1 has joined #angularjs
[05:33:37] *** ron1_ has quit IRC
[05:34:14] *** Limix has joined #angularjs
[05:34:36] *** Pawp has quit IRC
[05:35:10] *** annlewis_ has joined #angularjs
[05:35:12] *** annlewis has quit IRC
[05:35:21] *** prbc has quit IRC
[05:35:39] *** Grokling_ has quit IRC
[05:35:41] *** crakrjak has quit IRC
[05:35:53] *** zeezey has quit IRC
[05:35:53] *** zeezey has joined #angularjs
[05:36:08] <zeezey> ANGULAR
[05:36:10] *** prbc has joined #angularjs
[05:37:21] *** alpha080 has quit IRC
[05:37:29] *** mmitchell has quit IRC
[05:37:52] *** crakrjak has joined #angularjs
[05:38:01] <themime> YEA SON
[05:38:08] <themime> GET THAT CODE
[05:38:15] * themime is pumped
[05:39:01] *** alpha080 has joined #angularjs
[05:39:50] <katsh> hah
[05:39:50] *** whitebook has joined #angularjs
[05:40:00] *** annlewis_ has quit IRC
[05:40:05] *** annlewis has joined #angularjs
[05:40:07] *** doginal has joined #angularjs
[05:40:10] *** MaxV has joined #angularjs
[05:40:15] *** mzabriskie has joined #angularjs
[05:40:41] *** aslate has joined #angularjs
[05:41:38] *** bgummadi has joined #angularjs
[05:42:10] *** jpstokes has quit IRC
[05:42:40] *** annlewis_ has joined #angularjs
[05:42:49] *** annlewis has quit IRC
[05:43:16] *** pknordic has joined #angularjs
[05:43:53] *** emmesswhy has joined #angularjs
[05:44:49] *** MaxV has quit IRC
[05:44:52] *** aslate has quit IRC
[05:45:11] *** Diabolik has left #angularjs
[05:46:06] *** Milkweed has quit IRC
[05:46:10] *** debunk has joined #angularjs
[05:46:19] *** rchavik has quit IRC
[05:46:19] *** annlewis has joined #angularjs
[05:46:32] *** annlewis_ has quit IRC
[05:46:57] <robdubya> fuckin batarang
[05:47:08] <themime> srsly
[05:47:16] <themime> it broke my whole app today. i never even use it
[05:47:16] *** torartc has joined #angularjs
[05:47:23] *** axsuul has quit IRC
[05:47:25] *** ron1 has quit IRC
[05:47:27] <themime> postman on the other hand: goooolden
[05:47:32] *** kzoo has quit IRC
[05:47:56] <katsh> if im not using html5mode, do i need # in my routes?
[05:48:05] *** pknordic has quit IRC
[05:48:07] <themime> im pretty sure yes
[05:48:18] *** dnull has joined #angularjs
[05:48:39] <katsh> .when('/#/', { ..
[05:48:44] <katsh> that doesnt look right
[05:49:01] <themime> mine is .when('#/home')
[05:49:06] <themime> i think...
[05:49:06] *** annlewis has quit IRC
[05:49:15] *** annlewis has joined #angularjs
[05:49:16] *** charuru has joined #angularjs
[05:49:24] <themime> oh nah i just have /home
[05:49:34] <themime> hmm
[05:49:45] <themime> i guess im not sure. i use ui-router and use states in all my code
[05:49:54] *** charuru has quit IRC
[05:49:57] <ryanfaceryan> katsh: it's not your fault you just got a screwy confclit between your version of angular and your version of routes that you ahve included
[05:50:03] *** bmac has quit IRC
[05:50:11] *** kzoo has joined #angularjs
[05:50:16] <ryanfaceryan> katsh: problem fixed by using compatible versions, i replaced your script tags with this https://gist.github.com/ryan-allen/7f78ed506ef39721e3c2
[05:50:31] <ryanfaceryan> katsh: the app runs doesn't throw an error with that
[05:50:37] *** bmac has joined #angularjs
[05:50:42] <katsh> real
[05:50:46] <katsh> how did you end up figureing it out?
[05:50:52] <katsh> holy shit i would never
[05:50:57] *** MaxV has joined #angularjs
[05:50:58] <ryanfaceryan> katsh: and i got the angular includes from here, it's handy http://cdnjs.com/libraries/angular.js/
[05:51:16] *** fantnn has joined #angularjs
[05:51:59] <katsh> im so happy i could cry tears of blood
[05:52:02] <katsh> many thanks ryanfaceryan
[05:52:13] *** axsuul has joined #angularjs
[05:52:13] <ryanfaceryan> katsh: i looked into the code in your included routes, it was trying to call a method called $transclude which was null, that's an unusual error, so i tried pulling in 1.3 sources from cdnjs to see if the app would run, it did, so probably incompatible angular and angular routes together
[05:52:17] *** annlewis has quit IRC
[05:52:21] *** earthquake has quit IRC
[05:52:22] <ryanfaceryan> katsh: no worries!
[05:52:45] *** annlewis has joined #angularjs
[05:52:52] *** {DV8} has joined #angularjs
[05:52:55] <katsh> amazing
[05:53:14] <katsh> thank you for helping me solve it
[05:54:44] <katsh> be right back.
[05:54:46] *** katsh has quit IRC
[05:55:05] *** frkout has quit IRC
[05:55:27] *** platonic has quit IRC
[05:55:31] *** frkout has joined #angularjs
[05:55:32] *** MaxV has quit IRC
[05:55:34] *** emmesswhy has quit IRC
[05:55:53] *** annlewis has quit IRC
[05:56:21] *** annlewis has joined #angularjs
[05:56:36] *** freelyfred has joined #angularjs
[05:58:10] *** emmesswhy has joined #angularjs
[05:58:18] *** e0ipso|away has quit IRC
[05:58:19] *** sirkitree|afk|af has quit IRC
[05:58:21] *** SargoDarya has joined #angularjs
[05:58:22] *** annlewis has quit IRC
[05:58:29] *** _mtr has joined #angularjs
[05:58:48] *** annlewis has joined #angularjs
[05:59:02] <rtpg> is there something similar to ng-repeat-start for ng-controller?
[05:59:37] *** bgummadi has quit IRC
[05:59:49] *** Superhard_ has joined #angularjs
[06:00:05] *** dc_ has joined #angularjs
[06:00:20] <themime> rtpg: i don't understand what youd want it to do
[06:00:44] <themime> it sounds like you need a wrapper or more than one controller with a shared service
[06:00:49] *** goodenough has joined #angularjs
[06:00:56] *** Z3R0 has quit IRC
[06:01:00] *** annlewis has quit IRC
[06:01:03] *** muffin has quit IRC
[06:01:18] *** annlewis has joined #angularjs
[06:01:42] <rtpg> for example, if I had a DOM structure like <span class='a'></span><span class='b'></span> to be able to write <span ng-controller-start='myCtrl' class='a'></span><span ng-controller-end class='b'></span> and have access to the same scope in .a and .b
[06:02:13] <themime> bad design - use a shared factory and different controller OR add a span surrounding them and just add the controller to that
[06:02:17] <rtpg> I'm in the process of porting a legacy app to angular so it's a bit tricky to change the dom
[06:02:22] <themime> aaah
[06:02:23] *** rchavik has joined #angularjs
[06:02:25] *** platonic has joined #angularjs
[06:02:45] <rtpg> yeah, if this were from the start I would wrap it in a span but there's a bunch of custom styling so it's tricky to do that
[06:02:54] <BahamutWC|Laptop> I’m starting to see why people don’t like contracting
[06:02:58] <themime> ^
[06:03:01] *** SargoDarya has quit IRC
[06:03:12] *** _mtr has quit IRC
[06:03:15] *** Una has quit IRC
[06:03:16] <rtpg> though I think a shared service could work in this case
[06:03:28] *** crakrjak has quit IRC
[06:04:04] *** annlewis_ has joined #angularjs
[06:04:12] *** Superhard_ has quit IRC
[06:04:28] *** dc_ has quit IRC
[06:04:33] *** fantnn has quit IRC
[06:04:45] *** pzuraq has joined #angularjs
[06:05:26] *** annlewis has quit IRC
[06:05:40] *** woah has joined #angularjs
[06:07:21] *** dnewkerk has quit IRC
[06:07:45] *** annlewis has joined #angularjs
[06:07:50] *** annlewis_ has quit IRC
[06:08:23] *** sabrehagen1 has left #angularjs
[06:08:54] *** caitp has joined #angularjs
[06:09:29] *** Zentdayn has quit IRC
[06:10:12] *** MistahKurtz has joined #angularjs
[06:11:25] <robdubya> i know those feels BahamutWC|Laptop
[06:11:30] *** annlewis has quit IRC
[06:11:35] *** annlewis_ has joined #angularjs
[06:11:49] *** torartc has quit IRC
[06:11:50] *** DarrenCraig has quit IRC
[06:12:19] <BahamutWC|Laptop> robdubya: checked my email on the client’s response on something…the client apparently viewed dot notation as a solve-all-IE8 solution...
[06:12:31] *** g33k5z has quit IRC
[06:12:41] *** mennea has joined #angularjs
[06:13:44] *** caitp has quit IRC
[06:14:49] *** platonic has quit IRC
[06:14:59] *** annlewis has joined #angularjs
[06:15:16] *** annlewis_ has quit IRC
[06:15:27] *** recurrence has joined #angularjs
[06:15:27] *** Una has joined #angularjs
[06:15:29] *** bmac has quit IRC
[06:16:00] *** Sna4x8 has quit IRC
[06:16:43] *** red_horned_rihno has joined #angularjs
[06:17:17] *** Sna4x8 has joined #angularjs
[06:17:30] *** zeezey has quit IRC
[06:18:42] *** annlewis has quit IRC
[06:18:56] *** dsdeiz has quit IRC
[06:19:03] *** annlewis has joined #angularjs
[06:20:10] *** thumpba has joined #angularjs
[06:20:44] *** crakrjak has joined #angularjs
[06:21:14] *** platonic has joined #angularjs
[06:23:23] *** ivanskie_ has joined #angularjs
[06:23:29] <ivanskie_> hi.
[06:23:37] * ivanskie_ is a NGn00b
[06:23:46] *** annlewis has quit IRC
[06:23:49] *** RedOrangeZ has joined #angularjs
[06:23:53] *** annlewis has joined #angularjs
[06:24:37] *** Fishy__ has joined #angularjs
[06:24:39] <ivanskie_> im doing something very wrong. I'm trying to write a client. (i started with the todo example) need to enter reference number into text field
[06:25:12] *** ome has joined #angularjs
[06:25:22] <jaydubya> I have a callback for ui-bootstrap's typeahead and in it I am console.logging the $item parameter and (if there's a match) all of the info is output to the console. (yeah!) so I try to assign $item to the $scope with $scope.farmer = $item; and the form stays blank yet every form field is bound to a value in that object. This is the callback: https://gist.github.com/anonymous/d2e3d93db52994457dd0
[06:25:34] *** bbankes has quit IRC
[06:25:36] *** Fishy has quit IRC
[06:25:55] *** crakrjak has quit IRC
[06:26:14] <ryanfaceryan> jaydubya: put on plunker with the error reproduced
[06:26:25] *** prbc has quit IRC
[06:26:30] *** Limix has quit IRC
[06:26:30] <jaydubya> plunker was dead earlier
[06:26:39] *** crakrjak has joined #angularjs
[06:26:47] <jaydubya> seems back now though ... will do
[06:27:22] *** annlewis_ has joined #angularjs
[06:27:30] <BahamutWC|Laptop> jaydubya: if I had to suspect, you’re not see it because it is assigning it to a child $scope, not the one your controller is on
[06:27:31] *** annlewis has quit IRC
[06:27:44] *** zoeycakes has joined #angularjs
[06:27:46] <BahamutWC|Laptop> try assigning it to something like $scope.selected.farmer
[06:28:04] *** ritenour has joined #angularjs
[06:28:46] *** debunk has quit IRC
[06:28:59] <bradmaxs> Is there an easier way to find to find the item than in a for loop in my refreshOrder function? http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info
[06:29:48] <jaydubya> BahamutWC|Laptop: that gives me this "Cannot set property 'farmer' of undefined"
[06:30:09] <BahamutWC|Laptop> don’t forget to do $scope.selected = {} in the controller
[06:30:42] *** doginal has quit IRC
[06:31:03] *** annlewis_ has quit IRC
[06:31:08] *** annlewis has joined #angularjs
[06:32:02] *** Fishy__ has quit IRC
[06:32:09] *** Fishy has joined #angularjs
[06:32:38] *** ritenour has quit IRC
[06:32:57] *** axsuul has quit IRC
[06:33:24] *** crakrjak has quit IRC
[06:33:42] <jaydubya> BahamutWC|Laptop: you were correct ... i did the ole <pre>{{selected.farmer | json}} and it is all there ... but my problem now is all of the form fields are bound to $scope.farmer and are still blank. So, why can I assign $item to $scope.selected.farmer but not $scope.farmer?
[06:33:54] *** prbc has joined #angularjs
[06:33:56] *** gunn has quit IRC
[06:34:56] *** annlewis has quit IRC
[06:35:00] *** chakkimatti has joined #angularjs
[06:35:02] *** annlewis has joined #angularjs
[06:35:10] <BahamutWC|Laptop> jaydubya: you’d have to take a look at your html, but you probably have something creating a new $scope
[06:35:11] <chakkimatti> good morning
[06:35:42] <jaydubya> BahamutWC|Laptop: sounds like something I would do ... i'll check
[06:36:18] *** Una has quit IRC
[06:36:48] *** crakrjak has joined #angularjs
[06:38:20] *** Una has joined #angularjs
[06:38:47] *** Sontakey has joined #angularjs
[06:38:51] *** rtpg_ has joined #angularjs
[06:38:56] *** bradmaxs has quit IRC
[06:38:59] *** rtpg has quit IRC
[06:39:50] *** annlewis_ has joined #angularjs
[06:41:00] *** zoeycakes has quit IRC
[06:41:07] *** annlewis has quit IRC
[06:42:36] *** jchamberlain has quit IRC
[06:43:05] *** annlewis_ has quit IRC
[06:43:56] *** annlewis has joined #angularjs
[06:44:39] *** doginal has joined #angularjs
[06:44:56] *** recurrence has quit IRC
[06:45:22] *** elaijuh has joined #angularjs
[06:45:49] *** annlewis has quit IRC
[06:46:03] *** annlewis has joined #angularjs
[06:47:06] *** quantax has joined #angularjs
[06:48:18] *** lemur has quit IRC
[06:48:34] *** quantax- has quit IRC
[06:48:55] *** lemur has joined #angularjs
[06:48:55] *** maikowblue has quit IRC
[06:50:05] *** elaijuh has quit IRC
[06:50:11] *** annlewis_ has joined #angularjs
[06:50:22] *** simook has joined #angularjs
[06:50:31] *** annlewis has quit IRC
[06:51:13] *** doginal has quit IRC
[06:51:32] *** platonic has quit IRC
[06:51:51] *** jchamberlain has joined #angularjs
[06:52:20] *** annlewis has joined #angularjs
[06:52:48] *** annlewis_ has quit IRC
[06:53:30] *** lemur has quit IRC
[06:53:48] *** prbc has quit IRC
[06:54:47] *** whitebook has quit IRC
[06:55:18] *** crakrjak has quit IRC
[06:55:48] *** alpha080 has quit IRC
[06:56:02] *** VeeWee has joined #angularjs
[06:56:07] *** annlewis_ has joined #angularjs
[06:56:33] *** annlewis has quit IRC
[06:57:51] *** NormySan has joined #angularjs
[06:57:54] *** mdedetri_ has joined #angularjs
[06:58:02] *** simook has quit IRC
[06:58:08] *** platonic has joined #angularjs
[06:58:28] *** mogaj has quit IRC
[06:58:28] *** mdedetrich has quit IRC
[06:59:42] *** annlewis has joined #angularjs
[06:59:57] *** annlewis_ has quit IRC
[07:00:04] *** bkuberek has quit IRC
[07:00:08] <ivanskie_> can I change class.. from function in controller?
[07:00:42] <ivanskie_> i have a text field in form.. when enter is pressed, i'd like it to set a value to the model. and then disable the field.
[07:00:51] *** Superhard_ has joined #angularjs
[07:00:57] <ivanskie_> so the value is still visible but no longer changeable
[07:01:44] <ivanskie_> ?
[07:01:50] *** geiltalasdair has joined #angularjs
[07:02:03] *** crakrjak has joined #angularjs
[07:02:14] *** geiltalasdair has quit IRC
[07:02:22] *** geiltalasdair has joined #angularjs
[07:03:38] *** pzuraq has quit IRC
[07:03:47] *** gkap has joined #angularjs
[07:04:14] *** annlewis has quit IRC
[07:04:45] *** annlewis has joined #angularjs
[07:05:08] *** goodenough has quit IRC
[07:05:24] *** geilt has quit IRC
[07:05:31] *** Superhard_ has quit IRC
[07:05:49] *** DrMabuse has joined #angularjs
[07:06:01] *** panelli has joined #angularjs
[07:06:31] *** geiltadecht has joined #angularjs
[07:07:46] *** Anton_ has quit IRC
[07:08:07] *** annlewis has quit IRC
[07:08:34] *** annlewis has joined #angularjs
[07:09:50] *** Hounddog has joined #angularjs
[07:10:03] *** geiltalasdair has quit IRC
[07:10:17] *** DrMabuse has quit IRC
[07:10:24] <chakkimatti> vanskie_: With ng-blur you could call a function sets disabled/locked value and ng-disable with that?
[07:10:34] *** geilt has joined #angularjs
[07:10:34] *** panelli has quit IRC
[07:10:41] *** annlewis has quit IRC
[07:11:01] *** axsuul has joined #angularjs
[07:11:20] *** annlewis has joined #angularjs
[07:12:12] *** mennea has quit IRC
[07:12:17] *** ron_frown has quit IRC
[07:12:18] *** lemur has joined #angularjs
[07:12:37] *** richardbkr has joined #angularjs
[07:12:51] *** mennea has joined #angularjs
[07:14:11] *** geiltadecht has quit IRC
[07:14:25] *** annlewis has quit IRC
[07:15:07] *** annlewis has joined #angularjs
[07:15:43] *** Anton_ has joined #angularjs
[07:15:58] <ivanskie_> hm
[07:16:23] *** Raging_Hog has joined #angularjs
[07:16:32] <ivanskie_> what is a blur event?
[07:16:42] <ivanskie_> nm
[07:17:33] <ivanskie_> ok sounds like thst could work... except.. can I change focus to another element when enter is pressed?
[07:18:09] *** richardbkr has quit IRC
[07:18:11] *** annlewis has quit IRC
[07:18:33] *** annlewis has joined #angularjs
[07:18:35] *** {DV8} has quit IRC
[07:18:59] *** Hounddog has quit IRC
[07:19:01] <ivanskie_> form with single input field. enter text > press enter > disable field > change focus to input field on next form.
[07:19:33] *** plato has quit IRC
[07:20:00] <ivanskie_> that's what I'm trying to achieve. so i can change focus after pressing enter/submitting the form, then I could just follow it up with the ngblur thing.
[07:20:10] <ivanskie_> if*
[07:20:24] <chakkimatti> I'm not sure but I think there's no built-in directive for detecting enter press
[07:20:24] *** morenoh150 has joined #angularjs
[07:20:30] *** Una has quit IRC
[07:20:33] *** ngeksyo has joined #angularjs
[07:20:47] *** chrisshattuck has joined #angularjs
[07:20:55] *** annlewis has quit IRC
[07:21:10] <chakkimatti> You'll maybe have to write your own directive for it.
[07:21:22] *** annlewis has joined #angularjs
[07:21:24] *** NormySan has quit IRC
[07:21:28] *** mglvl has quit IRC
[07:22:53] *** rtpg_ has quit IRC
[07:23:06] *** NomanJaved has joined #angularjs
[07:23:36] <NomanJaved> hello any one here. I am new here.
[07:23:37] *** platonic has quit IRC
[07:23:46] *** djvirgen has joined #angularjs
[07:23:56] <NomanJaved> Hello
[07:24:08] <ivanskie_> i dont have to detect enter press.. its just a default behaviour of form with submit button (i just hid the button)
[07:24:08] <NomanJaved> I want to discuss some things.
[07:24:43] <chakkimatti> nomanjaved shoot
[07:24:45] *** annlewis_ has joined #angularjs
[07:25:05] <NomanJaved> what are directives.
[07:25:07] *** annlewis has quit IRC
[07:25:12] <chakkimatti> vanskie_ You can then have ng-submit do a function
[07:25:39] <NomanJaved> chakkimatti....?
[07:25:44] <chakkimatti> nomanJaved They are conventions for manipulating thE DOM
[07:26:19] <NomanJaved> can we say it a function are eqal to directives. or not.........Chakkimatti
[07:26:55] <chakkimatti> basically if you want to do jQuery special stuff for some element, you would do a directive - anything that manipulates the dom is good to put in a directive
[07:28:23] *** annlewis_ has quit IRC
[07:28:35] <NomanJaved> i know this ... ! but are they functions are not....! .......chakkimatti
[07:28:37] *** e0ipso has joined #angularjs
[07:28:41] *** sigurding has joined #angularjs
[07:28:51] *** annlewis has joined #angularjs
[07:28:58] <chakkimatti> directives are methods that are bound to Element or Attribute of the DOM like for example if you would like to bounce a submit button when pressed, you could do a direcive for it.
[07:29:16] *** phzon has joined #angularjs
[07:29:39] *** aslate has joined #angularjs
[07:29:41] *** Sontakey has quit IRC
[07:30:09] *** platonic has joined #angularjs
[07:30:11] *** e0ipso is now known as e0ipso|away
[07:30:47] <ivanskie_> chakk, $scope.setRef is my ngSubmit function https://gist.github.com/i5okie/3369749eb222fb9b72ca
[07:31:07] *** Sontakey has joined #angularjs
[07:31:09] *** annlewis_ has joined #angularjs
[07:31:11] <NomanJaved> hmmm... just same like. in javascript when we click on button and that button have onclick=somefunction( ) { here is ng directive logic. } ... am I right....! chakkimatti...
[07:31:18] *** jchamberlain has quit IRC
[07:31:23] *** dannyc has joined #angularjs
[07:31:32] *** annlewis has quit IRC
[07:31:38] <ivanskie_> i think ur right Noman
[07:31:57] *** pknordic has joined #angularjs
[07:32:00] <ivanskie_> https://docs.angularjs.org/api/ng/directive/ngSubmit
[07:32:17] *** rtpg has joined #angularjs
[07:32:40] <NomanJaved> chakkimatti...........?
[07:32:40] *** renlo_ has joined #angularjs
[07:32:40] *** jrajaratnam has quit IRC
[07:32:40] <ivanskie_> onclick= would be the ngClick directive
[07:32:52] <ivanskie_> and when you submit the form.. you have the ngSubmit directive
[07:33:13] <NomanJaved> hmm...! okay.
[07:33:16] *** renlo_ is now known as renlo
[07:33:17] *** phzon has quit IRC
[07:33:18] *** chakkimatti has quit IRC
[07:33:32] <ivanskie_> also you can write your own directives
[07:33:41] <NomanJaved> ya i know
[07:33:47] *** Hounddog has joined #angularjs
[07:33:57] *** annlewis has joined #angularjs
[07:34:07] <NomanJaved> what are the filters login... how they work.
[07:34:08] *** woah has quit IRC
[07:34:14] *** Niil has joined #angularjs
[07:34:15] *** annlewis_ has quit IRC
[07:34:17] *** jmls has quit IRC
[07:34:25] <NomanJaved> Ivanskie..........................?
[07:34:29] *** aslate has quit IRC
[07:34:36] <ivanskie_> i'm still a n00b
[07:34:43] <ivanskie_> u'd want to ask chakk
[07:34:51] <ivanskie_> cuz that i dont know
[07:34:55] <NomanJaved> he has left the room
[07:35:05] <Niil> hi
[07:35:15] *** e0ipso|away is now known as e0ipso
[07:35:16] <ivanskie_> oh
[07:35:20] <NomanJaved> you are from..? ivankskie
[07:35:26] <ivanskie_> canada
[07:35:35] <NomanJaved> any one here that can help here.............................?
[07:35:38] *** dannyc has quit IRC
[07:36:06] <NomanJaved> okay.. can we skype of some were else ............. icanskie
[07:36:17] *** pknordic has quit IRC
[07:36:28] *** _ritchie_ has quit IRC
[07:36:40] <ivanskie_> i kinda noticed that JS related community are not very active on IRC, sailsjs pretty much dead. angularjs pretty much dead.
[07:37:24] <NomanJaved> hello any one here that can help here........................! just basic concepts............!
[07:37:37] *** annlewis has quit IRC
[07:37:39] <ivanskie_> have you tried some tutorials?
[07:37:45] <NomanJaved> yes
[07:37:45] *** annlewis_ has joined #angularjs
[07:37:50] *** macobo has joined #angularjs
[07:37:59] <ivanskie_> there's actually a free AngularJS course sponsored by Google. on code school
[07:38:01] <NomanJaved> now want to discuss some things.
[07:38:06] <ivanskie_> ic
[07:38:17] <ryanfaceryan> what things???! !!
[07:38:21] <ryanfaceryan> i have to know what things
[07:38:22] *** TyrfingMjolnir_ has joined #angularjs
[07:38:22] <NomanJaved> yes i had stydied that one
[07:38:27] <ivanskie_> things
[07:38:30] <NomanJaved> how filters work..........!
[07:39:14] *** mtsr has joined #angularjs
[07:39:57] <ivanskie_> Noman, what about this one: https://www.airpair.com/angularjs/posts/angularjs-tutorial ?
[07:39:57] *** ryst has quit IRC
[07:40:17] *** crakrjak has quit IRC
[07:40:26] <ivanskie_> AngularJS Tutorial: A Comprehensive 10,000 Word Guide
[07:40:26] <ivanskie_> it goes into a lot more detail, without going too deep.
[07:40:35] *** Leon has joined #angularjs
[07:40:44] *** annlewis_ has quit IRC
[07:41:22] *** axsuul_ has joined #angularjs
[07:41:29] *** annlewis has joined #angularjs
[07:41:35] *** axsuul has quit IRC
[07:41:36] <ivanskie_> i'm at a point where documentation and these tutorials isn't really helping.. so trying to find out if there's an undocumented way to do something that I just can't think of, out of lack of experience..
[07:41:39] *** djvirgen has quit IRC
[07:41:54] *** TyrfingMjolnir has quit IRC
[07:41:54] *** TyrfingMjolnir_ is now known as TyrfingMjolnir
[07:42:06] <ryanfaceryan> what about filters specifically
[07:42:15] *** mennea has quit IRC
[07:42:20] <ryanfaceryan> have you made one and used one?
[07:42:26] <ryanfaceryan> have you used any built in ones?
[07:42:50] *** mennea has joined #angularjs
[07:43:50] *** sigurding has quit IRC
[07:44:30] *** annlewis has quit IRC
[07:45:13] *** annlewis has joined #angularjs
[07:45:22] *** rtpg has quit IRC
[07:45:23] *** zeezey has joined #angularjs
[07:45:27] *** kkk1 has joined #angularjs
[07:46:00] *** aslate has joined #angularjs
[07:46:18] *** thumpba has quit IRC
[07:47:11] *** SargoDarya has joined #angularjs
[07:47:19] *** sinequanon has joined #angularjs
[07:47:35] *** _mtr has joined #angularjs
[07:47:54] *** kkk1 has quit IRC
[07:48:17] *** annlewis has quit IRC
[07:48:38] *** annlewis has joined #angularjs
[07:49:20] *** HMBBabyface has joined #angularjs
[07:49:34] *** icarus-c has quit IRC
[07:50:06] *** HMBBabyface has quit IRC
[07:51:02] *** gunn has joined #angularjs
[07:51:46] *** SargoDarya has quit IRC
[07:52:19] *** annlewis has quit IRC
[07:52:22] *** thumpba has joined #angularjs
[07:52:30] *** ez has joined #angularjs
[07:52:44] *** annlewis has joined #angularjs
[07:52:46] *** _mtr has quit IRC
[07:52:59] *** woah has joined #angularjs
[07:53:06] <ivanskie_> ryanfaceryan if you're still here... https://gist.github.com/i5okie/3369749eb222fb9b72ca
[07:53:26] *** ryst has joined #angularjs
[07:54:51] *** annlewis has quit IRC
[07:54:51] <ivanskie_> when i submit the setRef model from form... is there a way to change the input text field to disabled .. or maybe switch the form out for a template with the entered text in it? (switching is important.. not just {{ field text }}) i've got very limited screen size to work with lol
[07:55:02] *** sinequanon has quit IRC
[07:55:03] *** settinghead has quit IRC
[07:55:15] *** annlewis has joined #angularjs
[07:55:43] *** settinghead has joined #angularjs
[07:56:28] *** aslate has quit IRC
[07:57:20] *** sinequanon has joined #angularjs
[07:57:52] *** sigurding has joined #angularjs
[07:57:59] *** caitp has joined #angularjs
[07:58:31] *** annlewis has quit IRC
[07:58:33] *** rtpg has joined #angularjs
[07:59:03] *** sabrehagen has joined #angularjs
[07:59:07] *** annlewis has joined #angularjs
[07:59:59] *** Nijikokun has quit IRC
[08:00:14] *** _mtr has joined #angularjs
[08:00:20] *** settinghead has quit IRC
[08:00:30] <sabrehagen> hey guys, i'm trying to debug my anguar app, but not having any luck. currently it's stuck at the loading screen, but there are no errors in the console. it uesd to go to my main screen, but i cahnged something (seemingly insignificant, and i can
[08:00:34] *** robksawyer has joined #angularjs
[08:00:42] <sabrehagen> can't remember what) and now it's stuck at the loading bar permanently.
[08:00:54] <sabrehagen> does anybody have any tips for debugging? this is my first time...
[08:01:02] *** bkuberek has joined #angularjs
[08:02:22] *** mdedetri_ has quit IRC
[08:02:26] *** bulkan_ has quit IRC
[08:02:29] *** annlewis has quit IRC
[08:02:45] *** caitp has quit IRC
[08:02:52] *** annlewis has joined #angularjs
[08:03:23] *** one0one has quit IRC
[08:03:26] *** tfennelly has joined #angularjs
[08:04:28] *** chrisbirk has quit IRC
[08:05:04] *** annlewis_ has joined #angularjs
[08:05:05] *** annlewis has quit IRC
[08:05:42] *** _mtr has quit IRC
[08:07:04] *** mdedetrich has joined #angularjs
[08:07:28] *** thumpba has quit IRC
[08:07:44] *** dnull has quit IRC
[08:08:51] *** annlewis has joined #angularjs
[08:09:15] *** angelazou has joined #angularjs
[08:09:39] *** dave_boling has quit IRC
[08:10:13] *** annlewis_ has quit IRC
[08:10:42] *** soee has joined #angularjs
[08:11:34] <soee> good morning
[08:11:50] *** joshontheweb has quit IRC
[08:11:57] *** deg has quit IRC
[08:12:30] *** annlewis has quit IRC
[08:12:39] *** jaydubya has quit IRC
[08:12:45] *** annlewis has joined #angularjs
[08:13:12] *** jaydubya has joined #angularjs
[08:13:46] *** richardbkr has joined #angularjs
[08:14:25] *** e0ipso is now known as e0ipso|away
[08:14:28] <fairuz> sabrehagen: you can make use of the console.log
[08:14:32] *** chrisbirk has joined #angularjs
[08:14:36] <fairuz> or angular's $log
[08:14:59] *** sabrehagen has quit IRC
[08:15:27] *** platonic has quit IRC
[08:15:57] *** annlewis has quit IRC
[08:16:07] *** gkap has quit IRC
[08:16:21] *** annlewis has joined #angularjs
[08:17:11] *** ninjaparade has quit IRC
[08:17:43] *** jaydubya has quit IRC
[08:18:13] *** uru|away is now known as uru
[08:18:43] *** annlewis has quit IRC
[08:18:49] *** richardbkr has quit IRC
[08:18:54] *** annlewis has joined #angularjs
[08:19:29] <soee> is it good idea that different route/state is called their views uses teh same controller ?
[08:19:38] <soee> or each route/state shoudl use separate controller ?
[08:19:40] *** deg has joined #angularjs
[08:20:16] *** pknordic has joined #angularjs
[08:20:38] *** MistahKurtz has quit IRC
[08:21:20] *** biowo has joined #angularjs
[08:21:33] *** DrMabuse has joined #angularjs
[08:22:10] *** platonic has joined #angularjs
[08:22:18] *** annlewis has quit IRC
[08:22:23] *** lite_ has joined #angularjs
[08:22:57] *** annlewis has joined #angularjs
[08:23:09] <biowo> hello everyone, i got a problem by using xmlhttprequest with $scope
[08:23:41] <TheAceOfHearts> https://github.com/angular/angular/tree/master/modules/examples/src/hello_world hello world in angular 2.0.
[08:24:18] <TheAceOfHearts> this just reminded me of Java EE
[08:24:40] <biowo> inside of the function xmlHTTP.onreadystatechange, i can get the data using JSON.parse(xmlHTTP.responseText). But it can not send to $scope...
[08:25:59] *** mtsr has quit IRC
[08:26:17] *** annlewis_ has joined #angularjs
[08:26:18] *** DrMabuse has quit IRC
[08:26:19] *** McMont has joined #angularjs
[08:26:36] *** annlewis has quit IRC
[08:27:17] <biowo> console.log(JSON.parse(xmlHTTP.responseText)) can show the datas correctly
[08:27:41] *** Sontakey has quit IRC
[08:27:52] *** Sontakey has joined #angularjs
[08:28:27] *** annlewis_ has quit IRC
[08:28:28] <biowo> but it will not work if i use $scope.books = JSON.parse(xmlHTTP.responseText)
[08:29:10] *** annlewis has joined #angularjs
[08:29:20] <biowo> the datas can not be shown at the front web application, where i use $scope.books
[08:30:19] *** rtpg has quit IRC
[08:31:00] *** annlewis has quit IRC
[08:31:15] *** annlewis has joined #angularjs
[08:32:16] *** goodenough has joined #angularjs
[08:32:40] <Chepra> how do you update $scope.books? Are you doing it in an digest cycle?
[08:32:52] *** dan2k3k4 has joined #angularjs
[08:33:03] *** doginal has joined #angularjs
[08:33:38] *** annlewis has quit IRC
[08:33:52] *** annlewis has joined #angularjs
[08:34:12] *** sheplu has quit IRC
[08:34:20] *** nuizzy has joined #angularjs
[08:34:50] *** chakkimatti has joined #angularjs
[08:35:16] <biowo> Hi Chepra, first i set the XMLHTTPRequest GET to connect the Parse.com storage, and after the request is sended, i want get the resopnseText, and set it into $scope
[08:35:16] *** chakkimatti has quit IRC
[08:36:13] *** annlewis has quit IRC
[08:36:20] *** annlewis_ has joined #angularjs
[08:36:20] *** Hounddog has quit IRC
[08:36:22] *** chakkimatti has joined #angularjs
[08:37:37] <biowo> if (xmlHTTP.readyState == 4 && xmlHTTP.status == 200), then get the results using xmlHTTP.responseText
[08:37:51] *** nfroidure has joined #angularjs
[08:38:52] *** Click66 has joined #angularjs
[08:39:14] *** rtpg has joined #angularjs
[08:39:46] *** annlewis_ has quit IRC
[08:40:05] *** annlewis has joined #angularjs
[08:40:07] <NomanJaved> hello every one
[08:40:08] *** chr1stopher has joined #angularjs
[08:40:13] <NomanJaved> i have a question
[08:40:24] <TheAceOfHearts> just ask
[08:40:45] <NomanJaved> <html ng-app> <head> <title>Hello Angular</title> <script type="text/javascript" src="js/jstest.js"></script> </head> <body ng-controller="firstctrl"> <h1>{{data.message +"world"}}</h1> <script src="https://code.angularjs.org/1.3.5/angular.js"></script> </body> </html>
[08:40:53] <NomanJaved> function firstctrl($scope){ console.log("hello"); $scope.data = { message:"hello" }; }
[08:40:57] *** mylord has joined #angularjs
[08:41:07] <NomanJaved> first is html page and second is js file... function
[08:41:11] *** rhp has quit IRC
[08:41:14] <NomanJaved> it gave an error
[08:41:19] <NomanJaved> can any one help me
[08:41:21] <mylord> i have 5 tabs at bottom of page.. how/should i use a separate controller and template html for that?
[08:41:56] *** theshit123 has joined #angularjs
[08:42:19] *** mennea has quit IRC
[08:42:52] *** annlewis_ has joined #angularjs
[08:42:56] <NomanJaved> ...............TheAceOfHearts.....................?
[08:42:57] *** mennea has joined #angularjs
[08:43:07] <Aliks> NomanJaved: what error did it give?
[08:43:12] <TheAceOfHearts> did you read the title?
[08:43:15] <TheAceOfHearts> don't post stuff in chat
[08:43:24] <NomanJaved> Error: [ng:areq] Argument 'firstctrl' is not a function, got undefined
[08:43:55] <TheAceOfHearts> that's not allowed syntax anymore
[08:43:59] <TheAceOfHearts> don't use globals
[08:44:04] <TheAceOfHearts> define the ng-app name
[08:44:15] <TheAceOfHearts> and do angular.module and then define the controller on that app
[08:44:20] *** JohnBat26 has joined #angularjs
[08:44:37] <ez> angular.controller('firstctrl',function($scope){console.log("hello")}))
[08:44:44] *** annlewis_ has quit IRC
[08:44:48] <NomanJaved> can we not do it with out angular.module attach
[08:44:53] *** annlewis has quit IRC
[08:44:55] <TheAceOfHearts> no
[08:45:01] *** craigp has joined #angularjs
[08:45:03] *** annlewis has joined #angularjs
[08:45:04] <TheAceOfHearts> well, sorta, but you shouldn't
[08:45:07] <TheAceOfHearts> so no, don't do it that way
[08:45:13] *** chrisshattuck has quit IRC
[08:45:20] <Aliks> TheAceOfHearts: wow, it is not allowed syntax anymore??
[08:45:24] <Aliks> TheAceOfHearts: not that I would ever do it in production, but good to know for interview questions
[08:45:30] <TheAceOfHearts> no
[08:45:36] <Aliks> that's the quick "meh, just do this" answer
[08:45:41] <NomanJaved> what is angular.module ... concept
[08:45:42] <TheAceOfHearts> yeah
[08:45:47] <TheAceOfHearts> angular.module is stupid too
[08:46:22] <TheAceOfHearts> https://docs.angularjs.org/guide/controller
[08:46:43] <ez> you should define controller like this,angular.controller('firstctrl',function($scope){console.log("hello")})
[08:46:56] <TheAceOfHearts> you should define them on the module, actually
[08:47:09] <TheAceOfHearts> angular.module('myApp').controller('myCtrl', function(){});
[08:47:28] *** mzabriskie has quit IRC
[08:47:45] *** mtsr has joined #angularjs
[08:47:55] <Chepra> biowo: yeah, I think you are not working in an angular digest cycle
[08:48:18] *** zbzzn has joined #angularjs
[08:48:18] *** ron1 has joined #angularjs
[08:48:21] *** jacuqesdancona_ has joined #angularjs
[08:49:01] *** sinequanon has quit IRC
[08:49:13] *** annlewis_ has joined #angularjs
[08:49:24] *** annlewis has quit IRC
[08:49:38] *** Superhard_ has joined #angularjs
[08:49:51] *** chrisbirk has quit IRC
[08:49:57] *** monk12_ has joined #angularjs
[08:49:58] *** devhoag has joined #angularjs
[08:50:01] <rtpg> is there some configuration setting I can set to get rid of angular's form validation?
[08:50:24] <rtpg> or to deal with the fact that it prevents submissions if an inner form doesn't validate
[08:50:47] *** doug64k has joined #angularjs
[08:50:58] *** ajk27_ has quit IRC
[08:51:16] *** annlewis has joined #angularjs
[08:51:43] *** daviesgeek has quit IRC
[08:52:08] *** federicobucchi has quit IRC
[08:52:11] *** jdj_dk has joined #angularjs
[08:52:23] *** ron1 has quit IRC
[08:52:34] *** Hounddog has joined #angularjs
[08:52:50] *** craigp has quit IRC
[08:52:54] *** Niil has left #angularjs
[08:53:08] *** doug64k has quit IRC
[08:53:19] *** craigp has joined #angularjs
[08:53:20] *** axsuul_ has quit IRC
[08:53:37] *** annlewis_ has quit IRC
[08:53:43] *** annlewis has quit IRC
[08:53:54] *** annlewis has joined #angularjs
[08:54:14] *** axsuul has joined #angularjs
[08:54:19] *** evilaliv3 has joined #angularjs
[08:54:28] *** Superhard_ has quit IRC
[08:54:29] *** Etherael has joined #angularjs
[08:54:39] <sacho_> why are you using the validation if you don't want to use it?
[08:54:58] *** tarnus has quit IRC
[08:55:10] *** devhoag has quit IRC
[08:55:51] *** settinghead has joined #angularjs
[08:56:12] *** jstroem has joined #angularjs
[08:57:08] *** daviesgeek has joined #angularjs
[08:57:19] *** craigp has quit IRC
[08:57:43] *** craigp has joined #angularjs
[08:57:46] *** annlewis_ has joined #angularjs
[08:57:57] *** annlewis has quit IRC
[08:58:07] *** mtsr has quit IRC
[08:58:39] <rtpg> I'm not using the validation but by default angular imports in form HTML
[08:58:49] <rtpg> and it blocks submissions
[08:58:58] <rtpg> just by having a <form> in an ng-app block
[08:59:15] *** richardbkr has joined #angularjs
[09:00:20] *** jonasliljestrand has joined #angularjs
[09:00:55] *** settinghead has quit IRC
[09:01:12] *** woah has quit IRC
[09:01:31] *** annlewis has joined #angularjs
[09:01:40] *** annlewis_ has quit IRC
[09:01:50] *** DrMabuse has joined #angularjs
[09:02:25] *** blomman has joined #angularjs
[09:02:58] *** swirlycheetah has joined #angularjs
[09:03:01] <monk12_> hey all, im looking at some simple Angular code someone else made... basically the $scope object has 3 main things in it for the template to use... a questionText variable associated with it, an answerType variable, and choices array which has array of radio/checkboxes choices to display if the answerType is one of those 2... the main/index template file checks the answer type and ng-includes {{answerType}}.tpl.html to
[09:03:01] <monk12_> dynamically pull the appr question, like radio.tpl.html if its a radio button question... gettin' to my question...
[09:03:34] *** mdedetrich has quit IRC
[09:03:40] *** biowo has quit IRC
[09:03:47] *** annlewis has quit IRC
[09:04:04] *** annlewis has joined #angularjs
[09:04:23] *** Ajans has quit IRC
[09:05:02] *** josh-k has joined #angularjs
[09:05:06] *** doug64k has joined #angularjs
[09:05:46] *** morenoh150 has quit IRC
[09:05:52] <monk12_> sometimes the $scope can have one more varaible underneith it... a subquestion array, which means there are radio questions underneith this question-type. so I used an ng-repeat to do like "subquestion in subquestions"... then do an ng-include for {{subquestion.answerType}}.tpl.html (follows the same structure as the parent)... but alas inside of that radio.tpl.html it expects questionText and choices[] of the parent and
[09:05:53] <monk12_> doesn't consider questionText/choices[] could be inside the subquestions array.
[09:06:00] *** gloston has joined #angularjs
[09:06:30] *** DrMabuse has quit IRC
[09:07:00] <swirlycheetah> does anyone have any experience unit testing an observer within a directive, i'm struggling here =(
[09:07:12] <monk12_> like the ng-include can't be forced to switch scope so "subquestion" in that main template becomes what the variables in the radio.tpl.html template refer to cover a "multi-question" question. any idea how to do that?
[09:07:28] *** aslate has joined #angularjs
[09:07:30] *** annlewis has quit IRC
[09:07:39] <monk12_> I only cover the case of a regular radio question now... but not the case where radio.tpl.html is used when looped over.
[09:08:10] *** annlewis has joined #angularjs
[09:08:48] *** ajk27_ has joined #angularjs
[09:08:59] <NomanJaved> how we can test check errors of angular....?
[09:09:20] *** ProLoser has quit IRC
[09:09:37] *** mchammer has joined #angularjs
[09:09:47] *** cacts has quit IRC
[09:09:59] *** annlewis has quit IRC
[09:10:19] *** annlewis has joined #angularjs
[09:10:23] *** craigp has quit IRC
[09:10:45] *** mdedetrich has joined #angularjs
[09:10:50] *** craigp has joined #angularjs
[09:11:28] *** DaveDH2 has quit IRC
[09:11:37] *** aslate has quit IRC
[09:11:53] *** jonasliljestrand has quit IRC
[09:12:23] *** barakarg has joined #angularjs
[09:13:32] *** sebhoss has joined #angularjs
[09:13:45] *** annlewis has quit IRC
[09:14:04] *** JesuZ has joined #angularjs
[09:14:23] *** annlewis has joined #angularjs
[09:14:59] *** sheplu has joined #angularjs
[09:15:17] *** craigp has quit IRC
[09:15:24] *** Evanion has joined #angularjs
[09:16:39] *** sebhoss has quit IRC
[09:16:39] *** samuel02 has joined #angularjs
[09:17:51] *** annlewis has quit IRC
[09:17:58] *** Poppabear has quit IRC
[09:17:59] <soee> when app is created i need authenticated user ID and some other data, is it good idea to do a server query in .run() each time app is loaded ?
[09:18:13] *** annlewis has joined #angularjs
[09:18:50] *** digisky1 has quit IRC
[09:18:52] *** cojack has joined #angularjs
[09:19:30] *** seriema has joined #angularjs
[09:19:52] *** d4rklit3 has quit IRC
[09:20:11] *** dannyc has joined #angularjs
[09:21:22] *** jagga has joined #angularjs
[09:21:23] *** samuel02 has quit IRC
[09:21:31] *** annlewis_ has joined #angularjs
[09:21:35] *** epantzar has joined #angularjs
[09:21:44] *** annlewis has quit IRC
[09:22:42] *** Sky[x] has joined #angularjs
[09:22:47] *** Poppabear has joined #angularjs
[09:23:36] *** renlo has quit IRC
[09:23:42] *** epantzar has quit IRC
[09:24:06] *** epantzar has joined #angularjs
[09:24:10] *** annlewis_ has quit IRC
[09:24:11] *** annlewis has joined #angularjs
[09:24:38] *** dannyc has quit IRC
[09:26:01] *** Nivag_ has quit IRC
[09:26:07] *** elestud has quit IRC
[09:26:12] *** soee has quit IRC
[09:26:36] *** baweaver has joined #angularjs
[09:26:45] *** sebhoss has joined #angularjs
[09:26:47] *** IsraelOrtuno has joined #angularjs
[09:26:52] *** epantzar has quit IRC
[09:27:10] *** mtsr has joined #angularjs
[09:27:11] *** monk12_ has quit IRC
[09:27:20] <NomanJaved> hello
[09:27:27] <NomanJaved> anyone here for helping me
[09:27:45] *** nuizzy has quit IRC
[09:27:45] *** KushS has joined #angularjs
[09:27:48] *** epantzar has joined #angularjs
[09:28:03] *** annlewis has quit IRC
[09:28:11] *** annlewis has joined #angularjs
[09:28:36] <NomanJaved> what is app.factory('data', function() { } )
[09:28:38] *** finnlake has joined #angularjs
[09:28:47] *** roymiloh has joined #angularjs
[09:29:27] *** elxa has quit IRC
[09:29:34] *** soee has joined #angularjs
[09:29:35] <finnlake> Has anyone used Kendo UI with angular?
[09:29:52] *** sebhoss_ has joined #angularjs
[09:30:24] *** annlewis_ has joined #angularjs
[09:30:26] *** sebhoss has quit IRC
[09:30:35] *** kapil__ has joined #angularjs
[09:30:36] *** annlewis has quit IRC
[09:30:41] *** jstroem has quit IRC
[09:31:02] *** jstroem has joined #angularjs
[09:31:18] <NomanJaved> ...............?
[09:31:23] <NomanJaved> anyone here
[09:31:26] <NomanJaved> or not
[09:31:32] <NomanJaved> .............................................?
[09:31:50] <NomanJaved> what are services..........in angular js
[09:31:53] <NomanJaved> ?
[09:31:56] *** tangorri has joined #angularjs
[09:32:02] *** rosshuggett has joined #angularjs
[09:33:00] *** stormbytes has joined #angularjs
[09:33:06] *** nuizzy has joined #angularjs
[09:33:08] <finnlake> Are there any cons to consider using Kendo UI with angular? Good support?
[09:33:17] *** nuizzy has quit IRC
[09:33:23] *** mtsr has quit IRC
[09:33:38] <swirlycheetah> NomanJaved: take a look at the angular documentation or stack overflow, there are lots of good discussions about services, factories, providers and what they do differently
[09:33:59] *** annlewis_ has quit IRC
[09:34:04] *** annlewis has joined #angularjs
[09:34:10] <finnlake> ngular services are substitutable objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app. https://docs.angularjs.org/guide/services
[09:34:17] *** jonasliljestrand has joined #angularjs
[09:34:56] *** tfennelly has quit IRC
[09:36:00] *** ProLoser has joined #angularjs
[09:36:02] *** SargoDarya has joined #angularjs
[09:36:19] *** annlewis has quit IRC
[09:36:44] <jagga> finnlake, what are you going to use it for
[09:36:58] *** craigp has joined #angularjs
[09:36:59] *** annlewis has joined #angularjs
[09:37:01] <jagga> and in what environment? comercial / personal?
[09:37:09] <jagga> I don't think it's free. That may be something to consider.
[09:38:08] *** DrMabuse has joined #angularjs
[09:39:28] *** StryKaizer has joined #angularjs
[09:40:19] *** mdedetrich has quit IRC
[09:40:23] *** annlewis_ has joined #angularjs
[09:40:25] *** annlewis has quit IRC
[09:40:52] *** SargoDarya has quit IRC
[09:41:09] *** guilbep has joined #angularjs
[09:41:39] *** blomman has quit IRC
[09:42:23] *** mennea has quit IRC
[09:42:38] *** annlewis_ has quit IRC
[09:43:01] *** blomman has joined #angularjs
[09:43:02] <NomanJaved> okay.... swirlycheetah
[09:43:03] *** mennea has joined #angularjs
[09:43:09] *** annlewis has joined #angularjs
[09:43:21] *** AlexW2611 has joined #angularjs
[09:43:35] <NomanJaved> from angular documentation not understand swirlycheetah
[09:44:10] <swirlycheetah> finnlake: gave a good explanation above
[09:44:21] <swirlycheetah> finnlake gave*
[09:44:33] *** baweaver has quit IRC
[09:44:33] *** AlexW2611 is now known as al3w2o
[09:44:39] *** bejames1 has quit IRC
[09:44:57] *** bejames has joined #angularjs
[09:45:27] *** KushS has quit IRC
[09:45:48] *** kkk1 has joined #angularjs
[09:46:06] *** mtsr has joined #angularjs
[09:46:24] *** jlebrech has joined #angularjs
[09:46:36] *** ez has quit IRC
[09:46:45] *** caitp has joined #angularjs
[09:46:56] *** lemur has quit IRC
[09:47:28] *** lemur has joined #angularjs
[09:47:33] *** sk87 has joined #angularjs
[09:47:57] *** annlewis_ has joined #angularjs
[09:48:02] *** annlewis has quit IRC
[09:49:25] *** poolside has joined #angularjs
[09:49:48] *** _mtr has joined #angularjs
[09:51:15] *** caitp has quit IRC
[09:51:15] *** Sadin has joined #angularjs
[09:51:27] *** morenoh150 has joined #angularjs
[09:51:34] *** annlewis has joined #angularjs
[09:51:40] *** mtsr has quit IRC
[09:51:57] *** lemur has quit IRC
[09:52:06] *** MaxV has joined #angularjs
[09:52:10] *** annlewis_ has quit IRC
[09:52:17] *** Christer has joined #angularjs
[09:53:24] *** m8 has joined #angularjs
[09:53:30] *** Grokling_ has joined #angularjs
[09:54:11] *** cotko has joined #angularjs
[09:54:29] *** annlewis_ has joined #angularjs
[09:54:33] *** annlewis has quit IRC
[09:54:52] *** angelazou has quit IRC
[09:54:53] *** _mtr has quit IRC
[09:56:28] *** annlewis_ has quit IRC
[09:56:37] *** annlewis has joined #angularjs
[09:56:49] *** hswolff has quit IRC
[09:57:19] *** deanclkclk_ has quit IRC
[09:57:20] *** jillesme has joined #angularjs
[09:57:21] *** jillesme has joined #angularjs
[09:59:10] *** dnewkerk has joined #angularjs
[09:59:12] <theshit123> Hi, if i have a variable with time in seconds, for example 3600 and i want in the template it appear like humanized time: 1 hour , is it possible?
[09:59:36] *** hswolff has joined #angularjs
[10:00:30] *** annlewis has quit IRC
[10:00:38] *** annlewis has joined #angularjs
[10:01:21] *** jaydubya has joined #angularjs
[10:01:36] *** jonasliljestrand has quit IRC
[10:01:37] *** lemur has joined #angularjs
[10:01:49] *** tfennelly has joined #angularjs
[10:02:01] <TheAceOfHearts> sure, just make a filter for it
[10:03:01] *** annlewis has quit IRC
[10:03:29] *** JesuZ has quit IRC
[10:03:31] *** annlewis has joined #angularjs
[10:03:37] *** JesuZ- has joined #angularjs
[10:04:18] *** MistahKurtz has joined #angularjs
[10:04:40] *** NomanJaved has quit IRC
[10:05:14] *** DarrenCraig has joined #angularjs
[10:05:40] *** annlewis_ has joined #angularjs
[10:06:09] *** jaydubya has quit IRC
[10:06:50] *** Wizek has joined #angularjs
[10:06:52] *** rtpg has quit IRC
[10:07:42] *** platonic has quit IRC
[10:08:06] *** rtpg has joined #angularjs
[10:08:34] *** annlewis has quit IRC
[10:08:37] *** mennea has quit IRC
[10:08:57] *** josh-k has quit IRC
[10:09:03] *** tripu has quit IRC
[10:09:10] *** ali__ has joined #angularjs
[10:09:23] *** annlewis has joined #angularjs
[10:10:10] *** X-warrior has joined #angularjs
[10:10:53] *** annlewis_ has quit IRC
[10:10:54] *** craigp has quit IRC
[10:11:22] *** craigp has joined #angularjs
[10:11:40] *** ryanfaceryan has quit IRC
[10:12:31] <X-warrior> I have a login endpoint where I'm going to get a token to be used on next requests on my SPA. Then I tried to use $httpProvider.defaults.headers.common, on my config to setup this, but since I'm receiving it after 'config' runs, my header is not set. How could I set this headers for all my resources?
[10:12:39] *** Wizek has quit IRC
[10:13:08] *** dannyc has joined #angularjs
[10:13:12] *** annlewis_ has joined #angularjs
[10:13:20] *** craigp has quit IRC
[10:13:20] *** noegry has joined #angularjs
[10:13:28] *** Kar2 has joined #angularjs
[10:13:42] *** sk87 has quit IRC
[10:13:42] *** platonic has joined #angularjs
[10:13:54] *** craigp has joined #angularjs
[10:14:00] *** annlewis has quit IRC
[10:14:04] *** frkout_ has joined #angularjs
[10:14:29] *** blicero has joined #angularjs
[10:14:38] *** juampy has joined #angularjs
[10:14:48] *** goodenough has quit IRC
[10:15:22] *** goodenough has joined #angularjs
[10:15:43] *** gloston has quit IRC
[10:15:55] <noegry> how do I get reference of <kendoui-grid >...</kendoui-grid>
[10:16:50] *** marr has joined #angularjs
[10:16:53] *** annlewis has joined #angularjs
[10:17:03] *** roymiloh has quit IRC
[10:17:10] *** annlewis_ has quit IRC
[10:17:36] *** qdk has quit IRC
[10:17:53] *** frkout_ has quit IRC
[10:18:02] *** frkout has quit IRC
[10:18:19] *** frkout has joined #angularjs
[10:18:44] *** sk87 has joined #angularjs
[10:18:49] <Kar2> Hi guys.. im trying to pass a value from a javascript to a angular function..
[10:18:50] <Kar2> http://plnkr.co/edit/V4pVHnbJW03oFNyd7Sih?p=catalogue
[10:19:07] <Kar2> can someone please help me out? ive tried all sorts of things
[10:19:28] *** roymiloh has joined #angularjs
[10:19:41] *** annlewis_ has joined #angularjs
[10:19:47] *** goodenough has quit IRC
[10:19:48] *** AngularUI has joined #angularjs
[10:19:48] <AngularUI> [ng-grid] chadmott opened pull request #2329: fix #2278 (gridMenu scroll) (master...fix-2278) http://git.io/ybpxAQ
[10:19:48] *** AngularUI has left #angularjs
[10:19:53] *** annlewis has quit IRC
[10:20:30] *** platonic has quit IRC
[10:21:04] <Kar2> anyone awake?
[10:21:20] <fairuz> Kar2: Why dont just put ng-click on some button or something?
[10:21:28] <fairuz> so you can call findCenterDirectly
[10:21:30] *** wa5ted has quit IRC
[10:21:42] *** AciD`` has joined #angularjs
[10:21:49] <Kar2> beause im loading the value from a parent iframe window
[10:22:01] *** wa5ted has joined #angularjs
[10:22:18] <fairuz> Where $cid comes from?
[10:22:38] <Kar2> it comes from an overlay with an iframe with googlemaps
[10:22:47] *** annlewis_ has quit IRC
[10:22:51] <fairuz> put it inside an input or something and bind to a model
[10:23:01] <fairuz> then do a $watch on that variable/model
[10:23:03] <fairuz> how about that?
[10:23:11] *** annlewis has joined #angularjs
[10:23:13] *** TyrfingMjolnir has quit IRC
[10:23:27] <Kar2> ive tried that.. the hidden input value gets set but the watch wont detect the cahnge
[10:24:03] <Kar2> http://plnkr.co/edit/V4pVHnbJW03oFNyd7Sih?p=catalogue <-- update the ctrl
[10:24:08] <Kar2> updated even
[10:25:31] <swirlycheetah> been struggling with a unit test for like 2 days now, just realised I'm not actually including the module (e.g. module('foo');)
[10:25:45] <swirlycheetah> included it in and it's all working perfectly
[10:25:50] <Kar2> angular.element($('testidid')).triggerHandler('input') <-- this should trigger the change
[10:25:57] *** annlewis_ has joined #angularjs
[10:25:58] <Kar2> swirlycheetah that aahaaa feeling
[10:25:59] <Kar2> :P
[10:26:14] *** annlewis has quit IRC
[10:26:37] *** platonic has joined #angularjs
[10:26:49] <swirlycheetah> Kar2: very much so!
[10:27:19] <Kar2> fairuz am i on the right track
[10:27:21] *** elliotstokes has joined #angularjs
[10:27:30] *** fairuz has quit IRC
[10:27:34] *** ivanskie_ has quit IRC
[10:27:39] <Kar2> damnit.. come back
[10:27:43] *** angelathewebdev has joined #angularjs
[10:28:10] *** federicobucchi has joined #angularjs
[10:28:14] *** annlewis has joined #angularjs
[10:28:43] *** annlewis_ has quit IRC
[10:28:44] *** angelazou has joined #angularjs
[10:29:51] *** pilva has joined #angularjs
[10:29:52] <angelazou> I have an error message when trying to use $sanitize service http://paste.ubuntu.com/9473766/
[10:29:55] *** jonasliljestrand has joined #angularjs
[10:30:23] <angelazou> it is used as part of a markdown parse directive, similar to this paste http://plnkr.co/edit/fHeQyHKjPgMwvzrA2qST?p=preview
[10:30:31] *** Hounddog has quit IRC
[10:30:56] *** fairuz has joined #angularjs
[10:30:59] *** rtpg has quit IRC
[10:31:34] *** bengillies has joined #angularjs
[10:31:40] *** annlewis has quit IRC
[10:32:03] *** annlewis has joined #angularjs
[10:33:11] *** X-warrior has quit IRC
[10:33:56] *** IJNX has joined #angularjs
[10:33:58] *** angelazou_ has joined #angularjs
[10:34:02] *** angelazou has quit IRC
[10:34:08] *** dan2k3k4 has quit IRC
[10:34:12] <angelazou_> as I placed a breakpoint in the last line 224, I see that html in this case became an object called "TrustedValueHolderType" instead of the string that is expected
[10:34:31] *** annlewis has quit IRC
[10:34:34] *** annlewis_ has joined #angularjs
[10:34:34] <angelazou_> hence the error, but I couldn't figure out why the string was being converted to an object
[10:34:41] *** ivanskie_ has joined #angularjs
[10:35:04] *** rtpg has joined #angularjs
[10:35:04] *** dan2k3k4 has joined #angularjs
[10:35:15] *** lihao has joined #angularjs
[10:35:26] *** Superhard_ has joined #angularjs
[10:35:49] *** lemur has quit IRC
[10:35:51] *** ivanskie_ has quit IRC
[10:36:14] <lihao> oh
[10:36:28] *** lihao has left #angularjs
[10:36:30] *** lemur has joined #angularjs
[10:39:17] *** chr1stopher has quit IRC
[10:39:38] *** annlewis has joined #angularjs
[10:39:40] *** annlewis_ has quit IRC
[10:39:48] *** Superhard_ has quit IRC
[10:40:36] *** Nijikokun has joined #angularjs
[10:41:01] *** lemur has quit IRC
[10:41:29] *** KushS has joined #angularjs
[10:41:36] *** Hounddog has joined #angularjs
[10:41:53] *** gkap has joined #angularjs
[10:43:20] *** annlewis_ has joined #angularjs
[10:43:21] *** annlewis has quit IRC
[10:43:52] *** tarnus has joined #angularjs
[10:44:09] *** sigurding has quit IRC
[10:45:06] *** intellix has joined #angularjs
[10:45:08] *** angelazou__ has joined #angularjs
[10:45:34] *** barakarg has quit IRC
[10:46:02] *** rtpg has quit IRC
[10:46:50] *** josh-k has joined #angularjs
[10:46:58] *** angelazou_ has quit IRC
[10:47:26] *** annlewis has joined #angularjs
[10:48:23] *** tarnus has quit IRC
[10:48:23] *** annlewis_ has quit IRC
[10:48:36] <chakkimatti> muscular vegan
[10:48:44] <chakkimatti> what? :D
[10:48:56] <chakkimatti> idle breaker ;)
[10:49:50] *** Harth has joined #angularjs
[10:50:27] *** jillesme has quit IRC
[10:50:29] *** apertoire has quit IRC
[10:50:42] *** annlewis has quit IRC
[10:50:49] *** annlewis_ has joined #angularjs
[10:51:08] *** IJNX has quit IRC
[10:52:01] *** sigurding has joined #angularjs
[10:52:36] *** emmesswhy has quit IRC
[10:52:42] *** beckyconning_ has joined #angularjs
[10:53:12] *** jillesme has joined #angularjs
[10:53:23] *** Usuario_ has joined #angularjs
[10:53:36] *** gkap has quit IRC
[10:54:03] *** emmesswhy has joined #angularjs
[10:54:19] *** emmesswhy has quit IRC
[10:54:35] *** annlewis has joined #angularjs
[10:54:43] *** Usuario_ is now known as frobs
[10:55:08] *** freelyfred has quit IRC
[10:55:10] *** gkap has joined #angularjs
[10:55:31] *** Harth has quit IRC
[10:56:20] *** aslate has joined #angularjs
[10:56:48] *** annlewis has quit IRC
[10:56:53] *** annlewis_ has quit IRC
[10:57:07] *** DrMabuse has quit IRC
[10:57:09] *** mchammer has quit IRC
[10:57:23] *** annlewis has joined #angularjs
[10:57:58] *** JERE has joined #angularjs
[10:58:07] *** mchammer has joined #angularjs
[10:58:34] *** Sebastien-L has joined #angularjs
[10:58:43] *** platonic has quit IRC
[10:58:55] <Kar2> anyone know the correct way to close a bootstrap modal with angular? ng-hide kills the box so it wont open again
[10:58:56] *** angelazou__ has quit IRC
[10:59:35] *** alpha080 has joined #angularjs
[10:59:40] *** annlewis_ has joined #angularjs
[10:59:43] *** stormbytes has quit IRC
[10:59:45] *** evilaliv3 has quit IRC
[10:59:54] *** KushS has quit IRC
[11:00:06] *** annlewis has quit IRC
[11:00:20] *** Iravan has quit IRC
[11:00:49] *** azizur has joined #angularjs
[11:00:59] *** qdk has joined #angularjs
[11:01:24] *** kas84 has joined #angularjs
[11:01:52] *** startupality has joined #angularjs
[11:01:55] *** Usuario_ has joined #angularjs
[11:01:55] *** twelverobots has quit IRC
[11:02:02] *** gkap has quit IRC
[11:02:06] *** federicobucchi has quit IRC
[11:02:16] *** twelverobots has joined #angularjs
[11:02:18] *** Iravan has joined #angularjs
[11:02:26] *** gkap has joined #angularjs
[11:02:33] *** cbennett has joined #angularjs
[11:02:38] *** emmesswhy has joined #angularjs
[11:03:42] *** annlewis has joined #angularjs
[11:03:53] *** Aliks has quit IRC
[11:04:08] *** jillesme has quit IRC
[11:04:55] *** frobs has quit IRC
[11:05:09] *** elxa has joined #angularjs
[11:05:10] *** annlewis_ has quit IRC
[11:05:17] *** fourq has quit IRC
[11:05:17] *** aton` has quit IRC
[11:05:46] *** raveli_ has quit IRC
[11:05:50] *** kolyaflash has quit IRC
[11:05:52] *** annlewis_ has joined #angularjs
[11:05:53] *** raveli_ has joined #angularjs
[11:05:59] *** annlewis has quit IRC
[11:06:02] *** platonic has joined #angularjs
[11:06:07] *** fourq has joined #angularjs
[11:06:09] *** aton` has joined #angularjs
[11:06:09] *** evilaliv3 has joined #angularjs
[11:06:12] *** mchammer has quit IRC
[11:06:33] *** Usuario_ is now known as frobs
[11:06:54] *** phzon has joined #angularjs
[11:07:14] *** mchammer has joined #angularjs
[11:07:22] *** emmesswhy has quit IRC
[11:07:28] *** Iravan has quit IRC
[11:07:35] *** aliocha has joined #angularjs
[11:08:21] *** Siyfion has joined #angularjs
[11:08:25] *** annlewis has joined #angularjs
[11:08:31] *** MistahKurtz has quit IRC
[11:08:49] *** emmesswhy has joined #angularjs
[11:09:04] *** annlewis_ has quit IRC
[11:09:11] *** mennea has joined #angularjs
[11:09:53] *** cbennett has quit IRC
[11:09:53] *** cavallari has joined #angularjs
[11:11:21] *** robksawyer has quit IRC
[11:11:29] *** phzon has quit IRC
[11:12:07] *** annlewis_ has joined #angularjs
[11:12:09] *** swirlycheetah has quit IRC
[11:12:22] *** swirlycheetah has joined #angularjs
[11:12:58] *** Mad-C has joined #angularjs
[11:13:00] *** andrew9183 has joined #angularjs
[11:13:00] *** annlewis has quit IRC
[11:13:22] <andrew9183> i always struggle with this issue, inserting a class=“row” after every 4th element in an ng-repeat. anyone got a nice solution
[11:13:32] *** emmesswhy has quit IRC
[11:13:44] *** sahbeewah has joined #angularjs
[11:13:59] *** emmesswhy has joined #angularjs
[11:14:10] *** Grumelo has joined #angularjs
[11:14:11] *** josh-k has quit IRC
[11:14:27] <sinclair> andrew9183: use modulus
[11:14:29] *** josh-k has joined #angularjs
[11:14:42] <andrew9183> yeah, but how do you structure the html like that
[11:14:54] <sinclair> what?
[11:14:58] <andrew9183> i know % 4, but can’t figure out the html structure
[11:15:12] *** josh-k has quit IRC
[11:15:36] *** annlewis_ has quit IRC
[11:15:43] *** alpha080 has quit IRC
[11:15:50] *** annlewis has joined #angularjs
[11:16:43] <andrew9183> can you provide a fiddle ?
[11:17:10] *** rosshugget has joined #angularjs
[11:17:28] *** alpha080 has joined #angularjs
[11:17:38] *** rosshugget has quit IRC
[11:18:22] *** jillesme has joined #angularjs
[11:18:28] *** annlewis has quit IRC
[11:18:46] *** annlewis has joined #angularjs
[11:18:46] *** AWAW has joined #angularjs
[11:18:50] *** TyrfingMjolnir has joined #angularjs
[11:19:24] *** SomeKittens has quit IRC
[11:19:30] *** rosshuggett has quit IRC
[11:19:31] <lite_> How on earth do I go about having an ajax request within my protractor beforeEach clause ?
[11:19:36] *** morenoh150 has quit IRC
[11:20:40] *** mogaj has joined #angularjs
[11:20:46] *** ansu has quit IRC
[11:20:49] *** codephobic has joined #angularjs
[11:21:04] <codephobic> hi
[11:21:06] *** ansu has joined #angularjs
[11:21:55] *** aendrew has joined #angularjs
[11:22:02] *** DoubleAW has quit IRC
[11:22:06] *** mogaj has quit IRC
[11:22:13] *** annlewis_ has joined #angularjs
[11:22:16] *** annlewis has quit IRC
[11:22:26] <codephobic> quick question, when hooking up a controller to a view, is there a functional difference between say: ng-controller="MyController" and ng-controller="MyController as ctrl"?
[11:22:32] *** chr1stopher has joined #angularjs
[11:22:56] *** startupality has quit IRC
[11:23:03] <codephobic> I can bind data from my model, using the latter method, but not the former. I cannot work out why this 'quirk' exists.
[11:24:02] *** Sebastien-L has quit IRC
[11:24:45] *** annlewis has joined #angularjs
[11:24:52] *** SargoDarya has joined #angularjs
[11:25:11] *** Sjeeke has joined #angularjs
[11:25:17] *** dnewkerk has quit IRC
[11:25:37] *** Sebastien-L has joined #angularjs
[11:25:54] *** dnewkerk has joined #angularjs
[11:26:35] <codephobic> oh, no one's here right now.
[11:26:36] <codephobic> hmm
[11:26:57] *** annlewis_ has quit IRC
[11:27:31] <swirlycheetah> no functional differences afaik codephobic
[11:27:35] *** cbennett has joined #angularjs
[11:27:55] <codephobic> ah, thanks swirlycheetah
[11:28:01] *** annlewis has quit IRC
[11:28:12] *** platonic has quit IRC
[11:28:13] *** blomman has quit IRC
[11:28:21] *** cbennett has joined #angularjs
[11:28:31] <robdubya> codephobic the difference is
[11:28:40] <swirlycheetah> but if you're starting a project I'd suggest using the controller as syntax, it'll help keep things clearer and you can remove $scope from controller, which is where angular is heading
[11:28:41] <codephobic> that leaves me quite puzzled as to why {{name}} and {{MyController.name}} fail but {{ctrl.name}} works.
[11:28:45] *** blomman has joined #angularjs
[11:28:49] *** annlewis has joined #angularjs
[11:29:12] *** SargoDarya has quit IRC
[11:29:16] <robdubya> this.name = 'foo' => ctrl as foo -> {{fool.name}}
[11:29:42] <robdubya> $scope.name = 'foo' => {{ name }}
[11:30:22] *** gkap has quit IRC
[11:31:19] *** annlewis_ has joined #angularjs
[11:31:24] *** annlewis has quit IRC
[11:31:33] *** nemothekid has joined #angularjs
[11:31:48] *** startupality has joined #angularjs
[11:31:53] <codephobic> robdubya, not really sure what you mean there, as far as I understood it $scope was set by controller and so this.name and $scope.name are the same thing?
[11:31:56] *** gkap has joined #angularjs
[11:32:12] *** richardbkr has quit IRC
[11:32:37] <robdubya> nope. using ctrl as syntax means you're always going to have to reference the controller name
[11:32:45] *** richardbkr has joined #angularjs
[11:32:45] <robdubya> you'll always have a dot
[11:32:57] <codephobic> ah
[11:33:12] <codephobic> I didn't know that, thanks.
[11:33:24] <robdubya> $scope.foo = 'bar' => {{ foo }} - but you shouldn't do that anyway
[11:33:27] *** annlewis_ has quit IRC
[11:33:28] *** annlewis has joined #angularjs
[11:33:29] <robdubya> no dot, you're doing it wrong
[11:33:29] *** craigp has quit IRC
[11:33:40] *** IJNX has joined #angularjs
[11:33:43] <robdubya> swirlycheetah is right - go controllerAs, its simpler
[11:34:37] <codephobic> but I still have the weird situation where {{MyController.name}} doesn't work, when I set my ng-controller="MyController", but {{ctrl.name}} works when I set ng-controller="MyController as ctrl"
[11:34:45] <sacho_> Why would it?
[11:34:51] *** platonic has joined #angularjs
[11:34:54] <codephobic> why would the aliasing (is that the right term?) make a difference?
[11:34:57] <sacho_> interpolation({{expr}}) is evaluated with the scope as context.
[11:35:02] *** emmesswhy has quit IRC
[11:35:04] <sacho_> there's no MyController property on the scpoe
[11:35:06] <sacho_> scope*
[11:35:11] <sacho_> (I don't know why you would assume there is one)
[11:35:22] <swirlycheetah> you don't need do {{MyController.name}}, just {{name}}
[11:35:35] *** caitp has joined #angularjs
[11:35:40] <codephobic> swirlycheetah, {{name}} doesn't work either.
[11:35:50] <sacho_> the controller as syntax does $scope.alias = ctrl.
[11:35:52] <sacho_> basically.
[11:36:06] <codephobic> I'll paste up the example, might make things clear
[11:36:09] <codephobic> one moment.
[11:36:13] <sacho_> you don't have to.
[11:36:16] *** kpax has joined #angularjs
[11:36:19] <codephobic> oh
[11:36:23] *** annlewis has quit IRC
[11:36:25] *** annlewis_ has joined #angularjs
[11:37:10] *** richardbkr has quit IRC
[11:37:14] <kpax> how do you bind a single object to a template? Tried <div ng-model="model" ng-include="'template.html'"> but it doesn't work
[11:37:24] *** Left_Turn has joined #angularjs
[11:37:34] <kpax> I can only examples on ng-repeat
[11:37:35] *** cbennett_ has joined #angularjs
[11:37:56] <kpax> can only find*
[11:38:05] *** Etherael has quit IRC
[11:38:07] *** Somatt_wrk has joined #angularjs
[11:38:36] *** _mtr has joined #angularjs
[11:38:40] <sacho_> use a directive instead
[11:40:04] *** annlewis_ has quit IRC
[11:40:13] *** annlewis has joined #angularjs
[11:40:16] *** caitp has quit IRC
[11:40:30] <codephobic> if you guys don't mind, just have a look at this http://pastebin.com/PZuYfhS4
[11:40:37] <kpax> Angular is really a mess to search for things in comparison to Knockout.
[11:40:44] *** cbennett has quit IRC
[11:40:49] <sacho_> that's nice
[11:41:00] *** cbennett_ has quit IRC
[11:41:08] *** alpha080 has quit IRC
[11:41:13] *** Aswebb_ has joined #angularjs
[11:41:17] <dan2k3k4> I thought angular.isDefined(any_var_name) would return false if any_var_name isn't defined... instead of error?
[11:41:25] <Somatt_wrk> I have a <option ng-repeat="(code, title) in UserAccountHandleAddressModalCtrl.countryCodes" value="{{code}}">{{title}}</option> that works fine in all browsers except IE8, which ends up with the correct items in DOM but doesn't make the interpolation on {{title}}. Any clue about that ?
[11:41:30] *** cbennett has joined #angularjs
[11:41:50] *** nerder has joined #angularjs
[11:41:59] <nerder> hello
[11:42:05] <Somatt_wrk> I'm using 1.2.26 btw
[11:42:16] <nerder> anybody has never use hello.js into an angularjs application?
[11:42:34] <kpax> sacho_: was that a answer to me?
[11:42:39] *** alpha080 has joined #angularjs
[11:42:47] <sacho_> dan2k3k4, that would be impossible to do.
[11:42:53] *** Manaus has joined #angularjs
[11:42:56] <codephobic> http://pastebin.com/23ZXFY3V << corrected examples
[11:43:03] <codephobic> example*
[11:43:09] <sacho_> dan2k3k4, you should never have undefined variables, anyway.
[11:43:09] *** _mtr has quit IRC
[11:43:11] <dan2k3k4> sacho_, hmm I have to do window.whatever_var ?
[11:43:12] *** cbennett has quit IRC
[11:43:30] *** AWAW has quit IRC
[11:43:31] *** cbennett has joined #angularjs
[11:43:43] <sacho_> what problem are you trying to solve?
[11:43:55] *** chr1stopher has quit IRC
[11:44:05] <sacho_> codephobic, what is that example supposed to show?
[11:44:10] *** blomman has quit IRC
[11:44:12] *** Kar2 has quit IRC
[11:44:32] *** annlewis has quit IRC
[11:44:42] *** blomman has joined #angularjs
[11:44:53] *** annlewis has joined #angularjs
[11:45:09] <dan2k3k4> well I have a controller with a function that should only show up for pageX but I want to ensure that pageX is loaded (which has an inline js that adds var map; map = new OpenLayers...) - so I don't want to directly write: map.getLayers() in my function as map 'might not be defined' in the odd case that ol doesn't work or something
[11:45:24] <dan2k3k4> so why I wanted to check if map is defined and if map.getLayers too
[11:45:28] *** settinghead has joined #angularjs
[11:46:45] <sacho_> are you using strict mode?
[11:46:49] *** Kar2 has joined #angularjs
[11:46:51] *** t_p has quit IRC
[11:47:02] <codephobic> sacho_, that I can only bind the variables when I do ng-control="MyControll as cntrl", along with {{cntrl.filename}}.
[11:47:08] *** e0ipso|away is now known as e0ipso
[11:47:21] *** elxa has quit IRC
[11:47:25] <sacho_> codephobic, yes? working as intended
[11:47:37] <codephobic> I can't get it to work with ng-controller="MyController" {{MyController.filename}}
[11:47:49] <codephobic> or ng-controller="MyController" {{filename}}
[11:47:51] <sacho_> Why would you expect that to work?
[11:47:58] <dan2k3k4> sacho_, yeah ? well I have use strict at top of my angular files (and other js files)
[11:48:03] *** a3gis has joined #angularjs
[11:48:08] <dan2k3k4> do I need it inside each controller ? :s
[11:48:13] *** annlewis has quit IRC
[11:48:19] <sacho_> no
[11:48:24] *** Solid1_afk is now known as Solid1
[11:48:35] *** JesuZ- has quit IRC
[11:48:35] <codephobic> because I thought that "MyController as ..." was superfluous and only for convenience.
[11:48:39] <dan2k3k4> anyway, seems to work with: if (angular.isDefined(window.map)) { angular.forEach(map.getLayers(), function(layer) { // ... doSomething
[11:48:39] *** annlewis has joined #angularjs
[11:48:50] <codephobic> I didn't expect there to be a functional difference between using "as" and not using it.
[11:50:08] *** jaydubya has joined #angularjs
[11:50:11] <codephobic> my understanding was that using ng-controller within a div, meant that angular used the referenced controller to provide $scope and context to all the expressions within that div. So {{filename}} should work, but it doesn't.
[11:50:14] <sacho_> meh, guess-coding instead of reading the docs.
[11:50:29] <sacho_> No.
[11:50:53] *** settinghead has quit IRC
[11:51:12] *** Superhard_ has joined #angularjs
[11:51:40] *** blomman has quit IRC
[11:51:44] <sacho_> ng-controller requests a new scope, and uses the provided controller as the directive's controller
[11:51:48] *** Trindaz has quit IRC
[11:52:11] *** annlewis has quit IRC
[11:52:16] *** blomman has joined #angularjs
[11:52:30] <sacho_> it's basically equivalent to writing a directive that has scope: true and controller: 'MyController'
[11:52:51] *** annlewis has joined #angularjs
[11:53:04] <sacho_> well, the docs for ng-controller are awful, I'll give you that
[11:53:08] <codephobic> (I haven't gotten that far along in my angular reading, yet...)
[11:53:24] <codephobic> I've read the docs and watched a few youtube vids
[11:53:42] *** poolside has quit IRC
[11:53:45] * sacho_ shrugs
[11:54:05] <codephobic> and ..., well, they all say that the controller manages the $scope and exposes scope to the view ... so I figured that was how it worked.
[11:54:29] <sacho_> well, it's hard to square the round hole
[11:54:33] *** Manaus has quit IRC
[11:54:52] *** jaydubya has quit IRC
[11:55:12] <sacho_> I guess the videos you are watching are trying to peg angular into some mvc concept - it really doesn't wor
[11:55:14] <sacho_> +k
[11:55:31] <codephobic> are there any reference docs online, that you would recommend? I need to get a better understanding of the way angular works and clearly I'm going wrong at a fundamental level.
[11:55:39] *** Superhard_ has quit IRC
[11:55:41] <codephobic> ah
[11:55:44] <sacho_> um, the api reference?
[11:55:49] *** annlewis has quit IRC
[11:55:57] <sacho_> https://docs.angularjs.org and /api
[11:56:03] <codephobic> k
[11:56:16] <sacho_> but I checked them out, they're not really less confusing
[11:56:41] *** annlewis has joined #angularjs
[11:56:54] *** blomman has quit IRC
[11:56:56] <codephobic> oh
[11:57:02] *** TheAceOfHearts has quit IRC
[11:57:12] <codephobic> the docs were worse back when I last checked
[11:57:23] *** alpha080 has quit IRC
[11:57:37] <codephobic> and I'm trying to follow http://toddmotto.com/opinionated-angular-js-styleguide-for-teams/ as best as I can
[11:57:40] <sacho_> well, they've spent some time on them and also accepted a lot of outside work into them
[11:57:42] *** startupality has quit IRC
[11:57:46] *** elyssonmr has joined #angularjs
[11:58:09] <sacho_> eh, that's fine, but that's just a style guide
[11:58:17] <sacho_> it assumes you have a good idea how angular works
[11:58:20] *** annlewis has quit IRC
[11:58:40] *** JayFK has joined #angularjs
[11:58:50] *** annlewis has joined #angularjs
[11:59:06] <codephobic> I get that, I mean I'm trying to break out the elements in the manner he suggests, rather than being faithful to the way that the books do it.
[11:59:20] <sacho_> that's probably a good idea.
[11:59:27] *** alpha080 has joined #angularjs
[11:59:34] *** Juanchito has joined #angularjs
[12:00:03] <finnlake> jagga, we are going to use kendo ui in a commercial application using angularjs. And we are thinking of using kendo ui for its large set of widgets. Instead of trying to find open source alternatives. We already have licenses for it since we use telerik for .net applications.
[12:00:22] *** fetma has joined #angularjs
[12:00:39] <jagga> I see, it's pretty good in your circumstance then. It's very common of course so you'll get plenty of support for it.
[12:01:11] <jagga> I did some charts work in the past and ended up using chart.js simply because it was open-source
[12:03:33] *** davidreis has joined #angularjs
[12:03:46] *** edy has joined #angularjs
[12:03:58] *** annlewis_ has joined #angularjs
[12:04:18] *** diefans has joined #angularjs
[12:05:04] *** JesuZ has joined #angularjs
[12:05:10] *** annlewis has quit IRC
[12:05:19] *** cbennett has quit IRC
[12:05:34] *** codephobic has quit IRC
[12:06:04] *** KushS has joined #angularjs
[12:06:14] *** airtonix has joined #angularjs
[12:06:23] *** pilva has quit IRC
[12:06:36] *** ggrzybek has joined #angularjs
[12:07:02] *** fetma has left #angularjs
[12:07:18] *** jillesme has quit IRC
[12:07:24] *** Kar2 has quit IRC
[12:07:34] *** al3w2o has quit IRC
[12:07:47] *** annlewis has joined #angularjs
[12:07:48] *** annlewis_ has quit IRC
[12:08:05] *** Click66 has quit IRC
[12:08:08] *** al3w2o has joined #angularjs
[12:08:23] *** pilva has joined #angularjs
[12:08:25] *** platonic has quit IRC
[12:08:31] *** jillesme has joined #angularjs
[12:09:53] *** morenoh150 has joined #angularjs
[12:10:15] *** GoodGuyRodney has joined #angularjs
[12:10:23] *** uru is now known as uru|away
[12:10:59] *** federicobucchi has joined #angularjs
[12:11:02] *** jillesme has quit IRC
[12:11:05] <GoodGuyRodney> Hello all, anyone here willing to help begginer?
[12:11:28] *** Sadin has quit IRC
[12:11:37] *** annlewis_ has joined #angularjs
[12:11:41] *** annlewis has quit IRC
[12:12:38] *** jstroem has quit IRC
[12:12:45] *** seriema has quit IRC
[12:13:08] *** jstroem has joined #angularjs
[12:13:15] *** seriema has joined #angularjs
[12:13:18] *** Spot__ has joined #angularjs
[12:14:01] *** sebhoss_ has quit IRC
[12:14:02] <sacho_> just ask your question
[12:14:17] *** Sadin has joined #angularjs
[12:14:24] *** platonic has joined #angularjs
[12:14:38] *** doug64k has quit IRC
[12:15:01] *** annlewis_ has quit IRC
[12:15:10] *** cbennett has joined #angularjs
[12:15:10] *** mchapman has joined #angularjs
[12:15:19] <Spot__> Hi, I have a problem with angular-touch & angular-carousel (https://github.com/revolunet/angular-carousel) -based carousel. The problem simply is that the performance is very bad on iOS8 devices, regardless of using Safari or Chrome as browser.
[12:15:33] *** rafagomes has joined #angularjs
[12:15:40] *** cbennett has quit IRC
[12:15:40] *** rafagomes has quit IRC
[12:15:43] *** doginal has quit IRC
[12:15:45] *** annlewis has joined #angularjs
[12:15:47] <Spot__> It seems that Apple has made some changes to touch and scroll events for iOS8.
[12:16:04] *** cbennett has joined #angularjs
[12:16:30] *** VeeWee has quit IRC
[12:16:40] *** sebhoss has joined #angularjs
[12:16:44] <Spot__> The issue cannot be reproduced with Chrome's mobile emulation, nor with iOS Simulator. Just with devices running Safari or Chrome on top of iOS8.
[12:16:53] *** Sri_ has joined #angularjs
[12:16:56] <GoodGuyRodney> @sacho hey... Well, some variables in my view get updated, some of them not. I am using ionic framework, and that variable is set to badge on tabs. I searched google, and found couple solutions, but none of them seems to work with me.. I don't know where I am going wrong.
[12:16:57] <Sri_> how to use angular.reloadWithDebugInfo
[12:17:28] *** NomanJaved has joined #angularjs
[12:17:34] <NomanJaved> hello
[12:17:39] <NomanJaved> any one here
[12:17:42] *** nemothekid has quit IRC
[12:17:45] <NomanJaved> that can help me
[12:18:03] *** annlewis_ has joined #angularjs
[12:18:03] *** jstroem has quit IRC
[12:18:10] *** annlewis has quit IRC
[12:18:11] <NomanJaved> what is the difference between the $scope and this ...................!
[12:18:24] *** seriema has quit IRC
[12:18:29] *** jstroem has joined #angularjs
[12:18:59] *** chr1stopher has joined #angularjs
[12:19:16] *** nerder has quit IRC
[12:19:42] <NomanJaved> what is the difference between the $scope and this.....................??
[12:19:55] <NomanJaved> what is the difference between the $scope and this in the function...............!
[12:19:56] *** al3w2o has quit IRC
[12:20:13] <Fuzzy> cmon man
[12:20:17] <Fuzzy> stack overflow it
[12:20:18] <Fuzzy> http://stackoverflow.com/questions/11605917/this-vs-scope-in-angularjs-controllers
[12:20:31] *** annlewis has joined #angularjs
[12:20:34] <Sri_> how to use angular.reloadWithDebugInfo
[12:20:41] *** Grokling_ has quit IRC
[12:20:53] *** andrewvee has quit IRC
[12:20:58] <Sri_> Fuzzy can u help me with this angular.reloadWithDebugInfo
[12:21:11] *** annlewis_ has quit IRC
[12:21:17] *** sebhoss has quit IRC
[12:22:26] *** aendrew has quit IRC
[12:22:31] *** andrewvee has joined #angularjs
[12:24:20] *** annlewis_ has joined #angularjs
[12:24:29] *** platonic has quit IRC
[12:24:51] *** juampy has quit IRC
[12:24:54] *** samuel02 has joined #angularjs
[12:24:58] <scav> is it normal behaviour of $http to return a promise and not just the sync'd version of the data i request?
[12:25:11] *** samuel02 has quit IRC
[12:25:18] <Spot__> Sri_: You just open console, and type it there with (true);
[12:25:20] *** aendrew has joined #angularjs
[12:25:36] <Spot__> Sri_: With chrome just right click somewhere in page, then choose console from dev menu, etc
[12:25:42] *** annlewis has quit IRC
[12:26:23] *** pilva1 has joined #angularjs
[12:27:09] *** andrew9183 has quit IRC
[12:27:26] <swirlycheetah> yes scav
[12:27:40] *** blomman has joined #angularjs
[12:28:03] *** annlewis has joined #angularjs
[12:28:09] *** jtimon has joined #angularjs
[12:28:36] *** devhoag has joined #angularjs
[12:28:38] *** annlewis_ has quit IRC
[12:28:42] *** GoodGuyRodney has quit IRC
[12:28:46] <scav> swirlycheetah: so if i want my controller to prepare data and render it with the view, i have to work around that promise?
[12:28:49] *** seeingred has joined #angularjs
[12:29:43] <swirlycheetah> if i'm understanding you correctly then yes
[12:30:02] *** pilva has quit IRC
[12:30:09] <swirlycheetah> i usually do something like start with 'var dataLoaded = false;'
[12:30:30] <swirlycheetah> then when the promise resolves i do 'dataLoaded = true;'
[12:31:01] <swirlycheetah> then you can have some kind of loading message or whatever you want
[12:31:35] *** platonic has joined #angularjs
[12:31:55] *** Foxandxss has joined #angularjs
[12:31:58] <scav> yeah, thats all fine and dandy, but how do i trigger an event once the promise is okay? i mean, i need this data to appear in the view, not just a load animation
[12:32:03] *** Aswebb_ has quit IRC
[12:32:15] *** annlewis_ has joined #angularjs
[12:32:28] *** annlewis has quit IRC
[12:32:35] <swirlycheetah> just do like $scope.data = data;
[12:32:43] *** Sadin has quit IRC
[12:32:49] *** tarnus has joined #angularjs
[12:33:07] *** devhoag has quit IRC
[12:33:08] <scav> yeah, thats not doing anything for me
[12:33:57] <swirlycheetah> can you show an example and i'll have a look
[12:34:19] *** Click66 has joined #angularjs
[12:34:50] *** theshit123 has quit IRC
[12:35:42] *** annlewis has joined #angularjs
[12:36:21] *** annlewis_ has quit IRC
[12:36:23] *** Aswebb_ has joined #angularjs
[12:36:34] *** caitp has joined #angularjs
[12:36:38] *** Grumelo has quit IRC
[12:36:58] *** juampy has joined #angularjs
[12:37:33] *** tarnus has quit IRC
[12:37:50] <scav> that would be a simple $http.get returning to a promise, with a .then(returnData) with $scope variables being assigned inside of it
[12:38:00] *** jaydubya has joined #angularjs
[12:38:01] *** elyssonmr has quit IRC
[12:38:05] <scav> im not even sure a pastie would make sense in this case, its so very little actual code
[12:38:08] *** platonic has quit IRC
[12:38:16] <scav> and primarily related to angular, not my code :/
[12:38:31] *** annlewis_ has joined #angularjs
[12:38:37] *** red_horned_rihno has quit IRC
[12:38:41] *** annlewis has quit IRC
[12:39:10] *** sebhoss has joined #angularjs
[12:39:50] <scav> i just want my promise data available in the controller, but apparently control flow which has been a natural part of languages since for ever was skipped witn js
[12:40:04] <scav> as it seems to just run once, and then be done with it
[12:40:50] *** Aswebb_ has quit IRC
[12:41:12] <scav> there is no join() or notify()?
[12:41:22] *** glaksmono has quit IRC
[12:41:38] *** annlewis_ has quit IRC
[12:42:24] *** annlewis has joined #angularjs
[12:42:45] *** jillesme has joined #angularjs
[12:42:46] *** juampy is now known as juampy_brb
[12:43:02] <swirlycheetah> there is
[12:43:39] *** chakkimatti has quit IRC
[12:43:53] *** fairuz has quit IRC
[12:43:54] *** uru|away is now known as uru
[12:44:06] *** platonic has joined #angularjs
[12:44:20] *** annlewis has quit IRC
[12:44:35] *** GreenJello has quit IRC
[12:44:57] *** annlewis has joined #angularjs
[12:45:26] *** Nijikokun has quit IRC
[12:46:07] *** Aswebb_ has joined #angularjs
[12:46:37] *** SexualRickshaw has quit IRC
[12:47:04] *** annlewis has quit IRC
[12:47:11] *** annlewis has joined #angularjs
[12:47:16] <scav> guess im just retarded then
[12:47:18] *** jillesme has quit IRC
[12:47:25] *** mak`` has quit IRC
[12:48:34] *** VictorBjelkholm has joined #angularjs
[12:48:40] *** Aswebb_ has quit IRC
[12:49:18] *** mak`` has joined #angularjs
[12:49:42] *** annlewis_ has joined #angularjs
[12:49:59] *** annlewis has quit IRC
[12:50:05] *** jaznow has joined #angularjs
[12:50:46] *** elxa has joined #angularjs
[12:50:59] *** ggrzybek has quit IRC
[12:51:10] <Spot__> scav: You can always workaround with $http.get( ... ).then(function(stuff) { $scope.stuff = stuff; } and have <div ng-if="stuff"> ... </div> on your controller template.
[12:51:15] *** tangorri has quit IRC
[12:52:23] *** tripu has joined #angularjs
[12:52:31] *** annlewis_ has quit IRC
[12:52:43] *** zwacky has joined #angularjs
[12:52:44] *** annlewis has joined #angularjs
[12:52:53] *** skyx_ has joined #angularjs
[12:53:30] *** \du has joined #angularjs
[12:53:31] <Spot__> In case you need many $http.get's to be ready, you can chain them and collect the data with $watchCollection(['stuff1', 'stuff2', ...], function() { ... };
[12:53:43] *** blomman_ has joined #angularjs
[12:53:57] *** epantzar has quit IRC
[12:54:11] <Spot__> However, if you really want to learn the "correct" way, you just might to do things with $defer and it's watchers :)
[12:54:19] *** annlewis has quit IRC
[12:54:32] <Spot__> Or $promise is also commonly used component
[12:54:41] *** elyssonmr has joined #angularjs
[12:54:46] *** annlewis has joined #angularjs
[12:54:59] *** rafagomes has joined #angularjs
[12:55:32] *** Sky[x] has quit IRC
[12:55:42] *** blomman has quit IRC
[12:55:46] *** SargoDarya has joined #angularjs
[12:57:07] *** annlewis has quit IRC
[12:57:09] *** epantzar has joined #angularjs
[12:57:18] *** annlewis has joined #angularjs
[12:58:09] *** rafagomes_ has joined #angularjs
[12:58:10] *** rafagomes has quit IRC
[12:58:37] *** kkk1 has quit IRC
[12:58:48] *** noegry has quit IRC
[12:58:59] *** VeeWee has joined #angularjs
[12:59:40] *** annlewis has quit IRC
[12:59:52] *** SargoDarya has quit IRC
[12:59:54] *** annlewis has joined #angularjs
[13:00:00] *** kruk has joined #angularjs
[13:00:39] *** RangerRick has quit IRC
[13:00:52] *** elyssonmr has quit IRC
[13:00:58] *** platonic has quit IRC
[13:00:58] *** RangerRick has joined #angularjs
[13:01:03] *** IJNX has quit IRC
[13:01:25] *** gunn_ has joined #angularjs
[13:02:20] <scav> Spot__: thanks :) ill look into those
[13:02:37] *** dnewkerk has quit IRC
[13:02:53] *** IJNX has joined #angularjs
[13:03:11] *** jillesme has joined #angularjs
[13:03:17] *** jlebrech has quit IRC
[13:03:22] <Spot__> scav: You can also do $http's (or $resource's) prior selecting controllers to views
[13:03:45] *** elyssonmr has joined #angularjs
[13:04:02] *** gunn has quit IRC
[13:04:15] *** dnewkerk has joined #angularjs
[13:04:18] <Spot__> I like most doing directives which do complex stuff, and inject the actual data from controllers - so then the directive can $scope.$watch for the data (or $watchCollection) and do the actual stuff when data is available.
[13:04:52] *** annlewis has quit IRC
[13:05:01] *** annlewis has joined #angularjs
[13:05:29] *** a3gis has quit IRC
[13:05:36] *** swist has joined #angularjs
[13:06:01] *** dc_ has joined #angularjs
[13:06:37] *** lexek__ has joined #angularjs
[13:06:39] *** platonic has joined #angularjs
[13:06:51] *** jillesme has quit IRC
[13:07:04] *** jillesme has joined #angularjs
[13:07:20] *** annlewis has quit IRC
[13:07:45] *** annlewis has joined #angularjs
[13:07:58] *** swist has quit IRC
[13:08:31] *** swist has joined #angularjs
[13:09:34] *** juanlas has joined #angularjs
[13:10:06] *** annlewis has quit IRC
[13:10:10] *** annlewis_ has joined #angularjs
[13:10:17] *** KushS has quit IRC
[13:10:42] *** dc_ has quit IRC
[13:10:45] *** jillesme has quit IRC
[13:10:59] *** swist has quit IRC
[13:11:18] *** platonic has quit IRC
[13:11:35] *** swist has joined #angularjs
[15:56:10] *** echelog-2 has joined #angularjs
[15:57:40] *** yoshokatana has joined #angularjs
[15:57:40] <zbzzn> someone needs to change the topic with this solution :)
[15:57:55] <swirlycheetah> haha
[15:58:01] *** tfennelly has joined #angularjs
[15:58:14] *** soee has quit IRC
[15:58:32] *** paradox41 has joined #angularjs
[15:58:38] *** AciD` has quit IRC
[15:58:38] *** AciD` has joined #angularjs
[15:59:04] *** jheady has joined #angularjs
[15:59:11] *** ingsoc has joined #angularjs
[15:59:16] *** scriptThis has quit IRC
[15:59:26] *** __danimal__ has joined #angularjs
[16:00:31] *** dwayne has joined #angularjs
[16:00:58] *** mary5030 has quit IRC
[16:01:31] *** mary5030 has joined #angularjs
[16:01:32] *** blomman has quit IRC
[16:01:37] *** jdcasey has joined #angularjs
[16:01:45] *** zlalanne has joined #angularjs
[16:02:12] *** blomman has joined #angularjs
[16:02:26] *** jheady1 has joined #angularjs
[16:02:51] *** oste has joined #angularjs
[16:03:15] *** c00ljs_ has quit IRC
[16:04:41] *** Aswebb_ has joined #angularjs
[16:06:05] *** mary5030 has quit IRC
[16:06:06] *** jheady has quit IRC
[16:06:17] *** andrewvee has quit IRC
[16:06:31] *** RPassos has joined #angularjs
[16:06:32] *** Mxyzpltk has joined #angularjs
[16:06:33] *** shackleford has joined #angularjs
[16:06:37] *** RPassos has quit IRC
[16:07:01] *** prosper_ has joined #angularjs
[16:07:09] *** sheplu has joined #angularjs
[16:07:10] *** c00ljs has joined #angularjs
[16:07:17] *** RPassos has joined #angularjs
[16:07:21] *** c00ljs has joined #angularjs
[16:07:47] *** boxmein has quit IRC
[16:08:09] *** Anton_ has quit IRC
[16:08:58] *** vonnegut has joined #angularjs
[16:09:13] *** lw has quit IRC
[16:09:21] *** jheady1 has quit IRC
[16:09:56] *** ries has joined #angularjs
[16:10:04] <ries> Hey All, I am using ng-disabled to enable/disable <button> … </button> works fine in all browser, except IE9 anybody know a good solution to this?
[16:10:28] *** Nomai has joined #angularjs
[16:10:33] *** shackleford has quit IRC
[16:10:43] <Nomai> hello any one tell me about this and $scope
[16:10:45] *** juanpablo__ has quit IRC
[16:10:48] <Nomai> ?
[16:10:55] *** lsiv568 has quit IRC
[16:11:03] <caitp> they are different things
[16:11:09] *** shackleford has joined #angularjs
[16:11:12] *** Lewix has joined #angularjs
[16:11:14] *** juanpablo__ has joined #angularjs
[16:11:20] <diraol> friends, I'm making a $http.post() that has a strange behaviour.
[16:11:20] <diraol> When I do throught the browser, it works fine and do all I want (and the server responds with 200 status).
[16:11:20] <diraol> But when I do it on the mobile, the server also respond with status 200, but the app doesn't seems to understand the answer and trhow error ("undefined" and status "0")...
[16:11:26] <diraol> Any idea what would be happening?
[16:11:30] *** FunnyLookinHat has joined #angularjs
[16:11:33] <Nomai> what is the dirrerence between $scope and this
[16:11:54] *** prbc has quit IRC
[16:12:22] *** dsdeiz has quit IRC
[16:12:23] <Nomai> ...........caitp
[16:12:28] *** g33k5z has quit IRC
[16:12:39] *** jmls has joined #angularjs
[16:12:47] <fairuz> diraol: you may need to add some extra headers like content-type and stuff
[16:12:51] *** Aswebb_ has quit IRC
[16:12:54] *** g33k5z has joined #angularjs
[16:12:55] *** t1mmen has joined #angularjs
[16:13:03] <Nomai> ............................................................
[16:13:03] <fairuz> diraol: remember about cors too
[16:13:16] <oniijin> stop killing ellipses
[16:13:16] <diraol> fairuz: I've set ip up for cors.
[16:13:26] <oniijin> only you can stop ellipsis abuse
[16:13:28] *** Una has joined #angularjs
[16:13:36] <Nomai> hello
[16:13:59] <Nomai> what is the difference between $scope and this.
[16:14:00] *** boxmein has joined #angularjs
[16:14:01] <diraol> fairuz: and set the headers. But the thing is: The same code work on the browser (with --disable-web-security) but not on the mobile
[16:14:09] *** paradox41 has left #angularjs
[16:14:15] <zbzzn> Nomai, "this" is a concept of JavaScript and $scope is a concept of Angular
[16:14:15] *** jasonp has joined #angularjs
[16:14:22] <caitp> it's hard to explain `this` --- if you do `function MyClass() {} var x = new MyClass();` you'll call MyClass with a `this` which is an instance of MyClass --- an object with its prototype set up like that
[16:14:25] <zbzzn> there is no connection between the two
[16:14:41] <oniijin> there are also 11ty results if u google that
[16:14:42] <fairuz> diraol: How about normal browser?
[16:14:46] <caitp> but if you were to `MyClass.call(null);`, it would have either a null `this`, or the global object, depending on the mode of the script
[16:14:51] <fairuz> with default settings
[16:14:59] *** cavallari has joined #angularjs
[16:15:00] <diraol> On the mobile, if I send wrong user and password, I get a 401 http response and the app identify it correctly, but with correct username/password it gets undefined.
[16:15:40] *** Anton_ has joined #angularjs
[16:16:13] <diraol> hum... on chrome seems to exist a problem with CORS. On Firefox I've just tested it and there is a cors error (damit, hours and hours with this thing)
[16:16:21] *** dave_boling has joined #angularjs
[16:16:40] *** juanpablo___ has joined #angularjs
[16:16:41] *** shackleford has quit IRC
[16:16:49] *** _mtr has joined #angularjs
[16:17:11] <Nomai> I assign the value to $scope.data= obj; and obj is json object....... now i want to use it in html how to accesses mean what is the syntax of $scope.data in ng-repeat directive ....
[16:17:16] <diraol> "This can be fixed by moving the resource to the same domain or enabling CORS" (firefox)....
[16:17:23] <Nomai> ................zbzzn.......................
[16:17:26] <fairuz> if you have cors error on normal browser, you'll have the same thing on the mobile
[16:17:37] <fairuz> Did you enabled cors on the server?
[16:17:52] *** RPassos has quit IRC
[16:17:57] <diraol> why is it so hard to setup CORS? ....
[16:17:57] <diraol> Yeah (at least I think so).... both nginx and django
[16:18:11] <zbzzn> Nomai, please read the documentation. I am not sure what you are asking
[16:18:16] *** dcherman has joined #angularjs
[16:18:17] *** cacts has joined #angularjs
[16:18:26] *** lsiv568 has joined #angularjs
[16:18:52] *** juanpablo__ has quit IRC
[16:19:03] <fairuz> it's pretty easy depending on the web server
[16:19:14] <diraol> nginx is my current webserver
[16:19:19] *** pootpoot has joined #angularjs
[16:19:21] *** dacuca has joined #angularjs
[16:19:23] <diraol> ngxin + uwsgi
[16:19:31] *** evanjs_ has joined #angularjs
[16:19:43] <fairuz> browser will trigger preflight when on post request
[16:19:52] *** elyssonmr has joined #angularjs
[16:19:59] <fairuz> preflight request is the options request done before the actual request
[16:20:05] <fairuz> Your server need to allow OPTIONS
[16:20:13] *** rafagomes has joined #angularjs
[16:20:19] *** zivester has quit IRC
[16:20:33] <diraol> Yeap, I've read about it. I've configured it to accept GET, POST, OPTIONS, PUT ...
[16:20:36] *** lw has joined #angularjs
[16:20:55] *** prbc has joined #angularjs
[16:21:22] *** zz_night-owl is now known as night-owl
[16:21:29] *** _mtr has quit IRC
[16:21:47] *** ome has quit IRC
[16:21:54] *** prbc has quit IRC
[16:22:53] *** evanjs has quit IRC
[16:22:54] *** bostonaholic has quit IRC
[16:23:17] *** raibutera has joined #angularjs
[16:23:35] *** Jorge has joined #angularjs
[16:23:43] *** mdedetri_ has quit IRC
[16:24:02] *** mdedetrich has joined #angularjs
[16:24:09] *** bostonaholic has joined #angularjs
[16:24:13] <raibutera> what's everyone working on today?
[16:24:15] *** rho has joined #angularjs
[16:24:50] *** walden is now known as walden|brb
[16:25:01] *** Jorge has quit IRC
[16:25:24] *** morenoh150 has quit IRC
[16:25:40] *** soj has quit IRC
[16:25:49] *** Nomai has quit IRC
[16:25:59] *** night-owl is now known as zz_night-owl
[16:26:12] *** Click66 has quit IRC
[16:27:10] <zbzzn> LoadRunner
[16:27:44] *** jpstone has joined #angularjs
[16:28:34] *** jheady has joined #angularjs
[16:29:38] *** Aswebb_ has joined #angularjs
[16:29:47] *** yaru22 has joined #angularjs
[16:29:58] *** AlexW2611 has joined #angularjs
[16:30:26] <diraol> fairuz: do I have to treat the pre-flight request by my self or angular $http already deal with it?
[16:30:39] <fairuz> diraol: neither
[16:30:41] *** jrist has quit IRC
[16:30:42] *** jrist has joined #angularjs
[16:30:47] <fairuz> preflight is made by the browser
[16:30:50] *** evanjs_ has quit IRC
[16:30:55] <fairuz> not you, nor js
[16:31:09] *** Valion_ has joined #angularjs
[16:31:10] <diraol> hum... Even on the mobile, just the same thing?
[16:31:15] *** bkuberek has joined #angularjs
[16:31:23] *** evanjs has joined #angularjs
[16:31:30] *** blomman has quit IRC
[16:31:31] *** mary5030 has joined #angularjs
[16:31:35] *** raibutera has quit IRC
[16:31:37] <fairuz> yeah
[16:31:38] *** mary5030 has quit IRC
[16:31:48] *** lite_ has quit IRC
[16:31:56] <fairuz> you need to configure the server for cors, not the client
[16:31:57] <diraol> =) Thanks for the info
[16:32:08] *** evanjs_ has joined #angularjs
[16:32:16] *** blomman has joined #angularjs
[16:32:16] *** mary5030 has joined #angularjs
[16:32:17] <diraol> I'm trying to .... but that's being hard to do...
[16:32:23] *** lite_ has joined #angularjs
[16:32:32] *** Sebastien-L has quit IRC
[16:32:33] *** zwacky has quit IRC
[16:32:45] *** Aswebb_ has joined #angularjs
[16:33:01] *** phzon has joined #angularjs
[16:33:26] *** __danimal__ has quit IRC
[16:33:30] *** mogaj has joined #angularjs
[16:34:54] *** KushS_ has joined #angularjs
[16:35:01] *** shackleford has joined #angularjs
[16:35:13] *** roymiloh has quit IRC
[16:35:21] *** zz_night-owl is now known as night-owl
[16:35:39] <jpstone> anyone have a recommendation on angular-friendly, non-d3, works out of the box charts?
[16:35:48] *** evanjs has quit IRC
[16:36:12] *** lewdev has joined #angularjs
[16:36:24] <swirlycheetah> try https://github.com/pablojim/highcharts-ng jpstone
[16:36:28] *** richardbkr has joined #angularjs
[16:36:33] <swirlycheetah> not used it but highcharts are pretty nice
[16:36:41] <jpstone> thanks i will check it out
[16:36:47] *** lite_ has quit IRC
[16:37:03] *** jheady has left #angularjs
[16:37:05] <zbzzn> I use HighCharts with no issues at all
[16:37:10] *** lewdev has quit IRC
[16:37:13] <zbzzn> but it is not free
[16:37:33] <swirlycheetah> ah
[16:37:42] *** phzon has quit IRC
[16:37:45] *** sss2500 has joined #angularjs
[16:37:59] <jpstone> I'm currently testing googlecharts
[16:38:02] <jpstone> But I don't like their data models
[16:38:18] *** mennea has quit IRC
[16:38:24] <jpstone> a bit awkward
[16:38:30] <Somatt_wrk> anyone would know of a way to display pdf in the browser for ie8+ in angular ?
[16:38:40] *** bostonaholic has quit IRC
[16:38:41] <diraol> what kind of chart do you need?
[16:38:48] <jpstone> a pie chart and a couple bar charts
[16:39:05] *** ajk27_ has quit IRC
[16:39:11] *** diosney has quit IRC
[16:39:12] *** ianpirro has joined #angularjs
[16:39:37] <diraol> may one of the d3 'forks' could help.
[16:39:53] *** ajk27_ has joined #angularjs
[16:39:56] *** opiates has joined #angularjs
[16:40:00] <zbzzn> NVD3 is pretty good for static charts
[16:40:02] <diraol> like: http://visible.io/ or http://nvd3.org/ or http://dimplejs.org/
[16:40:10] *** HenkDeTenk has joined #angularjs
[16:40:21] *** graf_ has joined #angularjs
[16:40:41] *** fabiofb has joined #angularjs
[16:40:49] <jpstone> I just read the first paragraph of visible.io
[16:40:57] <jpstone> sounds like what I'm looking for, lol
[16:40:58] *** richardbkr has quit IRC
[16:41:02] <zwischenzug> i like flot, but it's based on jquery
[16:41:09] *** mtsr__ has quit IRC
[16:41:43] <zbzzn> on canvas you mean?
[16:41:44] *** blomman has quit IRC
[16:42:16] <zbzzn> engrish
[16:42:17] *** blomman has joined #angularjs
[16:42:19] *** walden|brb is now known as walden
[16:42:28] <zbzzn> zwischenzug, you mean it is based on canvas? right
[16:42:49] *** maraneta has joined #angularjs
[16:42:59] *** jillesme has quit IRC
[16:43:01] <zwischenzug> right. based on canvas, but has jquery dependency
[16:43:04] *** goodenough has joined #angularjs
[16:43:19] *** prbc has joined #angularjs
[16:43:32] *** swist has quit IRC
[16:43:36] *** crakrjak has joined #angularjs
[16:43:44] *** Leon has quit IRC
[16:44:11] <ali4ever4> is it possible to validate a single model on an event like ng-blur ?
[16:44:19] *** Anonymous_ has joined #angularjs
[16:44:30] <ali4ever4> well i have a repeater that have lots of input texts user will be editing the text boxs and pressing keyboard TAB to move to next input box to edit it and ngblur should be updating the data to server so is it possible to validate the value specifically for the blured input ?
[16:45:09] *** zwacky has joined #angularjs
[16:45:13] *** crakrjak has quit IRC
[16:46:32] *** ctanga has quit IRC
[16:46:43] *** Sebastien-L has joined #angularjs
[16:47:11] *** Ronyrun has quit IRC
[16:47:13] *** intellix has quit IRC
[16:47:59] *** elrabin has quit IRC
[16:48:10] *** icfantv has joined #angularjs
[16:48:30] *** elrabin has joined #angularjs
[16:48:53] *** elliotstokes has quit IRC
[16:48:54] *** MaxV has quit IRC
[16:49:28] *** panzon has quit IRC
[16:49:41] *** elyssonmr has quit IRC
[16:49:54] <dmack> heads up if you're trying to use a directive on <tr>, just spent 20 minutes wondering why it wasn't compiling in the table
[16:49:55] <dmack> https://github.com/angular/angular.js/issues/1459
[16:49:57] *** opiates has quit IRC
[16:49:58] *** elyssonmr has joined #angularjs
[16:50:21] *** xxMatiasFxx has joined #angularjs
[16:50:50] *** Una has quit IRC
[16:51:21] *** Una has joined #angularjs
[16:51:33] *** Superhard__ has joined #angularjs
[16:51:37] <xxMatiasFxx> I have a view that includes a partial, and inside that partial I use a couple of directives. The variables inside the view, can be accessed from the partial that I include, but not from inside the directives. What is the correct way to access them inside the directives without using $scope.$parent.$parent ?
[16:52:05] *** epantzar has quit IRC
[16:52:10] <dmack> xxMatiasFxx: use isolate scopes for your directives and pass in the data they need.
[16:52:15] *** elrabin has quit IRC
[16:52:15] *** Xaleph has quit IRC
[16:52:33] *** elrabin has joined #angularjs
[16:52:37] *** pknordic has joined #angularjs
[16:52:51] *** elliotstokes has joined #angularjs
[16:53:13] *** hiddentoken has joined #angularjs
[16:53:21] *** hiddentoken has quit IRC
[16:54:02] *** hiddentoken has joined #angularjs
[16:54:03] *** epantzar has joined #angularjs
[16:54:05] *** Ronyrun has joined #angularjs
[16:54:11] *** hiddentoken has quit IRC
[16:54:35] *** Ronyrun has quit IRC
[16:54:39] *** dmrs has joined #angularjs
[16:54:52] *** hiddentoken has joined #angularjs
[16:55:01] *** jmckind has quit IRC
[16:55:41] *** richardbkr has joined #angularjs
[16:55:43] *** shinnya has quit IRC
[16:55:59] *** alpha080 has quit IRC
[16:56:17] <xxMatiasFxx> dmack, (i'm totally new) that's what I'm doing, but since I have an ng-include that creates a new child scope, that child scope does not have the data I need, so when I create the Isolated Scope in the directive it has the data undefined
[16:56:34] <dmack> ah. why are you needing ngInclude?
[16:56:35] *** sebhoss has joined #angularjs
[16:56:41] *** blomman has quit IRC
[16:56:53] *** moogey has joined #angularjs
[16:57:03] <xxMatiasFxx> because that include is modified by designers, and inside that partial they use some defined directives
[16:57:14] *** blomman has joined #angularjs
[16:57:30] *** pknordic has quit IRC
[16:58:17] <dmack> so that's obviously hooked up to some controller, yes?
[16:58:33] *** loverajoel has quit IRC
[16:58:45] *** dcherman2 has joined #angularjs
[16:59:00] *** AngularUI has joined #angularjs
[16:59:00] <AngularUI> [ng-grid] c0bra closed pull request #2332: Fix vertical scroll issue 2144 (master...issue-2144) http://git.io/FEFjdw
[16:59:00] *** AngularUI has left #angularjs
[16:59:02] <xxMatiasFxx> dmack, my view has an ng-include of a partial (a form), which is coded by ui designers, that's they only piece of code we let them change, and inside that partial they use some directives we have already defined. We need those directives to have access to the data of the view, but the ng include in the middle is screwing it up
[16:59:12] <xxMatiasFxx> dmack, yes it is hooked to a controller
[16:59:24] *** busticated has joined #angularjs
[16:59:26] *** sonofdirt has joined #angularjs
[16:59:35] <xxMatiasFxx> I can do in the controler $scope.mydata = $scope.$parent.$parent.mydata, but this looks hacky
[16:59:36] *** sheplu has quit IRC
[16:59:52] <xxMatiasFxx> if I change my structure later, i Might end adding more $parent.$parent....
[17:00:12] <dmack> ah, so the data you need is in a higher level conroller.
[17:00:28] <dmack> can't you inject a service into your other controller and get the data there?
[17:00:29] <christo_m> dmack: if i have a directive called mediaButtons thats basically a ul with a bunch of li buttons, and i do a link function, how can i tell exactly which of the li children was tapped? should i just bind a listener for each using element.child or something?
[17:00:44] *** lw has quit IRC
[17:00:51] *** MaxV has joined #angularjs
[17:00:54] *** sebhoss has quit IRC
[17:01:29] *** dcherman has quit IRC
[17:01:37] *** th3fallen has left #angularjs
[17:01:56] <dmack> christo_m: why not just put an ngClick on them?
[17:02:01] *** Navai has joined #angularjs
[17:02:18] <Navai> Hey
[17:02:19] *** cavallari1 has joined #angularjs
[17:02:21] *** dmrs has quit IRC
[17:02:22] <Navai> So I'm trying to get into AngularJS
[17:02:22] *** pintoo has joined #angularjs
[17:02:25] *** gkap has joined #angularjs
[17:02:25] <xxMatiasFxx> dmack, the problem is with the ng include creating a new child scope
[17:02:37] *** intellix has joined #angularjs
[17:02:38] <christo_m> dmack: so i should write a controller for them then?
[17:02:44] <Navai> I have a good bit of experience with PHP, but I'm just absolutely confused by Angular. What is the "server" that delivers the content to angular?
[17:02:46] <dmack> xxMatiasFxx: right, but you said that ngInclude has it's own dedicated controller, no?
[17:02:53] *** ggrzybek has quit IRC
[17:03:09] <xxMatiasFxx> dmack, nope it doesnt, it just an .html
[17:03:11] <xxMatiasFxx> a partial
[17:03:31] <Sawbones> Navai: The server would be something like an endpoint that serves the html file and a restful api that angular can make ajax request to
[17:03:56] *** prbc has quit IRC
[17:04:00] *** swirlycheetah has quit IRC
[17:04:06] *** tschundeee has quit IRC
[17:04:23] <dmack> christo_m: in your template, you can bind stuff to ngClick in your link.
[17:04:30] <Navai> Sawbones: So apache would suffice to serve the page, and then for the api .. like node.js?
[17:04:32] *** Caroga is now known as Caroga_afk
[17:04:46] *** cavallari has quit IRC
[17:04:47] *** Snugug has quit IRC
[17:04:51] <dmack> xxMatiasFxx: a workaround is just to use ng-controller="Whatever", that'd solve your data problem at lest
[17:04:51] <Sawbones> Navai: So you'd have a '/' endpoint that just serves the .html file which has angular loaded on it, then angular will be making ajax requests in it's app to stuff like GET /user/15
[17:04:53] <dmack> least*
[17:05:04] <dmack> (at the top of the partial you're including)
[17:05:18] <christo_m> dmack: ah so ng-click="somefunc()" will look inside my link for somefunc()?
[17:05:30] <Navai> Sawbones: Ok, that makes sense.
[17:05:31] <dmack> yes, if you defined it on scope
[17:05:41] <christo_m> so inject scope into link and do it
[17:05:42] <Sawbones> Navai: Or you could just have node.js have an endpoint of '/' and keep it in one app
[17:05:50] <christo_m> nice, i really thought id have to have code for one piece spread out between three files
[17:05:53] <christo_m> thank you!
[17:06:02] *** tomphp has joined #angularjs
[17:06:05] *** wsmoak has quit IRC
[17:06:23] *** pintoo has quit IRC
[17:06:25] <Navai> Sawbones: Ah. So if that were to be the case, would the two parts of that app be unrelated? The part that has the api and the one that serves the page
[17:06:34] *** azizur has quit IRC
[17:06:34] *** dave_boling has quit IRC
[17:06:59] *** Hackwar has quit IRC
[17:07:18] <dmack> Navai: in a single page app, the server just sits out JSON to your client - that's really all it's responsible for in mostcases
[17:07:22] <dmack> spits*
[17:07:45] <Navai> Wow
[17:07:56] *** nerder has joined #angularjs
[17:07:57] *** gkap has quit IRC
[17:08:03] *** gkaplan has joined #angularjs
[17:08:26] <xxMatiasFxx> dmack, so you think the best aproach is having a controller for the ng include that sets the data
[17:08:27] <dmack> yeah. :)
[17:08:36] <dmack> in your case, probably.
[17:09:03] <xxMatiasFxx> dmack, is this a common scenario or are we doing something weird ?
[17:09:09] <dmack> does it get included multiple times?
[17:09:26] <dmack> if it does, then you should just create a higher level directive
[17:09:26] *** foofoobar has joined #angularjs
[17:09:28] <christo_m> dmack: a little confused though, theres the directive and then theres the link function, the link has "scope" passed as the parameter. does that mean i use scope.myfunc = function() { ... } when doing stuff or do i still use $scope.myfunc
[17:09:28] <xxMatiasFxx> dmack, right now it doesn't, and probably won't
[17:09:29] <Navai> dmack: You talk about a single page application
[17:09:32] <christo_m> and inject it into the directive
[17:09:33] <dmack> (wth a template that the designers can edit)
[17:09:36] *** phuh has joined #angularjs
[17:10:06] <Navai> But how do you have all of the different aspects - like if needed a login / authentication, control panels, etc .. anything that requires more than just a "homepage"?
[17:10:09] *** jmckind has joined #angularjs
[17:10:09] <dmack> christo_m: scope in your link is your directives scope.
[17:10:10] <TweedleDee> I'm making an online application and for my military section I'm wanting to populate ranks based on what branch you served in and if you were enlisted or an officer, so I setup my arrays in my controller of all the branches, both enlisted and officer and then in my <ui-select> I was trying to do <ui-select-choices repeat="rank in ctrl.getRanks | filter: $select.search"> but it needs an
[17:10:10] <TweedleDee> actual array, not a function that returns an array based on logic, any ideas?
[17:10:11] <xxMatiasFxx> dmack, we have panels, each panel has a view and that view may include a form.html (for each panel) which the designer must code. The designer may use some already made directives.
[17:10:12] *** foofoobar has quit IRC
[17:10:14] *** jmckind has quit IRC
[17:10:17] *** ctanga has joined #angularjs
[17:10:19] <christo_m> dmack: so i just use scope without the $
[17:10:20] <christo_m> kk
[17:10:29] <dmack> yeah, whatever you named the first argument
[17:10:32] <dmack> in link()
[17:10:37] *** diraol has quit IRC
[17:10:40] *** wsmoak has joined #angularjs
[17:10:41] *** Anton_ has quit IRC
[17:10:54] *** jmckind has joined #angularjs
[17:11:02] *** Una_ has joined #angularjs
[17:11:03] <christo_m> i just find the inconsistency a little weird but whatever
[17:11:03] <dmack> xxMatiasFxx: to me, it sounds like you'll need to create a "base" directive that takesa a templateUrl, which can be configurable
[17:11:08] *** aendrew has quit IRC
[17:11:08] *** Una has quit IRC
[17:11:10] <christo_m> i know the $ is for internal angular services etc
[17:11:21] <xxMatiasFxx> dmack, but imagine a form for adding a user, and a form for creating a gallery of images, they are completely different so I can't pack them in a single directive
[17:11:42] <dmack> right, but it doesn't have to do much. it's just a container for other directives
[17:11:43] <xxMatiasFxx> actually the only thing that they share is the <form> tag, not even the submit, since it can have some fileuploads plugins, and stuff
[17:11:58] *** dan2k3k4 has quit IRC
[17:12:00] *** basiclaser_ has quit IRC
[17:12:04] *** Aswebb_ has quit IRC
[17:12:05] <dmack> <container data="yourData"> .... other directives, etc </container>
[17:12:25] <dmack> container can define some base template, etc
[17:12:36] <dmack> it just depends on how re-usable you want it to be
[17:12:42] *** Lingo____ has joined #angularjs
[17:12:51] *** foofoobar has joined #angularjs
[17:12:54] *** Lingo____ is now known as _ravi_
[17:12:54] <Navai> dmack: But how do you have all of the different aspects - like if needed a login / authentication, control panels, etc .. anything that requires more than just a "homepage"?
[17:12:59] <Navai> (in a single page application)
[17:13:03] *** IvailoStoianov has quit IRC
[17:13:12] <dmack> they don't. it's all the same app. (sometimes)
[17:13:16] *** Sebastien-L has quit IRC
[17:13:17] <dmack> all runsoff index.html
[17:14:08] *** hiddentoken has quit IRC
[17:14:18] <dmack> xxMatiasFxx: sorry if i'm not being clear, maybe if i saw your includes html I could better help
[17:14:20] <Navai> Uh
[17:14:44] <Navai> So ... everything (html) is in one file?
[17:14:54] <Navai> take hitbox.tv for example, I know they use angular
[17:15:08] *** coffey has joined #angularjs
[17:15:09] <Navai> is every part of their app - index, watching, login, donate, control panel, etc, all one file?
[17:15:30] *** doertedev has quit IRC
[17:15:31] <dmack> loading...
[17:15:45] <dmack> it's boken
[17:15:46] <dmack> broken*
[17:15:56] <Navai> Works for me?
[17:15:57] <dmack> but yeah, looking at their index.html they load one script file.
[17:16:08] <dmack> Error: [$injector:modulerr] Failed to instantiate module toggle-switch due to:
[17:16:08] *** azizur has joined #angularjs
[17:16:26] *** SargoDarya has joined #angularjs
[17:16:42] <dmack> like this, Navai : http://moviezen.herokuapp.com/#!/
[17:17:03] *** ganeshmax has joined #angularjs
[17:17:37] *** Christer has quit IRC
[17:17:47] <Sawbones> Navai: Yes, they can be completely unrelated
[17:18:12] *** Sebastien-L has joined #angularjs
[17:18:21] *** tschundeee has joined #angularjs
[17:18:27] <xxMatiasFxx> dmack I understand what you meant with the creating a directive for the form. Then I use ng transclude and that's how they add their custom markup right ?
[17:18:45] <dmack> yeah. that sounds better than using ngInclude
[17:18:48] *** Anton_ has joined #angularjs
[17:18:49] <xxMatiasFxx> nice
[17:18:50] <Navai> dmack: That's all one file? Isn't that generally very bad practice, having every element in one file?
[17:19:10] <xxMatiasFxx> and dmack, one last thing, when I define the isolated scope, is there a way to access parent data ?
[17:19:23] <dmack> xxMatiasFxx: you should pass it in directly.
[17:19:24] *** aendrew has joined #angularjs
[17:19:29] <dmack> scope: { data: '=' }
[17:19:33] *** rchavik has quit IRC
[17:19:37] *** yoshokatana has quit IRC
[17:19:42] <dmack> <your-directive data="dataFromHigherLevel"
[17:19:52] *** Proditor has quit IRC
[17:19:59] *** coffey has quit IRC
[17:20:01] *** VictorBjelkholm has quit IRC
[17:20:14] *** juanpablo___ has quit IRC
[17:20:20] <xxMatiasFxx> yeah dmack that works, but I wanted to have that configured in the directive js instead of as an attribute, so lame designers don't need to remember to pass it as an attribute heheeh
[17:20:25] *** juanpablo_ has joined #angularjs
[17:20:32] <dmack> xxMatiasFxx: can't fix stupid
[17:20:36] *** MistahKurtz has joined #angularjs
[17:20:46] <xxMatiasFxx> i wanted something like scope : { data : '=$parent.theData' }
[17:20:49] <xxMatiasFxx> to say something
[17:20:53] <xxMatiasFxx> I know that doesnt work
[17:21:02] <dmack> yeah, $parent is always code smell for me
[17:21:06] <xxMatiasFxx> yeah
[17:21:08] *** SargoDarya has quit IRC
[17:21:27] <dmack> plus that's not reliable. $parent could change depending on context
[17:21:33] <dmack> espcially in your case
[17:22:06] *** k-dawg has quit IRC
[17:22:33] <Navai> dmack: That's all one file? Isn't that generally very bad practice, having every element in one file?
[17:22:39] <Mxyzpltk> Navai: it probably is only one file in production, so that requests to server are minimized, but in dev everything has it's own file and a directory structure
[17:22:45] <dmack> Navai: why is that bad?
[17:22:58] <dmack> there are many files, typically put together by a build process into one file.
[17:22:59] <_ravi_> Hello all, utter newbie question please? :-) I have installed (using bower) a directive called angular-gage (https://github.com/frapontillo/angular-gage) and I have pulled in the corresponding JS into my page (raphael.js, justgage-bower.js, angular-gage.js). Now in my HTML I have: <justgage title='Current Sessions'></justgage>. And I expect that I should at least see an empty
[17:22:59] <_ravi_> gauge with a title, but the page does not contain any such thing. I realise this may be a JustGage issue, and I realise there is a lot of information missing, so please feel free to send me off with an RTFM :-).
[17:22:59] <_ravi_> http://jsfiddle.net/ycayadgh/
[17:23:09] *** wdna has quit IRC
[17:23:27] <Navai> dmack: thought that was just generally bad coder practice
[17:23:30] <Mxyzpltk> everything gets packaged, minimized and optimized in one little app.js or similar by grunt, gulp or similar
[17:23:37] <Navai> Mxyzpltk: Ah, so angular handles that?
[17:23:48] <dmack> nope.
[17:24:02] <Mxyzpltk> Navai: angular allows that, but it's handled by grunt or gulp or similar build tools
[17:24:18] <Navai> Ok
[17:24:51] *** prosper_ has quit IRC
[17:25:07] <Navai> Also, what is MVC model? I have looked at definitions for it but can't understand (probably because I'm so set in PHP methods)
[17:27:00] *** arabot has joined #angularjs
[17:27:22] <Mxyzpltk> Navai: in very crude terms you have a data Model, stored in database, and served by any server tech, then you have a View that will display what's needed or wanted, and a Controller that glues both... but don't read too much into my words ;)
[17:27:34] *** dra_ has quit IRC
[17:28:12] <Navai> Data Model stored in a database?
[17:28:39] <TweedleDee> Dude I worked at my job for 8 months before it all clicked. Its literally any object that represents the structure of the data in whatever form you save it
[17:28:41] <Mxyzpltk> or anywhare, the Model is your data, whatever it is and wherever you get it...
[17:28:57] <TweedleDee> so if you're using SQL as a backend, its an object ( a model ) that imitates that structure
[17:29:02] *** foofoobar has quit IRC
[17:29:11] <Navai> hmm
[17:29:22] <_ravi_> "model of your data"
[17:29:25] <Navai> Ahh, I see :P
[17:29:46] *** HenkDeTenk has quit IRC
[17:29:49] <TweedleDee> So if you have a table called Users with the fields : Name, Age, Birthday then your User model will have the properties String Name, Int Age, DateTime Birthday
[17:29:57] *** nc90 has joined #angularjs
[17:30:10] *** sk87 has quit IRC
[17:30:19] <TweedleDee> anyways someone help me solve my problem now, lmao
[17:30:37] *** cacts|works has joined #angularjs
[17:30:37] <Navai> Ohh, I understand that
[17:30:41] *** conan_the_destro has joined #angularjs
[17:30:50] <TweedleDee> I didnt get it at first because I never modeled my data I saved it directly to the database
[17:30:53] *** lsiv568 has quit IRC
[17:30:56] <TweedleDee> which is not a good practice
[17:31:29] <Navai> Why?
[17:31:32] <Navai> And isn't that just the same?
[17:31:35] <TweedleDee> you wanna abstract as much shit as you can into its own area so you can easily change whatever, in this case if you wanted to swap the storage from SQL to MongoDB you'd just have to change it in your data-access-layer
[17:31:54] <Navai> But with this model type
[17:31:55] <TweedleDee> if you did it the way you probably do now, you'd have to re-write damn near everything all over your application
[17:31:59] *** IvailoStoianov has joined #angularjs
[17:32:02] <Navai> doesn't it just read a database and populate the "object"?
[17:32:09] <TweedleDee> so you can do validation and shit on the model prior to it being put into the database
[17:32:16] <TweedleDee> yeah it does..
[17:32:23] *** StryKaizer has quit IRC
[17:32:36] *** _mtr has joined #angularjs
[17:32:48] <Navai> hm
[17:33:00] <Navai> Isn't that ... how you would do it regardless?
[17:33:25] <TweedleDee> so vague with text but, no.. you want that layer in there trust me if it doens't make sense now, it will in time
[17:33:26] <Navai> ie for mysql I would run a query, fetch it, and then populate arrays
[17:33:29] *** phuh has quit IRC
[17:33:39] *** ingsoc has quit IRC
[17:33:48] *** mrpj has quit IRC
[17:33:54] *** phuh has joined #angularjs
[17:34:00] <TweedleDee> hard to tell without knowing all the frameworks you're using / not using
[17:34:01] *** gkaplan has quit IRC
[17:34:05] <Mxyzpltk> if the crude data works for the app, then no more modelling is needed, but if you need to relate something, validate something, or mix data from serveral sources, then you do some more modelling, Navai
[17:34:19] <TweedleDee> ^
[17:34:20] <Navai> Mxyzpltk: Ok, thanks
[17:34:34] *** yoshokatana has joined #angularjs
[17:34:39] <TweedleDee> I've made many apps without models, but in hindsight I think most of them sucked.
[17:34:58] <TweedleDee> Nothing a user would notice, but nothing I would want to maintain over the years.
[17:35:32] <Navai> Basically all of my dev experience on the web has been with php for the past ~6 years (only for my own hobby projects, don't worry about my amateur code appearing in anything commercial ;)) so I find it difficult to think differently
[17:35:35] <_ravi_> Do keep in mind, especially with SQL, that data models, especially using ORMs, can run afoul of query optimisation.
[17:35:38] <Mxyzpltk> then you can add methods to that same object that can do things like save the data back to the database, validate new fields, fetch more data from other endpoint in the hateoas api, etc etc
[17:35:48] *** ProLoser has joined #angularjs
[17:35:53] <Navai> Mxyzpltk: YOU CAN DO THAT?!
[17:36:00] *** mzabriskie has joined #angularjs
[17:36:08] *** roymiloh has joined #angularjs
[17:36:09] *** aendrew has quit IRC
[17:36:20] <Mxyzpltk> you can, or you can just use ngResource that already did it for you ;)
[17:36:23] <Navai> Holy shit
[17:36:26] *** sigurding has quit IRC
[17:36:27] *** zumba_addict has joined #angularjs
[17:36:34] * Navai curiosity intensifies
[17:36:48] <Navai> That alone would make me move from php
[17:37:13] <BobbieBarker_> restangular has all of that crap baked into the pie already
[17:37:14] <Navai> granted I probably wasn't using php to it's full potential - nor anywhere close - but w/e, angular seems to be regarded as better for many things.
[17:37:26] <BobbieBarker_> it's a different paradigm
[17:37:29] <BobbieBarker_> you can't compare them
[17:37:53] *** _mtr has quit IRC
[17:37:57] <Navai> But for my purposes - what I was using them for - I could compare them
[17:37:57] <_ravi_> Navai don't get carried away :-) ... Angular is the front-end work.
[17:38:31] <Mxyzpltk> you can actually mix them, some of out projects have a index.php fishing for facebook bot and serve the opengraph crap, and pass the angular app if it's another user agent
[17:38:31] *** josh-k has quit IRC
[17:38:40] <Navai> _ravi_: yep, I might also look into node.js. Looked into it a while ago and it confused the hell out of me, but this might give me motivation enough to learn it.
[17:38:41] <_ravi_> PHP is what you are using in the back-end. They can coexist, but if they do not, you need some way to tie your Angular based front-end to your back-end data, whether it be PHP, NodeJS, Python, etc.
[17:39:00] *** edy has quit IRC
[17:39:07] *** josh-k has joined #angularjs
[17:39:08] <Mxyzpltk> or use laravel or whatever php framework you like, to serve de model... some drupal maybe...
[17:39:10] *** Kim____ has joined #angularjs
[17:39:30] <Mxyzpltk> same for java or .net
[17:39:31] *** poolside has joined #angularjs
[17:39:46] *** jheady has joined #angularjs
[17:39:48] *** jillesme has joined #angularjs
[17:39:52] <_ravi_> Of course there is "backend as a service" now :-). So you can sign up with one of those guys, upload your data, and they will supply simple REST APIs to your data.
[17:39:56] <bd-> Navai: you can continue doing similar to what you have been doing before with php etc
[17:40:14] <bd-> the main difference is instead of taking the arrays of data and making some html from them, you just json_encode them instead
[17:40:18] <Navai> _ravi_: Haven't heard of that?
[17:40:23] *** ProLoser has quit IRC
[17:40:33] *** Hackwar has joined #angularjs
[17:40:33] *** chrisshattuck has joined #angularjs
[17:40:37] *** roymiloh has quit IRC
[17:40:44] <Navai> bd-: Ok good, I'm understanding correctly then
[17:40:46] <bd-> and instead $_GET/POST you take the posted form and json_decode it
[17:40:46] *** jdivock_ has quit IRC
[17:41:12] *** m8 has quit IRC
[17:41:16] <bd-> $data = json_decode(file_get_contents("php://input"), true);
[17:41:21] *** frankblizzar has joined #angularjs
[17:41:35] *** Kim____ has quit IRC
[17:41:50] *** Proditor has joined #angularjs
[17:41:51] <Navai> I think I'll avoid php and go for node.js
[17:41:55] *** jheady has left #angularjs
[17:42:11] <Navai> This is all such a totally new concept to me I might as well go straight for what I would probably end up using
[17:42:12] <bd-> have you used node before?
[17:42:23] <bd-> it's very different to working with php, especially when it comes to database interaction
[17:42:24] <Mxyzpltk> Navai: if you want to move away from the php or lamp paradigms, just try to think that all processing will be done at the browser now, at the client... and the backend will do simple things, serve the data, auth, and such
[17:42:25] <Navai> ..Briefly, and to limited success.
[17:42:28] <Mxyzpltk> afk
[17:43:01] *** sonofdirt has quit IRC
[17:43:41] *** sonofdirt has joined #angularjs
[17:43:48] *** dave_boling has joined #angularjs
[17:43:50] *** jacuqesdancona_ has quit IRC
[17:44:01] <_ravi_> Navai, two things about NodeJS: (1) it's extremely async so be ready for that, (2) seriously consider adapting from the get-go something like Promises to deal with #1. With ES6 generators that can be represented as promises at a higher level, it's a safe bet.
[17:44:25] *** jacuqesdancona_ has joined #angularjs
[17:44:41] <Navai> 1. async? 2. Promises? 3. ES6?
[17:45:14] <Navai> Async I get
[17:45:18] *** epantzar has quit IRC
[17:45:20] *** m8 has joined #angularjs
[17:45:25] *** mchammer has quit IRC
[17:45:38] *** tfennelly has quit IRC
[17:45:57] *** blomman has quit IRC
[17:46:01] *** jdcasey has quit IRC
[17:46:18] <_ravi_> Naval: async as you have gotten :-) is the fact that when you do any external operation (read a file, send an HTTP request, query the DB) control returns immediately back to you and the result is delivered asyncrhonously to a callback function that you provided when doing that operation.
[17:46:32] *** jdivock_ has joined #angularjs
[17:47:02] *** goodenough has quit IRC
[17:47:08] <Navai> How does that work though? As in if the page relies on all content being served at the same time for some reason, but it gets delivered in bits and pieces?
[17:47:38] <_ravi_> Remember we are talking about the back-end here, not web pages.
[17:47:41] *** dwayne has quit IRC
[17:47:43] *** cacts has quit IRC
[17:47:52] <Navai> Ahh
[17:47:53] *** VictorBjelkholm has joined #angularjs
[17:47:59] *** mrpj has joined #angularjs
[17:48:08] <_ravi_> In PHP terms for instance, if you do some mysql_query() call, you typically get the results returned, and then you may modify them and do something else.
[17:48:24] *** sonofdirt has quit IRC
[17:48:39] <_ravi_> In NodeJS, the same thing mysql.query('INSERT....', ...) would send the query off but return immediately to you.
[17:48:39] *** jacuqesdancona_ has quit IRC
[17:48:43] <_ravi_> So you do not get the result at the time of calling i.e., your code does not block waiting for the result.
[17:49:02] <_ravi_> I guess I am stepping way past the scope of this chat room, so I will stop with one more bit:
[17:49:53] <_ravi_> the results are returned to you by requesting you to pass a callback function: mysql.query('INSERT....', ..., function(err, result) { if( ! err ) { console.log("Hooray, data inserted!"); });
[17:50:00] *** aendrew has joined #angularjs
[17:50:12] *** djvirgen has joined #angularjs
[17:50:21] *** PrinceAMD has quit IRC
[17:50:37] *** roadrunneratwast has joined #angularjs
[17:50:53] <Navai> hm
[17:50:57] *** kkk1 has quit IRC
[17:51:05] *** poolside has quit IRC
[17:51:08] *** dave_boling has quit IRC
[17:51:16] <Navai> So at the end you have to wait for all callbacks to finish?
[17:51:33] *** Xaleph has joined #angularjs
[17:51:59] *** brandon_ has quit IRC
[17:52:00] *** kirfu has joined #angularjs
[17:52:03] <dmack> or use promises
[17:52:08] *** frobs has quit IRC
[17:52:14] *** jdj_dk has joined #angularjs
[17:52:27] *** jstroem has quit IRC
[17:52:45] *** devhoag has joined #angularjs
[17:52:48] <Navai> hm
[17:52:55] *** jstroem has joined #angularjs
[17:53:08] *** kkk1 has joined #angularjs
[17:53:12] *** poolside has joined #angularjs
[17:53:18] *** caitp has quit IRC
[17:53:28] *** pknordic has joined #angularjs
[17:53:50] *** jstroem has quit IRC
[17:53:59] <_ravi_> right yes. promises let you break that down back to familiar operation sequence: this is not working code but gives you an idea:
[17:54:24] *** Proditor has quit IRC
[17:54:33] <_ravi_> mysql.query('INSERT ...').then(function next_thing).catch(function fail_handler);
[17:54:38] *** _ravi_ has quit IRC
[17:55:08] *** ianpirro has quit IRC
[17:55:18] *** Anton_ has quit IRC
[17:55:29] *** djvirgen1 has joined #angularjs
[17:55:30] <Navai> But wouldn't that lead to just .then nesting?
[17:55:36] <Navai> as in then it becomes sync code, not async
[17:55:57] *** djdrisco has quit IRC
[17:56:18] *** goodenough has joined #angularjs
[17:56:52] *** djvirgen has quit IRC
[17:57:01] *** neilff has quit IRC
[17:57:41] *** \du has quit IRC
[17:57:44] *** pknordic has quit IRC
[17:57:54] *** PrinceAMD has joined #angularjs
[17:58:11] *** ChadStrat has joined #angularjs
[17:58:54] *** AngularUI has joined #angularjs
[17:58:54] <AngularUI> [ng-grid] c0bra pushed 1 new commit to master: http://git.io/0FjGPQ
[17:58:54] <AngularUI> ng-grid/master 8157866 Brian Hann: fix(e2e Tests): Timezone offsets causing failures...
[17:58:54] *** AngularUI has left #angularjs
[17:59:00] *** bostonaholic has joined #angularjs
[17:59:09] *** nenillo has quit IRC
[17:59:42] *** phrozensilver has joined #angularjs
[17:59:54] *** nfroidure has quit IRC
[18:00:00] *** Efrem is now known as Efrem-Away
[18:00:52] *** Joe_knock has joined #angularjs
[18:00:52] *** Joe_knock has joined #angularjs
[18:02:05] *** davidreis has quit IRC
[18:03:02] *** jlebrech has quit IRC
[18:03:12] *** snapwich has joined #angularjs
[18:03:29] *** Anton_ has joined #angularjs
[18:03:49] <jaawerth> anyone using kendo-ui? It claims to have great Angular integration. Considering using this or semantic for a project, since while I've liked Material after playing with it, it's a bit limited in scope at the moment
[18:03:54] <Lewix> so i have a templateUrl: in my directive and i want to pass attributes to it
[18:04:03] *** AngularUI has joined #angularjs
[18:04:03] <AngularUI> [ng-grid] c0bra pushed 2 new commits to master: http://git.io/L6Yz6w
[18:04:03] <AngularUI> ng-grid/master e8bdee9 Dunaevsky Maxim: Update ru.js...
[18:04:03] <AngularUI> ng-grid/master 9366ee8 Brian Hann: Merge pull request #2316 from dunmaksim/patch-1...
[18:04:03] *** AngularUI has left #angularjs
[18:04:17] <Lewix> templateUrl: tempalte(attributes)
[18:04:18] *** neilff has joined #angularjs
[18:04:41] *** loverajoel has joined #angularjs
[18:04:45] *** zumba_addict has quit IRC
[18:05:07] *** AngularUI has joined #angularjs
[18:05:07] <AngularUI> [ng-grid] c0bra closed pull request #2257: Add visibleRowsChanged event for #2038 (master...3.0-visible-rows-event) http://git.io/d2CJRA
[18:05:07] *** AngularUI has left #angularjs
[18:05:08] *** skyx_ has quit IRC
[18:05:46] *** eBureau has quit IRC
[18:06:08] <Sawbones> It seems like angular is completely ok to use if you just want to use it for directives
[18:06:09] <dmack> anyone ever played wth the bindToController syntax when you're directive has a form involved?
[18:06:20] <jaawerth> Lewix: templateUrl: function(tElement, tAttrs) { }
[18:06:27] *** jchamberlain has joined #angularjs
[18:06:51] *** atomical has quit IRC
[18:07:02] <Sawbones> I think 20.701 ms is ok for a load time.
[18:07:46] <Lewix> jaawerth: thanks
[18:07:50] *** Proditor has joined #angularjs
[18:07:50] *** ianpirro has joined #angularjs
[18:07:51] *** atomical has joined #angularjs
[18:08:13] <dmack> like, if my directive already has a controller, how can I require the forms controller which is in the directive?
[18:08:36] *** Sawbones_ has joined #angularjs
[18:08:58] <themime> shared factiry
[18:09:00] <themime> factory
[18:09:32] <themime> through a link method, inject into directive as normal
[18:09:38] <jaawerth> bindToController is for use with controllerAs
[18:09:53] *** jstroem has joined #angularjs
[18:10:05] *** Sadin has joined #angularjs
[18:10:08] *** pushpak has joined #angularjs
[18:10:13] *** diraol has joined #angularjs
[18:10:24] *** dc has joined #angularjs
[18:10:48] <jaawerth> so that isolate scope variables coming like scope: { foo: '=' }, controllerAs: 'ctrl', and then in your directive template you can do ctrl.foo
[18:10:52] *** bradmaxs has joined #angularjs
[18:11:27] *** kapil__ has quit IRC
[18:11:31] <dmack> yeah. I guess in my case I don't really need it for this directive.
[18:11:46] *** Sawbones has quit IRC
[18:12:20] <jaawerth> well, it depends on whether you like controllerAs
[18:12:31] <dmack> I do.
[18:12:56] <dmack> basically I have a table with rows. I created a directive that sits at the bottom that contains a form to add new rowsto this table.
[18:12:57] <jaawerth> personally I think it makes sense to use it (and bindToController). Now if you require that directive from another one, you can access all of its isolate scope vars through its controlelr
[18:13:12] *** Timmy has joined #angularjs
[18:13:22] <dmack> so, directive with form is
[18:13:25] <dmack> <tr product-variant-form></tr>
[18:13:36] *** Timmy is now known as Guest73797
[18:13:47] <dmack> simple template: https://gist.github.com/dmackerman/634ac489bd0529675bf4
[18:13:50] *** simplyshipley has quit IRC
[18:13:53] *** tfennelly has joined #angularjs
[18:14:17] *** dc_ has quit IRC
[18:14:22] <dmack> in that directive, if I wanted to get access to newVariantForm - the controller for it, so I can check $dirty, etc.
[18:14:26] *** panzon has joined #angularjs
[18:14:35] <dmack> what would I require?
[18:14:47] *** roadrunneratwast has quit IRC
[18:15:08] *** jdivock_ has quit IRC
[18:15:22] <jaawerth> you can only require sibling and parent directives
[18:15:43] *** dave_boling has joined #angularjs
[18:15:43] *** Proditor has quit IRC
[18:15:46] <themime> add your directive to that form itself and access it via element
[18:15:46] *** crazybotsmoker is now known as bestzdneirf
[18:15:54] <themime> in the link method
[18:15:56] *** RobinBAwesome has joined #angularjs
[18:16:00] <dmack> yeah. that was my next thought
[18:16:12] <themime> easiest way i think
[18:16:17] <jaawerth> yeah, makes sense
[18:16:24] *** Proditor has joined #angularjs
[18:16:27] <cavallari1> how can I get the ?query=Anything in angular??
[18:16:57] *** tschundeee has quit IRC
[18:17:03] *** roadrunneratwast has joined #angularjs
[18:17:14] <sacho_> angular doesn't really provide anything to help you parse query strings
[18:17:16] *** Proditor has quit IRC
[18:17:17] <sacho_> so use some js lib
[18:17:33] *** fbenoit has quit IRC
[18:17:39] *** Proditor has joined #angularjs
[18:17:44] *** caitp has joined #angularjs
[18:17:45] *** roymiloh has joined #angularjs
[18:17:59] *** mennea has joined #angularjs
[18:18:11] *** zeezey has quit IRC
[18:18:16] *** juanjob has joined #angularjs
[18:18:30] *** RobinBAwesome_ has joined #angularjs
[18:18:32] <cavallari1> what lib u recommend?
[18:18:34] <gladely> use ui-router and define the query string parameters in the $state.
[18:18:51] *** ashish has joined #angularjs
[18:19:01] <ashish> hi
[18:19:16] *** simplyshipley has joined #angularjs
[18:19:49] *** RobinBAwesome_ has quit IRC
[18:19:57] *** RobinBAwesome has quit IRC
[18:20:00] *** RobinBAwesome_ has joined #angularjs
[18:21:13] *** juampy has joined #angularjs
[18:21:44] <dmack> themime: so once I get the form element, how do I get the controller?
[18:21:44] *** elyssonmr has quit IRC
[18:21:48] <dmack> (for the form)
[18:22:03] <Guest73797> Hey, maybe someone could give me a little newbie help. I'm making an app that is centered around a fullpage custom Google map. Is this map a good fit for a custom directive?
[18:22:38] *** juanjob has quit IRC
[18:22:40] <Guest73797> The map itself will be interacted with via a separate sidebar controller
[18:23:08] *** bbankes has joined #angularjs
[18:23:15] *** zeezey has joined #angularjs
[18:23:25] *** ashish has quit IRC
[18:23:32] *** elyssonmr has joined #angularjs
[18:23:35] <Lewix> jaawerth: whats the diff between console.log($location.$$search.id); and routeparams.id
[18:23:51] <Mxyzpltk> Guest73797: there are some already built, https://angular-ui.github.io/angular-google-maps/
[18:23:57] *** tomphp has quit IRC
[18:24:03] *** plato has joined #angularjs
[18:24:37] *** Siyfion has quit IRC
[18:24:53] *** SomeKittens has joined #angularjs
[18:25:05] *** ashish has joined #angularjs
[18:25:15] <ashish> hi
[18:25:38] <ashish> how to start with typescript and angular.js
[18:25:40] *** jdj_dk has quit IRC
[18:25:46] <Guest73797> Mxyzpltk: I've actually been using that directive but because I need custom functionality for my map (dynamically loading markers, geolocation etc.) it has become too complicated to work with
[18:25:58] *** JayFK has quit IRC
[18:26:01] *** sonofdirt has joined #angularjs
[18:26:13] *** JayFK has joined #angularjs
[18:26:40] *** kkk1 has quit IRC
[18:27:19] *** jaznow has quit IRC
[18:27:54] <Mxyzpltk> Guest73797: I used it for a project not long ago and adding dynamic markers was never a problem, geolocation was handled by the browser and a custom control was added to the map
[18:28:06] <burzum2> ashish, well I would start by typing the keywords into the search form on google.com and hitting enter
[18:28:32] *** elyssonmr has quit IRC
[18:28:33] <Mxyzpltk> but if you want to roll your own set of directives and services, you might be in a safer road, ui-map still has issues
[18:28:36] *** WhatsInTheBoks has joined #angularjs
[18:28:43] *** yelvert has joined #angularjs
[18:29:03] *** g33k5z has quit IRC
[18:29:50] *** 64MABCQP9 has joined #angularjs
[18:30:07] *** platonic has quit IRC
[18:30:21] *** Guest0 has joined #angularjs
[18:30:38] *** m8 has quit IRC
[18:30:48] *** Sadin has quit IRC
[18:31:03] *** Guest73797 has quit IRC
[18:31:14] <Navai> Back
[18:31:26] *** davidreis has joined #angularjs
[18:31:28] *** Sadin has joined #angularjs
[18:31:29] *** roadrunneratwast has quit IRC
[18:31:36] *** elyssonmr has joined #angularjs
[18:31:43] *** Sadin has quit IRC
[18:31:50] *** ashish has quit IRC
[18:31:51] *** jillesme has quit IRC
[18:31:58] *** Sadin has joined #angularjs
[18:32:07] *** patrick99e99 has joined #angularjs
[18:32:26] *** merobertsjr has joined #angularjs
[18:32:27] *** eBureau has joined #angularjs
[18:32:50] *** elrabin has quit IRC
[18:33:10] *** tubiz has joined #angularjs
[18:33:13] <Guest0> /exit
[18:33:16] *** jstroem has quit IRC
[18:33:18] *** Guest0 has left #angularjs
[18:33:23] *** Guest0 has joined #angularjs
[18:33:26] *** elrabin has joined #angularjs
[18:33:29] *** Xaleph has quit IRC
[18:33:29] *** phuh has quit IRC
[18:33:56] *** phuh has joined #angularjs
[18:34:01] *** 64MABCQP9 has quit IRC
[18:34:01] *** jstroem has joined #angularjs
[18:34:19] *** jheady has joined #angularjs
[18:35:35] *** Guest0 is now known as tomahony
[18:35:53] *** platonic has joined #angularjs
[18:35:55] *** diosney has joined #angularjs
[18:37:13] *** AlSquirrel has quit IRC
[18:37:20] *** evilaliv3 has quit IRC
[18:37:20] *** juanlas has quit IRC
[18:37:24] *** roadrunneratwast has joined #angularjs
[18:37:30] *** jheady has left #angularjs
[18:38:07] *** jstroem has quit IRC
[18:38:14] *** bestzdneirf is now known as crazybotsmoker
[18:38:14] *** _mtr has joined #angularjs
[18:38:18] <dmack> themime / jaawerth : do you guys prefer controllerAs: 'vm' in your directives?
[18:38:25] *** yelvert has quit IRC
[18:39:00] *** jonathanpglick has joined #angularjs
[18:39:04] *** aendrew has quit IRC
[18:39:16] <icfantv> can anyone think why i might get undefined for myForm.myField.$valid?
[18:39:19] *** sonofdirt has quit IRC
[18:39:25] *** disorder20 has joined #angularjs
[18:39:32] <icfantv> i can see/access myForm.myField in the debugger
[18:39:56] *** yelvert has joined #angularjs
[18:40:28] *** AimerPaddle has joined #angularjs
[18:40:34] *** Anonymous_ has quit IRC
[18:40:40] *** whatadewitt has joined #angularjs
[18:41:33] <whatadewitt> hey y'all... looking for a module that will use localstorage or sessionstorage depending on a user clicking "remember me" when logging in... everything I find seems to be rife with issues on github, so i'm crowdsourcing to see what the community thinks is best.
[18:41:39] *** cbennett has quit IRC
[18:41:39] *** elrabin has quit IRC
[18:41:43] *** MuffinMan` has joined #angularjs
[18:42:00] *** huahax has joined #angularjs
[18:42:16] *** monbro has joined #angularjs
[18:42:50] *** platonic has quit IRC
[18:43:15] <stillbourne> whatadewitt, https://github.com/grevory/angular-local-storage
[18:43:21] *** zeezey has quit IRC
[18:43:24] <stillbourne> I've had no issues with that
[18:43:33] *** Sontakey has quit IRC
[18:43:56] *** elyssonmr has quit IRC
[18:44:03] *** jagga has quit IRC
[18:44:49] *** nabdev has quit IRC
[18:45:17] *** mzabriskie has quit IRC
[18:45:21] *** jdj_dk has joined #angularjs
[18:45:27] *** sebhoss has joined #angularjs
[18:45:30] *** KushS_ has quit IRC
[18:45:30] *** aendrew has joined #angularjs
[18:45:35] *** yelvert has quit IRC
[18:45:35] *** Aswebb_ has joined #angularjs
[18:45:36] <whatadewitt> stillbourne: nice to know as that's what i've been using... but how do i handle session only data?
[18:46:10] <whatadewitt> oh my
[18:46:16] <whatadewitt> setStorageType
[18:46:19] <whatadewitt> *sigh*
[18:46:19] *** jdivock_ has joined #angularjs
[18:46:31] <whatadewitt> just had a baby, excuse my mental fogginess
[18:47:52] *** cliluw has quit IRC
[18:47:55] *** mzabriskie has joined #angularjs
[18:48:02] *** tfennelly has quit IRC
[18:48:04] *** jareddlc has joined #angularjs
[18:48:25] *** kentcdodds has joined #angularjs
[18:48:31] *** platonic has joined #angularjs
[18:48:31] *** elliotstokes has quit IRC
[18:48:35] <stillbourne> yup no worries
[18:48:38] *** yelvert has joined #angularjs
[18:48:40] *** lw has joined #angularjs
[18:49:12] <kentcdodds> I need help naming something epic
[18:49:30] <kentcdodds> I have a notification service that shows notifications to the user
[18:49:43] <kentcdodds> Sometimes it'll show a bunch of notifications at once
[18:50:01] <oniijin> not-bukkake
[18:50:05] <kentcdodds> I want to have something that will silence all the other notifications
[18:50:06] <stillbourne> notarrhea
[18:50:07] <kentcdodds> and show only one
[18:50:08] *** tschundeee has joined #angularjs
[18:50:18] *** sebhoss has quit IRC
[18:50:18] *** Caroga_afk is now known as Caroga
[18:50:26] <kentcdodds> So it's like a master notification
[18:50:33] <kentcdodds> Gotta be epic
[18:50:42] *** yelvert_ has joined #angularjs
[18:50:46] *** walden is now known as walden|brb
[18:50:47] <stillbourne> notarrhea is the best I can come up with
[18:50:57] *** jdivock_ has quit IRC
[18:51:15] *** frankblizzar has quit IRC
[18:51:17] <stillbourne> like diarrhea butt with notifications...
[18:51:27] *** yelvert has quit IRC
[18:51:32] *** ehynds has joined #angularjs
[18:51:40] <stillbourne> yeah its a little shitty I guess
[18:51:41] *** Sebastien-L has quit IRC
[18:51:47] <kentcdodds> hmmm... not sure I'm catching the vision stillbourne
[18:51:50] <kentcdodds> :P
[18:52:01] <stillbourne> nevermind it was a crap idea
[18:52:02] *** macabre has joined #angularjs
[18:52:04] *** tschunde_ has joined #angularjs
[18:52:21] *** mkulke has joined #angularjs
[18:52:28] *** ngbot has joined #angularjs
[18:52:29] <ngbot> [angular.js] vojtajina created travis-both-sl-bs (+1 new commit): http://git.io/5RO7Pw
[18:52:29] <ngbot> angular.js/travis-both-sl-bs 8a907eb Vojta Jina: chore(travis): run the build twice (BS and SL)...
[18:52:29] *** ngbot has left #angularjs
[18:52:59] *** woah has joined #angularjs
[18:53:04] <mkulke> hello, there. i want to 'require' a parent controller in my directive and also have my own
[18:53:08] <mkulke> how would i do this?
[18:53:38] <kentcdodds> Got it, I'm going to do balrog
[18:53:45] <kentcdodds> notify.balrog('I am your master')
[18:53:56] *** night-owl is now known as zz_night-owl
[18:54:33] <stillbourne> mkulke, ui-router allows you to have nested states that can access the parent scope from the previous controller.
[18:54:53] *** tschundeee has quit IRC
[18:55:01] *** jdivock_ has joined #angularjs
[18:55:07] *** jacuqesdancona_ has joined #angularjs
[18:55:07] *** iisjreg has joined #angularjs
[18:55:13] *** cliluw has joined #angularjs
[18:55:13] <stillbourne> mkulke, https://github.com/angular-ui/ui-router/wiki/Nested-States-%26-Nested-Views
[18:55:24] <mkulke> stillbourne: thanks, but i don't want to use $scope for directive to controller communication
[18:55:29] *** SargoDarya has joined #angularjs
[18:55:49] *** IvailoStoianov has quit IRC
[18:55:49] <mkulke> i could also inject a service, but this seem like serious overkill to me
[18:56:04] *** Una_ has quit IRC
[18:56:15] *** {DV8} has joined #angularjs
[18:56:18] <mkulke> i know there is require: ['^parentCtrl1', '^parentCtrl2']
[18:56:45] *** tschunde_ has quit IRC
[18:56:49] <mkulke> but i want to have my own controller *and* a parent controller
[18:57:05] *** zz_night-owl is now known as night-owl
[18:57:13] *** kirfu has quit IRC
[18:57:20] *** ggrzybek has joined #angularjs
[18:57:25] <iisjreg> Hi, I have a quick noob question - how could I call a function that is within a controller from javascript? i.e. in the same way as a ng-click="" would? Thanks
[18:57:33] *** Sebastien-L has joined #angularjs
[18:57:55] *** chachan has joined #angularjs
[18:57:55] <ctanga> as far as i know, require: requires a parent *directive* and supplies that *directive*’s controller to the link fn
[18:58:19] <BahamutWC|Work> require requires a parent directive’s controller
[18:58:29] <mkulke> i know
[18:58:29] *** VictorBjelkholm has quit IRC
[18:58:43] <mkulke> but can i still have 'controller: function ...' in my directive
[18:58:46] <mkulke> ?
[18:58:54] *** elyssonmr has joined #angularjs
[18:58:54] <mkulke> and what is the order of arguments in $link then?
[18:59:02] <whatadewitt> stillbourne: is there a way for me to easily change from localstorage to session storage depending on what a user has selected on my login screen? (the login screen is part of the angular app)
[18:59:12] *** dave_boling has quit IRC
[18:59:12] *** tristanp has quit IRC
[18:59:17] *** Anton_ has quit IRC
[18:59:24] *** jdivock_ has quit IRC
[18:59:54] *** jacuqesdancona_ has quit IRC
[19:00:44] <stillbourne> whatadewitt, I think so I remember seeing some code for doing just that JWT auth against a rest service where if the user didn't have remember me checked it would store token data in session storage not local storage.
[19:00:53] *** loverajoel has quit IRC
[19:00:58] *** elrabin has joined #angularjs
[19:01:01] *** MuffinMan` has quit IRC
[19:01:12] *** vectra has quit IRC
[19:01:14] <stillbourne> trying to find the code examples
[19:01:19] <whatadewitt> thanks!
[19:01:25] *** tristanp has joined #angularjs
[19:01:30] *** jMyles has joined #angularjs
[19:01:32] *** OddDuck has joined #angularjs
[19:02:24] *** dcherman has joined #angularjs
[19:02:48] *** SargoDarya has quit IRC
[19:02:50] *** dcherman2 has quit IRC
[19:02:53] *** bostonaholic has quit IRC
[19:03:21] *** ron1 has quit IRC
[19:03:44] *** ehynds has quit IRC
[19:04:22] *** JayFK has quit IRC
[19:04:30] *** jdj_dk has quit IRC
[19:04:33] *** Efrem-Away is now known as Efrem
[19:04:52] *** walden|brb is now known as walden
[19:05:20] *** iisjreg has quit IRC
[19:05:26] *** AlexW2611 has quit IRC
[19:05:38] *** goodenough has quit IRC
[19:05:40] *** aendrew has quit IRC
[19:05:55] <stillbourne> whatadewitt, sorry I'm not finding it and I removed that part from the code I have on my project. Sorry.
[19:06:01] *** aendrew has joined #angularjs
[19:06:11] <whatadewitt> no worries, i'll keep poking around
[19:06:11] *** goodenough has joined #angularjs
[19:06:20] *** MistahKurtz has quit IRC
[19:06:29] *** wallerdev has joined #angularjs
[19:06:38] *** MaxV has quit IRC
[19:06:44] *** dacuca has quit IRC
[19:06:45] *** jsheely|ltop has joined #angularjs
[19:06:51] *** Una has joined #angularjs
[19:07:09] *** ninjaparade has joined #angularjs
[19:07:10] *** aendrew has quit IRC
[19:07:12] *** vectra has joined #angularjs
[19:07:18] *** Anton_ has joined #angularjs
[19:07:25] *** monbro has quit IRC
[19:07:35] *** tangorri has quit IRC
[19:07:46] *** zemanel has quit IRC
[19:07:52] *** opiates has joined #angularjs
[19:08:05] *** Anton_ has quit IRC
[19:08:14] *** night-owl is now known as zz_night-owl
[19:08:33] *** aliocha has quit IRC
[19:08:37] *** roadrunneratwast has quit IRC
[19:08:57] *** IvailoStoianov has joined #angularjs
[19:09:28] *** mak`` has quit IRC
[19:09:41] *** sonofdirt has joined #angularjs
[19:09:46] *** lsiv568 has joined #angularjs
[19:09:58] <djvirgen1> Anyone have any tips for getting Google AdSense to work properly in an Angular SPA?
[19:10:36] *** roadrunneratwast has joined #angularjs
[19:10:43] <BahamutWC|Work> djvirgen1: heh, interesting coincidence, someone was talking to Igor and Brad on Tuesday night about AdSense not working with Angular
[19:10:45] *** goodenough has quit IRC
[19:11:55] <djvirgen1> oh, so ads are no-go for now?
[19:12:15] *** djvirgen1 is now known as djvirgen
[19:12:28] *** lsiv568 has quit IRC
[19:12:52] *** mzabriskie has quit IRC
[19:13:32] *** Sky[x] has joined #angularjs
[19:13:38] *** debunk has joined #angularjs
[19:14:25] *** ngbot has joined #angularjs
[19:14:25] <ngbot> [angular.js] vojtajina merged travis-both-sl-bs into master: http://git.io/-Ay11Q
[19:14:25] *** ngbot has left #angularjs
[19:14:28] *** lw has quit IRC
[19:15:02] *** swist has joined #angularjs
[19:15:12] *** guilbep has quit IRC
[19:15:32] *** tfennelly has joined #angularjs
[19:15:39] *** g33k5z has joined #angularjs
[19:15:41] <icfantv> ugh. plnkr is still down
[19:15:43] *** OnkelTem has quit IRC
[19:16:01] *** D9 has quit IRC
[19:16:02] <cavallari1> Hi
[19:16:08] <dmack> mkulke: scope, element, attrs, [ctrl]
[19:16:09] <cavallari1> is there anyway to trigger an event in angular??
[19:16:13] *** Anton_ has joined #angularjs
[19:16:17] <mkulke> dmack: thanks, i found out
[19:16:18] <dmack> cavallari1: what kind of evnt?
[19:16:21] *** lele has joined #angularjs
[19:16:25] <cavallari1> Just like jQuery $('#element').trigger('event');
[19:16:25] *** dannyc has quit IRC
[19:16:33] <dmack> yes.
[19:16:39] <cavallari1> how can it be done?
[19:16:39] *** AlSquire has joined #angularjs
[19:16:42] <dmack> $broadcast / $emit
[19:16:53] <cavallari1> wich one is better?
[19:17:02] <dmack> broadcast goes down child scopes, emit goes up
[19:17:06] *** OnkelTem has joined #angularjs
[19:17:24] *** dannyc has joined #angularjs
[19:17:24] <dmack> and you listen for the events with $on
[19:17:29] <dmack> docs here: https://docs.angularjs.org/api/ng/type/$rootScope.Scope
[19:17:37] <cavallari1> I am reading it
[19:17:49] <cavallari1> can I emit an event from a factory?
[19:17:53] <dmack> depending, you can probably do wht you want without events.
[19:18:17] *** bengillies has quit IRC
[19:18:24] <dmack> what's your use case?
[19:18:39] *** stormbytes has joined #angularjs
[19:18:46] *** startupality has quit IRC
[19:19:03] *** jdivock_ has joined #angularjs
[19:19:07] *** conan_the_destro has quit IRC
[19:19:32] *** _mtr has quit IRC
[19:19:45] *** Anton_ has quit IRC
[19:20:02] *** blicero has joined #angularjs
[19:20:21] *** sinclair has quit IRC
[19:20:25] *** conan_the_destro has joined #angularjs
[19:20:28] <cavallari1> I want to create a webchat using Websocket
[19:20:41] <cavallari1> and want to create custom events from the Webchat factory
[19:20:46] *** aendrew has joined #angularjs
[19:20:56] <cavallari1> like Webchat.$on('nickname_change',...
[19:21:01] *** yelvert_ has quit IRC
[19:21:28] *** yelvert has joined #angularjs
[19:21:32] <dmack> https://github.com/gdi2290/angular-websocket
[19:21:34] *** yelvert has joined #angularjs
[19:21:52] *** JohnBat26 has quit IRC
[19:21:52] *** aendrew has quit IRC
[19:21:58] *** ron1 has joined #angularjs
[19:22:12] <cavallari1> dmack: I am studing and learning
[19:22:29] <cavallari1> so for now I dont want a ready solution
[19:22:34] <dmack> ok :)
[19:22:35] <cavallari1> but thanks anyway
[19:22:42] *** matheuslc has joined #angularjs
[19:22:42] *** yelvert has quit IRC
[19:22:43] <dmack> soyes, you have to use events in your case.
[19:22:59] *** jlambert121 has joined #angularjs
[19:23:01] <cavallari1> yes, that´s what I want to learn now
[19:23:08] *** yelvert has joined #angularjs
[19:23:14] <cavallari1> I am studing on my own example
[19:23:14] *** kakashiAL has joined #angularjs
[19:24:03] *** epantzar has joined #angularjs
[19:24:24] *** tfennelly has quit IRC
[19:24:34] *** mzabriskie has joined #angularjs
[19:24:43] *** rhp has joined #angularjs
[19:24:45] *** ProLoser has joined #angularjs
[19:25:01] *** KushS has joined #angularjs
[19:25:23] *** juanlas has joined #angularjs
[19:25:54] *** aslate has quit IRC
[19:26:12] *** epantzar has quit IRC
[19:27:50] *** Anton_ has joined #angularjs
[19:28:29] *** azizur has quit IRC
[19:28:40] *** g33k5z has quit IRC
[19:28:41] <xxMatiasFxx> dmack, I made the change you suggested, but I realized this does not solve my problem. My problem is this, I have a couple of directives we ask the designers to use. Those directives always need to access to an object "languages" in the main view. But I don't want to add the attribute to every directive they use inside the view. I want the view to inject in the directive scope the data of languages object. I could do sc
[19:28:41] <xxMatiasFxx> ope : false, but I don't want the directive to have access to all the data in the View, just wanna inject "languages" object
[19:28:54] *** stephanbuys has joined #angularjs
[19:29:06] *** g33k5z has joined #angularjs
[19:29:09] <dmack> just inject it into the high level directive then?
[19:29:22] *** ProLoser has quit IRC
[19:29:25] *** tristanp has quit IRC
[19:29:36] *** jasonp has quit IRC
[19:29:41] <dmack> or, why don't you set that in a service, and when your sub-directives boostrap, just say language = LanguageService.getActiveLanguage()
[19:29:43] <dmack> or something
[19:29:50] *** KushS has quit IRC
[19:30:03] <dmack> (that'd be in the link function of your sub-directives)
[19:30:16] *** nerder has quit IRC
[19:30:28] <busticated> hi all - anyone have any tips for debugging karma js connection issues? karama takes forever to connect to PhantomJS (chrome too but not as bad), often never connects.
[19:30:39] *** dcherman has quit IRC
[19:30:48] *** amortimer has joined #angularjs
[19:30:50] <xxMatiasFxx> dmack, what do you mean by inject it into the high level directive ?
[19:31:00] <dmack> your container directive, takes in data
[19:31:10] *** jasonp has joined #angularjs
[19:31:12] <dmack> <container language="languageData"> ... sb direciteves can now access it.
[19:31:32] *** amortimer has left #angularjs
[19:31:42] *** dcherman has joined #angularjs
[19:32:10] <xxMatiasFxx> good
[19:32:12] <xxMatiasFxx> hehe
[19:33:09] *** plex0r has joined #angularjs
[19:33:25] *** g33k5z has quit IRC
[19:33:31] *** phuh has quit IRC
[19:33:57] *** phuh has joined #angularjs
[19:33:59] *** monk12 has quit IRC
[19:34:00] *** sonofdirt has quit IRC
[19:34:07] *** intellix has quit IRC
[19:34:23] *** OnkelTem has quit IRC
[19:34:43] *** DarrenCraig has quit IRC
[19:36:25] *** JERE has quit IRC
[19:36:28] *** startupality has joined #angularjs
[19:36:53] *** g33k5z has joined #angularjs
[19:37:09] *** OnkelTem has joined #angularjs
[19:37:28] *** thomasreggi has joined #angularjs
[19:37:47] <xxMatiasFxx> dmack, but that won't work with isolated scopes right ?
[19:38:00] *** Joe_knock has left #angularjs
[19:38:16] <dmack> at that point, you're subdirectives dont need to be isolated
[19:38:22] *** MistahKurtz has joined #angularjs
[19:38:26] <dmack> it depends on what other data they need.
[19:38:45] <dmack> if it's all just bootstrapped by "language", set it once and let it trickle down
[19:39:03] <dmack> and use attributes on the directives to handle any styling, etc.
[19:39:13] <dmack> not everything needs to be isolate ncessarily
[19:39:23] *** startupality has quit IRC
[19:39:38] *** d4rklit3 has joined #angularjs
[19:40:09] *** loverajoel has joined #angularjs
[19:40:26] *** mkulke has quit IRC
[19:41:10] *** AlexW2611 has joined #angularjs
[19:41:38] *** jaznow has joined #angularjs
[19:41:49] *** doginal has joined #angularjs
[19:42:15] *** pknordic has joined #angularjs
[19:43:04] *** Anton_ has quit IRC
[19:43:07] *** yelvert has quit IRC
[19:43:13] *** joshontheweb has joined #angularjs
[19:43:32] *** lsiv568 has joined #angularjs
[19:45:10] <stormbytes> what's the difference btween $cookies and $cookieStore ?
[19:45:15] *** davi has joined #angularjs
[19:45:15] *** davi has joined #angularjs
[19:45:55] *** jheady1 has joined #angularjs
[19:46:07] *** jdivock_ has quit IRC
[19:47:24] *** pknordic has quit IRC
[19:47:29] *** elyssonmr has quit IRC
[19:47:32] *** mennea has quit IRC
[19:48:08] *** mennea has joined #angularjs
[19:49:28] *** frem has joined #angularjs
[19:50:07] *** vicTROLLA has quit IRC
[19:50:08] *** roadrunneratwast has quit IRC
[19:50:22] *** isabellatromba has joined #angularjs
[19:50:29] *** amphetamines has joined #angularjs
[19:50:48] *** kas84 has quit IRC
[19:50:55] *** lsiv568 has quit IRC
[19:51:16] *** Anton_ has joined #angularjs
[19:51:27] *** elyssonmr has joined #angularjs
[19:52:03] *** tschundeee has joined #angularjs
[19:52:09] *** GeneralChoomin has quit IRC
[19:52:38] *** jaznow has quit IRC
[19:53:24] *** opiates has quit IRC
[19:53:33] *** frem_ has joined #angularjs
[19:53:37] *** TheDreamIsReal has joined #angularjs
[19:54:11] *** BrianTheAss has joined #angularjs
[19:54:25] *** mary5030_ has joined #angularjs
[19:54:25] *** lsiv568 has joined #angularjs
[19:54:34] *** mary5030 has quit IRC
[19:54:36] *** mary5030_ has quit IRC
[19:55:04] *** roadrunneratwast has joined #angularjs
[19:55:15] *** frem has quit IRC
[19:55:15] *** frem_ is now known as frem
[19:55:17] *** mary5030 has joined #angularjs
[19:55:42] *** jdcasey has joined #angularjs
[19:55:47] *** renlo has joined #angularjs
[19:55:49] <renlo> whats the name of the design pattern for making it so that a front-end application’s state is always reflected in the url? I thought it was calle d the anchor design pattern, but i cant find it anywhere
[19:56:00] *** Xaleph has joined #angularjs
[19:56:18] *** marr has quit IRC
[19:56:49] <BrianTheAss> I think this is an easy question, I have a call that is $http.get(globalObj.auth) globalObj.auth holds the url being called. In FF this call works all the time, but in IE is seems like there is a cache, do I need to change my call to $http.get(globalObj.auth + '?' + Date.now()) to prevent browser caching?
[19:56:57] *** tschundeee has quit IRC
[19:58:02] *** Una has quit IRC
[19:58:10] <dmack> stormbytes: cookieStore is moe like a localStorage get/set
[19:58:20] <dmack> $cookies just gives you straight up access?
[19:58:33] <stormbytes> to values already written by cookieStore?
[19:58:39] <stormbytes> err.. $cookieStore
[19:58:54] <BahamutWC> BrianTheAss: IE doesn't cache by normal I believe
[19:59:09] *** mica has joined #angularjs
[19:59:11] <BahamutWC> sounds like something else might be at play
[19:59:16] *** jeremymarc has joined #angularjs
[19:59:34] <BahamutWC> if you need to do query params, do $http.get(url, { params: { ... }})
[19:59:38] *** Una has joined #angularjs
[19:59:46] *** mica has left #angularjs
[20:00:27] *** ali4ever4 has quit IRC
[20:00:38] *** Xaleph has quit IRC
[20:00:40] <BrianTheAss> BahamutWC, I thought so too. So I put in loggin on the script, and I check the IIS logs. I can see the call being made at the browser, but the server will see the FF caller, but not the IE caller, unless I refresh the browser, then I see the first, but not the subsequent.
[20:00:53] *** kirfu has joined #angularjs
[20:01:14] <BrianTheAss> BahutWC, I really need to get into the habit of using param: :) thx for the reminder.
[20:01:19] <renlo> anyone? the name for the design pattern where the applications state is always in the url? ex: when you view a detail for a some resource called blah, front end app updates path to /blah/detail
[20:01:21] <BahamutWC> np
[20:01:34] *** davidreis has quit IRC
[20:01:38] <xxMatiasFxx> dmack, Im having some troubles still. I have one parent directive with the languages object, and I have subdirectives. I set scope : false / true in the subdirectives, I cant set extra data on them like "label". This is driving me mad. Is there a way to solve this rather than using "link" ?
[20:01:39] <BahamutWC> not sure what could be wrong, never encountered that before - haven't had those type of issues with IE
[20:02:07] <BrianTheAss> renlo, sorry, not me.
[20:02:07] *** bostonaholic has joined #angularjs
[20:02:14] *** zz_night-owl is now known as night-owl
[20:02:38] <BrianTheAss> BahmautWC, I know, this has topped my wierd list at the moment.
[20:03:10] <BrianTheAss> If I figure this out, It will go on stack overflow.
[20:03:21] *** jheady has joined #angularjs
[20:03:38] *** farn5w0rth has joined #angularjs
[20:03:42] *** baweaver has joined #angularjs
[20:04:05] *** Somatt_wrk has quit IRC
[20:04:18] *** mchapman has quit IRC
[20:04:27] *** jmverges has joined #angularjs
[20:04:30] *** jillesme has joined #angularjs
[20:04:50] *** Xaleph has joined #angularjs
[20:05:11] <dmack> xxMatiasFxx: you dont need scope: false, but yeah
[20:05:18] <dmack> you'll need to use link. what's wron with link?
[20:05:19] *** jdummy has joined #angularjs
[20:05:20] *** ciwolsey has joined #angularjs
[20:05:36] *** eBureau has quit IRC
[20:05:56] *** tonyhb has joined #angularjs
[20:06:05] *** ryst has quit IRC
[20:06:08] <xxMatiasFxx> dmack, why can't my sub directives have their own copy of the parent scope, and allow me to pass attributes to the scope ?
[20:06:15] *** denysonique has quit IRC
[20:06:22] <jdummy> Is there an easy way to compile a dynamic template just once? I don't need 2-way binding, I just need to parse a template for printing purposes.
[20:06:27] *** jheady1 has quit IRC
[20:06:41] <jdummy> I've been trying to make it work with $compile, but I keep hitting walls.
[20:06:41] <dmack> what do you mean copy of scope?
[20:07:11] *** doginal has quit IRC
[20:07:21] <xxMatiasFxx> sorry, I expressed incorrectly, i mean prototipal inheritance
[20:07:47] *** siddart has quit IRC
[20:07:56] <dmack> your subdirectives will inherit, are they not?
[20:08:02] *** andrewvee has joined #angularjs
[20:08:07] <xxMatiasFxx> dmack, I should be able to set "languages" to the parent directive and so to all sub directives, and to each subdirective set an attribute "label"
[20:08:29] *** mtsr has joined #angularjs
[20:08:29] *** bradmaxs has quit IRC
[20:08:40] <dmack> yes
[20:08:55] <dmack> whats not working?
[20:09:16] <xxMatiasFxx> I have a directive called <panel> and inside I have <detail>, panel has an object "languages" which I want detail to have without setting the attribute for each <detail> I add. But to the <detail> I need to set a label also. How to accomplish this?
[20:09:41] *** Lewix has quit IRC
[20:09:44] <diraol> friends, I'm trying to change the "url" after a function is executed? I've tried $location.path('...'), but it seems to do nothing...
[20:10:01] *** elrabin_ has joined #angularjs
[20:10:02] *** Sadin has quit IRC
[20:10:07] <BobbieBarker_> xxMatiasFxx: use your scope : {} on the directive to pass down what you need
[20:10:08] *** juanpablo__ has joined #angularjs
[20:10:13] *** jheady has left #angularjs
[20:10:13] <BobbieBarker_> google isolate scopes
[20:10:31] <xxMatiasFxx> BobbieBarker_, If I do that, I need to set languages to each sub directive
[20:10:32] *** Lewix has joined #angularjs
[20:10:32] *** Lewix has joined #angularjs
[20:10:39] <Navai> Is there anything like lorem ipsum but for REST?
[20:10:53] *** yelvert has joined #angularjs
[20:11:13] *** isabellatromba has quit IRC
[20:11:15] *** elrabin has quit IRC
[20:11:16] *** platonic has quit IRC
[20:11:22] <oniijin> http://baconipsum.com/api/
[20:11:29] <oniijin> your google is weak
[20:11:48] *** siddart has joined #angularjs
[20:11:51] <xxMatiasFxx> I want to do <panel languages="..."> <detail label="...">stuff</detail> <detail label="blah">more stuff</detail></panel> but detail must have the languages set also, without adding the attribute to each
[20:12:02] *** Aliks has joined #angularjs
[20:12:12] <Navai> oniijin: Cheers
[20:12:43] <dmack> xxMatiasFxx: in the link function of your <detail>, console.log(scope)
[20:12:57] <dmack> you'll hve access to whtever you passed into <panel>
[20:12:57] *** sigurding has joined #angularjs
[20:12:57] *** jillesme has quit IRC
[20:12:58] *** rud has joined #angularjs
[20:13:00] <BobbieBarker_> but there isn't a 1:1 relationship between the languages on the panel and the languages on the detail?
[20:13:01] <xxMatiasFxx> yeah dmack, I know I can do it with link
[20:13:21] <dmack> you want it to just auto translate for you? confused as to what you're looking for
[20:13:26] <xxMatiasFxx> BobbieBarker_, detail must be able to know what languages are set in the panel
[20:13:32] *** tristanp has joined #angularjs
[20:13:34] *** Sebastien-L has quit IRC
[20:13:42] <BobbieBarker_> so why not just do 2 way data binding and pass it in again?
[20:14:00] <dmack> keep in mind we have no idea what "languages" is
[20:14:01] <BobbieBarker_> you can configure the langauges on the detail directive from the panel directive doin gthat
[20:14:07] *** bePolite has joined #angularjs
[20:14:08] *** juanpablo_ has quit IRC
[20:14:09] <BobbieBarker_> it turns the panel directive into like a meta directive
[20:14:09] <BrianTheAss> oniijin. that is a great site. Thx for sharing. :D
[20:14:14] *** night-owl is now known as zz_night-owl
[20:14:16] *** lw has joined #angularjs
[20:14:19] <bePolite> How do I write angularJs variables in web2py
[20:14:44] *** zackiv31 has joined #angularjs
[20:15:10] *** _mtr has joined #angularjs
[20:15:12] *** Sontakey has joined #angularjs
[20:15:21] *** snurfery has joined #angularjs
[20:15:49] *** dcherman2 has joined #angularjs
[20:16:29] <BahamutWC> bePolite: Angular is separate from the backend - it has no opinions on that
[20:16:29] *** JERE has joined #angularjs
[20:16:51] <BahamutWC> as long as the backend exposes a good set of APIs, angular consumes data through them
[20:16:52] *** pushpak_ has joined #angularjs
[20:16:55] *** nfroidure has joined #angularjs
[20:17:00] <bePolite> eg if i write an angular js variable like {{hello}}, web2py tends to interprete it as python
[20:17:21] *** pushpak_ has quit IRC
[20:17:36] *** mennea has quit IRC
[20:17:40] *** tomahony has quit IRC
[20:17:43] <snurfery> bePolite: there's normally a tag to turn that off in your template
[20:17:48] *** dcherman has quit IRC
[20:17:50] <snurfery> like in django it's {% verbatim %}
[20:17:54] *** Sontakey has left #angularjs
[20:18:11] *** mennea has joined #angularjs
[20:18:12] <snurfery> and henceforth it won't try to mess with your {{ vars }}
[20:18:13] <BahamutWC> bePolite: https://docs.angularjs.org/api/ng/provider/$interpolateProvider
[20:18:13] *** tristanp has quit IRC
[20:18:16] *** pushpak has quit IRC
[20:18:22] <xxMatiasFxx> BobbieBarker_, If i do 2 way data binding, I need to add languages= to every single <detail> directive I use
[20:18:34] <BahamutWC> or that - mixing server-side and client-side templating can be dangerous though, so be careful
[20:18:41] <BobbieBarker_> no you don't
[20:18:58] <BobbieBarker_> if you don't need the langauges attr on a detail directive then don't add it
[20:19:01] *** japhar81 has quit IRC
[20:19:09] <xxMatiasFxx> BobbieBarker_, I need it
[20:19:17] *** doug64k has joined #angularjs
[20:19:24] *** DoubleAW has joined #angularjs
[20:19:27] <xxMatiasFxx> I need to be able to access languages from inside detail
[20:19:28] *** juanpablo__ has quit IRC
[20:19:39] *** juanpablo_ has joined #angularjs
[20:19:42] *** jonasliljestrand has joined #angularjs
[20:19:47] <bePolite> snurfery: In web2py, variables are given in the same syntax as angularjs ie {{ variable }}
[20:19:55] <xxMatiasFxx> but I don't want to add the attribute to every detail, because it will always be the same, it will be the languages set in the <panel> directive
[20:19:56] <dmack> {{ languages }} in your <detail> template.
[20:19:57] *** _mtr has quit IRC
[20:19:57] <dmack> it'll be there
[20:20:10] <dmack> have you tried it?
[20:20:22] <dmack> need to see code to help you
[20:21:29] <stephanbuys> hi all, is there a good reference to isolate scope to review? I'm having all sorts of cross-controller issues and finding it near impossible to trace, but at the same time I'm not managing with a totally isolated scope
[20:21:45] <BobbieBarker_> stephanbuys: egghead.io has 3 videos on isolate scope that i believe are free to view
[20:22:04] <snurfery> bePolite: I know, same in django ;)
[20:22:27] *** jonasliljestrand has quit IRC
[20:22:28] <stephanbuys> BobbieBarker_: yeah, I've watched them, I guess I need to do so again
[20:22:31] *** tfennelly has joined #angularjs
[20:22:34] *** tonyhb has quit IRC
[20:22:39] <BobbieBarker_> never hurts
[20:22:46] <BobbieBarker_> but imo those are the best resources on isolate scope
[20:23:11] *** zackiv31 has quit IRC
[20:23:29] *** SinceSidSlid has quit IRC
[20:24:06] *** AlexW2611 has quit IRC
[20:24:19] *** sheplu has joined #angularjs
[20:24:59] *** cbennett has joined #angularjs
[20:25:16] <snurfery> bePolite: nm, I guess web2py doesn't have that feature even though other people are asking for it. They said the only way is to either a) change the delimiter used by web2py or b) change the delimiter used by angular (ref https://www.mail-archive.com/web2py at googlegroups dot com/msg128988.html)
[20:25:26] *** jstroem has joined #angularjs
[20:25:32] <bePolite> BahamutWC: I think I will go with your solution. Thanks
[20:25:56] *** pilva2 has joined #angularjs
[20:26:17] *** kirfu has quit IRC
[20:27:19] *** Lewix has quit IRC
[20:28:16] *** kirfu has joined #angularjs
[20:28:41] <BahamutWC> np
[20:28:55] *** prbc has joined #angularjs
[20:29:08] *** zackiv31 has joined #angularjs
[20:29:42] *** ChadStrat has quit IRC
[20:29:55] *** pilva1 has quit IRC
[20:29:59] *** nfroidure has quit IRC
[20:30:08] <jdummy> I need to provide user modifiable templates in my app... to not reinvent the wheel I assumed I could just use angular's templating. Not so simple.
[20:30:26] <jdummy> Is there an easy way in angular to just throw a template against an object and have it parsed?
[20:30:28] *** elyssonmr has quit IRC
[20:30:30] *** Navai has quit IRC
[20:30:33] *** roadrunneratwast has quit IRC
[20:31:06] *** elyssonmr has joined #angularjs
[20:31:27] <BahamutWC> jdummy: that sounds like you may have to create your own template builder
[20:31:29] *** tristanp has joined #angularjs
[20:31:40] *** ries has quit IRC
[20:32:09] <jdummy> BahamutWC: you mean the UI? or the entire templating system?
[20:32:27] *** t1mmen has quit IRC
[20:32:45] *** bradmaxs has joined #angularjs
[20:32:52] *** TheAceOfHearts has joined #angularjs
[20:33:05] *** jdivock_ has joined #angularjs
[20:33:30] *** Sadin has joined #angularjs
[20:33:33] *** phuh has quit IRC
[20:33:40] *** ggrzybek has quit IRC
[20:33:42] <jdummy> BahamutWC: I've created the UI already, but for simplicity sake, if I just wanted to provide the user with a textarea... how can I take a string like "Hello, {{user}}" and an object like {"user":"Bob"} and mash them together for one-time printing purposes?
[20:33:54] <jdummy> I don't need 2-way binding or anything, just a parsed html string
[20:33:59] *** xxMatiasFxx has quit IRC
[20:34:00] *** phuh has joined #angularjs
[20:34:11] *** sebhoss has joined #angularjs
[20:34:37] <jdummy> I've been tring with $compile, but I'm starting to think it's not what I need
[20:35:00] <BahamutWC|Work> $parse(string)($scope, { user: ‘Bob’ }) or something like that
[20:35:42] <jdummy> BahamutWC|Work: I tried with $parse, but it only seems to work on a single angular expression... the text between a pair of {{ }}
[20:36:07] <jdummy> $compile is what is used for the entire template, but it wants DOM nodes
[20:36:27] <jdummy> I thought this would be easy, but it's starting to seem like a much bigger task :(
[20:36:31] *** dacuca has joined #angularjs
[20:36:41] *** aslate has joined #angularjs
[20:36:43] <jdummy> unles I'm misunderstanding something
[20:36:54] <BahamutWC> $interpolate?
[20:37:01] *** epantzar has joined #angularjs
[20:37:02] *** xxMatiasFxx has joined #angularjs
[20:37:15] *** chr1stopher has quit IRC
[20:37:31] *** platonic has joined #angularjs
[20:37:35] <themime> dmack: little late reply but i do prefer vm. now - i didn't before but now that im used to it i think its more versatile
[20:37:55] <dmack> themime: yeah. I have a hard time coming up with names that make sense also, hah
[20:38:38] *** sebhoss has quit IRC
[20:39:09] *** cbennett has quit IRC
[20:39:24] *** stephen has joined #angularjs
[20:39:27] *** sheplu has quit IRC
[20:39:47] *** kirfu has quit IRC
[20:39:53] *** shampine has joined #angularjs
[20:39:53] *** shampine has joined #angularjs
[20:39:59] *** sonofdirt has joined #angularjs
[20:40:06] *** davi has quit IRC
[20:41:06] <tristanp> anyone know how to include android in this test? https://gist.github.com/tristanpendergrass/d7a4aa9966d95081eb56
[20:41:08] *** aslate has quit IRC
[20:41:13] *** nc90 has quit IRC
[20:41:16] *** MattWelch has joined #angularjs
[20:41:17] *** epantzar has quit IRC
[20:41:37] *** elyssonmr has quit IRC
[20:41:43] *** dc_ has joined #angularjs
[20:42:03] *** elyssonmr has joined #angularjs
[20:42:19] *** IvailoStoianov has quit IRC
[20:42:23] <bradmaxs> Have a scope problem I believe. http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info Trying to change the printer in print-start.html on line 24 but am getting "object not a function" error message. I am able to call orderUpdate() and am handling it the same way as suggestChange() in the directive so confused. Thanks.
[20:42:35] <jdummy> BahamutWC: YES!!!!!
[20:42:43] *** pilva2 has quit IRC
[20:42:45] <jdummy> BahamutWC: $interpolate. That's just what I needed.
[20:43:00] *** pknordic has joined #angularjs
[20:43:06] <jdummy> BahamutWC: thank you very much. now I can stop banging my head against this stone wall :)
[20:43:37] *** dc has quit IRC
[20:43:47] *** IvailoStoianov has joined #angularjs
[20:43:54] *** roadrunneratwast has joined #angularjs
[20:44:08] *** Xaleph has quit IRC
[20:44:21] *** baweaver has quit IRC
[20:46:01] *** zeezey has joined #angularjs
[20:47:07] *** DLSteve has joined #angularjs
[20:47:27] *** pknordic has quit IRC
[20:47:36] *** mennea has quit IRC
[20:47:40] *** mlpug has joined #angularjs
[20:48:12] *** mennea has joined #angularjs
[20:49:01] *** qdk has quit IRC
[20:49:03] *** jonathanpglick has quit IRC
[20:49:47] *** swist has quit IRC
[20:49:51] *** optikalmouse has quit IRC
[20:50:00] *** lw has quit IRC
[20:50:08] *** g-nom3 has quit IRC
[20:50:22] *** plato has quit IRC
[20:50:39] *** nc90 has joined #angularjs
[20:50:42] *** tschundeee has joined #angularjs
[20:52:00] *** denysonique has joined #angularjs
[20:52:50] *** WhatsInTheBoks has quit IRC
[20:53:36] *** whatadewitt has quit IRC
[20:54:14] <diraol> Friends, why my $location.path() isn't changin the current page? What would be happening?
[20:55:16] *** Luke_ has joined #angularjs
[20:55:17] *** tschundeee has quit IRC
[20:55:21] *** woah has quit IRC
[20:55:57] *** gurke_ has joined #angularjs
[20:55:57] *** jmverges has quit IRC
[20:55:58] *** SargoDarya has joined #angularjs
[20:56:26] <Luke_> i have a quick ng-if question. If i have a directive on an ng-if when it's set to true will the variables rerender?
[20:56:33] *** jtimon has quit IRC
[20:57:07] *** simplyshipley has quit IRC
[20:57:23] *** Lewix has joined #angularjs
[20:58:19] *** jtimon has joined #angularjs
[20:59:01] *** foofoobar has joined #angularjs
[20:59:24] <jdummy> diraol: maybe you need to trigger a $digest cycle? e.g. scope.$apply(function(){ $location.path('/here'); });
[21:00:07] *** SargoDarya has quit IRC
[21:00:11] *** cavallari1 has quit IRC
[21:00:20] *** jillesme has joined #angularjs
[21:00:29] *** Crumb has joined #angularjs
[21:00:44] <diraol> jdummy: if I try as you suggested I get this error: "apply already in progress"
[21:01:13] *** FIFOd[a] has quit IRC
[21:01:38] *** denysonique has quit IRC
[21:01:39] *** FIFOd[a] has joined #angularjs
[21:02:01] *** Una has joined #angularjs
[21:03:12] *** jeffisabelle has joined #angularjs
[21:03:16] *** axsuul has quit IRC
[21:03:59] *** jdivock__ has joined #angularjs
[21:04:06] *** Crumb has quit IRC
[21:04:20] *** sharkcat has joined #angularjs
[21:04:21] *** cbennett has joined #angularjs
[21:04:24] *** marr has joined #angularjs
[21:04:35] *** bePolite has left #angularjs
[21:04:49] *** Crumb has joined #angularjs
[21:04:52] <sharkcat> Hiya again :) I am curious... why does AngularJS not use a standard like CommonJS for Dependency Injection?
[21:05:23] *** optikalmouse has joined #angularjs
[21:05:32] *** ses1984 has quit IRC
[21:06:09] *** elrabin_ has quit IRC
[21:06:14] *** vectra has quit IRC
[21:06:27] *** mzabriskie has quit IRC
[21:06:31] <icfantv> sharkcat: what do you mean?
[21:06:40] *** jdivock__ has quit IRC
[21:06:43] <bradmaxs> Anyone know why I can't get suggestChange() to work? Line 24 of print-start.html. It is in my modal direective.
[21:06:44] *** elrabin has joined #angularjs
[21:06:45] <bradmaxs> http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=info
[21:06:46] <icfantv> sharkcat: angularjs does DI via names
[21:07:15] *** dc_ has quit IRC
[21:07:28] *** jdivock_ has quit IRC
[21:07:32] *** Caroga is now known as Caroga_afk
[21:07:32] *** mzabriskie has joined #angularjs
[21:07:43] <sharkcat> @icfantv: do you mean, the benefit is that we can just specify names, without worrying about specifying the module path?
[21:07:46] *** dc has joined #angularjs
[21:07:46] *** juanlas has quit IRC
[21:07:51] *** robbyt has joined #angularjs
[21:07:54] <icfantv> bradmaxs: i don't see that method call on line 24, but do see it in index.html
[21:07:58] *** shackleford has quit IRC
[21:08:20] *** gladely has quit IRC
[21:09:04] *** denysonique has joined #angularjs
[21:09:30] *** foofoobar has quit IRC
[21:09:30] <icfantv> sharkcat: i mean that angular js injects by name. e.g., if you define a service in a module with the name MyService, after angular boots up, it will inject where it finds 'MyService' if you use [] notation, or just by variable name, if you don.t
[21:09:34] *** gladely has joined #angularjs
[21:10:10] <sharkcat> @icfantv: I'm looking more at why did Angular people decide to design a DI of their own and not using an existing DI methodology like CJS, AMD, or the new ES6 standard?
[21:10:35] <BahamutWC> modules solve a different problem than DI
[21:11:10] <ctanga> another batarang released. thank god, the version I was using was over 12 hours old
[21:11:17] <BahamutWC> haha
[21:11:26] <icfantv> bradmaxs: the path is wrong in your J/S; line 45 that defines the templateURL
[21:11:45] <icfantv> bradmaxs: always check your chrome console first to see if there are any errors
[21:11:48] <bradmaxs> icfantv: thanks for responding. I send it to the directive in index.html and then in print-start.html, I call that. ng-click="suggest({printer: suggest})" but I am getting an object is not a function error?
[21:11:54] <icfantv> ctanga: hahahaha
[21:11:59] *** jillesme_ has joined #angularjs
[21:12:00] *** seriema has quit IRC
[21:12:08] <sharkcat> @BahamutWC can you elaborate? what does DI do that CJS/AMD don't?
[21:12:29] *** maraneta has quit IRC
[21:12:36] *** seriema has joined #angularjs
[21:12:42] *** woah has joined #angularjs
[21:12:54] <icfantv> bradmaxs: hang on, i'm not following
[21:13:06] <bradmaxs> icfantv: It is right in my dev environment and all of my other modals are called. I can also call the update="orderUpdate(update)" function fine so I am not sure why suggest doesn't work.
[21:13:13] <bradmaxs> no worries. I appreciate your help.
[21:13:15] <BahamutWC> sharkcat: DI is more like you defined a service somewhere, instead you're stubbing out a mock version
[21:13:26] <BahamutWC> Angular's version is patterned more after Java with the IOC
[21:13:36] *** ProLoser has joined #angularjs
[21:13:42] *** Luke_ has quit IRC
[21:14:28] *** sonofdirt has quit IRC
[21:14:34] *** plato has joined #angularjs
[21:14:46] <bradmaxs> icfantv: essentially I declare the functions in the directive scope function: '&', function2: '&' and then set them in my directive in index.html. Then I call what I set in the directive in the ng-click. New to angular so I may be missing something. My update function does work though.
[21:14:49] *** baweaver has joined #angularjs
[21:15:08] <bradmaxs> just not the suggest
[21:15:14] *** elrabin has quit IRC
[21:15:29] *** baweaver has joined #angularjs
[21:15:33] <icfantv> bradmaxs: so i have your plunkr rendering, but select printer doesn
[21:15:38] <icfantv> bradmaxs: doesn't do anything
[21:15:56] *** jillesme has quit IRC
[21:15:57] <sharkcat> @BahamutWC: I am not sure I follow - we can still swap in a mock version with CJS/AMD using the same module path/name. I don't see what Angular's DI or Java's IOC has that CJS/AMD don't
[21:17:00] *** jonasliljestrand has joined #angularjs
[21:17:08] <icfantv> bradmaxs: are you using bootstrap? the button doesn't have a handler for displaying the drop down
[21:17:09] *** seriema has quit IRC
[21:17:27] <bradmaxs> Hold on. I'll get some data to populate.
[21:17:43] *** mennea has quit IRC
[21:17:44] *** elyssonmr has quit IRC
[21:17:55] *** Fire-Dragon-DoL has joined #angularjs
[21:17:59] *** Fire-Dragon-DoL has quit IRC
[21:18:06] *** ProLoser has quit IRC
[21:18:22] *** mennea has joined #angularjs
[21:18:24] *** dmack_ has joined #angularjs
[21:19:01] *** Fire-Dragon-DoL has joined #angularjs
[21:19:10] *** BobbieBarker_ has quit IRC
[21:19:31] <BahamutWC> sharkcat: also keep in mind, I don't think those module systems were around 5 years ago
[21:19:54] *** dcherman has joined #angularjs
[21:19:54] *** e0ipso is now known as e0ipso|away
[21:20:27] *** ngbot has joined #angularjs
[21:20:27] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/0Pcr1w
[21:20:27] <ngbot> angular.js/master 6617b42 Stefan: docs(guide/Forms): added link to input type "date"...
[21:20:27] *** ngbot has left #angularjs
[21:20:32] *** juanlas has joined #angularjs
[21:21:11] *** dcherman2 has quit IRC
[21:21:16] *** wallerdev has quit IRC
[21:21:25] *** zwacky has quit IRC
[21:21:25] *** dmack has quit IRC
[21:21:41] *** woah has quit IRC
[21:22:11] <sharkcat> @BahamutWC That is true that they weren't mature back then. Although, interestingly, many toolkits/frameworks moved fast to embrace the modularity standards while AngularJS didn't. Perhaps it was decided then that backward compatibility or the benefits weren't worth it
[21:22:32] *** bostonaholic has quit IRC
[21:23:29] *** elrabin has joined #angularjs
[21:23:29] <BahamutWC> sharkcat: who knows...it'll happen in Angular 2.0 by default anyway
[21:24:07] <bradmaxs> icfantv: how did you get it to render. I sure can't:)
[21:24:21] *** jaznow has joined #angularjs
[21:24:51] *** qdk has joined #angularjs
[21:25:01] *** dcherman2 has joined #angularjs
[21:25:54] <stormbytes> i want to load a div with display:hidden until ng boots up
[21:25:54] *** g33k5z has quit IRC
[21:25:56] <stormbytes> <div id="pubcode_box" class="ng-hide" ng-show="main.config.showPubcode">
[21:26:02] *** g33k5z has joined #angularjs
[21:26:05] <stormbytes> shouldn't that work as expected?
[21:26:47] *** KushS has joined #angularjs
[21:27:38] *** nfroidure has joined #angularjs
[21:27:56] *** dcherman has quit IRC
[21:28:09] *** mokush has joined #angularjs
[21:28:10] <jaydubya> anyone know how to debug this error : Error: [$parse:ueoe]
[21:28:33] <Grokling> stormbytes: ng-hide doesn't work until ng is working.. have a google for ng-cloak instead
[21:28:57] <stormbytes> i defined ng-hide in my local stylesheet for htat purpose
[21:29:13] <icfantv> bradmaxs: you didn't change your path in the JS file. so it's still looking in the templates dir
[21:29:22] <stormbytes> the idea is that ng-hide (display:none) should be stripped out after angular boots, or so i thought
[21:29:24] *** IvailoStoianov has quit IRC
[21:29:40] <bradmaxs> icfantv: duh. thanks:)
[21:30:01] <icfantv> um hmm
[21:30:43] *** tubiz has quit IRC
[21:30:59] *** csduarte has quit IRC
[21:31:06] <Grokling> stormbytes: ngCloak. It's for that exact thing.
[21:31:21] <stormbytes> Grokling just google it, applying...thanks!
[21:31:52] <BrianTheAss> BahamutWC: I found the IE caching issue when using $http.get, it seems irregular, but happens when the IE11's F12 is open, or when I have VS 2013 debug attached. It isn't regular, but I cannot duplicate caching when those are closed.
[21:32:22] *** axsuul has joined #angularjs
[21:32:43] *** settinghead has quit IRC
[21:32:57] *** justinsmestad has joined #angularjs
[21:33:06] *** KodaSimon_ has joined #angularjs
[21:33:10] *** yelvert has quit IRC
[21:33:19] *** axsuul has joined #angularjs
[21:33:55] *** gurke_ has quit IRC
[21:34:04] <BrianTheAss> BahamutWC, since this seems to be only in debug on the browser, I don't think this is an actual issue for Angular, so I will just send my IE contacts the information and how to duplicate it.
[21:34:25] *** yelvert has joined #angularjs
[21:34:36] <BahamutWC|Laptop> BrianTheAss: there might be a dev tools setting then
[21:35:55] *** cbennett has quit IRC
[21:35:56] <BrianTheAss> BahamutWC|Laptop, I suspect so, but it isn't obvious. As long as my customers don't have the issue, then I am happy to roll this into UAT.
[21:36:03] *** justinsmestad has quit IRC
[21:36:05] <bradmaxs> icfantv: hmm. still can't get the modal to popup? http://plnkr.co/edit/PWfiMiwVLwUoucSuXCht?p=preview
[21:36:13] *** jstad has joined #angularjs
[21:36:19] *** lsiv568 has quit IRC
[21:36:20] *** jtimon has quit IRC
[21:36:30] *** jillesme_ has quit IRC
[21:36:31] *** chakkimatti has quit IRC
[21:36:32] *** one0one has joined #angularjs
[21:36:45] *** tristanp has quit IRC
[21:36:50] *** Anonymous_ has joined #angularjs
[21:37:11] *** th3fallen has joined #angularjs
[21:37:38] *** phuh has quit IRC
[21:38:12] *** plex0r has quit IRC
[21:38:16] *** _mtr has joined #angularjs
[21:38:18] *** Brewski85 has joined #angularjs
[21:38:48] *** lsiv568 has joined #angularjs
[21:39:15] *** patrick99e99 has quit IRC
[21:40:12] *** patrick99e99 has joined #angularjs
[21:40:32] *** diosney has quit IRC
[21:40:50] *** jdivock_ has joined #angularjs
[21:41:04] *** TheDreamIsReal has quit IRC
[21:41:17] *** Anonymous_ has quit IRC
[21:41:59] *** jheady has joined #angularjs
[21:42:10] *** jheady has left #angularjs
[21:42:14] *** BrianTheAss has quit IRC
[21:42:29] *** roadrunneratwast has quit IRC
[21:42:53] *** wallerdev has joined #angularjs
[21:43:20] *** shackleford has joined #angularjs
[21:43:34] *** _mtr has quit IRC
[21:43:35] <jaydubya> does anyone use angular-filters?
[21:43:36] *** shackleford has quit IRC
[21:44:09] *** shackleford has joined #angularjs
[21:44:24] *** busticated has quit IRC
[21:45:02] *** jacuqesdancona_ has joined #angularjs
[21:45:02] *** sigurding has quit IRC
[21:45:03] *** KodaSimon_ is now known as KodaSimon
[21:45:14] *** TheDreamIsReal has joined #angularjs
[21:45:31] *** AngularUI has joined #angularjs
[21:45:31] <AngularUI> [ng-grid] c0bra pushed 1 new commit to scrollbar: http://git.io/EeosKg
[21:45:32] <AngularUI> ng-grid/scrollbar 3467f53 Brian Hann: WIP: Turning off event handlers so scrolling is handled natively
[21:45:32] *** AngularUI has left #angularjs
[21:46:23] *** zB0hs has joined #angularjs
[21:47:19] *** patrick99e99 has quit IRC
[21:47:42] *** settinghead has joined #angularjs
[21:47:46] *** mennea has quit IRC
[21:48:19] *** mennea has joined #angularjs
[21:49:18] <icfantv> jaydubya: the project? or custom filters?
[21:49:44] *** jacuqesdancona_ has quit IRC
[21:49:49] <jaydubya> the project -- a nice collection of custom filters that WAS extremely useful
[21:50:09] *** rafagomes has quit IRC
[21:50:19] *** platonic_ has joined #angularjs
[21:50:33] *** tschundeee has joined #angularjs
[21:50:37] <jaydubya> the reason I mentioned it was if you do use it and you upgrade to 1.3, you need to NOT use it because it is creating 674 errors in my project
[21:50:48] *** settinghead has quit IRC
[21:50:59] *** platonic has quit IRC
[21:51:02] *** roadrunneratwast has joined #angularjs
[21:51:23] *** settinghead has joined #angularjs
[21:51:28] *** juanlas has quit IRC
[21:51:51] *** ianpirro has quit IRC
[21:52:03] *** settinghead has quit IRC
[21:52:17] *** settinghead has joined #angularjs
[21:52:17] *** nfroidure has quit IRC
[21:52:34] *** yoshokatana has quit IRC
[21:53:00] *** jstad has quit IRC
[21:53:13] *** diosney has joined #angularjs
[21:53:21] *** cbennett has joined #angularjs
[21:53:26] *** wallerdev has quit IRC
[21:53:31] *** jtimon has joined #angularjs
[21:53:36] *** mlpug has quit IRC
[21:53:43] *** diosney has quit IRC
[21:55:06] *** tschundeee has quit IRC
[21:55:24] *** patcito has joined #angularjs
[21:56:04] <icfantv> oh wow. we're alreayd on 1.3
[21:56:12] <icfantv> good thing we're not using it then, i suppose
[21:56:13] *** imehesz has quit IRC
[21:56:26] *** diosney has joined #angularjs
[21:56:39] *** SargoDarya has joined #angularjs
[21:56:43] *** ses1984 has joined #angularjs
[21:57:40] *** cuebix-wk has joined #angularjs
[21:57:46] <cuebix-wk> Whaddup my ninjas?
[21:57:52] *** imehesz has joined #angularjs
[21:57:59] <cuebix-wk> If I want to define a function on a module so I can access it elsewhere, what's the best way to do that?
[21:58:15] <cuebix-wk> angular.module('myModule').func = function() {}; // ?
[21:59:04] <cuebix-wk> no, wait n/m i can just use .factory, right?
[21:59:13] *** ChadStrat has joined #angularjs
[21:59:14] *** gunn has joined #angularjs
[21:59:23] *** Una has quit IRC
[21:59:24] *** gladely has quit IRC
[21:59:44] <farn5w0rth> What should the $resource url be if I’m using a Rails API on a different subdomain? example: my API is at api.domain.com and my angular app is at app.domain.com…?
[22:00:00] *** gunn has joined #angularjs
[22:00:17] *** atomical has quit IRC
[22:00:51] *** gunn has joined #angularjs
[22:01:00] *** SargoDarya has quit IRC
[22:01:04] *** sp00x has quit IRC
[22:01:11] *** Una has joined #angularjs
[22:01:33] *** tristanp has joined #angularjs
[22:01:36] <oniijin> just fully qualify your url
[22:01:55] *** yelvert has quit IRC
[22:02:02] *** atomical has joined #angularjs
[22:02:23] <robdubya> oniijin!
[22:02:26] <robdubya> long time no see
[22:02:38] <farn5w0rth> oniijin: what’s that mean?
[22:02:55] <robdubya> check that motherfuckers background fully
[22:03:11] *** yelvert has joined #angularjs
[22:03:38] <oniijin> sup robdubya
[22:03:42] *** tschundeee has joined #angularjs
[22:03:43] *** jlebrech has joined #angularjs
[22:03:55] <oniijin> havent been coding lately and chan was frustrating me so been away
[22:04:03] *** Una has quit IRC
[22:04:10] <cuebix-wk> Another dumb question lol
[22:04:14] *** jsheely|ltop has quit IRC
[22:04:25] <cuebix-wk> Is there a way to get the dom element for a form from the form controller?
[22:04:32] *** Una has joined #angularjs
[22:04:34] <robdubya> yes but you probably dont need to
[22:04:36] *** poolside has quit IRC
[22:04:39] <oniijin> yes but u shouldnt
[22:05:30] *** jtimon has quit IRC
[22:05:45] *** ryst has joined #angularjs
[22:05:58] *** Sadin has quit IRC
[22:05:59] *** juanlas has joined #angularjs
[22:06:01] <cuebix-wk> i'm touching invalid controls so that they can be highlighted via css. i want the dom element so that i can scroll to the first invalid one
[22:06:28] *** kruk has quit IRC
[22:06:48] *** c00ljs has quit IRC
[22:07:09] *** renlo has quit IRC
[22:07:55] <cuebix-wk> Can you show me how to get the dom element from the controller?
[22:08:03] <robdubya> use a directive
[22:08:13] *** robert_ has quit IRC
[22:08:13] *** yoshokatana has joined #angularjs
[22:08:19] <oniijin> dont be fckin with dom from your controller
[22:08:48] *** subone has joined #angularjs
[22:08:54] *** jlebrech has quit IRC
[22:09:07] <cuebix-wk> gotcha
[22:09:10] <Grokling> On the topic of things you likely shouldn't do.. Is there a recipe somewhere for setting the focus to the previous sibling element? (I have a button that makes a hidden select visible, and I want it to get the focus as well) I can't think of an angular way to do it..
[22:09:14] <subone> Can anyone point me to a combobox component which allows pagination in it's dropdown list?
[22:09:23] *** stephanbuys has quit IRC
[22:10:31] *** soee has joined #angularjs
[22:10:32] *** IsraelOrtuno has quit IRC
[22:10:57] *** jonathanpglick has joined #angularjs
[22:11:25] <robdubya> ehhhh if you're paginating dropdowns... that seems a bit too many options, no
[22:11:40] *** sheplu has joined #angularjs
[22:11:46] *** danecando has quit IRC
[22:11:59] <Grokling> paginating dropdowns sounds like a good case for a typeahead instead?
[22:12:11] *** jmckind has quit IRC
[22:12:24] *** arpu has quit IRC
[22:13:43] *** orangerobot has joined #angularjs
[22:14:31] *** Derzbez has joined #angularjs
[22:14:36] <subone> Perhaps we can add typeahead later, but at the moment the API supports pagination, not search
[22:14:38] *** jdivock_ has quit IRC
[22:14:39] <orangerobot> hello I have a factory that returns resources from the backend. I want to add the objects to a sidebar but I can't do a map() on them because they are still a promise and are not resolved. How to signal to angular just to map on the results once they get resolved?
[22:14:41] *** sp00x has joined #angularjs
[22:15:03] *** jmckind has joined #angularjs
[22:15:17] *** jdivock_ has joined #angularjs
[22:15:35] *** shampine has quit IRC
[22:15:36] <robdubya> subone what do you envision that looking like?
[22:15:37] <subone> orangerobot: add the things you want to do once it is resolved to the promise.then()
[22:15:46] <bradmaxs> icfantv: Got it. I guess I had some references wrong but I changes a few variables and it is working. Thanks for looking into it.
[22:15:46] *** jmckind has joined #angularjs
[22:15:51] *** Derzbez has left #angularjs
[22:16:10] <robdubya> $http.get('foos').then(function(res) return res.data.map(doSomething); }) orangerobot
[22:16:23] <subone> robdubya: just a dropdown list on a combobox which has pagination controls at the bottom. Not sure what you're asking exacty
[22:16:39] <robdubya> sounds terrible :/
[22:16:44] <subone> ?
[22:16:48] <tristanp> anyone seen this? https://github.com/angular/angular/tree/master/modules/examples/src/hello_world
[22:16:58] <tristanp> or did I miss the discussion boat on this already
[22:16:59] *** cbennett has quit IRC
[22:17:03] <robdubya> you missed the boat
[22:17:22] *** cbennett has joined #angularjs
[22:17:23] <Grokling> There was a boat? Dammit. I knew I slept through something..
[22:18:00] *** mennea has quit IRC
[22:18:01] <subone> We use a similar paginated combobox in other projects with extjs, just didn't know if there was an existing component I could use for angular/bootstrap that does this
[22:18:01] <robdubya> it looks surprisingly not-horrific, but maybe that's cuz i've been using annotations all week anyway :o
[22:18:03] *** jaznow has left #angularjs
[22:18:26] *** mennea has joined #angularjs
[22:18:29] <robdubya> subone link to what it looks like? it wouldn't be too difficult to roll your own, i just qusetion the UX there
[22:18:58] <subone> Meh, I don't want to download an spin up that project right now
[22:19:06] <orangerobot> subone: robdubya This is what I've done. I get an error: undeifned is not a function http://pastie.org/9774938
[22:19:18] *** Una has quit IRC
[22:19:21] *** e0ipso|away is now known as e0ipso
[22:19:32] <robdubya> ah, $resource doesn't return promises, because its full of fail and aids
[22:19:39] <tristanp> my immediate reaction was shoot me now
[22:19:41] *** gunn has quit IRC
[22:19:53] <robdubya> tristanp get used to it :D
[22:20:08] *** kajstrom has quit IRC
[22:20:14] <subone> orangerobot: Dashboard.query().$promise.then()
[22:20:18] <robdubya> i'm loving the shit out of classes + annotations. it all feels a bit un-angular, but its nice
[22:20:19] *** jtimon has joined #angularjs
[22:20:49] *** kajstrom has joined #angularjs
[22:20:56] <subone> orangerobot: or Dashboard.query({}, function() {/*success*/}, function() {/*failure*/})
[22:20:57] <icfantv> orangerobot: or Dashboard.query(successFunction, failureFunction)
[22:21:10] <subone> icfantv: I think you need the config first
[22:21:28] <icfantv> ?
[22:21:43] <subone> maybe not
[22:21:49] *** srsgores has joined #angularjs
[22:22:10] *** lw has joined #angularjs
[22:22:11] <icfantv> it can be an anonymous function or a handle to a function
[22:22:17] *** wallerdev has joined #angularjs
[22:22:26] *** replicant has joined #angularjs
[22:22:45] *** yts has joined #angularjs
[22:22:52] <subone> yeah, nvm, looks like I was wrong on that, ran up against something like that but I forget the order of things I passed it now
[22:22:55] *** sebhoss has joined #angularjs
[22:23:03] <replicant> any of you used ui-jq and how do you go about accessing the ui-jq instance when it's used in the template of a directive? just a general question.
[22:23:15] <replicant> jq-ui even
[22:23:22] <stephen> Ugh
[22:23:23] <replicant> no, ui-jq is right
[22:23:28] *** renlo has joined #angularjs
[22:23:35] <stephen> I need to slap some js devs here
[22:23:40] *** PrinceAMD has quit IRC
[22:23:59] <stephen> our jquery-ui is from 2009.... and it's source been altered
[22:24:04] *** wallerdev has quit IRC
[22:24:29] *** wallerdev has joined #angularjs
[22:25:20] *** roymiloh has quit IRC
[22:25:29] *** jtimon_ has joined #angularjs
[22:25:42] *** jtimon has quit IRC
[22:25:49] *** twelverobots has quit IRC
[22:25:57] *** mven has joined #angularjs
[22:26:40] *** juanlas has quit IRC
[22:26:44] *** loverajoel has quit IRC
[22:26:57] *** Alax has joined #angularjs
[22:27:06] *** stephanbuys has joined #angularjs
[22:27:12] <snurfery> I need to admit this publicly
[22:27:13] <Alax> Hey guys :)
[22:27:25] <snurfery> I talk a lotta trash about php, but I saw a laravel project and it's not terrible
[22:27:26] *** sebhoss has quit IRC
[22:27:38] * snurfery is relieved
[22:27:39] <orangerobot> icfantv: subone yeah Dashboard.query(function(dash){ worked ok but I'm not sure whether dash is the promised object. I can't seem to be able to edit its attributes
[22:27:44] <Alax> Trying to sort data by day from a JSON MVC; would {{greeting.content | date:'dd-M-yyyy H:mm'}} work to only show data on certain days?
[22:27:45] *** roymiloh has joined #angularjs
[22:27:49] *** richardbkr has quit IRC
[22:28:20] <cuebix-wk> ok, so i got it pretty much working in a directive. but, i can't seem to stop the form submission/calling the submit handler from within the directive. I tried event.preventDefault() and event.stopPropagation from the form's submit handler, but the submit fn still gets called afterwards
[22:28:40] <subone> orangerobot: try returning the modified object
[22:28:59] *** cotko has quit IRC
[22:29:08] <snurfery> Alax: by day?
[22:29:26] <snurfery> not just in order of the entire date?
[22:29:27] <Alax> Basically i am trying to create a quick app that shows certain json MVC data on certain days
[22:29:33] *** pzuraq has joined #angularjs
[22:29:38] <Alax> I can create a flowchart if you need?
[22:29:52] <orangerobot> subone: no, no I figured it out. It's because my promise returns and array of objects and, naturally, the array is what gets fed to the lambda function. thank you subone and icfantv
[22:29:56] <Alax> So if monday is day1, show day1, if tuesday is day2, show day2
[22:29:57] <snurfery> nah, just wondering if you really mean by numeric day
[22:30:04] <snurfery> oh ok, day of week
[22:30:18] <Alax> Yes but the entire month
[22:30:33] <Alax> So i manually create the json data but it shows certain json objects on certain days
[22:30:57] *** stephanbuys has quit IRC
[22:31:37] *** andrew9183 has joined #angularjs
[22:31:42] *** pknordic has joined #angularjs
[22:32:13] *** replicant has left #angularjs
[22:32:18] *** Johnny13371337 has joined #angularjs
[22:32:23] *** kakashiA1 has joined #angularjs
[22:32:25] *** Johnny13371337 has left #angularjs
[22:32:49] *** kakashiAL has quit IRC
[22:33:04] *** roadrunneratwast has quit IRC
[22:33:23] <cuebix-wk> oh i think i got it. stopImmediatePropagation()
[22:34:55] <nickeddy> snurfery: it still is
[22:35:12] <subone> Alax: Are you saying you have an array of resources, each having a "day" property of "day1" or "day2" and you are wanting to only show "day1" resources in "day1" column?
[22:35:17] <srsgores> hey guys: I'm wondering if anyone can tell me why my scope is not being set from within my controller: http://plnkr.co/edit/AfuoEQeepsOFTwXiVdKh
[22:35:21] *** afuggini has quit IRC
[22:35:36] <snurfery> what, still is terrible?
[22:35:45] *** diraol has quit IRC
[22:35:59] *** afuggini has joined #angularjs
[22:36:05] *** pknordic has quit IRC
[22:36:46] *** jdivock_ has quit IRC
[22:36:59] *** imehesz has quit IRC
[22:37:23] *** jdivock_ has joined #angularjs
[22:37:32] <Grokling> srsgores: What's the issue there? Seems to work?
[22:37:35] *** joshontheweb has quit IRC
[22:37:51] *** bbankes has quit IRC
[22:37:53] <jpstone> I am watching a $scope variable in a directive...when that variable updates, the watch isn't triggering...but if I $scope.$apply it manually in the console, the watch gets triggered...any idea why that might be?
[22:37:54] <srsgores> grokling: you would expect the 3 action types to be the types set in the controller
[22:38:26] *** monbro has joined #angularjs
[22:38:50] *** bbankes has joined #angularjs
[22:38:59] <icfantv> srsgores: you want ng-options
[22:39:21] <icfantv> no?
[22:39:30] <icfantv> oh wait
[22:39:34] <srsgores> icfantv: ?
[22:39:42] <icfantv> you're creating selects in a loop
[22:39:48] <robdubya> yeah, you want ng-options
[22:40:12] <srsgores> icfantv: can you elaborate on why what I have isn't working?
[22:40:44] <robdubya> are you trying to set the select for each of the listed actions?
[22:40:47] *** ries has joined #angularjs
[22:41:14] <icfantv> that's what i was trying to figure out
[22:41:23] *** juanlas has joined #angularjs
[22:41:29] <icfantv> half the battle here is figuring out what people are actually trying to do...
[22:41:37] *** jdivock_ has quit IRC
[22:41:48] <srsgores> icfantv: yes, I need to initalize the existing actions that the user has configured
[22:42:04] <srsgores> icfantv: so I have a JSON object that I should use to set those up
[22:42:17] <icfantv> i think i get it. you want the select boxes to be pre selected
[22:42:34] *** busticated has joined #angularjs
[22:42:51] <srsgores> icfantv: yes, but that already works using ng-init; I simply need to set the ones to their corresponding values when the page loads via the JSON
[22:43:09] <icfantv> srsgores: i have to be honest, it's a major pain in the butt when your data is coming from objects.
[22:43:15] <icfantv> lemme find the blog post
[22:43:30] <srsgores> icfantv: what do you suggest then?
[22:43:36] <nickeddy> icfantv: arrays of objects i'm okay with. objects with props as an array, fk that
[22:44:12] *** twelverobots has joined #angularjs
[22:44:24] *** phuh has joined #angularjs
[22:45:15] <robdubya> srsgores http://plnkr.co/edit/8DtPyLNY7PsIJojZaETn?p=preview
[22:45:18] *** IsraelOrtuno has joined #angularjs
[22:45:31] <icfantv> nickeddy: the latter was what i was battling
[22:45:36] <icfantv> and it was a major pain in the ass
[22:45:45] <robdubya> dont use ng-init. its verboten
[22:46:14] <nickeddy> icfantv: yeah, i hear you :(
[22:46:24] *** shampine has joined #angularjs
[22:46:37] *** MistahKurtz has quit IRC
[22:46:40] *** jonatha__ has joined #angularjs
[22:46:54] *** jonathanpglick has quit IRC
[22:47:49] *** mennea has quit IRC
[22:47:50] <icfantv> srsgores: here's the post, http://odetocode.com/blogs/scott/archive/2013/06/19/using-ngoptions-in-angularjs.aspx
[22:48:02] *** ron1 has quit IRC
[22:48:28] *** mennea has joined #angularjs
[22:48:39] <icfantv> you have to trick it to select the right value initially, and then when you submit, you need to make sure you actually send the right value to the server
[22:49:04] <srsgores> icfantv: this seems overly complex and unnecessary for what I'm trying to do
[22:49:16] <srsgores> icfantv: why doesn't what I have work?
[22:49:36] <icfantv> sun spots? i don't know
[22:49:42] <icfantv> i haven't looked too deeply
[22:49:49] *** Aswebb_ has quit IRC
[22:50:05] *** macobo has quit IRC
[22:50:11] *** amphetamines has quit IRC
[22:50:27] <boxmein> if I have a directive {restrict: 'E', template: '{{link}} {{title}}'}, and if I put it into an ng-repeat="entry in entries", can the template access "entry.X"?
[22:50:29] *** ron1 has joined #angularjs
[22:50:44] *** mtsr has quit IRC
[22:51:00] <nickeddy> srsgores: each of your selects is going to a single ng-model, why?
[22:51:03] *** josh-k has quit IRC
[22:51:30] *** shampine has quit IRC
[22:51:41] *** cbennett has quit IRC
[22:51:49] *** cotko has joined #angularjs
[22:51:52] <Ownix> What does for do in a loop? Like ng-options="office.office_name for office in offices"
[22:51:52] <srsgores> nickeddy: why not? Isn't that the best way, given the ng-repeat must have a bound model for each form control?
[22:51:58] *** zB0hs has quit IRC
[22:52:12] *** jdivock_ has joined #angularjs
[22:52:27] <nickeddy> well why have three different selects then? maybe i don't know what you're trying to do
[22:53:17] *** TheAceOfHearts has quit IRC
[22:53:29] <xxMatiasFxx> Is there a callback after a subdirective is rendered inside a directive ?
[22:53:31] <nickeddy> srsgores: did you look at robdubya's plunkr?
[22:53:34] <srsgores> nickeddy: I just want to show the user's configured actions when they navigate to the page; then they can modify those actions and save...
[22:53:42] *** plato1 has joined #angularjs
[22:54:13] <nickeddy> srsgores: yeah pointing to a single model doesn't make any sense then. one will override the other
[22:54:46] <srsgores> nickeddy: no; the models are unique to the scope that angular injects, from within the ng-repeat directive
[22:54:46] *** stormbytes has quit IRC
[22:54:53] *** swist has joined #angularjs
[22:55:13] *** e0ipso is now known as e0ipso|away
[22:55:28] *** roachiepoopoo has quit IRC
[22:55:39] *** rkjdid has joined #angularjs
[22:55:57] *** hiddentoken has joined #angularjs
[22:55:57] *** cotko has quit IRC
[22:56:07] *** phuh has quit IRC
[22:56:21] *** cotko has joined #angularjs
[22:56:22] *** plato has quit IRC
[22:56:32] *** phuh has joined #angularjs
[22:56:39] *** lsiv568 has quit IRC
[22:57:09] <nickeddy> what? no? no.
[22:57:13] *** evanjs_ has quit IRC
[22:57:55] *** sabrehagen1 has joined #angularjs
[22:57:57] *** _mtr has joined #angularjs
[22:58:05] <robdubya> didnt my plunker do exactly that?
[22:58:08] <robdubya> hello hello? is this thing on?
[22:58:18] <nickeddy> that's what i said
[22:58:19] <nickeddy> lol
[22:58:30] <srsgores> guys: the answer is here: http://plnkr.co/edit/AfuoEQeepsOFTwXiVdKh
[22:58:39] <srsgores> I had to namespace the scope, with action.
[22:59:25] *** jmckind has quit IRC
[22:59:26] *** MaxV has joined #angularjs
[22:59:53] *** Efrem has quit IRC
[23:00:03] *** TheAceOfHearts has joined #angularjs
[23:00:11] *** lsiv568 has joined #angularjs
[23:00:17] *** plato1 has quit IRC
[23:00:30] *** joshontheweb has joined #angularjs
[23:00:46] <robdubya> that assumes you have all the action types in the html, which is (probably) not sustainable
[23:00:48] <robdubya> ymmv
[23:00:53] *** lele has quit IRC
[23:00:59] *** sharkcat has quit IRC
[23:01:12] *** freeman42 has joined #angularjs
[23:01:29] *** joshgreen has joined #angularjs
[23:01:34] *** plato has joined #angularjs
[23:01:44] *** Mxyzpltk has quit IRC
[23:02:24] <nickeddy> i'm gonna go with robdubya on this one
[23:02:45] *** ProLoser has joined #angularjs
[23:02:46] *** cbennett has joined #angularjs
[23:02:55] <srsgores> robdubya: I am using PHP and rending all the action types, so it is sustainable
[23:02:58] *** dmack_ has quit IRC
[23:03:09] <robdubya> LOL
[23:03:10] <robdubya> alright
[23:03:20] *** dman777_alter has quit IRC
[23:03:20] *** danecando has joined #angularjs
[23:03:22] *** shampine has joined #angularjs
[23:03:43] <srsgores> robdubya: it appears, however, that ng-init still overrides the objects passed in...
[23:03:45] *** sharkcat has joined #angularjs
[23:04:01] *** roachiepoopoo has joined #angularjs
[23:04:05] <nickeddy> oh god
[23:04:12] <nickeddy> that is the opposite of sustainable
[23:04:25] <nickeddy> ng-init isn't FOR THAT
[23:04:30] <nickeddy> it's for ng-repeats
[23:04:34] *** juanlas has quit IRC
[23:04:38] <nickeddy> and even then, rarely
[23:04:48] <Grokling> There's angular. There's ungular, and this one.. kinda half-gular?
[23:04:50] <srsgores> nickeddy: what do you suggest, then?
[23:05:29] <nickeddy> srsgores: not using php to render html for angular to attach to... angular should be loaded once, and any data you need should be fed to angular via a restful API
[23:05:38] *** richardbkr has joined #angularjs
[23:05:41] *** Siecje has left #angularjs
[23:05:48] *** bkuberek_ has joined #angularjs
[23:06:43] *** dsdeiz has joined #angularjs
[23:06:55] *** Una has joined #angularjs
[23:07:05] *** weeyum has joined #angularjs
[23:07:10] *** Slowintrepid has joined #angularjs
[23:07:20] <srsgores> nickeddy: or, I could just add my logic for the defaults on the selects in the add() method...
[23:07:23] *** livingstn has quit IRC
[23:07:31] <Slowintrepid> Quick question, is there an event that fires when a template finishes rendering?
[23:07:33] *** ProLoser has quit IRC
[23:07:47] <robdubya> have a list of options. and a list of actions. link them up in my plunker.
[23:07:52] *** plato1 has joined #angularjs
[23:07:56] <robdubya> FREE YOURSELF FROM THE YOKES OF SERVER SIDE RENDEING
[23:08:02] <robdubya> YOLKS?
[23:08:04] *** roadrunneratwast has joined #angularjs
[23:08:04] <robdubya> YOKES
[23:08:12] *** sonofdirt has joined #angularjs
[23:08:12] <nickeddy> srsgores: you go do whatever you want to. but when people tell you not to do things the way you're doing them, and you still keep doing them, you can expect to stop getting help
[23:08:20] <nickeddy> robdubya++
[23:08:20] <UniBot1> robdubya Karma: 5
[23:08:21] <UniBot> robdubya Karma: 5
[23:08:23] <Slowintrepid> I have a page that is slowish to load because of a recursive tree view directive I'm using. The data is small but because of the recursive nature it takes a while to render the html.
[23:08:28] <nickeddy> oh man two unibots
[23:08:34] *** plato has quit IRC
[23:08:41] *** vectra has joined #angularjs
[23:08:54] <robdubya> Slowintrepid... is that a question?
[23:08:57] *** BillCriswell has quit IRC
[23:09:10] *** neilff has quit IRC
[23:09:11] <Grokling> Yolks. Because you're an egg if you do server-side rendering and then use angular.
[23:09:22] *** srsgores has quit IRC
[23:09:24] *** wsmoak has quit IRC
[23:09:26] *** cbennett has quit IRC
[23:09:37] <Slowintrepid> sorry robdubya I was interupted
[23:09:40] *** bkuberek has quit IRC
[23:09:54] <robdubya> http://1.bp.blogspot.com/_U1LTVkF02NE/TKXMVZNe9NI/AAAAAAAAAB8/NXlnocZTqfc/s1600/yoke.png
[23:10:09] *** bkuberek_ has quit IRC
[23:10:10] <Slowintrepid> I'm trying to make a spinner appear while the html is rendering. Is there an eventt that fires when a template is finished rendering?
[23:10:12] *** juanlas has joined #angularjs
[23:10:12] *** th3fallen has quit IRC
[23:10:20] *** akrikos has quit IRC
[23:10:29] <Slowintrepid> I know how to do this while its loading data from $http or similar
[23:10:36] *** c00ljs has joined #angularjs
[23:10:40] <BahamutWC|Laptop> how you can tell you’re from texas :P
[23:10:46] <robdubya> hush you
[23:10:51] <nickeddy> lol
[23:11:07] *** diraol has joined #angularjs
[23:11:11] <Grokling> Careful.. he's bound to have at least one gun on him..
[23:11:19] *** D-Boy has quit IRC
[23:11:26] *** D-Boy has joined #angularjs
[23:11:40] *** TheAceOfHearts has quit IRC
[23:11:41] <robdubya> Slowintrepid are you manually compiling it in a directive?
[23:11:53] <robdubya> i had to dump my guns at the commiefornia border
[23:12:23] <BahamutWC|Laptop> CA is that bad with gun laws?
[23:12:38] <Slowintrepid> robdubya I don't believe so. I'm simply using JimLiu's ui-treeview directive and recursively looping through the data
[23:12:38] *** Lewix has quit IRC
[23:12:39] <Slowintrepid> https://github.com/JimLiu/angular-ui-tree
[23:12:46] <robdubya> guns dont kill people, dangerous minorities kill people
[23:12:57] <nickeddy> and bullets, bullets robdubya
[23:13:01] <Grokling> I thought in the US it was the police?
[23:13:05] *** AngularUI has joined #angularjs
[23:13:06] <AngularUI> [ng-grid] c0bra closed pull request #1945: Removed deceleration for touch devices. Too much lag (master...master) http://git.io/5VtsyQ
[23:13:06] *** AngularUI has left #angularjs
[23:13:09] <nickeddy> Grokling: that too
[23:13:24] *** ciwolsey has quit IRC
[23:13:26] *** jdivock_ has quit IRC
[23:13:28] <Grokling> Although I guess they count as a dangerous minority.
[23:13:39] <robdubya> holy hell Slowintrepid, thats a nutty directive
[23:13:58] <robdubya> presumably you could add a hook in there to fire off an event when its finished.
[23:13:59] <xxMatiasFxx> Is there a callback after a subdirective is rendered inside a directive ?
[23:14:02] *** jdivock_ has joined #angularjs
[23:14:08] <Slowintrepid> yeah I agree, it wasn't my idea to use it kinda stuck with it
[23:14:36] *** DoubleAW has quit IRC
[23:15:35] *** zlalanne has quit IRC
[23:15:48] *** mdedetrich has quit IRC
[23:15:56] *** optikalmouse has quit IRC
[23:16:02] <robdubya> BahamutWC|Laptop i just dont feel safe at starbucks unless i've got my AR-15 strapped to my back, you know?
[23:16:11] *** mdedetrich has joined #angularjs
[23:16:17] <BahamutWC|Laptop> robdubya: tired of all of the hipsters already? :P
[23:16:21] *** ppppaul has quit IRC
[23:16:32] <robdubya> "You may not bring ammunition feeding devices with a capacity greater than ten rounds, machine guns, or assault weapons into California."
[23:16:37] *** elrabin has quit IRC
[23:16:58] <Grokling> Kept the glock then huh.
[23:17:05] <BahamutWC|Laptop> I’ve fired an assault weapon in California!
[23:17:06] <roymiloh> Does anyone use angular with webpack?
[23:17:10] *** elrabin has joined #angularjs
[23:17:15] *** cbennett has joined #angularjs
[23:17:24] *** mootz has joined #angularjs
[23:17:26] *** mdedetrich has quit IRC
[23:17:35] <robdubya> assault weapon = scary looking gun!
[23:17:41] <BahamutWC|Laptop> M27 IAR
[23:17:53] *** mennea has quit IRC
[23:17:53] <mootz> does anyone have experience doing facebook login with firebase
[23:17:55] <mootz> ?
[23:18:00] *** tschundeee has quit IRC
[23:18:02] *** mdedetrich has joined #angularjs
[23:18:15] <robdubya> roymiloh nope, not used webpack, but theoretically no reaosn it shouldn't
[23:18:19] <BahamutWC|Laptop> robdubya: http://en.wikipedia.org/wiki/M27_Infantry_Automatic_Rifle
[23:18:28] *** mennea has joined #angularjs
[23:18:28] *** baweaver has quit IRC
[23:18:29] *** jdivock_ has quit IRC
[23:18:37] <robdubya> should... have... sent... a ... poet
[23:19:18] <roymiloh> robdubya: It should work, but I just want to be sure it is really awesome as it sounds :-)
[23:19:27] <roymiloh> do you use browserify?
[23:19:33] <robdubya> meh. looks a bit like browserify
[23:19:33] <robdubya> ah
[23:19:38] <robdubya> i have. dont like it either.
[23:19:42] *** daptordarattler has joined #angularjs
[23:19:42] <robdubya> SystemJS master race
[23:20:11] <BahamutWC|Laptop> haha
[23:20:15] <BahamutWC|Laptop> ES6 or bust
[23:20:16] <robdubya> roymiloh what's your thinking?
[23:20:52] *** startupality has joined #angularjs
[23:20:54] <roymiloh> it looks like it's for ES6
[23:20:57] <robdubya> angular's already GOT a module loader, so unless you're mixing and matching its not often necessary
[23:21:11] <robdubya> SystemJS loads ALL the things (ES6, AMD, CommonJS, etc)
[23:21:38] <nickeddy> so many different module systems now
[23:21:40] <daptordarattler> Hey people, I have this weird problem. When I change the value of a variable in the partial html with ng-click, after that when I change the variable in the parent controller it doesnt render any change to the dom
[23:21:41] <nickeddy> jeebus
[23:22:10] *** sharkcat has quit IRC
[23:22:15] <roymiloh> robdubya: what do you mean by "got a module loader"?
[23:22:22] <roymiloh> I need it for lazy loading
[23:22:32] <nickeddy> roymiloh: $injector
[23:22:32] <Grokling> daptordarattler: !moar
[23:22:32] <UniBot> daptordarattler, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)
[23:22:32] <UniBot1> daptordarattler, MOAR DOTS!! You might be using a primitive in your view. Do you have something like this {{someValue}} or ng-model='someValue'? Instead, put an object in $scope, and bind to a property of that object: {{object.property}} or ng-model='object.property' (See those dots? They're the important part. You need MOAR of them)
[23:22:40] <robdubya> do you really? lazy loading is usually a bit overkill for angular stuff
[23:22:54] <BahamutWC|Laptop> lazy loading is tricky with angular
[23:22:56] <robdubya> better to gulp + minify + bundle that ish
[23:23:15] *** patrick99e99 has joined #angularjs
[23:23:17] <BahamutWC|Laptop> you pretty much have to use a hack in order to lazy load modules
[23:23:45] <robdubya> imo better to take the 1/2 second hit on load and then not worry about it
[23:23:57] <icfantv> nested forms!!!! brilliant!
[23:24:04] <roymiloh> it's lazy loading or just separate into some apps (calling explicitly to bootstrap)
[23:24:06] *** chachan has quit IRC
[23:24:08] *** joshontheweb has quit IRC
[23:24:10] <daptordarattler> Grokling, thanks, interesting approach. Trying it now, will let you know the results
[23:24:29] *** cbennett has quit IRC
[23:24:32] <robdubya> roymiloh are you going to be tearing them up and down?
[23:24:33] <icfantv> BahamutWC|Laptop: do you have a different screen name for every device?
[23:24:43] <Grokling> robdubya: minify, concat and uglify almost made me depressed.. All that code, all those hours. 113kb.
[23:24:45] <BahamutWC|Laptop> icfantv: ?
[23:24:52] <icfantv> you have | laptop
[23:24:55] <robdubya> lol
[23:25:01] <nickeddy> and work and plain
[23:25:02] <icfantv> (pipe)
[23:25:04] <icfantv> yep
[23:25:06] <nickeddy> only three lol
[23:25:13] <roymiloh> robdubya: well, actually it not only this "1/2 second" but writing a clean and maintainable code. i think.
[23:25:15] *** vonnegut has quit IRC
[23:25:34] <robdubya> you can write clean and maintainable stuff w/o lazy loading
[23:25:42] *** elrabin has quit IRC
[23:25:45] <robdubya> lazy loading is just gonna complicate yo shit
[23:26:06] <BahamutWC|Laptop> lazy loading has nothing to do with clean and maintainable code
[23:26:12] *** Angelo has left #angularjs
[23:26:22] <robdubya> lots of angular modules, gulp/grunt concat+minify+etc, ???, profit
[23:26:24] <icfantv> you'd never guess robdubya works in san fran. he speaks like he's from compton
[23:26:25] *** morenoh150 has joined #angularjs
[23:26:41] <icfantv> datz crazy, yo
[23:26:42] <BahamutWC|Laptop> he works in Palo Alto, not San Fran
[23:26:47] <BahamutWC|Laptop> he doesn’t speak hipster :P
[23:26:52] <roymiloh> ok. i'll check it. but that not the whole purpose of using commonjs, so I have to take a decision which one to use. I read good reviews on webpack.
[23:26:53] <robdubya> which is a well known gangster hotspot
[23:26:59] *** nemothekid has joined #angularjs
[23:27:12] <roymiloh> lol
[23:27:24] <robdubya> roymiloh thoughts: cjs is a node invention. its great, but its not a standard.
[23:27:29] <robdubya> ditto AMD
[23:27:29] *** joshontheweb has joined #angularjs
[23:27:52] <robdubya> are you going to be running said code in node? if not, i dont know why you'd write a bunch of node style code for the browser
[23:28:10] <robdubya> ibbrowserifyfanatics
[23:28:18] <BahamutWC|Laptop> that’s a thing?
[23:28:31] <robdubya> ##javascript is all about it
[23:28:37] *** mootz has quit IRC
[23:28:42] <BahamutWC|Laptop> yuck
[23:29:03] <BahamutWC|Laptop> I still don’t see why anyone would use it
[23:29:13] <roymiloh> robdubya: because it looks the right thing (?)
[23:29:15] *** juanlas has quit IRC
[23:29:39] *** elrabin has joined #angularjs
[23:29:41] <cythrawll> multiple apps on one page or multiple controllers on one page?
[23:29:48] <robdubya> explain your thinking roymiloh ?
[23:29:48] *** mary5030 has quit IRC
[23:29:50] <cythrawll> I want to have multiple "widgets" on a single page.
[23:29:57] *** jrist has quit IRC
[23:30:04] <roymiloh> as I said, clean and maintainable code.
[23:30:23] <robdubya> the thing CJS provides you is modules
[23:30:27] <robdubya> angular already provides those
[23:30:29] *** jrist has joined #angularjs
[23:30:38] *** yoshokatana has quit IRC
[23:30:42] <robdubya> so you can write a bunch of small pieces and "assemble them"
[23:30:43] *** Una has quit IRC
[23:30:53] *** elrabin_ has joined #angularjs
[23:31:22] *** startupality has quit IRC
[23:31:27] <robdubya> angular.module('mainApp', [ 'subApp1', 'subApp2', 'internalLib1', 'internalLib2' ]
[23:32:14] *** renlo has quit IRC
[23:32:19] <robdubya> if es6 wasn't just over the horizon (with an actual standard for modules) i might have a different opinion
[23:32:23] *** bradmaxs has quit IRC
[23:32:41] *** kirfu has joined #angularjs
[23:32:50] *** fouadm has joined #angularjs
[23:32:52] *** mdedetrich has quit IRC
[23:33:20] <roymiloh> That's somehow right, but I want to handle this modules as actually like-objects
[23:33:28] *** joshontheweb has quit IRC
[23:33:48] <roymiloh> and inject into a submodule each of them
[23:34:05] *** stormbytes has joined #angularjs
[23:34:10] <robdubya> that's pretty much how it works with vanilla angular.
[23:34:14] *** imehesz has joined #angularjs
[23:34:37] <robdubya> DI / angular modules handle all the dependency chaining / injection, and just boots up the app
[23:34:38] *** elrabin has quit IRC
[23:34:46] *** FIFOd[a] has quit IRC
[23:35:03] *** monbro has quit IRC
[23:35:19] *** renlo has joined #angularjs
[23:35:31] *** elrabin_ has quit IRC
[23:35:40] <robdubya> what you actually get is a bunch of services (objects) encapsulated in a module, which you can then inject into other stuff
[23:35:52] <robdubya> what are you building
[23:36:19] <roymiloh> I just wanna separate things into vanilla object and export into angular services / controllers / etc
[23:36:27] <roymiloh> ecommerce system
[23:36:44] *** diosney has quit IRC
[23:36:45] *** {DV8} has quit IRC
[23:37:03] *** neilff has joined #angularjs
[23:37:11] <roymiloh> Ok so it won't improve the performance but i'll be easier to maintain
[23:37:32] <nickeddy> roymiloh: probably not given you have to do a lot of hacky stuff to get it to work
[23:37:47] *** chrisbirk has joined #angularjs
[23:38:05] <roymiloh> nickeddy: to work with commonjs?
[23:38:19] *** startupality has joined #angularjs
[23:38:23] <robdubya> perhaps. imo you'd be better just writing plain jane JS (or ES6!) and then wrapping that stuff w/ a build step. i just dont agree with locking yourself into a non-browser module format
[23:38:26] <roymiloh> I saw some tutorials it actually looks pretty easy
[23:38:37] *** dsdeiz has quit IRC
[23:38:38] *** tschundeee has joined #angularjs
[23:38:48] *** platonic_ has quit IRC
[23:38:59] <robdubya> they'll all work fine, really (browserify, webpack, w/e)
[23:39:05] <BahamutWC|Laptop> all the stuff out there on using commonjs with angular buys you absolutely nothing you don’t already get in angular
[23:39:16] <nickeddy> ^
[23:39:25] *** DoubleAW has joined #angularjs
[23:39:26] <robdubya> i just dont see the logic in writing node modules for the browser (again, when the browser is about to get a REAL module syntax)
[23:39:31] <roymiloh> btw I'm using nodjs as backend, I have *some* shared code
[23:39:37] *** uru is now known as uru|away
[23:39:41] *** flootz has joined #angularjs
[23:39:49] <flootz> does anyone have experience doing facebook login with firebase
[23:39:51] *** atomi has quit IRC
[23:40:04] <robdubya> ah, well, that makes some difference i suppose, but then i'd still be writing es6 and compiling to CJS (but i'm a bit bleeding edge)
[23:40:17] <ChadStrat> my ignorance here - what does someone mean when they add -fu to a word? Such as the sentence "just keep up on your Angular-fu"? Full Understanding?
[23:40:21] *** joshontheweb has joined #angularjs
[23:40:27] <robdubya> i know kung-fu
[23:40:31] *** Una has joined #angularjs
[23:40:34] *** cbennett has joined #angularjs
[23:40:35] <ChadStrat> noice
[23:41:00] *** tristanp has quit IRC
[23:41:12] <BahamutWC|Laptop> ChadStrat: just treating * in *-fu as a skill
[23:41:15] <roymiloh> robdubya: have you heared about isomorphic js? maybe that's the reason btw
[23:41:19] <robdubya> https://www.youtube.com/watch?v=6vMO3XmNXe4
[23:41:19] *** twelverobots has quit IRC
[23:41:25] <icfantv> ChadStrat: i don't think it stands for any word sequence necessarily, but rather lika "he's a javascript ninja"
[23:41:34] <ChadStrat> oh.
[23:41:35] *** ianpirro has joined #angularjs
[23:41:36] <ChadStrat> i c
[23:41:45] <BahamutWC|Laptop> you can’t see my javascript
[23:41:47] *** eBureau has joined #angularjs
[23:41:51] <BahamutWC|Laptop> it magically appears
[23:41:52] <icfantv> hehe
[23:41:57] <robdubya> bitches dont know about my javascript
[23:42:00] <ChadStrat> new boss used that...didnt' want to sound like a moron when I asked "Huh???"
[23:42:00] <icfantv> and disappears just as quietly
[23:42:11] *** boxmein has quit IRC
[23:42:19] *** d10n-work has joined #angularjs
[23:42:21] *** prbc has quit IRC
[23:42:34] *** TheAceOfHearts has joined #angularjs
[23:42:35] *** lele has joined #angularjs
[23:42:39] <nickeddy> ChadStrat: google-fu my young padawan, google-fu is the most important fu
[23:42:46] *** tristanp has joined #angularjs
[23:42:47] <flootz> Joshua Reeves
[23:42:49] *** sabrehagen1 has quit IRC
[23:42:49] *** bmac has quit IRC
[23:42:52] <BahamutWC|Laptop> my sleep-fu needs work
[23:42:54] <robdubya> roymiloh here's my summary on it : long term, the only true standard is going to be upcoming es6 modules. writing them (and then compiling them to amd / cjs / etc) means you're working from the standard. anything else is forever coupling yourself to somebody's invention
[23:42:58] * ChadStrat disappears angularly
[23:42:58] *** tristanp has joined #angularjs
[23:42:58] *** flootz has quit IRC
[23:43:10] *** g33k5z has quit IRC
[23:43:36] *** g33k5z has joined #angularjs
[23:43:45] <roymiloh> robdubya: and if you have to create a new app right now?
[23:43:56] *** dave_boling has joined #angularjs
[23:44:06] *** sonofdirt has quit IRC
[23:44:07] <robdubya> well, i'm doing it in es6 :D
[23:44:11] <roymiloh> would you use es6 ?
[23:44:16] <roymiloh> og
[23:44:18] <roymiloh> oh
[23:44:20] *** jdivock_ has joined #angularjs
[23:44:25] *** Evanion has quit IRC
[23:44:28] <robdubya> that has its own share of idiosyncracies, to be fair
[23:44:31] *** jeremymarc has quit IRC
[23:44:37] *** lele has quit IRC
[23:44:49] <roymiloh> using traceur?
[23:44:54] <robdubya> yep + systemJS
[23:44:55] *** Evanion has joined #angularjs
[23:45:00] <robdubya> (which works == in node, btw)
[23:45:08] *** platonic has joined #angularjs
[23:45:24] <roymiloh> why systemjs?
[23:45:32] *** tristanp has quit IRC
[23:45:45] *** twelverobots has joined #angularjs
[23:45:50] <roymiloh> and which idiosyncrasies? I need this product on production asap :-)
[23:45:53] <robdubya> cuz it loads everything (es6, commonJS, globals, AMD) and (again) is polyfilling the upcoming es6-loader spec
[23:45:55] *** SargoDarya has joined #angularjs
[23:46:49] *** lele has joined #angularjs
[23:47:06] <robdubya> https://github.com/robwormald/innit-project-kit (that one is using AMD, but that's es6 + angular)
[23:47:15] *** cbennett has quit IRC
[23:47:37] <roymiloh> loads everything to where? what does it mean load es6 / commonjs / etc?
[23:47:39] *** cbennett has joined #angularjs
[23:47:51] *** jgjhg has joined #angularjs
[23:47:54] *** erikruthven has joined #angularjs
[23:47:54] *** mennea has quit IRC
[23:48:07] *** g33k5z has quit IRC
[23:48:27] <robdubya> you have a bunch of code in files. a loader (system, browserify, amd, etc) all 'load' them into memory in a variety of ways
[23:48:32] *** mennea has joined #angularjs
[23:48:35] *** jgjhg has quit IRC
[23:48:50] *** sonofdirt has joined #angularjs
[23:49:14] *** lele has quit IRC
[23:49:16] *** bostonaholic has joined #angularjs
[23:49:28] <robdubya> i just figure if youre going to go through a compile step, might as well use the standard
[23:49:34] <robdubya> then you can compile TO w/e
[23:50:18] *** prbc has joined #angularjs
[23:50:37] *** fabiofb has quit IRC
[23:50:39] *** hiddentoken has quit IRC
[23:51:04] *** _mtr has quit IRC
[23:51:25] *** thomasreggi has quit IRC
[23:51:58] <roymiloh> it looks nice. but there's not systemjs there :O
[23:52:10] *** walden is now known as walden|afk
[23:52:11] *** chrisbirk has quit IRC
[23:52:30] *** Slowintrepid has quit IRC
[23:53:03] *** cuebix-wk has quit IRC
[23:53:39] *** lele has joined #angularjs
[23:54:07] *** say2joe has joined #angularjs
[23:54:10] *** tilgovi has joined #angularjs
[23:54:13] <robdubya> http://plnkr.co/edit/BDQFzfAuKRwJv32PVIFh?p=preview
[23:54:20] *** bostonaholic has quit IRC
[23:54:23] <robdubya> demo w/ es6 + angualr + systemJS
[23:54:32] *** yelvert has quit IRC
[23:54:48] *** juanlas has joined #angularjs
[23:55:07] *** danbkang has quit IRC
[23:55:08] <daptordarattler> Grokling, worked like a charm. Thanks
[23:55:24] *** bradmaxs has joined #angularjs
[23:55:47] *** mzabriskie has quit IRC
[23:56:01] *** cbennett has quit IRC
[23:56:04] <robdubya> roymiloh http://plnkr.co/edit/KnZUoxQyXlTbfg1lUsm3?p=preview look at that instead
[23:56:07] <robdubya> fucked up the last one :o
[23:56:09] *** jdivock_ has quit IRC
[23:56:29] <roymiloh> great >.>
[23:56:36] <roymiloh> I take a look
[23:56:37] <daptordarattler> UniBot: list
[23:56:42] <daptordarattler> UniBot: !list
[23:56:45] *** jdivock_ has joined #angularjs
[23:56:47] <robdubya> just rejigging a more pure decoupled one, sec
[23:57:05] <daptordarattler> Grokling, are there any commands I could use on Unibot to get more information about angular stuff?
[23:57:18] *** SargoDarya has quit IRC
[23:57:34] *** twelverobots has quit IRC
[23:57:35] *** BobbieBarker has joined #angularjs
[23:58:04] *** Afwas has quit IRC
[23:58:42] *** Zentdayn has joined #angularjs
[23:59:17] *** juampy has quit IRC
[23:59:31] *** yts has quit IRC
[23:59:37] *** diefans has quit IRC
top

   December 11, 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 | >