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

Toggle Join/Part | bottom
[00:00:01] *** kcm_ has quit IRC
[00:00:30] *** travm has quit IRC
[00:01:05] *** prbc has quit IRC
[00:01:24] *** jae has joined #angularjs
[00:01:36] *** nairys has joined #angularjs
[00:02:04] *** DrMabuse has quit IRC
[00:03:48] *** JohnFree has joined #angularjs
[00:03:59] <JohnFree> Hi guys. I want to do one-time-binding with $index. How can I do that?
[00:04:05] *** Skrypter has joined #angularjs
[00:04:14] *** matthoiland has joined #angularjs
[00:04:22] *** linojon has quit IRC
[00:04:56] *** linojon has joined #angularjs
[00:05:12] <JohnFree> Can someone help me?
[00:05:34] *** cthrax has joined #angularjs
[00:05:54] *** kcm has joined #angularjs
[00:06:19] *** travm has joined #angularjs
[00:06:19] <JohnFree> I don't know how to do this
[00:06:22] *** ctanga has joined #angularjs
[00:06:37] *** intellix has joined #angularjs
[00:07:07] *** bayousoft has joined #angularjs
[00:07:10] *** MaxV has joined #angularjs
[00:08:46] *** travm has quit IRC
[00:08:54] *** matthoiland has quit IRC
[00:09:10] *** soee__ has joined #angularjs
[00:10:42] *** vlad_starkov has quit IRC
[00:11:07] *** soee_ has quit IRC
[00:11:11] *** kuniyori has joined #angularjs
[00:11:30] *** bmac has quit IRC
[00:11:39] <JohnFree> hello
[00:11:40] <zomg> Are you have a performance problem?
[00:11:55] <zomg> having even
[00:12:02] <zomg> me no speak americano at this time of night
[00:12:05] <JohnFree> zomg: No. I only want to know how to do one-time-binding with "$index" in a ng-repeat
[00:12:36] <JohnFree> zomg: Mine is only a small problem
[00:12:41] *** vlad_starkov has joined #angularjs
[00:12:54] <zomg> Yeah I just wouldn't worry about that if you're not actually having an issue with it =)
[00:13:08] <zomg> I mean {{::$index}} oughta work, but I don't think it works with function calls
[00:13:23] *** boberober has quit IRC
[00:13:33] <zomg> hmm actually just try ::foo($index)
[00:13:36] <zomg> and see what happens :P
[00:13:41] *** joshontheweb has quit IRC
[00:13:50] <JohnFree> {{::$index}} doesn't work. I tried that
[00:14:04] <zomg> Are you trying to use it with ng-click or something?
[00:14:29] <JohnFree> zomg: I'm using it in ng-repeat
[00:14:40] *** grantfunke_ has joined #angularjs
[00:14:40] <JohnFree> zomg: Yeah and with ng-click
[00:14:44] *** dnull has joined #angularjs
[00:14:45] <zomg> Yeah {{}} is for string interpolation, it's just going to be a syntax error with something that already takes an expression
[00:14:48] *** jae has quit IRC
[00:14:55] *** shampine has joined #angularjs
[00:14:55] <zomg> so try something like ng-click="::whatever($index)"
[00:15:16] <zomg> I've not actually used that myself but I recall that I saw someone doing that
[00:15:30] *** vbirtocian has quit IRC
[00:15:41] *** doug64k has quit IRC
[00:15:57] <JohnFree> zomg: Why does {{:data.uri}} not work?
[00:16:20] <zomg> because {{}} is used for string interpolation and it isn't valid syntax for angular expressions
[00:16:32] <JohnFree> ok suddenly it's working. caching problem
[00:16:36] <zomg> heh
[00:16:59] <zomg> also I would recommend to avoid using $index in ng-clicks and such... we had some bugs caused by that in production
[00:17:24] <zomg> we had a list that was filterable, so the $index would point to the wrong index if the user was filtering it =)
[00:17:48] <zomg> so if possible, I'd recommend passing the object itself rather than its index
[00:18:44] <JohnFree> Ok I'm trying out your solution
[00:18:58] <JohnFree> zomg: But somehow I have to identify the entries. How shall I do it then?
[00:19:08] <JohnFree> zomg: How can I pass the object?
[00:19:12] <JohnFree> ah ok
[00:19:19] <JohnFree> zomg: So passing the object is better?
[00:19:38] *** travm has joined #angularjs
[00:19:40] *** Aerospark has quit IRC
[00:20:55] <zomg> Yeah, if you have the list of objects, you can always look up the index again
[00:21:01] *** zwacky has quit IRC
[00:21:06] *** dreambox has joined #angularjs
[00:21:14] <zomg> eg. let's say you have ng-repeat="item in list", ng-click="stuff(item)"
[00:21:30] <zomg> you can simply do var index = $scope.list.indexOf(item); to figure out the index if you need it for something
[00:21:30] <JohnFree> zomg: Can you give me a link where the problem with $index is described?
[00:21:52] *** edrocks has joined #angularjs
[00:21:59] <zomg> it's not documented anywhere, it's just a small gotcha we ran into with our app
[00:22:04] <dreambox> hey guys. I have 2 controllers. One of them is trigger a click event on a map, and it gets a location (lat,long) . All good. I have a second controller, that needs this same location for a different purpose.
[00:22:09] <JohnFree> ok
[00:22:11] <zomg> you can certainly use $index if you want, but that's just something to keep in mind
[00:22:17] <dreambox> I am guessing this is the time to use Factories or Services (?)
[00:22:40] <dreambox> Can I just somehow write the values on the $rootScope and get it over with or is it bad practice?
[00:23:13] <zomg> dreambox: yeah typically you'd use a service to "bridge" controllers like that
[00:23:35] *** rkpaul has joined #angularjs
[00:23:43] *** pbarbosa_ has joined #angularjs
[00:23:46] *** pbarbosa has quit IRC
[00:23:56] <dreambox> zomg: okay, and practically, do I just use some kind of public API , I basically "return" stuff?
[00:24:17] <dreambox> zomg: and then I call these public methods from each controller.. is that it?
[00:24:37] *** travm has quit IRC
[00:24:58] <dreambox> Angular is complaining when I attempt to make my Factories : Provider 'Getclickedposition' must define $get factory method.
[00:25:10] <dreambox> But I don't need to do any $get ..
[00:26:08] *** Reskp has quit IRC
[00:26:59] *** doug64k has joined #angularjs
[00:28:13] *** alexw has joined #angularjs
[00:28:25] <themime> dreambox: do you have a plunker?
[00:28:38] <themime> factories are typically separate from providers
[00:28:41] <Grokling> dreambox: http://plnkr.co/edit/PnP60l8sqZML20b0vEb6?p=preview.
[00:28:42] <dreambox> :(
[00:28:57] *** TinkerTyper has quit IRC
[00:29:00] <dreambox> I created the service using my yo:meanjs service generator.
[00:29:05] *** subr0utine has joined #angularjs
[00:29:25] *** Alina-malina has quit IRC
[00:29:28] *** inventor_ has joined #angularjs
[00:29:29] *** inventor_ is now known as apertoire
[00:29:29] <themime> dreambox: ah not familiar with that
[00:30:05] *** Alina-malina has joined #angularjs
[00:30:11] *** piecyk has quit IRC
[00:30:56] *** mjs2600 has joined #angularjs
[00:31:24] *** shampine has quit IRC
[00:31:42] <dreambox> I'll paste the gist of the factory you tell me if you see something ugly...
[00:31:51] *** intellix has quit IRC
[00:31:52] *** TinkerTyper has joined #angularjs
[00:32:10] *** danecando has quit IRC
[00:32:18] <Grokling> dreambox: Or just uplift the factory from that plunker I linked you..
[00:32:51] <JohnFree> Hey guys. How can I do one-time-binding for a ng-repeat with Angular 1.3.x. Do I have to put "::" in front of everything inside ng-repeat or only once in "ng-repeat"?
[00:33:06] *** cakirke has joined #angularjs
[00:33:30] *** soee__ has quit IRC
[00:33:33] <dreambox> https://gist.github.com/3b57200c7dbac39d5b47 there it is
[00:33:40] <dreambox> Grokling: ah sorry just saw that! thanks
[00:33:51] *** ctanga has quit IRC
[00:33:56] *** kalehv has joined #angularjs
[00:34:12] *** shampine has joined #angularjs
[00:34:28] <dreambox> Grokling: thing is, I don't need to do any hTTP requests - that's why angular's complaining. it expects one
[00:35:05] *** mjs2600 has quit IRC
[00:35:12] <Grokling> dreambox: You don't need to do http requests in factories at all..
[00:35:13] *** TheAceOfHearts has quit IRC
[00:35:13] *** bmac has joined #angularjs
[00:35:16] *** doug64k has quit IRC
[00:35:46] *** nairys has quit IRC
[00:35:52] <Grokling> Yeah, you don't pass $scope into a factory. At all.
[00:36:52] *** TinkerTyper has quit IRC
[00:36:55] <subr0utine> @JohnFree, http://stackoverflow.com/a/23903690
[00:37:07] <Grokling> Have a look at that plunker, ignore the http parts, and just get to grips with how it interacts with the controller.
[00:37:28] *** titanomachy has quit IRC
[00:37:34] <Grokling> What you have looks like it might be more at home in a directive link function?
[00:37:38] <dllama> i'm stuck on something, if anyone has a few minutes, would appreciate the help. http://plnkr.co/edit/dWVl8Kqd9oEI2QlauJuS?p=preview — i can filter the courses by category from main categories controller, but using the exact same function in a nested controller returns 0 or undefined, not sure hwat i'm doing wrong here but seems as though the params and the factory isn't properly being passed into the child
[00:37:47] *** shaisnir has joined #angularjs
[00:38:38] *** Aerospark has joined #angularjs
[00:39:52] *** TinkerTyper has joined #angularjs
[00:40:04] *** zanea|away is now known as zanea
[00:40:14] *** tbo_ has quit IRC
[00:40:15] *** bayousoft has quit IRC
[00:40:30] <themime> JohnFree: there are plenty of resources for that, i feel like at this point youre not doing any of your own research
[00:41:19] <JohnFree> themime: One small question
[00:41:20] *** hugofirth has quit IRC
[00:41:23] *** Reskp has joined #angularjs
[00:41:28] *** zwischenzug has joined #angularjs
[00:41:41] <dreambox> Grokling: Provider 'Getclickedposition' must define $get factory method. :( still ...
[00:41:54] *** MaxV has quit IRC
[00:42:18] <JohnFree> themime: http://plnkr.co/edit/yhfsr94DhQcppY8RQKyu?p=catalogue
[00:42:38] <dreambox> Grokling: do I need to pass $http as a parameter?
[00:42:38] <JohnFree> themime: If I use "::" in the ng-repeat and the data is changed in the controller then the change is not shown in the View
[00:42:54] <Grokling> dreambox: only if you're using $http for something.
[00:43:14] <Grokling> dreambox: make a plunker - much easier for people to help you.
[00:43:18] <dreambox> Grokling: then something's very wrong here.. I copied the factory style from an old app that helps
[00:43:40] <dreambox> Grokling: My Git repo is it enough? I'd need 1h to upload all files in plunker :( and it's 1AM here
[00:43:43] *** rho has quit IRC
[00:43:54] *** joshontheweb has joined #angularjs
[00:43:59] <JohnFree> JohnFree: I'm doing my research.
[00:44:24] *** VinceZa has quit IRC
[00:44:43] <JohnFree> I just don't understand whether Angular creates only one single watcher for ng-repeat in my example or extra watchers for each element within the ng-repeat
[00:44:58] <dreambox> Grokling: here it is https://github.com/gkatsanos/isawu
[00:45:06] <Grokling> dreambox: The idea of a plunker is to isolate the very specific part that's causing trouble, not to replicate your whole app. That way, you do the work to filter out all the code that's not relevant, and we can look at the problem piece.
[00:45:21] *** titanomachy has joined #angularjs
[00:45:29] <dreambox> Grokling: aha! ye I know I usually make it.
[00:45:29] <Grokling> 9/10 times you'll solve it yourself in the process of isolating and replicating it in plunker.
[00:45:58] <JohnFree> has anyone an idea?
[00:46:14] <dreambox> Grokling: if that's any help the two files in question in the repo I posted are : public/modules/messages/services/getclickedposition.client.service.js and public/modules/messages/controllers/map-controller.client.controller.js
[00:47:19] *** rtpg has joined #angularjs
[00:48:16] *** jmichaelward has quit IRC
[00:48:33] *** bmac has quit IRC
[00:48:47] *** mrtoadsc has quit IRC
[00:49:20] *** scottc5 has quit IRC
[00:50:04] <Grokling> dreambox: Get $scope out of your factory for a start. It has no place being in there.
[00:50:08] *** Reskp has quit IRC
[00:50:12] *** dylang has quit IRC
[00:50:42] *** bmac has joined #angularjs
[00:50:50] <dreambox> Grokling: done. But I think it might be necessary for leaflet
[00:50:52] *** doug64k has joined #angularjs
[00:51:26] <subr0utine> JohnFree, you're binding the repeated elements name property to the view only once so any changes you make to to any of the items name property will not be reflected. Did you read the SO link I sent?
[00:51:31] *** TripTastic has joined #angularjs
[00:51:33] <Grokling> dreambox: No. Controllers interact with $scope. Factories interact with data. If you want to connect the two, do it in the controller.
[00:52:02] <dreambox> Grokling: okay.. but how do I do $on now without a $scope...
[00:52:29] *** rtpg has quit IRC
[00:52:33] *** JBreit has quit IRC
[00:52:36] <Grokling> $on is a directive thing. Not a factory thing. Maybe you need to make a directive to get things squared up?
[00:52:41] *** tkimmel has joined #angularjs
[00:52:45] *** DrMabuse_ has joined #angularjs
[00:52:49] *** whitebook has joined #angularjs
[00:52:59] *** Johnny13371337 has quit IRC
[00:53:14] *** travm has joined #angularjs
[00:54:11] <dreambox> Grokling: I already have a directive :) the leaflet directive which handles all the events on the map etc
[00:54:47] <Grokling> all except for the $on('leafletDirectiveMap.click') event??
[00:54:49] *** Aerospark has quit IRC
[00:54:52] <dreambox> Grokling: but then what, do I just add the directive to both controllers, but how do I listen for the same event, to get the same event parameters?
[00:54:52] *** Oddman has joined #angularjs
[00:55:21] *** Aerospark has joined #angularjs
[00:55:25] *** mjs2600 has joined #angularjs
[00:55:29] *** danecando has joined #angularjs
[00:55:29] <dreambox> Grokling: ok let's take it from the start:) There's a click event that comes from the directive. .it's some Map thing. It gives back a list of args...
[00:55:43] <dreambox> Grokling: Till now, this event was inside the MapController . All fine.
[00:55:58] *** Aerospark has quit IRC
[00:56:00] <dreambox> Grokling: Now I realized, I need these "args" in the MessagesController .
[00:56:04] *** TheAceOfHearts has joined #angularjs
[00:56:05] *** MuffinMan` has quit IRC
[00:56:15] *** Aerospark has joined #angularjs
[00:56:21] <Grokling> Add the factory to your controller (or the controller of a parent state), Let the controller put some factory stuff into $scope. Use the directive in your html, and let it refer to $scope.something() to do it's thing.
[00:56:32] *** BillCriswell has quit IRC
[00:56:42] <dreambox> shit, I lost you :)
[00:56:45] *** disorder20 has quit IRC
[00:56:47] *** klaut_ has quit IRC
[00:57:08] *** tilgovi has joined #angularjs
[00:57:25] *** whitebook has quit IRC
[00:57:39] <dreambox> Grokling: Where do I do $on('leafletDirectiveMap.click', function(event, args){ ?.. that's the essential question
[00:57:40] *** tkimmel has quit IRC
[00:57:48] <Grokling> Okay. Factory => Controller => $scope. HTML => directive => $scope.
[00:58:01] <Grokling> Where: in the directive link function.
[00:58:06] <dreambox> Grokling: if I do $on('leafletDirectiveMap.click', function(event, args){ inside Controller X, then I need way to send "args" to Controller Y .
[00:58:33] *** anapitupulu has joined #angularjs
[00:58:44] <Grokling> No. You use the factory to 'cache' your args. The two controllers can reference the same factory simultaneously.
[00:58:48] *** joshontheweb has quit IRC
[00:59:02] *** annlewis has quit IRC
[00:59:09] *** trustyhank has joined #angularjs
[00:59:20] <Grokling> Communication between controllers should be done via a factory/service.
[00:59:21] *** nickBek has quit IRC
[00:59:44] <dreambox> aha so.. Event triggered -> pass the args to a factory (somehow) -> emmit some type of eventmessage (?) -> controller Y gets the args
[00:59:51] <dreambox> Grokling: did I get it more or less right?
[01:00:04] *** _ritchie_ has joined #angularjs
[01:00:57] <Grokling> Almost. But no emitting. Because the other controller's view is bound to some $scope property(that you set up in the controller, and which refers to the factory) there's no need to do anything - the change will already happen.
[01:01:40] *** edrocks has quit IRC
[01:02:27] <dreambox> Grokling: cool. if Only I had a little example showing how to pass the "args" to the factory :)
[01:02:43] <dreambox> Grokling: cause usually I m used to the opposite.. the factory giving something, not taking something
[01:03:48] *** mrits has joined #angularjs
[01:04:01] *** tristanp has joined #angularjs
[01:04:26] *** Oddman has quit IRC
[01:04:29] *** danflies has quit IRC
[01:04:31] <Grokling> Make a function in your factory called something obvious like 'setArgs()' which takes some values and sets a property in the factory. then in your controller: $scope.setArgs = myFactory.setargs. The just get your directive to call that function with some args, and you're done.
[01:04:47] <Grokling> *s The:Then
[01:05:04] *** JohnFree has quit IRC
[01:05:10] <dreambox> ah I have to change the directive?..
[01:05:28] *** jonr22 has quit IRC
[01:05:41] <dreambox> ok sorry I have to find an easier solution cause that's a contrib directive and I'm not ready for that :)
[01:05:45] *** bmac has quit IRC
[01:06:02] <dreambox> I'll break the updates etc..
[01:06:07] *** bmac has joined #angularjs
[01:06:44] <Grokling> Make your own supplementary directive, and just add it to the html tag. Won't break anything.
[01:07:00] <dreambox> why do I need a directive?
[01:07:23] <dreambox> I want to find a simpler solution, it's just sharing 2 variables...
[01:07:24] *** okapi has quit IRC
[01:07:33] *** tilgovi has quit IRC
[01:07:36] <Grokling> Because you're dealing with DOM events. DOM == directives.
[01:08:01] *** RedOrangeZ has quit IRC
[01:08:49] *** firelinks has joined #angularjs
[01:08:51] *** robertkelly has joined #angularjs
[01:09:17] *** mdw has quit IRC
[01:09:40] *** robertkelly has joined #angularjs
[01:10:14] *** robertkelly has joined #angularjs
[01:11:41] *** asher^ has joined #angularjs
[01:12:33] <dreambox> Whatever I do, I still get the error message about missing $get ..
[01:12:51] <dreambox> https://docs.angularjs.org/error/$injector/pget?p0=Getclickedposition
[01:13:04] *** robertkelly has quit IRC
[01:13:22] *** Txandy has quit IRC
[01:13:22] *** BillCriswell has joined #angularjs
[01:14:03] *** danecando has quit IRC
[01:15:04] *** emmesswhy has joined #angularjs
[01:15:18] *** marcjs_ has joined #angularjs
[01:15:33] *** kuniyori has quit IRC
[01:16:05] *** marcjs has quit IRC
[01:16:42] *** emmesswhy has quit IRC
[01:18:38] *** bayousoft has joined #angularjs
[01:19:05] *** tristanp has quit IRC
[01:19:33] *** josh-k_ has quit IRC
[01:19:55] *** Aerospark has quit IRC
[01:20:01] *** josh-k has joined #angularjs
[01:20:13] *** emmesswhy has joined #angularjs
[01:20:42] *** fixl has joined #angularjs
[01:21:42] *** emmesswhy has quit IRC
[01:21:59] <dreambox> ah it was some [ ] .. wrong syntax
[01:22:44] *** boberober has joined #angularjs
[01:23:09] *** umib0zu has quit IRC
[01:23:58] *** okapi has joined #angularjs
[01:24:03] <dllama> can anyone please explain to me why in my coursesCategoryController i can access some scopes from the parents but not the factory http://plnkr.co/edit/dWVl8Kqd9oEI2QlauJuS?p=preview
[01:24:24] *** josh-k has quit IRC
[01:24:44] *** travm has quit IRC
[01:25:04] *** travm has joined #angularjs
[01:26:50] <dllama> this is driving me crazy
[01:27:29] *** boberober has quit IRC
[01:28:02] *** ProLoser has quit IRC
[01:28:03] *** bmac has quit IRC
[01:28:19] *** Aerospark has joined #angularjs
[01:28:23] *** shaisnir has quit IRC
[01:28:29] *** annlewis has joined #angularjs
[01:30:13] <dllama> dont all jump in at once now :)
[01:30:31] *** mrits has quit IRC
[01:33:05] *** mdel has quit IRC
[01:33:40] *** travm has quit IRC
[01:33:55] *** MrBaboon has quit IRC
[01:34:11] *** sacho_ has quit IRC
[01:34:25] *** annlewis has quit IRC
[01:34:36] *** sacho_ has joined #angularjs
[01:34:40] *** pbarbosa_ has quit IRC
[01:35:24] *** dalguete has joined #angularjs
[01:36:07] *** jae has joined #angularjs
[01:37:28] *** Alina-malina has quit IRC
[01:37:30] *** tripu has joined #angularjs
[01:38:13] *** travm has joined #angularjs
[01:39:16] *** emmesswhy has joined #angularjs
[01:39:33] *** Rejected has quit IRC
[01:40:47] *** Alina-malina has joined #angularjs
[01:40:55] *** travm has quit IRC
[01:41:14] *** threesixes has quit IRC
[01:41:17] *** grantfunke_ has quit IRC
[01:42:21] <qdk> How would i make ng-repeat="item in items" work when items is an array with random index values? (I use item.id as array index to easy access the item by id instead of going through the array every single time)
[01:43:34] *** marshall_ has joined #angularjs
[01:43:36] *** robdubya has joined #angularjs
[01:43:55] *** dylang has joined #angularjs
[01:44:12] *** bayousoft has quit IRC
[01:44:55] <dllama> i use a find functino for that
[01:45:08] <dllama> and u can find specific items in your scope based on whichever value
[01:45:11] *** MrBaboon has joined #angularjs
[01:45:24] *** vlitzer_ has quit IRC
[01:45:29] <dllama> lodash offers .where() and find() i belive
[01:45:47] <dreambox> factories, services, providers.. since when does it have to be so hard to write some damn javascript...
[01:46:03] <dreambox> fuckin hell I hope theres gonna be some easier framework
[01:46:06] <dreambox> soon
[01:46:07] <robdubya> boohoohoo
[01:46:15] <dllama> hi robdubya
[01:46:18] *** Aerospark has quit IRC
[01:46:19] <qdk> dllama: You writing to me, right?
[01:46:26] <dllama> before i was yes
[01:46:39] <dreambox> Angular is javascript for ex-java developers
[01:46:40] <dllama> what i meant was, u can still use item in items syntax,
[01:46:41] <qdk> dllama: Ok, thank you... Ill look into that.
[01:46:46] <dreambox> thats why it looks as crap as it does.
[01:46:58] *** okapi has quit IRC
[01:46:59] *** shinnya has quit IRC
[01:47:01] *** dreambox has quit IRC
[01:47:24] <Grokling> dreambox: It's going to be hard if you go about it all backwards for sure ;-)
[01:47:35] *** threesixes has joined #angularjs
[01:47:44] <robdubya> try #whinersJS
[01:47:45] *** hippobottamus has joined #angularjs
[01:47:46] <robdubya> this is for winners
[01:47:58] <Grokling> lol@robdubya
[01:48:02] <qdk> dllama: how? coz it seems like item in items will go though ever single index in the array, returning a lot of undefined values to item.
[01:48:07] *** travm has joined #angularjs
[01:48:26] <Grokling> qdk: your strategy of using id as the index is horribly flawed.
[01:49:02] <dllama> qdk: ng-repeat is just looping through items in an array, i dont think it actually cares what your id is
[01:49:27] *** bayousoft has joined #angularjs
[01:49:28] <dllama> but i meant if u want to later find a specific item based on id
[01:49:48] *** MrBaboon has quit IRC
[01:49:54] <qdk> dllama: exactly... It doesn care if the index contains any values... and since my last id is about 200000 it goes though 200000 records, but I only have data in about 100 of them.
[01:50:07] <dllama> ooh i see
[01:50:11] <dllama> umm, filter against undefined
[01:50:21] *** Aerospark has joined #angularjs
[01:50:24] <dllama> or other values i guess
[01:50:24] <sakustar> where is dream box :--(
[01:50:33] *** ajenkins has joined #angularjs
[01:50:37] <Grokling> qdk: Start at the beginning, why the array index scheme in the first place?
[01:50:38] <qdk> Grokling: I kinda agree, since im trying to use an array as a hash (or associated array).
[01:50:47] <sakustar> why do funny people always disappear
[01:50:48] *** travm has quit IRC
[01:50:57] *** mtho11 has joined #angularjs
[01:51:00] *** travm has joined #angularjs
[01:51:12] <Grokling> qdk: Use a hash as a hash... it works much better ;-)
[01:51:42] *** shinnya has joined #angularjs
[01:52:23] *** patric100e99 has joined #angularjs
[01:52:56] *** danecando has joined #angularjs
[01:52:56] <qdk> Grokling: every sec i pull fresh data from a DB call. The data is used to draw/update object on the screen, but only when some data changes (current data != new data)... If i use IDs i can match the data directly.. without I have to go though the array of objects 100*100
[01:53:07] *** matthoiland has joined #angularjs
[01:53:47] <qdk> Grokling: So I should make an object with the item.ids as keys for the data instead?
[01:54:29] <qdk> like {my_hash: {id_1: {obj}, id_2: {obj}}}?
[01:54:49] <Grokling> qdk: yes. Nothing stops you pulling some/all of those objects into an array as well.
[01:55:06] *** Alina-malina has quit IRC
[01:55:14] <Grokling> (because ng-repeat likes arrays)
[01:55:48] *** robdubya has quit IRC
[01:55:51] <qdk> Grokling: If i do that everything will be very inresponsive, coz it will redraw too many objects every sec.
[01:56:00] *** one0one has joined #angularjs
[01:56:05] *** travm has quit IRC
[01:56:22] <qdk> Grokling: Yes, so Im trying to honor ng-repeats wishes.
[01:56:27] *** joshontheweb has joined #angularjs
[01:56:47] *** motionman has joined #angularjs
[01:57:22] *** patric100e99 has quit IRC
[01:57:26] <Grokling> qdk: It should only redraw the changed objects..
[01:57:27] <dllama> I'm not undersatnding something with factories and nested scopes
[01:57:31] <qdk> So i translate array[0..100] to array[ID--ID]] making it array[11..200000] when console.log() it.
[01:57:34] *** marcjs__ has joined #angularjs
[01:57:40] *** matthoiland has quit IRC
[01:57:58] *** emmesswhy has quit IRC
[01:58:02] *** Jon31 has joined #angularjs
[01:58:04] <dllama> In a nested scope, i can't access the factory without injecting it, but when i inject it, i can't access perviously instantiated arrays
[01:58:07] <qdk> Grokling: yes, so I need to target to updated objects only.. and array[0..100] is SHIT at that.
[01:58:30] *** dylang has quit IRC
[01:58:37] <Grokling> But a hash isn't shit at that. It
[01:58:40] <qdk> to target the*
[01:58:45] <Grokling> should be quite fast.
[01:59:19] *** pipoo has quit IRC
[01:59:19] <qdk> Grokling: Yes, but I havent seen hashes in js... perhaps I didnt look hard enough.
[01:59:38] *** travm has joined #angularjs
[01:59:54] <Grokling> myHash = {id1:object, id2:object, ...}
[01:59:58] *** marshall_ has quit IRC
[02:00:12] *** mjs2600 has quit IRC
[02:00:42] *** marcjs_ has quit IRC
[02:01:04] <qdk> Grokling: ok, so what I suggested. :-) and does ng-repeat like to play with myHash?
[02:01:12] *** kuniyori has joined #angularjs
[02:01:44] *** travm has quit IRC
[02:01:51] *** threesixes has quit IRC
[02:02:21] <Grokling> Yes, like you suggested.
[02:02:24] <Grokling> qdk: http://jsfiddle.net/WRtqV/1/
[02:02:57] *** Foxandxss has quit IRC
[02:03:13] *** svteoi has quit IRC
[02:04:37] *** subr0utine has quit IRC
[02:05:27] *** subr0utine has joined #angularjs
[02:05:44] <qdk> Grokling: Cool, thanks.. Changed it a bit, but how do I save my changes in fiddle and link you back?
[02:06:01] <Grokling> qdk 'fork'
[02:06:17] <qdk> http://jsfiddle.net/jfjmLbem/
[02:08:06] <qdk> Now I just need to make my cakephp backend output that format.
[02:08:27] *** moafoca_ has quit IRC
[02:08:29] *** AciD`` has quit IRC
[02:08:35] *** apertoire has quit IRC
[02:09:29] <Grokling> qdk: Not necessarily? Are you plumbing this through a factory? I'd imagine that you'd map your way through the response from your backend, compare it to the values in your hash, and change the ones that need it?
[02:10:00] <qdk> yes, i have $http in a factory.
[02:10:26] *** rburns has joined #angularjs
[02:10:30] <Grokling> and your backend is returning a JSON array right?
[02:10:53] *** SonikBoom has quit IRC
[02:10:59] <Grokling> wait - do you have 'computers' in a factory
[02:11:00] <Grokling> ?
[02:11:09] <qdk> Still not sure how ill manage to maintain the data within hte factory instead of sending a callback/promise back to "the" controller..
[02:11:21] <qdk> Grokling: yes and yes.
[02:11:23] *** hippobottamus has quit IRC
[02:11:35] *** Jon31 has quit IRC
[02:11:51] *** Jon31 has joined #angularjs
[02:12:13] *** hippobottamus has joined #angularjs
[02:12:14] <Grokling> Use the controller to connect your factory hash to $scope. Let the factory worry about what's in the hash, and how it gets there.
[02:12:47] *** marcjs__ has quit IRC
[02:13:10] *** sacho_ has quit IRC
[02:13:35] *** sacho_ has joined #angularjs
[02:13:36] *** brettfrable has joined #angularjs
[02:14:21] *** browles has quit IRC
[02:14:24] *** imjakechapman has joined #angularjs
[02:14:51] *** emmesswhy has joined #angularjs
[02:14:58] *** browles has joined #angularjs
[02:15:06] *** browles has quit IRC
[02:15:17] <qdk> Grokling: http://pastebin.com/L6mxC9YH
[02:15:23] *** emmesswhy has quit IRC
[02:16:52] *** inventor_ has joined #angularjs
[02:16:59] *** inventor_ is now known as apertoire
[02:17:00] *** Alina-malina has joined #angularjs
[02:17:11] *** sheerun has quit IRC
[02:17:27] <qdk> Grokling: http://pastebin.com/FHVai4dL <- with the factory too.
[02:17:56] *** joebobjoe has joined #angularjs
[02:18:46] <joebobjoe> What code should I expect to share between the front-end and back-end in a MEAN stack?
[02:20:05] <qdk> joebobjoe: Though knowing very little about the MEAN stack, I would say non.
[02:20:24] <joebobjoe> qdk, What about data validation and models?
[02:21:38] *** rtpg has joined #angularjs
[02:21:49] *** mrits has joined #angularjs
[02:22:02] *** michaelSharpe has joined #angularjs
[02:22:04] <qdk> joebobjoe: as far as it made sense to me, the backend data model isnt accessible directly, but you would get a well structured JSON to work with in the frontend.
[02:22:19] *** TyrfingMjolnir has quit IRC
[02:22:28] *** Akufen has quit IRC
[02:22:29] *** joshontheweb has quit IRC
[02:23:13] *** _ritchie_ has quit IRC
[02:23:21] <qdk> joebobjoe: I did see some fancy module or whatever that make it possible to access a mongodb directly from the frontend, but that would hardly be a wise nor secure idea.
[02:23:33] *** imjakechapman has quit IRC
[02:23:45] *** jordandotdev has joined #angularjs
[02:24:06] *** brunoB has joined #angularjs
[02:25:02] *** travm has joined #angularjs
[02:25:42] *** kirfu has quit IRC
[02:26:24] *** michaelfavia has joined #angularjs
[02:26:24] *** michaelfavia has joined #angularjs
[02:28:24] <dllama> ok, for the life of me, i dont understand why a function inside of a factory is only returning [find: function] rather thn the returned values :(
[02:28:30] <joebobjoe> qdk, Doesn't angular have models?
[02:29:28] <qdk> dllama: you "run" the function where you return it to and there the function return somewhat.
[02:29:32] *** ajk27 has quit IRC
[02:30:35] *** dalguete has quit IRC
[02:30:37] *** jonr22 has joined #angularjs
[02:30:44] <dllama> hmm i think i may know whats going on here,
[02:30:58] <qdk> joebobjoe: well yes, but not the same way.
[02:31:13] <dllama> its just weird whats going on here :/
[02:31:22] <dllama> and its not making any sense to me
[02:31:42] <joebobjoe> qdk, Okay. What about data validation? Can I share data validation code?
[02:32:28] <dllama> return _.uniq(_.filter(courseCache, {'category_name_slug': name}), 'name_slug'); .. that works from inside of the parent controller where i'm generating courseCache, but in child controllers, unable to access the originally stored array
[02:32:43] *** browles has joined #angularjs
[02:33:10] <dllama> basically, in contorller 1, i can take an array and fiter it based on what i just pasted, but in a child controller, i can't manage to load just the already filtered data
[02:33:19] *** whitebook has joined #angularjs
[02:33:36] *** cthrax has quit IRC
[02:33:39] <Grokling> qdk: I'd do something like: http://pastebin.com/DWF25z9P
[02:34:19] *** williamherry has joined #angularjs
[02:34:23] *** Nizumzen has quit IRC
[02:34:27] <qdk> joebobjoe: not really, but you wouldnt wanna "share" it.. you just make a call the the backend a have it validate it and return with the result of it.
[02:35:02] <joebobjoe> qdk, But that doesn't work if I want to make my app work offline
[02:35:08] *** jonr22 has quit IRC
[02:35:14] <qdk> joebobjoe: Im guessing you are looking for something where you can do data.validate in both front and back having written the code only one place, right?
[02:35:25] <joebobjoe> qdk, Yea
[02:35:42] <qdk> joebobjoe: Depending on the app, you more or less dont need a backend.
[02:36:07] <joebobjoe> qdk, No I want it to work offline then sync up
[02:36:29] <qdk> joebobjoe: using the MEAN stack means that you have a backend and is more or less "online"... even if you are not connected to any network.
[02:37:01] <joebobjoe> qdk, Well what stack do you recommend for offline apps?
[02:37:09] <qdk> joebobjoe: You just connect to localhost:<port>/myApp make your app appear online.
[02:37:27] <joebobjoe> what?
[02:37:56] <qdk> joebobjoe: Guessing any compiled language could be recommended for offline apps.
[02:39:10] <qdk> joebobjoe: MEAN stack uses a small local webserver (node.js (the N)) to serve the app to you. Even if you in an offline state.
[02:39:48] <joebobjoe> qdk, What?
[02:39:52] <joebobjoe> qdk, I mean that the user is offline
[02:39:56] <joebobjoe> IN production
[02:40:35] *** robdubya has joined #angularjs
[02:40:52] *** scottc5 has joined #angularjs
[02:41:00] *** mrtoadsc has joined #angularjs
[02:41:02] *** danflies has joined #angularjs
[02:41:29] *** rburns has quit IRC
[02:41:51] *** tkimmel has joined #angularjs
[02:41:52] <Grokling> qdk: Regarding your factory: I'd do something like: http://pastebin.com/DWF25z9P (I have to run now though, so it's probably as clear as mud !!)
[02:41:56] *** gunn has joined #angularjs
[02:42:24] <qdk> joebobjoe: hmmm, not sure if we are passing by each other or if you not aware what the MEAN stack really is?
[02:42:47] <qdk> Grokling: Looking at it now. :-) thank you.
[02:43:04] <qdk> Grokling: Just need to look up stuff like prototype stuff in js.
[02:43:37] *** hecatonicosachor has joined #angularjs
[02:44:13] <Grokling> qdk: You don't really need that in this half complete code I've dumped you with.. Unless you go 'properly' and in your processData function do "new Computer(json);"
[02:44:32] <joebobjoe> qdk, I want my app to work without an internet connection and then sync up with the backend when the user regains and internet connection
[02:44:35] <joebobjoe> Like offline gmail
[02:44:44] <Grokling> which you probably should.. but it depends on what else you're doing with it after.
[02:45:48] *** marr has quit IRC
[02:46:46] *** gunn has quit IRC
[02:46:50] <qdk> Grokling: Well I my working app, build using jquery and simulation a class in JS with a plain function I did go the class/object way, it works, but its not pretty. :-) So would like to build it pretty as well.
[02:47:00] <qdk> with an angular mindset.
[02:47:06] *** DrMabuse_ has quit IRC
[02:47:07] *** tkimmel has quit IRC
[02:47:10] *** sacho_ has quit IRC
[02:47:20] *** anomalophobe has joined #angularjs
[02:47:30] *** Akufen has joined #angularjs
[02:47:33] *** DrMabuse has joined #angularjs
[02:47:48] *** williamherry has quit IRC
[02:48:14] *** mtho11 has quit IRC
[02:48:50] *** DrMabuse has quit IRC
[02:48:58] *** gunn has joined #angularjs
[02:49:00] *** DrMabuse has joined #angularjs
[02:49:07] *** gunn has quit IRC
[02:49:42] *** mtho11 has joined #angularjs
[02:49:48] *** gunn has joined #angularjs
[02:49:55] <qdk> joebobjoe: Someone probably made a module for node.js that can handle this online/offline challenge, but node.js is an "online service", so if you need the work offline, is up to angular, jquery or whatever JS you wanna use.
[02:50:41] *** joebobjoe has quit IRC
[02:52:59] *** michaelSharpe has quit IRC
[02:53:40] *** DrMabuse has quit IRC
[02:55:31] <deweydb> god damn circular dependancies
[02:55:54] <deweydb> too much abstraction
[02:55:57] <deweydb> making my brain hurt
[02:56:32] *** mven has quit IRC
[02:56:32] *** mitchdotpro has joined #angularjs
[02:57:07] *** nathanic has quit IRC
[02:57:08] <mitchdotpro> Hey guys, can someone help me? I am trying to get the length attribute of a field but having no luck. I think its possibly due to the fact that the ng-model on the field has a period in it.
[02:57:11] *** rburns has joined #angularjs
[02:57:52] *** mitchdotpro has left #angularjs
[02:58:12] *** mrits has quit IRC
[02:58:18] *** mitchdotpro has joined #angularjs
[02:58:34] <deweydb> well did you try taking the period out to confirm your suspicion?
[02:58:37] *** mven has joined #angularjs
[02:59:00] <deweydb> not sure i really understand your problem
[02:59:13] *** nathanic has joined #angularjs
[02:59:24] <deweydb> maybe paste some code or something into a plnkr
[02:59:59] <mitchdotpro> I sandboxed it, it’s not the cause
[03:00:07] *** michaelfavia has quit IRC
[03:00:08] <mitchdotpro> Guessing it must be a scope issue
[03:00:22] <deweydb> you're getting the length attr in a directive?
[03:00:28] <mitchdotpro> Essentially I am building a character counter, i.e. 450 characters left
[03:00:36] *** sacho_ has joined #angularjs
[03:00:36] *** travm has quit IRC
[03:00:39] <mitchdotpro> http://jsfiddle.net/9DbYY/
[03:00:44] <deweydb> oh, the actual length, not an attr
[03:00:47] <mitchdotpro> Was using that fiddle as a basis
[03:01:07] *** quantax- has quit IRC
[03:01:13] *** williamherry has joined #angularjs
[03:01:32] <deweydb> you're getting a console error?
[03:01:36] <deweydb> what is it
[03:01:55] <mitchdotpro> Unfortunately not
[03:02:08] <dllama> ok, have no idea what i'm doign wrong anymore, i'm trying everything i can, but for the life of me, can't get this plnk to work :(
[03:02:09] *** michaelfavia has joined #angularjs
[03:02:33] *** jsheely|ltop has joined #angularjs
[03:03:02] *** kd` has quit IRC
[03:03:17] *** ree has quit IRC
[03:03:28] *** dylang has joined #angularjs
[03:04:02] *** hecatonicosachor has quit IRC
[03:04:31] <alexw> If an entity has {"first_name":"sdf","last_name":"sdfsdf","positions":{"shareholder":true}}
[03:04:33] *** Una has joined #angularjs
[03:04:37] *** williamherry has quit IRC
[03:04:43] <alexw> How do I filter by entities having positions.shareholder == true
[03:04:44] <deweydb> mitchdotpro: you should be able to do things like ng-model="someobj.child"
[03:04:45] *** williamherry has joined #angularjs
[03:04:54] <deweydb> i do it all the time
[03:05:04] *** grantfunke_ has joined #angularjs
[03:05:15] *** joshontheweb has joined #angularjs
[03:05:16] *** shampine has quit IRC
[03:05:20] <mitchdotpro> Yep, you’re right dude
[03:05:32] <mitchdotpro> I’ll keep messing around :)
[03:05:42] <deweydb> if you show me the code i could probably figure it out a lot easier
[03:05:56] *** ree has joined #angularjs
[03:06:01] *** Fishy has joined #angularjs
[03:06:43] *** edrocks has joined #angularjs
[03:06:53] *** Una_ has joined #angularjs
[03:07:35] *** g3funk has quit IRC
[03:08:27] <mitchdotpro> deweydb: Sorry man, I just spoke to the other dev who has been working on this. Long story short, he has changed some core Angular stuff to work with Twig in PHP.
[03:08:34] *** Una_ has quit IRC
[03:08:37] <mitchdotpro> Shaking my head so hard right now it might fall off.
[03:08:50] *** Una_ has joined #angularjs
[03:08:51] *** g3funk has joined #angularjs
[03:08:52] <deweydb> dafuck
[03:09:01] <deweydb> backenddevproblems
[03:09:22] *** Una_ has quit IRC
[03:09:45] *** scythe__ has quit IRC
[03:09:51] *** Una has quit IRC
[03:10:05] *** kd` has joined #angularjs
[03:10:06] <dllama> http://plnkr.co/edit/dWVl8Kqd9oEI2QlauJuS?p=preview — really not undersatnding what i'm doing wrong on line 215 of app.js
[03:10:25] <dllama> no matter what i try, factory keeps returning [find: function] instead of the actual objects
[03:10:35] *** subr0utine has quit IRC
[03:11:19] *** mglvl has quit IRC
[03:11:36] *** asher^ has quit IRC
[03:12:20] *** asher^ has joined #angularjs
[03:12:35] *** Fire-Dragon-DoL has quit IRC
[03:13:44] *** edrocks has quit IRC
[03:13:50] *** glaksmono has joined #angularjs
[03:13:52] *** gunn has quit IRC
[03:14:00] <williamherry> quit
[03:14:02] *** williamherry has quit IRC
[03:14:54] *** gunn has joined #angularjs
[03:15:20] *** elrabin has joined #angularjs
[03:15:54] *** gunn has joined #angularjs
[03:16:04] *** gunn has quit IRC
[03:16:07] <dllama> what?
[03:16:43] *** elrabin has quit IRC
[03:16:54] *** gunn has joined #angularjs
[03:16:54] *** ProLoser has joined #angularjs
[03:17:04] *** gunn has quit IRC
[03:17:36] *** whitebook has quit IRC
[03:17:43] *** gunn has joined #angularjs
[03:18:42] *** mjs2600 has joined #angularjs
[03:18:58] *** saint-ron has quit IRC
[03:20:31] *** seanmarcia has quit IRC
[03:20:39] *** g3funk has quit IRC
[03:21:18] *** ProLoser has quit IRC
[03:21:19] *** moritzs has quit IRC
[03:22:22] *** SahanH has joined #angularjs
[03:22:32] *** plexiv has quit IRC
[03:22:51] *** snurfery has quit IRC
[03:22:58] *** whitebook has joined #angularjs
[03:23:21] *** g3funk has joined #angularjs
[03:23:25] *** Fishy has quit IRC
[03:24:19] *** plexiv has joined #angularjs
[03:24:27] *** Aerospark has quit IRC
[03:24:39] *** shampine has joined #angularjs
[03:25:12] *** Fishy has joined #angularjs
[03:25:30] *** seanmarcia has joined #angularjs
[03:25:48] *** caitp- has joined #angularjs
[03:26:23] *** hswolff has quit IRC
[03:27:25] *** Aerospar_ has joined #angularjs
[03:27:26] *** rburns has quit IRC
[03:27:47] *** rburns has joined #angularjs
[03:27:48] *** ralphholzmann has quit IRC
[03:28:08] *** TyrfingMjolnir has joined #angularjs
[03:28:45] *** caitp has quit IRC
[03:28:46] *** caitp- is now known as caitp
[03:29:08] *** dylang has quit IRC
[03:29:39] *** ralphholzmann has joined #angularjs
[03:30:42] *** hswolff has joined #angularjs
[03:31:38] *** mattblang has joined #angularjs
[03:31:53] *** rtpg has quit IRC
[03:32:40] <mattblang> Can I use caches to keep data in sync across controllers?
[03:32:56] *** gunn has quit IRC
[03:34:34] <themime> mattblang: yes
[03:34:35] <dllama> mattblang: factories/services should keep data persistent throughout
[03:35:15] <themime> mattblang: i have a check, if theres data i dont make the get call to the server, otherwise i do. i return a promise to the controller and set the data with resolve in the service
[03:35:25] *** mjs2600 has quit IRC
[03:35:36] *** opiates has joined #angularjs
[03:35:47] *** gunn has joined #angularjs
[03:35:48] <themime> you use then() in the controller to set the preprocessed data to the scope
[03:35:56] *** gunn has quit IRC
[03:36:15] *** anomalophobe has quit IRC
[03:36:50] *** TheAceOfHearts has quit IRC
[03:36:57] *** jsheely|ltop has quit IRC
[03:37:22] *** gunn has joined #angularjs
[03:37:27] *** cakirke has quit IRC
[03:37:47] <mattblang> themime, dllama I'm actually using WebSockets to update data. Was thinking of using a cache, because the library I'm using automatically broadcasts model changes. Not sure how to set and keep in sync $scope variables
[03:38:29] *** amphetamines has joined #angularjs
[03:39:26] *** Orbitrix has joined #angularjs
[03:39:30] <mattblang> themime basically, I think I have it worked out if I can just figure out how to have different $scopes update when the cache changes
[03:39:45] *** Orbitrix has joined #angularjs
[03:41:01] <robdubya> mattblang if you cache your records in a service, and only ever have 1 copy of a record, it works really well
[03:41:09] <robdubya> thats how i do it with angularSails
[03:41:42] <mattblang> robdubya hey man! I'm actually exploring this after a convo we had a few weeks ago, haha.
[03:41:55] <mattblang> robdubya I'll have several lists
[03:42:01] *** matthoiland has joined #angularjs
[03:42:49] *** whitebook has quit IRC
[03:43:02] *** opiates has quit IRC
[03:43:13] *** sacho_ has quit IRC
[03:43:40] *** sacho_ has joined #angularjs
[03:44:05] <mattblang> robdubya so I think where my disconnect is, how to set a $scope.foos in a controller if I am storing foo models in a cache
[03:44:10] *** AlSquirrel has quit IRC
[03:44:13] <mattblang> robdubya oh, but yeah, ill only have one copy
[03:45:05] *** MrBaboon has joined #angularjs
[03:46:23] *** matthoiland has quit IRC
[03:48:24] *** scottc5 has quit IRC
[03:48:48] *** bayousoft has quit IRC
[03:49:22] *** joshontheweb has quit IRC
[03:50:06] *** {DV8} has joined #angularjs
[03:50:08] *** jonr22 has joined #angularjs
[03:50:21] *** ajk27 has joined #angularjs
[03:53:05] *** DanielKarp has quit IRC
[03:53:42] <robdubya> mattblang http://plnkr.co/edit/zQTTPovBzXQpf2zVLg7u?p=preview
[03:53:47] *** ccbmx has quit IRC
[03:53:52] *** patric100e99 has joined #angularjs
[03:54:51] *** TyrfingMjolnir has quit IRC
[03:56:17] *** drej has joined #angularjs
[03:56:42] *** ajenkins has quit IRC
[03:57:10] *** TyrfingMjolnir has joined #angularjs
[03:57:25] <mattblang> robdubya oh yeah, sorry, I understand this. my problem comes in when I try to think about how to keep different $scope.foos in sync across different controllers
[03:57:38] <mattblang> robdubya using the cache, and the automatic broadcasts from Sails
[03:57:39] <robdubya> its the *same* foo
[03:57:40] <robdubya> thats the point
[03:57:44] *** michaelfavia has quit IRC
[03:58:02] *** kalehv has quit IRC
[03:58:19] <robdubya> only ever have the one record cached. if you fetch the same record twice, update it in the cahce, and return the updated record
[03:58:28] *** patric100e99 has quit IRC
[03:59:07] *** michaelfavia has joined #angularjs
[03:59:14] <mattblang> robdubya something isn't quite clicking. if I change the cache, how is foos staying in sync?
[03:59:29] <robdubya> because. its the same record.
[03:59:47] <robdubya> the record in the cache, and the record returned to controller(s)
[03:59:48] *** rburns has quit IRC
[03:59:49] <robdubya> are the same
[03:59:50] <robdubya> recrod
[03:59:59] <robdubya> the same object, reference, whatever
[04:00:10] <roqo> ok I give up I've been working on this code for 3 days and no progress :( need help guys
[04:00:10] *** rburns has joined #angularjs
[04:01:07] *** andydrew has quit IRC
[04:01:36] <roqo> I have a website that creates a list of ip address dynamically (non angular code) and i need on hover to activate a new angular modal with some data to be passed in from the list info
[04:03:31] *** TheAceOfHearts has joined #angularjs
[04:03:51] <robdubya> mattblang http://plnkr.co/edit/pDuIWV7mc9jz3v4wAt7S?p=preview
[04:05:12] *** fauverism has joined #angularjs
[04:05:26] *** michaelfavia has quit IRC
[04:05:45] *** rtpg has joined #angularjs
[04:06:04] <fauverism> is angular-google-maps.org v2 giving anyone problems? It's wonk city for me.
[04:06:43] *** travm has joined #angularjs
[04:07:43] *** quantax- has joined #angularjs
[04:08:58] *** jeffisabelle has quit IRC
[04:09:11] *** ProLoser has joined #angularjs
[04:09:46] <BobbieBarker> roqo are you using a directive library like angular strap?
[04:10:45] *** dnull has quit IRC
[04:11:04] *** gunn has quit IRC
[04:12:10] *** linojon has quit IRC
[04:12:26] *** Fishy has quit IRC
[04:12:42] *** TyrfingMjolnir has quit IRC
[04:12:54] *** gnrlbzik has joined #angularjs
[04:12:59] *** ngoyal is now known as SoulBlade
[04:13:25] *** gunn has joined #angularjs
[04:13:31] *** brettfrable has quit IRC
[04:13:33] *** hecatonicosachor has joined #angularjs
[04:14:05] *** rho has joined #angularjs
[04:14:05] <BobbieBarker> if you are then it should be a trivial task to use ng-mouseenter="someFunctionRegisteredOnScope" then in the controller or better yet in a directive you inject the modal provider and you should be able to manually trigger it in this manner
[04:14:21] *** night-owl is now known as zz_night-owl
[04:14:29] *** AngularUI has joined #angularjs
[04:14:30] <AngularUI> [ng-grid] mauronunez opened pull request #1991: Spanish translation updates (master...patch-spanish-translation) http://git.io/9fpugQ
[04:14:30] *** AngularUI has left #angularjs
[04:15:01] *** zz_night-owl is now known as night-owl
[04:17:13] *** sacho_ has quit IRC
[04:19:38] *** TyrfingMjolnir has joined #angularjs
[04:19:44] *** anapitupulu has quit IRC
[04:20:44] *** kirfu has joined #angularjs
[04:22:47] *** gunn has quit IRC
[04:24:25] *** gunn has joined #angularjs
[04:24:30] *** AngularUI has joined #angularjs
[04:24:30] <AngularUI> [ng-grid] PaulL1 pushed 2 new commits to master: http://git.io/goSfPw
[04:24:31] <AngularUI> ng-grid/master 0cef6d2 Mauricio Núñez: Spanish translation updates
[04:24:31] <AngularUI> ng-grid/master 0845f09 Paul: Merge pull request #1991 from mauronunez/patch-spanish-translation...
[04:24:31] *** AngularUI has left #angularjs
[04:24:41] *** marshall_ has joined #angularjs
[04:24:45] *** svteoi has joined #angularjs
[04:24:47] *** BlinkyBill has quit IRC
[04:26:58] *** asdofindia has joined #angularjs
[04:27:40] *** brunoB has quit IRC
[04:28:00] *** brunoB has joined #angularjs
[04:28:57] *** fakam has joined #angularjs
[04:29:19] *** fauverism has quit IRC
[04:30:00] *** gunn has quit IRC
[04:30:40] *** Hackwar has joined #angularjs
[04:30:42] *** tkimmel has joined #angularjs
[04:31:34] *** josh-k has joined #angularjs
[04:31:46] *** Siecje has left #angularjs
[04:32:18] *** jmichaelward has joined #angularjs
[04:32:27] <mattblang> robdubya so right now I'm imagining that I would make some kind of factory for sharing the cache data, and a factory for the sailsSocket where I could set up my subscriptions to update the cache, but I'm still not quite sure on how to make all the model lists in my $scopes update when the cache updates
[04:32:44] *** Hackwar1 has quit IRC
[04:33:43] *** robdubya_ has joined #angularjs
[04:33:50] <mattblang> robdubya oh wait, I think I am starting to see. one moment
[04:34:03] <BahamutWC|Laptop> I can’t believe I waited so long to use gulp regularly
[04:34:35] *** Aerospar_ has quit IRC
[04:34:47] *** robduby__ has joined #angularjs
[04:34:50] *** robdubya has quit IRC
[04:34:57] *** robduby__ is now known as robdubya
[04:35:16] *** tkimmel has quit IRC
[04:35:24] <BahamutWC|Laptop> robdubya: I’m getting more happier with gulp the more I use it
[04:35:30] <BahamutWC|Laptop> more I set it up*
[04:35:34] <robdubya> yup
[04:35:40] *** Aerospark has joined #angularjs
[04:35:44] <robdubya> its pretty rad
[04:36:27] <mitchdotpro> Hey guys, I’ve got a fiddle here (http://jsfiddle.net/9DbYY/155/) I am doing a remaining character count. It works perfectly but in Chrome [ENTER] keystrokes seem to be counting twice or something. So if you type [ENTER][ENTER] and then fill the entire text box to 100 characters it still says you have 2 characters remaining. Any ideas how this might be fixed?
[04:37:47] *** DrMabuse has joined #angularjs
[04:38:34] *** robdubya_ has quit IRC
[04:38:43] <BahamutWC|Laptop> mitchdotpro: you’re using angular 1.2.1 in the fiddle, ng-trim is 1.3
[04:40:43] <fakam> Should I learn JS completely before using Angular?
[04:40:56] <BahamutWC|Laptop> fakam: learning on the way is fine
[04:41:03] *** dnull has joined #angularjs
[04:41:05] *** jonr22 has quit IRC
[04:41:08] *** Aerospark has quit IRC
[04:41:22] <BahamutWC|Laptop> JS has a lot of hidden secrets to it in edge cases, no use worrying about mastering a language before being productive with it
[04:41:45] *** Aerospark has joined #angularjs
[04:41:46] <fakam> Okay, I have been learning Ruby for the past six months but switching to JS, so i know the basics of JS,, thanks
[04:41:51] <mitchdotpro> BahamutWC|Laptop:
[04:42:05] <mitchdotpro> BahamutWC|Laptop: Thanks, was planning on updating to 1.3 anyway.
[04:42:07] *** DrMabuse has quit IRC
[04:42:26] <BahamutWC|Laptop> not good, feeling sleepy and it’s not even 8 pm :(
[04:42:32] <mitchdotpro> BahamutWC|Laptop: Not 100% convinced it’s an Angular bug though, see here — https://code.google.com/p/chromium/issues/detail?id=252613
[04:42:42] <fakam> bummer
[04:43:18] *** Cache_Money has joined #angularjs
[04:43:21] *** Hari__ has joined #angularjs
[04:43:51] *** hippobottamus has quit IRC
[04:44:21] <BahamutWC|Laptop> it doesn’t look like a bug to me
[04:44:40] <BahamutWC|Laptop> Enter inserts a newline, which is a character
[04:44:49] *** hippobottamus has joined #angularjs
[04:45:28] *** amphetamines has quit IRC
[04:45:41] <mitchdotpro> Yes, but if you hit enter twice, then type as many characters you can you’ll see that the remaining character count is still >0 even though you can’t type anymore
[04:46:52] *** TyrfingMjolnir has quit IRC
[04:47:11] <BahamutWC|Laptop> but that is because angular is probably trimming it - that might be expected behavior if I had to guess
[04:47:54] *** MrBaboon has quit IRC
[04:48:30] *** Hari__ has quit IRC
[04:49:23] *** nuizzy has joined #angularjs
[04:51:08] *** MrBaboon has joined #angularjs
[04:51:32] *** MrBaboon has quit IRC
[04:52:35] *** threesixes has joined #angularjs
[04:52:51] *** josh-k has quit IRC
[04:53:24] *** josh-k has joined #angularjs
[04:53:26] *** AngularUI has joined #angularjs
[04:53:26] <AngularUI> [ng-grid] mauronunez opened pull request #1992: spanish translation more updates (master...patch-spanish-translation) http://git.io/p7742w
[04:53:26] *** AngularUI has left #angularjs
[04:54:05] *** davesidious__ has joined #angularjs
[04:55:31] <mitchdotpro> BahamutWC|Laptop: Even if I remove the Angular stuff it’s still reading ENTER as two keystrokes instead of one
[04:55:41] *** cesarkawakami has quit IRC
[04:56:04] <BahamutWC|Laptop> mitchdotpro: not seeing that happen - enter is one keystroke on my chrome
[04:56:13] <BahamutWC|Laptop> I’m on Chrome 38
[04:57:47] *** davesidious_ has quit IRC
[04:57:55] *** josh-k has quit IRC
[04:58:14] *** TripTastic is now known as JBreit
[04:58:16] <mitchdotpro> Same! :-) i.e. try this… (1) Type in 100 text characters, make the last character a full stop so you know where it ends. (2) Cut the text (3) Put in 4 linebreaks (4) Paste the text .... you'll see that not all the text paste.
[04:58:39] <mitchdotpro> But it cuts more than 4 chars
[04:59:05] *** kalehv has joined #angularjs
[04:59:09] *** ProLoser has quit IRC
[04:59:45] *** TyrfingMjolnir has joined #angularjs
[05:00:28] *** boberober has joined #angularjs
[05:00:40] *** jharbaugh|AEA has quit IRC
[05:00:43] *** mary5030 has joined #angularjs
[05:01:01] *** jharbaugh|AEA has joined #angularjs
[05:01:02] *** rburns has quit IRC
[05:01:09] *** rburns has joined #angularjs
[05:01:25] <robdubya> i dont wanna go to work tomorrow. i want to go snowboarding. :(
[05:01:43] *** gnrlbzik has quit IRC
[05:01:44] *** jae has quit IRC
[05:01:59] *** BlinkyBill has joined #angularjs
[05:02:03] *** BillCriswell has quit IRC
[05:02:22] *** discgo has joined #angularjs
[05:02:47] *** marshall_ has quit IRC
[05:03:49] *** kalehv has quit IRC
[05:05:17] *** boberober has quit IRC
[05:05:34] *** fakam has quit IRC
[05:07:47] *** Skrypter has quit IRC
[05:11:27] *** zzing has joined #angularjs
[05:12:23] *** asher^ has quit IRC
[05:13:35] *** JBreit has quit IRC
[05:14:29] *** mogaj has joined #angularjs
[05:14:31] *** robdubya_ has joined #angularjs
[05:14:40] *** ozh has quit IRC
[05:15:47] *** mary5030 has quit IRC
[05:18:03] *** robdubya has quit IRC
[05:18:16] *** opiates has joined #angularjs
[05:18:25] <TheAceOfHearts> "git gets easier once you get the basic idea that branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space."
[05:18:25] <TheAceOfHearts> ez.
[05:18:39] *** Fishy has joined #angularjs
[05:19:37] *** kirfu has quit IRC
[05:19:45] *** TyrfingMjolnir has quit IRC
[05:19:48] *** JBreit has joined #angularjs
[05:19:56] *** Guest43948 has joined #angularjs
[05:20:00] *** JBreit has quit IRC
[05:20:32] *** JBreit has joined #angularjs
[05:22:23] <Guest43948> hi everyone, got a problem: https://gist.github.com/7e8e51aba6b77b8d61d0
[05:22:46] *** shampine has quit IRC
[05:22:54] <Guest43948> i get a json response back, assign it to my $scope variables, but when i check in console….they are undefined…
[05:22:56] *** robdubya has joined #angularjs
[05:23:15] *** shampine has joined #angularjs
[05:23:27] <robdubya> TheAceOfHearts seems legit
[05:23:41] *** asher^ has joined #angularjs
[05:23:44] *** Yahkob has joined #angularjs
[05:24:06] *** amphetamines has joined #angularjs
[05:24:56] *** Left_Turn has quit IRC
[05:25:10] *** robdubya_ has quit IRC
[05:25:31] *** drugs has joined #angularjs
[05:26:09] <BahamutWC|Laptop> homeomorphic endofunctors wut
[05:27:07] *** alexw has quit IRC
[05:27:26] *** opiates has quit IRC
[05:27:43] <BahamutWC|Laptop> just looked up what an endofunctor is - homeomorphic endofunctor lol
[05:27:55] *** anjumkaiser has quit IRC
[05:28:53] *** amphetamines has quit IRC
[05:29:06] *** drugs has quit IRC
[05:30:53] *** matthoiland has joined #angularjs
[05:31:52] *** alexw has joined #angularjs
[05:32:22] *** brunoB has quit IRC
[05:32:29] *** Guest43948 has quit IRC
[05:32:53] *** jharbaug_ has joined #angularjs
[05:34:24] *** rburns has quit IRC
[05:34:48] *** rburns has joined #angularjs
[05:35:19] *** jharbaugh|AEA has quit IRC
[05:35:36] *** matthoiland has quit IRC
[05:38:02] *** teufelChiCoder has joined #angularjs
[05:38:13] <teufelChiCoder> hi everyone, got a problem: https://gist.github.com/7e8e51aba6b77b8d61d0
[05:38:14] *** teufelChiCoder is now known as Guest793
[05:38:23] *** marshall_ has joined #angularjs
[05:38:31] *** DrMabuse has joined #angularjs
[05:38:40] *** svteoi has quit IRC
[05:40:20] *** robdubya has quit IRC
[05:40:28] <Logicgate> Guest793, did you try logging the "resp" var?
[05:40:34] <Guest793> yup
[05:40:37] <Logicgate> and?
[05:40:39] <Guest793> i see the json object
[05:40:42] <Guest793> it's all there
[05:40:48] <Guest793> but its inside of my gapi funciton
[05:40:54] <Logicgate> log $scope after
[05:41:05] <Guest793> when i log $scope, i see the variable in there
[05:41:09] <Guest793> witha the json assigned to i
[05:41:11] <Guest793> it*
[05:41:13] *** opiates has joined #angularjs
[05:41:22] *** rtpg_ has joined #angularjs
[05:41:41] *** grantfunke_ has quit IRC
[05:41:49] <Logicgate> oh lol
[05:41:50] <Guest793> but when I do console.log($scope.userFirstName) - it says undefined
[05:42:02] <Logicgate> you're logging scope after though when it's asynchronous
[05:42:07] *** mattblang has quit IRC
[05:42:20] <Logicgate> you can't do console log after an asynch function'
[05:43:09] <Logicgate> put an $watch on your var.
[05:43:40] *** Freeman42x has joined #angularjs
[05:43:49] *** DrMabuse has quit IRC
[05:43:55] <Guest793> sorry im still finding my way around in angular - what do you mean?
[05:43:59] <Logicgate> $scope.$watch('userFirstName',function (value) { $log.log($scope); });
[05:44:10] *** draconis-chomp has quit IRC
[05:44:23] *** mandric has quit IRC
[05:44:33] <Logicgate> here's how I would do it. Let me put a fiddle together.
[05:44:40] <Guest793> thank you very much :)
[05:44:47] *** draconis-chomp has joined #angularjs
[05:45:43] *** rtpg has quit IRC
[05:45:59] *** anjumkaiser has joined #angularjs
[05:46:14] <Logicgate> Guest793: http://jsfiddle.net/1a94b3v1/
[05:46:42] <Guest793> ok got it
[05:46:47] <Guest793> let me try i tout
[05:47:42] <Logicgate> Let me know if that works.
[05:47:44] *** freeman42 has quit IRC
[05:47:49] <Guest793> thank you, will do
[05:48:10] <Logicgate> So basically, whenever changes are made to the $scope.user variable. It'll run the function in $watch.
[05:48:13] *** nik has joined #angularjs
[05:48:24] <Guest793> aaah i c
[05:48:29] <Guest793> starting to make sense
[05:49:39] *** bbankes has quit IRC
[05:50:56] *** Aerospark has quit IRC
[05:50:59] *** grantfunke_ has joined #angularjs
[05:51:46] *** gunn has joined #angularjs
[05:53:46] *** Xethron has joined #angularjs
[05:54:37] *** discgo_ has joined #angularjs
[05:55:14] <Guest793> :( still nothing's showing up in my view
[05:55:16] <Logicgate> actually Guest793 wait.
[05:55:23] <Logicgate> I messed up the fiddle
[05:55:32] <Guest793> oh ok
[05:55:54] *** cornerma1 has joined #angularjs
[05:56:31] <Logicgate> Guest793: http://jsfiddle.net/1a94b3v1/2/
[05:56:37] <Logicgate> Let me know if that works
[05:56:44] <Guest793> thank you
[05:56:57] <Logicgate> what are you using in your view
[05:56:59] <Logicgate> to display the values?
[05:57:12] <Guest793> {{ user.firstname}}
[05:57:16] *** niklasmodess has joined #angularjs
[05:57:24] <Logicgate> hmmm
[05:57:27] <Logicgate> is it working?
[05:57:39] *** marshall_ has quit IRC
[05:57:39] <Guest793> trying it out
[05:57:45] *** josh-k has joined #angularjs
[05:58:15] <Logicgate> how is your controller instantiated? ng-controller="DashboardCtrl as dashboard"?
[05:58:36] <Guest793> nope, just ng-controller="DashboardCtrl"
[05:58:52] <Logicgate> You might have to do {{controller.user.firstname}} in this case {{DashboardCtrl.user.firstname}}
[05:59:06] <Guest793> ok, i'll try both ways
[05:59:20] *** cornerman has quit IRC
[05:59:24] *** cornerma1 is now known as cornerman
[05:59:27] *** josh-k_ has joined #angularjs
[05:59:52] *** TyrfingMjolnir has joined #angularjs
[06:00:04] *** jmichaelward has quit IRC
[06:01:06] <Guest793> Logicgate - $log.log(user); - shows up as undefined
[06:01:49] *** robdubya has joined #angularjs
[06:02:13] <Logicgate> try logging $scope.user.
[06:02:18] *** gnrlbzik has joined #angularjs
[06:02:31] *** lianimator has quit IRC
[06:03:00] <Guest793> $log.log($scope.user) also undefined
[06:03:16] *** josh-k has quit IRC
[06:03:24] <Logicgate> in the watch function??
[06:03:36] <Guest793> yup
[06:03:43] <Logicgate> pass $scope to it.
[06:03:46] *** joshontheweb has joined #angularjs
[06:04:13] <Guest793> instead of (user), do ($scope)?
[06:04:17] <Logicgate> yea
[06:04:39] <Guest793> i got "Cannot read property 'user' of undefined"
[06:04:44] *** nickBek has joined #angularjs
[06:04:51] <Logicgate> wtf.
[06:05:05] <Logicgate> I need to see the code fully
[06:05:12] *** anjumkaiser has quit IRC
[06:05:27] *** zanea is now known as zanea|away
[06:05:31] <Logicgate> and nothing is still showing up on your view?
[06:05:36] *** instence has joined #angularjs
[06:05:40] <Guest793> i don't thin i mentioned that im using ionicframwork
[06:05:45] <Guest793> nothing's showing up
[06:05:51] <Logicgate> Even using Dashboard.user.firstname?
[06:05:58] <Guest793> yup, tried that
[06:06:07] *** instence_ has quit IRC
[06:06:14] <BahamutWC|Laptop> robdubya: kinda unhappy at how restrictive ES6 classes are :(
[06:06:20] *** mandric has joined #angularjs
[06:06:20] <Guest793> if i do console.log(resp) inside gapi function - i see whole response from google server
[06:06:31] <Logicgate> what happens if you set $scope.user = {firstname: "Bob", lastname: "Duval"};
[06:06:36] <robdubya> how so BahamutWC|Laptop
[06:06:37] <Logicgate> does it show up in the view?
[06:06:42] <Guest793> one moment
[06:06:56] <BahamutWC|Laptop> seems like all you can do is define functions and the constructor with the syntatical sugar
[06:07:12] *** gnrlbzik has quit IRC
[06:07:13] <Guest793> Logicgate, yup, that was it showed
[06:07:41] <BobbieBarker> are you sure the view you're working on is registered under the scope of the controller?
[06:08:02] *** Zeioth has quit IRC
[06:08:04] <Guest793> yes
[06:08:11] <hecatonicosachor> make a plunker
[06:08:17] <robdubya> or post the code
[06:09:10] <Guest793> "[{"LastName": "lastname", "Birth": "0190-06-06T00:00:00", "Email": "user at user dot com", "FirstName": "firtuser", "Gender": "F"}]"
[06:09:18] <robdubya> BahamutWC|Laptop https://github.com/angular/di.js/blob/master/src/injector.js that's pretty full fledged one
[06:09:30] <Guest793> that's what come through as jsonData
[06:09:34] *** mven has quit IRC
[06:09:34] <robdubya> Guest793 that's an array
[06:09:43] <BahamutWC|Laptop> also am I supposed to still load every script still with ES6?
[06:09:44] *** wd40s has quit IRC
[06:10:09] <BahamutWC|Laptop> Chrome is hating on me saying unexpected reserved word :(
[06:10:10] <robdubya> i think modules are the more important thing about 6. classes are nice, but they dont replace the whole shebang
[06:10:36] *** danflies has quit IRC
[06:10:39] <Guest793> robdubya how can i convert it to json or somethign that i can work with to extract data out it?
[06:10:57] <BahamutWC|Laptop> hmm looks like system.js isn’t running properly...
[06:10:58] <robdubya> its json over the wire
[06:10:59] *** dharmit has joined #angularjs
[06:11:12] <robdubya> it gets convered to JS by http
[06:11:22] <robdubya> you probably want to do $scope.user = jsonData[0]
[06:11:27] <robdubya> (get teh first element in the array)
[06:11:46] *** Greed has left #angularjs
[06:11:57] <robdubya> BahamutWC|Laptop if your'e tying to use annotations you have to fiddle with it a bit
[06:12:13] <BahamutWC|Laptop> I’m actually just trying to use 1.3 with ES6
[06:12:19] <BahamutWC|Laptop> having problems getting ES6 to run properly
[06:12:28] <robdubya> code?
[06:12:32] *** jonr22 has joined #angularjs
[06:12:35] *** mennea has joined #angularjs
[06:13:07] <robdubya> also throw a catch on your System.import() call
[06:13:16] <BahamutWC|Laptop> http://pastebin.com/3wXqPM4W
[06:13:29] <BahamutWC|Laptop> the system global seems to be undefined
[06:13:58] *** exp10r3r has joined #angularjs
[06:14:04] *** asdofindia has quit IRC
[06:14:26] <robdubya> using it in main?
[06:14:34] <Guest793> $scope.user = {firstname: resp.jsonData[0], lastname: resp.jsonData[1]}; - this stil gives me undefined
[06:14:46] <BahamutWC|Laptop> not using it yet - the scripts are just classes atm
[06:15:25] <BahamutWC|Laptop> I get the uncaught syntaxerror unexpected reserved word error - shouldn’t the ES6 syntax be recognized?
[06:15:30] *** scottc5 has joined #angularjs
[06:16:24] <Logicgate> Guest793 I have an alternative
[06:16:25] <Logicgate> one sec
[06:16:53] *** jonr22 has quit IRC
[06:16:54] <BahamutWC|Laptop> traceur and ES6-module-loader seems to load properly
[06:17:17] <mitchdotpro> BahamutWC|Laptop: I’m having to work around and trim the content myself. All is good. Lemme know if you’re interested in seeing how the bug works, it’s actually quite funny and I have confirmed with others that they can replicate the bug.
[06:18:17] <Logicgate> Guest793: http://jsfiddle.net/1a94b3v1/4/
[06:18:18] <Logicgate> try that.
[06:18:22] *** Skrypter has joined #angularjs
[06:18:53] <Guest793> ok, one moment
[06:19:02] *** SoulBlade has quit IRC
[06:19:18] <Logicgate> instantiate your controller this way ng-controller="DashboardCtrl as dashboard"
[06:19:21] *** amphetamines has joined #angularjs
[06:19:29] <Logicgate> and reffer this way {{dashboard.user.firstname}}
[06:19:40] *** tkimmel has joined #angularjs
[06:20:38] *** joshontheweb has quit IRC
[06:21:01] *** hecatonicosachor is now known as sacho
[06:21:37] *** opiates has quit IRC
[06:21:52] <Guest793> ok, will try
[06:22:03] *** benco has joined #angularjs
[06:22:11] <benco> hi everyone!
[06:23:19] <Logicgate> also, after you set the properties on the execute function
[06:23:28] <Logicgate> you're gonna have to run $scope.$apply();
[06:23:31] <Logicgate> for it to update.
[06:23:39] <Logicgate> since it's asynchronous
[06:23:50] *** anjumkaiser has joined #angularjs
[06:23:53] *** tkimmel has quit IRC
[06:23:58] <dllama> do i have to do anything special to toggle the value of a scope set by a factory?
[06:24:03] <Logicgate> Guest793: http://jsfiddle.net/1a94b3v1/5/
[06:24:19] <BahamutWC|Laptop> robdubya: I think I figured it out…I’m just a dunce
[06:24:27] <sacho> dllama, what does that mean?
[06:24:27] <BahamutWC|Laptop> think I need to sleep soon x_x
[06:24:28] <Logicgate> dllama, you'll have to toggle it via a controller obviously.
[06:24:33] <robdubya> i just linked you one on skype
[06:25:26] <dllama> sacho, Logicgate, i'm returning an object via factory that looks like [foo: true, bar: true] and then i'm trying to toggle true/false on it, but its always being returned as true
[06:25:33] <BahamutWC|Laptop> I’m in my bed, so I didn’t see it :P
[06:25:40] <BahamutWC|Laptop> I think I got it now though after thinking about it
[06:25:46] <dllama> so i thought maybe it had to do with how data is set in a factory?
[06:25:48] <Logicgate> do you have a setter/getter function dllama?
[06:25:56] <Logicgate> can we see the code
[06:25:58] <sacho> dllama, can you make a plunker
[06:26:02] <dllama> http://plnkr.co/edit/dWVl8Kqd9oEI2QlauJuS?p=preview
[06:26:03] <BahamutWC|Laptop> all script loads with ES6 code have to be via system.js?
[06:26:12] <dllama> line 191 is how i'm toggling it
[06:26:23] <dllama> line 84 is where i'm setting it initially
[06:27:46] *** Grokling_ has joined #angularjs
[06:28:15] *** Jon31 has quit IRC
[06:28:49] <sacho> you don't have to name your functions _function, by the way
[06:28:58] <Logicgate> dllama, why not use a service instead?
[06:28:58] <dllama> i know,
[06:29:13] <sacho> well, you're always returning a new array
[06:29:15] <dllama> sacho, i was following robdubya guide, and it makes reaading a little eaiser
[06:29:31] <Logicgate> sacho, exactly why I'm saying a service would be appropriate.
[06:29:35] <sacho> changing something in the new array isn't going to change anything in the old array
[06:29:36] *** trustyhank has quit IRC
[06:29:45] <sacho> a service doesn't have anything to do with it
[06:29:52] *** Skrypter has quit IRC
[06:29:57] <Logicgate> You would be setting the properties locally instead.
[06:30:00] <dllama> Logicgate: this started as a sample that robdubya showed me, and suggested i use a factories, so i just stuck with it
[06:30:05] *** balr0g has joined #angularjs
[06:30:12] <Logicgate> Services and Factories are very similar.
[06:30:27] <Logicgate> You don't return anything when you instantiate a service.
[06:30:38] <Logicgate> You can access the properties of it throughout any controller.
[06:30:43] <robdubya> i wrote a guide?
[06:30:49] <Logicgate> lol
[06:30:49] <robdubya> maybe i should write one
[06:30:51] <sacho> dllama, in $scope.getUniq, you aren't setting the courses to true
[06:30:54] <robdubya> and charge all you noobs
[06:30:59] <sacho> dllama, so what do you mean?
[06:31:02] <dllama> not a guide, u sent me a plunk the other day and i just kept following it as a guide
[06:31:20] <robdubya> ahh
[06:31:27] *** apertoire has quit IRC
[06:31:42] <robdubya> i have 200 pages of plunks, 198 of which are called "angular 1.3"
[06:31:50] <robdubya> i realllllly need to tidy up, haha
[06:31:54] <dllama> sacho: on line 153 i am
[06:31:55] <Logicgate> lol
[06:32:00] <dllama> Courses.setSubjectFilters()
[06:32:24] <Guest793> grrrrr still nothign
[06:32:25] *** subr0utine has joined #angularjs
[06:32:33] <BahamutWC|Laptop> eureka, got system.js to successfully import
[06:32:35] <sacho> ok
[06:32:45] <sacho> I'm still not clear what the problem is
[06:32:53] <robdubya> BahamutWC|Laptop yes, orrr you can use full on traceur plus the module import
[06:32:57] *** anjumkaiser1 has joined #angularjs
[06:33:05] *** Sontakey has joined #angularjs
[06:33:05] <BahamutWC|Laptop> true, they’re all loaded
[06:33:09] <dllama> sacho: ur not clear about what my issue is or where in the code it is?
[06:33:15] <Logicgate> Guest793, show me all of your code.
[06:33:34] *** gunn has quit IRC
[06:33:38] <BahamutWC|Laptop> my god, this is amazing
[06:33:39] <Logicgate> are you running $scope.$apply() like I told you in your .execute function?
[06:33:51] *** anjumkaiser has quit IRC
[06:34:30] <Guest793> sorry i must've missed it
[06:34:42] <sacho> dllama, what the issue is
[06:35:14] *** MJD has quit IRC
[06:35:26] <dllama> i'm not sure what i'm doing wrong in not being able to toggle the value of an array set by a factory
[06:35:35] <sacho> no, that's what you think your issue is
[06:35:41] <sacho> can you describe your problem specifically
[06:35:42] *** _ritchie_ has joined #angularjs
[06:36:09] <Guest793> gapi.client.benecure.user.getUser({
[06:36:10] <Guest793> "access_token": access_token
[06:36:10] <Guest793> }).execute(function(resp) {
[06:36:10] <Guest793> // console.log(resp);
[06:36:10] <Guest793> self.user.firstname = resp.result.jsonData.FirstName;
[06:36:10] <Guest793> self.user.lastname= resp.result.jsonData.LastName;
[06:36:10] <Guest793> $scope.$apply();
[06:36:11] <Guest793> });
[06:36:15] <dllama> ok, i can only describe it based on what i think it is
[06:36:18] *** gunn has joined #angularjs
[06:36:19] <dllama> i dont understand what you mean
[06:36:27] <Logicgate> Guest793, don't paste code here.
[06:36:33] <sacho> well, which array are you talking about, dllama?
[06:36:33] <Guest793> my bad
[06:36:43] <Guest793> i'll update taht fiddle
[06:36:48] *** RusAlex has quit IRC
[06:36:52] <dllama> Courses.allSubjectFilters
[06:37:00] <dllama> $scope.subjectFilters = Courses.allSubjectFilters;
[06:37:02] <sacho> and where are you modifying it?
[06:37:05] <dllama> 191
[06:37:06] *** subr0utine has quit IRC
[06:37:06] *** MJD has joined #angularjs
[06:37:12] <robdubya> gapi loads async, you should use promises, and a variety of other things i'm not going to expalin on sunday evening
[06:37:30] <dllama> well on 191 i'm only toggling the scope, not the factory array
[06:38:07] <dllama> and if u click the red toggle button from teh courses list, you'll see it always returns true in console
[06:38:12] <dllama> and nothing actually disappears
[06:39:00] <sacho> toggleSubject doesn't do any assignment
[06:39:21] <robdubya> BahamutWC|Laptop fyi, when you inevitably plug in DI, you're going to want to turn on experimental features in traceur
[06:39:53] *** zef has joined #angularjs
[06:39:56] <BahamutWC|Laptop> I’m starting to see why Angular went the annotations route
[06:40:13] <BahamutWC|Laptop> it’s tricky to figure out a good pattern for injecting with DI in 1.x with ES6
[06:40:37] <BahamutWC|Laptop> I could go the mixin route
[06:40:38] <dllama> sacho: is that because the scope is mapped to an array returned by a factory?
[06:40:38] *** rburns has quit IRC
[06:40:53] <sacho> no, it's because there's no assignment operator in it
[06:40:56] *** gamekathu has joined #angularjs
[06:41:02] *** rburns has joined #angularjs
[06:41:14] *** bayousoft has joined #angularjs
[06:41:19] <dllama> $scope.subjectFilters[e] === false? true: false;
[06:41:35] <dllama> thats how i've always toggled true/false values
[06:41:47] <Guest793> so i updated fiddle,with added $apply…http://jsfiddle.net/1a94b3v1/6/
[06:41:52] <sacho> dllama, I doubt it
[06:42:15] <Logicgate> Guest793, how are you accessing the variables in your view.
[06:42:25] <Guest793> dashboard.user.firstname
[06:42:31] <Guest793> dashboard.user.lastname
[06:42:36] <robdubya> BahamutWC|Laptop yea - i think that's gonna take some work
[06:42:43] *** mennea has quit IRC
[06:42:43] *** mennea_ has joined #angularjs
[06:42:44] <Guest793> and this is how im calling out my controller - <div ng-controller="DashboardCtrl as dashboard">
[06:43:04] <Logicgate> Nothing gets updated.
[06:43:08] <Logicgate> That's mind boggling.
[06:43:11] *** sacho has quit IRC
[06:43:12] <robdubya> part of that is why 2.0 is dropping modules
[06:43:14] <Guest793> for some reason, thsoe values dont get updated once it's in gapi function
[06:43:25] *** levity_island has joined #angularjs
[06:43:37] *** sacho has joined #angularjs
[06:43:41] <sacho> meh
[06:43:45] <Logicgate> Guest793: http://jsfiddle.net/1a94b3v1/3/
[06:43:46] <sacho> dllama, for an assignment, you need a =
[06:43:48] *** oste has joined #angularjs
[06:43:57] <Logicgate> http://jsfiddle.net/1a94b3v1/7/
[06:44:03] *** A-Star has joined #angularjs
[06:44:10] <sacho> perhaps you meant to have $scope.subjectFilters[e] = $scope.subjectFilters[e] === false ? true : false
[06:44:29] <Logicgate> ^
[06:44:32] <gamekathu> hi! i am a newbie in angular world, and want to explore more. can anyone provide a good open source app where i can hack around? angular, bootstrap, nodejs, jasmine, karma, yeoman... any app having these would be cool :)
[06:44:46] *** ahmetkapikiran has quit IRC
[06:44:57] <BahamutWC|Laptop> robdubya: I think you have to keep pure JS models in a separate class, then have a factory class where you do the factory.$inject = [‘$http’, …]
[06:45:08] <BahamutWC|Laptop> and mash them all inside the factory
[06:45:09] <dllama> yea, i copy/pasted from my code wrong :(
[06:45:21] <Logicgate> Lol, god I hate debugging.
[06:45:24] <robdubya> pretty much.
[06:45:24] <Guest793> Logicgate, it shows values but only <firstname> and <lastname>
[06:45:29] <Guest793> doesnt show updated values
[06:45:39] <BahamutWC|Laptop> actually, that’s not a bad pattern at all I think
[06:45:42] <robdubya> you could write a SystemJS service, and override the injector too
[06:46:00] <robdubya> or something along those lines
[06:46:04] <dllama> $scope.subjectFilters[e] = $scope.subjectFilters[e] === false? true: false; that fixed it… 2nd time in past few hours that countless time was wasted on a dumb typo/mistake :(
[06:46:08] <dllama> thank you sacho!
[06:46:13] <Logicgate> Guest793: http://puu.sh/cBkUN/c2aae0bcad.png
[06:46:21] <BahamutWC|Laptop> I’m still trying to wrap my head around ES6, no need to go crazy yet heh
[06:46:34] <BahamutWC|Laptop> it’s slowly hitting me though
[06:46:42] <Logicgate> Guest793, you should make a plunker with your code.
[06:46:51] *** jharbaug_ has quit IRC
[06:47:06] <Guest793> let me see if i can set it up…
[06:47:26] <Guest793> oh wait…nvm…it did update those values
[06:47:35] <Guest793> i forgot that it takes timeout
[06:48:13] *** numenor has joined #angularjs
[06:48:34] *** jharbaugh has joined #angularjs
[06:49:02] *** robdubya_ has joined #angularjs
[06:49:03] <Logicgate> Guest793, I was just emulating an asynch call with the timeout.
[06:49:59] <robdubya_> BahamutWC|Laptop see also https://github.com/aaronj1335/gunderscore
[06:50:08] <Guest793> ok, i get it
[06:50:09] <BahamutWC|Laptop> robdubya_: can you alias exports or imports?
[06:50:14] <robdubya_> sure
[06:50:28] <robdubya_> import {Foo as Foobar} from '/wherever'
[06:50:29] <robdubya_> iirc
[06:50:33] <Guest793> for some reason as soon as it gets into gapi execute - those variables become undefined
[06:50:35] <BahamutWC|Laptop> :O
[06:51:08] *** firelinks has quit IRC
[06:51:14] <Logicgate> Guest793, try logging self within the execute function
[06:51:18] <Logicgate> $log.log(self);
[06:51:23] <Logicgate> before setting anythign.
[06:51:59] <robdubya_> BahamutWC|Laptop the other thing thats a possible integration
[06:52:14] <robdubya_> https://github.com/systemjs/systemjs#plugins
[06:52:23] *** discgo has quit IRC
[06:52:23] *** discgo_ is now known as discgo
[06:52:27] <robdubya_> theres'a ton of hooks in the es6 loader
[06:52:40] <BahamutWC|Laptop> nice
[06:52:42] *** robdubya has quit IRC
[06:52:47] <BahamutWC|Laptop> so lazyloading support built in
[06:53:02] <BahamutWC|Laptop> oh hey markdown as html
[06:53:10] *** Yahkob has quit IRC
[06:53:33] <Guest793> Logicgate, so it says that it's undefined for both vars
[06:54:00] *** discgo_ has joined #angularjs
[06:54:11] <oste> i have a directive that is watching a model and then manipulating the dom - the problem is when the model changes the dom is not updated in time for the dom changes to work
[06:54:30] <Logicgate> Guest793, put a plunker together.
[06:54:37] <Logicgate> I can't help further without it.
[06:54:59] *** mrtoadsc has quit IRC
[06:55:12] <Guest793> i understand
[06:55:39] *** robdubya_ is now known as robdubya
[06:55:45] *** ankhular has joined #angularjs
[06:56:01] *** NormySan has joined #angularjs
[06:56:45] <numenor> Hello... I am using the directive approach to create reusable page sections, Now, I am creating a directive in for a image gallery using BX slider...
[06:57:29] *** felixn has quit IRC
[06:57:32] <numenor> Basically its a route / page in which I need to display the slider.. So unless someone accesses that page, I do not need the slider JS and css to be loaded
[06:57:38] <BahamutWC|Laptop> robdubya: seems like you cannot do the named imports if the import itself is a function
[06:57:52] *** mrtoadsc has joined #angularjs
[06:58:21] *** levity_island has quit IRC
[06:58:38] *** felixn has joined #angularjs
[06:58:40] <numenor> So, If I add the script tag in the template html, Will it load properly the assets required for BX slider?
[06:59:02] *** anke has joined #angularjs
[06:59:07] *** gamekathu has quit IRC
[06:59:20] *** Cache_Money has quit IRC
[06:59:35] *** mrtoadsc has quit IRC
[06:59:49] *** Grokling_ has quit IRC
[07:00:39] <robdubya> BahamutWC|Laptop http://plnkr.co/edit/f8Yk8vp25k5tlEO2W2vJ?p=preview
[07:00:57] <Guest793> how can i set up gapi service in jsfiddle?
[07:00:59] *** DrMabuse_ has joined #angularjs
[07:01:05] <oste> this answer describes the situation i am facing http://stackoverflow.com/a/21361421/429909
[07:01:15] <Logicgate> Guest793, use plunker.
[07:01:18] <Guest793> it requires me to enter our client ids and password
[07:01:24] <oste> rather than doing $watch(‘myModel’, function()
[07:01:35] <BahamutWC|Laptop> huh
[07:01:40] *** BlinkyBill has quit IRC
[07:01:41] <oste> i am forced to watch the childNodes of the actual dom instead
[07:01:58] <robdubya> that seems like an extraordinary hack
[07:02:15] <oste> your telling me
[07:02:32] <sacho> you're watching dom nodes? why?
[07:02:34] <BahamutWC|Laptop> robdubya: I get an Unexpected token identifier error
[07:02:44] <robdubya> BahamutWC|Laptop the best way seems to be to use System to import the main module and use regular import for errything else
[07:02:50] *** brunoB has joined #angularjs
[07:02:56] <BahamutWC|Laptop> robdubya: that’s what I’m doing
[07:02:59] <oste> b/c if i $watch(‘myModel’, function() the dom is not ready
[07:03:09] <sacho> oste, what does "the dom is not updated in time for the dom changes to work" mean
[07:03:13] <robdubya> oste not a good way
[07:03:14] <robdubya> at all
[07:03:18] *** gnrlbzik has joined #angularjs
[07:03:24] <sacho> when would the dom be updated "in time"
[07:03:39] <oste> sanch it means the model changed and $watch is fired but the dom is not ready yet
[07:03:40] <Logicgate> asynchronously while loading sacho
[07:03:50] <oste> sancho*
[07:03:55] <robdubya> oste i think you're doing it backwards
[07:04:03] <robdubya> data drives dom
[07:04:08] *** marshall_ has joined #angularjs
[07:04:20] *** mandric has quit IRC
[07:04:21] <oste> yeah - so i wish i could just $watch(‘myModel'
[07:04:30] <oste> but like i am saying - when that changes, the dom is not ready
[07:04:38] <robdubya> what are you doing
[07:04:40] <Logicgate> that makes no sense.
[07:04:44] <Logicgate> I need to see the code.
[07:04:47] <Logicgate> oste: plunker
[07:05:04] <oste> argh
[07:05:08] *** nuizzy has quit IRC
[07:05:21] <oste> i am telling ya thats how its working…
[07:05:27] <robdubya> what. are. you. doing.
[07:05:38] *** DrMabuse_ has quit IRC
[07:06:13] <oste> depending on how many models i have i need to update the css attributes
[07:06:20] *** wd40s has joined #angularjs
[07:06:30] <robdubya> soooo use ng-class
[07:06:33] <robdubya> or ng-style
[07:06:42] <robdubya> theres' no reason to watch the dom
[07:06:42] *** jae has joined #angularjs
[07:06:43] <oste> i need to get the size of the current elements
[07:07:01] <oste> but they are not visible when the model changes :(
[07:07:04] <oste> simple as that
[07:07:38] *** Xethron has quit IRC
[07:07:40] <oste> so yeah its kind of wacky
[07:07:44] <robdubya> simple fix is probably just to fire a timeout
[07:07:51] *** gnrlbzik has quit IRC
[07:07:52] <robdubya> but you're doing something wacky
[07:08:00] *** mruzekw has joined #angularjs
[07:08:03] *** kalehv has joined #angularjs
[07:08:11] <oste> yeah, it happens
[07:08:15] <BahamutWC|Laptop> robdubya: I had to do export { ParticipantFactory } in order to do the alias syntax
[07:08:34] <Logicgate> oste you have your structure wrong, you can measure an element that is visible inside a 0 height div.
[07:08:34] <oste> that answer doesnt get 9 upvotes if it didnt
[07:08:38] *** marshall_ has quit IRC
[07:08:38] <Logicgate> just create a wrapper
[07:08:44] <BahamutWC|Laptop> export default ParticipantFactory would just make the alias undefined
[07:08:45] <robdubya> BahamutWC|Laptop i typically just do export default Foo {}
[07:08:46] <robdubya> then alias on the import
[07:08:51] <robdubya> weird
[07:09:02] *** woah has quit IRC
[07:09:09] <Logicgate> The content inside the 0 height div are going to be "hidden". You can still get the measurements of the elements inside as long as they're not display:none
[07:09:31] <BahamutWC|Laptop> really happy with proper modules though - probably the greatest part about ES6
[07:09:32] <Logicgate> Does that make sense oste?
[07:09:35] <robdubya> yeah
[07:09:44] <sacho> oste, okay, I get it now
[07:09:59] *** Xethron has joined #angularjs
[07:10:08] <sacho> oste, unfortunately angular doesn't have a concept of "finished rendering"
[07:10:08] <robdubya> $timeout(doTheThing,0)
[07:10:08] <robdubya> oste ^
[07:10:24] <oste> crap i didnt try 0
[07:10:29] <robdubya> usually fixes that kind of thing
[07:10:30] <oste> just could not accept timeout haha
[07:10:38] <Logicgate> <div style="height:0"><div id="supposedtobedisplaynone">...</div></div>
[07:10:43] *** mruzekw has quit IRC
[07:11:01] *** mruzekw has joined #angularjs
[07:11:06] <Logicgate> wrappers, wrappers, wrappers..
[07:11:27] <robdubya> enough with the politcal ads, god damn.
[07:11:30] <Logicgate> once you know the dimensions, you can adjust the parent div's dimensions as well.
[07:12:27] *** mennea_ has quit IRC
[07:12:29] <oste> timeout is no good
[07:12:43] *** mennea has joined #angularjs
[07:12:49] <oste> not sure about adding wrappers...
[07:12:55] <Logicgate> why?
[07:12:57] <oste> don’t see how that will help me
[07:12:57] <robdubya> why dont you just do
[07:13:00] <robdubya> ng-style
[07:13:11] <Logicgate> oste, it'll help you so you can measure the element!
[07:13:19] <robdubya> or ng-class
[07:13:33] <robdubya> maybe not
[07:13:36] <robdubya> meh
[07:13:44] <oste> yeah that could get heavy
[07:14:02] <robdubya> time to make a plunker
[07:14:06] *** SoulBlade has joined #angularjs
[07:14:17] <oste> the solution is in that stackoverflow
[07:14:25] *** anjumkaiser has joined #angularjs
[07:14:29] <oste> the ansewer even says it
[07:14:32] *** anjumkaiser1 has quit IRC
[07:15:10] *** scottc5 has quit IRC
[07:15:15] <oste> nvm - thought there was a “this is gold quote” lol
[07:15:34] *** numenor has quit IRC
[07:15:40] <sacho> that's not actually watching childNodes
[07:15:47] *** jae is now known as Jae
[07:15:47] <sacho> it's just a function watch
[07:15:54] <sacho> probably the cleanest way to implement this, really
[07:16:45] *** stephen has joined #angularjs
[07:16:54] *** JBreit has quit IRC
[07:17:18] <Logicgate> oste: http://jsfiddle.net/2jamsp9j/
[07:17:31] <deweydb> bizarre question time: is it possible to see if a event that was $emited was acted upon?
[07:17:56] <deweydb> im having a bitch of a time dealing with callbacks between controllers and services
[07:18:01] <deweydb> im probably doing it totally wrong
[07:18:03] *** JBreit has joined #angularjs
[07:18:12] <oste> logicgate that is not really the issue here
[07:18:32] <oste> check this http://stackoverflow.com/a/21361421/429909
[07:18:39] <Logicgate> you said you couldn't get the height of the divs.
[07:18:45] <Logicgate> because the dom isn't loaded.
[07:18:55] <oste> one actually nice side effect is that i don’t need to use a scope anymore :)
[07:19:01] *** {DV8} has quit IRC
[07:19:04] <ckboii89> if i get a 404 how do i determine if its my frontend or backend?
[07:19:05] *** SoulBlade has quit IRC
[07:19:18] <Logicgate> ckboii89, look at your backend logs
[07:19:22] <Logicgate> See what URL was requested.
[07:19:45] *** matthoiland has joined #angularjs
[07:19:46] *** linojon has joined #angularjs
[07:19:54] *** imjakechapman has joined #angularjs
[07:21:00] *** NormySan has quit IRC
[07:21:48] *** Circlefusion has quit IRC
[07:21:58] <robdubya> deweydb youre doing it wrong
[07:22:06] <deweydb> yeah i figured as much
[07:22:22] <deweydb> it feels really wrong
[07:22:24] <deweydb> what im doing right now
[07:22:27] <deweydb> like molesting a child
[07:22:49] <robdubya> ...
[07:22:51] <deweydb> here's what i am trying to accomplish
[07:23:17] *** TripTastic has joined #angularjs
[07:23:25] <ckboii89> does anyone know where php logs are
[07:23:35] *** asher^ has quit IRC
[07:23:48] *** linojon_ has joined #angularjs
[07:23:54] <deweydb> controller A -> triggers function in Service -> triggers function in Controller B. when function in controller B returns success, then service completes a task.
[07:23:58] *** zef has quit IRC
[07:24:07] *** JBreit has quit IRC
[07:24:11] <robdubya> use promises
[07:24:15] <deweydb> i am using promises
[07:24:20] *** linojon has quit IRC
[07:24:20] *** linojon_ is now known as linojon
[07:24:21] <deweydb> and passing them with $emit
[07:24:25] *** matthoiland has quit IRC
[07:24:30] <robdubya> no
[07:24:42] <robdubya> forget emit even exists
[07:24:52] <deweydb> lol ok
[07:25:05] <deweydb> but ok, i did try that, to do it without events
[07:25:12] <robdubya> make a plunk
[07:25:21] <deweydb> oh god. its such a mess right now.
[07:25:31] <deweydb> its ok. i think i just needed someone to tell me to stop using emit
[07:25:34] <deweydb> i'll try again without it
[07:25:45] <dllama> i know u guys are prolly sick and tired of explaining promises and everything relating to it,
[07:25:54] <dllama> i do however have anther question on the matter
[07:26:26] <dllama> what happens if ur using data resolved by a promise in the parent controller, but you're the page gets refreshed on a child controller ? (nested ui-router)
[07:26:33] <deweydb> i guess my problem was, without using emit, i couldn't figure out how to get the callback to call within the scope of controller B
[07:26:41] <deweydb> rather than calling it in the scope of the service
[07:27:09] <robdubya> i have no idea what you mean
[07:27:13] <deweydb> nevermind
[07:27:18] <deweydb> i think i just got an idea
[07:27:18] <deweydb> thanks
[07:27:39] *** VeeWee has joined #angularjs
[07:27:46] *** Gabri has joined #angularjs
[07:28:52] <Logicgate> ckboii89, you should look at your web server logs.
[07:28:55] <Logicgate> not sure what you use
[07:29:01] *** shampine has quit IRC
[07:29:07] *** asher^ has joined #angularjs
[07:30:51] *** chrisbirk has joined #angularjs
[07:32:44] *** oktapodi_ has quit IRC
[07:32:47] *** mpeterson has joined #angularjs
[07:33:14] *** chrisbirk has quit IRC
[07:33:24] *** boberober has joined #angularjs
[07:33:45] <mpeterson> anyone know why a set of my Jasmine tests are failing when I added another set? The first set runs perfectly without the second, but once the second is added, the first fails because it is expecting a controller from the second set to exist...
[07:34:02] *** oldridge has quit IRC
[07:34:18] *** oktapodi has joined #angularjs
[07:36:04] *** ggrzybek has joined #angularjs
[07:36:19] *** _ritchie_ has quit IRC
[07:37:01] *** snellenbe has joined #angularjs
[07:37:18] *** Circlefusion has joined #angularjs
[07:37:27] <mpeterson> Here's a gist of my tests: https://gist.github.com/mpeterson2/d67025aaf7200d557d73
[07:37:31] *** TripTastic has quit IRC
[07:37:58] *** benco has quit IRC
[07:38:36] *** dgee has joined #angularjs
[07:39:00] *** SahanH has quit IRC
[07:39:05] *** DrMabuse has joined #angularjs
[07:39:13] *** SahanH has joined #angularjs
[07:39:16] *** nuizzy has joined #angularjs
[07:39:23] *** DrMabuse has quit IRC
[07:39:41] *** TripTastic has joined #angularjs
[07:39:41] *** rburns has quit IRC
[07:39:47] *** jstroem has joined #angularjs
[07:39:48] *** kan__ has joined #angularjs
[07:40:09] *** rburns has joined #angularjs
[07:40:50] *** Gabri has quit IRC
[07:41:04] *** e0ipso|away is now known as e0ipso
[07:41:05] *** TripTastic is now known as JBreit2
[07:41:26] *** gurke_ has joined #angularjs
[07:41:37] *** Gabri has joined #angularjs
[07:41:55] <gurke_> good morning. :)
[07:42:10] *** hrishi has joined #angularjs
[07:42:12] *** linojon has quit IRC
[07:42:19] *** mennea has quit IRC
[07:42:55] *** mennea has joined #angularjs
[07:43:28] *** numenor has joined #angularjs
[07:45:04] *** Gabri has quit IRC
[07:45:08] *** mruzekw has quit IRC
[07:47:53] *** boberober has quit IRC
[07:48:01] *** browles has quit IRC
[07:48:07] *** caitp has quit IRC
[07:48:34] *** Zenithar has quit IRC
[07:48:50] *** Sijdesign has joined #angularjs
[07:50:19] *** tech2 has joined #angularjs
[07:52:10] *** umesh has joined #angularjs
[07:52:21] <umesh> please some one help me
[07:52:47] *** levity_island has joined #angularjs
[07:52:48] *** robdubya has quit IRC
[07:53:06] <umesh> i want to know that to use material design for angular which files are mandatory or needed to implement in html
[07:53:23] *** discgo_ has quit IRC
[07:53:25] <umesh> <script src="angular-material.js"></script> <link rel="stylesheet" href="bower-material-master/angular-material.css">
[07:53:32] *** discgo has quit IRC
[07:53:33] <umesh> this 2 are
[07:53:37] <umesh> ???
[07:54:25] *** mpeterson has quit IRC
[07:55:04] *** patric100e99 has joined #angularjs
[07:55:10] *** discgo has joined #angularjs
[07:56:05] <umesh> i want to know that to use material design for angular which files are mandatory or needed to implement in html
[07:56:14] *** klaut has joined #angularjs
[07:56:42] *** kalehv has quit IRC
[07:57:23] <deweydb> robdubya: thanks!
[07:57:28] <deweydb> got it sorted
[07:57:55] <umesh> < klaut>: i want to know that to use material design for angular which files are mandatory or needed to implement in html
[07:58:33] *** Shrooms has joined #angularjs
[07:59:05] *** glaksmono has quit IRC
[07:59:35] *** umesh has quit IRC
[07:59:37] *** Shrooms has quit IRC
[07:59:52] *** patric100e99 has quit IRC
[08:00:11] *** Shrooms has joined #angularjs
[08:00:14] *** rtpg has joined #angularjs
[08:00:27] *** glaksmono has joined #angularjs
[08:00:51] *** Raging_Hog has joined #angularjs
[08:01:06] *** jonr22 has joined #angularjs
[08:01:46] *** rtpg_ has quit IRC
[08:02:12] *** kp666 has joined #angularjs
[08:02:24] *** bkuberek has joined #angularjs
[08:03:40] <numenor> umesh: This looks good, https://github.com/FezVrasta/bootstrap-material-design
[08:03:50] *** jstroem has quit IRC
[08:04:04] *** gnrlbzik has joined #angularjs
[08:04:23] *** jstroem has joined #angularjs
[08:04:34] <numenor> alos this : http://getleaf.com/examples
[08:04:34] *** grantfunke_ has quit IRC
[08:04:50] *** anivemin has joined #angularjs
[08:05:18] *** bkuberek_ has quit IRC
[08:05:45] *** emmesswhy has joined #angularjs
[08:06:03] *** A-Star has quit IRC
[08:06:20] *** alexw has quit IRC
[08:06:29] *** jonr22 has quit IRC
[08:08:18] *** travm has quit IRC
[08:08:32] *** tkimmel has joined #angularjs
[08:08:37] *** jstroem has quit IRC
[08:09:06] *** devians has joined #angularjs
[08:09:06] *** gnrlbzik has quit IRC
[08:09:12] *** dc_ has quit IRC
[08:10:41] *** Zenithar has joined #angularjs
[08:10:42] *** rburns has quit IRC
[08:10:59] *** thirdknife has joined #angularjs
[08:11:07] *** rburns has joined #angularjs
[08:11:19] *** dc_ has joined #angularjs
[08:11:46] <devians> hi. I'm at my wits end trying to debug an angularjs project and I'd love a hand. I have a controller that renders some html, in that html theres an ng repeat. in that ng-repeat scoped html theres a button that toggles a value that a later ng-show directive watches. the value is defined in the controller function as $scope.show = true; If I wrap that button in any kind of conditional to change whether it appears or not, that show/hide
[08:11:46] <devians> toggle functionality fails. If I change the value to be $scope.something.show, or if I manage the variable via a function to toggle its value, every item in my ng-repeat toggles not just the one relevant to the button.
[08:11:47] *** dreambox has joined #angularjs
[08:12:14] <devians> this is clearly a prototype inheritance sadtimes that I've gotten myself into, but I'm just flailing about trying to figure out how the heck to just make this button work.
[08:12:21] *** mennea has quit IRC
[08:12:59] *** mennea has joined #angularjs
[08:13:02] *** stephen has quit IRC
[08:13:17] *** tkimmel has quit IRC
[08:13:19] *** stephen has joined #angularjs
[08:13:32] <devians> in the end, I want the button to only show if $scope.foo != "bar", and the button should toggle the value of $scope.baz. this seems... unnecessarily difficult
[08:13:42] *** stephen has quit IRC
[08:13:58] *** stephen has joined #angularjs
[08:14:27] *** paperElectron has quit IRC
[08:14:52] <sacho> make a plunker
[08:14:52] *** b1nd has quit IRC
[08:15:27] *** soee has joined #angularjs
[08:16:18] *** emmesswhy has quit IRC
[08:16:53] *** onats has joined #angularjs
[08:17:03] *** paperElectron has joined #angularjs
[08:17:21] <devians> plunker?
[08:17:34] <grizzm0> http://plnkr.co/
[08:18:07] *** AndreasLutro has joined #angularjs
[08:18:17] *** b1nd has joined #angularjs
[08:18:31] *** lite_ has joined #angularjs
[08:19:14] *** Yankie has joined #angularjs
[08:19:24] *** Sijdesign has quit IRC
[08:19:44] *** sahbeewah has joined #angularjs
[08:19:46] <dllama> how do u guys handle data when u reload a page in a nested view? i have my parent controller resolving the promise, but i'm not really sure what to do if someon refreshes teh child state, it shows nothing right now as a result
[08:20:06] <devians> I'm not sure I can do that accurately unfortunately... too much going on.
[08:21:28] *** b1nd has quit IRC
[08:21:56] *** SoulBlade has joined #angularjs
[08:22:34] *** Ch4rAss has joined #angularjs
[08:23:07] *** b1nd has joined #angularjs
[08:23:39] *** gob has joined #angularjs
[08:25:24] *** carlosmantilla has joined #angularjs
[08:25:25] *** canthugeverycat has joined #angularjs
[08:26:07] *** SoulBlade has quit IRC
[08:26:34] *** b1nd has quit IRC
[08:26:55] *** doginal has quit IRC
[08:27:04] <soee> good morning
[08:27:13] *** b1nd has joined #angularjs
[08:27:44] *** piecyk has joined #angularjs
[08:27:57] *** oste has quit IRC
[08:28:59] *** doginal has joined #angularjs
[08:29:19] *** TheAceOfHearts has quit IRC
[08:29:55] *** zwacky has joined #angularjs
[08:31:12] *** TheAceOfHearts has joined #angularjs
[08:31:39] *** b1nd has quit IRC
[08:35:07] *** DrJae has joined #angularjs
[08:35:10] *** Jae has quit IRC
[08:36:18] *** sheplu has quit IRC
[08:36:25] *** one0one has quit IRC
[08:38:30] *** foofoobar has joined #angularjs
[08:38:53] *** rho has quit IRC
[08:39:07] *** rkpaul has quit IRC
[08:39:10] *** afuggini has joined #angularjs
[08:39:53] *** doginal has quit IRC
[08:40:28] *** Leon has joined #angularjs
[08:40:42] *** doginal has joined #angularjs
[08:41:17] *** zwacky has quit IRC
[08:41:17] *** rburns has quit IRC
[08:41:33] *** nfroidure has joined #angularjs
[08:41:46] *** rburns has joined #angularjs
[08:41:56] *** Yahkob has joined #angularjs
[08:42:25] *** mennea has quit IRC
[08:43:01] *** mennea has joined #angularjs
[08:45:14] *** caitp has joined #angularjs
[08:45:18] *** Sky[x] has joined #angularjs
[08:45:31] <deweydb> i have a strange problem with ui-router. i've been using it on my own server, with html5 mode enabled. I just went to run it on a different server, where i am not able to do html5 mode, and it keeps jumping back to the index state between state changes.
[08:45:39] <deweydb> does anyone know how to prevent this?
[08:46:30] *** Yahkob has quit IRC
[08:46:54] *** dllama has quit IRC
[08:47:43] *** Freeman42x has quit IRC
[08:48:09] *** sacho_ has joined #angularjs
[08:48:10] *** freeman42 has joined #angularjs
[08:48:17] *** nfroidure has quit IRC
[08:48:53] *** Ajans has joined #angularjs
[08:48:54] <deweydb> nevermind, was just bad config
[08:50:15] <onats> quick question guys
[08:50:29] *** umesh has joined #angularjs
[08:50:43] *** cacts has joined #angularjs
[08:50:50] <onats> will it be difficult to allow seo on angularjs-built sites?
[08:50:57] *** Asiajey has joined #angularjs
[08:51:01] <umesh> cacts: i want ask u one question..?
[08:51:09] *** sacho has quit IRC
[08:52:14] *** blomman has joined #angularjs
[08:53:35] <umesh> i want to know how to use material design for angularjs
[08:54:33] *** discgo has quit IRC
[08:54:46] <deweydb> onats: http://www.business2community.com/seo/googles-crawler-now-understands-javascript-mean-0898263
[08:54:58] *** tarnus has quit IRC
[08:55:22] <deweydb> just make a good site. don't worry so much about seo. good sites do well because they are good, not because of seo
[08:55:59] <onats> im in the process of building.. just popped up.
[08:56:01] *** favetelinguis has joined #angularjs
[08:56:09] <mitchdotpro> deweydb: I tell my clients that all the time. Then they reply, “MOAR SEO!”
[08:56:35] <deweydb> to be honest i'm not totally sure
[08:56:42] *** freeman42 has quit IRC
[08:56:43] <deweydb> how scrapable a angular site will be
[08:56:48] <deweydb> you could do clever things though
[08:56:53] <deweydb> and provide non-js versions
[08:57:02] <deweydb> of just text and links
[08:57:29] <mitchdotpro> Single-page apps have always had drawbacks
[08:57:43] *** Click66 has joined #angularjs
[08:57:50] *** rtpg has quit IRC
[08:58:19] *** rtpg has joined #angularjs
[08:58:28] *** threesixes has quit IRC
[08:58:47] *** umesh has quit IRC
[08:59:38] *** laurensclaessen has joined #angularjs
[09:00:10] *** jagga_ has joined #angularjs
[09:00:19] *** e0ipso is now known as e0ipso|away
[09:00:22] *** e0ipso|away is now known as e0ipso
[09:00:39] *** Artagan has joined #angularjs
[09:01:25] *** Sky[x] has quit IRC
[09:01:29] *** Aliks has quit IRC
[09:01:41] *** rtpg has quit IRC
[09:01:50] *** rtpg has joined #angularjs
[09:02:00] *** mityaz has joined #angularjs
[09:02:07] *** mennea has quit IRC
[09:02:44] *** nfroidure has joined #angularjs
[09:04:13] *** rtpg has quit IRC
[09:04:38] *** qdk has quit IRC
[09:04:41] *** mchammer has joined #angularjs
[09:05:06] *** caitp has quit IRC
[09:05:35] *** freeman42 has joined #angularjs
[09:05:44] *** foofoobar has quit IRC
[09:06:38] *** foofoobar has joined #angularjs
[09:06:58] *** JohnBat26 has joined #angularjs
[09:07:49] *** ckboii89 has quit IRC
[09:08:20] *** e0ipso is now known as e0ipso|away
[09:08:21] <canthugeverycat> Hey guys, can someone explain to me how do you send "DATA" (not params) in POST request with $resource ? Cause I can't seem to get it right, and Im killing myself over it for the past 3 days
[09:08:38] *** matthoiland has joined #angularjs
[09:08:42] *** laurensclaessen has quit IRC
[09:08:59] <benjick> Hi. I'm trying to do function(key) { console.log($scope.settings.key) } where key could be for example url, thus I want to log $scope.settings.url to console. How do I do this? The PHP eq would be $scope['settings'][$key]
[09:10:03] *** e0ipso|away is now known as e0ipso
[09:10:22] *** laurensclaessen has joined #angularjs
[09:10:46] *** fbenoit has joined #angularjs
[09:11:07] <AndreasLutro> $scope.settings[key]
[09:11:13] *** Juanchito has joined #angularjs
[09:11:18] *** freeman42 has quit IRC
[09:11:24] *** MaxV has joined #angularjs
[09:13:05] *** hilefoks has joined #angularjs
[09:13:11] *** matthoiland has quit IRC
[09:13:40] *** Asiajey has quit IRC
[09:13:40] *** Asiajey_ has joined #angularjs
[09:14:22] *** klaut has quit IRC
[09:15:10] *** jdj_dk has joined #angularjs
[09:15:12] *** favetelinguis has quit IRC
[09:15:44] *** favetelinguis has joined #angularjs
[09:15:58] *** kuniyori has quit IRC
[09:16:02] *** Grokling_ has joined #angularjs
[09:16:24] *** Asiajey_ has quit IRC
[09:16:28] *** ckboii89 has joined #angularjs
[09:16:39] <nodedfree> znc help
[09:17:57] *** Asiajey has joined #angularjs
[09:18:08] *** MaxV has quit IRC
[09:18:53] *** devians has left #angularjs
[09:18:55] <canthugeverycat> Is anyone experienced with using $resource here ?
[09:19:50] *** faveteli_ has joined #angularjs
[09:20:05] *** rhp has quit IRC
[09:20:06] *** jdj_dk has quit IRC
[09:20:11] *** samcfc has joined #angularjs
[09:20:21] *** favetelinguis has quit IRC
[09:20:38] *** stephen has quit IRC
[09:20:44] *** gunn has quit IRC
[09:21:01] *** motionman has quit IRC
[09:21:13] <samcfc> hi there, I got a problem about ngRessource not being call after interceptor $q.reject(reason), the successcallback of the ressource is called instead , do you have a clue about what could happen :(
[09:22:18] *** StryKaizer has joined #angularjs
[09:22:59] <sacho_> what does your code look like
[09:24:42] *** HelperW has joined #angularjs
[09:25:05] *** dreambox has quit IRC
[09:26:05] *** Asiajey has quit IRC
[09:26:05] *** Asiajey_ has joined #angularjs
[09:26:49] <samcfc> very classic
[09:27:08] *** TheAceOfHearts has quit IRC
[09:27:13] *** zzing has quit IRC
[09:27:44] *** nfroidure has quit IRC
[09:27:49] <samcfc> var bootstrapResource = $resource(uri); bootstrapResource.query(function(response, responseHeaders) {.....}, function(error){....});
[09:27:53] *** Sontakey has quit IRC
[09:28:39] *** sk87 has joined #angularjs
[09:29:00] *** mbenadda_ has joined #angularjs
[09:29:22] *** asher^ has quit IRC
[09:29:51] *** gunn has joined #angularjs
[09:29:59] *** gunn has quit IRC
[09:30:02] *** calmbird has joined #angularjs
[09:30:25] *** onats has quit IRC
[09:30:28] *** transGLUKator has joined #angularjs
[09:30:37] *** gunn has joined #angularjs
[09:30:46] *** gunn has quit IRC
[09:31:13] <transGLUKator> Hello, can anybody help me with some AngularJs problem?
[09:31:14] *** fbenoit has quit IRC
[09:31:25] *** gunn has joined #angularjs
[09:32:27] *** dnull_ has joined #angularjs
[09:33:00] *** onats has joined #angularjs
[09:33:07] <samcfc> even on a 404 thying to use $http instead of & resource successcallback is called with error message :-/
[09:33:15] <samcfc> my interceptor lokoks like this
[09:33:58] *** poolside has quit IRC
[09:34:02] *** snellenbe has quit IRC
[09:34:52] *** numenor has quit IRC
[09:35:41] <samcfc> responseError: function(response) { if (response.status === 401) { var deferred = $q.defer(); httpBuffer.append(response.config, deferred); $rootScope.$broadcast('event:auth-loginRequired', response); return deferred.promise; } else{ var deferred = $q.defer();
[09:36:01] *** patrickreck has joined #angularjs
[09:36:48] *** fbenoit has joined #angularjs
[09:36:59] *** motionman has joined #angularjs
[09:36:59] *** dardon has joined #angularjs
[09:37:03] *** onats has quit IRC
[09:37:21] *** guilbep has joined #angularjs
[09:37:46] *** edy has joined #angularjs
[09:38:36] *** lexek__ has joined #angularjs
[09:38:37] *** tech2 has quit IRC
[09:38:41] *** mbenadda_ has quit IRC
[09:38:48] *** mbenadda_ has joined #angularjs
[09:39:08] *** acelot has joined #angularjs
[09:39:26] *** AciD`` has joined #angularjs
[09:39:30] *** arkin has joined #angularjs
[09:39:32] *** arkin has joined #angularjs
[09:40:05] *** piecyk has quit IRC
[09:41:35] *** mbenadda_ has quit IRC
[09:41:38] *** dharmit has quit IRC
[09:41:53] *** mbenadda_ has joined #angularjs
[09:42:09] *** hekep has joined #angularjs
[09:43:20] *** jdj_dk has joined #angularjs
[09:45:39] *** MalteJ has joined #angularjs
[09:46:17] *** anivemin has quit IRC
[09:46:47] *** kas84 has joined #angularjs
[09:46:50] *** nfroidure has joined #angularjs
[09:47:28] *** acelot has quit IRC
[09:47:54] <transGLUKator> how to prevent red buttons in the middle of the page http://returnx.ru/nojob/index.html from triggering ngAnimate. $event.stopPropogation doesn't work
[09:49:17] *** dnull_ has quit IRC
[09:49:27] *** swirlycheetah has joined #angularjs
[09:49:45] *** doginal has quit IRC
[09:50:07] *** jonr22 has joined #angularjs
[09:50:08] *** Guest793 has quit IRC
[09:50:28] *** swirlycheetah has quit IRC
[09:50:32] *** patrickr_ has joined #angularjs
[09:50:39] *** swirlycheetah has joined #angularjs
[09:50:56] *** tripu has quit IRC
[09:51:02] *** m8 has joined #angularjs
[09:51:29] *** JM_ has joined #angularjs
[09:52:06] <JM_> Hi guys, can you please recommend paper books for angularjs?
[09:53:15] *** gnrlbzik has joined #angularjs
[09:53:43] <ckboii89> ng-book
[09:53:49] *** patrickreck has quit IRC
[09:53:49] <Logicgate> Lulz
[09:54:11] *** emmesswhy has joined #angularjs
[09:54:56] *** MrBaboon has joined #angularjs
[09:55:10] *** jonr22 has quit IRC
[09:56:03] *** heaviside has joined #angularjs
[09:56:20] *** patric100e99 has joined #angularjs
[09:56:27] *** heaviside is now known as Guest96691
[09:56:33] *** ckboii89 has quit IRC
[09:57:04] *** milka has joined #angularjs
[09:57:22] *** tkimmel has joined #angularjs
[09:57:29] *** dgee has quit IRC
[09:57:50] <Guest96691> hello guys, it's my first time here... may i ask a question not exactly on angular?
[09:58:02] *** gnrlbzik has quit IRC
[09:58:09] *** charuru has quit IRC
[09:58:13] <jagga_> morning people,I have a $location.url('/potato/' + $scope.bla). Each time the controller loads, the $scope.bla is updated. How would I go about updating the URL also?
[09:59:34] *** anivemin has joined #angularjs
[09:59:54] *** hswolff has quit IRC
[09:59:57] <Guest96691> maybe using apply?
[10:00:19] <jagga_> hm never came across this yet
[10:00:22] <jagga_> looking up
[10:01:36] *** patric100e99 has quit IRC
[10:01:44] *** hswolff has joined #angularjs
[10:01:55] *** tkimmel has quit IRC
[10:02:33] *** ome has joined #angularjs
[10:03:30] *** milka has quit IRC
[10:03:54] *** intellix has joined #angularjs
[10:03:56] *** ambougue has joined #angularjs
[10:03:58] <calmbird> Hi. Do google bots finally indexing Angular SPA, or do we still to have give _escaped_fragment_ generated static pages?
[10:04:02] *** firelinks has joined #angularjs
[10:04:13] *** balr0g has quit IRC
[10:04:13] <m8> i can compile an angular html template in a string?
[10:04:13] *** grantfunke_ has joined #angularjs
[10:04:24] <m8> *can i
[10:04:32] *** Cybrosys has joined #angularjs
[10:04:40] *** bengillies has joined #angularjs
[10:04:55] <Guest96691> btw i have a question on how to put a web application in SPA - angular on IIS 6.1 virtual directory....
[10:04:57] <calmbird> m8 you mean bind-html ?
[10:05:30] <Guest96691> i have never done this before, if there is a link it's ok too...
[10:05:34] *** firelinks has quit IRC
[10:05:38] <m8> calmbird, do you know angular-ui bootstrap and the tooltip directive?
[10:05:53] *** motionman has quit IRC
[10:06:01] <calmbird> m8: bootstra
[10:06:02] <Cybrosys> I've gotten angularjs 1.3 to run my typescript controller's constructor... but the "Controller as vm" statement yields an empty object as "vm", no model binding works. Does anyone know how to fix this or if it's fixed? I'm using nuget version 1.3.0
[10:06:20] <calmbird> but using routeprovider
[10:06:22] <m8> calmbird, http://angular-ui.github.io/bootstrap/#/tooltip this
[10:07:17] <calmbird> "There isn't a GitHub Page here." error
[10:07:53] *** mennea has joined #angularjs
[10:09:22] <m8> calmbird, http://angular-ui.github.io/bootstrap/ for tooltip directive i can put in a scope variable an html to show in a tooltip. Now i've a js object and i want to transform it in a string for showing it in the tooltip
[10:09:34] *** jillesme has joined #angularjs
[10:10:50] <calmbird> you have something like <div someattributes>string you want to get</div> ?
[10:11:06] <m8> calmbird, more complex for a simple string concatenation
[10:11:11] <m8> *than
[10:11:48] <calmbird> Well angular has builting jquery light, for html objects manimulation
[10:11:55] <calmbird> https://docs.angularjs.org/api/ng/function/angular.element
[10:11:58] *** frankblizzar has joined #angularjs
[10:12:03] <calmbird> jquery lite*
[10:12:17] <calmbird> look at text()
[10:12:47] <m8> calmbird, but if i've to something like ng-repeat
[10:12:57] *** ambougue has quit IRC
[10:12:58] <Guest96691> ok guys thank u...
[10:13:35] <calmbird> Well you can use your custom directive.
[10:13:41] *** juampy has joined #angularjs
[10:13:50] *** bealtine has joined #angularjs
[10:13:53] *** Guest96691 has quit IRC
[10:13:59] <calmbird> Or controller to pass html object, and get text from it
[10:14:08] <m8> calmbird, var myhtml = function("<div ng-repeat="foo in bar">{{ foo }}</div>")
[10:14:20] <m8> it's impossible?
[10:14:36] *** A-star has joined #angularjs
[10:14:44] *** Gacnt has joined #angularjs
[10:14:56] <calmbird> If its more complex behaoviur I sugest you to build your custom directive, you have acces to html object there. And you can get everything from it.
[10:14:58] <Gacnt> Hello, is anybody available to offer me some help on this problem: http://stackoverflow.com/questions/26710529/how-to-change-path-in-angularjs-via-get-request-from-nodejs-express been beating my head against the wall for hours on it
[10:15:29] <m8> calmbird, yes but tooltip is a directive too
[10:15:37] *** mennea has quit IRC
[10:15:56] <m8> calmbird, i've to write my custom tooltip directive?
[10:16:06] <calmbird> you want to get {{ foo }} ?
[10:16:19] <m8> calmbird, all the "compiled" html
[10:16:19] *** edy has quit IRC
[10:16:20] *** jillesme has quit IRC
[10:16:38] *** mennea has joined #angularjs
[10:17:13] *** qdk has joined #angularjs
[10:18:12] *** jMyles has quit IRC
[10:18:16] <calmbird> m8: Well I can't see big picture. But if you want to get object for example on click: you doing something like <div ng-click="myFunction($event)"></div>
[10:18:33] <m8> calmbird, only the rendered html in a string
[10:18:56] <calmbird> and then in controller you can: myFunction($event) { var htmlObject = $event.target }
[10:18:57] <m8> calmbird, using the "anuglar template compiler" like underscore
[10:19:53] <calmbird> ah ok now I get it, you want put whole object to the string, well I don't know how to do it but I think you went wrong way, it sounds to complicated. :)
[10:19:54] *** zwacky has joined #angularjs
[10:20:15] *** azizur has joined #angularjs
[10:20:20] *** _KryDos_ has joined #angularjs
[10:20:51] *** MrBaboon has quit IRC
[10:21:00] *** dharmit has joined #angularjs
[10:21:03] <_KryDos_> Hi guys, is it possible to change User-Agent header using $http? I'm trying but it doesn't work
[10:21:10] <m8> calmbird, yes :)
[10:21:21] *** gunn has quit IRC
[10:21:27] *** ThatTreeOverTbn_ has joined #angularjs
[10:21:29] *** ThatTreeOverTbn_ has left #angularjs
[10:21:57] *** SahanH has quit IRC
[10:22:15] *** icarus75 has joined #angularjs
[10:22:32] <m8> calmbird, and i don't need watchers on it
[10:22:41] <m8> i need the string only once
[10:22:54] *** gunn has joined #angularjs
[10:22:56] *** bengillies has quit IRC
[10:22:58] *** SoulBlade has joined #angularjs
[10:23:05] *** _KryDos_ has quit IRC
[10:24:31] *** ckboii89 has joined #angularjs
[10:25:10] <Gacnt> Hello, is anybody available to offer me some help on this problem: http://stackoverflow.com/questions/26710529/how-to-change-path-in-angularjs-via-get-request-from-nodejs-express been beating my head against the wall for hours on it
[10:25:10] <calmbird> m8: have you seen this? http://stackoverflow.com/questions/19812510/converting-html-element-to-string-in-javascript-jquery
[10:25:29] *** dreambox has joined #angularjs
[10:25:34] *** jstroem has joined #angularjs
[10:25:38] *** Cybrosys has quit IRC
[10:25:38] <m8> calmbird, i've to use a placeholder element in the dom?
[10:26:01] <m8> it's not a bad idea
[10:26:02] *** rburns has quit IRC
[10:26:09] *** rburns has joined #angularjs
[10:26:36] <calmbird> I doesn't matter if it's in dom or not, you can have object that is not in dom.
[10:26:50] <calmbird> You'v asked to put html object into string :P
[10:26:54] <m8> and yes!
[10:27:01] <m8> but computed element :D
[10:27:14] *** sk87 has quit IRC
[10:27:27] <m8> angular doesn't works with elements outside dom
[10:27:33] *** SoulBlade has quit IRC
[10:27:35] <calmbird> m8: well you have to dig google a bit more I think, I don't kno whow to help you fast way.
[10:27:46] <m8> calmbird, i'm googling for days :)
[10:27:47] <calmbird> m8: why not? jquery lite works
[10:28:00] *** onats has joined #angularjs
[10:28:08] <m8> yes but in the string angular expressions aren't evaluated
[10:29:01] <calmbird> I got a bit confused m8, sorry :) I would have to spend some time understanding big picture, and I don't have time ATM.
[10:29:06] *** sk87 has joined #angularjs
[10:29:26] <m8> calmbird, i'm confused too, thanks :)
[10:29:59] *** dreambox has quit IRC
[10:30:05] <m8> there is a way for anything and if there isn't the way, maybe it's the wrong way to do
[10:30:33] <m8> i will look at directives
[10:30:36] *** Yahkob has joined #angularjs
[10:31:14] *** anjumkaiser1 has joined #angularjs
[10:31:42] *** cacts has quit IRC
[10:32:15] *** anivemin has quit IRC
[10:32:33] *** jillesme has joined #angularjs
[10:32:59] *** boberober has joined #angularjs
[10:33:18] *** tangorri has joined #angularjs
[10:33:23] *** anjumkaiser has quit IRC
[10:35:12] *** sahbeewah has quit IRC
[10:35:36] *** Yahkob has quit IRC
[10:36:00] *** lianimator has joined #angularjs
[10:36:36] *** emmesswhy has quit IRC
[10:37:19] *** boberober has quit IRC
[10:39:39] *** moritzs has joined #angularjs
[10:43:21] *** cannap has joined #angularjs
[10:43:51] *** tarnus has joined #angularjs
[10:44:44] *** shinnya has quit IRC
[10:45:59] *** kkthxbye has joined #angularjs
[10:46:38] *** mnngfltg has joined #angularjs
[10:46:46] *** patrickr_ has quit IRC
[10:46:48] *** imjakechapman has quit IRC
[10:47:24] *** cotko has joined #angularjs
[10:47:24] *** qdk has quit IRC
[10:47:31] *** caitp has joined #angularjs
[10:48:26] *** tarnus has quit IRC
[10:48:54] <ckboii89> themime are you there
[10:49:15] *** fataldecrease has quit IRC
[10:50:00] *** tech2 has joined #angularjs
[10:50:10] *** dharmit has quit IRC
[10:50:10] *** jlebrech has joined #angularjs
[10:50:19] *** linojon has joined #angularjs
[10:50:53] <jlebrech> why does my logout button not register https://gist.github.com/jlebrech/593dd3a6729e99bf30ab I remove the item from localstorage and set $scope.current_user to null and it doesn't change in scope.
[10:51:16] *** patrickr_ has joined #angularjs
[10:51:51] *** benhx_ has quit IRC
[10:52:34] *** Gacnt has quit IRC
[10:52:41] *** otisZart has joined #angularjs
[10:54:10] *** juampy is now known as juampy_man
[10:54:45] *** dharmit has joined #angularjs
[10:54:53] *** cotko has quit IRC
[10:54:58] *** juampy_man is now known as juampy
[10:55:02] *** Sebastien-L has joined #angularjs
[10:55:51] <otisZart> Hello guys, it's months I would like to learn angularJs and start developing apps with it .. but everytime I want to, I dont find nice docs that follow you the right way and I just leave it for the future.. I'm quite expert in html/css/js/jquery so the problem is not about programming.. I'd like to ask if anyone can point me to nice documentation that guides you through this wonderful framework
[10:57:08] *** Rebirth has joined #angularjs
[10:57:32] *** matthoiland has joined #angularjs
[10:57:41] <otisZart> My lack is MVC, I am a class coder
[10:58:25] *** ingsoc has joined #angularjs
[10:58:36] <jlebrech> otisZart: egghead.io
[10:59:17] *** caitp has quit IRC
[10:59:27] *** kkthxbye has quit IRC
[10:59:38] <otisZart> jlebrech what if I prefear lectures? I am not really into videos and I just use them for something special or for hard IDEs
[11:00:01] <otisZart> also its a paying service, I'd prefear spending over a book
[11:00:12] *** bengillies has joined #angularjs
[11:00:32] *** e0ipso is now known as e0ipso|away
[11:01:25] *** foofoobar has quit IRC
[11:01:34] <otisZart> it's a pity raywenderlich doesnt write about angular :/
[11:01:36] *** Browser_ has left #angularjs
[11:01:58] *** onats has quit IRC
[11:02:03] *** matthoiland has quit IRC
[11:02:09] *** sheerun has joined #angularjs
[11:02:18] <bealtine> do the tutorial on https://docs.angularjs.org/tutorial ?
[11:03:25] <otisZart> seems a great kick start
[11:03:33] *** D-Boy has quit IRC
[11:03:34] <otisZart> ok I'll go into the tutorial :-)
[11:03:39] *** D-Boy has joined #angularjs
[11:05:08] *** e0ipso|away is now known as e0ipso
[11:05:09] *** faveteli_ has quit IRC
[11:05:36] *** favetelinguis has joined #angularjs
[11:07:31] *** nBek has joined #angularjs
[11:07:45] *** wolf2k_huh has joined #angularjs
[11:08:30] *** jlambert_ has joined #angularjs
[11:10:32] *** Jr3Says has quit IRC
[11:10:32] *** mmealling has quit IRC
[11:10:33] *** faveteli_ has joined #angularjs
[11:10:33] *** favetelinguis has quit IRC
[11:10:33] *** nickBek has quit IRC
[11:10:34] *** mmealling has joined #angularjs
[11:10:34] *** wolfman2000 has quit IRC
[11:10:35] *** Jr3Says has joined #angularjs
[11:10:36] *** jlambert121 has quit IRC
[11:10:36] *** Akufen has quit IRC
[11:10:37] *** linojon has quit IRC
[11:10:38] <jlebrech> i found canjs easier to learn at first but when things get hard the community is too small
[11:10:39] *** TinkerTyper has quit IRC
[11:10:57] *** Rafzzz has joined #angularjs
[11:11:19] <Rafzzz> guys if I've got a promise in app.run, how do i make the promise 'blocking' so that it resolves before the app continues
[11:11:27] *** Akufen has joined #angularjs
[11:11:35] *** swirlycheetah has quit IRC
[11:12:00] *** nemothekid has quit IRC
[11:12:11] *** otisZart has quit IRC
[11:12:21] *** otisZart has joined #angularjs
[11:12:50] *** Shrooms has quit IRC
[11:13:05] *** TinkerTyper has joined #angularjs
[11:13:13] *** anke has quit IRC
[11:13:36] *** A-star has quit IRC
[11:13:44] *** trampi has quit IRC
[11:13:44] *** zwacky has quit IRC
[11:14:00] <jagga_> Is it normal for an angular controller to execute twice?
[11:14:05] <bealtine> no
[11:14:20] <sacho_> jagga_, sure, if you use it twice
[11:14:20] *** sikor_sxe has joined #angularjs
[11:14:31] <jagga_> hmm
[11:14:41] *** trampi has joined #angularjs
[11:14:43] *** Rejected has joined #angularjs
[11:14:44] <jagga_> a bunch of stuff is being executed twice
[11:14:54] <jagga_> it makes it look like the page is reloading twice
[11:15:03] <sacho_> well, dont use it twice :)
[11:15:10] <Rafzzz> lol
[11:15:17] <sikor_sxe> hello, is there a way i can inject a service into a constant?
[11:15:20] <jagga_> Right you're right
[11:15:22] <jagga_> I AM using it twice
[11:15:25] <jagga_> in my routeprovider config
[11:15:29] *** sahbeewah has joined #angularjs
[11:15:35] <jagga_> silly me
[11:15:41] <sikor_sxe> i have some troubled with uglification messing with an ui-router resolve
[11:16:46] <jagga_> thing is though, I kinda need to use the controller twice in the route. because 1 of the routes is just '/' and when it's that I update the location to match another route '/stuff' but it uses the same controller
[11:17:08] <jagga_> The only reason I know it's getting executed twice is because I have a chart which is getting animated twice
[11:17:13] *** jacuqesdancona has joined #angularjs
[11:17:13] <jacuqesdancona> hi
[11:17:21] <jagga_> I'll either have to disable the animation (non-desirable) or figure this out :E
[11:17:22] *** lianimator1 has joined #angularjs
[11:17:31] <jagga_> create another controller
[11:17:38] *** transGLUKator has quit IRC
[11:17:51] <jacuqesdancona> If I'd want to call a directive method, after a controller method, how could I do that? For example, a directive method should be run after a successful post in the controller
[11:18:35] <jacuqesdancona> the stuff being done in the directive is dom manipulation, controller stuff is data manipulation
[11:19:48] *** nuizzy has quit IRC
[11:19:51] *** lianimator has quit IRC
[11:20:30] *** hilefoks has quit IRC
[11:21:13] *** NeedleEgg has joined #angularjs
[11:21:30] <jacuqesdancona> oh nevermind, looking at it the wrong way. I'd could simply call the controller method from the directive
[11:21:38] *** lexek_ has joined #angularjs
[11:21:42] *** nemothekid has joined #angularjs
[11:22:25] *** qdk has joined #angularjs
[11:22:57] *** hilefoks has joined #angularjs
[11:23:17] <Rafzzz> Is is possible to stop controllers running until an ajax call is completed from inside app.run? :O
[11:24:04] *** JM_ has quit IRC
[11:24:17] *** lexek__ has quit IRC
[11:25:00] *** cotko has joined #angularjs
[11:25:06] *** AngularUI has joined #angularjs
[11:25:06] <AngularUI> [bootstrap] chrisirhc pushed 1 new commit to master: http://git.io/r51xrg
[11:25:07] <AngularUI> bootstrap/master 5df524b blah238: fix(tabs): make tab links keyboard accessible...
[11:25:07] *** AngularUI has left #angularjs
[11:25:17] *** Shrooms has joined #angularjs
[11:26:12] *** foofoobar has joined #angularjs
[11:26:14] *** ssawickik has joined #angularjs
[11:26:27] <bealtine> use resolve
[11:26:45] *** dreambox has joined #angularjs
[11:27:32] *** Oddman has joined #angularjs
[11:27:39] *** foofoobar has quit IRC
[11:28:09] *** Grokling_ has quit IRC
[11:28:30] *** rburns has quit IRC
[11:30:20] *** AngularUI has joined #angularjs
[11:30:20] <AngularUI> [ng-grid] jonathanhedren opened pull request #1994: Add grid option 'exporterCsvColumnSeparator' (master...enhancement-csv-comma-separator) http://git.io/0NpS9w
[11:30:20] *** AngularUI has left #angularjs
[11:30:39] <Rafzzz> bealtine: the controller isn't in a route, it's embedded in index.html
[11:31:08] *** exp10r3r has quit IRC
[11:31:38] *** Left_Turn has joined #angularjs
[11:31:56] *** dreambox has quit IRC
[11:32:05] *** anjumkaiser has joined #angularjs
[11:32:09] *** sk87 has quit IRC
[11:32:44] *** tangorri has quit IRC
[11:33:20] *** anivemin has joined #angularjs
[11:33:34] *** sk87 has joined #angularjs
[11:33:37] *** anjumkaiser1 has quit IRC
[11:34:37] <jacuqesdancona> ugh
[11:35:00] <jacuqesdancona> directive method > controller method callback > back to directive
[11:35:01] <jacuqesdancona> is that possible?
[11:35:05] *** patrickr_ has quit IRC
[11:36:00] *** ckboii89 has quit IRC
[11:36:01] *** Trow has joined #angularjs
[11:37:22] *** c00ljs has joined #angularjs
[11:37:47] *** anivemin has quit IRC
[11:37:50] *** Miphe has joined #angularjs
[11:38:40] *** sheplu has joined #angularjs
[11:38:46] *** edy has joined #angularjs
[11:39:03] <Miphe> Hi guys. Got a problem with triggering a click event in angular & mocha. Explained here: http://stackoverflow.com/questions/26675196/trigger-click-event-on-an-angularjs-directive-in-mocha-test-suite
[11:39:14] *** jonr22 has joined #angularjs
[11:39:15] <Miphe> Was hoping someone could point me in the right direction?
[11:39:32] <Miphe> Small jsfiddle with the problem: http://jsfiddle.net/miphe/v0ged3vb/
[11:39:41] *** prbc has joined #angularjs
[11:39:46] *** noiserocker has joined #angularjs
[11:39:50] *** ozooner has joined #angularjs
[11:40:34] *** Rafzzz has quit IRC
[11:41:50] *** whitebook has joined #angularjs
[11:41:52] *** Click66 has quit IRC
[11:42:00] *** gnrlbzik has joined #angularjs
[11:42:16] *** BahamutWC has quit IRC
[11:42:27] *** edy has quit IRC
[11:42:41] *** BahamutWC|Work has quit IRC
[11:43:10] *** BahamutWC|Laptop has quit IRC
[11:43:52] *** jonr22 has quit IRC
[11:44:35] <ssawickik> When i use ngAnimation, everytime when i load new animated element, they are duplicated for a few miliseconds. Is there any known bug?
[11:44:44] *** NeedleEgg has quit IRC
[11:46:20] *** tkimmel has joined #angularjs
[11:47:05] *** gnrlbzik has quit IRC
[11:48:14] *** MaxV has joined #angularjs
[11:48:35] *** samcfc has quit IRC
[11:48:42] *** mmealling has quit IRC
[11:49:31] *** mmealling has joined #angularjs
[11:50:42] *** tkimmel has quit IRC
[11:50:43] *** Click66 has joined #angularjs
[11:51:43] *** gob has quit IRC
[11:52:44] *** DrJae is now known as Jae
[11:52:47] *** Jae has joined #angularjs
[11:53:37] *** nfroidure has quit IRC
[11:54:38] *** narutimateum2 has quit IRC
[11:55:43] *** nemothekid has quit IRC
[11:55:46] *** HelperW has quit IRC
[11:56:07] *** nemothekid has joined #angularjs
[11:56:09] *** ckboii89 has joined #angularjs
[11:57:08] *** onats has joined #angularjs
[11:57:51] *** nemothekid has quit IRC
[11:58:04] *** lianimator has joined #angularjs
[11:58:06] *** LekisS has joined #angularjs
[11:58:07] *** edy has joined #angularjs
[11:58:40] *** LekisS has quit IRC
[11:58:58] *** LekisS has joined #angularjs
[11:59:17] <ckboii89> can someone take a look and see if i made some sort of mistake? when i add a factory to post the promise returns a success message but my database doesnt get updated
[11:59:18] <ckboii89> https://gist.github.com/gwong89/5983297084fe1dc3d063
[11:59:23] *** lianimator1 has quit IRC
[11:59:52] *** LekisS has left #angularjs
[11:59:52] *** anjumkaiser has quit IRC
[12:00:54] <henn1nk> does angularjs generate ids for new objects?
[12:01:44] *** laurensclaessen has quit IRC
[12:02:15] *** rtpg has joined #angularjs
[12:03:10] *** rtpg has quit IRC
[12:03:52] *** TyrfingMjolnir has quit IRC
[12:04:31] *** rtpg has joined #angularjs
[12:05:44] *** goodenough has joined #angularjs
[12:06:18] *** mjs2600 has joined #angularjs
[12:07:01] *** HelperW has joined #angularjs
[12:07:17] <sacho_> what new objects?
[12:07:39] <sacho_> scopes have hash keys
[12:07:42] *** Schtive has joined #angularjs
[12:08:20] *** laurensclaessen has joined #angularjs
[12:08:33] *** Oddman has quit IRC
[12:10:21] *** sikor_sxe has quit IRC
[12:10:57] *** ckboii89 has quit IRC
[12:11:17] <calmbird> Do you know if google bots handle angularjs now, or do we still need to give static content on _escaped_fragment_ ?
[12:11:38] *** uru|away is now known as uru
[12:12:00] *** sk87 has quit IRC
[12:12:13] *** foofoobar has joined #angularjs
[12:12:29] *** faveteli_ has quit IRC
[12:13:05] *** favetelinguis has joined #angularjs
[12:13:19] *** tangorri has joined #angularjs
[12:13:34] <bd-> google bots can crawl javascript, but i havent' really seen them crawling full angular apps yet
[12:13:41] <bd-> usually just the front page
[12:13:54] *** rosieres has joined #angularjs
[12:13:59] <canthugeverycat> Guys, is there anyone who is experienced with using $resource to send http requests here ?
[12:14:00] *** arek_at_work has joined #angularjs
[12:14:37] *** mchapman has joined #angularjs
[12:14:49] *** rosieres has quit IRC
[12:15:04] *** techwharf has joined #angularjs
[12:15:21] <calmbird> bd-: they cant even see my frontpage http://gyazo.com/6d7452e71d4d1855a1276b9bd68d2d05
[12:15:47] <calmbird> at least from google webdev tools
[12:16:04] <bd-> check cached version on google search result
[12:16:37] <noiserocker> i have a problem regarding providers... i got a provider(factory) that gets loaded via a script-tag in the index.html file... Angulars throws an Error: Unknown Provider when loading the app. But if i concat the files, it all works as expected. Does somebody know what could go wrong along the way?
[12:17:11] <calmbird> bd-: should i have <meta name="fragment" content="!"/> ?
[12:17:16] *** favetelinguis has quit IRC
[12:17:37] *** VictorBjelkholm has joined #angularjs
[12:17:47] *** marr has joined #angularjs
[12:17:57] *** cakirke has joined #angularjs
[12:18:22] *** intellix has quit IRC
[12:18:30] <bd-> if your serverside supports rendering based on escaped fragment, yeah, you could use that
[12:18:39] <bd-> if it doesn't, then it'll do nothing
[12:19:32] *** Yahkob has joined #angularjs
[12:19:51] <canthugeverycat> Guys, is there anyone who is experienced with using $resource to send http requests here ?
[12:20:11] <bd-> canthugeverycat: just ask whatever question you have and await reply
[12:20:31] <calmbird> bd-: ok thanx, I firstly thought I need to somehow tell google bot, that it is SPA
[12:20:44] *** nemothekid has joined #angularjs
[12:21:06] <bd-> tbh, angular isn't a good choice for websites that require indexing
[12:21:19] *** MaxV has joined #angularjs
[12:22:08] *** MaxV has quit IRC
[12:22:37] *** mandric has joined #angularjs
[12:22:39] <canthugeverycat> @bd- I have, but people just ignore me. I am trying to create a POST request using $resource, and in that request I need to send "data" (not params) in request body. The problem is, I don't know the syntax to do that, as in where the hell does the data object go? The official documentation says nothing about it and the community is silent.
[12:23:09] <calmbird> bd-: I didnt know that, it should be writen at the top of angularjs documentation: "google has your angularjs site in their ***"
[12:23:28] <calmbird> canthugeverycat: they dont ignore you, they mby just dont know answer
[12:23:29] *** SoulBlade has joined #angularjs
[12:23:42] <calmbird> you want everyone to answer: "sorry canthugeverycat i dont know" ? :P
[12:24:01] *** Yahkob has quit IRC
[12:24:03] <canthugeverycat> @calmbird Ow, I am a noob at angular, but it seems like a really easy fix, it's probably me not writing it correctly
[12:24:31] *** nfroidure has joined #angularjs
[12:24:33] *** Soothsayer has joined #angularjs
[12:24:47] <bd-> canthugeverycat: are you talking about a GET or a POST request?
[12:24:52] *** texinwien has joined #angularjs
[12:24:59] <canthugeverycat> @bd- POST, get is working properly
[12:25:06] *** marcjs has joined #angularjs
[12:25:36] <bd-> well, when you $save the resource you got back from $resource, it will POST with the data in request body, not params
[12:26:30] <sacho_> canthugeverycat, check out the documentation - you pass the data as the second parameter when you call your custom action
[12:26:54] <Soothsayer> For a route’s resolve, I’ve been reading some articles which as convention encourage you to move the resolve functions inside your Controller and assign those to the resolve function. (for example - https://thinkster.io/egghead/resolve-conventions/ ).. But what happens when the Controller is in a separate file?
[12:27:27] <canthugeverycat> @sacho_ {action1: {method:?, params:?, isArray:?, headers:?, ...} This is from the documentation, so i should put data:{} instead of params ?
[12:27:35] <sacho_> no
[12:27:38] <sacho_> that's an action definition
[12:27:40] <sacho_> please read further
[12:27:43] <sacho_> there's even an example
[12:27:50] <Miphe> Hi guys. Got a problem with triggering a click event in angular & mocha. Explained here: http://stackoverflow.com/questions/26675196/trigger-click-event-on-an-angularjs-directive-in-mocha-test-suite
[12:27:53] <Miphe> Was hoping someone could point me in the right direction?
[12:27:54] *** zwischenzug has quit IRC
[12:27:58] <Miphe> Small jsfiddle with the problem: http://jsfiddle.net/miphe/v0ged3vb/
[12:28:00] <canthugeverycat> I have seen it, and I have read it 3 times, I don't understand it, that's the problem.
[12:28:13] <canthugeverycat> Could you give me an actual human example please ?
[12:28:15] *** SoulBlade has quit IRC
[12:28:52] <sacho_> "non-GET "class" actions: Resource.action([parameters], postData, [success], [error])"
[12:28:53] *** Nivag has quit IRC
[12:29:16] <sacho_> / Now call update passing in the ID first then the object you are updating
[12:29:16] <sacho_> - Notes.update({ id:$id }, note);
[12:29:39] *** zwacky has joined #angularjs
[12:29:42] *** rtpg has quit IRC
[12:30:13] *** JohnFree has joined #angularjs
[12:30:29] <canthugeverycat> I'll play around with that, thanks for clarifying! I'll let you know how it went :)
[12:30:43] <JohnFree> Hi guys. I don't understand why I have to use "$parent.variablename" in ng-click, even though the variable is defined in the child-controller of that View
[12:31:28] <Miphe> JohnFree, you have the code somewhere?
[12:31:53] *** nemothekid has quit IRC
[12:32:51] *** tarnus has joined #angularjs
[12:33:25] <JohnFree> Miphe: Sure wait a second please
[12:33:37] *** Hackwar1 has joined #angularjs
[12:33:48] *** Hackwar has quit IRC
[12:35:28] *** canthugallthecat has joined #angularjs
[12:35:29] *** spatialbrew has joined #angularjs
[12:36:54] <JohnFree> Miphe: http://jsfiddle.net/nDCXY/25/. Why isn't that working?
[12:37:02] <Miphe> I'll check it out
[12:37:11] <JohnFree> Miphe: Ok
[12:37:29] *** tarnus has quit IRC
[12:38:08] *** SahanH has joined #angularjs
[12:38:39] *** scottc5 has joined #angularjs
[12:38:45] <canthugallthecat> To the people that tried to help me with $resource POST data: http://pastebin.com/jJ7tGiZA
[12:38:50] <canthugallthecat> What is wrong with this ?
[12:39:28] *** lif has joined #angularjs
[12:39:47] *** tonybird has joined #angularjs
[12:40:46] *** klaut has joined #angularjs
[12:41:05] *** dylang has joined #angularjs
[12:41:19] *** tonybird has quit IRC
[12:41:30] *** RangerRick has quit IRC
[12:41:49] *** blomman has quit IRC
[12:41:50] *** RangerRick has joined #angularjs
[12:42:15] *** Fire-Dragon-DoL has joined #angularjs
[12:42:23] *** blomman has joined #angularjs
[12:42:29] *** preben_ has joined #angularjs
[12:43:20] *** Manaus has joined #angularjs
[12:43:21] *** Evanion has joined #angularjs
[12:43:24] *** Schtive has quit IRC
[12:44:09] *** glaksmono has quit IRC
[12:44:54] <otisZart> Guys I am learning about angular, and in this tutorial it speaks a lot about testing/describe() .. I am not really interested in it, i'd first like to learn how to make angular apps and how to play with it, shall I avoid it and consider later or you think that this is a way I should take immediately?
[12:45:00] *** \du has joined #angularjs
[12:45:00] *** \du has joined #angularjs
[12:45:05] <JohnFree> Hmm. I solved it myself
[12:45:10] <JohnFree> Somehow ng-if doesn't work
[12:45:13] <Miphe> JohnFree, http://jsfiddle.net/miphe/nDCXY/28/
[12:45:14] <JohnFree> It only works with ng-show
[12:45:16] <JohnFree> why?
[12:45:17] *** caitp has joined #angularjs
[12:45:24] <Miphe> ng-show is probably what you want
[12:45:32] <JohnFree> Miphe: Why does ng-if not work?
[12:45:38] <Miphe> ah, right.
[12:45:48] <Miphe> that's a good question.
[12:45:56] <JohnFree> :)
[12:46:01] *** SpookyEndCoder is now known as BackEndCoder
[12:46:04] <JohnFree> Miphe: Thanks for your help buddy
[12:46:05] *** mmealling has quit IRC
[12:46:11] <Miphe> my pleasure
[12:46:26] *** matthoiland has joined #angularjs
[12:46:51] *** dardon has quit IRC
[12:47:05] *** blomman has quit IRC
[12:48:54] <Miphe> JohnFree, some info about why ng-if directive didn't work: https://docs.angularjs.org/api/ng/directive/ngIf
[12:49:07] <Miphe> It's a directive (like ng-include) that creates a new scope
[12:49:25] *** staine has joined #angularjs
[12:49:31] <Miphe> Since it completely removes parts of the dom, instead of hiding/showing it.
[12:49:35] <JohnFree> Miphe: Ahaa.
[12:49:42] *** jillesme has quit IRC
[12:49:44] <JohnFree> ok
[12:50:05] *** sk87 has joined #angularjs
[12:50:12] *** mmealling has joined #angularjs
[12:50:23] *** tangorri has quit IRC
[12:50:44] *** mmealling has quit IRC
[12:50:55] *** iinzg has quit IRC
[12:50:55] *** matthoiland has quit IRC
[12:51:41] <Miphe> Hi guys. Got a problem with triggering a click event in angular & mocha. Explained here: http://stackoverflow.com/questions/26675196/trigger-click-event-on-an-angularjs-directive-in-mocha-test-suite
[12:51:43] <Miphe> Was hoping someone could point me in the right direction?
[12:51:51] <Miphe> Small jsfiddle with the problem: http://jsfiddle.net/miphe/v0ged3vb/
[12:52:40] *** Jae has quit IRC
[12:52:43] *** nemothekid has joined #angularjs
[12:53:05] *** nemothekid has quit IRC
[12:53:50] *** Toutenrab has joined #angularjs
[12:55:42] *** Artagan has quit IRC
[12:57:08] *** mrits has joined #angularjs
[12:57:11] *** favetelinguis has joined #angularjs
[12:58:23] *** rburns has joined #angularjs
[12:58:25] <JohnFree> Hey guys. I'm using ng-init for initial text within a <input textfield. But when I click into the text field I want the text to disappear. Is there any Angular-directive for that?
[12:58:32] *** sk87 has quit IRC
[12:59:33] <JohnFree> maybe with placeholder..
[13:00:26] *** e0ipso is now known as e0ipso|away
[13:00:27] <ClearsTheScreen> uh. have you tried placing the initial text in the placeholder attribute?
[13:02:28] *** intellix has joined #angularjs
[13:02:29] *** RedOrangeZ has joined #angularjs
[13:02:36] <JohnFree> But the problem is: I want the initial text only if there is the scope variable is not set. How can I do that?
[13:03:27] <sacho_> use the placeholder attribute
[13:04:04] *** anivemin has joined #angularjs
[13:04:22] <ClearsTheScreen> yeah. <input type="text" placeholder="{{placeholder.Text}}" ng-model="thing.blah"/> -- shouldn't that be, more or less, what you want?
[13:04:39] <JohnFree> sacho_: My scope variables are destroyed as soon as I change to another view / controller. How can I avoid this?
[13:04:40] *** arkin has quit IRC
[13:04:58] <JohnFree> sacho_: E. g. I did filtering on the page. When I change the page and come back I want the filtering still be there
[13:05:02] *** e0ipso|away is now known as e0ipso
[13:05:35] *** thirdknife has quit IRC
[13:05:47] *** hrishi has quit IRC
[13:05:50] *** d10n-work has joined #angularjs
[13:06:29] <sacho_> use a service
[13:06:42] *** duall has joined #angularjs
[13:06:43] <JohnFree> sacho_: Or $parent.variablename right?
[13:06:48] <duall> Is anyone using hello.js with angular ?
[13:06:51] *** joker666 has joined #angularjs
[13:07:17] <duall> or know any good alternative that uses native js api's as alternative to oauth ?
[13:07:18] *** dylang has quit IRC
[13:07:48] <sacho_> JohnFree, depends what the parent is, but maybe.
[13:07:56] *** japhar81 has quit IRC
[13:08:23] *** laurensclaessen has quit IRC
[13:08:45] <JohnFree> sacho_: The parent is used for the layout
[13:08:52] *** anivemin has quit IRC
[13:08:52] <JohnFree> It's ng-app
[13:09:29] <joker666> why my url looks like this? http://localhost:3000/dashboard/posts
[13:09:45] <joker666> why isn't it http://localhost:3000/#/dashboard/posts
[13:10:01] <joker666> everything works fine
[13:10:09] <joker666> but opening new tab auses 404
[13:10:46] <bd-> you have $locationProvider.html5mode set
[13:10:55] *** arkin has joined #angularjs
[13:10:57] <joker666> nope
[13:11:24] <joker666> my previous sites are like that, ahshbanged
[13:11:50] <joker666> is it something with abstract states?
[13:12:00] <ClearsTheScreen> my crystal ball points me at the difference in config/setup between your sites. code would help.
[13:12:18] *** blomman has joined #angularjs
[13:13:00] <jacuqesdancona> Still stuck on something: I'd like to call a method on a controller (form a directive), which can callback back to the directive
[13:13:01] <jacuqesdancona> http://plnkr.co/edit/yhaN8ADCyYb4FT9mQJ10?p=preview
[13:13:19] *** tangorri has joined #angularjs
[13:13:23] <soee> if i have directive used as element attribute, how can i pass 2 values to this directive ?
[13:13:37] *** rburns has quit IRC
[13:13:44] <ClearsTheScreen> soee: more attributes
[13:13:44] *** dharmit has quit IRC
[13:13:59] *** jordandotdev has quit IRC
[13:14:00] <jacuqesdancona> is my problem even possible?
[13:14:10] *** rtpg has joined #angularjs
[13:14:43] *** jlebrech has quit IRC
[13:15:14] <jacuqesdancona> It'd be possible to broadcast, or set up a scope watcher in the directive, but that's not my preferred way
[13:15:26] <jacuqesdancona> I'd pretty much like two way communication between the controller and directive
[13:15:39] <jacuqesdancona> well, also not really, just a working callback :)
[13:15:50] <ClearsTheScreen> jacuqesdancona: with help of the ctrl. sure; have it pass a callback into the ctrl function that the ctrl. calls at the end. but my instincts tell me that the controller might as well provide the data the directive needs from the get-go
[13:16:10] <jacuqesdancona> ClearsTheScreen: http://plnkr.co/edit/yhaN8ADCyYb4FT9mQJ10?p=preview please check that
[13:16:13] *** fedenunez has joined #angularjs
[13:16:48] <jacuqesdancona> ClearsTheScreen: the data does manipulating, but I don't want to share it to my directive; the directive doesn't need the data
[13:16:58] <jacuqesdancona> the directive is just basic dom manipulation
[13:17:08] *** danflies has joined #angularjs
[13:17:30] *** jmverges has joined #angularjs
[13:17:33] <jacuqesdancona> So: click directive button > directive calls controller method and does manipulation, then posts, on that success callback I want to call the directive back
[13:17:51] *** Shrooms has quit IRC
[13:17:53] *** anjumkaiser has joined #angularjs
[13:18:11] <jacuqesdancona> Pretty much do an animation or scroll, when it's a successful request without scope watchers and broadcasters
[13:18:17] <JohnFree> guys isn't it too overexaggerated to create a service only to remember which filtering settings the user did?
[13:18:41] <zomg> Why would it be?
[13:18:48] <zomg> It's just an object
[13:18:52] <jacuqesdancona> JohnFree: if you want to remember the data the whole session, no
[13:19:52] <JohnFree> Yes I want to remember it the whole session. So creating an extra service for that is ok?
[13:20:10] *** bin has joined #angularjs
[13:20:10] *** bin has joined #angularjs
[13:20:26] <zomg> Sure, why not?
[13:20:48] <zomg> You have clearly defined functionality that benefits from being grouped into its own object
[13:21:11] <zomg> so you're following good OO design practices with single responsibility etc.
[13:21:23] <JohnFree> ok
[13:21:50] <sacho_> jacuqesdancona, http://plnkr.co/edit/yHMhN2xdF9W97DnjNpdh?p=preview
[13:22:26] *** Yankie has quit IRC
[13:22:30] <jacuqesdancona> ugh
[13:22:42] <jacuqesdancona> sacho_: thanks a lot
[13:23:09] *** jstroem has quit IRC
[13:23:11] <sacho_> why the addEventListener, instead of .on()?
[13:23:32] *** Yankie has joined #angularjs
[13:23:40] <jacuqesdancona> .on is jQuery right?
[13:23:42] *** jstroem has joined #angularjs
[13:23:51] <jacuqesdancona> or is .on also vanilla?
[13:24:02] *** fedenunez has quit IRC
[13:24:10] <sacho_> it's not in vanilla
[13:24:15] <jacuqesdancona> that's the reason :)
[13:24:18] <sacho_> but jqlite has .on().
[13:24:25] <jacuqesdancona> of course
[13:24:27] <jacuqesdancona> you're right
[13:24:38] *** zippe has joined #angularjs
[13:24:47] <jacuqesdancona> used to writing javascript without jquery
[13:24:51] <zippe> hi there can anyone help ?
[13:24:53] <sacho_> so you can just use elem.on('click', ...)
[13:24:53] <jacuqesdancona> forgetting we also have jqLite
[13:25:01] *** JBreit2 has quit IRC
[13:25:14] <zippe> cant use $http to url like url: '/api/test',
[13:25:15] *** jstroem has quit IRC
[13:25:21] <jacuqesdancona> thanks a lot :)
[13:25:27] *** Manaus has quit IRC
[13:25:33] *** goodenough has quit IRC
[13:25:43] *** jstroem has joined #angularjs
[13:25:47] <zippe> can't post to url like 'api/test'
[13:26:03] <zippe> with 'api/test/' working fine
[13:26:20] <zippe> returns SyntaxError: Unexpected token {
[13:27:03] *** laurensclaessen has joined #angularjs
[13:27:34] *** icarus75 has quit IRC
[13:27:44] *** danflies has quit IRC
[13:27:52] <zippe> HEY ANYONE CAN HELP?
[13:27:53] *** Xethron has quit IRC
[13:28:08] *** jonr22 has joined #angularjs
[13:28:57] *** tempguy has joined #angularjs
[13:28:58] <ClearsTheScreen> bet you're missing a quote. code or it didnt happen ;)
[13:29:21] *** rtpg has quit IRC
[13:29:30] <zippe> in plunker it works
[13:29:38] <zippe> but with me dont
[13:29:39] *** whiteboo_ has joined #angularjs
[13:29:40] <zippe> using <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script>
[13:29:47] *** gauravsaini03 has joined #angularjs
[13:29:55] <zippe> is it stable
[13:29:57] <zippe> ?
[13:30:04] *** bayousoft has quit IRC
[13:30:06] *** jdj_dk_ has joined #angularjs
[13:30:13] <tempguy> Hi guys, the guy with $resource requests here. I managed to make a good POST request (yippie), so thank you all for helping! Now what I'm having trouble with is the PUT request. I used to send it exactly as I would send it on post, but there's a different way of doing it via $resource and I can't seem to get it to work
[13:30:26] <ClearsTheScreen> then you need to find the difference between the "with me" code and the plunk. syntax errors are in the majority of cases typos. (in my experience.)
[13:30:29] *** Xethron has joined #angularjs
[13:30:45] *** gnrlbzik has joined #angularjs
[13:31:30] <bealtine> you could try and drop the .min version for testing and use a more current angular
[13:31:31] *** kas84 has quit IRC
[13:31:53] *** mandric has quit IRC
[13:32:06] *** rtpg has joined #angularjs
[13:32:13] *** whitebook has quit IRC
[13:32:13] <zippe> with 1.3.0 all the same
[13:32:24] *** bin has left #angularjs
[13:32:48] <bealtine> then you've done soething wrong we're not psychic you know
[13:32:56] *** basiclaser_ has joined #angularjs
[13:32:57] *** jonr22 has quit IRC
[13:32:58] *** naneau has joined #angularjs
[13:33:02] *** jdj_dk has quit IRC
[13:33:18] <basiclaser_> hey guys, can i do visual/css/regression testing with protractor
[13:33:20] <basiclaser_> ?
[13:33:41] *** Artagan has joined #angularjs
[13:34:19] *** numenor has joined #angularjs
[13:34:30] <numenor> Hello.
[13:34:35] <numenor> I need to add a common login form in an angularjs app.. This Login form should display in a modal when the REST API says that the user isn't authenticated. I want to do this by making a directive and pasting it on all the pages. Then from a factory emit an event to show the modal.. Is this a recommended way?
[13:34:38] *** dmra has joined #angularjs
[13:35:16] *** tkimmel has joined #angularjs
[13:35:20] <zippe> check it here someone plz (click send button) http://plumlove.ru/join
[13:35:41] *** gnrlbzik has quit IRC
[13:35:43] *** JohnFree has quit IRC
[13:35:57] <numenor> Rephrase : Have a look at this link http://stackoverflow.com/questions/17998077/angularjs-do-events-not-emit-to-rootscope
[13:36:03] *** mandric has joined #angularjs
[13:36:31] <numenor> BIG OOPS : : Wrong link, Please look at this : http://stackoverflow.com/questions/14056874/how-to-emit-events-from-a-factory
[13:37:04] <numenor> Now what does it mean when user anders says "Why not watch a service variable in the controller(s) instead of emitting events?"
[13:37:40] <joker666> so angular 1.3 is what stripping the hashbang while opening new tab
[13:37:46] <joker666> 404
[13:38:11] <ClearsTheScreen> numenor: `$scope.$watch(myAwesomeService.signallerVariable, function(oldVal, newVal) { if (newVal == 'logging_in_sucks') { $scope.ShowDatModal();} });`
[13:38:41] <numenor> ClearsTheScreen : Oh ok.
[13:38:50] *** whiteboo_ has quit IRC
[13:38:55] *** lw has joined #angularjs
[13:39:01] <numenor> Just wowed by the quick psudeo code.
[13:39:20] <zippe> check it here someone plz (click send button) http://plumlove.ru/join
[13:39:23] <ClearsTheScreen> well aside from the free-form variable names, that code is not very pseudo heh
[13:39:30] *** moritzs has quit IRC
[13:39:33] *** lw has joined #angularjs
[13:39:40] *** icarus75 has joined #angularjs
[13:39:43] <numenor> Yeah, But I got the whole thingy right down my brain.
[13:39:50] *** tkimmel has quit IRC
[13:40:17] <numenor> zippe: Are you a bot ? That site name is kinky
[13:40:37] <zippe> what?
[13:40:47] <zippe> what?
[13:40:59] *** brettfrable has joined #angularjs
[13:41:33] *** saint-ron has joined #angularjs
[13:41:35] <Miphe> Hi all, trying to test a directive click with mocha, how can I do that?
[13:41:48] <sacho_> numenor, you could use $rootScope to emit events.
[13:41:53] <Miphe> Here's my try: http://jsfiddle.net/miphe/v0ged3vb/
[13:42:25] <numenor> Yes, I got the rootScope scope concept clear... But I didnt understand why people are recommending against it
[13:42:43] <ClearsTheScreen> i thought $rootScope.$emit was implied by the "emit event from factory" :)
[13:42:52] *** rosieres has joined #angularjs
[13:43:26] *** davesidious__ is now known as davesidious
[13:43:30] <ClearsTheScreen> but generally, events are action-at-a-distance that are hard to follow in code. while decoupling ftw, events are low-cohesion and can make program flow feel very arbitrary
[13:43:43] <davesidious> Hey folks! Has anyone found a good AngularJS drag-n-drop directive?
[13:43:48] <numenor> zippe : I think there is some bracket mismatch issue in your code, Please check the conxole
[13:43:49] <ClearsTheScreen> (i.e. maintenance nightmares)
[13:44:03] <davesidious> I've searched, and there are a few options, but they all seem to have some rather serious drawbacks
[13:44:05] <sacho_> numenor, I don't know either. watching a service variable seems like a lot more work.
[13:44:16] *** BahamutWC|Laptop has joined #angularjs
[13:44:18] *** ssawickik has quit IRC
[13:44:27] *** JohnFree has joined #angularjs
[13:44:34] <numenor> ClearsTheScreen : Oh yes.. Its hard to keep track of them later on.
[13:44:41] <JohnFree> So If I want to store session data, then I have to use a public variable in the Service right?
[13:44:50] <JohnFree> In order to bind the service variable to a view-element
[13:44:51] <zippe> there no bracket mismatch! if in post url i will use 'app/test/' (with slash) it goes fine
[13:45:01] <zippe> with 'api/test' it goes mismatch
[13:45:09] <numenor> sacho_ : I too dont prefer watch.. I feel like I am overloading the browser
[13:45:14] *** kas84 has joined #angularjs
[13:45:38] <ClearsTheScreen> yeah. and they're less fun to test for proper execution flow and whatnot. while they're "simpler" than service watches or other methods, if there is a "link" between components in the execution flow, it is from a maintenance POV better to make that link visible in code.
[13:45:54] <JohnFree> Is there no other option? With using service method it doesn't work. I can't bind to a method. A method is either a getter or setter but not both
[13:46:06] *** BahamutWC|Work has joined #angularjs
[13:46:08] <basiclaser_> how do you suggest doing visual / regression testing for angular?
[13:46:10] <ClearsTheScreen> having said that, login/logout can be things in the execution flow that have application-wide effects. changes of such "global" state can -- arguably -- be cleaner modelled in events.
[13:46:16] <sacho_> JohnFree, what?
[13:46:27] <numenor> ClearsTheScreen , sacho_ : I think I am gonna stick with the rootscope emit
[13:46:40] <JohnFree> sacho_: I want to store my formular data in a service
[13:46:40] <sacho_> numenor, just make sure it's not a broadcast
[13:46:45] <JohnFree> sacho_: The data from an <input
[13:47:04] <numenor> zippe : In the console I can see , SyntaxError: Unexpected token {
[13:47:15] *** shaisnir has joined #angularjs
[13:47:21] *** juampy is now known as juampy_food
[13:47:22] <JohnFree> sacho_: How can I bind the view to the service variable? I can't use a method from service in ng-model='..'
[13:47:27] *** rtpg has quit IRC
[13:47:52] <zippe> that happens when!!! $http({url: 'api/upload', if $http({url: 'api/upload/', it goes well can u hear me?
[13:48:44] <ClearsTheScreen> we can, but you can't hear us.
[13:49:12] *** SahanH has quit IRC
[13:49:30] <JohnFree> has anyone an idea how to do this?
[13:49:33] <numenor> zippe : Ok, So what do you want me to do to test it ?
[13:49:34] *** SahanH has joined #angularjs
[13:49:43] <JohnFree> The only option seems to return a JSON-object
[13:49:52] <JohnFree> which Contains global variables
[13:49:55] <numenor> zippe: Its not possible for me to add a "/" from here
[13:50:12] <JohnFree> And then I've to access the variables from the service directly instead using service functinos
[13:50:13] *** m8 has quit IRC
[13:50:14] <ClearsTheScreen> hm i get weird unrelated errors with zippe's site anyways; something about "dbg not being defined" :o
[13:50:14] *** qstrahl has quit IRC
[13:50:19] <zippe> i add slash it now ok
[13:50:22] *** Siecje has joined #angularjs
[13:50:26] <zippe> all code the same but /
[13:50:35] *** gauravsaini03 has quit IRC
[13:50:40] <sacho_> ask whoever's writing your backend
[13:50:47] *** rtpg has joined #angularjs
[13:50:58] *** mennea has quit IRC
[13:51:02] <sacho_> JohnFree, set properties on the service - then you can bind to them.
[13:51:02] <numenor> zippe : You should tell what issue you are facing.
[13:51:11] *** gauravsaini03 has joined #angularjs
[13:51:25] <JohnFree> sacho_: But isn't that bad OO? I mean I'm accessing the variables in the service directly from my view
[13:51:28] <numenor> zippe : I received an alert with 1
[13:51:31] *** mrits has quit IRC
[13:51:32] <zippe> click now http://plumlove.ru/join send button
[13:51:32] *** rtpg has quit IRC
[13:52:15] <numenor> zippe : I got an alert containing 1
[13:52:32] <zippe> if i use in $htttp url 'api/upload' it says syntax error if 'api/upload/' it works fine and on success alert
[13:52:59] <zippe> see in app.js plz
[13:53:37] *** anjumkaiser has quit IRC
[13:53:40] <sacho_> JohnFree, so?
[13:53:42] *** canthugeverycat1 has joined #angularjs
[13:53:49] <numenor> zippe : Yes, Looking at it
[13:54:00] <basiclaser_> can i test the visual output of an angular site with protractor?
[13:54:01] <JohnFree> sacho_: Is there no better solution? :) or is it right to just return a JSON-object out of service which contains variables?
[13:54:12] <zippe> string 29
[13:54:17] *** AlSquirrel has joined #angularjs
[13:54:23] <sacho_> JohnFree, I a "json object" can't contain "variables", so I don't know what that means
[13:54:41] <JohnFree> sacho_: I mean keys
[13:54:44] *** preben_ has quit IRC
[13:54:48] <canthugeverycat1> @sacho_ Do you have a minute ? I'm the guy with $resource problems. I got the POST to work :)
[13:55:09] <JohnFree> sacho_: so? :)
[13:55:14] <numenor> zippe: can you try adding a space after the final /
[13:55:37] <numenor> zippe: Like this 'api/upload/ '
[13:55:48] <zippe> numenor : working fine with it too
[13:56:32] <numenor> zippe: What ? So did it solve the issue or not ?
[13:56:56] <zippe> i want 'api/upload' without slash
[13:57:03] <sacho_> canthugeverycat, that's nice
[13:57:17] *** borvoh has joined #angularjs
[13:57:29] <JohnFree> How can I access the service out of the view?
[13:57:34] <Miphe> Hi all, trying to test a directive click with mocha, how can I do that?
[13:57:35] <Miphe> Here's my try: http://jsfiddle.net/miphe/v0ged3vb/
[13:57:37] <JohnFree> Do I have to set additional methods for that in the controller?
[13:57:44] *** patric100e99 has joined #angularjs
[13:57:44] <numenor> zippe : But you said already that it works without the slash and you needed the slash.
[13:58:14] *** esk4nd4r has joined #angularjs
[13:58:36] *** akrikos has joined #angularjs
[13:58:48] *** BahamutWC|Work has quit IRC
[13:58:56] <zippe> it works with slash! and dnt work without it also work if url like api/file.p with extension i thought its parser error
[13:59:02] *** sheplu has quit IRC
[13:59:30] *** exp10r3r has joined #angularjs
[13:59:35] *** thirdknife has joined #angularjs
[13:59:37] <numenor> zippe : Ok
[13:59:38] <zippe> i want use url like 'api/upload' like api -> method
[13:59:46] *** BahamutWC|Laptop has quit IRC
[13:59:49] *** mrits has joined #angularjs
[14:00:07] <ClearsTheScreen> zippe: just to be sure -- is the thing that complains actually angular/js, or is it the server you're talking to?
[14:00:10] *** shilon has joined #angularjs
[14:00:27] *** tarnus has joined #angularjs
[14:00:33] *** fixl has quit IRC
[14:01:07] *** favetelinguis has quit IRC
[14:01:09] *** caitp has quit IRC
[14:01:19] <zippe> idk on plunker it works fine but on my server says syntax error i use nginx
[14:01:34] *** favetelinguis has joined #angularjs
[14:02:06] *** mtsr has joined #angularjs
[14:02:16] <numenor> ClearsTheScreen: The js complains
[14:02:54] *** patric100e99 has quit IRC
[14:02:58] <sacho_> what's the syntax error?
[14:03:09] <numenor> zippe: the http is doing the post
[14:03:09] *** Trow has quit IRC
[14:03:25] <numenor> zippe : the post goes successful
[14:03:30] *** blomman has quit IRC
[14:03:34] <zippe> numenor : yes
[14:03:40] *** Latros-OS has joined #angularjs
[14:04:02] *** blomman has joined #angularjs
[14:04:03] <zippe> no, chek it now http://plumlove.ru/join
[14:04:32] <zippe> with url 'api/upload' it doesnt work
[14:05:07] *** mjs2600 has quit IRC
[14:05:17] *** loverajoel has joined #angularjs
[14:05:26] <numenor> zippe : Yes
[14:05:51] <zippe> or url: '/api/upload', the same
[14:05:58] *** Schtive has joined #angularjs
[14:06:07] <numenor> zippe: Brother, I too feel baffled... Is the success function being mischievous?
[14:06:27] *** favetelinguis has quit IRC
[14:06:40] <zippe> $http({ headers: {'Content-Type': 'application/json'}, url: '/api/upload', method: 'POST', data: {app:'app'} }).success(function () { alert(1); });
[14:06:46] <zippe> its all i have
[14:06:47] *** kalehv has joined #angularjs
[14:06:47] *** DanielKarp has joined #angularjs
[14:06:55] <numenor> zippe : Yeah.
[14:07:01] *** mjs2600 has joined #angularjs
[14:07:06] <zippe> whats your question?
[14:07:25] *** favetelinguis has joined #angularjs
[14:07:28] *** mennea has joined #angularjs
[14:07:41] *** _tpavel has joined #angularjs
[14:07:57] <zippe> without success goes same way
[14:08:17] *** annlewis has joined #angularjs
[14:08:25] *** Yahkob has joined #angularjs
[14:08:38] <numenor> Hello people, Can someone have a look ?
[14:08:55] <JohnFree> Hey guys. I did binding from an <input to a service-property. But as soon as I change the view the data is lost. What could be the reason?
[14:09:08] *** Schtive has quit IRC
[14:09:16] *** mtsr has quit IRC
[14:09:37] <ClearsTheScreen> did; syntax seems fine to me, can't really reproduce. the working plnkr could be useful; can only observe that the API behaved differently wether i browsed to "api/upload", "api/upload/" or "api/upload/blubb.p" (or so)
[14:09:54] <canthugeverycat1> Hello. I have an issue with sending a PUT request with $resource. This is how I understood the concept. What am I doing wrong ? http://pastebin.com/80dsWiME
[14:10:02] <numenor> zippe : Just to say, I jslint your code.. It shows "SyntaxError: missing } after function body"
[14:10:25] <JohnFree> I fixed it
[14:11:03] *** Rafzzz has joined #angularjs
[14:11:04] <numenor> JohnFree : Nice
[14:11:08] <zippe> what string?
[14:11:14] <Miphe> Hi all, trying to test a directive click with mocha, how can I do that?
[14:11:18] <Miphe> Here's my try: http://jsfiddle.net/miphe/v0ged3vb/
[14:11:57] *** ckboii89 has joined #angularjs
[14:12:37] *** brunoB has quit IRC
[14:12:40] *** shinnya has joined #angularjs
[14:12:45] *** kalehv has quit IRC
[14:13:16] *** esk4nd4r has quit IRC
[14:13:28] *** Yahkob has quit IRC
[14:14:14] <zippe> oh i found error! it happens when answer is {"Error":"No params post."}
[14:14:15] *** numenor has quit IRC
[14:14:15] *** cakirke has quit IRC
[14:14:17] *** mandric has quit IRC
[14:14:18] <zippe> how to fix it?
[14:14:22] *** Sebastien-L has quit IRC
[14:14:24] *** carlosmantilla has quit IRC
[14:14:34] *** jillesme has joined #angularjs
[14:14:49] *** mandric has joined #angularjs
[14:14:59] *** memento__ has quit IRC
[14:15:08] *** memento_ has joined #angularjs
[14:15:19] *** carlosmantilla has joined #angularjs
[14:15:19] *** discgo has joined #angularjs
[14:15:57] *** codeman has joined #angularjs
[14:16:04] *** Nivag has joined #angularjs
[14:16:41] *** ckboii89 has quit IRC
[14:17:27] *** linojon has joined #angularjs
[14:17:30] *** mandric has quit IRC
[14:17:45] <zippe> numenor : oh i found error! it happens when answer is {"Error":"No params post."} how can i fix it
[14:17:48] <zippe> ?
[14:18:11] *** kp666 has quit IRC
[14:18:18] *** Rafzzz has quit IRC
[14:19:27] *** cbennett has joined #angularjs
[14:19:49] *** mtsr has joined #angularjs
[14:20:20] *** shaisnir has quit IRC
[14:20:33] *** bayousoft has joined #angularjs
[14:20:41] *** joker666 has quit IRC
[14:21:34] *** dan2k3k4 has joined #angularjs
[14:21:39] *** tempguy has quit IRC
[14:21:39] *** canthugallthecat has quit IRC
[14:21:40] *** canthugeverycat1 has quit IRC
[14:21:40] *** canthugeverycat has quit IRC
[14:21:56] *** fedenunez has joined #angularjs
[14:22:17] <dan2k3k4> ...spent ages tryin to figure out why I had directives running multiple times (+ other emit/on stuff running tons of times)
[14:22:30] <dan2k3k4> turns out it was because I put controller: 'MyControllerCtrl', in my directives...
[14:22:44] <dan2k3k4> I thought if I added that, then it would "link" the directives to the controller
[14:23:00] <dan2k3k4> but I have the code as: myApp.controller().directive().directive().directive();
[14:23:36] *** walden|afk is now known as walden
[14:23:59] *** jillesme has quit IRC
[14:24:07] *** mandric has joined #angularjs
[14:24:34] *** SoulBlade has joined #angularjs
[14:25:06] *** lite_ has quit IRC
[14:25:08] *** Foxandxss has joined #angularjs
[14:26:14] *** danecando has quit IRC
[14:26:25] *** gauravsaini03 has quit IRC
[14:26:42] *** MaxV has joined #angularjs
[14:26:46] *** iribarne has joined #angularjs
[14:26:54] *** shaisnir has joined #angularjs
[14:27:20] *** MaxV has quit IRC
[14:27:39] <calmbird> Guys creating phantom server, for our SPA is so easy. For google bots to let them index our page.
[14:28:19] *** mandric has quit IRC
[14:28:41] *** cbennett has quit IRC
[14:28:53] *** SoulBlade has quit IRC
[14:29:00] *** drej has quit IRC
[14:29:38] <zippe> can help anyone? when i post to server and its answers in json i have syntax error
[14:30:39] *** azizur has quit IRC
[14:30:41] <Foxandxss> we need more info than that zippe
[14:31:11] *** mccarrontr1ck has joined #angularjs
[14:31:34] *** gnrlbzik has joined #angularjs
[14:31:44] *** TinkerTyper has quit IRC
[14:32:21] *** sirkitree|afk is now known as sirkitree
[14:32:25] *** caitp has joined #angularjs
[14:32:26] *** jr3 has joined #angularjs
[14:32:27] *** hswolff has quit IRC
[14:32:35] *** jr3 has quit IRC
[14:32:40] *** Zesty has joined #angularjs
[14:32:42] <zippe> Foxandxss : tap http://plumlove.ru/join send button plz
[14:33:07] *** jillesme has joined #angularjs
[14:33:25] *** hswolff has joined #angularjs
[14:33:55] <Miphe> Hi all, trying to test a directive click with mocha, how can I do that?
[14:33:59] <Miphe> Here's my try: http://jsfiddle.net/miphe/v0ged3vb/
[14:34:13] *** TinkerTyper has joined #angularjs
[14:34:29] <ClearsTheScreen> zippe: have you tried, for shit and giggles, to console.log or so the response you get in the success/error continuation?
[14:35:06] *** mccarrontr1ck has quit IRC
[14:35:21] *** matthoiland has joined #angularjs
[14:36:17] *** gnrlbzik has quit IRC
[14:36:40] *** mmealling has joined #angularjs
[14:36:56] *** linojon has quit IRC
[14:37:21] *** bayousoft has quit IRC
[14:37:52] *** bayousoft has joined #angularjs
[14:38:19] <zippe> found error all is fine thx to all :) answeer in double json answer from server
[14:38:22] <zippe> {} {}
[14:38:25] *** boberober has joined #angularjs
[14:38:28] *** zippe has quit IRC
[14:39:19] <calmbird> look guys, my angular page for google stupid robots :) http://54.88.187.230/?_escaped_fragment_ do you want me to create git or smth? :P
[14:39:38] *** SahanH_ has joined #angularjs
[14:39:52] *** SahanH has quit IRC
[14:39:54] *** matthoiland has quit IRC
[14:40:06] *** cboden has joined #angularjs
[14:40:09] *** Jae has joined #angularjs
[14:40:57] *** drej has joined #angularjs
[14:42:09] *** g3funk is now known as braidn
[14:42:12] *** bkuberek_ has joined #angularjs
[14:42:24] *** carlosma_ has joined #angularjs
[14:42:24] *** Zesty has quit IRC
[14:42:42] *** jheady has joined #angularjs
[14:42:51] *** boberober has quit IRC
[14:43:23] *** bayousoft has quit IRC
[14:43:27] *** mogaj has quit IRC
[14:43:51] *** ckboii89 has joined #angularjs
[14:44:01] *** bayousoft has joined #angularjs
[14:44:23] *** amphetamines is now known as opiates
[14:44:25] *** Abhijit has joined #angularjs
[14:44:32] *** Abhijit has joined #angularjs
[14:45:25] *** Txandy has joined #angularjs
[14:45:50] *** opiates has quit IRC
[14:45:58] *** carlosmantilla has quit IRC
[14:45:58] *** bkuberek has quit IRC
[14:46:25] *** bayousoft has quit IRC
[14:46:58] *** bayousoft has joined #angularjs
[14:47:05] *** bkuberek_ has quit IRC
[14:47:38] *** BillCriswell has joined #angularjs
[14:48:39] *** ckboii89 has quit IRC
[14:49:05] *** jdcasey has joined #angularjs
[14:49:25] *** elrabin has joined #angularjs
[14:50:02] *** jdcasey has quit IRC
[14:50:13] <Foxandxss> calmbird: that is nice
[14:50:39] <calmbird> Foxandxss: And very simple, but many days of reasarching.
[14:50:49] <Foxandxss> yeah, as everything
[14:50:53] *** rburns has joined #angularjs
[14:51:19] *** carpediembaby_ has joined #angularjs
[14:51:23] <Foxandxss> Miphe: no idea of mocha, but let me see
[14:51:27] <calmbird> You think creating condensed arcticle about it and creating git would be helpfull for angular developers?
[14:51:33] *** ccohn has joined #angularjs
[14:51:58] <Miphe> Foxandxss, cheers mate
[14:52:02] <Foxandxss> everything is helpful calmbird
[14:52:20] *** danecando has joined #angularjs
[14:52:22] <calmbird> ok
[14:52:26] *** scythe__ has joined #angularjs
[14:52:39] <calmbird> Foxandxss: there is just no simple answers over the internet about it, its sad :P
[14:52:49] *** BillCriswell has quit IRC
[14:52:52] *** anivemin has joined #angularjs
[14:53:16] *** Asiajey_ has quit IRC
[14:53:25] <carpediembaby_> Hello. Could someone tell me the best way to handle user generated html with angularjs? In my current code, i am using $sanitize but it is quite miserable. It craps out on any malformed html.
[14:53:38] *** AtomicCookie has joined #angularjs
[14:53:51] *** jheady has left #angularjs
[14:54:04] *** m8 has joined #angularjs
[14:54:13] *** travm has joined #angularjs
[14:54:19] <carpediembaby_> Is there at least a way to make sanitize work so that it doesn't throw an exception and maybe removes the tags which are bothering it?
[14:54:21] *** ctanga has joined #angularjs
[14:54:39] *** exp10r3r has quit IRC
[14:54:45] *** dnull has quit IRC
[14:54:47] <Foxandxss> Miphe: jQuery is really really helpful for directive testing
[14:54:49] <carpediembaby_> some sort of fallback.. anything..
[14:54:49] <Foxandxss> allows you to do
[14:54:56] <Foxandxss> el.find('foo').click();
[14:55:19] <jcool> I have my all data in $scope.port. I need to send something like {port:{all data}}
[14:55:28] *** bayousoft has quit IRC
[14:55:37] *** Asiajey has joined #angularjs
[14:55:37] *** Asiajey has joined #angularjs
[14:55:50] *** jdj_dk_ has quit IRC
[14:55:51] <jcool> What will be good way to send? Since data: $.param({port:{$scope.port}}; gives error
[14:56:07] <Foxandxss> I don't follow jcool
[14:56:09] *** bayousoft has joined #angularjs
[14:56:29] *** AngularUI has joined #angularjs
[14:56:29] <AngularUI> [ng-grid] freein opened pull request #1996: hideHeader misplacement bug fixed (master...hideHeaderBug) http://git.io/etuPEg
[14:56:29] *** AngularUI has left #angularjs
[14:56:50] *** knownasilya has joined #angularjs
[14:56:51] *** mrits has quit IRC
[14:56:53] <jcool> Foxandxss, I need to send my backend data in format {port:{field:value,field2:value}}
[14:56:57] *** arkin has quit IRC
[14:57:02] *** staine has quit IRC
[14:57:12] <jcool> all fields value pairs are in $scope.port
[14:57:15] *** anivemin has quit IRC
[14:57:18] *** danflies has joined #angularjs
[14:57:25] <jcool> I have used ng-model = "port.fieldname" in my html file
[14:57:35] *** discgo has quit IRC
[14:57:36] <jcool> so I am getting all values in $scope.port
[14:57:49] *** whitebook has joined #angularjs
[14:58:12] *** Polytonic has left #angularjs
[14:58:18] <jcool> Foxandxss, What I need to pass is json of port containnig all data. so I did something like : {port:{$scope.port}}
[14:58:35] <Foxandxss> what about directly $scope.port?
[14:58:39] <Foxandxss> and don't use jQuery please
[14:59:04] <jcool> Foxandxss, yeah I dont want to. was googling and found one method. but even I dont want to use jquery.
[14:59:05] *** Schtive has joined #angularjs
[14:59:15] <Foxandxss> it is a POST request?
[14:59:20] <jcool> Foxandxss, yes
[14:59:23] <sacho_> jcool, {port:$scope.port}, you meant
[14:59:30] <Foxandxss> $http.post('/api/foo', data);
[14:59:31] <jcool> sacho_, yep
[14:59:38] *** jdcasey has joined #angularjs
[14:59:38] <sacho_> jcool, so what's the problem with that?
[14:59:59] <jcool> sacho_, server gives error.
[15:00:05] <sacho_> jcool, what error?
[15:00:10] *** imehesz has joined #angularjs
[15:00:17] <jcool> sacho_, just error message.
[15:00:22] *** noiserocker has quit IRC
[15:00:26] <jcool> Foxandxss, data format is what I am looking for.
[15:00:29] *** e0ipso is now known as e0ipso|away
[15:00:30] <jcool> sacho_, I will link to code
[15:00:34] <Foxandxss> what is the error
[15:00:43] <Miphe> Foxandxss, Yes it is.. unfortunately I shouldn't add it to this suite.
[15:00:52] <Foxandxss> Miphe: how so
[15:00:54] <jcool> Foxandxss, sacho_ https://github.com/dontplay/lcb-frontend/blob/master/webroot/js/controllers/port-controller.js#L54
[15:01:09] <jcool> Foxandxss, Its a manual error message that backend throws when data is not saved
[15:01:09] *** draconis-chomp has quit IRC
[15:01:10] <Foxandxss> what does $.param?
[15:01:12] <Foxandxss> I am not familiar with it
[15:01:21] <Miphe> Foxandxss, though I have seen examples where jqlite is sufficient for testing clicks. I believe it's a different problem with that jsfiddle example
[15:01:22] <jcool> Foxandxss, found on google. While researching
[15:01:30] *** bayousoft has quit IRC
[15:01:39] <Foxandxss> Miphe: maybe, I use jasmine, not mocha
[15:01:43] <Foxandxss> so there could be something weird
[15:01:43] <sacho_> jcool, sounds like your problem is with the backend
[15:01:45] *** dalguete has joined #angularjs
[15:01:48] <Foxandxss> still, jQuery is hell helpful
[15:01:59] <Miphe> Foxandxss, you see that $digest and $apply doesn't work in the beforeEach function?
[15:02:01] <Foxandxss> jcool: log the request on your backend to see what you get
[15:02:02] <jcool> sacho_, removing $.param will make any difference?
[15:02:06] *** bayousoft has joined #angularjs
[15:02:10] *** mchammer has quit IRC
[15:02:14] *** discgo has joined #angularjs
[15:02:15] <jcool> Foxandxss, ah sure.
[15:02:15] <Foxandxss> Miphe: missed the comment
[15:02:20] <Foxandxss> let me try
[15:02:27] <Miphe> Foxandxss, I think I'm missing some vital part there, which breaks a lot. Thanks
[15:02:44] *** tkimmel has joined #angularjs
[15:02:59] *** carlosma_ has quit IRC
[15:03:01] *** Zeioth has joined #angularjs
[15:03:08] *** mchammer has joined #angularjs
[15:03:51] *** moritzs has joined #angularjs
[15:04:08] *** dreambox has joined #angularjs
[15:04:09] *** jlebrech has joined #angularjs
[15:04:23] *** annlewis has quit IRC
[15:04:23] *** blomman has quit IRC
[15:04:24] <Jr3Says> I dont understand what would be causing a element not to render
[15:04:29] <Jr3Says> but the others do just ifne
[15:04:31] *** bayousoft has quit IRC
[15:04:37] *** whitebook has quit IRC
[15:04:56] *** Sebastien-L has joined #angularjs
[15:04:57] *** blomman has joined #angularjs
[15:04:57] *** thirdknife has quit IRC
[15:04:58] *** e0ipso|away is now known as e0ipso
[15:05:04] *** bayousoft has joined #angularjs
[15:05:12] *** whitebook has joined #angularjs
[15:05:58] <sacho_> Jr3Says, that's very vague
[15:06:04] <Foxandxss> Miphe: true, that is really really weird
[15:06:06] <sacho_> I'm going to have to go with "solar flares"
[15:06:12] <Jr3Says> lol
[15:06:22] <Miphe> hmm yes
[15:06:39] *** onats has quit IRC
[15:06:39] <Foxandxss> I never did mocha, but shouldn't fail
[15:06:53] <jlebrech> if I inject Restangular into a controller how can I run it once the controller has loaded. if I have a $scope.init which I run at the bottom of the declaration i can't access Restangular
[15:06:58] <Foxandxss> Miphe: wait
[15:07:03] <Miphe> I did jasmine a bit, and it's very similar.
[15:07:12] <Foxandxss> fixed digest error
[15:07:15] <Miphe> :D
[15:07:34] <Foxandxss> http://jsfiddle.net/8goutc2L/
[15:07:42] <Foxandxss> and please, don't use jsfiddle
[15:08:03] <Foxandxss> I have a couple of plunker templates for testing, but none for mocha
[15:08:38] *** hans_ has joined #angularjs
[15:08:44] *** jgravois has joined #angularjs
[15:08:45] <Foxandxss> Miphe: first, never mix angular versions between dependencies
[15:08:46] *** dreambox has quit IRC
[15:08:53] <Foxandxss> second, never use .min for development or questioning
[15:09:01] <Foxandxss> that will remove 75% of pain
[15:09:24] <sacho_> jlebrech, why not?
[15:09:28] <Miphe> wha, so you changed the angular version?
[15:09:55] *** whitebook has quit IRC
[15:10:25] <Foxandxss> Miphe: mocks version
[15:10:33] <Foxandxss> both needs to be the same
[15:10:36] <Miphe> oh my gd.
[15:10:39] <Foxandxss> one was 1.3.0 the other was 1.1.5
[15:10:53] <Miphe> Thanks a million man.
[15:11:09] <Foxandxss> np
[15:11:17] <Miphe> The test goes through as well,
[15:11:18] <Miphe> wow!
[15:11:35] <Foxandxss> the afterEach for compiledc = null
[15:11:37] <jlebrech> sacho_: I don't know, it's undefined.
[15:11:37] <Foxandxss> that is not needed
[15:11:43] <Foxandxss> the other thing, I guess it is sinon, so no idea
[15:12:08] <Foxandxss> Miphe: more important, that test is conceptually wrong
[15:12:14] <Foxandxss> you don't need a controller there
[15:12:25] *** mccarrontr1ck has joined #angularjs
[15:12:39] *** FIFOd[a] has joined #angularjs
[15:12:51] <sacho_> jlebrech, well, that would be a reason. So what does your code look like?
[15:12:57] *** azizur has joined #angularjs
[15:13:06] <Miphe> Foxandxss, really? How come?
[15:13:15] <Foxandxss> it is a unit test
[15:13:17] <Foxandxss> you test the unit
[15:13:28] <Foxandxss> unit == directive in this case
[15:13:29] <jlebrech> sacho_: like this https://gist.github.com/jlebrech/695bda5df88f396adcea
[15:13:37] <Foxandxss> the controller has nothing to do there
[15:13:40] *** linojon has joined #angularjs
[15:14:14] <Foxandxss> let me update the test
[15:14:20] <Foxandxss> first need to update my sinon-fu
[15:15:08] *** CamonZ has joined #angularjs
[15:15:13] <sacho_> jlebrech, well, Restangular can't be undefined there.
[15:15:21] <sacho_> unless you're not injecting anything
[15:15:24] <Miphe> The directive has the call to the clickFunction though. If the directive is changed to lets say ng-click="anotherFunction()" then I want the test to fail
[15:15:27] *** mven has joined #angularjs
[15:15:33] *** danecando has quit IRC
[15:15:34] <Foxandxss> Miphe: http://jsfiddle.net/8goutc2L/1/
[15:15:45] <jlebrech> sacho_: looks like .then is undefined, Restangular.all is returning []
[15:15:51] <Foxandxss> if your directive needs a "predefined" scope
[15:16:02] <Foxandxss> p.e a function called "clickFunction"
[15:16:08] *** dmra has quit IRC
[15:16:15] <Foxandxss> you just create a new scope as you did and you put there by hand the needed bits
[15:16:16] <sacho_> jlebrech, well, that's normal
[15:16:23] *** lexek_ has quit IRC
[15:16:35] *** bayousoft has quit IRC
[15:16:38] <CamonZ> hi, I'm trying to build a static site that will use angular and I want to know how to load the different templates the app will use without having to request them to the server.
[15:16:39] <jlebrech> sacho_: how come the promise is undefined?
[15:16:43] <Jr3Says> sacho_, its like im having cache issues, I have 3 elements in my updated view that will not display, they arent in dom but when I open the file they're there
[15:16:47] *** danecando has joined #angularjs
[15:16:48] <CamonZ> meaning, I want them embedded on my index.html
[15:16:50] *** dmra has joined #angularjs
[15:16:57] <Miphe> Yes you are right, Foxandxss the $controller part is superfluous
[15:17:00] <jgravois> Any thoughts on how to debug something where there are no console errors and a replicated plunker works as expected?
[15:17:01] <sacho_> jlebrech, Restangular.all() doesn't return a promise - it returns a Restangular object
[15:17:08] *** jonr22 has joined #angularjs
[15:17:17] <sacho_> jgravois, use a debugger and trace related code
[15:17:18] <Miphe> Thanks :D
[15:17:20] <Foxandxss> Miphe: yes, on unit test, you need to mock the "outside"
[15:17:23] *** Artagan has left #angularjs
[15:17:24] *** bayousoft has joined #angularjs
[15:17:26] <Foxandxss> or replicate it like that example
[15:17:32] <Foxandxss> all comes down to the use case
[15:17:35] <jlebrech> sacho_: oh i see :)
[15:17:38] <Miphe> yeah
[15:17:44] <jgravois> is there a debugger for javascript other than the console?
[15:17:58] <Foxandxss> CamonZ: the easiest way is to simply create <script> tags
[15:18:00] <jlebrech> thanks sacho_
[15:18:10] <sacho_> jgravois, chrome has a debugger - look at the sources tab.
[15:18:17] *** bmac has joined #angularjs
[15:18:29] *** sahbeewah has quit IRC
[15:18:33] <jgravois> gotcha
[15:18:34] <Foxandxss> CamonZ: <script type="text/ng-template" id="heregoesthename"> .... </script>
[15:18:36] <jlebrech> sacho_: .getList() :)
[15:18:43] *** mrits has joined #angularjs
[15:18:55] <CamonZ> Foxandxss: thank you :)
[15:19:05] <CamonZ> Foxandxss: that's from the docs of $templateCache right?
[15:19:19] *** slopjong has joined #angularjs
[15:19:40] <Foxandxss> I don't know
[15:19:43] *** nagappan_ has quit IRC
[15:19:44] <Foxandxss> I Don't read the doc
[15:20:00] *** enaqx has quit IRC
[15:20:02] <Foxandxss> $templateCache is an "advanced" way to do it
[15:20:16] *** nagappan_ has joined #angularjs
[15:20:20] *** tech2 has quit IRC
[15:21:32] *** jonr22 has quit IRC
[15:21:52] *** pedrofsantos has joined #angularjs
[15:22:14] <CamonZ> I see, what I'm trying to do is to have a jekyll site, with some js in it. I figured I could define the templates with slim and let jekyll-assets-pipeline compile them, then figure out a way to include them in the ng app
[15:22:21] *** TyrfingMjolnir has joined #angularjs
[15:22:31] *** favetelinguis has quit IRC
[15:22:37] *** bayousoft has quit IRC
[15:23:01] *** favetelinguis has joined #angularjs
[15:23:10] *** bayousoft has joined #angularjs
[15:23:12] *** simsketch has quit IRC
[15:23:13] <CamonZ> seems the easiest way would be to add the templates in the list of files to be compiled in the javascript_asset_tag
[15:23:16] <Foxandxss> I see, I use jekyll (well, octopress) for blogging, but no angular on it
[15:24:10] *** whitebook has joined #angularjs
[15:24:44] <CamonZ> it's for a webgl project I have for school. I think it's easier to use angular to define an app and deal with the interactions
[15:25:05] <CamonZ> definetly better than writing 500L of spaghetti js
[15:25:06] *** rburns has quit IRC
[15:25:10] <sakustar> Foxandxss: have you tried ghost ? (is octopress "better")
[15:25:34] <sakustar> for a no config just publish approach
[15:25:42] <pedrofsantos> Hi! Im having a lot of difficulties to understand how one should use the promises in angular. my problem is: i have 2 services that return a promise, and on my controller i need to fetch data from both and build an object afterwards so i can save the data.
[15:25:50] <pedrofsantos> Unfortunately the result always come undefined since they come from a promise. So how should i fetch data from different services and manipulate the results afterwards ?
[15:26:17] *** BillCriswell has joined #angularjs
[15:26:18] *** arthas has joined #angularjs
[15:26:32] *** enaqx has joined #angularjs
[15:26:37] *** naneau has quit IRC
[15:27:02] <ClearsTheScreen> pedrofsantos: by their async nature you need to wait until the promises resolve before you can work on the data; i.e. in their continuances. could e.g. have both call the same continuance which checks if both sets of responses are available and then passes on to the function that "builds an object afterwards".
[15:27:17] *** sk87 has joined #angularjs
[15:27:45] <JohnFree> Hey guys I've a question.
[15:27:46] *** favetelinguis has quit IRC
[15:28:05] <ClearsTheScreen> we're doomed :( ;)
[15:28:07] <Jr3Says> weird... grun is removing my closing tags
[15:28:12] <Jr3Says> grunt*
[15:28:22] *** naneau has joined #angularjs
[15:28:30] <JohnFree> Let's say I have sorted a list ascending by name. When I try to sort it again ascending by name, is AngularJS smart enough or does he sort it again?
[15:28:30] *** annlewis has joined #angularjs
[15:28:39] *** bayousoft has quit IRC
[15:28:52] <Foxandxss> sakustar: heard of it, what are the pros?
[15:29:12] *** bayousoft has joined #angularjs
[15:29:12] <ClearsTheScreen> JohnFree: no code in the world can be smart enough, generally speaking, to divine if a list is still in sorted order
[15:29:50] *** Efrem has joined #angularjs
[15:29:53] <ClearsTheScreen> (y'know, not without walking and checking, which is halfway to sorting it anyways)
[15:30:21] *** CamonZ has quit IRC
[15:30:24] *** travm is now known as travm-afk
[15:30:31] *** Owner has joined #angularjs
[15:30:45] *** moritzs has quit IRC
[15:30:45] <Foxandxss> ClearsTheScreen: really nice answer
[15:30:54] <ClearsTheScreen> i wasn't trying to be snarky or anything.
[15:30:55] *** Owner is now known as Guest49722
[15:30:58] <Foxandxss> because with another anwer, he would start saying that angular is slow
[15:31:05] <Foxandxss> and here we go again
[15:31:08] <Foxandxss> I don't want that :P
[15:31:09] <ClearsTheScreen> who is "he"?
[15:31:12] <JohnFree> Guys does it make sense to sort by phonenumber? In my opionion not
[15:31:23] <ClearsTheScreen> oh gotcha.
[15:31:24] *** travm-afk has quit IRC
[15:31:29] <ClearsTheScreen> (distracted by work x.x)
[15:31:39] <JohnFree> Does it make sense?
[15:31:40] <Foxandxss> JohnFree: depend on your use case
[15:31:46] *** Alina-malina has quit IRC
[15:31:58] <ClearsTheScreen> JohnFree: depends. if you're building a phone book and want to reverse-search, sure.
[15:32:00] *** oniijin has joined #angularjs
[15:32:10] <Foxandxss> time to research for my next blog post
[15:32:14] *** dylang has joined #angularjs
[15:32:19] *** mandric has joined #angularjs
[15:32:24] <JohnFree> Hm. How can I sort if it's string?
[15:32:27] *** Alina-malina has joined #angularjs
[15:32:28] *** Alina-malina has joined #angularjs
[15:32:33] *** moritzs has joined #angularjs
[15:32:39] *** dylang has quit IRC
[15:32:41] *** whitebook has quit IRC
[15:32:54] *** vassagus has joined #angularjs
[15:33:29] *** tech2 has joined #angularjs
[15:33:34] *** cuebix-wk has joined #angularjs
[15:33:53] *** darrin has joined #angularjs
[15:34:01] *** Snugug has joined #angularjs
[15:34:02] <Foxandxss> "foo" > "bar"
[15:34:03] <Foxandxss> true
[15:34:20] *** lw has quit IRC
[15:34:26] *** jeffszusz has joined #angularjs
[15:34:41] *** bayousoft has quit IRC
[15:34:41] <oniijin> http://lmgtfy.com/?q=sort+strings+js
[15:35:10] *** bayousoft has joined #angularjs
[15:35:35] <JohnFree> Foxandxss: bar > null = true
[15:35:47] <Foxandxss> so?
[15:35:59] <JohnFree> Foxandxss: A breakthrough in science
[15:36:08] *** gauravsaini03 has joined #angularjs
[15:36:12] <Foxandxss> I won't discuss with you
[15:36:13] <Foxandxss> sorry
[15:36:13] <JohnFree> Foxandxss: And we discovered it
[15:36:18] <JohnFree> ok
[15:36:27] <ClearsTheScreen> no need for sarcasm :P
[15:36:44] <Foxandxss> My patience has a really short span lately
[15:36:54] <Foxandxss> so I prefer not to waste it so early heh
[15:36:58] <JohnFree> life is short. Relax
[15:37:02] <JohnFree> ok
[15:38:13] *** hans_ has quit IRC
[15:38:57] *** Xethron has quit IRC
[15:39:15] *** fdv has joined #angularjs
[15:39:22] *** tkdaj has left #angularjs
[15:39:46] <JohnFree> Hey guys why doesn't sorting alphanumerically not work. "93.." comes before "01", why?
[15:40:10] <ClearsTheScreen> it works, just not numerical. as you said, alnum. string 9 < string 0.
[15:40:19] <ClearsTheScreen> also, giyf.
[15:40:39] *** Alina-malina has quit IRC
[15:40:59] *** brettfrable has quit IRC
[15:41:18] *** Xethron has joined #angularjs
[15:41:24] *** travm has joined #angularjs
[15:42:43] *** toreilly has quit IRC
[15:42:57] *** novist has left #angularjs
[15:43:02] <JohnFree> But how shall I sort by phoneNumber then?
[15:43:03] *** fdv has left #angularjs
[15:43:14] *** danflies has quit IRC
[15:43:15] *** natrixnatrix89 has joined #angularjs
[15:43:16] <JohnFree> I can't send "0170" as Integer because it removes the 0
[15:43:20] <JohnFree> at the beginning
[15:43:31] *** naneau has quit IRC
[15:43:32] *** moritzs has quit IRC
[15:43:40] *** memento__ has joined #angularjs
[15:44:18] <natrixnatrix89> guys.. How can I set ng-src to an element, if the image(or video) comes from another domain?
[15:44:24] <Foxandxss> google has a nice answer for that
[15:44:33] <Foxandxss> natrixnatrix89: no idea tbh
[15:44:33] *** memento_ has quit IRC
[15:44:43] *** ckboii89 has joined #angularjs
[15:44:55] <natrixnatrix89> Error: error:interr Interpolation Error
[15:44:57] <natrixnatrix89> I'm getting
[15:44:59] *** intellix has quit IRC
[15:45:03] <ClearsTheScreen> JohnFree: yeah, i'm with Foxandxss in that case; i'm sure your search engine of choice has lots of intel there.
[15:45:03] *** crunch-choco has joined #angularjs
[15:45:07] <natrixnatrix89> because it's insecure url
[15:45:08] *** dman777_alter has joined #angularjs
[15:45:17] <oniijin> ClearsTheScreen don't think he knows of this google
[15:45:19] <natrixnatrix89> I don't want Angular to do any Ajax calls
[15:45:20] <Foxandxss> maybe you need to sanitize it
[15:45:28] <natrixnatrix89> I just want to show the damn picture
[15:45:36] <natrixnatrix89> but angular wants to make sure it exists
[15:45:46] <natrixnatrix89> even if I use src attribute
[15:45:58] *** kuadrosx_ has joined #angularjs
[15:46:02] *** mandric has quit IRC
[15:46:28] *** Alina-malina has joined #angularjs
[15:46:29] *** Alina-malina has joined #angularjs
[15:46:29] *** SahanH_ has quit IRC
[15:46:38] <jgravois> https://gist.github.com/anonymous/3e739ae70120e0b73391 <-- Is there a way to refer to an attribute within the same object after it is declared to simplify these calculation? For example, in the paste, if I could refer to $scope.loan.grader.year_1_revenue in $scope.loan.grader.year_1_income, I wouldn't have to paste in the source.
[15:46:59] *** JohnFree has quit IRC
[15:47:10] <jgravois> this.XXX doesn't work
[15:47:26] *** shackleford has joined #angularjs
[15:47:51] <crunch-choco> guys how can i bind ng-model and an input[type=file]? do we have an example
[15:48:08] *** intellix has joined #angularjs
[15:48:26] <calmbird> crunch-choco well you have to do some work for ng-file
[15:48:31] *** shackleford has quit IRC
[15:48:40] *** ctanga has quit IRC
[15:48:52] <calmbird> i use angular-file-upload for that, you can see how they are doing it
[15:49:03] <natrixnatrix89> guys anyone??
[15:49:06] *** shackleford has joined #angularjs
[15:49:15] <ClearsTheScreen> oniijin: "search engine of choice" gets somewhat around that ;3
[15:49:26] <natrixnatrix89> There is no documentation on how to prevent angular from checking my image via ajax
[15:49:29] *** ckboii89 has quit IRC
[15:49:35] *** ulkesh has quit IRC
[15:49:37] <oniijin> hmm, maybe his search engine of choice is #angularjs
[15:49:41] <calmbird> natrixnatrix89: Angular is doing ajax calls sorry
[15:49:46] *** bayousoft has quit IRC
[15:49:55] <natrixnatrix89> Each time I want to show a picture?
[15:50:01] <calmbird> natrixnatrix89: to dl html templates etc
[15:50:02] <Foxandxss> jgravois: not sure if you can
[15:50:08] *** cthrax has joined #angularjs
[15:50:08] <crunch-choco> calmbird: darn i didn't expect it was so complicated
[15:50:12] <ClearsTheScreen> oniijin: hah :D good response.
[15:50:18] *** bayousoft has joined #angularjs
[15:50:20] *** ThomasBeauvais has joined #angularjs
[15:50:21] <crunch-choco> i cannot use lib, i have to code it myself
[15:50:21] <calmbird> crunch-choco: yeah it is abit, but not very complicated :P
[15:50:27] <jgravois> Foxandxss: ouch ... ok
[15:50:30] *** codeman has quit IRC
[15:50:31] *** mrits has quit IRC
[15:50:37] *** zwacky has quit IRC
[15:50:37] <crunch-choco> calmbird: ok i will try, thanks man :)
[15:50:38] <natrixnatrix89> calmbird: sure to download templates it's ok.. But if i have <img ng-src="{{fooBar}}" />
[15:50:43] <calmbird> np :P
[15:50:53] <natrixnatrix89> it will try to load fooBar url
[15:51:04] *** ulkesh has joined #angularjs
[15:51:07] *** shinnya has quit IRC
[15:51:08] <natrixnatrix89> I don't want angular to check fooBar, because it's on a different domain
[15:51:16] <calmbird> natrixnatrix89: yeah well, angular.js is made on ajax calls, if you wan't them better do static page :P
[15:51:32] <natrixnatrix89> you're not helping
[15:51:48] <sakustar> Foxandxss: ghost == markdown , dunno if there are more pros :D
[15:51:55] <natrixnatrix89> or don't understand the question
[15:52:00] <Foxandxss> sakustar: octopress is markdown as well :)
[15:52:11] *** ajk27 has quit IRC
[15:52:11] <sakustar> Foxandxss: cool, live editor ? :)
[15:52:16] <Foxandxss> jekyll is not using markdown?
[15:52:18] <sakustar> split view i mean
[15:52:26] <Foxandxss> yeah, atom has split view
[15:52:26] <Foxandxss> :P
[15:52:31] <sakustar> oh okies
[15:52:36] *** ajk27 has joined #angularjs
[15:52:37] <calmbird> I would love angular to make model for <div contenteditable> it would be heaven :D
[15:52:42] <sakustar> you can just go to url with ghost and type away
[15:52:42] *** junmin has quit IRC
[15:52:44] *** JohnBat26 has quit IRC
[15:53:20] <sakustar> idk, didnt have many plugins when i started it and havent checked since
[15:53:21] <sakustar> :D
[15:53:24] <Foxandxss> sakustar: that is cool, but doesn't worth the change :P
[15:53:38] *** anivemin has joined #angularjs
[15:53:42] <Foxandxss> let me google it tho
[15:53:48] <ClearsTheScreen> bridging angular with CK Editor was "fun" ...
[15:54:40] *** gnrlbzik has joined #angularjs
[15:55:05] *** qstrahl has joined #angularjs
[15:55:06] <sakustar> Foxandxss: yeah not worth changing but still, its a fun little blogging tool without any extras
[15:55:13] *** noiserocker has joined #angularjs
[15:56:02] <Foxandxss> sakustar: well, I just need to "rake new_post" put a name, go to my favorite editor, write the markdown
[15:56:03] <Foxandxss> then
[15:56:06] <Foxandxss> rake generate && rake deploy
[15:56:10] <Foxandxss> and it gets live
[15:56:35] *** braidn has quit IRC
[15:56:41] *** Aswebb has joined #angularjs
[15:56:46] *** gurke_ has quit IRC
[15:56:49] *** naneau has joined #angularjs
[15:57:17] *** Yahkob has joined #angularjs
[15:57:39] *** soee has quit IRC
[15:57:46] *** MaxV has joined #angularjs
[15:57:49] *** livingstn has joined #angularjs
[15:57:51] *** btyne has joined #angularjs
[15:58:09] *** anivemin has quit IRC
[15:58:21] *** g3funk has joined #angularjs
[15:58:28] *** nicknema has joined #angularjs
[15:58:31] <nicknema> o/
[15:58:40] *** patric100e99 has joined #angularjs
[15:58:42] *** Asiajey has quit IRC
[15:58:42] <nicknema> angular still current @ 1.3, true ?
[15:59:06] <Foxandxss> still?
[15:59:14] <Foxandxss> it just came out
[15:59:14] <nicknema> asking since i heard some people talking a bout 2.0
[15:59:24] <Foxandxss> 2.0 is 2016
[15:59:42] <nicknema> ah good, then i'll take 1.3 for the project
[15:59:55] *** Asiajey has joined #angularjs
[15:59:55] *** Asiajey has joined #angularjs
[15:59:55] <Foxandxss> sane idea
[16:00:00] <nicknema> just read some nasty things about 2.0 changing too much syntaxn and not being backwards compatible
[16:00:05] <nicknema> does these things hold salt ?
[16:00:21] *** gnrlbzik has quit IRC
[16:00:25] *** travm is now known as travm-afk
[16:00:27] <Foxandxss> it will change, yes
[16:00:29] <Foxandxss> for good
[16:01:23] *** patrickarlt has joined #angularjs
[16:01:25] *** travm-afk has quit IRC
[16:01:37] <nicknema> any advice as to coping wit this? if that would effect my project at all.
[16:01:47] *** iribarne has quit IRC
[16:01:52] <Foxandxss> thnink of angular 2 like a new framework
[16:02:03] <Foxandxss> you will have all the basic knowledge, but still, all new
[16:02:17] *** Yahkob has quit IRC
[16:02:35] *** FunnyLookinHat has joined #angularjs
[16:02:49] *** tech2 has quit IRC
[16:02:49] <nicknema> rgr
[16:03:58] *** patric100e99 has quit IRC
[16:04:23] *** prbc has quit IRC
[16:04:25] *** JohnFree has joined #angularjs
[16:04:40] <JohnFree> Hi guys. What's wrong with this?: <button class="btn btn-success" ng-click="::menuActive=false; ::goToPage('/')">Close</button>
[16:04:40] *** Bade has joined #angularjs
[16:04:47] *** svteoi has joined #angularjs
[16:05:17] *** iribarne has joined #angularjs
[16:05:17] *** DoubleAW has quit IRC
[16:05:29] *** cacts has joined #angularjs
[16:05:46] *** DoubleAW has joined #angularjs
[16:06:04] *** natrixnatrix89 has quit IRC
[16:06:09] <sacho_> it's not a valid expression
[16:06:20] *** dcherman has joined #angularjs
[16:06:24] <JohnFree> sacho_: I know. But how could I do it right?
[16:06:32] <sacho_> well, do what
[16:06:38] *** kuadrosx_ is now known as kuadrosx
[16:06:45] <JohnFree> sacho_: I tried different options, none of them is working
[16:06:50] *** enigmarm has joined #angularjs
[16:06:56] <sacho_> what are you trying to do with those ::?
[16:07:12] <henn1nk> is there any way to create a unique id in angularjs without any db backend?
[16:07:20] *** darrin has quit IRC
[16:07:24] <sacho_> not a builtin way, no
[16:07:27] <JohnFree> sacho_: One-Time-binding
[16:07:30] *** bewl has left #angularjs
[16:07:38] <sacho_> JohnFree, those are meaningless in that context
[16:07:43] <sacho_> just remove them
[16:07:50] <oniijin> lol
[16:07:54] *** Marble68 has joined #angularjs
[16:08:05] <JohnFree> sacho_: It's not meaningless as their parent-div should be the only thing which shall have a $watch
[16:08:15] *** oste has joined #angularjs
[16:08:16] <sacho_> they are meaningless.
[16:08:17] <JohnFree> sacho_: They are in a parent-div which doesn't use ::
[16:08:19] <sacho_> In the literal sense.
[16:08:23] *** michaelfavia has joined #angularjs
[16:08:39] <henn1nk> sacho_: with memcache maybe?
[16:08:42] <JohnFree> sacho_: But for each "ng-*"-attribute a watcher is created, no matter if it's literal or not
[16:09:42] <sacho_> JohnFree, there's no watch created for ng-event directives.
[16:09:49] *** Bade has quit IRC
[16:10:00] *** duall has quit IRC
[16:10:16] <JohnFree> sacho_: That's what Pasvaz (creator of bindonce) says
[16:10:23] *** mrtoadsc has joined #angularjs
[16:10:35] <JohnFree> I'm reciting Pasvaz: "Angular internally creates a $watch for each ng-* directive in order to keep the data "
[16:10:50] <sacho_> well isn't that cute
[16:10:52] *** darrin has joined #angularjs
[16:10:52] *** duall has joined #angularjs
[16:10:53] <sacho_> but it's wrong
[16:11:06] *** ASUChander has joined #angularjs
[16:11:14] <oniijin> but he read it on the internet. it's gotta be true
[16:11:18] <themime> JohnFree: jesus did you even sleep
[16:11:25] <JohnFree> :D
[16:11:30] <JohnFree> themime: only a few hours
[16:11:33] <JohnFree> I'm a freak
[16:11:38] *** mrits has joined #angularjs
[16:11:39] *** ome has quit IRC
[16:11:55] <JohnFree> :D
[16:12:03] *** s3shs has joined #angularjs
[16:12:13] <themime> nah just like every other obsessived programmer until they adapt or burn out haha
[16:12:17] <JohnFree> sacho_: Then what's the truth?
[16:12:18] <themime> obsessed*
[16:12:20] <sacho_> JohnFree, at any rate, even if a watch was created, your syntax would still make no sense
[16:12:32] <sacho_> because what you're passing to ng-event is an expression
[16:12:39] <sacho_> not a binding
[16:13:02] <Foxandxss> sacho_: he is obsesionated with watch
[16:13:03] <sacho_> that expression is just evaluated every time the event is triggered
[16:13:04] <JohnFree> sacho_: Yes. So could you tell me how to improve my expression so that one-time-binding happens
[16:13:06] <Foxandxss> so he will try to use :: everywhere
[16:13:14] <sacho_> JohnFree, there's no such thing
[16:13:19] <JohnFree> Yes. I have no friend than ::
[16:13:21] <Foxandxss> JohnFree: let me be clear
[16:13:25] <Foxandxss> THERE IS NO WATCH ON NG-CLICK
[16:13:29] <Foxandxss> you got that?
[16:13:33] <JohnFree> Ahaaaaaaaa
[16:13:36] <JohnFree> Now I get it :D
[16:13:49] <Foxandxss> caps seems to work then
[16:13:51] <JohnFree> Therefore there is no "bo-click" in Pasvaz" bindonce
[16:14:00] *** linojon has quit IRC
[16:14:05] <JohnFree> I wondered why he is not supporting bo-click
[16:14:12] <sacho_> probably
[16:14:17] *** sk87 has quit IRC
[16:14:25] <oniijin> smh good ol' mondays in ng
[16:14:31] <Foxandxss> watch is created on data binding, when you want to have something on the view synced with your scope
[16:14:43] <Foxandxss> a function is not something to have on sync
[16:14:44] *** Yankie has quit IRC
[16:14:49] <Foxandxss> function name won't change
[16:14:56] <JohnFree> thanks
[16:15:15] *** linojon has joined #angularjs
[16:15:20] <crunch-choco> do you guys have any tutorial about how to convert a jpg to a blob with javascript
[16:15:39] *** dylang has joined #angularjs
[16:15:42] *** mary5030 has joined #angularjs
[16:15:58] <calmbird> crunch-choco you can't do anything with pure javascript, that was not implemented in lower level
[16:16:24] <themime> i have like 8 views that could be in a given div depending on a sidebar click (presents a temporary slide out). im leaning towards ng-show controlled by a directive/shared service, any thoughts?
[16:16:25] *** zwacky has joined #angularjs
[16:16:25] <themime> using ui-router named views for a fairly organized file
[16:16:25] <calmbird> crunch-choco: In many cases you have to $post things to server, that will do for you and return output
[16:16:25] *** mary5030 has joined #angularjs
[16:16:37] *** andydrew has joined #angularjs
[16:16:39] *** moritzs has joined #angularjs
[16:16:52] *** tech2 has joined #angularjs
[16:17:00] *** josh-k_ has quit IRC
[16:17:04] *** travm has joined #angularjs
[16:17:06] *** jasonp has joined #angularjs
[16:17:06] *** sirkitree has quit IRC
[16:17:08] <crunch-choco> calmbird: oh i see, i didn't know that, thanks again ;)
[16:17:16] <calmbird> np :)
[16:17:19] *** sk87 has joined #angularjs
[16:17:21] <themime> calmbird: he might be using js as his backend with node though
[16:17:30] <calmbird> themime: ofc
[16:17:37] *** josh-k has joined #angularjs
[16:17:38] <Foxandxss> he won't ask here then
[16:17:41] *** BahamutWC|Work has joined #angularjs
[16:17:45] <themime> haha good point
[16:18:01] *** foofoobar has quit IRC
[16:18:11] *** mattp_ has quit IRC
[16:18:49] *** mattp_ has joined #angularjs
[16:20:08] *** rho has joined #angularjs
[16:20:08] *** rho has joined #angularjs
[16:20:31] *** Soothsayer_ has joined #angularjs
[16:21:07] *** Soothsayer has quit IRC
[16:21:07] *** Soothsayer_ is now known as Soothsayer
[16:21:35] <bd-> is code.jquery.com down for anyone else or just my cdn region?
[16:21:42] *** edrocks has joined #angularjs
[16:22:03] *** dllama has joined #angularjs
[16:22:08] *** josh-k has quit IRC
[16:22:16] *** ctanga has joined #angularjs
[16:22:22] *** sirkitree has joined #angularjs
[16:22:25] <Foxandxss> http://www.downforeveryoneorjustme.com/code.jquery.com
[16:22:30] *** Asiajey has quit IRC
[16:22:34] <Foxandxss> fwiw, down for me
[16:22:59] <zomg> since nobody seems to have linked this here yet =) www.nomorejavascript.com
[16:23:10] <zomg> not sure if troll or stupid [futurama fry]
[16:23:11] <zomg> lol
[16:23:36] *** simonc has joined #angularjs
[16:24:05] *** simonc has joined #angularjs
[16:24:14] *** matthoiland has joined #angularjs
[16:24:16] *** tech2 has quit IRC
[16:24:22] <bd-> Foxandxss: eu?
[16:24:27] <Foxandxss> yeah
[16:24:28] <calmbird> zomg: For dynamic content you can't use anything else than javascript in webrowsers.
[16:24:39] *** shaisnir_ has joined #angularjs
[16:24:39] *** MaxV has quit IRC
[16:24:39] *** simonc has joined #angularjs
[16:24:51] *** Asiajey has joined #angularjs
[16:24:59] *** sk87 has quit IRC
[16:25:09] *** danflies has joined #angularjs
[16:25:09] *** MaxV has joined #angularjs
[16:25:10] *** noiserocker has quit IRC
[16:25:18] *** SoulBlade has joined #angularjs
[16:25:22] *** simonc has joined #angularjs
[16:25:25] <calmbird> bd-: Hi, I made phantomjs server and returning http://54.88.187.230/?_escaped_fragment_ , added <meta name="fragment" content="!"> to head, I hope it's enough for stupid google bots :P
[16:25:30] <sweeper> zomg: I'm equally (notsureif)
[16:25:31] *** simonc has quit IRC
[16:26:03] *** mandric has joined #angularjs
[16:26:09] *** prbc has joined #angularjs
[16:26:09] *** simonc has joined #angularjs
[16:26:47] *** sk87 has joined #angularjs
[16:26:53] *** simonc has joined #angularjs
[16:26:57] *** simonc has quit IRC
[16:27:13] <ClearsTheScreen> zomg: that site uses javascript -- irony? ;)
[16:27:30] *** Hackwar1 has quit IRC
[16:27:36] *** simonc has joined #angularjs
[16:27:59] *** laurensclaessen has quit IRC
[16:28:10] *** Hackwar has joined #angularjs
[16:28:15] *** simonc has joined #angularjs
[16:28:27] *** AndreasLutro has quit IRC
[16:28:33] <zomg> ha =)
[16:28:41] *** shaisnir has quit IRC
[16:29:00] *** simonc has joined #angularjs
[16:29:11] *** matthoiland has quit IRC
[16:29:50] *** simonc has joined #angularjs
[16:29:54] *** SoulBlade has quit IRC
[16:29:54] *** simonc has quit IRC
[16:30:09] *** simsketch has joined #angularjs
[16:30:41] *** michaelfavia has quit IRC
[16:30:43] *** Asiajey has quit IRC
[16:30:53] *** conan_the_destro has joined #angularjs
[16:30:53] <BahamutWC|Work> “We were heading in the right direction with Ruby on Rails. What happened?” I hope this was sarcasm
[16:30:55] <sakustar> Foxandxss: thanks for introducing octopress ;)
[16:31:30] <sakustar> too many options
[16:31:46] <Foxandxss> yeah, I picked one (after 3 wordpress blogs) that were simple
[16:31:54] <Foxandxss> and static is hell good
[16:32:04] <Foxandxss> it can hold hundred of people at once, 1% cpu
[16:32:09] <Foxandxss> on a cheap digital ocean
[16:32:40] *** laurensclaessen has joined #angularjs
[16:32:44] *** cuebix-wk has quit IRC
[16:32:59] *** xuu has quit IRC
[16:33:10] *** Marble68 has quit IRC
[16:33:57] *** simonc has joined #angularjs
[16:34:02] *** simonc has quit IRC
[16:34:10] *** ankhular has quit IRC
[16:34:14] *** Blackshark has quit IRC
[16:34:32] *** CamonZ has joined #angularjs
[16:34:47] *** simsketch has quit IRC
[16:35:03] <merpnderp> What are the webapps called that you can save on your phone? Like in iOS how you can safe forecast.io to the desktop.
[16:35:24] *** dreambox has joined #angularjs
[16:35:35] <oniijin> add to home screen?
[16:35:40] *** Asiajey has joined #angularjs
[16:35:46] <zomg> merpnderp: I think it's called offline app cache or something
[16:36:21] <merpnderp> oniijin: yes, where you can safe a bookmark or something to the home screen, but it loads like an app. Not sure how it works.
[16:36:42] *** davejs has quit IRC
[16:36:43] <merpnderp> zomg: so it is just using local browser storage and that is just a bookmark saved to the home screen?
[16:36:43] <ClearsTheScreen> merpnderp: ususally they're either "native web apps" or just html/js apps afaik.
[16:36:48] *** zly has quit IRC
[16:37:03] *** IvailoStoianov has joined #angularjs
[16:37:03] *** yozilla has joined #angularjs
[16:37:06] <zomg> merpnderp: yeah there's some storage mechanism for it, it uses a manifest file or something like that
[16:37:08] <ClearsTheScreen> merpnderp: for many of those apps, kind of yes.
[16:37:19] *** xuu has joined #angularjs
[16:37:23] *** gauravsaini03 has quit IRC
[16:37:39] <merpnderp> zomg: but you don't know exactly what those are called?
[16:37:50] <kuadrosx> BahamutWC|Work: https://github.com/timahoney/decaf
[16:37:55] *** goblortikus has joined #angularjs
[16:38:14] <merpnderp> zomg: heh, googled html5 manifest and got this: http://www.html5rocks.com/en/tutorials/appcache/beginner/ :)
[16:38:20] *** zly has joined #angularjs
[16:38:34] <ClearsTheScreen> google suggests "hybrid app" http://www.nngroup.com/articles/mobile-native-apps/
[16:38:38] *** MerlinDMC has quit IRC
[16:38:55] <merpnderp> ClearsTheScreen: that seems like a fair name.
[16:39:15] *** goblortikus has quit IRC
[16:39:21] *** Blackshark has joined #angularjs
[16:39:33] *** __alex_ has quit IRC
[16:39:38] <BahamutWC|Work> kuadrosx: that sounds awful
[16:39:49] *** dreambox has quit IRC
[16:39:49] *** boonkerz has quit IRC
[16:39:55] *** gob has joined #angularjs
[16:40:00] *** gob is now known as monir
[16:40:13] <zomg> merpnderp: yep that should be it.. and yeah I haven't used it myself so not really that familiar, just heard about it
[16:40:33] <merpnderp> zomg: I wonder how much access these apps get to mobile devices.
[16:40:42] *** johannes_ has quit IRC
[16:40:48] <BahamutWC|Work> merpnderp: I’ve actually used html5 appcache before
[16:40:51] <zomg> no special apis as far as I know
[16:41:28] *** joehannes has joined #angularjs
[16:41:34] <BahamutWC|Work> it’s kinda cool, but it pretty much should be paired with heavy use of IndexedDB/WebSQL
[16:41:38] <ClearsTheScreen> merpnderp: quite a bit, actually; at least on android there are JS API for things like the camera and sensors and whatnot. (not sure if they are 'special' APIs or not)
[16:41:53] *** icfantv has joined #angularjs
[16:41:53] *** edrocks has quit IRC
[16:41:56] *** DoubleAW has quit IRC
[16:41:59] *** arpu has joined #angularjs
[16:42:03] *** dylang has quit IRC
[16:42:06] *** MerlinDMC has joined #angularjs
[16:42:10] *** xuu has quit IRC
[16:42:12] *** __alex has joined #angularjs
[16:42:16] <joehannes> heya folks! how's everything going? Angular 1.3 is here, yay .. I'm just about to do an update of our project, wohooo, am in need of the all new one-time-binding ... hehe
[16:42:21] <BahamutWC|Work> zomg: that nomorejavascript page is pretty laughable…JS not an intuitive language? Ruby is even less so
[16:42:22] *** johannes_ has joined #angularjs
[16:42:24] *** DoubleAW has joined #angularjs
[16:42:47] <merpnderp> ClearsTheScreen: yeah, that would be nice and so simple to deploy
[16:42:50] *** yano has quit IRC
[16:42:57] <zomg> BahamutWC|Work: yeah it's completely subjective. Their example showcases it quite well... I've used Ruby and Rails, and I still don't get how :hide => stuff supposedly works =)
[16:43:12] *** dylang has joined #angularjs
[16:43:24] <merpnderp> ClearsTheScreen: yeah, and that seems like a problem finding a good lib to abstract that.
[16:43:30] <ClearsTheScreen> merpnderp: phonegap?
[16:43:37] <joehannes> I do indeed have a question apart from bragging out aloud: ANY BEST PRACTICES (I'm actually asking for the angular way under the hood here, omg, am I a convert now?) as to mixed/multiple datasources for 1 template/ng-repeat?
[16:43:39] <BahamutWC|Work> I’ve used Rails before too, but Ruby (and Rails) is anything but intuitive when you veer from tutorials
[16:43:39] *** zB0hs has joined #angularjs
[16:43:40] *** boonkerz has joined #angularjs
[16:43:45] <ClearsTheScreen> (not sure how "good" that is, but it's one of The Big Names[TM]. wasn't ionic another one?)
[16:43:50] <merpnderp> ClearsTheScreen: but isn't that a custom API that requires a iOS/Android app install
[16:44:04] *** TheAceOfHearts has joined #angularjs
[16:44:20] *** andydrew has quit IRC
[16:44:20] *** davejs has joined #angularjs
[16:44:21] <kuadrosx> we(ruby lovers) have coffescript anyway :)
[16:44:36] *** mtsr has quit IRC
[16:44:40] *** jiskiras has joined #angularjs
[16:45:01] <BahamutWC|Work> I like Ruby, but it has some huge flaws
[16:45:16] *** jiskiras has joined #angularjs
[16:45:18] <ClearsTheScreen> merpnderp: i thought you were asking about how to make hybrid apps? phonegap does just that, abstracting OS away so you can make your 'native web apps' cross-platform
[16:45:23] *** g3funk is now known as braidn
[16:45:29] *** ckboii89 has joined #angularjs
[16:45:30] <merpnderp> BahamutWC|Work: what did you use to access the DB? Directly call it or a lib?
[16:45:51] <BahamutWC|Work> merpnderp: IndexedDB? angular-indexeddb I think
[16:45:57] <merpnderp> ClearsTheScreen: no I was wanting what forecast.io is. Something you safe to your home screen from a browser and use it offline.
[16:46:22] *** shaisnir_ has quit IRC
[16:46:26] <merpnderp> BahamutWC|Work: I didn't think every phone/browser supported indexedDB and that it was a must to use a library to abstract the differences away.
[16:46:27] <ClearsTheScreen> ah. so just a website.
[16:46:48] <BahamutWC|Work> merpnderp: that’s correct, you need an abstraction layer to use WebSQL as a fallback
[16:46:50] *** CHC has joined #angularjs
[16:46:57] *** shaisnir has joined #angularjs
[16:47:05] *** junmin has joined #angularjs
[16:47:23] <merpnderp> BahamutWC|Work: okay, thanks
[16:47:25] <BahamutWC|Work> merpnderp: the reason I used it in the past was for supporting offline web apps
[16:47:36] <BahamutWC|Work> I tkae it you’re looking into a similar problem
[16:47:40] *** NC___ has joined #angularjs
[16:47:43] <BahamutWC|Work> take*
[16:47:49] <kuadrosx> BahamutWC|Work: with AtScript we will have a better javascript :P
[16:48:04] <merpnderp> BahamutWC|Work: well I'm thinking more of something that feels like a native app, but is really just a webapp. Users seem to like native apps better.
[16:48:21] <BahamutWC|Work> kuadrosx: yup, looking forward to it - started writing ES6 for real yesterday with angular 1.3, kinda interesting how you have to combine the two
[16:48:22] *** darrin has quit IRC
[16:48:23] <merpnderp> with angular it is pretty easy to just change the view to make a website feel like an app.
[16:48:27] *** ghams has joined #angularjs
[16:48:40] <ghams> hi all :)
[16:48:41] *** Xethron has quit IRC
[16:48:41] *** NC___ has quit IRC
[16:48:52] *** nicknema has quit IRC
[16:48:54] *** ggrzybek has quit IRC
[16:49:10] *** moritzs has quit IRC
[16:49:16] <ghams> what is directive in angular?
[16:49:19] *** akkare has joined #angularjs
[16:49:26] *** mrtoadsc has quit IRC
[16:49:29] <oniijin> ..
[16:49:37] <Senjai> ghams: Google is your friend
[16:49:38] *** Aswebb has quit IRC
[16:49:39] <Senjai> :P
[16:49:46] <jagga_> at the moment you do ng-app="app" right?
[16:49:50] <oniijin> #angularjs !=== google
[16:49:53] *** ckboii89 has quit IRC
[16:49:54] *** tech2 has joined #angularjs
[16:49:55] <jagga_> or you do ng-click="potato"
[16:49:59] <jagga_> these are all directives
[16:50:03] <akkare> anyone here have experience with unit testing around ui-router?
[16:50:32] <ghams> ng-app, ng-click, ng-model, etc. these are directives?
[16:50:44] *** xuu has joined #angularjs
[16:51:00] *** Xethron has joined #angularjs
[16:51:02] *** apertoire has joined #angularjs
[16:51:14] *** ajk27 has quit IRC
[16:51:31] *** xavia has joined #angularjs
[16:51:38] <sacho_> ghams, yes
[16:51:40] *** moritzs has joined #angularjs
[16:52:10] <ghams> shaco, ok thanks..
[16:53:01] <ghams> i have studied polymed and i found data binding...
[16:53:17] <ghams> is data binding is angular and polymer are the same?
[16:53:29] <ghams> is data binding in angular and polymer are the same?
[16:53:32] <BahamutWC|Work> no
[16:53:49] <ghams> why?
[16:53:53] <BahamutWC|Work> although angular 2.0 might use mutation observers
[16:54:01] <BahamutWC|Work> angular predates polymer by years
[16:54:01] *** discgo has quit IRC
[16:54:05] <ghams> oops..
[16:54:12] *** foofoobar has joined #angularjs
[16:54:13] <BahamutWC|Work> also polymer !== web components
[16:54:19] <ghams> i thought it's 1.3
[16:54:23] *** foofoobar has quit IRC
[16:54:24] <JohnFree> Hey guys. I'm saying scope.myCache = CacheService.getData() in my controller, but in this way I'm not doing a 2-Way-binding. So I have to use a variable in CacheService right?
[16:54:36] *** BahamutWC|Laptop has joined #angularjs
[16:54:42] <ghams> how about 2.0??
[16:55:00] <BahamutWC|Work> there was a mention that 2.0 will likely use web components
[16:55:10] <JohnFree> Or can I do that with watch?
[16:55:15] *** foofoobar has joined #angularjs
[16:55:46] *** michaelfavia has joined #angularjs
[16:56:01] *** Click66 has quit IRC
[16:56:23] *** MaxV has quit IRC
[16:56:53] *** xavia has left #angularjs
[16:57:19] *** borvoh has quit IRC
[16:57:52] *** walden is now known as walden|brb
[16:58:11] *** darrin has joined #angularjs
[16:59:41] *** juampy_food is now known as juampy
[17:00:21] *** ghams has quit IRC
[17:00:43] *** e0ipso is now known as e0ipso|away
[17:00:46] *** jillesme has quit IRC
[17:00:49] *** jheady1 has joined #angularjs
[17:01:03] *** svteoi has quit IRC
[17:01:18] *** gnrlbzik has joined #angularjs
[17:02:24] *** scottc5 has quit IRC
[17:02:27] *** TheAceOfHearts has quit IRC
[17:02:37] *** monir has quit IRC
[17:02:39] *** crackerzNcheez has joined #angularjs
[17:03:03] *** monir has joined #angularjs
[17:03:19] *** mennea has quit IRC
[17:03:27] *** xastey has joined #angularjs
[17:04:26] *** foofoobar has quit IRC
[17:04:54] *** e0ipso|away is now known as e0ipso
[17:05:39] *** gnrlbzik has quit IRC
[17:05:41] *** MaxV has joined #angularjs
[17:06:07] *** BahamutWC|Laptop has quit IRC
[17:06:16] *** cheef has joined #angularjs
[17:06:43] <cheef> hey guys, ive got an angular app that heavily uses forms, the forms populate a model thats shared betwwen all the forms
[17:07:08] <cheef> the user can trigger a form submit, but I also want to trigger a submit when certain fields are entered
[17:07:09] *** DANtheBEASTman has quit IRC
[17:07:15] <cheef> whats the best way to do this?
[17:07:25] <cheef> i dont realy want to expose the api to the form controller
[17:07:28] *** jdowdle has left #angularjs
[17:07:37] *** monir has quit IRC
[17:08:05] *** hilefoks has quit IRC
[17:08:38] <cheef> there only way i can think of doing it is creating a watch for the form fields, and emit an event when they are filled in and valid
[17:08:44] *** schimmi has quit IRC
[17:08:51] *** schimmi has joined #angularjs
[17:08:55] *** gnrlbzik has joined #angularjs
[17:09:01] *** khayes has joined #angularjs
[17:09:27] *** Alina-malina has quit IRC
[17:09:32] *** anivemin has joined #angularjs
[17:09:42] *** moritzs has quit IRC
[17:09:52] *** DANtheBEASTman has joined #angularjs
[17:10:37] *** khayes has quit IRC
[17:10:38] *** livingstn has quit IRC
[17:11:31] *** dylang has quit IRC
[17:11:37] *** MaxV has quit IRC
[17:11:54] *** livingstn has joined #angularjs
[17:12:03] *** _ritchie_ has joined #angularjs
[17:12:48] *** walden|brb is now known as walden
[17:12:54] *** firelinks has joined #angularjs
[17:13:13] *** tech2 has quit IRC
[17:13:21] *** m8 has quit IRC
[17:13:25] *** MaxV has joined #angularjs
[17:14:10] *** anivemin has quit IRC
[17:14:18] *** grantfunke_ has quit IRC
[17:14:25] *** m8 has joined #angularjs
[17:14:27] *** cacts|wtf has joined #angularjs
[17:14:32] *** m8 has quit IRC
[17:14:32] *** m8 has joined #angularjs
[17:14:44] *** monir has joined #angularjs
[17:15:11] *** yano has joined #angularjs
[17:15:55] *** molikas has joined #angularjs
[17:16:05] *** dylang has joined #angularjs
[17:16:45] *** mruzekw has joined #angularjs
[17:17:20] <oste> i have run into a very bad situation with Angular… i am using $watch(‘myModel’, function() { //bad things happen here
[17:17:22] *** molik has quit IRC
[17:17:49] <oste> bad things are happening b/c when the model changes i need to get the size of each element in a ng-repeat using myModel
[17:17:57] *** MaxV has quit IRC
[17:17:58] *** sirkitree has quit IRC
[17:17:58] *** e0ipso has quit IRC
[17:18:04] *** StryKaizer has quit IRC
[17:18:09] <oste> problem is - the dom is not ready in time for the sizes to be calculated properly
[17:18:17] <oste> as far as i can tell - there is no good solution for this
[17:18:40] <oste> angular does not provide “domLoaded” events
[17:18:52] <mruzekw> Are you watching in a controller or a directive link function?
[17:18:58] *** calmbird has quit IRC
[17:19:25] *** sirkitree has joined #angularjs
[17:19:30] *** lianimator1 has joined #angularjs
[17:19:33] *** KurtB has joined #angularjs
[17:19:54] *** mfunkie has joined #angularjs
[17:20:15] <oste> directive link
[17:20:20] *** jillesme_ has joined #angularjs
[17:20:31] *** sonofdirt has joined #angularjs
[17:20:47] <mruzekw> Do you have a gist / fiddle that illustrates the essence of the problem?
[17:21:02] *** azizur has quit IRC
[17:21:07] <oste> not yet - i can try to put one together tho
[17:21:21] *** e0ipso has joined #angularjs
[17:21:36] <oste> spent about 4 or 5 hours on this one - pretty sure its a limitation
[17:21:38] *** webthingee has joined #angularjs
[17:22:19] <oste> tho only thing that works is $timeout(function(){}, 50);
[17:22:25] <oste> and who knows if 50 is always ok...
[17:22:52] <BahamutWC|Work> nothing like getting an email in the morning saying that work will buy dinner for anyone who stays in the office late this month...
[17:23:07] <Jr3Says> so theoretically if I want to upgrade my ang version from 1.2.x to 1.3.x I just need to run bower update angular?
[17:23:11] <mruzekw> Rad, BahamutWC|Work
[17:23:17] <Jr3Says> except that didn't upgrade it
[17:23:18] *** lianimator has quit IRC
[17:23:23] *** Xethron has quit IRC
[17:23:23] <maraneta> is there a way to make an expression print out 'bar' if and only if 'foo' is none?
[17:23:29] <BahamutWC|Work> mruzekw: not quite…it’s the sign crunch mode is upon us :(
[17:23:30] *** bbankes has joined #angularjs
[17:23:35] <mruzekw> Jr3Says, there may be breaking changes
[17:23:38] *** elrabin_ has joined #angularjs
[17:23:49] <mruzekw> BahamutWC|Work, ah indeed
[17:23:52] *** Ch4rAss has quit IRC
[17:24:11] *** jackdpeterson has joined #angularjs
[17:24:32] *** rho has quit IRC
[17:24:33] <mruzekw> oste, I think you could even omit `50` to put the operation at the end of the event loop
[17:24:40] *** favetelinguis has joined #angularjs
[17:24:42] <mruzekw> But that doesn't address your problem
[17:25:29] *** kuadrosx has quit IRC
[17:25:31] *** syzygy__ has joined #angularjs
[17:25:39] *** shilon has quit IRC
[17:25:42] <oste> http://stackoverflow.com/a/21361421/429909
[17:25:46] *** Abhijit has quit IRC
[17:25:47] *** kuadrosx has joined #angularjs
[17:25:51] <oste> that kind of shows what is going on
[17:26:02] *** phuh has joined #angularjs
[17:26:06] <oste> unfortunately i got strange results using that - and that seems really dirty anway
[17:26:30] *** marshall_ has joined #angularjs
[17:26:52] *** mchammer has quit IRC
[17:27:07] <syzygy__> I’m looking for recommendations for a simple way to provide a fake backend, simply returning javascript objects to my app while it’s in development. Any reccs?
[17:27:17] *** elrabin has quit IRC
[17:27:23] <jgravois> because of 2 way binding, wouldn't this code in the view ADD adj_debt2asset to the loan.grader object? -- https://gist.github.com/anonymous/ea91fbf1754073eed37b
[17:27:24] *** MaxV has joined #angularjs
[17:27:28] <syzygy__> is ngMocke2e simply for testing?
[17:27:31] *** arabot has joined #angularjs
[17:27:42] <BahamutWC|Work> syzygy__: I’ve used it for backend-less development
[17:27:46] <Foxandxss> syzygy__: I want to write about that
[17:27:50] <Foxandxss> but for now...
[17:27:53] *** toreilly has joined #angularjs
[17:28:01] <Foxandxss> plunker dead
[17:28:02] <Foxandxss> lol
[17:28:06] *** Xethron has joined #angularjs
[17:28:33] <syzygy__> bahamutWC, did you simple include ngMocke2e in your app and on app.run return objects for the various requests?
[17:28:33] *** Raging_Hog has quit IRC
[17:28:37] *** niklasmodess has quit IRC
[17:28:39] *** thedodd has joined #angularjs
[17:28:41] <mruzekw> syzygy__: Simulate asynchrony via promises / $q
[17:28:43] <syzygy__> simply*
[17:28:50] <Foxandxss> syzygy__: wait for plunker to go live and I show you a nice template
[17:29:00] *** jstroem has quit IRC
[17:29:06] <mruzekw> oste, looking at SO post now
[17:29:33] *** jstroem has joined #angularjs
[17:29:44] <syzygy__> I’ve had it setup w/ $httpbackend, but when I push a build or serve the distribution w/ GULP I’m getting that annoying ‘Error: Unexpected request: GET’
[17:29:46] *** snapwich has joined #angularjs
[17:29:47] <oniijin> Foxandxss +1 on using mock backends for dev
[17:30:01] *** Efrem is now known as Efrem-Away
[17:30:03] <oniijin> for a post topic
[17:30:07] <syzygy__> on html tempaltes, even though i’ve expressed passThrough on those dirs.
[17:30:11] *** rho has joined #angularjs
[17:30:12] *** tech2 has joined #angularjs
[17:30:30] <Foxandxss> it is more for demos tbh
[17:30:40] <Foxandxss> you can always build a simple express backend
[17:30:41] <jcool> how can we load a default route in ui router?
[17:30:42] <Foxandxss> to serve stuff
[17:30:46] <Foxandxss> then swap it on prod
[17:30:46] <jcool> how can we load a default route in ui router?
[17:30:57] <Foxandxss> jcool: heard first time
[17:30:59] <syzygy__> yeah it’s for demo’s, waiting for the real API to be comepleted.
[17:31:03] <jcool> sorry. pressed enter twice.
[17:31:13] *** crackerzNcheez has quit IRC
[17:31:21] <jcool> Foxandxss, when #/ load a page. I meant that.
[17:31:30] <jcool> In otherwise I have given 404 page.
[17:31:39] <Foxandxss> jcool: check the wiki
[17:31:40] *** dreambox has joined #angularjs
[17:31:44] *** krawek has joined #angularjs
[17:31:44] <jgravois> jcool isn't it $urlRouterProvider.otherwise('/');
[17:31:46] <icfantv> does anyone know if batarang is supposed to live update the scopes it displays?
[17:31:48] <Foxandxss> there is an explanation of how to resolve that
[17:31:51] *** edy has quit IRC
[17:31:54] *** slopjong has quit IRC
[17:31:55] <oste> mruzekw - yeah i think that is really the only way to do something like this :(
[17:31:59] *** vassagus has quit IRC
[17:32:04] <jcool> jgravois, That is if page not found right?
[17:32:04] *** ozh has joined #angularjs
[17:32:04] <oste> or use a timeout
[17:32:11] <jcool> Foxandxss, sure will see that
[17:32:13] <icfantv> e.g., if i change the model via UI interaction, would the model displayed in the scope in batarang update
[17:32:28] *** jennmoneydollars has left #angularjs
[17:32:34] <jgravois> jcool or if the route doesn't exist
[17:32:44] *** cheef has quit IRC
[17:32:45] <Foxandxss> jgravois: leave him read the doc
[17:32:45] <mruzekw> oste, so the error your getting is the the DOM node doesnt exist?
[17:32:51] <jcool> jgravois, yep.
[17:32:52] <jcool> Foxandxss, ok
[17:32:53] *** gnrlbzik has quit IRC
[17:33:06] *** vlitzer has joined #angularjs
[17:33:15] <oste> mruzekw it does exist but does not have size yet
[17:33:24] *** jgravois is now known as jaydubya
[17:33:25] *** gurke_ has joined #angularjs
[17:33:32] <mruzekw> oste, Ah okay
[17:33:45] *** jeffw198____ has quit IRC
[17:33:47] <jaydubya> my nick reverted to the old one after a reboot, hmmm
[17:33:53] *** junmin has quit IRC
[17:33:55] *** toreilly is now known as TommyO
[17:34:01] *** TommyO has quit IRC
[17:34:04] *** jheady1 has left #angularjs
[17:34:12] *** TommyO has joined #angularjs
[17:34:16] *** Marble68 has joined #angularjs
[17:34:29] *** azizur has joined #angularjs
[17:34:35] *** HelperW has quit IRC
[17:34:39] *** anivemin has joined #angularjs
[17:34:43] *** moritzs has joined #angularjs
[17:34:47] <icfantv> anyone? i've verified that my model is indeed getting changed. i just would have expected batarang to update appropriately
[17:34:49] *** Miphe has quit IRC
[17:34:58] *** dan2k3k4 has quit IRC
[17:35:05] <mruzekw> oste, you're using something akin to `scope.$watch(function(){return $(content).height(); }, function(newValue, oldValue) {`?
[17:35:16] *** joehannes has quit IRC
[17:35:16] *** darrin has quit IRC
[17:35:19] *** MANCHUCK has joined #angularjs
[17:35:21] *** cacts has quit IRC
[17:35:28] *** Xethron has quit IRC
[17:35:35] <mruzekw> icfantv, I'm not sure if the working version of batarang is out yet
[17:35:39] *** jeffw198____ has joined #angularjs
[17:35:48] <mruzekw> icfantv, look at ng-inspector
[17:35:49] *** Xethron has joined #angularjs
[17:36:03] *** crunch-choco has quit IRC
[17:36:03] *** junmin has joined #angularjs
[17:36:19] *** darrin has joined #angularjs
[17:36:23] <icfantv> ok, thanks. i've got both installed, but didn't try w/ ng-inspector. good call
[17:36:36] *** juampy has quit IRC
[17:36:42] *** soj has quit IRC
[17:36:54] *** Efrem-Away is now known as Efrem
[17:37:01] *** zwacky has quit IRC
[17:37:14] <mruzekw> oste, see if anything in here helps https://groups.google.com/forum/#!topic/angular/fBYQUAomJAU
[17:37:38] <mruzekw> Specifically look at Efflam Daniel's post: element.bind('DOMNodeInserted', function(event){
[17:38:00] *** webthingee has quit IRC
[17:38:26] *** red_horned_rihno has joined #angularjs
[17:38:44] *** juampy has joined #angularjs
[17:39:06] *** monir has quit IRC
[17:39:06] *** yozilla_ has joined #angularjs
[17:39:06] *** matthoiland has joined #angularjs
[17:39:08] <mruzekw> ttfn
[17:39:10] *** mruzekw has quit IRC
[17:39:11] *** anivemin has quit IRC
[17:39:18] *** guilbep has quit IRC
[17:40:07] <icfantv> mruzekw: ng-inspector worked. thanks.
[17:40:27] *** jacuqesdancona has quit IRC
[17:40:38] <jaydubya> I console.logged a variable and on the next line passed it to the factory. I returned that same variable from the factory and console.logged it and the values that are defined in the view are not being passed to the factory. The lines are literally subsequent; there is nothing in between them. https://gist.github.com/anonymous/8c2467ba794827c71e62
[17:41:53] *** fatshark has joined #angularjs
[17:42:35] *** yozilla has quit IRC
[17:42:42] *** _tpavel has quit IRC
[17:42:52] *** blomman has quit IRC
[17:43:13] *** Caroga_afk is now known as Caroga
[17:43:27] *** yiati has joined #angularjs
[17:43:40] *** blomman has joined #angularjs
[17:44:08] *** Caroga is now known as Caroga_afk
[17:44:40] *** yozilla_ has quit IRC
[17:45:21] *** junmin_ has joined #angularjs
[17:45:44] *** jillesme_ has quit IRC
[17:46:10] *** Yahkob has joined #angularjs
[17:46:17] *** ckboii89 has joined #angularjs
[17:46:25] *** ericrav has joined #angularjs
[17:46:44] *** mbenadda_ has quit IRC
[17:46:49] *** brunoB has joined #angularjs
[17:46:59] *** Rahul_Roy_ has joined #angularjs
[17:47:11] *** mbenadda_ has joined #angularjs
[17:47:22] *** junmin has quit IRC
[17:47:37] *** Alina-malina has joined #angularjs
[17:47:37] *** Alina-malina has joined #angularjs
[17:47:54] *** MaxV has quit IRC
[17:48:09] *** mzabriskie has joined #angularjs
[17:48:20] *** chrisshattuck has joined #angularjs
[17:48:45] *** zzing has joined #angularjs
[17:49:06] <Foxandxss> jaydubya: what does that function on the factory?
[17:49:14] *** ckboii89_ has joined #angularjs
[17:49:14] *** anth0ny has joined #angularjs
[17:49:16] *** zwacky has joined #angularjs
[17:49:18] *** kewark has joined #angularjs
[17:49:32] *** mfunkie has quit IRC
[17:49:32] *** kewark has quit IRC
[17:49:32] *** kewark has joined #angularjs
[17:49:33] *** elrabin_ has quit IRC
[17:49:38] *** krawek has quit IRC
[17:49:39] *** kewark is now known as krawek
[17:49:39] <jaydubya> a buttload of comparison and then returns an object of grade
[17:49:55] *** gnrlbzik has joined #angularjs
[17:49:56] <Foxandxss> that is what you say, but what the code says?
[17:50:09] *** elrabin has joined #angularjs
[17:50:11] *** fbenoit has quit IRC
[17:50:15] *** pipoo has joined #angularjs
[17:50:17] *** guilbep has joined #angularjs
[17:50:41] <jsheely> Anyone use https://github.com/danialfarid/angular-file-upload ? Having a problem with the ngFileSelect function not firing with Angular 1.3
[17:50:47] <jaydubya> fox, it works here in this plunker but in the app, some of the view defined values passed in are undefined so it always comes back as an 'F' -- http://plnkr.co/edit/CDkpLwkCD6CGnu13jE1O?p=preview
[17:50:49] *** Yahkob has quit IRC
[17:50:54] *** ckboii89 has quit IRC
[17:51:03] <jaydubya> Foxandxss: ^ ,,, forget the tab
[17:51:40] *** michaelfavia has quit IRC
[17:51:44] *** BahamutWC|Laptop has joined #angularjs
[17:52:15] *** m_rc has joined #angularjs
[17:52:26] *** michaelfavia has joined #angularjs
[17:52:44] *** red_horned_rihno has quit IRC
[17:53:01] *** red_horned_rihno has joined #angularjs
[17:53:05] *** moritzs has quit IRC
[17:53:24] <ckboii89_> if my db isn't updating with my post request, could it be because its doing it too fast and no promise is returned?
[17:53:41] *** crunch-choco has joined #angularjs
[17:53:42] *** rkpaul has joined #angularjs
[17:53:47] <Foxandxss> no
[17:53:55] <Foxandxss> jaydubya: well, the interesting part is the app then
[17:54:05] *** crunch-choco is now known as Guest7884
[17:54:10] *** VeeWee has quit IRC
[17:54:15] *** Evanion has quit IRC
[17:54:20] *** travm has quit IRC
[17:54:38] <jaydubya> Foxandxss: not funny if that was a joke
[17:54:40] *** pipoo has quit IRC
[17:54:50] *** Alina-malina has quit IRC
[17:54:52] <Foxandxss> it is not
[17:54:58] <Foxandxss> if the plunker works and your app doesn't
[17:55:01] <Foxandxss> I don't want to see the plunker
[17:55:09] *** ericrav has quit IRC
[17:55:30] *** pipoo has joined #angularjs
[17:56:05] *** nfroidure has quit IRC
[17:56:32] <jaydubya> Foxandxss: I understand but you asked what the function was supposed to do and that was the easiest explanation ... sorry
[17:56:43] <Foxandxss> yeah, that is true
[17:56:49] *** marshall_ has quit IRC
[17:57:20] *** hecatonicosachor has joined #angularjs
[17:57:53] *** azizur has quit IRC
[17:58:01] *** xavia has joined #angularjs
[17:58:01] *** loverajoel has quit IRC
[17:58:14] *** robdubya has joined #angularjs
[17:58:16] *** phuh has quit IRC
[17:58:37] *** _ritchie_ has quit IRC
[17:58:44] *** phuh has joined #angularjs
[17:59:35] <anger_> Any experiences on ng-flow?
[17:59:50] <anger_> Or other libraries meant for uploading images
[18:00:10] *** patric100e99 has joined #angularjs
[18:00:18] *** hikumealan_ has joined #angularjs
[18:00:39] *** sacho_ has quit IRC
[18:00:43] *** jheady has joined #angularjs
[18:00:54] *** gnrlbzik has quit IRC
[18:01:15] <jaydubya> Foxandxss: this is the console log of the variable $scope.loan.grader http://laravel.io/bin/PXrw5
[18:01:23] *** rosieres has quit IRC
[18:01:42] *** pipoo has quit IRC
[18:02:09] *** hikumealan_ has quit IRC
[18:02:13] <jaydubya> Foxandxss: and on the very next line, I pass it to the factory https://gist.github.com/anonymous/5426776120e367655c2f
[18:02:20] *** blomman has quit IRC
[18:02:32] <Foxandxss> and what is the result after that?
[18:02:47] *** spatialbrew has quit IRC
[18:03:09] *** hikumealan_ has joined #angularjs
[18:03:12] <icfantv> if i have ng-click="doSomething(this)" - then 'this' is the scope of the element passed in to the doSomething(…) function. is there a way to retrieve the DOM element from this scope object?
[18:03:19] *** laurensclaessen has quit IRC
[18:03:28] *** travm has joined #angularjs
[18:03:40] <jaydubya> fox, so I just return it from the factory and log it out again http://laravel.io/bin/42KnN
[18:04:01] *** monir has joined #angularjs
[18:04:04] <jaydubya> Foxandxss: the calculated values are there
[18:04:25] *** gunn has quit IRC
[18:04:30] *** jheady2 has joined #angularjs
[18:04:43] <Foxandxss> weird, function is totally assync
[18:04:46] <jaydubya> Foxandxss: but when I try to compare with them in the factory and use the debugger, the calculated variables are "undefined"
[18:04:48] <Foxandxss> sync*
[18:04:49] *** joshontheweb has joined #angularjs
[18:04:51] *** patric100e99 has quit IRC
[18:05:05] *** grantfunke_ has joined #angularjs
[18:05:18] *** TheAceOfHearts has joined #angularjs
[18:05:23] *** tkdaj has joined #angularjs
[18:05:39] *** monir has quit IRC
[18:05:45] <icfantv> can i just pass in $event or something?
[18:05:48] *** azizur has joined #angularjs
[18:06:06] *** monir has joined #angularjs
[18:06:12] *** _TAS has quit IRC
[18:06:13] *** naneau has quit IRC
[18:06:15] <jaydubya> Foxandxss: so, of course, since the undefineds don't compare, it alway's returns an "F"
[18:06:21] *** xavia has quit IRC
[18:06:23] *** richiebkr has joined #angularjs
[18:06:34] <tkdaj> I am pretty new to directives, but I am writing my own table pagination directive and I am wonder if there is a way to let the user put whatever they want in the table and somehow read how many rows there are using the directive? For example, I want to use the same directive whether they fill the table manually or with an ng-repeat. Anyone know how to accomplish this?
[18:06:37] *** _TAS has joined #angularjs
[18:06:49] *** stirlingw has joined #angularjs
[18:06:51] <jaydubya> Foxandxss: this is the factory (but it is just like the plunker) https://gist.github.com/anonymous/af0579e4076111089984
[18:07:03] <Foxandxss> plunker one is older
[18:07:10] *** ahmetkapikiran has joined #angularjs
[18:07:25] *** pipoo has joined #angularjs
[18:07:27] <Foxandxss> you say that after calling that, and saving it result, the result is not new?
[18:07:49] <stirlingw> Does anyone have a write up or a review of last years ng-conf? I'm trying to convince my CTO to fork up some cash to let my team go next year.
[18:07:56] *** brunoB has quit IRC
[18:08:42] *** jheady has quit IRC
[18:09:10] <tkdaj> anyone?
[18:09:34] <mzabriskie> stirlingw my mate Ian Smith blogged about his experience here http://fastandfluid.blogspot.com/
[18:09:44] *** wafflej0ck has quit IRC
[18:10:38] *** Miphe has joined #angularjs
[18:10:41] <stirlingw> mzabriskie: Gracias
[18:11:06] *** mityaz has quit IRC
[18:11:10] *** monir has quit IRC
[18:11:10] *** wafflej0ck has joined #angularjs
[18:11:14] <ClearsTheScreen> tkdaj: presumably your data comes in list form, so i'd say myAwesomeTabularData.length
[18:11:28] *** tech2 has quit IRC
[18:11:44] <tkdaj> you mean if someone is using an ng-repeat?
[18:11:52] <tkdaj> then just use the length of whatever they are repeating on?
[18:12:06] *** Leon has quit IRC
[18:12:50] <ClearsTheScreen> mzabriskie: "... and different takes on the best way forward with Angular and other helper libraries." -- hehe. angularjs, a helper library.
[18:13:14] <ClearsTheScreen> tkdaj: you said you have a pager directive. that directive gets data from somewhere, no?
[18:13:25] *** lw has joined #angularjs
[18:13:30] *** travm has quit IRC
[18:13:40] <tkdaj> It doesn't do anything yet
[18:13:50] *** sacho_ has joined #angularjs
[18:14:04] <tkdaj> I am trying to figure out how to get the data to it whether the user adds the data to the table using an ng-repeat or just manually typing the table out
[18:14:08] *** NormySan has joined #angularjs
[18:14:22] <tkdaj> I would like to be able to have the user just type:
[18:14:22] <tkdaj> <table paginate-table <--added necessary properties for pagination here--> >
[18:14:22] <tkdaj> <tr><th>first header</th></tr> ... <tr><td>table data here</td></tr>....
[18:14:29] <ClearsTheScreen> i assumed you'd give the pager either the data to page on, or things like page size & current page.
[18:14:32] *** siddart has joined #angularjs
[18:14:37] <ClearsTheScreen> and presto, there you go.
[18:14:46] *** m8 has quit IRC
[18:15:14] *** cornerma1 has joined #angularjs
[18:15:16] <ClearsTheScreen> oh
[18:15:21] *** Miphe has quit IRC
[18:15:32] <ClearsTheScreen> the "manual" part i mapped to still "as end user of the app", not "going over the code". that could be more challenging, re: having to analyze the HTML to check how many rows there are.
[18:15:32] *** m8 has joined #angularjs
[18:15:50] <tkdaj> Ah okay
[18:15:53] <tkdaj> that's what I was wondering
[18:16:09] <tkdaj> can the directive do that? Look at the html in its scope?
[18:16:15] *** dan2k3k4 has joined #angularjs
[18:16:15] *** Soothsayer has quit IRC
[18:16:34] *** _ritchie_ has joined #angularjs
[18:17:08] *** hecatonicosachor has quit IRC
[18:17:10] *** frankblizzar has quit IRC
[18:17:22] *** diffalot has quit IRC
[18:17:33] *** loverajoel has joined #angularjs
[18:17:35] <ClearsTheScreen> sure. you get the bound-to element and can go traversing the DOM
[18:17:37] *** poolside has joined #angularjs
[18:17:38] *** NormySan^ has joined #angularjs
[18:17:52] <tkdaj> do you know how to do that? or do you have a link explaining it?
[18:18:23] *** cornerman has quit IRC
[18:18:32] *** cornerma1 is now known as cornerman
[18:18:38] *** pipoo has quit IRC
[18:18:47] <TommyO> We use $resource to talk to our api, but we want to add custom methods to the same Factory that talk to local storage instead. is that possible?
[18:18:50] *** bayousoft has quit IRC
[18:19:21] *** bayousoft has joined #angularjs
[18:19:32] <TommyO> in other words: 'add' goes to the remote api via $resource, where 'get' looks locally using a custom function
[18:19:41] *** vlitzer_ has joined #angularjs
[18:19:42] *** diffalot has joined #angularjs
[18:20:33] <ClearsTheScreen> tkdaj: have nothing at hand, would have to google as well. might be worth looking at what methods jqlite offers that could make your life easier than 'raw' html. though i would strongly suggest any user of a pagniation directive to separate data from markup and generate the table instead of manually writing it (unless there are so many 'edge cases' that it becomes unfeasible)
[18:20:47] *** nicholes has joined #angularjs
[18:20:50] *** NormySan has quit IRC
[18:21:04] <ClearsTheScreen> TommyO: most certainly; easiest way: wrap $resource into myAwesomeResource, that passes add() calls directly on to $resource, get() calls check local first.
[18:21:05] <caitp> so
[18:21:07] <caitp> what's up angular
[18:21:11] <caitp> how you feelin
[18:21:33] *** dmra has quit IRC
[18:21:51] *** basiclaser_ has quit IRC
[18:21:56] <jsheely> Damn
[18:22:10] <tkdaj> yeah, basically I am rewriting a web application with a bunch of paginated tables and they all seem to have some unique property that seperates them
[18:22:16] <jsheely> Just got bit by the classic isolated scope =|
[18:22:18] *** m8 has quit IRC
[18:22:24] <tkdaj> which is why I wanted to make this directive as universal as possible
[18:23:10] <ClearsTheScreen> tkdaj: well if there's "just one property" that could potentially be handled; but i trust your judgement there. but, yeah, "traverse DOM in javascript" or so ...
[18:23:11] *** vlitzer has quit IRC
[18:23:47] *** leena has joined #angularjs
[18:24:23] <leena> hey is any one knows why angularjs html5 routing is not working properly
[18:24:31] <tkdaj> I could be off since I am new to all this, but I don't know how else to do it
[18:24:35] *** greengriminal has joined #angularjs
[18:24:38] *** intellix has quit IRC
[18:24:40] <tkdaj> I will check it out. Thanks for your help :)
[18:24:54] <ctanga> hey caitp
[18:25:03] <caitp> hey
[18:25:33] <ClearsTheScreen> yw, tkdaj :) good luck!
[18:25:36] <leena> can any body help me out with html5 routing in angularjs
[18:26:11] *** SoulBlade has joined #angularjs
[18:26:49] *** Manaus has joined #angularjs
[18:27:05] <sacho_> ugh
[18:27:30] <sacho_> angular prints thrown exceptions in then handlers. :(
[18:27:41] *** cthrax has quit IRC
[18:27:53] <Manaus> hi, I'm wondering if I can put a ng-model within a ng-template, no result for the moment...
[18:29:02] *** nemothekid has joined #angularjs
[18:29:07] *** whunt has joined #angularjs
[18:29:10] <sacho_> sure
[18:29:20] *** marshall_ has joined #angularjs
[18:29:24] *** FCH has joined #angularjs
[18:30:08] *** jonathanpglick has joined #angularjs
[18:30:51] *** dan2k3k4 has quit IRC
[18:30:55] *** SoulBlade has quit IRC
[18:31:01] *** dan2k3k4 has joined #angularjs
[18:31:15] *** tangorri has quit IRC
[18:31:42] *** woah has joined #angularjs
[18:31:42] *** kas84 has left #angularjs
[18:31:46] *** jheady2 has left #angularjs
[18:31:54] *** ClarusCogitatio has joined #angularjs
[18:32:07] <Foxandxss> caitp: https://github.com/angular/angular.js/blob/86d55c1ded21a5be6091344493d70c6dc4194e43/test/ng/compileSpec.js#L2873
[18:32:14] <Foxandxss> you know what "template watch group" there mean?
[18:32:18] <Foxandxss> I can only count 4 + 2
[18:32:22] *** snurfery has joined #angularjs
[18:32:32] <Foxandxss> even I extracted those test outside and I get 6 (not 7(
[18:32:49] *** carpediembaby_ has quit IRC
[18:32:54] *** cthrax has joined #angularjs
[18:33:10] *** syzygy__ has quit IRC
[18:33:47] <Foxandxss> I believe that file has something giving one watch extra which is not in my version
[18:34:05] *** mkc has joined #angularjs
[18:34:27] <jaydubya> Foxandxss: I am trying to make my plunker as broken as the app
[18:34:37] *** optikalmouse has joined #angularjs
[18:34:44] <Foxandxss> talking about plunker...
[18:34:58] <caitp> heck if I know fox
[18:35:05] <caitp> lucas' tests are hard to understand
[18:35:07] <Foxandxss> is still there the guy who wanted the dummy backend?
[18:35:19] <Foxandxss> caitp: noticed :P
[18:35:35] <Foxandxss> I am creating an article with facts, but damn, need good facts
[18:35:55] <Foxandxss> also tried to create a watch counter but with bindonce, watch goes away in a later point, grr
[18:36:08] <Foxandxss> here it comes, manual way
[18:36:12] *** livingstn has quit IRC
[18:36:34] *** gregc2 is now known as ioudas
[18:37:09] <sacho_> weird, the ci build apparently runs the tests fine
[18:37:18] <caitp> good facts are important
[18:37:28] *** abram_away is now known as abram
[18:37:34] *** patrick99e99 has joined #angularjs
[18:37:36] *** travm has joined #angularjs
[18:37:37] *** dan2k3k4 has quit IRC
[18:38:05] *** dan2k3k4 has joined #angularjs
[18:38:34] *** mkc has quit IRC
[18:38:46] *** livingstn has joined #angularjs
[18:38:48] *** Asiajey has quit IRC
[18:38:53] *** fedenunez1 has joined #angularjs
[18:39:35] *** darrin has quit IRC
[18:40:05] *** Asiajey has joined #angularjs
[18:40:05] *** Manaus has quit IRC
[18:40:06] *** Asiajey has quit IRC
[18:40:06] *** Asiajey has joined #angularjs
[18:40:24] *** afuggini has quit IRC
[18:40:51] *** charuru has joined #angularjs
[18:41:03] *** darrin has joined #angularjs
[18:41:13] *** xavia has joined #angularjs
[18:41:18] *** fedenunez has quit IRC
[18:41:19] *** travm is now known as travm-afk
[18:41:54] *** c00ljs has quit IRC
[18:42:18] *** travm-afk has quit IRC
[18:42:22] *** edy has joined #angularjs
[18:43:28] *** RobinBAwesome has joined #angularjs
[18:44:01] <jaydubya> Foxandxss: ok, the plunker http://plnkr.co/edit/CDkpLwkCD6CGnu13jE1O?p=preview now is acting like my app. According to the if clause, this should be an 'A' because 43 is less than 50 AND 322 is greater than 150
[18:44:18] <Foxandxss> right, let me see
[18:44:18] *** lw has quit IRC
[18:44:27] <jaydubya> ^major simplified!!!!
[18:44:56] *** nfroidure has joined #angularjs
[18:44:59] *** mennea has joined #angularjs
[18:45:12] <jsheely> Anyone know how to check if a directive is given a function as a scope param?
[18:45:24] <junmin_> http://jsfiddle.net/pmk17qmq/7/ i cannot figure out how to implement this chained select using ng-template and recursivity ( for cases of unknown select level )? anyone can help? or any recommendation to do it?
[18:45:27] <ClearsTheScreen> Major Simplified in order to present you General Idea.
[18:45:35] *** patrick99e99 has quit IRC
[18:45:36] <jsheely> for instance scope: {ngClick:'&'}
[18:45:48] *** VictorBjelkholm has quit IRC
[18:45:53] <Foxandxss> jaydubya: you really need to put those plunkers a little bit smaller
[18:45:59] <jsheely> Anyway to verify that $scope.ngClick() actually contains a function?
[18:45:59] <Foxandxss> you can't pretend that I know where to look
[18:46:01] <Foxandxss> and what is wrong
[18:46:45] <wafflej0ck> jsheely: https://docs.angularjs.org/api/ng/function/angular.isFunction maybe
[18:47:30] <jsheely> wafflej0ck Problem is that '&' puts a wrapper function around it. So that is always true
[18:47:55] <jsheely> Not sure how to get at the original function to validate that it is infact a function
[18:48:16] *** aarellano has quit IRC
[18:48:17] *** blackjid has quit IRC
[18:48:24] <wafflej0ck> junmin_: http://stackoverflow.com/questions/14430655/recursion-in-angular-directives <-- this may help
[18:48:38] *** tsalb has joined #angularjs
[18:48:52] *** aarellano has joined #angularjs
[18:49:02] *** jumpman81 has joined #angularjs
[18:49:05] *** dan2k3k4 has quit IRC
[18:49:08] *** jumpman81 is now known as jumpman
[18:49:16] *** nfroidure has quit IRC
[18:49:22] *** blackjid has joined #angularjs
[18:49:32] *** jumpman has quit IRC
[18:49:32] *** jumpman has joined #angularjs
[18:49:32] <jaydubya> fox, sorry
[18:49:36] <jaydubya> Foxandxss: sorry
[18:50:00] *** narutimateum has joined #angularjs
[18:50:09] <junmin_> wafflej0ck: ah.. you mean it is prefered using directive?
[18:50:17] *** marshall_ has quit IRC
[18:50:23] *** agrajag42 has joined #angularjs
[18:50:31] <Foxandxss> jaydubya: adj_debt2asset is commented out
[18:51:13] <Foxandxss> sorry, need to go for a while
[18:51:47] <jaydubya> Foxandxss: that's the issue, when it is IN the controller, the thing works, but when I define that variable in the view, it's a 'F'
[18:51:48] *** TyrfingMjolnir has quit IRC
[18:51:57] <jaydubya> Foxandxss: OK, thanks for looking
[18:52:30] <wafflej0ck> junmin_: depends on the use case really wrapping things in a directive make it easier to re-use but this isn't always paramount
[18:52:49] <wafflej0ck> junmin_: thought you were looking for how to wrap it up in a recursive directive though
[18:52:58] <wafflej0ck> jsheely: yup see what you're sayin
[18:53:05] <jumpman> Hey guys, quick question - when most modern APIs handle a PUT, what completeness of data do they accept? ie PUT /users/, { someprop: changed } OR is it practice to PUT the whole User object?
[18:53:41] <bd-> personally, i use PUT for whole objects and PATCH for partial data
[18:53:48] *** lite_ has joined #angularjs
[18:53:49] <jaydubya> jumpman: i think PATCH is the first case and PUT is the latter
[18:53:54] *** optikalmouse has quit IRC
[18:54:14] *** nairys has joined #angularjs
[18:54:19] <jumpman> Shame. PATCH isn't an option. Guess I'll have to do some coding xD thanks!
[18:54:23] <jsheely> wafflej0ck cool, Let me know if anything comes to mind on a work around trick to get at the function.
[18:54:54] <junmin_> wafflej0ck: thank you. let me try in this way...
[18:55:10] *** jonr22 has joined #angularjs
[18:55:11] *** tristanp has joined #angularjs
[18:55:52] *** mmealling has quit IRC
[18:56:05] *** Sebastien-L has quit IRC
[18:56:37] *** shackleford has quit IRC
[18:57:21] <wafflej0ck> jsheely: yeah only thing really standing out at this point is calling the function by default will result in false so if you return something from the function in question you could check for that return value, will let you know if I think of or stumble on anything else
[18:57:30] *** leena has quit IRC
[18:57:38] *** darrin has quit IRC
[18:58:19] *** phuh has quit IRC
[18:58:44] *** phuh has joined #angularjs
[18:59:08] *** jasonp has quit IRC
[18:59:18] *** bkuberek has joined #angularjs
[19:00:06] *** sheplu has joined #angularjs
[19:00:24] *** jonr22 has quit IRC
[19:00:44] *** mmealling has joined #angularjs
[19:00:56] *** rkpaul has quit IRC
[19:01:03] *** ericsonluciano has joined #angularjs
[19:01:04] *** mmealling has quit IRC
[19:01:06] *** CodeFriar has quit IRC
[19:01:19] *** lianimator has joined #angularjs
[19:01:20] *** mmealling has joined #angularjs
[19:01:33] <jsheely> wafflej0ck yea unfortunately I need to validate that the function exists before attempting to run it. Otherwise assume another attribute exists.
[19:01:35] *** moritzs has joined #angularjs
[19:02:07] *** jasonp has joined #angularjs
[19:02:09] *** rashidkpc has quit IRC
[19:02:16] *** lw has joined #angularjs
[19:02:21] *** gnrlbzik has joined #angularjs
[19:02:21] *** jumpman has quit IRC
[19:02:25] *** lianimator1 has quit IRC
[19:02:37] *** nemothekid has quit IRC
[19:02:44] *** mbenadda__ has joined #angularjs
[19:02:54] *** kuniyori has joined #angularjs
[19:03:11] <sacho_> jsheely, why do you need &?
[19:03:21] *** wallerdev has joined #angularjs
[19:03:31] *** rashidkpc has joined #angularjs
[19:03:34] <jsheely> sacho_ I dunno. Isn't that how to tell a directive that the property is a function?
[19:03:42] <sacho_> no
[19:03:45] <jsheely> ><
[19:03:53] *** darrin has joined #angularjs
[19:04:18] *** rashidkpc has quit IRC
[19:04:25] *** rashidkpc has joined #angularjs
[19:04:36] *** rashidkpc has joined #angularjs
[19:04:39] <jsheely> I found the documentation on the whole =,@,& a little confusing (or lacking)
[19:05:00] <sacho_> indeed
[19:05:21] *** mjs2600_ has joined #angularjs
[19:05:25] <jsheely> So what's the deal with the & then?
[19:05:27] *** Evanion has joined #angularjs
[19:05:53] <jsheely> The way it reads: "Any legal expression is allowed, including an expression which contains a function call. Because of this, & bindings are ideal for binding callback functions to directive behaviors."
[19:06:07] *** rashidkpc has quit IRC
[19:06:08] *** gnrlbzik has quit IRC
[19:06:22] *** gnrlbzik has joined #angularjs
[19:06:26] *** thedodd has quit IRC
[19:06:35] *** mjs2600 has quit IRC
[19:06:37] *** mbenadda_ has quit IRC
[19:06:43] *** bengillies has quit IRC
[19:06:44] *** CROS_ has joined #angularjs
[19:07:41] *** mbenadda__ has quit IRC
[19:07:50] *** loverajoel has quit IRC
[19:07:52] *** mcreager has joined #angularjs
[19:07:53] <ioudas> hmm for some reason my ng-show is not updating when a value is changed in the controller
[19:08:01] *** brunoB has joined #angularjs
[19:08:03] *** iribarne has quit IRC
[19:08:13] <wafflej0ck> ioudas: need to show some code er a plunkr ideally
[19:08:26] *** glosoli has joined #angularjs
[19:08:30] <ioudas> kk
[19:08:39] <wafflej0ck> ioudas: could be missing a $scope.$apply but better to see what you're doing than randomly add things :)
[19:08:45] <ioudas> i used a scope.apply
[19:08:55] <ioudas> but i will not be able to plunker it all as the backend is localized
[19:09:02] <wafflej0ck> you can fake the backend
[19:09:02] <ioudas> want a pastebin of relevent portions?
[19:09:05] <wafflej0ck> just make a .json file
[19:09:05] <sacho_> jsheely, where's that?
[19:09:10] <wafflej0ck> ioudas: that's fine too
[19:09:12] <ioudas> not without a lot of work
[19:09:14] *** rashidkpc has joined #angularjs
[19:09:15] *** travm has joined #angularjs
[19:09:16] *** jareddlc has joined #angularjs
[19:09:20] <wafflej0ck> plunkr is always better to be able to actually test/fix the problem
[19:09:29] *** yelvert has joined #angularjs
[19:09:40] <icfantv> ioudas: first thing I'd check is to make sure the model is actually updating.
[19:09:41] *** Sebastien-L has joined #angularjs
[19:09:45] *** gnrlbzik has quit IRC
[19:09:49] <wafflej0ck> ioudas: typically to fake a backend though I just make a .json file and load it with $http.get on plunkr
[19:09:52] <icfantv> ioudas: use ng-inspector to verify
[19:09:55] *** jmverges has quit IRC
[19:10:06] <jsheely> https://docs.angularjs.org/guide/directive
[19:10:09] *** marshall_ has joined #angularjs
[19:10:12] <jsheely> 3/4 of the way down the page
[19:10:12] <ioudas> http://pastebin.com/Mq93mVTY
[19:10:16] *** MrBaboon has joined #angularjs
[19:10:18] *** gnrlbzik has joined #angularjs
[19:10:22] <ioudas> controller is StockCtrl
[19:10:29] *** jmverges has joined #angularjs
[19:10:30] <ioudas> i see the function being called
[19:10:31] *** jlebrech has quit IRC
[19:10:33] *** texinwien has quit IRC
[19:10:38] <ioudas> and changing the value of $scope.UOMSwitch
[19:10:45] <icfantv> ioudas: also, make sure the ng-show and the models are in the same scope hierarchy
[19:10:46] *** sk87 has quit IRC
[19:11:08] *** t_smith has joined #angularjs
[19:11:12] *** browles has joined #angularjs
[19:11:18] <ioudas> hmmm i dont really get what youre putting down icfantv
[19:11:19] *** mcreager has quit IRC
[19:11:34] *** ericsonluciano has quit IRC
[19:11:59] <icfantv> ioudas: is the ng-show in the same controller?
[19:12:10] *** michaelfavia has quit IRC
[19:12:16] *** darrin has quit IRC
[19:12:19] <icfantv> ioudas: or the same hierarchy (ancestor-child)
[19:12:20] <ioudas> yes
[19:12:21] *** Snugug has quit IRC
[19:12:34] *** fedenunez1 has quit IRC
[19:12:52] <ioudas> it works on the inital rendering of the site.... if i set it to false initally
[19:12:54] <ioudas> it works
[19:12:58] <icfantv> ioudas: ok. i don't know for sure, but i don't think $apply works in siblings
[19:13:00] <ioudas> but when i call that angular function
[19:13:13] <icfantv> maybe wafflej0ck knows
[19:13:13] <ioudas> and it changes the value... nothing is changed on the screen
[19:13:41] *** mennea_ has joined #angularjs
[19:13:41] <icfantv> ioudas: can you post the HTML snippet?
[19:13:52] *** mennea has quit IRC
[19:14:04] *** Schtive2 has joined #angularjs
[19:14:16] *** draconis-chomp has joined #angularjs
[19:14:25] *** Schtive has quit IRC
[19:14:27] <ioudas> you mean whats included in the paste bin
[19:14:30] <ioudas> or what the client sees
[19:14:42] <wafflej0ck> ioudas: yeah hard to tell lots of code here, much easier to isolate the problem in a plunkr for the rest of us to help out
[19:14:49] <wafflej0ck> ioudas: otherwise gotta dig through all this code
[19:14:52] *** d4rklit3 has joined #angularjs
[19:14:53] <wafflej0ck> no time
[19:14:55] * ioudas sighs
[19:15:04] *** moritzs has quit IRC
[19:15:08] *** MANCHUCK has quit IRC
[19:15:13] *** timouwerkerk has joined #angularjs
[19:15:16] *** marcjs has quit IRC
[19:15:21] *** poolside has quit IRC
[19:15:29] *** dgee has joined #angularjs
[19:15:57] <icfantv> ioudas: no, the HTML snippet where the ng-show is
[19:16:05] *** michaelfavia has joined #angularjs
[19:16:09] <ioudas> its included in the pastebin
[19:16:13] <icfantv> what wafflej0ck is saying is "help me help you"
[19:16:18] <icfantv> ioudas: ah, sorry. i missed that
[19:16:23] <icfantv> looking again
[19:16:25] * yiati just learned how to use action messages
[19:16:38] *** DrJae has joined #angularjs
[19:16:41] <ioudas> hmm, im not so sure about that.
[19:17:06] <icfantv> ioudas: why do you have like 40 ng-controllers using StockCtrl?
[19:17:07] *** krawek has quit IRC
[19:17:12] <ioudas> testing
[19:17:20] *** RobinBAwesome_ has joined #angularjs
[19:17:20] <ioudas> trying to get this to work
[19:17:39] *** Jae has quit IRC
[19:17:46] *** mennea_ has quit IRC
[19:18:05] <icfantv> ioudas: controllers are not singletons
[19:18:24] <icfantv> ioudas: you're going to get a new scope for each one
[19:18:37] *** optikalmouse has joined #angularjs
[19:18:50] *** mennea has joined #angularjs
[19:18:55] *** syzygy__ has joined #angularjs
[19:19:05] *** RobinBAwesome has quit IRC
[19:19:06] *** RobinBAwesome_ is now known as RobinBAwesome
[19:19:14] *** supertobi_ has quit IRC
[19:19:23] *** supertobi has joined #angularjs
[19:19:35] <icfantv> ioudas: btw, blindly throwing more code at a problem is generally not a helpful solution: if it doesn't work, you've kind of wasted your time. and if it does work, it may not always be clear why
[19:20:42] *** arthas has quit IRC
[19:20:45] <icfantv> ioudas: another thing: use === instead of == in your comparisons to avoid type coersion
[19:20:49] <ioudas> Thanks for your advice ican
[19:20:54] <ioudas> icfantv,
[19:20:56] <sacho_> jsheely, & is implemented in a pretty obtuse way
[19:21:01] <Guest7884> uploading file with angularjs is so complicated
[19:21:08] <wafflej0ck> Guest7884: indeed
[19:21:17] *** VinceZa has joined #angularjs
[19:21:48] <wafflej0ck> Guest7884: are you using one of the directives made to help out?
[19:21:48] *** favetelinguis has quit IRC
[19:21:51] *** FCH has quit IRC
[19:21:58] <sacho_> jsheely, the problem with checking whether something from your parent is a function is the `when`
[19:22:24] <Guest7884> wafflej0ck: the thing is, i want to get the file, convert it to a blob
[19:22:28] *** favetelinguis has joined #angularjs
[19:22:34] *** VinceZa has left #angularjs
[19:22:46] *** yiati has quit IRC
[19:22:49] *** ash__ has joined #angularjs
[19:22:53] <icfantv> ioudas: ng-show="UOMSwitch==true" can just be ng-show="UOMSwitch" because of truthy vs. falsey in JavaScript. unless it's an array. angular treats an empty array as falsey whereas in J/S it's truthy.
[19:23:14] <ash__> anyone know how to unit test a $window redirect?
[19:23:19] <Guest7884> wafflej0ck: yes, i use directives for that
[19:23:20] *** optikalmouse has quit IRC
[19:23:38] *** duall has quit IRC
[19:23:39] <ioudas> Yep. It can.
[19:23:52] <ash__> could you elaborate? (bit of a newbie here)
[19:23:58] <wafflej0ck> Guest7884: why exactly do you want a BLOB? from my personal experience storing BLOBs in a database instead of just storing a reference to the uploaded file seems to always be problematic and I don't see the benefit
[19:24:16] <icfantv> ioudas: which ng-show is not working?
[19:24:28] <ioudas> Any of them
[19:24:44] *** monir has joined #angularjs
[19:24:52] <jsheely> sacho_ Okay riddle me this then
[19:24:58] <sacho_> jsheely, for example, if you check during a child's link function, your parent's link function won't have been executed yet - http://plnkr.co/edit/xktNd6YXSmY7pdpgItE3?p=preview
[19:24:59] <Guest7884> wafflej0ck: i agree with you, but it's what my project manager wants
[19:25:10] <wafflej0ck> Guest7884: ah the old PM :)
[19:25:15] *** wa5ted has joined #angularjs
[19:25:20] <jsheely> If I have a directive with a function on scope. And I want to call that function from within the directive but pass it a variable. How would that work?
[19:25:26] <Guest7884> yea ;(
[19:25:29] *** jillesme has joined #angularjs
[19:26:03] <jsheely> I'm trying to do $scope.$apply($scope.qtipCallback(api));
[19:26:04] *** raisdead has joined #angularjs
[19:26:10] *** rhp has joined #angularjs
[19:26:11] <jsheely> But api never gets to the function
[19:26:15] *** kodierkroete has joined #angularjs
[19:26:53] *** jillesme has quit IRC
[19:26:54] *** favetelinguis has quit IRC
[19:27:17] <sacho_> what's qtipCallback?
[19:27:39] <wafflej0ck> Guest7884: yeah bummer I had some guys try to push this because the DB budget was large and the NAS budget didn't exist but seems like a silly and unnecessary thing if you aren't going to use the database to process the BLOBs somehow... so where are you stuck anyhow?
[19:27:39] <kodierkroete> Hello folks. Could someone give a newbie a hint how to best test a http interceptor?
[19:27:44] <sacho_> you can't easily pass parameters when using &, that would be logical!
[19:27:54] <jsheely> function on the directive = <input qtip-callback="someFunction()" />
[19:28:08] <jsheely> sacho_ bleh
[19:28:31] *** greengriminal has quit IRC
[19:28:33] <sacho_> jsheely, well, one way you could do it is
[19:28:42] <sacho_> qtip-callback="someFunction(api)"
[19:28:53] <sacho_> and then $scope.qtipCallback({api: api})
[19:29:07] <jsheely> oh as an object
[19:29:21] <sacho_> yes but not really what you're thinking
[19:29:24] <jsheely> yea I tried that at first but I didn't do it as an object when I called it. Thanks let me try that
[19:29:24] <dllama> hi all
[19:29:28] <dllama> miss me? :D
[19:29:40] *** draconis-chomp has quit IRC
[19:29:51] <sacho_> jsheely, that parameter({api: api}) passes local values to the expression
[19:29:57] <wafflej0ck> hey dllama yeah just talking with Guest7884 here 'bout file uploads
[19:29:57] *** loverajoel has joined #angularjs
[19:30:15] <sacho_> so you have the expression someFunction(api), it will look for the value of "api" first in the locals, and then in the parent scope
[19:30:15] *** tech2 has joined #angularjs
[19:30:22] <sacho_> (all this assuming you used a &)
[19:30:35] <raisdead> Can somone tell me if I do scope.$eval on a string that is parsable by JSON.parse, should it return the same thing. Here is a particular case I have having problems with. (Open the developer tools console to see the concern) http://jsbin.com/vavuyixale/3/edit?html,js,output
[19:30:37] <jsheely> sacho_ Yea. That's perfect it worked
[19:30:39] <jsheely> Thank you sir
[19:30:44] <wafflej0ck> dllama Guest7884: figured maybe you guys can work together a bit or at least feel each others pain :) bbiab
[19:30:49] <sacho_> well, I wouldn't venture as far as to call it perfect
[19:31:09] <dllama> oh boy
[19:31:40] <dllama> guess i msged u just in time :D
[19:31:59] <sacho_> jsheely, an alternative would be to bind via '='
[19:32:15] <dllama> i'm still working on mine, the examples i see online dont exactly fit my needs, but once i have a working solution, i'll be happy to pass along what i've learned
[19:32:24] *** brian has joined #angularjs
[19:32:32] <sacho_> e.g. input qtip-callback='someFunction', and scope: { qtipCallback: '=' }
[19:32:34] <dllama> Guest7884: want to pm me and kind of catch me up with where you are and i'll see what we can do to help each other out?
[19:32:44] <oste> ok - here is a plunkr showing my problem http://plnkr.co/edit/mnPLfjepuQF44v6ZEBGi?p=preview
[19:32:56] <oste> i discovered that ng-include could be culprit
[19:33:05] <oste> if i remove that - the outerHeight is logged properly
[19:33:10] <sacho_> jsheely, then you could call scope.qtipCallback(whatever, params, you, like) - at the expense of a $watch synchronizing the two scopes
[19:33:28] *** livingstn has quit IRC
[19:33:33] *** brian is now known as bgerami
[19:33:40] <oste> this is very strange behaivior tho - is there anyway to make it work?
[19:33:42] <jsheely> sacho_ Yea that was my plan B. But I thought that was a more ugly approach honestly.
[19:33:44] *** ash__ has quit IRC
[19:33:59] *** imjakechapman has joined #angularjs
[19:34:12] *** Aliks has joined #angularjs
[19:34:15] *** fragov has joined #angularjs
[19:34:27] *** imjakechapman has left #angularjs
[19:34:33] *** browles has quit IRC
[19:34:45] <sacho_> I don't know, & is pretty convoluted.
[19:34:47] *** cigarshark has joined #angularjs
[19:35:02] *** Yahkob has joined #angularjs
[19:35:09] *** deebo has joined #angularjs
[19:35:13] *** optikalmouse has joined #angularjs
[19:35:19] *** azizur has quit IRC
[19:35:26] *** nemothekid has joined #angularjs
[19:35:34] *** threesixes has joined #angularjs
[19:35:40] *** draconis-chomp has joined #angularjs
[19:36:09] *** fragov has quit IRC
[19:36:16] <deebo> is there a way to wait for intial rendering in a directive? Im $watching some form input fields and the listeners trigger on page load and a second time when the scope is populated and rendered
[19:37:16] *** jasonp has quit IRC
[19:37:24] <JohnFree> may I ask you guys something?
[19:37:28] *** boneskull has quit IRC
[19:37:29] *** jasonp has joined #angularjs
[19:38:05] <raisdead> Should `scope.$eval('{"":"test"}')` and `JSON.parse('{"":"test"}')` produce equivalent objects
[19:38:10] *** enaqx has quit IRC
[19:38:21] *** jpstone has joined #angularjs
[19:38:24] <JohnFree> I'm somehow producing a deadlock
[19:38:28] <wafflej0ck> JohnFree: always best to ask than to ask to ask (at least in IRC)
[19:38:37] *** enaqx has joined #angularjs
[19:38:42] <wafflej0ck> better*
[19:39:37] *** piecyk has joined #angularjs
[19:40:00] <wafflej0ck> JohnFree: is that technically possible? are you using WebWorkers and doing it intentionally :) typically angular will let you know if you've created a circular dependency but not sure how a true deadlock would happen in JS without webworkers or something
[19:40:13] *** Yahkob has quit IRC
[19:40:30] <Guest7884> ah
[19:40:33] *** Nijikokun has joined #angularjs
[19:40:45] <Guest7884> yes, my problem is that I manage to retrieve the file, but i don't manage to convert it to blob
[19:41:04] *** Asiajey has quit IRC
[19:41:05] *** favetelinguis has joined #angularjs
[19:41:07] *** mica has joined #angularjs
[19:41:23] <jpstone> I have a service (service A) with a $resource that fetches a customer from my db. I have another service (service B) that leverages the $resource in service A to construct a model. My controllers then inject service B and attach the model to the $scope.
[19:41:23] *** mica has left #angularjs
[19:41:25] *** sk87 has joined #angularjs
[19:41:26] <Guest7884> i tried buffer and filereader, but i think i'm doing it wrong
[19:41:44] <jpstone> The problem is, when I navigate to the controller, the data doesn't change, even though the DB data is different. I have to reload the entire page for it to work properly.
[19:41:49] <dllama> Guest7884: http://jsfiddle.net/JeJenny/ZG9re/ — thats what i'm trying to incorporate into restangular right now
[19:41:51] <jpstone> Why is this?
[19:41:53] *** JohnBat26 has joined #angularjs
[19:42:22] *** merobertsjr has joined #angularjs
[19:42:32] <jpstone> isn't reloadonsearch true by default?
[19:42:43] *** spatialbrew has joined #angularjs
[19:42:46] <jpstone> it seems to be acting as if it's false
[19:42:59] <jpstone> but that's not true either, because a console.log I have in the controller spits output
[19:42:59] *** tilgovi has joined #angularjs
[19:43:09] <JohnFree> wafflej0ck: Ok. The problem is: Service A watches for changes in Service B (which keeps the cached data). Service B gets new data from Service C (gets updated by that). When Service B gets updated, Service A calls Service D(Service for sorting the data), which in turn calls Service B.
[19:43:11] <jpstone> so the controller reloads, but the service doesn't fetch new data from the db
[19:43:14] <Guest7884> dllama: i see i see
[19:43:16] *** snapwich has quit IRC
[19:43:39] <Guest7884> i 'll try tweaking some stuff
[19:43:46] *** brunoB has quit IRC
[19:43:50] *** timouwerkerk has quit IRC
[19:44:02] *** soee has joined #angularjs
[19:44:32] *** arkin has joined #angularjs
[19:44:32] *** arkin has joined #angularjs
[19:44:33] <JohnFree> wafflej0ck: So the problem is, that Service A triggers the change with Service D and get's into $watch and calls Service D again.
[19:44:41] <JohnFree> Do someone understand me?
[19:44:53] <wafflej0ck> JohnFree: I think so, need to sketch it up real quick too though
[19:45:03] *** brunoB has joined #angularjs
[19:45:05] *** mnngfltg has quit IRC
[19:45:06] <oste> can anyone provide some insight on this one http://plnkr.co/edit/mnPLfjepuQF44v6ZEBGi?p=preview
[19:45:08] *** favetelinguis has quit IRC
[19:45:13] *** robdubya has quit IRC
[19:45:19] <oste> this has been the bane of my existence for a couple days now
[19:45:42] *** favetelinguis has joined #angularjs
[19:45:51] *** baweaver has joined #angularjs
[19:45:58] <oste> basically - when i use ng-include the dom is not ready and the element height is 0
[19:45:58] <JohnFree> wafflej0ck: Ok thanks
[19:46:14] *** whitenexx has joined #angularjs
[19:46:26] <wafflej0ck> JohnFree: okay so C doesn't really matter to us here right it's just between A updates when B changes and A uses D to change B thereby forcing an update in A and the cycle continues
[19:46:32] <JohnFree> wafflej0ck: So there is an endless loop at Service A
[19:47:05] *** yelvert has quit IRC
[19:47:13] <oste> if i remove the ng-include it works ok http://plnkr.co/edit/Cb5DPUcs8PYC0EKRUibG?p=preview
[19:47:15] <wafflej0ck> JohnFree: yeah so basically sounds like you need to just be able to know from Service A if the last change to the data in B came from a call to C or a change from A through D
[19:47:22] <oste> how can i wait for the ng-include to render?
[19:47:29] *** marko_ has joined #angularjs
[19:47:31] <JohnFree> wafflej0ck: Exactly
[19:47:32] *** yelvert has joined #angularjs
[19:47:51] <JohnFree> wafflej0ck: I thought about that, too
[19:48:04] <JohnFree> wafflej0ck: So you mean I should store the information who changed the cache?
[19:48:11] <wafflej0ck> JohnFree: I think so
[19:48:18] *** mennea has quit IRC
[19:48:34] *** Jdubs has joined #angularjs
[19:48:43] *** raisdead has quit IRC
[19:48:44] *** dhcar_AFK is now known as dhcar
[19:48:57] *** mennea has joined #angularjs
[19:49:11] <wafflej0ck> JohnFree: seems like if you know that the last change came from C then A should call D otherwise if the last change to B came from D you don't make the call to D from A
[19:49:41] *** favetelinguis has quit IRC
[19:49:56] <JohnFree> wafflej0ck: Yes. There seems to be no alternative. Maybe there is a better way to solve this but I don't know
[19:50:36] *** cannap has quit IRC
[19:50:36] <wafflej0ck> JohnFree: yea just in terms of the logical problem I can't see another way but the overall problem you're solving this way might be better solved using $filter or something like that
[19:51:41] *** calmbird has joined #angularjs
[19:52:08] *** yelvert has quit IRC
[19:52:11] *** opiates has joined #angularjs
[19:52:41] <JohnFree> wafflej0ck: I'm using $filter inside Service D
[19:52:47] *** Ch4rAss has joined #angularjs
[19:52:49] <wafflej0ck> JohnFree: yeah thought about that after I wrote it :)
[19:52:54] <JohnFree> :)
[19:53:06] *** baweaver has quit IRC
[19:53:12] <JohnFree> wafflej0ck: It's unbelievable. I'm feeling strange with my solution
[19:53:37] *** shackleford has joined #angularjs
[19:53:42] *** baweaver has joined #angularjs
[19:53:52] *** Alina-malina has joined #angularjs
[19:53:58] *** shackleford has quit IRC
[19:54:05] <JohnFree> I thought: Hey cool, I can watch changes from Service B (CacheService) and get the data, but as soon as there are multiple participants it get's messy
[19:54:21] <wafflej0ck> JohnFree: yeah I've had this happen before myself too where I end up in some weird service loop that I need to refactor my way out of sometimes yet another service is the answer to communicate between two services without creating a dependency from one to the other, but sometimes things get weird
[19:54:24] <JohnFree> The problem is, that there is more than one changer
[19:54:31] *** shackleford has joined #angularjs
[19:54:44] <JohnFree> :D
[19:54:46] *** nuizzy has joined #angularjs
[19:54:54] <JohnFree> I'm happy not to be alone with this my friend
[19:55:01] *** zzing has quit IRC
[19:55:18] *** freeman42 has joined #angularjs
[19:56:00] *** tim92 has joined #angularjs
[19:56:05] *** monir has quit IRC
[19:57:01] *** mclenithan has joined #angularjs
[19:57:12] *** maho has joined #angularjs
[19:57:57] *** baweaver has quit IRC
[19:59:56] <maho> hi everyone
[20:00:16] *** xavia has quit IRC
[20:00:35] <themime> JohnFree: hows your stuff coming along?
[20:00:41] <wafflej0ck> hola maho
[20:01:13] *** Scott has joined #angularjs
[20:01:15] <JohnFree> themime: Well I'm not happy with my current situation
[20:01:16] <maho> I need advice regarding testing ng ap. I want to check if controller used on .html file renders to string I want
[20:01:19] <JohnFree> themime: I think I'm using service wrong
[20:01:21] *** c0bra has joined #angularjs
[20:01:37] *** Scott is now known as Guest6013
[20:01:47] *** kuniyori has quit IRC
[20:01:51] <c0bra> I couldn't find an issue for this: is there a known problem with $animate promises not resolving?
[20:01:56] *** d10n-work has quit IRC
[20:01:58] <Guest6013> I've got a question for the room...
[20:02:02] <Guest6013> I've got a controller like so...
[20:02:05] <Guest6013> controller('aboutController', ['$scope', 'MyService', function ($scope, MyService) { var promise = MyService.sendMessage(); //var promise = MyService.getMessages(); $scope.message = "wait for it"; var f = function (data) { $scope.message = data; console.log($scope.message); }; promise.then(f); }]);
[20:02:09] *** lw has quit IRC
[20:02:12] <themime> JohnFree: it may have looked like that yesterday. sounds like youre working out some interesting stuff with wafflej0ck
[20:02:14] <JohnFree> We discussed it with wafflej0ck but couldn't find a professional solution
[20:02:18] <sacho_> Guest6013, paste your code on plunker
[20:02:25] *** michaelSharpe has joined #angularjs
[20:02:32] <JohnFree> themime: wafflej0ck gave up :)
[20:02:36] <tim92> hi
[20:02:36] <Guest6013> will do just a sec
[20:02:46] <michaelSharpe> is it possible to reference a constant within a value definition?
[20:03:06] <wafflej0ck> JohnFree: heh yeah well just sayin' what needs to be done but don't have a totally clean solution to that
[20:03:11] <JohnFree> themime: By the way thanks at all. Everybody very helpful
[20:03:18] *** brunoB has quit IRC
[20:03:22] *** Snugug has joined #angularjs
[20:03:33] <JohnFree> wafflej0ck: Doesn't matter, thanks for your help buddy
[20:03:47] *** Sebastien-L has quit IRC
[20:03:47] <JohnFree> themime: Do you have a better solution to the same problem I and wafflej0ck have
[20:04:00] <themime> i didn't look at it in much detail, is there a plunker?
[20:04:25] *** baweaver has joined #angularjs
[20:04:30] <JohnFree> themime: No, but I can create one. Do you have time for that?
[20:04:34] <Guest6013> Ok code is in plunker under Example
[20:04:38] *** jbeaudry has joined #angularjs
[20:04:41] <Guest6013> anyway
[20:04:45] <themime> JohnFree: im working so i may have delayed responses
[20:04:57] *** snapwich has joined #angularjs
[20:05:03] <JohnFree> themime: It's lots of code, why I tried to explain it
[20:05:04] <Guest6013> I have a web socket returning some data that I then want to resolve through a promise
[20:05:22] *** elrabin_ has joined #angularjs
[20:05:32] <Guest6013> the function of the then statement of the promise back in the controller never gets called
[20:05:43] *** vassagus has joined #angularjs
[20:05:51] <michaelSharpe> Does anyone know if it is possible to reference a constant within a value definition?
[20:06:11] *** tim92 has quit IRC
[20:06:21] <Guest6013> I've tried $rootScope.$apply()
[20:06:24] <themime> JohnFree: i found the problem above, ill look at it if i have a chance in a bit
[20:06:25] <JohnFree> I would need too long for creating a plunkr. I'm trying to find a solution on google :)
[20:06:28] <Guest6013> but that doesn't seem to do the tricks
[20:06:29] *** tim92 has joined #angularjs
[20:06:38] <JohnFree> themime: Where did you find it? Is there a link?
[20:06:54] <themime> JohnFree: i meant your description in IRC
[20:07:00] <JohnFree> themime: oh ok
[20:07:34] *** prbc has quit IRC
[20:08:11] *** VinceZa has joined #angularjs
[20:09:17] *** elrabin has quit IRC
[20:09:46] *** KernelCurry has joined #angularjs
[20:10:05] *** Alina-malina has quit IRC
[20:10:10] *** lw has joined #angularjs
[20:11:15] *** dreambox has quit IRC
[20:11:16] *** woah has quit IRC
[20:11:20] *** thedodd has joined #angularjs
[20:13:11] *** Guest6013 has quit IRC
[20:14:14] *** wallerdev has quit IRC
[20:15:49] *** glosoli has quit IRC
[20:15:57] *** wallerdev has joined #angularjs
[20:16:00] *** mmealling has quit IRC
[20:16:05] *** pedrofsantos has quit IRC
[20:16:09] *** marcjs has joined #angularjs
[20:16:14] *** iribarne has joined #angularjs
[20:16:15] *** otisZart has quit IRC
[20:16:35] *** otisZart has joined #angularjs
[20:16:44] *** xavia has joined #angularjs
[20:16:59] *** mmealling has joined #angularjs
[20:17:18] *** tim92 has quit IRC
[20:17:35] *** otisZart has quit IRC
[20:18:12] *** ThomasBeauvais has quit IRC
[20:18:14] *** simplyshipley has joined #angularjs
[20:18:20] *** mennea has quit IRC
[20:18:54] *** webus has joined #angularjs
[20:18:58] *** mennea has joined #angularjs
[20:19:21] *** maho has quit IRC
[20:20:06] <wafflej0ck> Guest7884: would need to see some code calling apply doesn't typically do anything with regard to promises rather if you change data and need things that are $watching the data to be updated you would call $apply
[20:20:17] *** t_smith has quit IRC
[20:20:21] *** saucey has joined #angularjs
[20:20:48] *** phuh has quit IRC
[20:21:14] <sacho_> not the same guest
[20:21:15] *** phuh has joined #angularjs
[20:21:21] <JohnFree> wafflej0ck: Maybe I should add a notifyAll() method into my service, so that each Consumer can decide when to notify the Producers
[20:21:24] <jaawerth> wafflej0ck: hey, you use node a lot, don't you? Are you using bodyparser these days?
[20:21:26] *** dalguete is now known as [dalguete]
[20:21:37] *** IvailoStoianov has quit IRC
[20:21:58] *** jtimon has joined #angularjs
[20:22:08] <wafflej0ck> JohnFree: yeah maybe not a bad option just have a promise that never resolves but use it for a message bus of sorts... really though you might want to just do that through another service too
[20:22:23] *** mtsr has joined #angularjs
[20:22:27] *** timouwerkerk has joined #angularjs
[20:22:35] *** timouwerkerk has left #angularjs
[20:22:39] <wafflej0ck> jaawerth: no no node that's robdubya not in room at the moment suspiciously
[20:22:49] <jaawerth> haha
[20:22:50] *** dc_ has quit IRC
[20:22:57] <jaawerth> I thought you did because I remember you loving Sequelize
[20:23:02] <jaawerth> but I could be misremembering
[20:23:04] <wafflej0ck> jaawerth: I just use grunt and related node stuff
[20:23:09] <wafflej0ck> yeah misattribution no biggie
[20:23:13] <jaawerth> since node 4.0 I can never decide which middlewares to use
[20:23:17] <jaawerth> er
[20:23:19] <jaawerth> that is express 4.0
[20:23:39] *** poolside has joined #angularjs
[20:23:45] <jaawerth> I don't think robdubya uses express much unless you count sails. Which I'd love to use but I'm just not sure the ORM is ready
[20:23:49] *** livingstn has joined #angularjs
[20:24:16] <wafflej0ck> I do most of the backend stuff with MySQL, PHP, and Eloquent ORM and Slim for the routing, I've done a bit of Java EE and Spring stuff too but don't use it on the regular
[20:24:17] <JohnFree> wafflej0ck: How about that:
[20:24:30] *** poolside has quit IRC
[20:24:32] <jaawerth> ah
[20:24:51] <JohnFree> wafflej0ck: The Producer first sets the "changed" attribute in the observed service to false and then to true everytime he wants to put new data in. How about that?
[20:24:55] <wafflej0ck> jaawerth: I think node is probably what's next for me though
[20:24:57] *** oste has quit IRC
[20:25:05] <jaawerth> I've been thinking I should give modern PHP a chance, I haven't really given it a fair shake with any of thew frameworks out there nowadays
[20:25:07] *** shaisnir has quit IRC
[20:25:10] *** cohitre has joined #angularjs
[20:25:17] *** cannap has joined #angularjs
[20:25:19] *** coreyw has joined #angularjs
[20:25:21] *** pipoo has joined #angularjs
[20:25:34] <wafflej0ck> jaawerth: yeah it is really simple at this point for me and pretty secure in terms of SQL injection
[20:25:37] *** scythe__ has quit IRC
[20:25:43] *** shaisnir has joined #angularjs
[20:25:52] *** metal55 has quit IRC
[20:25:57] *** marko_ has quit IRC
[20:26:00] <coreyw> so if i have a repeater, with a select element inside, whats the best way to disable options in that select that have been selected in a different select?
[20:26:07] <JohnFree> Guys I have a question
[20:26:29] <jaawerth> ask away and we'll see if we can answer ;-)
[20:26:39] *** shaisnir has quit IRC
[20:26:47] <jaawerth> coreyw: so you have multiple select dropdowns, and they have the same options in each of them? or some of the options show up multiple times?
[20:26:53] *** shaisnir has joined #angularjs
[20:27:00] *** Guest70 has joined #angularjs
[20:27:02] <coreyw> jaawerth: same options in each
[20:27:03] *** SoulBlade has joined #angularjs
[20:27:17] *** \du has quit IRC
[20:27:18] <JohnFree> When I do 2 changes after each other in 2 lines on a variable, that is watched, does the watcher get 2 notifications or just 1?
[20:27:21] <jaawerth> and do you want them disabled as in still showing up and grayed out, or not even listed as an option?
[20:27:39] <kodierkroete> Is there a way to get the request url from the httpBackend for testing purposes? I want to test a service which prefixes some request and i'm kind of lost right now
[20:27:40] <coreyw> jaawerth: disabled if possible
[20:27:40] <jaawerth> JohnFree: the watcher only checks for changes during angular's digest cycle
[20:27:42] *** ozooner_ has joined #angularjs
[20:27:55] *** webus has quit IRC
[20:28:01] <JohnFree> jaawerth: That means that only one of the two changes might get recognized?
[20:28:03] <jaawerth> coreyw: then I'd use https://docs.angularjs.org/api/ng/directive/ngDisabled
[20:28:08] *** ozooner has quit IRC
[20:28:09] <wafflej0ck> JohnFree: I guess I'm thinking something more like how httpInterceptors work so you just have some array of services that will have the same interface for a function that processes the data and you just line them all up, but it does depends a bit on the particular kind of manipulations your doing
[20:28:15] *** shaisnir has quit IRC
[20:28:36] *** marcjs has quit IRC
[20:28:47] *** shaisnir has joined #angularjs
[20:28:48] <jaawerth> coreyw: ng-disabled="alreadySelected()" where alreadySelected() will be a function that checks the value of the other ng-models that MIGHT have that option selected and returns true if they are
[20:28:51] *** snapwich has quit IRC
[20:28:54] *** opiates has quit IRC
[20:28:58] *** livingstn has quit IRC
[20:29:12] *** snapwich has joined #angularjs
[20:29:16] <JohnFree> Now there are 2 services, which change the variable x in the observed service. And there is one service which watches that variable. With which pattern can I solve this problem? I'm really desperate
[20:29:18] <jaawerth> JohnFree: Correct, unless you're calling a digest between the changes
[20:29:29] <coreyw> jaawerth: so use ng-disabled on the option? so don't use ng-options?
[20:29:47] <JohnFree> I'm really looking for a good pattern to fix this problem
[20:30:01] <jaawerth> coreyw: d'oh, sorry... ignore that first answer, forgot we're in ng-options-land
[20:30:13] *** lw has quit IRC
[20:30:26] <coreyw> jaawerth: well, if ngoptions won't work i don't mind doing an ng-repeat on the <option> necessarily.
[20:30:39] <JohnFree> Mh.. Would it be ok if I would just set the variable to "false" as there is only one Consumer?
[20:30:47] *** fedenunez has joined #angularjs
[20:30:53] *** stirlingw has quit IRC
[20:31:14] *** jeffisabelle has joined #angularjs
[20:31:21] *** stirlingw has joined #angularjs
[20:31:22] *** SoulBlade has quit IRC
[20:31:54] *** kuniyori has joined #angularjs
[20:32:05] *** arkin has quit IRC
[20:32:52] *** Guest70 has quit IRC
[20:33:11] <Nijikokun> I've got an issue
[20:33:12] <wafflej0ck> JohnFree: it seems like in B the cache service you should just have a spot for storing the data as it's brought in from C and have a separate location for storing the processed data in B... with regard to A that watches B it can trigger a set of services (in this case a set with only D in it) that process the data then store it in the processed data property of B
[20:33:16] <Nijikokun> hmm
[20:33:19] *** livingstn has joined #angularjs
[20:33:27] *** alexw has joined #angularjs
[20:33:43] <Nijikokun> my controller scope doesn't get updated when the factory is updated by a directive
[20:33:44] <Nijikokun> :(
[20:33:47] <JohnFree> wafflej0ck: It is storing the data
[20:34:00] <Nijikokun> wait, I said that wrong
[20:34:13] *** m_rc has quit IRC
[20:34:18] *** klaut_ has joined #angularjs
[20:34:29] <Nijikokun> a directive scope doesn't get updated when the factory data updates, from another directive or internally.
[20:34:34] *** cthrax has quit IRC
[20:34:46] <Nijikokun> if I manually do an action, then it gets updated
[20:34:57] <jaawerth> coreyw: yeah, that's definitely one way to do it. I'm thinking you could also write a custom directive that requires the select directive and messes with it to work with ngOptions, but that'd be more of a project
[20:35:09] *** anjumkaiser has joined #angularjs
[20:35:14] <saucey> hey guys ive built an auth validation api, that logs in a users and send a token to header for database validation,, once i got the user verified how do i then go on to, creating more checks on the route to see if the users is actually logged in to browse the app?
[20:35:17] *** mfunkie has joined #angularjs
[20:35:19] *** alexw has quit IRC
[20:35:26] *** mtsr has quit IRC
[20:35:39] *** MANCHUCK has joined #angularjs
[20:36:10] <JohnFree> wafflej0ck: At which spot shall I store the incoming data from C ?
[20:36:13] *** tim92 has joined #angularjs
[20:36:14] <coreyw> jaawerth: yeah. using angular for the first time so might just be easier to not mess with a new directive. just wanted to check if there were some quick built-in way. i'll try ng-repeat with ng-disabled on the options.
[20:36:16] <coreyw> thanks!
[20:36:20] <saucey> like i need some kind of checks on all my routes if user logged in and has token etc etc
[20:36:30] *** klaut has quit IRC
[20:36:32] *** encryptd_fractl has quit IRC
[20:36:47] <wafflej0ck> JohnFree: thinking in B you have something like {rawData:null, processedData:null}, then A just watches rawData and ultimately updates processedData
[20:36:55] <wafflej0ck> JohnFree: that'd get you out of the loop issue
[20:37:05] *** sonofdirt has quit IRC
[20:37:08] *** edrocks has joined #angularjs
[20:37:21] <JohnFree> wafflej0ck: Aha
[20:37:32] <snurfery> I'm looking at some 3rd-party module where the guy's controller does something like this: var scope = this
[20:37:38] <snurfery> and he uses scope and $scope differently
[20:37:43] *** sonofdirt has joined #angularjs
[20:37:52] <snurfery> is he just being weird? is there any reason someone would do this?
[20:37:59] <JohnFree> wafflej0ck: Sounds very good
[20:38:04] *** Nizumzen has joined #angularjs
[20:38:04] *** diosney has joined #angularjs
[20:38:10] <wafflej0ck> JohnFree: cool yeah sounds good in theory to me too :)
[20:38:24] *** lw has joined #angularjs
[20:38:26] <JohnFree> wafflej0ck: Now I'm doing it in reality and will give you feedback
[20:38:32] <wafflej0ck> JohnFree: awesome
[20:38:33] *** arek_at_work has quit IRC
[20:38:43] <Toutenrab> snurfery: maybe to bind some object method/attribute to the scope ?
[20:39:30] <snurfery> I think it has something to do with the 'controller as' syntax
[20:39:32] <Toutenrab> it's like an other way to have the same result of "Controller as" syntax
[20:39:37] <Toutenrab> ok
[20:39:38] <snurfery> ah
[20:40:04] *** kodierkroete has quit IRC
[20:40:13] *** Drognan has joined #angularjs
[20:40:18] <snurfery> I'm just wondering if DI'ed "$scope" and "scope" are the same, when setup that way
[20:40:24] <sacho_> snurfery, they're not.
[20:40:41] <sacho_> he's using controller as - this will bind the controller to some scope property.
[20:41:01] <sacho_> so if he has "controller as prop", scope would be $scope.rpop
[20:41:03] <sacho_> *prop
[20:41:17] <snurfery> ah, got it
[20:41:27] <Drognan> Anyone use graphite with angular? I need to specific the target url paramater twice, but I can't do that in the object and if I add &target into the variable it gets encoded. any ideas?
[20:41:38] <snurfery> thanks, there's some tricky directive $watch issue I'm trying to work through and that must be affecting it
[20:41:43] *** VinceZa has quit IRC
[20:41:44] *** marcjs has joined #angularjs
[20:41:57] *** sonofdirt has quit IRC
[20:42:03] *** woah has joined #angularjs
[20:42:16] <sacho_> snurfery, any watch expressions would have to look like 'scope.foo' instead of just 'foo'
[20:42:27] <Toutenrab> saucey: you can bind an handler to the $routeChangeSuccess event to see, after a succesful routing if user is authentified then redirect him if not
[20:43:00] *** mchapman has quit IRC
[20:43:03] <saucey> ok x
[20:43:05] *** tim92 has quit IRC
[20:43:08] * snurfery nods
[20:43:17] *** mandric has quit IRC
[20:43:23] *** tim92 has joined #angularjs
[20:43:41] *** zwacky has quit IRC
[20:43:48] *** baweaver has quit IRC
[20:43:58] <Drognan> figured it out, use an array for the variable
[20:43:59] *** diegoaguilar has joined #angularjs
[20:44:00] <Toutenrab> or you can also use a resolver on your routes
[20:44:05] <saucey> Toutenrab: check this http://laravel.io/bin/jQyxk
[20:44:11] *** jonr22 has joined #angularjs
[20:44:11] <saucey> would i add the login to this
[20:44:16] *** sonofdirt has joined #angularjs
[20:44:22] *** dreambox has joined #angularjs
[20:44:24] *** baweaver has joined #angularjs
[20:44:32] <saucey> or inside of my controller
[20:45:20] *** shampine has joined #angularjs
[20:45:42] *** ClarusCogitatio has quit IRC
[20:46:16] <reduce> we have 2 create customer ebtity forms on our site that are nearly identical, and one of them has been converted to angular. Were converting the other now
[20:46:39] *** shaisnir has quit IRC
[20:46:52] *** shinnya has joined #angularjs
[20:46:56] <reduce> one option being floated is to just call the same page with a different querystring, and have the controller check the quesrystring and choose the correct rest api based on that
[20:46:56] *** shaisnir has joined #angularjs
[20:47:10] <reduce> and also modify the html accordingly to account for the small differences
[20:47:43] *** ColKurtz has joined #angularjs
[20:47:45] <reduce> im not sure this is a very "angular" solution
[20:47:48] *** oste has joined #angularjs
[20:47:48] *** RobinBAwesome has quit IRC
[20:47:59] *** encryptd_fractl has joined #angularjs
[20:48:08] <Toutenrab> saucey, you should add login to your Auth service, definitly, this doesn't lie in a controller
[20:48:33] *** mennea has quit IRC
[20:48:35] *** baweaver has quit IRC
[20:48:40] *** Xethron has quit IRC
[20:48:44] *** Guest7884 has quit IRC
[20:48:51] *** gazbond has joined #angularjs
[20:48:55] *** poolside has joined #angularjs
[20:48:58] <saucey> Toutenrab, do you have an example
[20:49:00] *** mennea has joined #angularjs
[20:49:06] *** jonr22 has quit IRC
[20:49:12] *** lite_ has quit IRC
[20:50:00] <gazbond> TypeError related to use factory instance from module in serperate file. Is I doin it wrong bruv?
[20:50:05] *** ClarusCogitatio has joined #angularjs
[20:50:19] *** coreyw has quit IRC
[20:51:00] *** zB0hs has quit IRC
[20:51:02] <Toutenrab> saucey, this may not be the cleanest solution ever: https://github.com/jplusplus/detective.io/blob/master/app/detective/static/detective/js/services/Auth.coffee
[20:51:10] <Toutenrab> (plus it's in coffee)
[20:51:19] <jaawerth> snurfery: well, that sounds similar to what I usually do at the beginning of all my controllers now that I use 'controller as'
[20:51:19] <reduce> gazbond: are you from the ik?
[20:51:22] <reduce> *uk
[20:51:40] <gazbond> TypeError when accessing YiiHelpers see here http://pastebin.com/c6ZR6RA0
[20:52:24] *** joshontheweb has quit IRC
[20:52:25] <jaawerth> snurfery: I realize you may have already figured this out, but I always start by doing var ctrl = this; since I know I'll eventually be in callbacks where "this" is going to point to the wrong thing. Sounds like this guy is using 'scope' for a similar purpose, which makes sense in a way but is really just confusing
[20:52:25] <deweydb> how do i make bower only get DIST and not examples and docs, etc ?
[20:52:41] *** ozooner__ has joined #angularjs
[20:52:54] <snurfery> jaawerth: yeah
[20:52:57] *** mtsr has joined #angularjs
[20:53:05] *** Jdubs has quit IRC
[20:53:07] <snurfery> the naming choice wasn't so hot
[20:53:09] *** shackleford has quit IRC
[20:53:17] <snurfery> but it's good, I feel I should be using a similar pattern more often
[20:53:22] *** Xethron has joined #angularjs
[20:53:32] <snurfery> embracing the controller as syntax as the norm instead of the exception
[20:53:45] <saucey> Toutenrab, thanks for the help but im lost here
[20:53:51] <jaawerth> yeah, I use it with EVERYTHING now
[20:53:59] <jaawerth> it makes scope inheritance really elegant
[20:54:01] <jaawerth> I love it
[20:54:14] <jaawerth> I use scope inheritance a lot more often than I used to now as a result
[20:54:31] * snurfery nods
[20:55:01] <jaawerth> huh, 1.3.1 is already out I see
[20:55:04] <reduce> ok, lets look at this a different way. Say i have a large html page thats mostly contained in a single controller, and i need more pages which are almost identical bar calling different rest services / conditionally hiding / showing some fields. This is not a SPA. Whats the best way to share code?
[20:55:06] <Toutenrab> mh yep it's a huge project, so it won't help a lot. to many specific stuff, and not generic at all
[20:55:35] *** monokrome has joined #angularjs
[20:55:36] *** mchung has joined #angularjs
[20:55:49] *** mkc has joined #angularjs
[20:55:52] *** IvailoStoianov has joined #angularjs
[20:56:01] *** zwacky has joined #angularjs
[20:56:15] *** jshultz has joined #angularjs
[20:56:41] *** ozooner_ has quit IRC
[20:56:46] *** ozooner has joined #angularjs
[20:56:57] *** richiebkr has quit IRC
[20:56:59] *** Latros-OS has quit IRC
[20:57:00] <ckboii89_> do controllers have to be explicitly in a div or can i place it in any element as i please?
[20:57:09] *** Latros-OS has joined #angularjs
[20:57:10] *** Rahul_Roy_ has quit IRC
[20:57:13] <ckboii89_> in a separate div i mean
[20:57:42] <wafflej0ck> ckboii89_: any element should do fine
[20:57:49] <ckboii89_> ok thanks
[20:57:49] <reduce> this would all be simpler if we had used directives as liberally as i wanted
[20:57:51] *** ozooner__ has quit IRC
[20:58:01] *** shackleford has joined #angularjs
[20:58:23] <wafflej0ck> ckboii89_: when the directives are being processed it just checks against the restrict property in the directive definition to see if it should be a comment or attribut or class or element and if it matches the directive is processed (in this case ng-controller)
[20:58:25] *** favetelinguis has joined #angularjs
[20:58:53] *** lw has quit IRC
[20:58:55] <reduce> but the problem with working in a software house is you have to get agreement from others on what reusable components should look like at times which sometimes means you dont get to create them at all
[20:59:05] <ckboii89_> http://pastebin.com/6RjWSJBg
[20:59:09] *** tim92 has quit IRC
[20:59:09] <ckboii89_> is this acceptable?
[20:59:27] <ckboii89_> i tried placing a contrller wrapping the tabset but it screws up the look
[20:59:28] *** ngbot has joined #angularjs
[20:59:28] <ngbot> [angular.js] pkozlowski-opensource pushed 1 new commit to master: http://git.io/q54v2Q
[20:59:28] <ngbot> angular.js/master 9a26ab5 Loring Dodge: docs($route): replace comma with "and"...
[20:59:28] *** ngbot has left #angularjs
[20:59:31] <reduce> because people arent always available to make a call apart from, dont do that until we make a call on it lol
[20:59:44] <ckboii89_> not tabset sorry tabheading
[20:59:46] *** bengillies has joined #angularjs
[20:59:57] *** dhcar is now known as dhcar_AFK
[20:59:58] <Toutenrab> reduce: maybe you can use controller inheritance, like here: http://stackoverflow.com/questions/18461263/can-an-angularjs-controller-inherit-from-another-contoller-in-the-same-module the parent controller will hold all your shared code or "generic" code
[21:00:11] <wafflej0ck> ckboii89_: hmm should generally be okay you only have issues (errors in console) if both directives try to create an isolate scope for the same element
[21:00:21] *** tim92 has joined #angularjs
[21:00:24] <elmcrest> Hi everyone. Is there a way to kind of execute mouseLeave with ngTouch? I want my submenu disapearing with mouseLeave, which works nice, but that doesn't work on mobile... Can somebody give me a hint on this?
[21:00:41] <wafflej0ck> ckboii89_: check out the inspect elements to see what's going on with the DOM when you add/remove ng-controller to pin down what's causing the layout issues
[21:01:02] <michaelSharpe> Does anyone know why I injecting $location into a directive is breaking all my tests? They all say "undefined is not a function", and when I remove $location from the directive they all pass. :/
[21:01:06] <Toutenrab> I've been doing that with coffeescript classes inheritance which make things quite more simple concerning those kind of problems but it's coffee.
[21:01:08] <c0bra> elmcrest: bind to $document.click and make sure that target !== your element?
[21:01:10] <ckboii89_> it has to do with wrapping a <div> around the tabheading
[21:01:29] <ckboii89_> i think the css goes all funky because tabset is seeing a div not a tab
[21:01:42] *** syzygy__ has quit IRC
[21:01:58] *** red_horned_rihno has quit IRC
[21:02:13] *** krawek has joined #angularjs
[21:02:13] *** junmin_ has quit IRC
[21:02:18] <elmcrest> c0bra: ok thx, I try to find out how to do this (beginner just that you know) ... but I guess I can work with that, thx ^^
[21:02:38] *** richiebkr has joined #angularjs
[21:02:56] *** levity_island has quit IRC
[21:03:04] *** cheef has joined #angularjs
[21:03:09] <c0bra> elmcrest: also might need to bind to scroll events
[21:03:12] *** ozooner_ has joined #angularjs
[21:03:12] *** jheady has joined #angularjs
[21:03:20] <wafflej0ck> ckboii89_: I don't believe ng-controller does any DOM manipulation https://github.com/angular/angular.js/blob/master/src/ng/directive/ngController.js#L229
[21:03:23] *** krefik has quit IRC
[21:03:30] <elmcrest> c0bra: good point, thx again
[21:03:35] *** zB0hs has joined #angularjs
[21:03:42] <c0bra> Anyone have experience in moving animations from 1.2 to 1.3?
[21:03:44] *** thedodd has quit IRC
[21:03:54] <cheef> is there a more efficient way to send api requests when a group of form fields have been filed in?
[21:04:07] *** zB0hs has quit IRC
[21:04:11] *** foofoobar has joined #angularjs
[21:04:15] *** JBreit has joined #angularjs
[21:04:21] <cheef> other than $watch
[21:04:29] *** ozooner has quit IRC
[21:04:45] <c0bra> cheef: user interaction?
[21:04:52] <tim92> hi
[21:04:52] *** Oddman has joined #angularjs
[21:05:01] <michaelSharpe> Does anyone know why I injecting $location into a directive is breaking all my tests? They all say "undefined is not a function", and when I remove $location from the directive they all pass. :/
[21:05:08] *** favetelinguis has quit IRC
[21:05:15] *** tim92 has quit IRC
[21:05:33] *** disorder20 has joined #angularjs
[21:05:54] <cheef> ye, ive got a massive form basically, but ive broken it down into smaller forms of related information, when the data is valid i have a model that encapsulates all the data updated
[21:06:14] *** cheef has quit IRC
[21:06:15] *** VinceZa has joined #angularjs
[21:06:22] *** cheef has joined #angularjs
[21:06:42] <cheef> ye, ive got a massive form basically, but ive broken it down into smaller forms of related information, when the data is valid i have a model that encapsulates all the data updated
[21:06:45] <cheef> it can also be shared between other controllers then
[21:07:00] *** Bitpirate has joined #angularjs
[21:07:03] *** Toutenrab has left #angularjs
[21:07:11] *** dhcar_AFK is now known as dhcar
[21:07:42] *** richiebkr has quit IRC
[21:08:06] *** cheef has quit IRC
[21:08:16] *** cheef has joined #angularjs
[21:08:26] *** prbc has joined #angularjs
[21:08:39] *** ozooner__ has joined #angularjs
[21:08:49] *** omarish has joined #angularjs
[21:08:50] *** ozooner_ has quit IRC
[21:08:52] *** krawek has quit IRC
[21:08:57] <cheef> hmm, connection seems a little dodgy
[21:09:29] *** firelinks has quit IRC
[21:09:35] *** cheef has quit IRC
[21:09:36] *** [dalguete] is now known as dalguete
[21:09:41] *** opiates has joined #angularjs
[21:09:47] *** cheef has joined #angularjs
[21:09:47] <oste> anyone able to take a stab at this? http://plnkr.co/edit/zBD9numxY9yskwZeavPA?p=preview
[21:09:48] <deebo> is it possible to have marshalling/unmarshammling between form fields and the model? e.g. if i have a date picker that results in a string 01.01.2015 but i want to post unix timestamps?
[21:09:56] *** elrabin_ has quit IRC
[21:10:07] *** BlinkyBill has joined #angularjs
[21:10:11] <cheef> deebo yes
[21:10:18] <cheef> what version of angular are you using?
[21:10:21] *** Sontakey has joined #angularjs
[21:10:22] <deebo> 1.2
[21:10:30] *** elrabin has joined #angularjs
[21:10:42] *** shaisnir_ has joined #angularjs
[21:10:55] <oste> when using ng-include it is impossible to get the size of the element after the model has changed
[21:11:04] *** cheef has quit IRC
[21:11:08] *** adharris has quit IRC
[21:11:10] *** Marble68 has quit IRC
[21:11:15] *** cheef has joined #angularjs
[21:11:22] <oste> the $includeContentLoaded event seems useful but it fires on ALL includes so that is no good
[21:11:32] <omarish> hi all - could someone help me think about the best way to implement something using angular. i’ve got this view: http://bit.ly/1yRzBVl and i’d like to add functionality so that clicking on anything in the FICO or DTI column adds a group of child rows beneath the clicked cell
[21:11:46] *** shaisnir has quit IRC
[21:11:56] *** Marble68 has joined #angularjs
[21:12:09] *** lianimator has quit IRC
[21:12:10] *** mfunkie has quit IRC
[21:12:12] *** joshontheweb has joined #angularjs
[21:12:14] <omarish> is there a specific design pattern i should be thinking of here?
[21:12:19] <dllama> i'm struggling here trying to get file uploads to work with restangular, payload keeps coming in as [object object]. if anyone can point me int he right direction, i'd greatly appreciate it https://gist.github.com/mvoloz/866890fa910aca842509
[21:12:34] *** krawek has joined #angularjs
[21:12:35] *** krawek has joined #angularjs
[21:12:37] *** junmin has joined #angularjs
[21:12:38] *** snapwich has quit IRC
[21:12:39] *** cheef has quit IRC
[21:12:40] *** TheAceOfHearts has quit IRC
[21:12:49] *** cheef has joined #angularjs
[21:12:57] *** thomastuts has joined #angularjs
[21:12:58] *** TheAceOfHearts has joined #angularjs
[21:12:58] *** snapwich has joined #angularjs
[21:13:05] *** prbc has quit IRC
[21:13:20] <michaelSharpe> Does anyone know why $location might be breaking my unit tests on a directive I am making? I cant find any documentation anywhere to help.
[21:13:32] <jbeaudry> dllama: Why are you stringifying the FormData?
[21:13:39] <edrocks> do build systems usually cache npm packages?
[21:13:49] <dllama> oh, that was just my last attempt, i forgot to remove that b4 pasting the gist
[21:13:55] *** jamto11 has joined #angularjs
[21:14:08] *** merobertsjr has quit IRC
[21:14:16] *** cheef has quit IRC
[21:14:37] *** diosney has quit IRC
[21:14:38] <dreambox> hey boys n girls
[21:14:38] *** foofoobar has quit IRC
[21:14:42] *** d10n-work has joined #angularjs
[21:14:43] <jsheely> hi2u
[21:14:46] <dreambox> :)
[21:14:49] <jbeaudry> dllama: What’’s your server expecting?
[21:15:08] <dreambox> I'm trying to trigger an event (emit) from a child controller, and listen to it (on) from a parent controller...
[21:15:11] <dreambox> doesn't work.
[21:15:27] <dreambox> I know you're gonna ask me a plunker.. but it's a MEAN stack with over 500 files :D
[21:15:33] *** mkc has quit IRC
[21:15:38] <dllama> jbeaudry: its rails and i'm using carrierwave, but its expecting params[:foo][:file] i believe
[21:15:40] *** merobertsjr has joined #angularjs
[21:15:50] <dllama> i mean i can manipulate it once i actually get it to post data correctly,
[21:15:52] <jsheely> dreambox Why not just $broadcast it from the rootScope?
[21:16:08] <dllama> jbeaudry: updated the gist https://gist.github.com/mvoloz/866890fa910aca842509
[21:16:30] <jsheely> dreambox Also the point of the plunker is to abstract out the problem. No one cares about your specific use case.
[21:16:43] <dllama> i get this in rails console: JSON::ParserError - 399: unexpected token at 'object Object]':
[21:16:54] <dreambox> jsheely: 1) I just read this tutorial online: http://toddmotto.com/all-about-angulars-emit-broadcast-on-publish-subscribing/ 2) I saw I can just use $rootScope.object and send it like that but I m polluting the global scope
[21:17:05] <dreambox> jsheely: I know..
[21:17:17] <dreambox> jsheely: would the git repo and a live website help at all?
[21:17:18] <dllama> looking @ the network tab for the put, request payload is [object Object]
[21:17:24] *** kuniyori has quit IRC
[21:17:40] <dreambox> But Actually I dont want you to write code for me I just want to understand how it works
[21:17:55] <jsheely> dreambox Not a polluting the gloal scope. If it works it works
[21:18:00] <wafflej0ck> dreambox: plunkr the smallest possible part to show the problem we don't need all the code, it's part of why plunkr's are useful we can isolate a portion of the code and work on it instead of understanding your whole project, if the relationship between the scopes is correct then $emit and $on should be fine
[21:18:04] *** ajk27 has joined #angularjs
[21:18:19] <reduce> i think i need an ngRoute thats works outside of a SPA
[21:18:21] <jbeaudry> dllama: Not sure. I’m not familiar enough with RestAngular to help. Sorry.
[21:18:24] *** avree has joined #angularjs
[21:18:25] *** mennea has quit IRC
[21:18:40] <reduce> one that can change the controller used on a page based on the querystring
[21:18:40] <dreambox> jsheely: wafflej0ck , I'll try again my emit/on thingie and if it doesnt work I ll plunk it !
[21:18:47] *** avree has quit IRC
[21:18:49] <wafflej0ck> dreambox: cool
[21:19:00] *** mennea has joined #angularjs
[21:19:05] *** a_ghost_irl has joined #angularjs
[21:19:26] <reduce> PS. how many dependencies is too many for a controller?
[21:19:53] *** bengillies has quit IRC
[21:20:03] <sacho_> 4
[21:20:03] <reduce> im counting 8 at the moment, its bloated because we call lots of servicess that hit different rest endpoints to get data for the page
[21:20:04] <dllama> this is insane, when i change teh customPUT around to put formdata first, it tries to hit the wrong url :(
[21:20:06] *** Bitpirate has quit IRC
[21:20:14] *** qdk has quit IRC
[21:20:31] <sacho_> what custom put?
[21:20:33] <jsheely> Redbull time, I've lost my wings
[21:20:39] <reduce> same here
[21:20:46] <dllama> sacho_: restunagular customPUT
[21:20:47] <dllama> 1 sec
[21:20:49] <reduce> but i dont have red bull, noooooo
[21:20:54] *** Zente has joined #angularjs
[21:21:00] *** richiebkr has joined #angularjs
[21:21:19] <dllama> https://gist.github.com/mvoloz/866890fa910aca842509
[21:21:27] <jsheely> http://media.twirlit.com/wp-content/uploads/2013/01/red-bull-dangers.jpeg
[21:21:29] *** Ch4rAss has quit IRC
[21:21:33] <jsheely> There ya go. Redbull for you
[21:21:40] *** josh-k has joined #angularjs
[21:21:41] *** jamto11 has quit IRC
[21:21:55] *** wallerdev has quit IRC
[21:21:57] *** Aliks has quit IRC
[21:22:22] *** joshontheweb has quit IRC
[21:23:08] <sacho_> dllama, that doesn't look anything like the parameter order in the docs
[21:23:23] <Foxandxss> So the cinema here will close, 200km to watch a movie, welcome pirate bay
[21:23:39] *** joshontheweb has joined #angularjs
[21:23:49] <dllama> sacho_: i took it from https://github.com/mgonto/restangular/issues/602
[21:23:58] *** Yahkob has joined #angularjs
[21:24:00] *** jamto11_ has joined #angularjs
[21:24:06] *** jameswork has joined #angularjs
[21:24:34] <dllama> but that wasn't really working, so i keep modifying it to trying different things to get it to work
[21:24:46] *** MaxV has joined #angularjs
[21:24:57] <sacho_> dllama, the headers should be the last parameter
[21:25:00] *** yoshiharu has joined #angularjs
[21:25:13] *** snapwich has quit IRC
[21:25:36] *** monir has joined #angularjs
[21:25:38] *** yoshiharu has left #angularjs
[21:25:41] <Nijikokun> so
[21:25:51] <Nijikokun> still can't get my directive to update the ui
[21:25:53] *** richiebkr has quit IRC
[21:25:55] *** MaxV has quit IRC
[21:25:55] <Nijikokun> when it changes data in the factory
[21:26:11] <dreambox> Ok guys !So, I ll startup uploading in plunker now but in the meantime can you check https://github.com/gkatsanos/isawu ( check in public modules message the 2 controllers ) . The application live is on https://isawu.herokuapp.com/#!/ (but I think u cant do Create if u dont register) (u can just register with dummy stuff there's no verification)
[21:26:13] *** d4rklit3 has quit IRC
[21:26:15] *** mandric has joined #angularjs
[21:26:26] <dllama> sacho_: i think i'm getting closer actually,
[21:26:29] *** MaxV has joined #angularjs
[21:26:34] *** lianimator has joined #angularjs
[21:26:36] <dllama> on rails side i see the image actually being passed in
[21:27:08] *** baweaver has joined #angularjs
[21:27:09] <dllama> https://www.evernote.com/shard/s197/sh/f36587f0-4887-4dc9-bf9b-55533a7a7ce9/ee2b2aac08cfbe441ec35a8691603e3d
[21:27:25] <dllama> i guess now i just need to restructure the actual post to work with strong params
[21:27:26] *** xavia has quit IRC
[21:27:57] *** richiebkr has joined #angularjs
[21:28:03] *** linojon has quit IRC
[21:28:28] *** jamto11_ has quit IRC
[21:28:41] *** Yahkob has quit IRC
[21:28:51] *** Skrypter has joined #angularjs
[21:29:03] <ckboii89_> ng-grid or ng-table for displaying table like stuff?
[21:29:11] *** cthrax has joined #angularjs
[21:29:18] *** mfunkie has joined #angularjs
[21:29:30] *** yandos has joined #angularjs
[21:29:43] *** mchung has quit IRC
[21:29:53] *** linojon has joined #angularjs
[21:30:39] *** simplyshipley has quit IRC
[21:30:48] *** whatadewitt has joined #angularjs
[21:30:52] *** Jdubs has joined #angularjs
[21:31:35] <whatadewitt> hey everyone, i have a controller with a form name "appForm" and I want to be able to tell if that form, on a whole, is "dirty", without checking every "name" in the form.... is that possible?
[21:31:39] <dreambox> Guys, is something like that possible? https://gist.github.com/60f029d40a53e5a7c608
[21:31:51] <dreambox> Put an $on and nested into it make an $emit
[21:32:13] *** Marble68_ has joined #angularjs
[21:32:25] *** richiebkr has quit IRC
[21:32:32] *** richiebk_ has joined #angularjs
[21:32:42] *** m8 has joined #angularjs
[21:32:44] *** jbeaudry has quit IRC
[21:32:51] *** ingsoc has quit IRC
[21:33:03] <m8> Hi, in angular make sense to have an other template engine for string compilation purposes?
[21:33:11] *** RobinBAwesome has joined #angularjs
[21:33:17] *** joshontheweb has quit IRC
[21:33:22] <dllama> sacho_: i'm getting much closer. might anyone be able to suggest how to format formData() to be posted as params[:model]["fields"] ?
[21:33:22] *** edzez has quit IRC
[21:33:23] <m8> or is better to compile template in dom and get the html?
[21:33:24] *** Marble68 has quit IRC
[21:33:25] *** Marble68_ is now known as Marble68
[21:33:30] <jsheely> dreambox Sure you could emit from an $on
[21:33:50] *** kuadrosx_ has joined #angularjs
[21:34:02] *** IvailoStoianov has quit IRC
[21:34:10] <dreambox> I don't understand :(
[21:34:20] *** edzez has joined #angularjs
[21:34:24] <dreambox> I have two normal controllers, I'm emitting an event..
[21:34:24] *** joshontheweb has joined #angularjs
[21:34:25] <dllama> hm, i think i found it
[21:34:27] *** kuadrosx has quit IRC
[21:34:28] <dreambox> why isn't it picked up
[21:34:58] <jsheely> Is this $scope? on the controller or a directive?
[21:35:23] <dreambox> jsheely: which you mean?
[21:35:26] <jsheely> If it's on the controller then I'm guessing you don't have a parent controller. So you aren't $emit to anything
[21:35:57] <jsheely> $emit only goes from the current scope UP
[21:36:07] <jsheely> $broadcast goes from the current scope, DOWN
[21:36:10] <dreambox> jsheely: check the view: https://gist.github.com/57981987620870536c45 it's a nested controller no?
[21:36:27] <dreambox> jsheely: I am emitting from MapController to MessagesController
[21:36:41] <jsheely> Then yea that should work
[21:37:11] <jsheely> Although I don't generally do controllers inside of controllers
[21:37:21] *** BobbieBarker_ has joined #angularjs
[21:37:22] *** Fistful_of_coins has quit IRC
[21:37:30] <dreambox> jsheely: can u check the controller as well? https://github.com/gkatsanos/isawu/blob/master/public/modules/messages/controllers/map-controller.client.controller.js
[21:37:34] *** RobinBAwesome has quit IRC
[21:37:49] <dreambox> jsheely: I didn't want to do it either I was looking for an easy way to pass the variables around.
[21:37:55] *** RobinBAwesome has joined #angularjs
[21:38:08] *** jackdpeterson2 has joined #angularjs
[21:38:08] <jsheely> You can use a service
[21:38:17] <jsheely> Share the service between the controllers
[21:38:22] *** _magus has joined #angularjs
[21:38:32] <dreambox> oh no.. went down that road yesterday, failed miserably :(
[21:38:33] <jsheely> Then any changes to the data in the service will be reflected in both controllers
[21:38:37] *** jaydubya has quit IRC
[21:38:41] <jsheely> It's super easy
[21:38:47] <dreambox> jsheely: I really tried..
[21:38:53] <jackdpeterson2> Hey all, looking https://docs.angularjs.org/tutorial/step_04. I'm curious how I would implement something like this: <title>phone | {{phones.length | filter:query}} - Search: {{query}}</title>
[21:38:59] <dreambox> jsheely: I got suntax errors, and when I fixed all of em, it was just not working
[21:39:02] <jsheely> dreambox what event is not getting fired
[21:39:09] <jackdpeterson2> that seems like it would be the intuitive way to get the filtered count of phones ... but no dice
[21:39:09] <dreambox> jsheely: 'myEvent'
[21:39:09] <jsheely> the leafletDirectiveMap.click?
[21:39:12] <jsheely> okay
[21:39:12] *** jaydubya has joined #angularjs
[21:39:14] *** anth0ny has quit IRC
[21:39:22] <dreambox> no the click works fine.
[21:39:23] <jsheely> So you get to the $on code though
[21:39:31] *** Reskp has joined #angularjs
[21:39:37] <dreambox> It's clicking and it's adding the marker stuff all good.
[21:39:39] *** anth0ny has joined #angularjs
[21:39:56] <dreambox> Now I want to get the lat and lng values, and send them to this fellow : https://github.com/gkatsanos/isawu/blob/master/public/modules/messages/controllers/messages.client.controller.js
[21:40:01] <_magus> is it possible to use ng-class like this? ng-class="{ {{widget.color}}: some condition }"
[21:40:13] <jsheely> dreambox Add a $rootScope.$on('myEvent) and see if it gets picked up by the rootScope. That'll at least tell you if it's firing or if you have a scoping isolation issue
[21:40:14] <_magus> I'm trying to dynamically change the class value
[21:40:25] <dreambox> jsheely: this way on the view I can display the values of these lat and lng .. (the inputs)
[21:40:49] <dreambox> jsheely: ok I'll change $scope to $rootScope
[21:41:14] <jsheely> dreambox I don't see where you're listening for myEvent
[21:41:22] <sacho_> _magus, just bind ng-class to an object you change in your controller or directive
[21:41:40] <dreambox> jsheely: https://github.com/gkatsanos/isawu/blob/master/public/modules/messages/controllers/messages.client.controller.js
[21:41:58] <sacho_> e.g. ng-class="classobj" classobj = {}; classobj[widget.color] = condition
[21:41:58] <_magus> sacho: widget.color changes in the controller.
[21:42:06] <_magus> it just only get it's first value
[21:42:15] *** sk87 has quit IRC
[21:42:21] <_magus> then when it ischanged but the option is still selected the color doesn't change
[21:42:22] <sacho_> well, keep changing the object as widget.color changes
[21:42:22] *** pipoo has quit IRC
[21:42:41] <dreambox> jsheely: (I just pushed again the latest changes)
[21:42:54] <jsheely> It work?
[21:42:54] <_magus> hmm I'll investigate
[21:43:01] <_magus> thanks sacho
[21:43:20] *** phuh has quit IRC
[21:43:41] *** jaydubya has quit IRC
[21:43:56] *** phuh has joined #angularjs
[21:44:01] <sacho_> jsheely, your $emit is called before you call .create()(where do you call create() anyway?)
[21:44:04] *** Reskp has quit IRC
[21:44:12] *** joshontheweb has quit IRC
[21:44:22] <dllama> sacho_: i got it working, i'm a doofus that forgot to other keys to strong params in rails
[21:44:57] <dreambox> $rootScope.$on('myEvent', function (event, args){console.log(args);});
[21:44:58] *** ngbot has joined #angularjs
[21:44:58] <ngbot> [angular.js] btford pushed 1 new commit to v1.2.x: http://git.io/jKR8hQ
[21:44:58] <ngbot> angular.js/v1.2.x 1afeb37 Tero Parviainen: docs(guide/scope): describe watch depths...
[21:44:58] *** ngbot has left #angularjs
[21:45:08] *** ngbot has joined #angularjs
[21:45:08] <ngbot> [angular.js] btford pushed 1 new commit to master: http://git.io/hr1gKg
[21:45:08] <ngbot> angular.js/master 0f7bcfd Tero Parviainen: docs(guide/scope): describe watch depths...
[21:45:08] *** ngbot has left #angularjs
[21:45:09] <dreambox> jsheely: didn't work no, no event triggered :(
[21:45:22] *** joshontheweb has joined #angularjs
[21:45:33] *** thedodd has joined #angularjs
[21:45:54] *** lw has joined #angularjs
[21:45:54] <dreambox> jsheely: did you see https://github.com/gkatsanos/isawu/blob/master/public/modules/messages/controllers/messages.client.controller.js ? This is from a MeanJS stack ; you see, it's all inside a $scope.create function.. could this be the problem?
[21:45:56] *** maho has joined #angularjs
[21:46:00] <jsheely> dreambox What sacho_ said. I didn't take notice that your $$on is inside a function $create
[21:46:06] <jsheely> er $scope.create()
[21:46:09] <sacho_> sorry, i got the names wrong
[21:46:26] *** ozooner__ has quit IRC
[21:46:50] *** Zente has quit IRC
[21:46:53] <jsheely> dreambox You need to move your $on('myEvent') outside of the create() function
[21:47:31] <dreambox> ah ah , wait
[21:47:40] *** maho has quit IRC
[21:47:46] *** jeffszusz has quit IRC
[21:47:46] <dreambox> really?
[21:47:51] *** yandos has quit IRC
[21:48:28] *** mennea has quit IRC
[21:48:32] <jsheely> Indeed
[21:49:03] *** mennea has joined #angularjs
[21:49:23] *** DrJae has quit IRC
[21:49:32] *** prbc has joined #angularjs
[21:50:01] <dreambox> hm, ye, but now there's another problem.. it suddenly throws undefined function in the getMap() ..
[21:50:19] <dreambox> apparently it's trying to do something faster and the leaflet dependency is not loaded
[21:51:05] *** mary5030 has quit IRC
[21:51:17] *** brunoB has joined #angularjs
[21:51:18] *** Latros-OS has quit IRC
[21:51:35] *** TheAceOfHearts has quit IRC
[21:51:39] *** TheAceOfHearts1 has joined #angularjs
[21:52:20] *** Latros-OS has joined #angularjs
[21:52:46] *** jamto11 has joined #angularjs
[21:53:14] *** jonathanpglick has quit IRC
[21:53:28] <jsheely> dreambox You should wrap leaflet into a service so that you can make sure that it's a depdendecy in your controller
[21:53:31] *** _ritchie_ has quit IRC
[21:53:38] <dllama> w000000 4hrs later i finally got images to upload to rails/carrierwave!! sooooo damn excited
[21:53:43] *** jaydubya has joined #angularjs
[21:54:23] *** {DV8} has joined #angularjs
[21:54:29] <dreambox> jsheely: it's a directive.. But hold on it might be cache.. cause I removed the emits n stuff and it still fails
[21:54:40] *** baweaver has quit IRC
[21:54:49] <dreambox> ok that's fckin weird. TypeError: Cannot read property 'getMap' of undefined
[21:54:51] *** omarish has quit IRC
[21:54:53] <dreambox> All of a sudden.
[21:54:54] *** shackleford has quit IRC
[21:55:10] *** kuadrosx_ is now known as kuadrosx
[21:55:10] *** joshontheweb has quit IRC
[21:55:10] *** mchung has joined #angularjs
[21:55:11] <jsheely> dreambox time for a beer imo
[21:55:15] *** baweaver has joined #angularjs
[21:55:33] <dreambox> I have belgian beer looking at me straight ahead
[21:55:35] <dreambox> ;)
[21:55:41] *** linojon has quit IRC
[21:55:45] <dreambox> not _any_ beer
[21:55:52] *** monir has quit IRC
[21:55:59] *** Aliks has joined #angularjs
[21:56:21] *** Reskp has joined #angularjs
[21:56:42] *** joshontheweb has joined #angularjs
[21:56:52] <dreambox> angular.module('messages').controller('MapController', ['$scope', 'leafletData',function($scope, $rootScope, leafletData) {
[21:56:55] <dreambox> does this syntax look ok to you?
[21:57:15] <wafflej0ck> dreambox: nope
[21:57:20] <wafflej0ck> dreambox: missing '$rootScope'
[21:57:22] *** jamto11 has quit IRC
[21:57:42] <wafflej0ck> dreambox: I don't personally 'manually' make things minsafe I just use ngAnnotate so I don't screw that up (because I always do)
[21:57:48] *** thomastuts has quit IRC
[21:58:11] <dreambox> SHIT! Fixed and event works
[21:58:16] <dreambox> wafflej0ck: ngAnnotate?
[21:58:24] *** shackleford has joined #angularjs
[21:58:26] * jsheely claps for dreambox
[21:58:27] <dreambox> I think its loaded in my gruntfile of the MeanJS stack..
[21:58:27] *** shackleford has quit IRC
[21:58:29] <oniijin> ngannotate that shit
[21:58:29] <wafflej0ck> dreambox: grunt plugin that does that stuff for you before you run it through minification
[21:58:42] *** jonathanpglick has joined #angularjs
[21:58:42] <dreambox> ah I got this !
[21:58:47] <reduce> hrm, maybe what we need to do is make this page of our site a ngApp of its own, so that we can use routeProvider such that i can control the controller used depending on the url the other non angular use during redirection to the page
[21:58:54] <dreambox> you mean the plugin that adds the dependencies automatically?
[21:59:02] *** linojon has joined #angularjs
[21:59:03] <reduce> *non angular pages
[21:59:15] <wafflej0ck> dreambox: it just does the minsafe syntax with ['string','versions','here']
[21:59:21] *** AngularUI has joined #angularjs
[21:59:21] <AngularUI> [ui-router] jodytate opened pull request #1507: change to possessive "its" vs contraction "it's" (master...patch-1) http://git.io/I6kPlg
[21:59:21] *** AngularUI has left #angularjs
[21:59:26] *** elrabin_ has joined #angularjs
[21:59:32] <oniijin> https://www.npmjs.org/package/grunt-ng-annotate
[21:59:33] <dreambox> wafflej0ck: what's the minsafe?
[21:59:37] <wafflej0ck> dreambox: during minifaction the strings aren't removed sot he injector can find the appropriate parts to inject the variables are reduced to things like a, b, c
[21:59:40] *** baweaver has quit IRC
[21:59:52] <wafflej0ck> dreambox: see a Note on Minification here edrocks: npm caches things typically but not between projects since they each have their own package.json
[21:59:55] <wafflej0ck> oops
[21:59:58] <wafflej0ck> bad paste
[22:00:02] <wafflej0ck> https://docs.angularjs.org/tutorial/step_05
[22:00:04] *** shackleford has joined #angularjs
[22:00:11] *** AngularUI has joined #angularjs
[22:00:11] <AngularUI> [ui-router] christopherthielen pushed 2 new commits to master: http://git.io/Xgepeg
[22:00:12] <AngularUI> ui-router/master dbf8f79 jody tate: change to possessive "its" vs contraction "it's"
[22:00:12] <AngularUI> ui-router/master 725cda6 Chris Thielen: Merge pull request #1507 from jodytate/patch-1...
[22:00:12] *** AngularUI has left #angularjs
[22:00:14] <jsheely> wafflej0ck Good thing that wasn't your password~
[22:00:17] *** klaut has joined #angularjs
[22:00:19] <wafflej0ck> jsheely: hehe right
[22:00:29] *** brunoB has quit IRC
[22:00:32] <wafflej0ck> jsheely: I use KeePass it wipes the clipboard after 10 seconds
[22:00:34] <edrocks> wafflej0ck: I was wondering about caches in the context of a continuous deployment system
[22:00:39] *** klaut_ has quit IRC
[22:00:45] <wafflej0ck> jsheely: again software because I'm stupid sometimes :)
[22:01:02] <jsheely> Utilities are my favorite programs
[22:01:04] *** ASUchander1 has joined #angularjs
[22:01:13] <edrocks> My build is only just over 3 min now without cache and I think a cache would introduce alot of possible edge cases
[22:01:14] <jsheely> Dito, WinSplit Revolution, etc
[22:01:18] <reduce> ie have links on the other pages like <a href="addCustomer.aspx/draft".../> <a href="addCustomer.aspx/published".../> and then hope ngRoute will pick up the published / draft part of the url
[22:01:24] <dreambox> Use an inline annotation where, instead of just providing the function, you provide an array. This array contains a list of the service names, followed by the function itself.
[22:01:29] *** JohnFree has quit IRC
[22:01:29] <dreambox> That's what I'm doing no?
[22:01:31] <reduce> hold on, iis might balk on that
[22:01:49] <wafflej0ck> edrocks: yeah in Jenkins it doesn't automatically clear out the node modules or bower components it uses the same working directory for a given project, probably depends on the particular CI program though
[22:02:08] <reduce> hrm, did i read somewhere ngRoute can work of querystring params?
[22:02:12] <edrocks> wafflej0ck: o im making a custom one
[22:02:41] *** nicholes has quit IRC
[22:02:50] *** FIFOd[a] has quit IRC
[22:03:02] *** elrabin has quit IRC
[22:03:07] *** thirdknife has joined #angularjs
[22:03:24] *** mbenadda__ has joined #angularjs
[22:03:46] *** ASUChand_ has joined #angularjs
[22:03:53] *** ASUChand_ is now known as ASUChander_
[22:04:19] *** jheady has left #angularjs
[22:04:24] *** loverajoel has quit IRC
[22:04:42] *** ASUChander has quit IRC
[22:04:43] <reduce> what was that about using urlsToPage.html/#/something syntax for urls?
[22:05:10] <BobbieBarker_> anyone have any experience using codeship to deploy to divshot?
[22:05:13] <reduce> do web servers ignore the /# and everything after by default?
[22:05:17] *** Reskp has quit IRC
[22:05:23] <reduce> or did i just make that up lol?
[22:05:36] <BobbieBarker_> old browsers ignore it
[22:05:38] <ioudas> Any ionic users in here? I cant seem to get $ionicLoading to work with an existing controller.... just tells me show is undefined. Any help would be appreciated.
[22:05:43] *** twelverobots has joined #angularjs
[22:05:53] *** ASUchander1 has quit IRC
[22:05:54] <BobbieBarker_> ioudas there is a very active #ionic channel
[22:06:05] *** joshontheweb has quit IRC
[22:06:09] <ioudas> its not active at all.
[22:06:18] <ioudas> ive been there for months.
[22:06:23] *** snapwich has joined #angularjs
[22:06:28] <BobbieBarker_> lol
[22:06:38] <BobbieBarker_> i've always gotten help on ionic stuff when i need it in there
[22:06:46] <ioudas> i hear ya.
[22:06:46] *** Asiajey has joined #angularjs
[22:07:02] *** whatadewitt has quit IRC
[22:07:08] *** loverajo_ has joined #angularjs
[22:07:31] *** baweaver has joined #angularjs
[22:07:50] *** amphetamines has joined #angularjs
[22:07:54] *** mbenadda__ has quit IRC
[22:08:40] *** opiates has quit IRC
[22:08:46] *** joshontheweb has joined #angularjs
[22:08:52] *** deveras has joined #angularjs
[22:09:22] *** thirdknife has quit IRC
[22:09:23] *** Aliks has quit IRC
[22:09:27] *** Siecje has left #angularjs
[22:09:53] *** saucey has quit IRC
[22:10:06] *** yelvert has joined #angularjs
[22:10:45] *** danecando has quit IRC
[22:11:51] *** Aliks has joined #angularjs
[22:12:55] *** Snugug has quit IRC
[22:13:16] *** spatialbrew has quit IRC
[22:13:36] *** gnrlbzik has quit IRC
[22:13:52] *** Joe_knock has joined #angularjs
[22:14:26] *** 5EXABF34A has joined #angularjs
[22:15:40] *** thebope has joined #angularjs
[22:15:54] *** nicholes has joined #angularjs
[22:16:05] *** 5EXABF34A has quit IRC
[22:16:52] *** joshontheweb has quit IRC
[22:16:55] *** allgeek has joined #angularjs
[22:17:58] *** saucey has joined #angularjs
[22:18:00] *** joshontheweb has joined #angularjs
[22:18:17] *** Reskp has joined #angularjs
[22:18:45] *** mennea has quit IRC
[22:18:52] *** mmoriarity has quit IRC
[22:19:06] *** mennea has joined #angularjs
[22:19:14] *** elrabin_ has quit IRC
[22:19:38] *** ASUChander has joined #angularjs
[22:19:54] *** Siecje has joined #angularjs
[22:20:04] *** a_ghost_irl has quit IRC
[22:20:47] *** zzing has joined #angularjs
[22:20:58] *** ozooner__ has joined #angularjs
[22:21:50] *** Reskp has quit IRC
[22:21:58] *** _ritchie_ has joined #angularjs
[22:22:12] *** ASUChander_ has quit IRC
[22:22:33] *** iribarne has quit IRC
[22:23:04] *** linojon has quit IRC
[22:23:07] *** one0one has joined #angularjs
[22:23:14] *** elrabin has joined #angularjs
[22:23:41] *** mchung has quit IRC
[22:23:48] *** iribarne has joined #angularjs
[22:23:55] *** loverajo_ is now known as loverajoel
[22:24:22] *** vlitzer_ has quit IRC
[22:24:37] *** mary5030 has joined #angularjs
[22:25:01] *** joshskidmore has quit IRC
[22:25:06] *** d4rklit3 has joined #angularjs
[22:25:09] *** d4rklit3 has quit IRC
[22:25:27] *** ozooner has joined #angularjs
[22:25:35] *** d4rklit3 has joined #angularjs
[22:25:42] *** ozooner__ has quit IRC
[22:26:03] *** mmoriarity has joined #angularjs
[22:26:29] *** joshskidmore has joined #angularjs
[22:27:13] *** firelinks has joined #angularjs
[22:27:48] *** joshontheweb has quit IRC
[22:27:50] *** mmoriarity has quit IRC
[22:27:55] *** SoulBlade has joined #angularjs
[22:28:11] *** wallerdev has joined #angularjs
[22:28:25] *** mmoriarity has joined #angularjs
[22:28:31] *** vlitzer has joined #angularjs
[22:28:32] *** dhcar is now known as dhcar_AFK
[22:28:56] *** joshontheweb has joined #angularjs
[22:29:19] *** elrabin has quit IRC
[22:29:20] *** loverajoel has quit IRC
[22:29:44] *** jamto11 has joined #angularjs
[22:30:20] *** elrabin has joined #angularjs
[22:30:50] *** linojon has joined #angularjs
[22:30:54] *** edy has quit IRC
[22:31:47] *** nicholes has quit IRC
[22:31:53] <themime> if following https://github.com/johnpapa/angularjs-styleguide#application-structure-lift-principle where would one put filters? component?
[22:32:19] *** vlitzer has quit IRC
[22:32:25] *** mzabriskie_ has joined #angularjs
[22:32:39] *** SoulBlade has quit IRC
[22:32:42] *** mchung has joined #angularjs
[22:33:12] *** jonr22 has joined #angularjs
[22:33:13] *** robdubya has joined #angularjs
[22:33:20] <ioudas> Any ionic users in here? I cant seem to get $ionicLoading to work with an existing controller.... just tells me show is undefined. Any help would be appreciated.
[22:33:47] <dreambox> jsheely: things are getting complicated now :)
[22:33:54] <reduce> im thinking that the best architecture around angular js in our large existing web application is to have multiple single page applications, where each SPA maps to a module of functionality
[22:34:13] <dreambox> jsheely: I moved the $on outside the $scope.create, but now I can't access the message object which is created by .. .create ...
[22:34:43] <jsheely> dreambox Which is why services are easier ><
[22:34:51] *** mzabriskie has quit IRC
[22:34:51] *** mzabriskie_ is now known as mzabriskie
[22:35:02] <dreambox> shit
[22:35:08] <Grokling> themime: Before getting buried in johnpapa's way of doing things, have you considered the Foxandxss style? http://angular-tips.com/blog/2014/09/my-new-angular-workflow-with-gulp/
[22:35:18] <reduce> we would need to call specific routes within SPAa from existing non angular pages
[22:35:26] *** elrabin has quit IRC
[22:35:32] <jsheely> dreambox I don't understand what the point of thise create function is to begin with. But message should probably just be on your scope
[22:35:36] <jsheely> Then you don't have to worry about it
[22:35:39] <reduce> so how does that playout in relation to the server
[22:36:03] <Grokling> dreambox: You aren't going to be able to avoid services/factories for ever. I recommend just getting it over with and making your life easier..
[22:36:05] <dreambox> jsheely: this is the base of https://github.com/meanjs/mean
[22:36:07] <Foxandxss> themime: I personally use papa's style with my style put on that article (but read better the readme, it is updated)
[22:36:13] <Foxandxss> I changed the "apps" folder for "features"
[22:36:14] <Foxandxss> seems nicer
[22:36:35] *** Aliks has quit IRC
[22:36:47] *** shinnya has quit IRC
[22:37:08] *** nicholes has joined #angularjs
[22:37:15] <jsheely> dreambox Good lesson to learn. Just because someone else did it doesn't make it right =()
[22:37:22] <dreambox> jsheely: :D
[22:37:39] <dreambox> I'll raise the issue in their issue queue, but I think they said "there is a reason for this pattern"
[22:37:40] <jsheely> Their scenario is different that yours
[22:37:42] *** tsalb has quit IRC
[22:37:47] <wafflej0ck> dreambox: http://stackoverflow.com/questions/26695410/how-to-get-the-http-request-data-in-my-example/26695484#26695484 <-- haven't been following the whole ordeal but here's a general how to setup a simple service
[22:37:47] <nicholes> If someone else did it, I like to assume that it's wrong!
[22:37:48] *** jonr22 has quit IRC
[22:37:53] *** bayousoft has quit IRC
[22:38:05] <tkdaj> does anyone know why an element may not render with this directive on it: http://plnkr.co/edit/h70EojGmUw1arS3dKSCG?p=catalogue
[22:38:21] <jsheely> I have the worst headache right now, ugh
[22:38:22] <tkdaj> all I have is <table class="table" paginate-table>
[22:38:23] *** annlewis has quit IRC
[22:38:24] *** bayousoft has joined #angularjs
[22:38:26] <dreambox> wafflej0ck: thanks :) I have some factory examples and I tried'em yesterday without success
[22:38:27] <jsheely> Damn allergies
[22:38:42] <tkdaj> and for some reason when I add that directive the table won't render
[22:38:43] *** joshontheweb has quit IRC
[22:38:49] <dreambox> wafflej0ck: the thing is I am not http queuring anything.. I'm just interacting with a map object...
[22:38:54] <dllama> anyone know off the hand why json data from server is not fully shown in view? i'm just doing {{object | json }} to get a dump of it, and i'm not seeing all the params that i see from the server when hitting the path
[22:38:59] <themime> Grokling: Foxandxss thanks guys! Foxandxss we're about to use your toastr wrapper for notifications, i can't wait to whip up a demo. ill definitely check it out
[22:39:02] *** conner_ has joined #angularjs
[22:39:24] <wafflej0ck> dreambox: that's okay too just about a shared data and set of functions that is a single persistent instance throughout the running of the web-app
[22:39:27] *** marshall_ has quit IRC
[22:39:38] <wafflej0ck> dreambox: doesn't strictly have to do with $http or anything
[22:39:43] <themime> Grokling: Foxandxss wait where is the readme?
[22:39:44] *** conner_ has quit IRC
[22:39:49] <Foxandxss> https://github.com/Foxandxss/fox-angular-gulp-workflow
[22:40:03] <Foxandxss> updated the article pointing to it as well
[22:40:04] *** mbildner has joined #angularjs
[22:40:07] <tkdaj> does anyone know why an element may not render with this directive on it: http://plnkr.co/edit/h70EojGmUw1arS3dKSCG?p=catalogue
[22:40:07] <tkdaj> all I have in my HTML is <table class="table" paginate-table>
[22:40:08] *** joshontheweb has joined #angularjs
[22:40:12] <dreambox> wafflej0ck: so basically I define a factory that has some data and then I use some "public API" to return that data when needed
[22:40:27] <nicholes> Foxandxss: Do each of your submodules also have "images" "js" and "scss" folders?
[22:40:29] *** dejanr has joined #angularjs
[22:40:29] *** NormySan^ has quit IRC
[22:40:32] *** Jr3Says has quit IRC
[22:40:41] *** szymek_ has joined #angularjs
[22:40:42] *** FIFOd[a] has joined #angularjs
[22:40:43] <Foxandxss> nicholes: the submodules are inside of the "js" folder
[22:40:48] <Foxandxss> so there is no more js folder on it
[22:40:54] <wafflej0ck> dreambox: yeah you could generally reference the data directly in the service from the controllers too but just keep in mind manipulations of that data object effect all references to it
[22:40:56] <Foxandxss> also, css per submodule is a bad bad idea
[22:41:00] <themime> Foxandxss: thanks!
[22:41:07] <wafflej0ck> dreambox: and you don't ever want to replace the data object just repopulate it using angular.copy instead
[22:41:08] <nicholes> Foxandxss: Why? Doesn't it make it easy to package up and share?
[22:41:09] <dreambox> But I still won't be able to call the factory from within my $scope.create ..
[22:41:12] <Foxandxss> gets hairy soon
[22:41:25] <Foxandxss> having to look several css files to look for a style
[22:41:30] <tkdaj> never mind... I figured it out. The transclude
[22:41:33] <tkdaj> was the problem
[22:41:42] <Foxandxss> on css at least, better to have them outside
[22:41:43] <themime> hm the thing i don't like about this is having html files in a JS folder i guess
[22:41:53] *** dhcar_AFK is now known as dhcar
[22:41:54] <themime> that was something about papa's guide i liked
[22:41:55] <Foxandxss> worked the best for me on the past, tried submodules, but was problematic
[22:42:04] *** avree has joined #angularjs
[22:42:06] *** mbenadda__ has joined #angularjs
[22:42:09] <themime> mind explaining the problem? i feel like i may be approaching them soon
[22:42:10] <nicholes> Foxandxss: I'd hope that I could use source maps to find the file within my one big concatenated css?
[22:42:14] *** mbenadda__ has quit IRC
[22:42:23] <TheAceOfHearts1> the real problem with lots of submodules is that you end up having to track it in weird ways
[22:42:24] <reduce> maybe im thinking of this wrong, its the browser that handles the request for a page, so if the <a> tag links to /this/page#somethingelse/here it should only request /this/page from the server and the angular on /this/page should get to evaluate #somethingelse/here
[22:42:24] *** mbenadda_ has joined #angularjs
[22:42:26] <Foxandxss> nicholes: maybe that helps, yeah
[22:42:28] <TheAceOfHearts1> but if you used commonjs it'd be sorta nicer
[22:42:28] *** MistahKurtz has quit IRC
[22:42:42] *** marshall_ has joined #angularjs
[22:42:44] *** anth0ny has quit IRC
[22:42:49] <Foxandxss> themime: not the first one complaining about html on the js folder
[22:42:51] <reduce> so that would mean i dont have a problem
[22:42:54] <reduce> woho
[22:42:57] <Foxandxss> but the html is going to be converted to javascript automagically
[22:42:58] *** gordroidJS has joined #angularjs
[22:43:01] *** yelvert has quit IRC
[22:43:06] *** mary5030 has quit IRC
[22:43:12] <Foxandxss> maybe I change that in a future if people still complain
[22:43:28] *** yelvert has joined #angularjs
[22:43:29] *** phuh has quit IRC
[22:43:42] *** mary5030 has joined #angularjs
[22:44:00] *** phuh has joined #angularjs
[22:44:47] *** brantje`away is now known as brantje
[22:44:52] *** jagga__ has joined #angularjs
[22:45:17] <themime> yea maybe its just a picky syntax/semantic thing
[22:45:45] <themime> could just call it "feature" maybe
[22:45:46] <Foxandxss> yeah, I respect that
[22:45:53] *** mchung has quit IRC
[22:45:56] *** kreiggers has joined #angularjs
[22:45:59] <Foxandxss> I have a private project where we don't have js
[22:46:05] <Foxandxss> but directly features and common
[22:46:10] <Foxandxss> maybe I explore that way
[22:47:03] <dllama> anyone know why this is happening? https://gist.github.com/mvoloz/7f391bf01dc084ef5826 — output.log is just a dump of the object in view
[22:47:12] *** walden is now known as walden|afk
[22:47:47] *** yelvert has quit IRC
[22:47:52] *** kas84 has joined #angularjs
[22:48:24] *** Ilgrim has joined #angularjs
[22:48:25] *** mary5030 has quit IRC
[22:48:39] *** mjs2600_ has quit IRC
[22:48:49] *** mennea has quit IRC
[22:49:01] *** jagga_ has quit IRC
[22:49:25] *** mennea has joined #angularjs
[22:49:39] *** joshontheweb has quit IRC
[22:50:08] *** conan_the_destro has quit IRC
[22:50:39] *** anything has joined #angularjs
[22:50:50] <anything> which documentation needs help the most?
[22:50:51] *** thebope has quit IRC
[22:51:02] *** conan_the_destro has joined #angularjs
[22:51:05] *** TinkerTyper has quit IRC
[22:51:15] *** gordroidJS has quit IRC
[22:51:16] <themime> anything: im having a hard time understanding you can you try asking in a different way?
[22:51:19] *** joshontheweb has joined #angularjs
[22:51:24] <themime> oh
[22:51:26] <themime> god im tired
[22:51:45] *** jheady has joined #angularjs
[22:51:49] <anything> which part of the angular documentation needs help? Are there any gaping holes in the documnetiation?
[22:51:49] *** night-owl is now known as zz_night-owl
[22:51:51] *** qdk has joined #angularjs
[22:51:56] <nicholes> themime: Go to sleep
[22:52:03] *** diosney has joined #angularjs
[22:52:13] *** amphetamines is now known as opiates
[22:52:33] *** dreambox_ghost has joined #angularjs
[22:52:34] *** dgee has quit IRC
[22:52:45] <themime> haha its only 5pm here. just time to stop looking at code and irc
[22:52:45] *** Reskp has joined #angularjs
[22:52:49] <themime> games or something
[22:52:53] <themime> good luck everyone!
[22:52:57] *** chrisshattuck has quit IRC
[22:52:57] <wafflej0ck> later themime
[22:53:27] <dllama> nevermind about my previous quesiton, total PEBCAK
[22:53:28] *** mzabriskie has quit IRC
[22:53:57] *** FunnyLookinHat has quit IRC
[22:54:23] *** m8 has quit IRC
[22:54:40] *** cboden has quit IRC
[22:54:52] *** shackleford has quit IRC
[22:55:05] *** jheady has quit IRC
[22:55:09] *** FunnyLookinHat has joined #angularjs
[22:55:42] *** dreambox has quit IRC
[22:55:47] *** mupkoo has joined #angularjs
[22:55:55] *** mmoriarity has left #angularjs
[22:55:57] <themime> Foxandxss: i still don't know where to put filters. common/component?
[22:56:23] <Foxandxss> if the filter is common for every feature common/filters is a good place
[22:56:24] *** diosney has quit IRC
[22:56:59] *** sssilver_ has joined #angularjs
[22:57:09] *** Reskp has quit IRC
[22:57:13] *** anything has quit IRC
[22:57:15] <sssilver_> Hey guys... my builds started failing today because npm ERR! 404 'grunt-ng-annotate' is not in the npm registry.
[22:57:21] <sssilver_> what gives?
[22:57:36] *** emmesswhy has joined #angularjs
[22:57:43] *** slopjong has joined #angularjs
[22:57:45] <sssilver_> has it been renamed or smth?
[22:57:58] *** Snugug has joined #angularjs
[22:57:59] *** _magus has quit IRC
[22:58:23] *** thedodd has quit IRC
[22:58:30] *** jbeaudry has joined #angularjs
[22:58:48] *** Latros-OS has quit IRC
[22:59:22] *** travm has quit IRC
[22:59:29] *** gurke_ has quit IRC
[22:59:39] *** mchung has joined #angularjs
[23:00:22] *** jheady has joined #angularjs
[23:00:34] *** joshontheweb has quit IRC
[23:00:37] *** rashidkpc has quit IRC
[23:00:53] *** jheady has quit IRC
[23:00:59] <tkdaj> anyone know how to find the max number of <td> in any of the <tr>s in a table not counting any nested tables?
[23:01:04] *** rashidkpc has joined #angularjs
[23:01:18] *** shackleford has joined #angularjs
[23:01:38] <nicholes> tkdaj: Is this a homework problem? ;)
[23:01:41] *** joshontheweb has joined #angularjs
[23:01:47] *** Marble68 has quit IRC
[23:02:03] *** baweaver has quit IRC
[23:02:09] *** sheerun has quit IRC
[23:02:29] <oste> anyone know of a good solution for waiting on ng-include to load?
[23:02:30] <oste> http://plnkr.co/edit/zBD9numxY9yskwZeavPA?p=preview
[23:02:37] *** baweaver has joined #angularjs
[23:02:41] <wafflej0ck> nicholes: if train A leaves Denver at 3pm.... :)
[23:02:55] *** rashidkpc has quit IRC
[23:03:01] <oniijin> ask wolfram alpha
[23:03:19] *** rashidkpc has joined #angularjs
[23:03:40] <wafflej0ck> good answer oniijin
[23:03:43] <snurfery> just wasted so much time trying to figure out why FormData wasn't working with angular-file-upload
[23:03:51] *** VinceZa has quit IRC
[23:03:52] <snurfery> switch to plain $http and it worked immediately
[23:03:53] <snurfery> ugh
[23:03:57] *** rashidkpc has quit IRC
[23:04:00] <oniijin> what were u using
[23:04:00] *** yelvert has joined #angularjs
[23:04:02] <oniijin> $resource?
[23:04:02] *** JohnBat26 has quit IRC
[23:04:11] *** yelvert has quit IRC
[23:04:14] *** richiebk_ has quit IRC
[23:04:15] <snurfery> angular-file-upload has a service called $upload
[23:04:25] *** yiati has joined #angularjs
[23:04:27] <oniijin> is it borked
[23:04:35] *** richiebkr has joined #angularjs
[23:04:37] *** yelvert has joined #angularjs
[23:04:47] <themime> Foxandxss: im about to learn gulp so your site is having multiple uses :)
[23:04:55] *** goodenough has joined #angularjs
[23:04:58] *** rashidkpc has joined #angularjs
[23:04:58] <snurfery> works fine for most things, but not FormData objects apparently
[23:05:07] *** akrikos has quit IRC
[23:05:12] <Foxandxss> themime: gulp is fantastic but can be a little pain in the ass
[23:05:23] *** wolf2k_huh is now known as wolfman2000
[23:05:45] <themime> im hopefully going to also be experimenting with node+express so i figure id just go full JS haha
[23:05:47] *** edrocks has quit IRC
[23:05:49] *** mtsr has quit IRC
[23:05:50] <wafflej0ck> oniijin: hmm http://www.wolframalpha.com/input/?i=Denver+to+Chicago+at+55mph%2C+Chicago+to+Denver+at+45mph not sure how to phrase the question
[23:06:22] <snurfery> such a hassle, I was trying to figure out how to crop image data client-side, then upload that cropped data
[23:06:29] *** tsunamie has quit IRC
[23:06:34] <snurfery> and for some reason that's just the biggest thing ever
[23:07:14] *** pipoo has joined #angularjs
[23:07:15] *** tsunamie has joined #angularjs
[23:07:16] *** baweaver has quit IRC
[23:07:26] <wafflej0ck> eh well gotta at least decode to bitmap remove some pixels and then reencode the bitmap, does sound like a bit of work though
[23:07:29] *** tsunamie has quit IRC
[23:07:34] *** hernan has joined #angularjs
[23:07:42] *** jdcasey has quit IRC
[23:07:46] <hernan> hey
[23:07:56] <snurfery> that part was pretty straightforward using canvas
[23:08:08] <nicholes> wafflej0ck: It's simple. Your variable is t for time. Just write the position functions of each of the trains in terms of t, then set them equal to each other, then solve for t! :D
[23:08:11] <snurfery> it was posting the data back to the server that was messing me up
[23:08:17] *** zanea|away is now known as zanea
[23:08:26] <hernan> guys, if i have $scope.posts = [].... and then, i have a input name='posts', the variables names collide... how can i avoid this ?
[23:08:44] <wafflej0ck> nicholes: ah true I suppose if i just gave wolfram alpha the equations it could solve it but was hoping for it to do the plain english interpretation
[23:08:49] *** mupkoo has quit IRC
[23:08:49] <oniijin> name it something else
[23:09:02] <hernan> oniijin: but i dont want to.. is there some otehr way ?
[23:09:05] <oniijin> u should be using objects on scope anyway
[23:09:08] <hernan> i bet there is
[23:09:15] *** tsunamie has joined #angularjs
[23:09:17] *** zwacky has quit IRC
[23:09:27] *** tsunamie has quit IRC
[23:09:29] *** yelvert has quit IRC
[23:09:33] <wafflej0ck> nicholes: like it's answer to, "what is the meaning of life"
[23:09:36] <nicholes> hernan: Do something like myForm.posts = []. That way you won't have issues with children scope dealing with copy-by-value.
[23:09:40] *** travm has joined #angularjs
[23:09:51] <oniijin> BUT HE DOESN'T WANT TO
[23:10:03] *** travm is now known as travm-afk
[23:10:06] *** BillCriswell has quit IRC
[23:10:12] *** cthrax has quit IRC
[23:10:14] <hernan> nicholes: you mean input name='myForm.posts' and then i read $scope.myForm.posts ?
[23:10:32] <oniijin> basically what I just said. whatevers
[23:10:46] *** tsunamie has joined #angularjs
[23:10:53] <hernan> oniijin: ok!!
[23:11:01] *** Latros-OS has joined #angularjs
[23:11:03] *** travm-afk has quit IRC
[23:11:06] <hernan> imust use it more to understand better :)
[23:11:28] *** joshontheweb has quit IRC
[23:11:29] *** jstroem has quit IRC
[23:11:35] <oniijin> not sure y your input name is colliding with $scope
[23:11:36] *** marr has quit IRC
[23:12:10] *** yelvert has joined #angularjs
[23:12:38] *** tsunamie has quit IRC
[23:12:39] *** joshontheweb has joined #angularjs
[23:12:52] *** Yahkob has joined #angularjs
[23:13:13] *** mupkoo has joined #angularjs
[23:13:14] *** travm has joined #angularjs
[23:13:35] *** travm is now known as travm-afk
[23:14:02] *** lw has quit IRC
[23:14:02] *** sirkitree is now known as sirkitree|afk
[23:14:16] *** tsunamie has joined #angularjs
[23:14:23] *** emmesswhy has quit IRC
[23:14:33] *** gnrlbzik has joined #angularjs
[23:14:34] *** tsunamie has quit IRC
[23:14:35] *** travm-afk has quit IRC
[23:14:38] <nicholes> oniijin: Apparently in the docs.angularjs.org/guide/forms it says
[23:14:39] <nicholes> The form instance can optionally be published into the scope using the name attribute
[23:15:01] *** tristanp has quit IRC
[23:15:05] *** shackleford has quit IRC
[23:15:11] <nicholes> So maybe just don't use the name attribute of the form
[23:15:16] *** tsunamie has joined #angularjs
[23:15:44] *** Aliks has joined #angularjs
[23:15:45] <nicholes> NM-- I don't actually know. ignore me
[23:15:45] <oniijin> or just dont call it the same thing
[23:15:47] <oniijin> how hard is that
[23:15:53] <oniijin> =]
[23:16:10] *** shackleford has joined #angularjs
[23:16:12] *** travm has joined #angularjs
[23:16:37] *** mfunkie has quit IRC
[23:16:38] *** loverajoel has joined #angularjs
[23:16:54] *** jusstinas has joined #angularjs
[23:17:16] *** Squarepy has joined #angularjs
[23:17:19] *** fedenunez1 has joined #angularjs
[23:17:49] <oste> how can i use $includeContentLoaded inside my directive while using a scope?
[23:17:50] *** Yahkob has quit IRC
[23:18:01] *** TheAceOfHearts1 has quit IRC
[23:18:03] <oste> i found that if i have scope: {} defined the event does not fire
[23:18:14] *** Efrem has quit IRC
[23:18:49] *** mennea has quit IRC
[23:19:08] *** jon__ has joined #angularjs
[23:19:13] <jon__> Hye
[23:19:26] *** mennea has joined #angularjs
[23:19:30] <jon__> I cant get angular to read my controller and I have no idea why
[23:19:33] *** fedenunez has quit IRC
[23:19:34] <jon__> Can someone please help
[23:19:34] *** cthrax has joined #angularjs
[23:19:41] *** gnrlbzik has quit IRC
[23:19:54] <Grokling> jon__: Not giving us a lot to work with there..
[23:19:54] *** kuadrosx has quit IRC
[23:20:11] <jon__> Here is my gist
[23:20:11] <oste> jon__ did you define ng-app?
[23:20:12] <jon__> https://gist.github.com/jonny2779/eb91269c39867abbeb37
[23:20:24] <jon__> I did define ng app
[23:20:49] <jon__> sources in chrome show the angular js file
[23:21:03] <Grokling> jon__: <html data-ng-app="demo">
[23:21:23] *** gnrlbzik has joined #angularjs
[23:21:50] <tkdaj> nicholes: sorry, didn't see your response earlier. No, it is not a homework problem. I am trying to get something working for a web app at work
[23:22:03] *** lianimator has quit IRC
[23:22:32] *** eddiemonge has joined #angularjs
[23:22:36] <jon__> <Grokling> jon__: <html data-ng-app="demo">
[23:22:41] <jon__> Thanks so much!
[23:22:46] <jon__> That was so frustrating!
[23:23:03] *** firelink_ has joined #angularjs
[23:23:06] *** nBek has quit IRC
[23:23:08] *** FIFOd[a] has quit IRC
[23:23:23] *** MuffinMan` has joined #angularjs
[23:23:36] *** Evanion has quit IRC
[23:23:55] <dreambox_ghost> guys, I am trying to do the factory thing, there's some syntax weird thing.. can someone have a look?
[23:24:19] *** thedodd has joined #angularjs
[23:24:24] *** goodenough has quit IRC
[23:24:24] *** firelinks has quit IRC
[23:24:31] <dreambox_ghost> https://gist.github.com/242d326daef99d36730a this is the factory
[23:24:35] <Grokling> Did dreambox die? Come back to haunt the channel!
[23:24:51] *** Xethron has quit IRC
[23:25:10] <dreambox_ghost> angular.module('messages').controller('MessagesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Messages', 'Getclickedposition', function($scope, $stateParams, $location, Authentication, Getclickedposition, Messages ) {
[23:25:21] <dreambox_ghost> and that's the controller I m calling the factory from
[23:25:31] <dreambox_ghost> @Grokling lol, I think its bcause I got disced :)
[23:25:37] *** dreambox_ghost is now known as dreambox
[23:25:39] *** jpstone has quit IRC
[23:25:43] <dreambox> better :-)
[23:26:18] <dreambox> Angular throws an error : Error: [$injector:unpr] Unknown provider: GetclickedpositionProvider <- Getclickedposition
[23:26:29] *** arriu has joined #angularjs
[23:26:38] <dreambox> I am probaby doing something very wrong there
[23:27:04] *** ccohn has quit IRC
[23:27:15] <Grokling> dreambox: Did you remember to load your new factory file in a script tag in your html?
[23:27:29] <dreambox> Grokling: the stack does it automatically ( I think ? )
[23:27:33] <dreambox> oh snap...
[23:27:39] *** ccohn has joined #angularjs
[23:27:40] *** instence_ has joined #angularjs
[23:27:46] <arriu> anyone got advice on how to restore a value with a $parser after a $formatter sets it to something like "**** at email dot com"?
[23:28:13] *** jamto11 has quit IRC
[23:28:23] *** draconis-chomp has quit IRC
[23:28:53] *** thedodd has quit IRC
[23:29:23] *** CiE has quit IRC
[23:29:41] *** instence has quit IRC
[23:30:13] *** CiE has joined #angularjs
[23:30:43] *** erquhart has joined #angularjs
[23:30:45] *** Skrypter has quit IRC
[23:31:07] <dreambox> Grokling: hm, the file was there but somehow when I refreshed couple of times it loaded ..
[23:31:29] <dreambox> Grokling: the factory is there now, I try to access a method from it, Getclickedposition.someMethod(); but I get "undefined"
[23:31:52] <dreambox> Grokling: since I "return" this method shouldn't I be able to access it?
[23:32:03] *** joshontheweb has quit IRC
[23:32:12] *** ccohn has quit IRC
[23:32:19] *** Snugug has quit IRC
[23:32:43] <Grokling> dreambox: It seems like a counterintuitive way to use a factory to me. You're basically using it to store functions in and nothing else?
[23:32:54] *** MaxV has quit IRC
[23:32:58] <dreambox> Grokling: now I'm just experimenting with it :-)
[23:33:00] *** jagga__ has quit IRC
[23:33:05] *** nuizzy has quit IRC
[23:33:14] *** joshontheweb has joined #angularjs
[23:33:14] <Grokling> Maybe I'm just stuck in thinking in a 'class' kind of way..
[23:33:17] <dreambox> Grokling: I go step by step this way I dont get error sand then have to reverse engineer htem :-)
[23:33:23] *** neoadventist has joined #angularjs
[23:33:25] <erquhart> Trying to use $routeParams to filter an ng-repeat. No templates, no route-specific controllers, no ng-view. Possible?
[23:33:33] *** crewshin has quit IRC
[23:33:43] *** matisoffn has joined #angularjs
[23:33:50] *** travm is now known as travm-afk
[23:33:53] <dreambox> Grokling : https://gist.github.com/242d326daef99d36730a this is the factory
[23:34:04] <dreambox> Grokling: shouldn't I be able to access the method there?
[23:34:13] *** settinghead has joined #angularjs
[23:34:19] *** Squarepy has quit IRC
[23:34:20] <Logicgate> http://jsfiddle.net/hm4qb8jh/1/
[23:34:27] <Logicgate> Just made a $scope / this example.
[23:34:32] *** mahomaho has joined #angularjs
[23:34:38] <Logicgate> I hate the fact that you need to use $scope.$apply()
[23:34:43] *** SomeKittens has quit IRC
[23:34:46] *** zz_night-owl is now known as night-owl
[23:34:46] <Logicgate> feels redundant.
[23:34:56] <Logicgate> Isn't there a way to bind?
[23:35:01] *** crewshin has joined #angularjs
[23:35:13] <lebster> whats are some good sites to help me learn angular?
[23:35:14] *** settinghead has quit IRC
[23:35:21] <Logicgate> lebster, code school
[23:35:21] *** settinghead has joined #angularjs
[23:35:30] *** tkdaj has left #angularjs
[23:35:34] *** jon__ has quit IRC
[23:35:37] *** ColKurtz has quit IRC
[23:35:43] *** MistahKurtz has joined #angularjs
[23:35:43] <oniijin> code school is pretty remedial
[23:36:08] <lebster> thanks
[23:36:09] <erquhart> thinkster is probably the best free resource
[23:36:10] *** baweaver has joined #angularjs
[23:36:12] <nicholes> The angularjs book with the blowfish blows. The code won't even run. ng-book is decent.
[23:36:14] <Logicgate> I liked code school's basic training.
[23:36:19] <erquhart> I'd recommend books though
[23:36:30] *** crewshin has quit IRC
[23:36:42] *** sheerun has joined #angularjs
[23:36:47] <erquhart> Up and Running with AngularJS - it's by two of the three guys that created Angular.
[23:37:16] *** shackleford has quit IRC
[23:37:21] <Grokling> https://github.com/jmcunningham/AngularJS-Learning
[23:37:31] <Logicgate> why can't controller.var be accessed when set as $scope.var?
[23:37:38] <Logicgate> why does it have to be just var.
[23:37:43] *** dgee has joined #angularjs
[23:37:48] <Logicgate> I thought $scope would be global.
[23:37:51] <dreambox> I m reading ng-book, its quite cool
[23:38:05] <dreambox> Grokling: did you see my factory?:)
[23:38:35] *** mbenadda_ has quit IRC
[23:38:49] *** settinghead has quit IRC
[23:38:57] *** settinghead has joined #angularjs
[23:38:58] <Grokling> dreambox: Yeah, it's not a syntax I'm familiar with - looks like it should work, but doesn't. Make a plunker and we can mess with it.
[23:39:04] *** mbenadda_ has joined #angularjs
[23:39:21] *** mzabriskie has joined #angularjs
[23:40:28] <Grokling> dreambox: Actually, maybe you need to return that function on line 4?
[23:41:11] <dreambox> line 4? lemme see
[23:41:18] <erquhart> Trying to use $routeParams to filter an ng-repeat. No templates, no route-specific controllers, no ng-view. Possible?
[23:41:48] *** monir has joined #angularjs
[23:41:49] *** mbildner has quit IRC
[23:42:28] *** deveras has left #angularjs
[23:42:31] <dreambox> Grokling: no I just checked the syntax again, the first function is part of the factory,
[23:42:40] <dreambox> Grokling: you need to return something inside that function
[23:42:56] *** jumpman has joined #angularjs
[23:43:23] *** tech2 has quit IRC
[23:43:27] *** phuh has quit IRC
[23:44:03] *** phuh has joined #angularjs
[23:44:05] <Grokling> RIght - so that makes it the constructor function. Are you doing 'new Getclickedposition' to instantiate the factory in your controller?
[23:44:19] *** dhcar is now known as dhcar_AFK
[23:44:19] *** KurtB has quit IRC
[23:44:42] *** brunoB has joined #angularjs
[23:44:45] <eddiemonge> anyone know how to make ui-sref go to a state with a particular param while having ui-sref-active be active any time that state (and not just that state with those specific params) is active?
[23:44:53] *** joshontheweb has quit IRC
[23:44:57] *** vlad_starkov has quit IRC
[23:45:20] *** shackleford has joined #angularjs
[23:46:24] *** kas84 has quit IRC
[23:46:24] *** whitenexx has quit IRC
[23:46:54] *** fedenunez1 has quit IRC
[23:47:08] *** michaelSharpe has quit IRC
[23:47:11] *** yelvert has quit IRC
[23:47:19] *** scythe__ has joined #angularjs
[23:47:47] *** yelvert has joined #angularjs
[23:47:51] *** MANCHUCK has quit IRC
[23:48:22] <jumpman> I'm trying to write a custom filter now xD. I have ng-repeat="user in users | userFilter:groupId" -- what params are passed to the custom filter function?
[23:48:29] <jumpman> moreover, what is the first param?
[23:48:45] <Logicgate> jumpman, no you can pass whatever you want
[23:48:51] *** mennea has quit IRC
[23:48:53] <Logicgate> you need to define them in your filter scope
[23:49:01] <Logicgate> oh wait
[23:49:04] <Logicgate> I'm thinking of a directive.
[23:49:07] *** tilgovi has quit IRC
[23:49:14] *** firelink_ has quit IRC
[23:49:21] <jumpman> it appears to be printing '0' for every item in the array and then '1' at the end for the first item in the array again
[23:49:28] *** mennea has joined #angularjs
[23:49:30] <jumpman> however, that's just a guess based on not a lot of testing
[23:49:41] <Logicgate> it's 3 parameters
[23:49:49] *** mbildner has joined #angularjs
[23:49:50] <Logicgate> item:var:reverse
[23:49:53] *** bayousoft has quit IRC
[23:50:25] *** bayousoft has joined #angularjs
[23:50:25] <Logicgate> in your case: user:groupId:reverse
[23:50:56] <Logicgate> jumpman, show your code and data structure.
[23:50:58] *** jbeaudry has quit IRC
[23:51:18] *** vlad_starkov has joined #angularjs
[23:51:54] *** yelvert has quit IRC
[23:51:55] <jumpman> the full filter in the tag is: ng-repeat="user in users track by $index | usersByGroupId:users:group[0].id" //// the filter return function (input, users, id) {
[23:52:14] <jumpman> input evaluates how I described. length of the array # of zeroes, then a 1
[23:52:19] <jumpman> the other two are behaving how i would expect
[23:52:20] *** whitebook has joined #angularjs
[23:52:23] <Logicgate> group[0].id?
[23:52:53] <jumpman> that's from a nested ng-repeat - simply is a group id. evaluates to "2" in every instance this code exists currently
[23:52:56] <Logicgate> why are you passing users to it
[23:53:03] <Logicgate> you need to pass 1 item to it.
[23:53:21] <Logicgate> usersByGroupId:singleuser:groupId
[23:53:33] *** narutimateum2 has joined #angularjs
[23:53:39] *** mupkoo has quit IRC
[23:54:06] *** gnrlbzik has quit IRC
[23:54:12] *** jusstinas has quit IRC
[23:55:10] *** arriu has quit IRC
[23:55:18] <dreambox> fuckin factory...
[23:55:28] <dreambox> Grokling: you there?
[23:55:30] <jumpman> well, that might make sense from a practice standpoint but it doesn't help me figure out what the first param is xD
[23:55:31] <Logicgate> dreambox, why a factory. I like services.
[23:55:39] *** narutimateum has quit IRC
[23:55:42] <dreambox> I dont get the difference
[23:55:43] <Grokling> dreambox: sure. Not really the factories fault ;-)
[23:55:45] <Logicgate> jumpman, the first param will be the singleuser item
[23:55:57] *** yelvert has joined #angularjs
[23:56:01] <jumpman> right - it SHOULD be. but for some reason it's something... else
[23:56:08] *** richiebkr has quit IRC
[23:56:11] <Logicgate> because you're passing it users and not user.
[23:56:15] <Logicgate> It needs to be a single item
[23:56:45] <jumpman> all objects are objects :) and i'm able to access users correctly as the second param
[23:56:47] <dreambox> Grokling: the factory, simplified: https://gist.github.com/985495a7c0a124e7eef4
[23:56:49] <Logicgate> why are you passing it group[0].id anyways??
[23:57:02] <jumpman> so I can return users of a group id
[23:57:14] *** AngularUI has joined #angularjs
[23:57:15] <AngularUI> [ng-grid] PaulL1 opened pull request #1998: enh(exporter): breaking - header style now through customFormatter (master...exporter_enh) http://git.io/8W_4Eg
[23:57:15] *** AngularUI has left #angularjs
[23:57:15] <dreambox> Grokling: the controller using the factory: https://gist.github.com/87fa2b78f5190b84bebe
[23:57:22] <Logicgate> lol, why would you do that and not set a scope value?
[23:57:29] *** AngularUI has joined #angularjs
[23:57:30] <AngularUI> [ng-grid] PaulL1 pushed 2 new commits to master: http://git.io/5dl7KQ
[23:57:30] <AngularUI> ng-grid/master 3ced9f1 Paul Lambert: enh(exporter): breaking - header style now through customFormatter...
[23:57:30] <AngularUI> ng-grid/master 6695877 Paul: Merge pull request #1998 from PaulL1/exporter_enh...
[23:57:30] *** AngularUI has left #angularjs
[23:57:30] <Logicgate> you can't put a filter like that on an ng-repeat expecting that.
[23:57:32] *** night-owl is now known as zz_night-owl
[23:57:37] <Logicgate> here, let me help you.
[23:57:43] <jumpman> because the groups need to be dynamic?
[23:57:45] <Logicgate> I'll make a fiddle.
[23:57:48] <dreambox> Grokling: the error : TypeError: undefined is not a function (when I call the serviceInstance method ... )
[23:57:49] <jumpman> thanks, but don't bother
[23:57:50] <hernan> angular is a real revolution eeeeeeeeeeeeeh
[23:57:50] <Logicgate> Yes? So what
[23:57:57] <jumpman> clearly you have no idea what my problem is
[23:58:05] *** avree has quit IRC
[23:58:06] <Logicgate> I clearly understand what your problem is actually.
[23:58:07] *** richiebkr has joined #angularjs
[23:58:11] <Logicgate> You clearly don't understand how to solve it,
[23:58:15] <nicholes> Proooove itttttt
[23:58:15] *** ccohn has joined #angularjs
[23:58:26] <woah> you need a serviceFactory
[23:58:34] <jumpman> Logicgate, okay, then make a fiddle so i can tell you it's wrong. i don't care. have fun with your ego.
[23:58:54] *** yelvert has quit IRC
[23:58:54] <jsheely> lolz
[23:58:56] <nicholes> *And thanks for your help! :D
[23:59:07] <jsheely> And that's how you get no one to answer you again =)
[23:59:20] *** yelvert has joined #angularjs
[23:59:26] <Grokling> dreambox: Yeah - I think you're using factories all wrong ;-) Make a plunker..
[23:59:41] <dreambox> Grokling: but it's too files..
[23:59:46] <jumpman> jsheely, no matter how polite i am, some people need to learn before they share :)
[23:59:47] <dreambox> I just gist-pasted'em
[23:59:57] <oste> i am just having a hell of a time
top

   November 3, 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 | >