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

Toggle Join/Part | bottom
[00:00:24] *** annlewis has quit IRC
[00:00:24] *** elxa has quit IRC
[00:00:29] *** coldboot|laptop has joined #angularjs
[00:00:40] <snapwich> that's got me curious though, can you access global vars from an angular expression?
[00:00:42] <nickeddy> yeah that worked
[00:00:45] <snapwich> cool
[00:00:50] *** oa_ has joined #angularjs
[00:00:53] <nickeddy> snapwich: well, sort of. $root :P
[00:01:01] <snapwich> yeah but not like window._
[00:01:04] <jaawerth_> Kallb123: here, I threw it in a plunk for you, in a simple directive that counts resize events http://plnkr.co/edit/Q9GbLPW4cKZAjbg7vft4?p=preview
[00:01:04] <nickeddy> though i don't know about lodash
[00:01:05] <nickeddy> yeah
[00:01:05] *** icfantv has quit IRC
[00:01:16] <snapwich> i figured
[00:01:17] <nickeddy> probably can't access angular
[00:01:37] *** livingstn has quit IRC
[00:01:48] <caitp> do your work with this stuff in controllers
[00:01:57] *** CptChaos has quit IRC
[00:02:04] <caitp> fnInScopeThatDoesFancyStuff()
[00:02:20] <caitp> furreal
[00:02:21] *** floorz has joined #angularjs
[00:02:41] *** phuh has quit IRC
[00:02:57] *** ccohn has quit IRC
[00:03:01] <nickeddy> caitp: yeah, i was just trying to be lazy
[00:03:06] *** phuh has joined #angularjs
[00:03:07] <nickeddy> and it bit me in the buttocks
[00:03:15] <snapwich> make sure you call it fnInScopeThatDoesFancyStuff too ;)p
[00:03:22] <snapwich> whoops, smile tounge
[00:03:27] <floorz> does anyone know how to preserve dynamically added html elements in an ngRoute?
[00:03:33] *** ccohn has joined #angularjs
[00:03:40] *** shackleford has quit IRC
[00:03:59] <floorz> when I switch from one route to another and back, any html elements that were added disappear
[00:04:16] <jaawerth_> Kallb123: whoops, I jsut deleted some junk from my old code and broke it. One moment!
[00:04:16] *** TorchDragon has joined #angularjs
[00:04:34] *** arizzo has joined #angularjs
[00:04:44] <wafflejock> floorz: you might want ui-router instead
[00:05:12] <wafflejock> floorz: if you need some sort of nested business going on with your routes or anything more complex ui-router is a good option
[00:05:14] <floorz> whoops. yeah I'm using ui.router
[00:05:50] <nickeddy> $scope.fnExtraFkinFnThatDoesExtraFancy = function() {/*yay*/};
[00:05:54] <wafflejock> floorz: okay well if you do things with states that have various view parts then you should be in good shape can you explain the problem a bit more
[00:06:01] <snapwich> perfect
[00:06:08] *** sacho has joined #angularjs
[00:06:08] *** sacho_ has joined #angularjs
[00:06:24] *** cboden has quit IRC
[00:06:25] *** Milanito has quit IRC
[00:06:30] *** elxa has joined #angularjs
[00:06:42] *** coldboot|laptop has quit IRC
[00:07:14] *** mtsr has joined #angularjs
[00:07:52] *** kalusn has joined #angularjs
[00:07:57] *** ccohn has quit IRC
[00:08:24] <floorz> wafflejock: yes, I have a design online application where you can add custom text to a security label. The first step is the "design" step, where when you click "Add Text", it adds an input element to the page for editing the text, and also adds an object to a fabricjs canvas
[00:09:04] *** TorchDragon has quit IRC
[00:09:06] <jaawerth_> Kallb123: Here you go http://plnkr.co/edit/Q9GbLPW4cKZAjbg7vft4?p=preview - notice that you can vary the $timeout milliseconds to change how much you want to throttle by. The benefit of doing it this way is that it will also trigger a digest for you to update the DOM (if that's something yo uwant to happen). What's happening here is $timeout returns a promise, and when resize fires the next time it cancels the promise from the
[00:09:10] <wafflejock> floorz: basically anything that you want to be saved in browser history has to be in a state
[00:09:18] <wafflejock> floorz: as far as I understand it
[00:09:37] *** drej has joined #angularjs
[00:09:58] *** drej has quit IRC
[00:09:58] *** drej has joined #angularjs
[00:10:14] *** mmitchell has quit IRC
[00:10:14] *** Starr_ has quit IRC
[00:10:52] <wafflejock> floorz: alternatively maybe you just need a factory/service to handle persisting the data and doing operations on the model that exists beyond the lifetime of the controller instance
[00:11:10] *** FunnyLookinHat has quit IRC
[00:11:31] *** LuxuryMode has quit IRC
[00:11:46] *** felixn has quit IRC
[00:11:57] *** coldboot|laptop has joined #angularjs
[00:12:07] <floorz> hmm
[00:12:08] <jobelenus> im also having a small problem involving ui-router, but its not the culprit… im putting an ng-controller out on the page, but the new state isnt instantiating the controller??? code: https://gist.github.com/jobelenus/1b8f02c021097b645ea5
[00:12:18] *** kalusn has quit IRC
[00:12:52] *** conner_ has joined #angularjs
[00:12:56] *** dve_ has quit IRC
[00:13:29] *** coldboot|laptop has quit IRC
[00:13:56] *** LuxuryMode has joined #angularjs
[00:14:23] *** morenoh149 has joined #angularjs
[00:15:07] *** ckboii89 has joined #angularjs
[00:15:21] *** patricka_ has quit IRC
[00:15:23] *** yoshokatana has quit IRC
[00:15:25] *** walden is now known as walden|afk
[00:15:57] *** BobbieBarker has joined #angularjs
[00:16:01] *** apetro_ has quit IRC
[00:16:04] *** Fire-Dragon-DoL has quit IRC
[00:16:17] <jobelenus> if i had my guess.. its b/c the bootstrap popover isn't immediate, so the state fires before the ng-controller html gets onto the page and since there is no ng-controller tag out there the Controller itself isn't instantiated?
[00:16:29] <sacho_> provide a test case
[00:16:33] *** nanoyak has quit IRC
[00:16:44] *** shackleford has joined #angularjs
[00:16:50] <nickeddy> caitp: are you part of the 2.0 team?
[00:16:52] *** Destos has quit IRC
[00:17:05] <caitp> there is no 2.0 team
[00:17:08] *** corban has quit IRC
[00:17:12] <nickeddy> oh
[00:17:15] *** conner_ has quit IRC
[00:17:16] *** Kismet010 has quit IRC
[00:17:17] <nickeddy> well how's 2.0 coming
[00:17:18] <snapwich> i've seen some funky code before w/ people using bootstrap modals and ui-router and creating awful race conditions
[00:17:20] <nickeddy> is what i meant
[00:17:32] *** Thylith has joined #angularjs
[00:17:33] *** Zyril has quit IRC
[00:17:41] <caitp> 2.0 isn't really a priority for the next few weeks, but it's coming along
[00:18:01] <snapwich> what's the priority for the next few weeks?
[00:18:34] <caitp> well I'm trying to clear through my assigned 1.x tasks, at any rate
[00:18:42] <snapwich> oh
[00:18:47] <jobelenus> snapwich: hrmm.. well maybe that isnt my problem.. b/c if i make the state.go well after i have an element (e.g. settimeout for kicks) it still doesn't get instantiated...
[00:18:48] <jaawerth_> nickeddy: It's coming great! They're thinking about maybe forming a team (kidding)
[00:18:54] <amb> nickeddy caitp: but there is a 2.0 kick-ass team :D
[00:18:58] <jobelenus> snapwich: im trying to not make funky code, obv
[00:19:00] <nickeddy> ;(
[00:19:05] <nickeddy> i'm just being extra retarded today
[00:19:12] <jobelenus> jaawerth_: cold
[00:19:29] <jaawerth_> hahaha, no I'm really excited about 2.0
[00:19:42] <nickeddy> me too, that's why i'm asking
[00:19:44] <snapwich> jobelenus: you have a plunkr?
[00:20:03] <jobelenus> i have the code, but not in a plunkr https://gist.github.com/jobelenus/1b8f02c021097b645ea5
[00:20:10] <jaawerth_> I'm also fine with it taking awhile because it means more time before I have to relearn half of Angular
[00:20:16] <jobelenus> ^
[00:20:26] <jaawerth_> though I suppose I could pull a robdubya and start messing with it right now
[00:20:51] <jaawerth_> but I barely have enough time to program for work let alone for experimentation
[00:21:26] <jaawerth_> on account of me also having to use words like "ROI" and "committee" and "business use-case" on a regular basis :(
[00:21:51] <jobelenus> filthy
[00:22:04] <amb> jobelenus: could you also add '$scope','Order', 'state'
[00:22:18] *** dcherman2 has quit IRC
[00:22:28] <jaawerth_> very filthy but it's part of my jerb
[00:22:37] <jobelenus> snapwich: i seem to not be fundamentally understanding something about how the instantiation of controllers work with the tag??
[00:22:55] *** xavia has left #angularjs
[00:22:58] <jaawerth_> oh weird, I just pulled up facebook with dev tools still open and they have a crazy warning message in there
[00:22:58] <amb> jaawerth_: I don't think the changes are that radical
[00:23:04] *** anjumkaiser has joined #angularjs
[00:23:17] <Kallb123> jaaswerth_, that's a great bit of code, thank you so much :) I think I understand it too, which is always nice, I've done something similar , just outside of angular :)
[00:23:18] *** hswolff has joined #angularjs
[00:23:29] <jobelenus> amb: Order is just a resource (django resource actually).. nothing going on in there...
[00:23:30] *** tilgovi has joined #angularjs
[00:23:40] *** cpciv has joined #angularjs
[00:23:42] *** Willow has quit IRC
[00:23:57] *** bmac has quit IRC
[00:24:01] <snapwich> jobelenus: I don't think that content: '<div ng-controller="StartDateController"></div>' will work unless you have a $compile somewhere I'm not seeing
[00:24:14] *** zumba_addict has quit IRC
[00:24:15] <jobelenus> OK--i felt like i was missing something
[00:24:20] <snapwich> any dom that is injected needs to be compiled at some point for angular to pick it up
[00:24:45] <jaawerth_> Kallb123: Great! Yeah, I love so many parts of angular return promises sort of silently, but they're there when you need them
[00:24:46] *** bayousoft has quit IRC
[00:24:57] <jaawerth_> granted this is a sort of modified promise, since it's got a built in cancel function
[00:25:04] <snapwich> you could use the $compile service to create a template and have that put as the content
[00:25:06] <jaawerth_> I read the code of how they implement $timeout.cancel though and it's pretty nifty
[00:25:11] *** kroogs has quit IRC
[00:25:22] <jobelenus> snapwich: are there any good examples handy of using $compile like this?
[00:25:58] *** elux has quit IRC
[00:26:43] *** ccohn has joined #angularjs
[00:26:56] *** mtsr has quit IRC
[00:27:05] <snapwich> you want something like in this answer I think: http://stackoverflow.com/questions/17882639/angular-js-compile-returns-array-of-html-but-not-actual-html
[00:27:06] *** digia is now known as digia|away
[00:27:17] <snapwich> or the second answer
[00:27:28] *** DrShoggoth has quit IRC
[00:29:22] <jobelenus> i shouldn't have to make a directive though? i should be able to perform the compile in the controller that injects?
[00:29:24] *** gnarMat__ has joined #angularjs
[00:29:29] *** wallerdev has quit IRC
[00:29:45] *** gnarMati_ has quit IRC
[00:30:11] <BobbieBarker> gentlemen, I have put together this extremely handy and succinct outline of my problem http://laravel.io/bin/3BolP
[00:30:19] <Kallb123> My non-angular thing was actually this exact problem but I was using setTimeout and (cancelTimeout?) :)
[00:30:24] <BobbieBarker> all my other crud operations work GREAT
[00:30:28] *** mikehaas763 has quit IRC
[00:30:43] <Kallb123> Not sure if that's a promise , but it's similar to what's just happened now I believe :)
[00:31:05] <jobelenus> snapwich: gorgeous, got it.. ty! (knew i was missing something)
[00:31:09] <snapwich> k
[00:31:30] *** Snugug has joined #angularjs
[00:32:11] <amb> snapwich: shouldn't that not be the problem ? I think the problem lies in the scope and transclude...
[00:32:23] <amb> since it's a popover
[00:32:37] <amb> jobelenus: ^
[00:32:51] <jobelenus> ?
[00:33:07] *** ngoyal has quit IRC
[00:33:09] <amb> I think $compile would compile it fine but popover maybe creates a new scope and something messes up
[00:33:10] <jobelenus> i mean.. my controller now instantiates when i do: content: $compile('<div ng-controller="StartDateController"></div>')($scope)
[00:33:24] <jobelenus> popover isn't angular code.. its bootstrap code
[00:33:25] *** ccohn has quit IRC
[00:33:28] <jobelenus> doesnt know anything about it
[00:33:40] <amb> so it's fixed ?
[00:33:41] <snapwich> the problem that he has an ng-controller directive being injected dynamically into the dom by bootstrap code, which means it's never going to be compiled and angular will never see it
[00:33:47] <jobelenus> right
[00:33:55] <jobelenus> yes, i've gotten past that sticking point
[00:33:57] *** ccohn has joined #angularjs
[00:34:03] <amb> then my bad. glad everything got ok
[00:34:20] <amb> sorry I am tooooooo sleppy. it's 1:34 am here
[00:34:24] <jobelenus> woof
[00:34:26] <sal1191> so my app only throws an error on Chrome, and its Uncaught Object, any idea why that could be?
[00:34:32] <jobelenus> however, the template is not rendered in the ng-controller
[00:34:44] <sal1191> on firefox the error doesnt occur and the page renders
[00:34:53] <sal1191> http://ecdesign.co:1337
[00:35:00] <snapwich> there is no template in the ng-controller
[00:35:10] *** patrickarlt has joined #angularjs
[00:35:17] <sal1191> this app's only function is to have sidebars and load
[00:35:22] <snapwich> if you want a template added with $compile you'll have to use a directive that uses template or templateUrl, or you'll have to use an ng-include
[00:35:44] <snapwich> or you can add a ui-view and have the router add a template
[00:35:54] *** mven_ has quit IRC
[00:36:10] *** rgolea has joined #angularjs
[00:36:38] <snapwich> ui-router doesn't care about ng-controller, it only looks for ui-views
[00:36:40] <amb> jobelenus: why don;t you use bootstrap.ui modal ? I use it and it works great...
[00:37:07] <amb> ui.bootstrap with bootstrap css
[00:37:26] *** blueadept` has joined #angularjs
[00:37:34] <snapwich> the only reason I can see it doing it this way is if you wanted the routes tied to the modals in someway
[00:37:45] <snapwich> i don't know if bootstrap.ui modals can be tied to routes? maybe they can
[00:38:25] *** nicholaswyoung has quit IRC
[00:38:26] *** samn has joined #angularjs
[00:38:28] *** ccohn has quit IRC
[00:39:02] *** Deseaus has joined #angularjs
[00:39:10] <nickeddy> there was some effort to do that
[00:39:30] <nickeddy> i don't agree with how they were making modals separately scoped from the controllers they were called from
[00:39:51] <nickeddy> angular-strap does it so you share scopes
[00:39:58] <snapwich> i've personally had the most success with these modals: https://github.com/btford/angular-modal
[00:40:00] *** tomzx is now known as tomzx`afk
[00:40:12] <nickeddy> http://mgcrea.github.io/angular-strap/##modals
[00:40:16] *** rgolea has quit IRC
[00:40:20] *** blueadept has quit IRC
[00:40:28] *** cbeacock has quit IRC
[00:41:18] *** patrickarlt has quit IRC
[00:41:25] *** chrisbirk has quit IRC
[00:41:47] <snapwich> if you want a modal tied to the route i suggest just adding the modal template in the page and using ng-show ;)
[00:41:57] *** thedodd has quit IRC
[00:42:02] <snapwich> put a ui-view in it
[00:42:17] <nickeddy> can't wait for ui-router 2.0
[00:42:33] *** bicranial has joined #angularjs
[00:42:37] *** MuffinMan` has quit IRC
[00:42:57] <snapwich> is that the new router with angular 2.0 or just the next iteration of ui-router?
[00:43:04] *** zwacky has quit IRC
[00:43:23] <snapwich> oh, i guess the next iteration if it has ui- in it
[00:43:24] <snapwich> ;)
[00:44:23] <nickeddy> yeah, next ui-router
[00:44:43] <nickeddy> it's going to be yummy if ui-router-extras is any indication
[00:45:18] *** hubertus_ has quit IRC
[00:45:25] <sal1191> can you get an Uncaught object error in Chrome from loading conflicting plugins?
[00:45:33] <sal1191> angular plugins, that is
[00:45:36] <nickeddy> sal1191: open in firefox again :P
[00:45:46] <nickeddy> usually means you're importing in the wrong order
[00:45:48] *** cisox has quit IRC
[00:45:49] <sal1191> it doesnt throw an error in firefox :x
[00:45:51] *** sonofdirt has quit IRC
[00:45:56] <nickeddy> wat
[00:46:01] *** wallerdev has joined #angularjs
[00:46:03] <sal1191> thats what im sayinnnnn
[00:46:04] <sal1191> :p
[00:46:11] <nickeddy> you done broke something
[00:46:21] *** davedev24_ has quit IRC
[00:46:21] *** tomzx`afk is now known as tomzx
[00:46:25] <sal1191> angulol
[00:46:50] *** tekky has quit IRC
[00:46:51] *** kroogs has joined #angularjs
[00:46:57] *** terrykfwong has quit IRC
[00:47:02] *** coldboot|laptop has joined #angularjs
[00:47:31] <nickeddy> no one can fix angulol bugs
[00:47:43] *** bayousoft has joined #angularjs
[00:47:57] <wafflejock> sal1191: you try the pause on exceptions in chrome?
[00:48:02] *** elrabin has quit IRC
[00:48:11] <sal1191> i will try this
[00:48:12] <wafflejock> sal1191: typically you can poke around at variables after doing that and see what it was trying to resolve
[00:48:18] <moogumbo> I'm running into some silly issue with ng-click -- could someone take a quick look? http://plnkr.co/edit/AOIp45uFVbe6cHks3Wfx
[00:48:30] <moogumbo> Line 21 in index.html works as expected, but Line 17 doesn't
[00:48:36] *** jdowdle has quit IRC
[00:48:53] *** matiasow has joined #angularjs
[00:48:54] <wafflejock> moogumbo: you can't actually access window from an expression in angular
[00:48:58] <jobelenus> snapwich: hrmm (sorry got distracted by the PKs)
[00:49:03] *** bsmithgall has quit IRC
[00:49:20] <wafflejock> moogumbo: and ng-click expects an angular expression
[00:49:29] <moogumbo> wafflejock: Oh, that's annoying. I have some utility methods attached to window.myNamespace. Do I have to pass them into the $scope via the controller?
[00:49:32] *** chrisbirk has joined #angularjs
[00:49:34] <snurfery> moo360_: your <a> needs an href to be valid
[00:49:40] <nickeddy> wat
[00:49:42] <snurfery> woops wrong moo
[00:49:57] <moogumbo> snurfery: Does Angular care about that?
[00:50:01] <wafflejock> moogumbo: yeah or put them on $rootScope I suppose
[00:50:02] <snurfery> moogumbo, that is
[00:50:04] *** hswolff has quit IRC
[00:50:08] <nickeddy> i don't know if you should be attaching utility methods to window.myNamespace
[00:50:09] *** fedenunez has quit IRC
[00:50:11] <nickeddy> ?
[00:50:13] <jobelenus> snapwich: my state is defining a controller and a template… isn't that the template the controller is supposed to use and render into itself?
[00:50:14] <snurfery> umm maybe I'm wrong
[00:50:27] <snurfery> if the other guys' suggestions don't work, then investigate that ;)
[00:50:28] <wafflejock> agree with nickeddy here thoguh
[00:50:33] <moogumbo> Well, I have them on window.myNamespace.Utilities ... seemed like a reasonable place to put them
[00:50:36] <moogumbo> Where should I put them?
[00:50:38] *** floorz has quit IRC
[00:50:45] *** amargherio has quit IRC
[00:50:51] <wafflejock> would wrap them up in a service or some things end up being a filter
[00:50:53] <wafflejock> it depends
[00:50:56] <nickeddy> because that's bad :P
[00:50:59] <nickeddy> yeah, a service is better
[00:51:00] <wafflejock> but just don't use any global spaces
[00:51:05] <nickeddy> ^
[00:51:11] <snurfery> agree with everyone on style though, keep window clean
[00:51:24] <nickeddy> moogumbo: you do need that <a> to have a valid href, or do something like a button
[00:51:57] *** shackleford has quit IRC
[00:52:06] <nickeddy> otherwise no click events will ever fire
[00:52:33] <snapwich> jobelenus: try adding a ui-view after that ng-controller directive
[00:52:37] <jobelenus> o
[00:52:38] <jobelenus> k
[00:52:40] <snapwich> so ui-router knows where to put the template
[00:52:56] *** jdcasey has quit IRC
[00:52:58] *** fedenunez has joined #angularjs
[00:53:27] <moogumbo> Oh, I see. Okay, thanks for the tips
[00:53:46] <jobelenus> $compile('<div ng-controller="StartDateController"><div ui-view></div></div>')($scope)
[00:53:46] <jobelenus> nada
[00:54:14] <snapwich> do you need to be using ui-router here? like are you intentionally trying to make this modal accessable through a url route?
[00:54:20] *** nicholaswyoung has joined #angularjs
[00:54:29] *** edzez_ has joined #angularjs
[00:54:32] <wafflejock> jobelenus: I think you actually need an element there not positive though
[00:54:33] <nickeddy> that's the worst idea ever.
[00:54:34] *** asdofindia has joined #angularjs
[00:54:42] *** samn has quit IRC
[00:54:47] <nickeddy> modals aren't friggin url endpoints
[00:54:49] <snapwich> if not (which I suggest) just use an ng-include
[00:54:57] <snapwich> and get rid of that route
[00:55:00] <nickeddy> ^
[00:55:02] <jobelenus> ok.. let me take a look at the ng-include then
[00:55:13] *** senayar has quit IRC
[00:55:15] *** chrislerum has joined #angularjs
[00:55:29] <wafflejock> eh sometimes you want to route directly to a modal I've seen cases for it if the modal is used for adding or something and you want to link someone right to it
[00:55:45] *** senayar has joined #angularjs
[00:55:48] <jobelenus> i was just trying to segment my JS up into good bite sized bits… so i made the new controller.. and the router was the easiest way i knew of to instantiate a controller with a tempalte
[00:56:00] <nickeddy> i mean that's literally opposite the definition of a modal
[00:56:06] <jobelenus> wafflejock: in this case, no i dont need the deep link.. in others, i may
[00:56:08] <nickeddy> :P
[00:56:09] <snapwich> the problem with making modals route dependent is that there's content behind them
[00:56:10] <jobelenus> modal is just the UI presentation
[00:56:14] <snapwich> which is a idfferent route
[00:56:15] *** edzez__ has joined #angularjs
[00:56:21] *** dcrk has joined #angularjs
[00:56:33] <dcrk> Hi all
[00:56:41] <snapwich> modals are suppose to be able to be popped up independent of the content behind which means they probably shouldn't be route dependant
[00:56:41] *** Brocken is now known as zz_Brocken
[00:57:01] *** tomzx is now known as tomzx`afk
[00:57:07] <nickeddy> yep
[00:57:19] <wafflejock> that's not always true though it's a common use case
[00:57:20] *** hswolff has joined #angularjs
[00:57:21] <snurfery> snapwich: maybe
[00:57:29] *** edzez has quit IRC
[00:57:30] <wafflejock> sometimes modals are used to keep context behind the add/edit dialogs
[00:57:34] <snurfery> 'add account' modal might only be valid on the 'accounts' page
[00:57:39] <snurfery> yeah
[00:57:41] <wafflejock> right
[00:57:41] <dcrk> I saw the SEO method for angular using PhantomJS, where you render the page with it, saves in cache and sends to bot. Question - why not send to all users?
[00:57:41] *** raghunayyar has quit IRC
[00:57:43] <snapwich> okay, i can see that
[00:57:55] <snapwich> i'm thinking more along the lines of like login modals and stuff
[00:58:01] <nickeddy> them stop using a modal for some CRUD operation you're doing
[00:58:04] <nickeddy> then*
[00:58:04] <snurfery> right, those are specifically global
[00:58:18] *** bbankes has quit IRC
[00:58:19] <snurfery> I wonder what's the problem with linking to a modal directly
[00:58:25] <nickeddy> i don't think a link should ever go to a page and then pop up a modal. i've never seen that anywhere
[00:58:27] <snurfery> seems a bit awkward maybe
[00:58:29] *** TorchDragon has joined #angularjs
[00:58:31] <nickeddy> it is
[00:58:39] <nickeddy> very awkward
[00:58:42] <snurfery> but otherwise that functionality cannot be directly linked to
[00:58:49] <nickeddy> yeah it can
[00:58:50] <snurfery> unless there's a full-page equivalent
[00:58:52] <snapwich> but the only reason you'd want to make something like an add/edit dialog w/ ui-router is if you wanted that add/edit operation accessible by a url. that seems kind of weird
[00:59:10] *** mewm has quit IRC
[00:59:21] <nickeddy> it is very weird :P
[00:59:28] *** edzez_ has quit IRC
[00:59:29] <snurfery> maybe not even a full url, maybe just a parameter
[00:59:33] <snapwich> but oyu could do it. link to item/edit and that takes you to item with an edit modal popped up.
[00:59:41] <wafflejock> bingo
[00:59:45] <nickeddy> just because you can do something doesn't mean you should :P
[00:59:48] <wafflejock> have that happening in an app I joined in on
[00:59:50] *** andrewhl has quit IRC
[00:59:55] <snurfery> /accounts?showCreate=true
[00:59:56] <wafflejock> it's not bad
[00:59:58] <jobelenus> so, since im injecting the ng-include, i still need to compile that.. yea?
[01:00:03] <snapwich> yeah
[01:00:12] *** senayar has quit IRC
[01:00:58] *** samn has joined #angularjs
[01:00:59] *** DuelShark has joined #angularjs
[01:01:12] <jobelenus> hrmm.. that still doesn nothing?.. the include comment is there.. but nothing rendered: <!-- ngInclude: static/partials/set_start.view.html -->
[01:01:26] *** davedev24_ has joined #angularjs
[01:01:34] *** tfennelly has quit IRC
[01:01:35] <snapwich> shouldn't it be /static
[01:01:41] <jobelenus> it whined about a /
[01:01:45] <jobelenus> https://docs.angularjs.org/error/$parse/syntax?p0=static&p1=is
[01:01:54] *** vintik has quit IRC
[01:02:04] *** tfennelly has joined #angularjs
[01:02:35] <snapwich> what does the whole line look like
[01:02:44] *** ckboii89 has quit IRC
[01:02:46] *** phuh has quit IRC
[01:02:51] *** tarkus has quit IRC
[01:02:56] <jobelenus> content: $compile('<div ng-include="static/partials/set_start.view.html"></div>')($scope)
[01:02:58] *** knownasilya has quit IRC
[01:02:59] *** TorchDragon has quit IRC
[01:03:11] *** phuh has joined #angularjs
[01:03:12] <jobelenus> i add the / and i get that js error
[01:03:16] <jobelenus> without / nada
[01:03:51] <wafflejock> nada as in void null or undefined :P
[01:04:02] <wafflejock> jobelenus: if you are using a string you need to wrap in extra ''
[01:04:15] *** anjumkaiser has quit IRC
[01:04:24] <wafflejock> jobelenus: it expects ng-include to be some property of the scope otherwise
[01:04:29] <jobelenus> without a leading / i get zero errors and zero template rendering.. i just get the above ngInclude comment
[01:04:29] <moogumbo> Whoa, it's quite serious about access to window methods https://docs.angularjs.org/error/$parse/isecwindow
[01:04:50] <jobelenus> oh.. an extra "?
[01:04:54] <wafflejock> jobelenus: like ng-include="'myTemplate.html'" or ng-include="url" $scope.url = "myTemplate.html"
[01:04:55] <moogumbo> It complains even if I use $window ... how am I supposed to reasonably trigger $window.open from an ng-click then?
[01:05:09] <jobelenus> wafflejock: oooo
[01:05:20] <wafflejock> moogumbo: just call a function on the scope that does it
[01:05:30] <snapwich> wafflejock: oh yeah, good point. it's an angular expression
[01:05:46] *** Drako_ has quit IRC
[01:05:59] <snapwich> "'/static/blah/whatever'"
[01:06:01] <nickeddy> moogumbo: ng-click="someFn()" $scope.someFn = function() { /* do stuff here */ };
[01:06:27] <jobelenus> wafflejock: boom, ty… im not yet used to peering through the layers of things yet :)
[01:06:43] *** darkgray has quit IRC
[01:06:46] <wafflejock> jobelenus: yup np, that's just one of those gotchas with ng-include
[01:06:50] <moogumbo> That's exactly what I tried, but it's still throwing $parse:isecwindow
[01:06:53] *** bezhermoso has quit IRC
[01:06:55] <moogumbo> I'll try to Plunker it
[01:07:49] *** dcrk has quit IRC
[01:07:53] <jobelenus> wafflejock: how can i know when the ng-include is done "compiling" and rendered on the screen? e.g. how can i wait/block so that i can write more JS that interacts with those new elements
[01:08:21] <wafflejock> jobelenus: well that's sort of a backwards way to go
[01:08:22] <moogumbo> Huh... works fine in the Plunker
[01:08:43] *** earthquake has joined #angularjs
[01:08:52] <wafflejock> jobelenus: usually you want to have the directives within the ng-included part doing some work on themselves rather than "reaching into it"
[01:09:04] *** Sal_ has joined #angularjs
[01:09:08] <Sal_> hi
[01:09:15] <jobelenus> wafflejock: you're correct.. my jquery is creeping into me
[01:09:20] <wafflejock> jobelenus: hehe yeah
[01:09:39] *** vintik has joined #angularjs
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:01] *** neurix has joined #angularjs
[01:10:32] <wafflejock> hola Sal_
[01:10:47] *** dc_ has quit IRC
[01:10:56] *** henn1nk has quit IRC
[01:11:04] <Sal_> is this proportionality correct: AngularJS : SEO = Flash : SEO ????
[01:11:18] <moogumbo> Figured it out. CoffeeScript was returning the result of $window.open in my controller method, and that was confusing Angular
[01:11:24] <wafflejock> Sal_: with no work done yeah
[01:11:29] <wafflejock> Sal_: but with work done no
[01:11:46] *** stanR has joined #angularjs
[01:11:52] *** nicholaswyoung has quit IRC
[01:11:52] <wafflejock> Sal_: https://prerender.io/
[01:12:04] <Sal_> what do you mean with work? double website?
[01:12:16] <wafflejock> Sal_: see link
[01:12:18] *** snapwich has quit IRC
[01:12:23] <Sal_> let me check that link
[01:12:32] <wafflejock> basically you can hook up some bits to make it prerender your page into what it would be with content loaded
[01:12:40] <neurix> Anybody here with Grunt experience? I have tried to prepare my project for deployment with 'grunt built', but when I run grunt server:dist all assets are missing. Why is that?
[01:13:09] *** lsiv568 has joined #angularjs
[01:13:19] *** nicholaswyoung has joined #angularjs
[01:13:20] *** earthquake has quit IRC
[01:13:26] <wafflejock> neurix: too broad you need to provide your Gruntfile and description of the project folder structure
[01:13:32] *** rgolea has joined #angularjs
[01:13:40] <jobelenus> is there a directive where i can just execute a function on the $scope? without being tied to an event like ngClick? i cannot imagine what name i would search by this :P
[01:13:43] *** floorz has joined #angularjs
[01:13:51] <wafflejock> neurix: generally speaking you're missing some folders/references in your Gruntfile.js probably in copy or uglify or something
[01:14:27] <neurix> Hi wafflejock, let me copy it to paste bin. The folder structure is the standard one I had created with Yeoman
[01:14:29] <wafflejock> jobelenus: you mean it just runs a function when that element is encountered once?
[01:15:09] <wafflejock> I'm not sure about that
[01:15:10] <rgolea> hi there people! does someone use firebase?
[01:15:25] <wafflejock> rgolea: someone does
[01:15:26] <jobelenus> wafflejock: basically.. for instance, in this case, i need to run $('.datepicker').datepicker() on an element… but that element needs to be rendered already…
[01:15:30] <rgolea> jobelenus you could execute from a controller
[01:15:46] <rgolea> ooooh
[01:15:47] <wafflejock> jobelenus: oh you just want a directive
[01:16:19] <jobelenus> wafflejock: yes.. there are many kinds.. which is the kind i want?
[01:16:28] <wafflejock> jobelenus: I mean you want to write your own
[01:16:31] <jobelenus> oh
[01:16:36] <rgolea> jobelenus use this
[01:16:37] <rgolea> app.run(function($rootScope) { $rootScope.$on('$viewContentLoaded', function () { $(document).foundation(); }); });
[01:16:45] <wafflejock> jobelenus: or use one in ui-bootstrap
[01:16:49] <rgolea> well... i use it on foundation
[01:16:50] <neurix> wafflejock: I copied my gruntfile.js to http://pastebin.com/VytyxNbX - It is the standard one from Yeoman and I changed the image folder to img
[01:16:55] <wafflejock> jobelenus: or some other set of directives if they fit the bill
[01:16:57] <rgolea> but you can use it wherever
[01:17:03] <wafflejock> jobelenus: but rolling your own isn't too bad
[01:17:21] *** jpstone has joined #angularjs
[01:17:36] <wafflejock> neurix: k so you understand the gruntfile at all?
[01:17:58] <rgolea> wafflejock... do you use it??
[01:18:06] *** DuelShark has quit IRC
[01:18:07] *** dutis has quit IRC
[01:18:09] <wafflejock> rgolea: no just yanking yer chain I don't though
[01:18:09] <rgolea> @Foxandxss hi
[01:18:12] *** Guest60028 is now known as InezK
[01:18:15] *** lsiv568 has quit IRC
[01:18:23] <Foxandxss> hi
[01:18:32] *** chrislerum has quit IRC
[01:18:56] <rgolea> okay... i'll just explain the problem and if someone could help me... i would be really grateful
[01:19:01] <wafflejock> neurix: you have tasks at the bottom that you can execute with grunt like grunt build, grunt test, grunt server
[01:19:03] <neurix> wafflejock: Grunt is new to me, but I would say that the file set all dirs to collect the assets, etc.
[01:19:05] *** moritzs has joined #angularjs
[01:19:09] <neurix> is that right?
[01:19:16] <rgolea> I get to use firebase and agularfire to log in to facebook (simple login)
[01:19:17] *** jk-5 is now known as jk-5|gone
[01:19:28] *** earthquake has joined #angularjs
[01:19:55] <wafflejock> neurix: yeah basically there's a bunch of grunt tasks loaded with this line require('load-grunt-tasks')(grunt);
[01:19:57] <rgolea> after I log in I want to save the user data retrieved from facebook on my firebase
[01:20:05] <rgolea> anyone?
[01:20:11] <wafflejock> neurix: you can see what those are in the package.json that gets the npm modules
[01:20:37] <wafflejock> neurix: then in the Gruntfile.js it also has the configuration for all of those plugins
[01:20:40] <neurix> wafflejock: Let me check
[01:22:10] *** jaequery has quit IRC
[01:22:18] <neurix> Wafflerock: I see a bunch of devDependencies
[01:22:35] *** tekky has joined #angularjs
[01:22:39] *** chrislerum has joined #angularjs
[01:22:41] *** tk has quit IRC
[01:22:42] <neurix> What would cause the neglecting of the assets?
[01:23:06] *** tk has joined #angularjs
[01:23:07] *** tekky has quit IRC
[01:23:15] <wafflejock> neurix: so if you start off by looking at the tasks in the Gruntfile.js that's probably your best bet, basically you want to see which task you're calling (search for registerTask) then see which configurations it targets
[01:23:27] *** kroogs has quit IRC
[01:23:28] <wafflejock> you can also do grunt with verbose mode to get a better idea of what's going on
[01:23:31] *** nicholaswyoung has quit IRC
[01:23:36] *** amb has quit IRC
[01:23:40] *** rgolea has quit IRC
[01:23:43] *** chrislerum has quit IRC
[01:24:16] <Sal_> wafflejock, iit seems to me that the pre-renderer performs too many steps, this will surely slow down the answer and could blow up the crawler
[01:24:23] <neurix> would it be possible to deploy Angular without Grunt build?
[01:24:24] <wafflejock> once you know the configs it's using for the task you're calling you can lookup the corresponding plugin that should be listed in your package.json file in the devDependencies as grunt-does-something
[01:24:30] *** arizzo has quit IRC
[01:24:36] <wafflejock> neurix: yeah you can just deploy the stuff from the app folder
[01:24:43] *** night-owl has joined #angularjs
[01:24:45] *** coldboot|laptop has quit IRC
[01:24:51] *** kroogs has joined #angularjs
[01:24:55] <wafflejock> neurix: the grunt build is for minification and revving files and other things
[01:24:57] <neurix> what would be the easiest way to deploy?
[01:25:06] *** arizzo has joined #angularjs
[01:25:15] <wafflejock> neurix: just copying the app folder to a server directory
[01:25:16] <Sal_> i don't like the solution
[01:25:27] <jobelenus> wafflejock: good call on using the ui-bootstrap calendar directive
[01:25:31] <neurix> Since everything is static, could I copy everything to AWS?
[01:25:33] <wafflejock> Sal_: it can be cached and served up to the crawler
[01:25:37] *** mattupstate has quit IRC
[01:25:44] <wafflejock> jobelenus: ah yeah np
[01:25:46] <wafflejock> neurix: yup
[01:25:54] *** tk has quit IRC
[01:26:00] <neurix> wafflejock: Thank you!
[01:26:01] *** tekky has joined #angularjs
[01:26:05] <jobelenus> i keep forgetting that angular injects so low that it takes over whole tags ><
[01:26:12] *** homework1 has quit IRC
[01:26:20] *** Schtive has quit IRC
[01:26:21] <wafflejock> neurix: np the build process is good for larger projects to condense the code and run test and do automatic deployment for testing and things like that
[01:26:23] <linagee_> is there a way to have fancy input validation without ui-mask? (there's a terrible bug in there for Android Samsung keyboard)
[01:26:31] *** linagee_ has quit IRC
[01:26:31] *** linagee_ has joined #angularjs
[01:26:32] *** mac_ified has quit IRC
[01:26:33] <Sal_> wafflejock, not with dynamic data coming from a dbs
[01:26:34] *** linagee_ is now known as linagee
[01:26:45] <wafflejock> Sal_: it can't be real time and not be doing extra work
[01:26:52] <wafflejock> Sal_: that is just true regardless of technologies
[01:27:08] <wafflejock> Sal_: it can update caches on a 10 minute basis or something
[01:27:14] <wafflejock> there are solutions
[01:27:19] <wafflejock> with Flash there was no real solution
[01:27:31] <Sal_> yep, thats true
[01:27:46] <Sal_> anyway, to me it seems good only for chrome apps
[01:27:51] <Sal_> not for the web
[01:28:07] <neurix> wafflejock: Do you know if I have to set something special on any webhost?
[01:28:11] <Sal_> lets wait for polymer, web starter kit and materials
[01:28:13] *** tekky has quit IRC
[01:28:16] <Sal_> lets see what comes out of all it
[01:28:30] *** tk has joined #angularjs
[01:28:33] <neurix> Heroku required a node server
[01:28:38] *** jobelenus has quit IRC
[01:28:38] *** fdrechsler has quit IRC
[01:28:42] <Sal_> wafflejock, thanks
[01:28:46] <wafflejock> Sal_: np
[01:28:53] <wafflejock> Sal_: thx for chatting too
[01:28:59] <wafflejock> always an interesting discussion the SEO
[01:29:14] <wafflejock> I think of angular as great for web apps and okay for websites
[01:29:24] *** nicholaswyoung has joined #angularjs
[01:29:30] <Sal_> the guys behind the crawler should do something for it
[01:29:42] <wafflejock> Sal_: eh like you say overhead though
[01:29:48] <wafflejock> hard to know when all the async operations are done
[01:29:55] *** arizzo has quit IRC
[01:29:57] <wafflejock> I think they are trying
[01:30:02] *** Emperor_Earth has quit IRC
[01:30:12] <Sal_> they really did nothing for flash, but i hope they get something done for js
[01:30:21] <wafflejock> yeah flash was tough though
[01:30:21] *** jdj_dk has joined #angularjs
[01:30:26] <wafflejock> all the bytecode
[01:30:53] *** nemothek_ has quit IRC
[01:30:55] *** snurfery has quit IRC
[01:30:58] <wafflejock> and lots of different ways to store vectors of things and images and whatnot
[01:31:31] *** dbouwman has quit IRC
[01:31:35] *** ustunozgur has quit IRC
[01:31:37] *** olveraricardo72 has quit IRC
[01:32:19] *** tk has quit IRC
[01:32:20] *** tekky has joined #angularjs
[01:32:38] <wafflejock> I think for now some sort of prerender is the best way to go though
[01:32:46] <wafflejock> all the existing search engines can deal with it
[01:32:57] <Sal_> yes, seems the only
[01:33:19] *** expr_ is now known as expr
[01:34:15] *** one_zero has joined #angularjs
[01:34:24] *** jpstone has quit IRC
[01:34:50] <Sal_> ok, lets see if i can at least "steal" the materials porting done in angular and use it in my web work
[01:34:52] <Sal_> hehe
[01:35:38] *** jdj_dk has quit IRC
[01:35:48] *** tomzx`afk is now known as tomzx
[01:35:56] *** tekky has quit IRC
[01:35:58] *** disorder20 has quit IRC
[01:36:04] *** chrisbirk has quit IRC
[01:36:13] *** tk has joined #angularjs
[01:36:38] *** Sal_ has quit IRC
[01:36:39] *** chrislerum has joined #angularjs
[01:37:25] *** conner_ has joined #angularjs
[01:37:59] *** Valesk has joined #angularjs
[01:38:58] *** tk has quit IRC
[01:39:28] *** seydoggy has joined #angularjs
[01:40:34] *** nicholaswyoung has quit IRC
[01:41:07] *** mehlah has quit IRC
[01:41:27] *** intellix has left #angularjs
[01:42:30] *** lucasefe has quit IRC
[01:42:34] *** moritzs has quit IRC
[01:43:12] *** moritzs has joined #angularjs
[01:43:48] *** nicholaswyoung has joined #angularjs
[01:44:18] *** bsmithgall has joined #angularjs
[01:44:50] *** matiasow has quit IRC
[01:45:12] *** kcccccc has quit IRC
[01:45:33] *** AciD`` has quit IRC
[01:47:05] *** seydoggy_ has joined #angularjs
[01:47:05] <wafflejock> neurix: I started by using the angular yeoman generator too but at some point just wiped out everything I didn't need and made it a lot simpler
[01:47:48] *** jaequery has joined #angularjs
[01:48:02] <Kallb123> If I'm making async calls on a timer, what's the best way to give the callback access to a factory?
[01:48:03] <wafflejock> neurix: setup Jenkins to watch my git repo and automatically run the builds then run a Makefile that automatically copies it over to the server after the build and tests pass, could also setup automatic rollback if you need something that is deploying to a live site
[01:48:42] *** beckyconning__ has joined #angularjs
[01:48:43] <wafflejock> Kallb123: would need to see some context for your callback generally you just need to inject the factory into the top level function for the thing you're defining like a service or whatever
[01:50:20] *** Foxandxss has quit IRC
[01:50:42] *** arizzo has joined #angularjs
[01:50:44] *** lsiv568 has joined #angularjs
[01:50:45] *** seydoggy has quit IRC
[01:51:04] *** seydoggy_ has quit IRC
[01:51:43] <Kallb123> http://pastebin.com/9L5cwuRz
[01:51:46] <beckyconning__> hi! does anyone have an opinion on crud service design patterns? do people tend to keep collections inside services and then persist them or query for the collections and then keep them inside controllers? are there any best practices or examples?
[01:52:25] *** BillCriswell has joined #angularjs
[01:52:34] <neurix> wafflejock: Thank you for the advice
[01:52:40] *** TorchDragon has joined #angularjs
[01:52:45] <Kallb123> I don't think that actually works, but I think it portrays what I'm aiming for. fetch() is called periodically
[01:52:49] *** kalehv has joined #angularjs
[01:52:51] <wafflejock> beckyconning__: typically I build a service in angular that corresponds to each endpoint that does soem crud
[01:53:33] *** kalz has quit IRC
[01:53:37] <beckyconning__> wafflejock: cool : ) would that service persist any data? could i see an example?
[01:54:06] *** raul782 has quit IRC
[01:54:09] *** Ronyrun has joined #angularjs
[01:54:16] <Kallb123> sorry, checkFeed is called periodically, but they're similar anwyay
[01:54:17] <wafflejock> beckyconning__: yeah here's something I posted a while back but still pretty relevant http://stackoverflow.com/questions/17667455/angular-http-vs-service-vs-ngresource
[01:54:27] *** JoshGlzBrk has joined #angularjs
[01:54:28] <beckyconning__> thanks! *reads*
[01:54:33] <wafflejock> beckyconning__: instead of using $http in there I typically use $resource now
[01:55:16] *** livingstn has joined #angularjs
[01:55:36] <wafflejock> Kallb123: if you want to do something in a timed interval I think the way to go is using $timeout (since this automatically calls $apply for you to trigger any watchers to update) and in that case you need a function that uses $timeout to call itself
[01:56:10] <wafflejock> Kallb123: something like this http://stackoverflow.com/questions/13671031/server-polling-with-angularjs
[01:56:58] *** earthquake has quit IRC
[01:57:08] *** mange has joined #angularjs
[01:57:20] *** TorchDragon has quit IRC
[01:57:33] <Kallb123> wafflejock, thanks, does that apply to non angular timed stuff? I won't be using $http, I have to use Google Feeds
[01:58:18] *** kroogs has quit IRC
[01:58:28] <wafflejock> Kallb123: yup should still work out fine if you need to make angular "aware" of some update done in a third party async thing where you change the scope you just need to be sure to call $scope.$apply() yourself alternatively you use something like $timeout that calls it for you you may have to fiddle with it some
[01:58:55] *** Aliks has joined #angularjs
[01:59:02] *** bayousoft has quit IRC
[01:59:15] *** phuh has quit IRC
[01:59:22] <wafflejock> neurix: yup np
[01:59:39] <wafflejock> k gotta actually reply to clients and whatnot :P bbiab
[01:59:57] *** phuh has joined #angularjs
[01:59:58] *** lsiv568 has quit IRC
[02:01:08] *** balboah has joined #angularjs
[02:01:53] *** gr1nd has quit IRC
[02:02:26] *** vintik has quit IRC
[02:02:40] *** ckboii89 has joined #angularjs
[02:02:47] *** phuh has quit IRC
[02:02:49] *** CodeFriar has joined #angularjs
[02:03:39] *** subone has quit IRC
[02:03:40] *** phuh has joined #angularjs
[02:03:50] *** elrabin has joined #angularjs
[02:04:34] *** Bade has quit IRC
[02:05:37] *** balboah has quit IRC
[02:05:45] *** ziyadb has quit IRC
[02:06:02] *** quartzmo has quit IRC
[02:06:15] *** texinwien has quit IRC
[02:06:35] *** Ronyrun has quit IRC
[02:08:33] *** nytrm has joined #angularjs
[02:08:38] *** phuh has quit IRC
[02:09:06] *** tomzx is now known as tomzx`afk
[02:09:26] *** kalusn has joined #angularjs
[02:09:28] *** slewnae has joined #angularjs
[02:09:48] *** tomzx`afk is now known as tomzx
[02:10:15] *** DerekPerkins has quit IRC
[02:10:40] *** slewnae has left #angularjs
[02:11:59] *** lordkryss has quit IRC
[02:12:35] *** euskadi31 has quit IRC
[02:12:45] *** anjumkaiser has joined #angularjs
[02:12:49] *** slainer68 has quit IRC
[02:12:53] *** blueadept` has quit IRC
[02:13:06] *** robteix has joined #angularjs
[02:13:11] *** nytrm has quit IRC
[02:13:55] *** tsalb has quit IRC
[02:13:57] *** kalusn has quit IRC
[02:15:13] *** kalz has joined #angularjs
[02:15:49] *** wxo has joined #angularjs
[02:16:31] *** samn has quit IRC
[02:17:05] *** hekep has quit IRC
[02:17:09] *** snoogie has joined #angularjs
[02:17:15] *** snoogie has left #angularjs
[02:17:49] *** AnthonyC has quit IRC
[02:19:51] *** richardbaker has quit IRC
[02:20:45] *** tfennelly has quit IRC
[02:20:56] <apipkin> I'm giving a talk about ramping up with angular tomorrow around noon eastern. WOuld anyone like to look at my slides (in progress) and give feedback?
[02:22:46] *** robteix has quit IRC
[02:23:00] *** dhcar has joined #angularjs
[02:23:37] *** mikaeldice has joined #angularjs
[02:24:34] *** marr has quit IRC
[02:24:46] *** jdj_dk has joined #angularjs
[02:26:05] *** jpstone has joined #angularjs
[02:26:19] <zelrik> hi
[02:26:55] *** rho has quit IRC
[02:27:09] *** woebtz has joined #angularjs
[02:27:36] *** Aliks has quit IRC
[02:27:54] <apipkin> 'ello!
[02:28:08] *** kroogs has joined #angularjs
[02:28:41] *** mindlace has quit IRC
[02:28:58] *** CodeFriar has quit IRC
[02:29:04] *** btc_panhandler has quit IRC
[02:29:04] *** Asiajey has joined #angularjs
[02:29:04] *** Asiajey has joined #angularjs
[02:29:17] *** jdj_dk has quit IRC
[02:29:43] *** mschoening has joined #angularjs
[02:29:44] *** k-dawg has joined #angularjs
[02:29:55] *** brownbathrobe has joined #angularjs
[02:30:00] *** cthrax has quit IRC
[02:30:50] *** mindlace has joined #angularjs
[02:31:02] *** kcccccc has joined #angularjs
[02:31:02] *** brownbathrobe has quit IRC
[02:31:37] <Kallb123> wafflejock, thanks for all your help, think I've got things running properly :) I'm off now, cya
[02:31:50] <wafflejock> Kallb123: yup np have a good one
[02:31:58] *** Kallb123 has quit IRC
[02:33:15] *** subnl2 has joined #angularjs
[02:33:31] *** btc_panhandler has joined #angularjs
[02:34:02] *** kareypowell has joined #angularjs
[02:34:12] *** Aliks has joined #angularjs
[02:35:10] *** LossFor has joined #angularjs
[02:35:31] *** kroogs has quit IRC
[02:35:35] *** lnxmad has joined #angularjs
[02:36:45] *** jsoverson has quit IRC
[02:36:57] *** mven_ has joined #angularjs
[02:37:57] <wafflejock> apipkin: sure
[02:37:58] *** anjumkaiser has quit IRC
[02:38:16] <apipkin> wafflejock: this is what i have so far http://slides.com/apipkin/introduction-toangular-js
[02:38:57] <apipkin> wafflejock: down first when you can then right
[02:39:17] <wafflejock> yup figured it out thx though
[02:39:22] <apipkin> :)
[02:41:02] *** cthrax has joined #angularjs
[02:41:10] *** bbankes has joined #angularjs
[02:41:27] *** chasematterhorn has joined #angularjs
[02:42:04] <lnxmad> new cloud9 beta is awesome
[02:42:12] <wafflejock> apipkin: looks pretty good so far, lots of slides, not sure how long the talk is but might be flying through some of this, only other thing I'd say is maybe leave out the minification bit with regard to DI for some more advanced section or gotchas section or something
[02:42:57] *** OdinIncarnate has joined #angularjs
[02:43:00] *** brunocoelho has joined #angularjs
[02:43:15] *** DrMabuse has quit IRC
[02:43:16] <apipkin> wafflejock: thanks for the tip! It's going to be an hours prez and the first few i'm hoping to just touch on then get to the meat.
[02:43:19] *** gnarMat__ has quit IRC
[02:43:24] *** slainer68 has joined #angularjs
[02:43:26] <apipkin> (at least that's the plan haha)
[02:43:26] *** jareddlc has quit IRC
[02:43:31] <jpstone> why would I have to refresh my webpage to update my controller data? if i log out/log in, the data for the old user shows, until I refresh the page
[02:43:34] *** SpearThruster has quit IRC
[02:43:39] *** morenoh149 has quit IRC
[02:43:48] <jpstone> I'm using ui-router
[02:43:54] *** jareddlc has joined #angularjs
[02:44:02] <wafflejock> jpstone: where is you controller referenced... in the states?
[02:44:10] <jpstone> I'm using resolve:
[02:44:14] <jpstone> yes
[02:44:17] <jpstone> it's defined in the states
[02:44:30] <jpstone> I tried it with and without resolve...same thing
[02:44:38] *** ecantin has quit IRC
[02:44:38] *** SFeser has quit IRC
[02:45:03] <wafflejock> jpstone: not sure if you don't specify reloadOnSearch=false it should recreate the controller anytime the url changes if the state is tied to a url
[02:45:05] *** chasematterhorn is now known as Scarlioni
[02:45:19] <jpstone> Yeah, that's what I thought.
[02:45:20] <wafflejock> jpstone: try putting a breakpoint in the controller to see if it gets created again?
[02:45:22] *** bbankes_ has joined #angularjs
[02:45:40] *** rabaznaz has quit IRC
[02:45:48] <jpstone> like a console.log or something?
[02:45:59] <wafflejock> jpstone: that or, debugger;
[02:46:08] <wafflejock> chrome debug tools or firebug will break at that point
[02:46:35] <jpstone> yep, it's reloading
[02:46:36] <wafflejock> in a good way
[02:46:39] <jpstone> but my service call isn't
[02:46:42] <jpstone> until I refresh the page
[02:46:44] <jpstone> odd
[02:46:44] *** patrickarlt has joined #angularjs
[02:46:44] *** TorchDragon has joined #angularjs
[02:46:50] <wafflejock> well the service is singleton
[02:46:54] <wafflejock> so only one instance gets made
[02:47:00] <wafflejock> and it gets injected everywhere
[02:47:13] *** vintik has joined #angularjs
[02:47:16] *** woebtz has quit IRC
[02:47:26] <wafflejock> SINGLETON there can be only one :P
[02:47:27] <jpstone> Right, but shouldn't my $scope.var = Service.data(); update on controller reload?
[02:47:40] <wafflejock> jpstone: yeah the function call should happen again
[02:47:46] <wafflejock> you can step through it if you drop a debugger in there
[02:47:50] <wafflejock> step into the functino call
[02:47:51] <jpstone> well, I actually didn't set it up as a function
[02:47:57] <jpstone> the service is just returning a raw data model, not a function
[02:47:58] *** rud has quit IRC
[02:48:04] *** slainer68 has quit IRC
[02:48:08] <jpstone> that's probably my issue isn't it
[02:48:14] <wafflejock> jpstone: yeah so you'll need to trigger some function on the service to get new data
[02:48:27] *** lsiv568 has joined #angularjs
[02:48:28] <jpstone> bam zoom zing :)
[02:48:34] <jpstone> see, don't always need a plunker
[02:48:35] <jpstone> lol
[02:48:45] *** Tidwell has quit IRC
[02:48:49] <wafflejock> hehe yeah but I always prefer it
[02:48:53] *** jharbaug_ has joined #angularjs
[02:48:56] <jpstone> they can be a bitch to set up
[02:48:58] <jpstone> sometimes
[02:49:00] <wafflejock> people solve their own problems half the time :)
[02:49:00] <jpstone> lol
[02:49:01] *** stanR has quit IRC
[02:49:07] *** bbankes has quit IRC
[02:49:29] <wafflejock> but yeah sometimes can be a little rough, with the template and stuff from ui-bootstrap and other places that go right to plunkr it's pretty easy though
[02:49:30] <jpstone> Thanks for the tip wafflejock
[02:49:32] <wafflejock> np
[02:49:52] *** ryanseddon has joined #angularjs
[02:49:57] <jpstone> Yeah, it's generally not too bad
[02:51:18] *** tfennelly has joined #angularjs
[02:51:22] <wafflejock> apipkin: also just another thought based on earlier conversation might be worth mentioning the SEO issues and possible workarounds
[02:51:27] *** jharbaugh has quit IRC
[02:51:28] *** TorchDragon has quit IRC
[02:51:34] *** thedodd has joined #angularjs
[02:51:36] <wafflejock> apipkin: but also the fact that this is true for any AJAX based business
[02:52:18] <pkayfire_> definitely mention SEO issues // I personally was clueless about those issues coming from traditional MVC frameworks
[02:52:37] <pkayfire_> nasty surprise, but we managed to fix it building our own server that prerendered html
[02:52:38] <apipkin> wafflejock: i missed those conversations :-/ most of our apps would be behind logins, but it'd be great to mention for sure
[02:52:44] <zelrik> a good workaround is prerender.io
[02:52:44] <wafflejock> yeah think it's something people like to conveniently leave out of conversation but it's a reality
[02:53:00] <pkayfire_> prerender.io also open sources their code... :)
[02:53:01] <zelrik> there is also SEO.js and brombone
[02:53:15] <caitp> second google result for "ui-comments" is an angular app i wrote
[02:53:17] *** mschoening has quit IRC
[02:53:19] <wafflejock> nice a lot of suggestions to add ^
[02:53:21] <caitp> the first result is the repo for that app on github
[02:53:22] <zelrik> I think those 3 were the ones we investigated
[02:53:33] <zelrik> caitp, you're my hero
[02:53:49] *** ryanseddon has left #angularjs
[02:54:04] <caitp> its because google is clever
[02:54:11] <wafflejock> caitp: no prerendering done?
[02:54:28] *** elrabin has quit IRC
[02:54:29] <caitp> none
[02:54:32] <zelrik> I am first on 'fancy input angular'
[02:54:44] <zelrik> but I know search results are not the same for everyone
[02:54:55] <wafflejock> caitp: interesting I had seen some tests a while ago that indicated it was trying to crawl the whole thing but not necessarily able to get at all the parts
[02:55:21] <caitp> https://github.com/AlexCppns/ac-fancy-input that?
[02:55:28] *** SFeser has joined #angularjs
[02:55:41] <zelrik> actually, my demo is not on the first page of results
[02:55:44] <zelrik> yes caitp
[02:55:53] <caitp> but thats just github
[02:55:59] <caitp> a rails app :p
[02:56:24] *** thedodd has quit IRC
[02:56:27] *** lsiv568 has quit IRC
[02:56:55] <zelrik> a rails app?
[02:57:10] <caitp> github is rails
[02:57:13] <caitp> or was
[02:57:32] <zelrik> oh ok
[02:57:34] *** tfennelly has quit IRC
[02:57:37] <jpstone> so even with a function, it still doesn't update
[02:57:39] <jpstone> drat
[02:57:58] *** jareddlc has quit IRC
[02:58:11] *** jareddlc has joined #angularjs
[02:58:12] *** jareddlc_ has joined #angularjs
[02:58:12] *** jareddlc has quit IRC
[02:58:17] <zelrik> caitp, why your demo is on first page
[02:58:26] <zelrik> maybe mine isnt crawled yet
[02:58:53] <caitp> dunno mines been up since last year
[02:59:00] <zelrik> yeah
[02:59:04] <zelrik> you got stars too
[02:59:34] <oniijin> cuz she's famous
[02:59:34] *** waylon999 has quit IRC
[02:59:47] *** msafi has quit IRC
[02:59:53] <jpstone> Maybe I need to convert it into a promise, even though it's just some local logic that returns an object (no API server calls)
[03:00:02] <zelrik> yeah, she even got followers on github O.o
[03:00:12] <zelrik> I didnt even know you could follow people on there
[03:00:49] *** terranca has joined #angularjs
[03:00:53] <caitp> i'm not sure what following really "does" on github
[03:00:54] <caitp> i don't like
[03:01:02] <caitp> get news from anyone i follow on what they're doing
[03:01:04] *** bc_ has joined #angularjs
[03:01:13] <zelrik> you see ALL their commits :D
[03:01:13] <oniijin> u get huge e-peen duh
[03:01:28] *** balboah has joined #angularjs
[03:01:28] <caitp> i don't get desktop notifications whenever they commit code
[03:01:32] *** bc_ is now known as bc
[03:02:06] *** chrisbirk has joined #angularjs
[03:02:39] <wafflejock> jpstone: you could show it in a plnkr :)
[03:02:47] *** dbouwman has joined #angularjs
[03:03:28] *** Tidwell has joined #angularjs
[03:03:46] <brunocoelho> I'm having a problem to test my controller.
[03:03:47] <brunocoelho> The inject function is never called, so my scope variable is undefined and I got this kind of error
[03:03:50] *** chrislerum has quit IRC
[03:03:59] <brunocoelho> TypeError: scope is undefined
[03:04:00] <brunocoelho> TypeError: Cannot read property 'books' of undefined
[03:04:00] <brunocoelho> I included angular and angular.mock files properly, at least I think.
[03:04:02] <brunocoelho> https://gist.github.com/brunocoelho/b00c0735b031ad288b9d
[03:04:03] <brunocoelho> Any idea?
[03:04:06] <jpstone> nope, same behavior even with a promise..drat!
[03:04:08] *** patrickarlt has quit IRC
[03:04:10] <jpstone> wafflejock: will do
[03:04:29] <zelrik> I dont know, never wrote a controller test...
[03:04:31] * zelrik hides
[03:06:27] *** balboah has quit IRC
[03:06:45] <zelrik> actually
[03:06:49] *** markalanevans has quit IRC
[03:07:01] <zelrik> brunocoelho, your scope does look undefined
[03:07:03] *** dbouwman has quit IRC
[03:07:40] *** morenoh149 has joined #angularjs
[03:07:56] <zelrik> nvm
[03:09:36] *** kroogs has joined #angularjs
[03:10:05] *** kalusn has joined #angularjs
[03:10:17] *** wartdev has joined #angularjs
[03:10:19] *** jstroem has quit IRC
[03:11:50] *** tejas-manohar has joined #angularjs
[03:12:12] *** dwightwatson has joined #angularjs
[03:12:18] *** tejas-manohar has left #angularjs
[03:12:39] *** wxo has quit IRC
[03:12:43] *** josh-k has quit IRC
[03:13:12] <brunocoelho> zelrik: yeah, it is undefined because the inject function is never called
[03:13:22] *** josh-k has joined #angularjs
[03:13:29] <brunocoelho> I don't have the faintest idea why
[03:13:30] *** DoubleAW has quit IRC
[03:13:31] <wafflejock> brunocoelho: no idea looks right really
[03:13:55] *** arizzo has quit IRC
[03:13:56] *** DoubleAW has joined #angularjs
[03:14:05] <zelrik> brunocoelho, I thought it was function(inject() and not the other way around
[03:14:08] <zelrik> could be wrong
[03:14:30] *** arizzo has joined #angularjs
[03:14:48] *** kalusn has quit IRC
[03:15:13] *** mdedetrich has joined #angularjs
[03:15:38] <wafflejock> nope got a test here that works with the same
[03:16:03] *** moritzs has quit IRC
[03:16:12] *** morenoh149 has quit IRC
[03:16:19] <zelrik> try this example brunocoelho http://nathanleclaire.com/blog/2013/12/13/how-to-unit-test-controllers-in-angularjs-without-setting-your-hair-on-fire/
[03:16:22] <wafflejock> https://gist.github.com/shusain/a13ed120181c6349d0a6 <-- here's a tweaked basic one
[03:16:28] <zelrik> it s done a bit differently
[03:16:29] *** Tidwell has quit IRC
[03:16:40] <brunocoelho> zelrik: the order is correct, inject comes first
[03:16:44] <zelrik> okok
[03:16:51] *** LuxuryMode has quit IRC
[03:17:01] <wafflejock> I just ran the test here too and it works and if I change the number of pages it breaks properly
[03:17:19] *** lnxmad has quit IRC
[03:17:20] <wafflejock> I can't see anything significantly different
[03:17:23] *** LuxuryMode has joined #angularjs
[03:17:24] *** cigarshark has quit IRC
[03:17:29] *** terranca has quit IRC
[03:17:33] *** josh-k has quit IRC
[03:17:36] <wafflejock> httpBackend bits aside
[03:17:48] *** whunt_ has quit IRC
[03:18:25] <brunocoelho> wafflejock: which angular version you are using?
[03:18:45] <wafflejock> 1.2.19 in that project
[03:18:47] *** danielpquinn has quit IRC
[03:18:47] *** jdj_dk has joined #angularjs
[03:19:01] <brunocoelho> I'm using 1.0.8
[03:19:14] *** JoshGlzBrk has quit IRC
[03:19:21] <wafflejock> ah yeah that's kinda old now might have some problems
[03:19:28] *** wartdev has quit IRC
[03:19:42] <wafflejock> brunocoelho: here's the migration guide if that's a possibility https://docs.angularjs.org/guide/migration
[03:19:43] *** chrislerum has joined #angularjs
[03:20:11] <zelrik> why using 1.0.8
[03:20:31] <zelrik> unless you wrote huge amounts of code with that version
[03:20:33] <zelrik> and even then
[03:20:37] *** chrislerum has quit IRC
[03:21:03] <zelrik> I use 1.2.9
[03:21:06] <brunocoelho> Thanks wafflejock
[03:21:13] <brunocoelho> I think I will try to migrate right now
[03:21:15] <zelrik> I think 1.2.X fixes lots of things
[03:21:16] <wafflejock> brunocoelho: np good luck
[03:21:26] <wafflejock> shouldn't be too terrible
[03:21:46] <zelrik> they separated the dependencies
[03:22:01] *** k-dawg has quit IRC
[03:22:02] <wafflejock> right that's the major thing and using SCE instead of ng-bind-html-unsafe
[03:22:57] *** chrislerum has joined #angularjs
[03:23:03] *** edzez__ has quit IRC
[03:23:40] *** jdj_dk has quit IRC
[03:23:55] *** arizzo has quit IRC
[03:23:56] <zelrik> maybe I should migrate to 1.2.19
[03:23:59] <zelrik> it s a small step
[03:24:04] <zelrik> from 1.2.9
[03:24:14] *** MistahKurtz has quit IRC
[03:24:18] *** subnl2 has left #angularjs
[03:25:04] *** gnarMati_ has joined #angularjs
[03:25:16] *** whunt has joined #angularjs
[03:25:36] *** bkuberek has joined #angularjs
[03:26:10] *** jshultz has quit IRC
[03:26:41] *** jaequery has quit IRC
[03:26:44] <brunocoelho> I got a very friendly error message when upgraded to version 1.2.0
[03:26:46] <brunocoelho> Uncaught object
[03:27:18] *** gnarMati_ has quit IRC
[03:27:42] *** gnarMati_ has joined #angularjs
[03:28:40] *** bzitzow has quit IRC
[03:28:56] *** ASUChander has quit IRC
[03:28:56] *** arizzo has joined #angularjs
[03:29:16] *** chrisbirk has quit IRC
[03:30:03] *** bayousoft has joined #angularjs
[03:31:04] *** bayousoft has quit IRC
[03:31:06] *** motionman has joined #angularjs
[03:31:18] <wafflejock> brunocoelho: hehe yeah we were talking about that a bit earlier apparently FF does a better job with that error otherwise use chrome debug tools and enable pause on exceptions in the source panel
[03:31:27] <wafflejock> brunocoelho: then look around at vars and see what it was trying to get
[03:31:45] <wafflejock> it means something wasn't injected or included, maybe ngRoute module with angular-route.js or something of that sort
[03:32:19] *** chrisbirk has joined #angularjs
[03:32:32] *** warehouse13 has joined #angularjs
[03:32:45] *** dc_ has joined #angularjs
[03:32:51] *** bayousoft has joined #angularjs
[03:33:07] *** arizzo has quit IRC
[03:33:35] *** Left_Turn has quit IRC
[03:33:52] *** Zesty has joined #angularjs
[03:34:11] *** chrisbirk has quit IRC
[03:34:30] *** spencercarnage has quit IRC
[03:34:41] *** Valesk has quit IRC
[03:34:53] *** Valesk has joined #angularjs
[03:35:40] <brunocoelho> wafflejock: httpProvider now is routeProvider?
[03:36:13] *** darrin has joined #angularjs
[03:36:18] <brunocoelho> forget it!
[03:36:26] <brunocoelho> :D
[03:36:29] *** DrMabuse has joined #angularjs
[03:36:35] *** heidi has quit IRC
[03:36:40] *** whunt has quit IRC
[03:36:48] <wafflejock> heh yeah nope making some hot dogs here
[03:37:19] <wafflejock> whoever packaged these 10 hot dogs in a package and 8 buns need to get together with the ISO or ANSI or something
[03:37:44] *** dc_ has quit IRC
[03:38:12] *** sneakertack has joined #angularjs
[03:38:18] *** umib0zu has quit IRC
[03:38:20] *** whunt has joined #angularjs
[03:38:43] <zelrik> wafflejock, it s to force you to buy 8 packs of dogs and 10 packs of buns
[03:38:59] <wafflejock> I know gotta find the LCD
[03:39:08] <wafflejock> pain in the butt :P
[03:39:13] <wafflejock> that's too many hot dogs
[03:39:28] <zelrik> if you re kobayashi that s 2 meals
[03:39:29] <zelrik> :D
[03:39:42] *** TheAceOfHearts has quit IRC
[03:39:46] *** heidi has joined #angularjs
[03:40:58] *** DrMabuse has quit IRC
[03:41:55] *** dbouwman has joined #angularjs
[03:42:28] *** dc_ has joined #angularjs
[03:43:05] <wafflejock> I vote for hotdogs and buns to be sold in only base 2 increments 2 4 8 16
[03:44:32] *** arizzo has joined #angularjs
[03:45:09] *** patrickarlt has joined #angularjs
[03:45:16] *** kjnhbgvfcdx has joined #angularjs
[03:45:18] *** warehouse13 has quit IRC
[03:46:00] <ckboii89> when passing arrays in functions in angular, does it have to be explicitly known? like function([])
[03:46:05] <wafflejock> just gotta get some legislation passed... once my brother passes the bar :)
[03:46:27] *** Gambit- has quit IRC
[03:46:32] *** RobinBAwesome has quit IRC
[03:46:40] <wafflejock> ckboii89: not sure what you mean exactly in JS the properties/arguments aren't typed
[03:47:37] <ckboii89> well i have a array called selectedItems, and this array contains the id's of checkboxes to be deleted
[03:48:03] *** H1FuelCell has quit IRC
[03:48:21] <ckboii89> this array will be passed to a delete function uses .remove
[03:48:32] <ckboii89> basically im trying to bulk delete
[03:48:45] *** KernelCurry has quit IRC
[03:48:48] *** nemothekid has joined #angularjs
[03:49:54] <wafflejock> ckboii89: k typically you want to have the model drive the view and not interact with the DOM from the controller ever since it will break your ability to test and couples the view tightly to the controller, so ordinarilly you just want an array that is in or is your model that you mark some property on the elements that are "deleted" then use ng-if or ng-hide to remove the elements based on that property
[03:50:23] *** shinnya has quit IRC
[03:50:24] *** Jdubs has joined #angularjs
[03:50:43] <Jdubs> Hey guys, quick question: in a directive, if I'm accessing a parent scope value by key, how do I make sure I access the highest level scope with the value so it's set in the proper place instead of just somewhere it's inherited?
[03:50:59] <wafflejock> Jdubs: typically not good to reach up
[03:51:10] <wafflejock> Jdubs: you usually want to pass some object into the directives scope instead
[03:51:27] *** spencercarnage has joined #angularjs
[03:51:57] *** DerekPerkins has joined #angularjs
[03:52:01] <wafflejock> using isolate scope if you need to way binding and want to isolate the scope or attrs to get the info you need instead of reaching up, then you don't need to worry about context just supplying the values it needs
[03:52:03] <ckboii89> oh.. well the data is coming from rails.. does that change anything?
[03:52:32] *** tfennelly has joined #angularjs
[03:52:35] <wafflejock> ckboii89: assuming rails is just returning some JSON not really if rails is writing the view directly I just disagree with that way of doing things in general
[03:52:45] *** arizzo has quit IRC
[03:53:03] <apipkin> Is it possible to create a filter that returns html? I'm wanting to clean this up proper :) http://plnkr.co/edit/iJ19pRJqQeqZlLzmYbaj?p=preview
[03:53:05] <wafflejock> ckboii89: when the service writes the view it is automatically tied to only being used for HTML and can't be re-used for other platforms that might want to consume or contribute to that data
[03:53:08] <ckboii89> ah ok well i'm pretty new so my design isnt the best
[03:53:31] <jpstone> I FIXED IT
[03:53:32] <jpstone> WOOHOO
[03:53:41] <wafflejock> jpstone: awesome what was the snag?
[03:54:05] <jpstone> adding .$promise.then() to the end of the Auth.getCurrentUser() function
[03:54:20] *** bianca has quit IRC
[03:54:28] <jpstone> was sneaky...wouldn't make a difference on initial load or page refresh...but when logging in/logging out, it reared its ugly head
[03:54:44] *** andrewhl has joined #angularjs
[03:55:21] <jpstone> And the generator I'm using doesn't ever put $promise when calling Auth.getCurrentUser
[03:55:29] <Jdubs> wafflejock: i see...i'm writing a custom selection box builder made out of divs...I'm accessing the collection I want to change by providing the directive with the key and then access scope[key]. What is the better way?
[03:56:14] <wafflejock> Jdubs: nothing wrong with that you might want to throw an error or the like from your directive if the necessary bits aren't supplied but thought you were doing something like $scope.$parent
[03:56:36] <Jdubs> I suppose I could do $scope.$parent, just didn't think it was the best way
[03:56:54] <Jdubs> if I change it at the child scope, that only changes it there instead of where the object originates correct?
[03:57:35] *** tfennelly has quit IRC
[03:57:48] *** gunn has joined #angularjs
[03:58:32] <wafflejock> Jdubs: sorry can't answer that not clear to me... also I suggest not using $scope.$parent because that means you're assuming that the parent scope has some thing that it might not if you move the directive to being used in some other context
[03:58:55] <wafflejock> it works but it seems more fragile to me than defining an isolate scope
[03:59:07] *** wallerdev has quit IRC
[03:59:08] *** arizzo has joined #angularjs
[03:59:10] <Jdubs> let me try to explain: i have an array of objects with values and labels like an ng-options array...and I also provide a model key of where I want the new selected object to be placed
[03:59:21] <Jdubs> i want to make sure that the correct scope get's updated with the new object
[03:59:56] <Jdubs> so somewhere above the directive is a scope.collection and scope.selected essentially, i want to make sure the correct scope.selected is changed instead of one of it's children
[04:00:01] *** charuru has quit IRC
[04:00:12] *** kareypowell has quit IRC
[04:00:15] <Jdubs> would the best way be to follow the chain up until I find a scope that is missing the value, and then go one step back down to change the value?
[04:01:04] *** pheze has quit IRC
[04:01:22] *** Deseaus has quit IRC
[04:01:47] <wafflejock> Jdubs: sorry that's a really confusing way to look at it I think... if you want to pass an object in and have two way data binding on that object so the same reference is used in the directive and outside then you just want an isolate scope defined in the directive definition object like return {scope:{selectedData:"=",restrict:"E"}}
[04:02:13] *** balboah has joined #angularjs
[04:02:23] *** joshontheweb has joined #angularjs
[04:02:36] <Jdubs> i'm sorry what does the "=" do?
[04:02:49] *** heidi has quit IRC
[04:03:47] <wafflejock> Jdubs: no worries legit question https://docs.angularjs.org/api/ng/service/$compile
[04:03:48] *** arizzo has quit IRC
[04:03:59] <wafflejock> Jdubs: scroll down to where it talks about isolate scope
[04:04:21] <Jdubs> oh that looks like what i want :)
[04:04:22] <Jdubs> thanks
[04:04:47] <wafflejock> Jdubs: np there's some pretty helpful vids here too if you're into that https://egghead.io/search?q=isolate+scope
[04:04:52] <Jdubs> hmmm
[04:05:02] <Jdubs> only issue is i want to be able to use different names for what im looking for
[04:05:25] <wafflejock> well what gets passed in can be updated
[04:05:36] *** patrickarlt has quit IRC
[04:05:50] *** moritzs has joined #angularjs
[04:05:57] <wafflejock> like you can have $scope.selectedItem in your controller and where your directive is in the markup you can have my-data="selectedItem"
[04:06:09] *** patrickarlt has joined #angularjs
[04:06:16] <Jdubs> ah i see
[04:06:23] <wafflejock> so when the selectedItem changes within the link function of your directive you can setup a watch to see that it changed and do some business
[04:06:25] <Jdubs> so it compiles it directly with whatever name I use there
[04:06:28] <Jdubs> ?
[04:06:34] <Jdubs> without having to use handlebars?
[04:06:47] *** morenoh149 has joined #angularjs
[04:06:48] <wafflejock> yeah it looks for that on the scope
[04:06:52] *** balboah has quit IRC
[04:07:08] <Jdubs> kk
[04:07:23] <brunocoelho> wafflejock: Just to let you know that I update to 1.2.0
[04:07:24] <brunocoelho> :D
[04:07:29] <brunocoelho> updated*
[04:07:38] <wafflejock> ah k so you made it?
[04:07:46] <wafflejock> test working?
[04:08:49] *** pheze has joined #angularjs
[04:09:12] *** tommmied has joined #angularjs
[04:09:28] *** nytrm has joined #angularjs
[04:09:37] *** matthew_r has quit IRC
[04:10:04] <Jdubs> i think i understand it
[04:10:10] <Jdubs> rewriting the directive now
[04:10:18] <Jdubs> will let you know if it goes as planned :)
[04:10:49] *** patrickarlt has quit IRC
[04:10:50] *** kalusn has joined #angularjs
[04:11:08] <Zesty> can someone explain this to my simian brain? Im trying to understand why angular doesnt pre-select <selects>... i tried it with ng-options which DID work, but i need to use optiongroups so i basically need to do this manually
[04:11:20] <Zesty> and i dont understand the docs with 'by reference' and stuff
[04:11:49] *** joepie91 has quit IRC
[04:12:50] *** richardbaker has joined #angularjs
[04:12:50] <wafflejock> Zesty: not sure what you're running into but typically if you set the ng-model to match whatever the select part of your ng-options says to use then it works
[04:12:50] <Zesty> if i have account.type for ng-model, and in my options i have value="1"
[04:13:22] <Jdubs> wafflejock: okay i found a strange quirk
[04:13:41] <Zesty> ohhhh
[04:13:41] <Zesty> wait
[04:13:42] <Zesty> "the select part"?
[04:13:42] <wafflejock> yeah that's the tricky thing
[04:13:42] <Zesty> what do you mean by that
[04:13:45] *** nytrm has quit IRC
[04:13:51] <Jdubs> wafflejock: when i use my select function to choose an item, it updates the parent scope, but uses the directives name of the attribute instead of the name I specified in the directive
[04:14:32] <wafflejock> with ng-options you've got like 4 ways to define what gets used for the label and what gets used for the actual selected value
[04:14:32] *** joepie91 has joined #angularjs
[04:14:38] <Jdubs> wafflejock: http://pastebin.com/rLXSGQFg
[04:15:02] <Jdubs> wafflejock: yeah but i don't want to use a select box, I'm making a custom selector out of divs
[04:15:18] <Zesty> no no, i mean.. i fully get how to use ng-options. it works great. but the problem is (i dont think) it supports <optgroup>
[04:15:23] *** kalusn has quit IRC
[04:15:25] <Zesty> so i need to handle 'autoselection' manually
[04:15:39] <Zesty> the problem is i dont understand... why in general, selects dont just pre-select the value you pass in
[04:15:41] <Zesty> if account.type=1
[04:15:53] <Zesty> why doesnt it select <option value="1"...
[04:16:02] <wafflejock> Jdubs: last comment I wrote was directed at Zesty should have specified
[04:16:06] <Jdubs> jdubs oic
[04:16:08] <Jdubs> oops
[04:16:10] <Jdubs> wafflejock: oic
[04:16:16] *** matthew_r has joined #angularjs
[04:16:47] *** kcccccc has quit IRC
[04:17:21] <Jdubs> wafflejock: i'm now using this to get around it: scope.$parent[attrs.model] = item.value
[04:17:54] *** ipalaus has quit IRC
[04:18:32] <wafflejock> Zesty: not sure about the details with select and ng-options would have to dig through some of the source to say for sure but if you do something like ng-options="thing.lable for thing in things" ng-model="selectedThing" and $scope.selectedThing = $scope.things[0]; it typically works I haven't messed with optgroups though
[04:19:30] *** danielpquinn has joined #angularjs
[04:19:42] *** darrin has quit IRC
[04:19:43] *** neurix has quit IRC
[04:20:44] <wafflejock> Jdubs: sorry not following what's going wrong exactly if you can recreate the problem in a plunkr I can poke at and you can comment in what's going wrong I may be able to help further but otherwise not sure
[04:21:05] *** rodyhaddad has joined #angularjs
[04:21:08] <jpstone> wafflejock: if you need to access scope variables in a directive, do you suggest, more often than not, to create an isolate scope?
[04:21:10] *** Grokling_ has joined #angularjs
[04:21:37] <wafflejock> jpstone: yeah typically I do I just think it keeps things cleaner and more explicit than other methods most of the time
[04:22:07] <wafflejock> jpstone: if you just need something incoming then you can use attrs and $observe and it's more efficient but if it's some sort of thing where I want two way binding I make an isolate scope
[04:22:34] <jpstone> I have a pretty nasty directive with a couple $scope.$parent.$parents hehe
[04:22:44] <wafflejock> haha yeah not saying I never did that
[04:22:48] <wafflejock> but it feels wrong for sure
[04:23:02] <jpstone> my coding conscience was definitely chirping
[04:23:55] *** Valesk has quit IRC
[04:23:58] *** danielpquinn has quit IRC
[04:24:36] <wafflejock> yeah I did that just thinking man this is bad
[04:24:41] <wafflejock> but had to get it done
[04:24:52] <wafflejock> eventually fixed it
[04:25:06] <jpstone> Yeah, I'm going to have to refactor this directive. It's a mess.
[04:25:11] <jpstone> I might not even need a directive actually.
[04:25:27] *** Hackwar has quit IRC
[04:25:32] *** Hackwar1 has joined #angularjs
[04:25:47] *** rodyhaddad has quit IRC
[04:26:29] *** stirlingw has quit IRC
[04:27:18] *** chrisbirk has joined #angularjs
[04:27:23] *** stirlingw has joined #angularjs
[04:29:33] *** davesidious has joined #angularjs
[04:30:11] *** spencercarnage has quit IRC
[04:30:15] <aviraldg> Slightly related question: is putting having isolate scope in as many directives as possible a good idea? I find it makes the structure of the code much clearer, but it also forces you to create directive services. Any other fallbacks/advantages I should know about?
[04:30:33] *** Zesty has quit IRC
[04:30:36] *** KernelCurry has joined #angularjs
[04:30:44] *** Malone_ has quit IRC
[04:30:45] *** frkout_ has joined #angularjs
[04:30:47] *** davesidious_ has quit IRC
[04:30:50] <aviraldg> * -putting
[04:31:03] *** charuru has joined #angularjs
[04:31:05] <Jdubs> anyone know what might cause this: Uncaught Error: [ng:areq] Argument 'scope' is required
[04:31:14] <aviraldg> wafflejock, jpstone ^
[04:31:32] <Jdubs> it happens when i try to append a new compiled element to the dom
[04:31:53] <Jdubs> nevermind i figured it out
[04:31:56] <Jdubs> forgot to bind my compile to scope
[04:31:58] <Jdubs> lol :P
[04:32:08] *** CodeFriar has joined #angularjs
[04:33:09] *** ngoyal has joined #angularjs
[04:34:04] *** frkout has quit IRC
[04:34:29] *** chrislerum has quit IRC
[04:34:33] *** stirlingw has quit IRC
[04:34:33] *** kitkat_ has joined #angularjs
[04:35:01] *** TorchDragon has joined #angularjs
[04:35:48] <wafflejock> Jdubs: ah gotcha
[04:36:43] <wafflejock> aviraldg: yeah dunno pretty much have just created services when I need to share some data regardless of if that's with a directive or controllers and sometimes directly inject the services into directives if they seem to fit well together and couldn't re-use the directive with a different service
[04:37:14] *** DrMabuse has joined #angularjs
[04:37:17] *** jkremser has quit IRC
[04:37:35] *** fold has joined #angularjs
[04:37:37] *** ngoyal has quit IRC
[04:37:42] <wafflejock> aviraldg: you could also use events in some situations but I generally avoid it since you can get into situations where you get too reliant on events and you have a ton of them floating around and it's hard to tell properly where things originated from and whatnot
[04:37:57] <wafflejock> in some cases they make sense though
[04:38:04] <aviraldg> hmm
[04:38:07] *** ngoyal has joined #angularjs
[04:38:19] <aviraldg> I think I prefer an events + services structure
[04:38:20] <wafflejock> like just to notify something that uses a directive but you don't want to have an explicit require specified to relate the two
[04:38:49] <aviraldg> currently have a medium-complex app which shares (ALL) data by setting stuff on the controller's scope
[04:39:08] *** Sean-Der has joined #angularjs
[04:39:24] *** mschoening has joined #angularjs
[04:39:44] *** TorchDragon has quit IRC
[04:39:45] *** wilmoore has joined #angularjs
[04:39:50] *** Aliks has quit IRC
[04:40:15] <wafflejock> yea typically I have some top level controller that does general navigation stuff just wrapping up calls to change $location or $state or whatever then I store most of the data which comes from RESTful APIs within services that get injected into controllers, in terms of passing things to directive it can either be through the controller scope or directly from a service
[04:41:12] <Jdubs> wafflejock: do you mind just giving me general feedback on my directive? I'm pretty much done with it, now just need to do all the css (ugh)
[04:41:21] <wafflejock> like I made this http://ngmodules.org/modules/angular-sh-weather where the API is directly related to the service so I just inject the service into the directive
[04:41:46] <aviraldg> oh, and, has anyone seen how Polymer has scoped CSS? Does Angular have something similar?
[04:41:48] *** kjnhbgvfcdx has quit IRC
[04:41:54] <wafflejock> meant API is directly related to the directive
[04:41:59] <Jdubs> aviraldg: polymer uses shadow dom
[04:42:10] <Jdubs> aviraldg: i dont think angular makes use of shadow dom anywhere
[04:42:27] *** bayousoft has quit IRC
[04:42:28] *** DrMabuse has quit IRC
[04:42:31] <aviraldg> something similar
[04:42:53] <wafflejock> ¯\_(ツ)_/¯
[04:43:06] <Jdubs> aviraldg: the only way to scope CSS is with shadow DOM or naming prefixes
[04:43:10] <Jdubs> as far as i know
[04:43:22] <Jdubs> might ask wafflejock though, i'm a pretty green junior dev :P
[04:43:35] <wafflejock> Jdubs: yeah actually dunno haven't played with Polymer at all
[04:43:39] <aviraldg> exactly -> naming prefixes
[04:43:51] <wafflejock> u guys can point me to a doc about it?
[04:43:59] <Jdubs> wafflejock: here is my directive, mind giving feedback? :)
[04:43:59] <wafflejock> I might be aware of something simlar but dunno
[04:44:03] *** thepro4ever has joined #angularjs
[04:44:17] <Jdubs> wafflejock: polymer: http://www.polymer-project.org/
[04:44:17] *** thepro4ever has left #angularjs
[04:44:31] *** metasansana has joined #angularjs
[04:44:33] <Jdubs> wafflejock: sorry forgot directive link http://pastebin.com/rmpCFwRP
[04:44:41] <morenoh149> anyone know of an example of using $first with ng-repeat? http://devdocs.io/angular/ng.directive-ngrepeat
[04:44:46] *** metasansana has quit IRC
[04:44:46] *** metasansana has joined #angularjs
[04:44:57] *** kitkat_ has quit IRC
[04:45:00] <wafflejock> morenoh149: it's just a boolean available like ng-show="$first"
[04:45:06] <Jdubs> ^^^
[04:45:10] *** conan_the_destro has quit IRC
[04:45:17] *** steffengy has quit IRC
[04:45:32] *** kalehv has quit IRC
[04:46:07] <aviraldg> wafflejock, http://www.polymer-project.org/docs/polymer/styling.html#including-stylesheets-in-an-element
[04:46:16] *** kareypowell has joined #angularjs
[04:46:17] <morenoh149> hmm I have https://gist.github.com/47b076cc0096a53ca355 which works. is it better to wrap it in a div and do a more traditional ng-repeat?
[04:46:27] *** bayousoft has joined #angularjs
[04:46:46] <morenoh149> I'd like to give the first image a different style. How could I do that?
[04:46:49] <wafflejock> Jdubs: don't think you need to call the digest twice should be able to just call $scope.$apply() at the end and it will trigger the $digest afterwards
[04:47:01] *** steffengy has joined #angularjs
[04:47:01] *** delerium_ has joined #angularjs
[04:47:18] <Jdubs> wafflejock: problem with that is it won't get the data into the element and the .width() will be zero
[04:47:21] *** MTGap has joined #angularjs
[04:47:23] <Jdubs> have to digest twice
[04:47:36] *** ldgood has joined #angularjs
[04:47:56] *** kareypowell has quit IRC
[04:48:08] <wafflejock> Jdubs: gotcha
[04:48:19] *** opus_ has joined #angularjs
[04:48:41] <wafflejock> aviraldg: some of this is reminscent of less CSS preprocesor but not the same
[04:48:41] <opus_> Hello, how do I beautify my HTML without it messing up my angular directives? (I'm using Ionic)
[04:48:42] <aviraldg> morenoh149, :first-child?
[04:49:08] <opus_> I have Brackets, Atom.io, and Sublime 3.... Brackets seems to have a beautifier, but it doesn't work well with angular ionic directives.
[04:49:09] <wafflejock> morenoh149: ng-class="{someClass:$first}"
[04:49:12] <Jdubs> opus_: can you be more specific please?
[04:49:21] <wafflejock> aviraldg's option may work fine too morenoh149
[04:49:32] *** oa_ has quit IRC
[04:49:32] *** oa_2 has joined #angularjs
[04:49:50] <opus_> JDubs, I have a index.html that is really poorly formatted and I want to beautifiy it. But it has directives in it and the beautifier I just tired messed up some of the <ionic-etcetc> tags
[04:49:53] *** gunn has quit IRC
[04:50:06] <opus_> is there one that won't mess up my <ionic> tags?
[04:50:07] *** postitnote has joined #angularjs
[04:50:33] *** mschoening has quit IRC
[04:50:38] <wafflejock> aviraldg: also I've included style tags in my templates before and pretty sure that actually worked too but seemed a mess so I just separately include the CSS
[04:50:52] <aviraldg> :(
[04:51:10] *** Sean-Der has quit IRC
[04:51:12] <postitnote> I'm pulling my hair out over this: console.log($scope) shows a property "ndNoteId" yet $scope.ndNoteId is undefined? For the love of god help me.
[04:51:24] <Jdubs> opus_: sorry never used a beautifier
[04:51:30] <Jdubs> opus_: what's wrong with doing it manually?
[04:51:38] *** scriptThis has quit IRC
[04:51:51] <wafflejock> postitnote: you restart the browser to be sure it's not just being quirky?
[04:52:17] <apipkin> All done! (i think) http://slides.com/apipkin/introduction-to-angular-js I welcome any comments
[04:52:20] *** tfennelly has joined #angularjs
[04:52:45] <postitnote> wafflejock: I just did. Still happening. I'm losing it. ndNotesId: '=' in my directive scope definition, everything is just as the docs describe.
[04:52:57] <postitnote> It's one of those things that will take me 30 minutes to plunker haha.
[04:53:09] <wafflejock> postitnote: ah you using camel case to hyphenated
[04:53:14] *** stevvooe has quit IRC
[04:53:14] <wafflejock> nd-notes-id
[04:53:16] *** moritzs has quit IRC
[04:53:25] *** ustunozgur has joined #angularjs
[04:53:28] <postitnote> wafflejock: nd-notes-id is my attribute name.
[04:53:38] <postitnote> I see ndNotesId in $scope. That's why I'm so utterly baffled.
[04:53:58] <postitnote> Or this is mystical expando action.
[04:54:08] *** hswolff has quit IRC
[04:54:31] <wafflejock> postitnote: it might be that it is filling in the data from the original object reference when you go to look at it in the console
[04:54:49] *** InezK is now known as InezK_away
[04:54:52] <wafflejock> postitnote: you may need to $watch the variable on the scope to get it later when it's been populated
[04:55:06] *** cisox has joined #angularjs
[04:55:24] *** sirkitree|afk has quit IRC
[04:55:26] <postitnote> wafflejock: Eureka. That is it. I don't even have to try it. haha
[04:55:30] <postitnote> THANK YOU :)
[04:55:42] <wafflejock> yup np
[04:57:11] *** tfennelly has quit IRC
[04:57:27] <postitnote> wafflejock: Fixed. What would I do without you.
[04:57:44] <wafflejock> I imagine there would just be more crying :P
[04:57:56] *** jaequery has joined #angularjs
[04:57:59] <postitnote> wafflejock: Yeah. And I'd probably have to tell people I don't actually know what I'm doing.
[04:58:08] <postitnote> Which would lead to even more crying.
[04:58:10] *** chrislerum has joined #angularjs
[04:58:49] <wafflejock> eh that's the nice thing about relatively new frameworks no one else knows what they're doing either
[04:59:19] *** arizzo has joined #angularjs
[04:59:59] *** justinobney has joined #angularjs
[05:00:07] *** mschoening has joined #angularjs
[05:00:26] *** TheAceOfHearts has joined #angularjs
[05:00:35] *** mindlace has quit IRC
[05:00:53] *** sirkitree|afk has joined #angularjs
[05:00:54] *** justin_ has joined #angularjs
[05:01:36] *** crocket has joined #angularjs
[05:01:40] <wafflejock> apipkin: yup like it one more bit of feedback the slide where you have "<" == "angle brackets" .: Angular might be better to use bold instead of quotes cause that's a lot of symbols to parse
[05:01:44] *** jtimon has joined #angularjs
[05:01:46] <crocket> I'm very restricted by jqLite.
[05:01:50] <crocket> Should I just use JQuery?
[05:02:00] <crocket> jqLite's functionalities are very limiting.
[05:02:04] <wafflejock> crocket: if you're doing it in directives and using it right then it's fine
[05:02:24] <wafflejock> crocket: it's just not good to include initially because people fall back to storing model stuff in the DOM and doing bad things in the controller
[05:02:25] <crocket> wafflejock, I'm not doing it in directives.
[05:02:28] *** aviraldg has quit IRC
[05:02:30] *** BillCriswell has quit IRC
[05:02:38] <crocket> I'm doing it in controllers.
[05:02:45] *** chrislerum has quit IRC
[05:02:46] <wafflejock> k yeah that's probably bad
[05:03:04] <wafflejock> crocket: have you seen this yet? http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background
[05:03:04] <crocket> I have to remove all children of an HTML node that has 'pdf_text' class.
[05:03:10] <crocket> But, it's so difficult to do it with jqLite.
[05:03:12] *** aviraldg has joined #angularjs
[05:03:18] <wafflejock> crocket: if you need to do DOM manipulation you need to do it in a directive
[05:03:20] *** balboah has joined #angularjs
[05:03:23] *** steffengy has quit IRC
[05:03:24] *** steffengy1 has joined #angularjs
[05:03:37] <wafflejock> crocket: https://www.youtube.com/watch?v=ZhfUv0spHCY
[05:03:37] <apipkin> wafflejock: thanks! I'll add that in in the morning!
[05:03:38] *** arizzo has quit IRC
[05:03:40] <aviraldg> thanks for the advice, wafflejock
[05:03:47] <crocket> wafflejock, damn
[05:03:48] <wafflejock> yup yup
[05:03:52] <aviraldg> having a terrible time fixing this code :|
[05:04:03] *** morenoh149 has quit IRC
[05:04:57] <crocket> wafflejock, Is it possible to directly manipulate DOM generated by ng-repeat outside directives?
[05:06:37] <apipkin> crocket: you can do that with document. querySelector. but I'd still look more to reorganizing the structure.
[05:06:44] <wafflejock> crocket: it's not that it isn't possible to do it's just a bad idea because your directives are used in the HTML that is used to template the view and so the directives are explicitly tied to the view if you do things in the controller that make assumptions about the view then the controller can't be tested separate from the view and can't possibly be used with other views (not always a problem but nice to have the option to
[05:06:45] <wafflejock> reuse sometimes)
[05:07:01] *** jdj_dk has joined #angularjs
[05:07:16] <wafflejock> it's easy if you view the whole thing as, I have a model that drives the creation of a view
[05:07:35] <wafflejock> this way you always know if you manipulate the model the bindings from the view will cause it to do the right thing
[05:07:42] *** balboah has quit IRC
[05:08:10] <crocket> wafflejock, Your sentences are difficult to read because you didn't use commmas.
[05:08:20] <wafflejock> crocket: sorry I'm bad about that
[05:08:33] <wafflejock> crocket: read the SO post though
[05:08:42] <wafflejock> it covers what I'm trying to say more thoroughly
[05:08:54] <wafflejock> same with the best practices video
[05:09:13] <crocket> wafflejock, I'm so fucked.
[05:09:14] <wafflejock> describes how they organized things to make it testable and how you break that by tying your controllers to the DOM
[05:09:24] <crocket> wafflejock, I just don't want to reorganize the structure because I'm doing it for a bad company.
[05:09:31] <crocket> I just don't want to invest effort.
[05:09:42] <crocket> I just want to quit the job as soon as possible.
[05:09:47] <wafflejock> well that's tough
[05:09:59] <wafflejock> why's it so bad?
[05:10:15] <crocket> wafflejock, It's a typical closed allocation software shop with Theory X management practices.
[05:10:27] <crocket> Its code quality is so slow because of that.
[05:10:30] <crocket> slow -> low
[05:10:36] <wafflejock> ah
[05:10:42] *** InezK_away is now known as InezK
[05:10:52] <crocket> wafflejock, Have you grokked what I typed?
[05:10:52] *** frkout_ has quit IRC
[05:11:03] *** conner_ has quit IRC
[05:11:20] <wafflejock> well the low quality code yes not sure what you mean about theory x management
[05:11:29] *** frkout has joined #angularjs
[05:11:38] *** kalusn has joined #angularjs
[05:11:40] <crocket> wafflejock, http://en.wikipedia.org/wiki/Theory_X_and_Theory_Y
[05:11:41] *** kirfu|work has quit IRC
[05:11:42] *** jdj_dk has quit IRC
[05:11:53] <crocket> Theory X is suitable for manual labor.
[05:11:54] *** kirfu|work has joined #angularjs
[05:12:00] <crocket> not for spiritual professions.
[05:12:02] *** azureknight has joined #angularjs
[05:12:12] <wafflejock> crocket: yeah I get it
[05:12:16] *** kirfu|work has quit IRC
[05:12:17] <wafflejock> that sucks
[05:12:27] *** kirfu|work has joined #angularjs
[05:13:07] <wafflejock> last place I worked they did a pretty good job of making you at least feel like they were concerned with you improving and not just about squeezing everything out of you but everyone still worked like crazy
[05:13:35] *** kirfu|work has quit IRC
[05:14:05] <crocket> wafflejock, That's Theory Z.
[05:14:17] *** kirfu|work has joined #angularjs
[05:14:29] <crocket> Theory Z is a militant localism that disguises theory X as Theory Y.
[05:14:39] <crocket> Theory Z is much closer to Theory X than to Y.
[05:14:48] *** MTGap has quit IRC
[05:14:52] <crocket> Anyway
[05:15:03] <crocket> Theory Z can be classified as Theory X.
[05:16:15] <crocket> wafflejock, Such a firm is mostly a successful marketing experiment targeted toward capturing as many gullible suckers(employees) as possible.
[05:16:27] *** kalusn has quit IRC
[05:16:34] <wafflejock> crocket: yeah I really never thought too much about this it's generally about personal satisfaction and learning to me than about what other people want from me
[05:16:49] *** patrickarlt has joined #angularjs
[05:16:56] <crocket> wafflejock, You want to join such open allocation shops as github and valve.
[05:17:11] <crocket> Or you could make one if you're well versed in startup.
[05:18:01] *** dc_ has quit IRC
[05:18:12] *** bkuberek_ has joined #angularjs
[05:18:24] *** Tidwell has joined #angularjs
[05:18:44] *** MacWinner has joined #angularjs
[05:19:27] *** kalehv has joined #angularjs
[05:20:00] *** tilgovi has quit IRC
[05:20:33] *** anjumkaiser has joined #angularjs
[05:21:18] *** patrickarlt has quit IRC
[05:22:22] *** bkuberek has quit IRC
[05:22:29] *** [n0b0dy] has quit IRC
[05:22:39] *** [n0b0dy] has joined #angularjs
[05:23:13] <wafflejock> crocket: what's stopping you from leaving?
[05:23:17] *** blueadept has joined #angularjs
[05:23:31] <crocket> wafflejock, I'm stuck to this job by alternative military service that ends on Feb 2015.
[05:23:39] <crocket> I'm an indentured slave.
[05:23:47] <wafflejock> awesome
[05:23:53] <crocket> wafflejock, What's awesome?
[05:23:57] <wafflejock> just kidding
[05:23:58] *** whunt has quit IRC
[05:24:02] <wafflejock> sarcasm
[05:24:07] <wafflejock> doesn't work in text
[05:24:08] *** kalehv has quit IRC
[05:24:41] *** arizzo has joined #angularjs
[05:24:47] <wafflejock> alright well if you're stuck then you're gonna be mulling over this code for a while anyhow right
[05:24:49] *** JoshGlzBrk has joined #angularjs
[05:25:02] <wafflejock> in that case you might as well just make the best of it
[05:25:03] *** Malone has joined #angularjs
[05:25:50] *** rchavik has joined #angularjs
[05:26:04] *** anjumkaiser has quit IRC
[05:26:05] *** aviraldg has quit IRC
[05:26:14] *** mogaj has joined #angularjs
[05:26:36] *** jbourassa has joined #angularjs
[05:27:41] <wafflejock> crocket: is the project something you oppose?
[05:27:48] <crocket> wafflejock, Somehow, the entire codebase is shitty.
[05:27:49] <wafflejock> crocket: or just the management
[05:27:55] *** mschoening has quit IRC
[05:27:58] <mogaj> Hi all, I am using angular-wizard for multi step form submission ... how to not navigate to next step if present steps form elements are invalid?
[05:28:01] *** LossFor has quit IRC
[05:28:08] <crocket> wafflejock, I have no partiaular preference on my project, but I don't like closed allocation.
[05:28:36] <crocket> wafflejock, If managers didn't assign tasks to me, I'd be doing something else.
[05:28:40] *** Malone has quit IRC
[05:28:52] *** Nijikokun has quit IRC
[05:29:00] <crocket> Or I'd be working alone outside corporate shackles.
[05:29:11] *** LossFor has joined #angularjs
[05:29:15] *** arizzo has quit IRC
[05:30:23] *** katsh has quit IRC
[05:30:25] *** SomeKittens has joined #angularjs
[05:30:52] *** chrisbirk has quit IRC
[05:30:52] <wafflejock> crocket: you have to sign anything that gives them rights to your ideas while you work there?
[05:31:09] *** JoshGlzBrk has quit IRC
[05:31:21] <crocket> wafflejock, I don't have to sign things.
[05:31:27] <crocket> wafflejock, They can just yell at me.
[05:31:42] <wafflejock> if not you can still do side projects freely and develop what you want outside of the organization still too
[05:32:06] <crocket> wafflejock, Anyway, they assume they have rights over my ideas as long as they are assimilated into corporate codebase.
[05:32:21] <wafflejock> generally if code is garbage I just try to clean up as much as I can and hope the project managers don't get pissed I'm burning time fixing code because it's a mess and I can't deal with it that way
[05:32:30] <sacho_> *cough* contract *cough8
[05:32:39] <crocket> sacho_, The contract is against me.
[05:32:39] *** gnarMati_ has quit IRC
[05:32:59] <crocket> If I abandon my job or am fired, I'll be drafted to the army.
[05:33:12] <wafflejock> yeah that's a huge negative
[05:33:12] <crocket> Fortunately, the military office makes it difficult to fire me.
[05:33:31] <crocket> I'm using this job as a recovery point although it doesn't help recover much.
[05:34:12] <crocket> wafflejock, I'm doing a side project for my company nowadays.
[05:34:20] *** arizzo has joined #angularjs
[05:34:30] <crocket> I only told about it to the newest employee.
[05:34:50] <crocket> The side project is a secret task.
[05:35:19] <wafflejock> yeah good to have those to blow of steam and have some fun with something you really want to be doing
[05:35:49] <crocket> wafflejock, I learned to hide what I'm really doing.
[05:36:29] <crocket> Senior employees complain that how I do things is very opaque, but it gives me a degree of freedom.
[05:36:39] *** ldgood has quit IRC
[05:36:47] *** night-owl-MBP has joined #angularjs
[05:36:48] <wafflejock> yeah sucks they're that tight about everything... we basically just had to setup estimates for when things would be done then we had to convince the clients with higher ups that this is what it was going to take then we just had to get it done in time
[05:36:52] <crocket> It gives me plausable deniability as well.
[05:37:02] *** J0514H has joined #angularjs
[05:37:18] <wafflejock> same for doing my own business now
[05:37:40] <crocket> wafflejock, http://en.wikipedia.org/wiki/Plausible_deniability says "Plausible deniability is a term coined by the CIA in the early 1960s to describe the withholding of information from senior officials in order to protect them from repercussions in the event that illegal or unpopular activities by the CIA became public knowledge."
[05:38:05] *** LossFor has quit IRC
[05:38:07] <crocket> In this case, I protect myself by withholding information.
[05:38:34] <wafflejock> haha that's a pretty ridiculous piece of etymology
[05:38:35] <crocket> wafflejock, Your best bet is to sell unmodifiable services or products to end users.
[05:38:45] *** arizzo has quit IRC
[05:38:53] <crocket> For example, github doesn't customize their service for specific clients.
[05:38:58] *** CodeFriar has quit IRC
[05:38:59] *** aviraldg has joined #angularjs
[05:39:05] <crocket> And, online game companies don't provide customized versions of their game.s
[05:39:08] *** ojacobson has joined #angularjs
[05:39:10] *** halin has joined #angularjs
[05:39:18] <wafflejock> crocket: yeah but need to build a product that has the right feature set hits a wide audience and isn't already saturated
[05:39:31] *** lucasefe has joined #angularjs
[05:39:34] <ojacobson> So, uh. Putting a custom directive with its own isolate scope on an <svg> element that has a class attribute in the original DOM seems to cause angular to fuck up the class attribute after it compiles the directive
[05:39:42] <ojacobson> class="[object SVGAnimatedString] ng-isolate-scope"
[05:39:47] <ojacobson> not ... not so useful.
[05:39:50] *** aviraldg has quit IRC
[05:39:54] <ojacobson> Anyone run into this? I can throw together a small example.
[05:39:57] <crocket> wafflejock, For example, in south korea, lezhin comics became popular by selling access to comics directly to end users.
[05:40:20] *** ldgood has joined #angularjs
[05:40:24] <crocket> wafflejock, It is an example that you don't have to be a slave to customers to make money.
[05:40:27] *** halin has quit IRC
[05:40:54] <sacho_> ojacobson, it's a problem with jquery
[05:41:13] <ojacobson> sacho_: mm. Well, jquery's ignorance of SVG's more complicated DOM isn't new, anyways
[05:41:27] *** cpciv has quit IRC
[05:41:30] *** Malone has joined #angularjs
[05:41:30] <ojacobson> before I go off and try it for myself, is adding the jquery svg plugin sufficient to fix angular's behaviour?
[05:41:44] <ojacobson> (This one: http://keith-wood.name/svg.html)
[05:41:58] * sacho_ shrugs
[05:42:02] <wafflejock> crocket: yeah for sure but you need an inside connection to producers of some media or content to be able to do that kind of thing
[05:42:06] <ojacobson> Well, let's find out. Thanks for the clue, anyways :)
[05:42:53] <crocket> wafflejock, lezhin comics contacted individuals who were producing comics for free.
[05:43:04] <wafflejock> crocket: ah okay like patreon
[05:43:09] *** livingstn has quit IRC
[05:43:18] <wafflejock> just giving a service to connect the audience to the producers
[05:43:21] <crocket> wafflejock, In south korea, many individuals are publishing comics for free on major websites.
[05:43:23] *** cpciv has joined #angularjs
[05:43:42] <crocket> wafflejock, You just need to connect producers with consumers with a convenient service.
[05:43:51] <crocket> It's basically a market service.
[05:44:26] <wafflejock> crocket: yeah that's a really good way to sum it up
[05:44:36] *** arizzo has joined #angularjs
[05:44:43] <crocket> After you gain leverages, you can contact major media companies without enslaving.
[05:45:06] *** CodeFriar has joined #angularjs
[05:45:21] <crocket> Basically, they are competitors to old media industry.
[05:45:36] <wafflejock> crocket: yeah it's hard to find a niche at this point I feel like
[05:46:54] *** patrickarlt has joined #angularjs
[05:47:05] <ojacobson> sacho_: in case it comes up in the future: yes; Keith Wood's jquery.svg and svgdom plugins are sufficient. Thanks again for the nudge in the right direction.
[05:47:20] <ojacobson> Now I get to go package his work up as a WebJars project :)
[05:47:25] *** CodeFriar has quit IRC
[05:47:47] *** DexterTheDragon has quit IRC
[05:48:26] *** DexterTheDragon has joined #angularjs
[05:48:45] *** arizzo has quit IRC
[05:49:05] *** postitnote has quit IRC
[05:49:13] *** Ericx2x has joined #angularjs
[05:49:50] *** jaequery has quit IRC
[05:50:16] *** frkout_ has joined #angularjs
[05:50:43] *** frkout has quit IRC
[05:51:02] *** frkout has joined #angularjs
[05:53:17] *** asdofindia has quit IRC
[05:54:15] *** brunocoelho has quit IRC
[05:54:18] <mogaj> How To stop wizard to show next step if presnt step form elements are invalid http://pastebin.com/BKxNWisX please assit, thankyou
[05:54:25] <mogaj> *assist
[05:54:38] *** dc_ has joined #angularjs
[05:54:42] *** Malone has quit IRC
[05:55:15] *** Malone has joined #angularjs
[05:55:51] *** cpciv1 has joined #angularjs
[05:56:23] *** night-owl has quit IRC
[05:56:35] *** cpciv has quit IRC
[05:56:44] *** Ethix has quit IRC
[05:56:52] *** Scarlioni has quit IRC
[05:57:00] *** mennea has joined #angularjs
[05:57:24] *** markisonfire has quit IRC
[05:59:05] *** arizzo has joined #angularjs
[05:59:11] *** Fishy__ has joined #angularjs
[05:59:16] *** hecatonicosachor has joined #angularjs
[05:59:18] *** Malone has quit IRC
[05:59:19] *** tk has joined #angularjs
[05:59:43] *** hecatonicosachor has quit IRC
[05:59:47] *** brownbathrobe has joined #angularjs
[06:00:11] *** Malone has joined #angularjs
[06:00:33] *** brownbathrobe has quit IRC
[06:01:13] *** MacWinner has joined #angularjs
[06:01:45] *** foo-bar- has joined #angularjs
[06:01:46] *** Fishy has quit IRC
[06:01:57] <MacWinner> any tips on debugging injector errors? i hate these generic error messages.. it would be great if the error pointed to somewhere.. especially if you have a ton of mondules loading.. it's my only gripe
[06:02:13] *** night-owl-deskto has joined #angularjs
[06:02:16] *** sacho has quit IRC
[06:02:32] *** Malone has quit IRC
[06:02:36] <MacWinner> i'm sure there must be something.. i just haven't seen it
[06:02:43] <sacho_> the errors do point to somewhere.
[06:03:15] *** arizzo has quit IRC
[06:03:29] <MacWinner> crap... i see more details.. let me chase those down..
[06:03:35] *** snurfery has joined #angularjs
[06:03:44] <sacho_> that's nice
[06:03:45] *** Ericx2x has quit IRC
[06:04:08] *** balboah has joined #angularjs
[06:04:27] <MacWinner> firefox was not showing much detail.. safari is though
[06:06:36] *** foo-bar- has quit IRC
[06:08:07] *** snurfery has quit IRC
[06:08:23] *** jeffisabelle has quit IRC
[06:08:32] *** balboah has quit IRC
[06:08:35] <crocket> wafflejock, I assigned an html string that contains angularjs directives into an HTML node.
[06:08:43] <crocket> wafflejock, But angularjs directives are not working.
[06:09:10] <crocket> Why does angularjs ignore directives inserted by jquery?
[06:09:31] *** ETBlue has joined #angularjs
[06:09:42] <wafflejock> crocket: it needs to be run through $compile for angular to be aware of it if it's added
[06:10:30] *** mdedetrich has quit IRC
[06:10:47] *** justin_ has quit IRC
[06:12:11] *** foo-bar- has joined #angularjs
[06:12:31] *** kalusn has joined #angularjs
[06:12:56] *** chrisbirk has joined #angularjs
[06:13:03] *** [n0b0dy] has quit IRC
[06:13:13] *** [n0b0dy] has joined #angularjs
[06:13:15] *** discipolo has quit IRC
[06:13:27] <crocket> wafflejock, woo
[06:13:51] *** arizzo has joined #angularjs
[06:16:02] *** masak has quit IRC
[06:16:16] *** masak has joined #angularjs
[06:16:40] *** masak is now known as Guest79466
[06:17:27] *** kalusn has quit IRC
[06:18:16] *** arizzo has quit IRC
[06:18:55] *** MacWinner has quit IRC
[06:20:46] *** HoloPed has quit IRC
[06:21:23] *** slainer68 has joined #angularjs
[06:22:04] *** joshontheweb has quit IRC
[06:22:16] *** bkuberek_ has quit IRC
[06:22:34] *** sneakertack has quit IRC
[06:23:05] *** CodeFriar has joined #angularjs
[06:23:08] *** [n0b0dy] has quit IRC
[06:23:15] *** TorchDragon has joined #angularjs
[06:23:21] *** [n0b0dy] has joined #angularjs
[06:23:56] *** conner_ has joined #angularjs
[06:24:02] *** cthrax has quit IRC
[06:24:16] *** Kay-z has joined #angularjs
[06:24:16] *** arizzo has joined #angularjs
[06:24:44] *** CodeFriar has quit IRC
[06:25:15] *** justinobney has quit IRC
[06:25:47] *** justinobney has joined #angularjs
[06:26:24] *** slainer68 has quit IRC
[06:26:44] *** sgnl has joined #angularjs
[06:26:58] *** chrislerum has joined #angularjs
[06:27:33] *** sgnl has joined #angularjs
[06:27:45] *** TorchDragon has quit IRC
[06:28:15] *** conner_ has quit IRC
[06:28:45] *** arizzo has quit IRC
[06:29:36] *** Kay-z has quit IRC
[06:30:12] *** justinobney has quit IRC
[06:30:27] *** Malone has joined #angularjs
[06:30:47] *** joshontheweb has joined #angularjs
[06:31:12] *** waylon999 has joined #angularjs
[06:31:13] *** quantax- has quit IRC
[06:31:24] *** justin_ has joined #angularjs
[06:32:51] *** azureknight has quit IRC
[06:34:06] * wafflejock needs a little caffeine
[06:34:32] *** arizzo has joined #angularjs
[06:35:54] *** Tidwell has quit IRC
[06:36:06] *** arkanciscan_ has quit IRC
[06:37:14] *** mrogne is now known as mrogne_afk
[06:38:04] *** jtimon has quit IRC
[06:38:08] *** night-owl-deskto is now known as night-owl
[06:38:09] *** Gambit- has joined #angularjs
[06:38:56] *** arizzo has quit IRC
[06:40:50] *** joshontheweb has quit IRC
[06:41:14] *** Vice- has joined #angularjs
[06:42:06] *** vintik has quit IRC
[06:42:57] *** chrisbirk has quit IRC
[06:43:11] *** justin_ has quit IRC
[06:43:15] *** danielpquinn has joined #angularjs
[06:44:01] <crocket> wafflejock, How does angularjs detect changes in the model and render the view?
[06:44:15] <crocket> Does it ignore changes and just render everything every tick?
[06:44:24] <sacho_> No.
[06:44:51] <ojacobson> crocket: things like {{bindings}} register "watches" on specific bits of the model
[06:44:54] <wafflejock> crocket: http://www.benlesh.com/2013/08/angularjs-watch-digest-and-apply-oh-my.html
[06:46:56] <crocket> How do I compile directives and add it to the view in a controller?
[06:47:34] *** AviMarcus has joined #angularjs
[06:47:41] *** danielpquinn has quit IRC
[06:48:03] *** pdillinger1 has joined #angularjs
[06:48:43] <wafflejock> crocket: long story short like ojacobson says you end up making implicity or explicitly make watches then when you call digest it checks the watches and triggers the appropriate handlers when changes have occurred, regarding the compiling directives in the controller you might as well just not use angular
[06:48:46] *** tarkus has joined #angularjs
[06:49:00] <ojacobson> you, or angular
[06:49:08] *** arizzo has joined #angularjs
[06:49:47] *** ldgood has quit IRC
[06:50:12] <crocket> ok
[06:50:18] <wafflejock> crocket: just do DOM manipulation in directives it's really not that hard
[06:50:42] <crocket> wafflejock, The fact is that I use rangy to highlight texts generated by javascript.
[06:50:54] <wafflejock> usually there is already a directive that will do what you want either in core or someone else has written it but if not rolling your own isn't bad
[06:51:03] <crocket> I have a list of highlighted text ranges which should be marked by rangy.
[06:52:01] *** kalehv has joined #angularjs
[06:52:11] <crocket> Is it easy to highlight generated texts with angularjs?
[06:52:38] <crocket> rangy highlights a range of text by surrounding it with <span class="highlight"></span>
[06:53:03] <ojacobson> <span ng-repeat="segment in segments" ng-class="segment.classes">{{segment.text}}</span> and go off to the pub
[06:53:16] *** arizzo has quit IRC
[06:53:22] <crocket> ojacobson, If it was that easy, maybe.
[06:53:23] <ojacobson> (where "segments" in the $scope is a list of {classes: [], text: ""} objects)
[06:54:14] <crocket> ojacobson, How would you highlight a range of text generated by a directive?
[06:54:18] *** spencercarnage has joined #angularjs
[06:54:23] *** wa5ted_ has joined #angularjs
[06:54:27] <wafflejock> crocket: https://github.com/fraywing/textAngular
[06:54:38] <wafflejock> just searched around a bit for rangy angular that uses it
[06:54:58] <wafflejock> generally speaking though just write a directive that does your DOM manipulation in the link function
[06:55:19] *** jdj_dk has joined #angularjs
[06:56:16] *** kalehv has quit IRC
[06:56:24] <ojacobson> wrote the world's dumbest directive today to deal with differences between stock bootstrap.js and angular-ui bootstrap around dropdowns. It's really not hard to do any random crap you might do with jQuery or whatever inside of a directive.
[06:56:31] <ojacobson> That's where that kind of code goes.
[06:56:41] <crocket> wafflejock, never mind
[06:56:49] <ojacobson> (The dumb directive intercepts click events on the associated element and calls stopPropagation() on them)
[06:56:55] *** dhcar is now known as dhcar_AFK
[06:57:18] <wafflejock> someModule.directive("myDirective",function(){return{restrict:"E",link:function(scope, iElem,iAttrs)}})
[06:57:26] *** JoshGlzBrk has joined #angularjs
[06:57:33] <wafflejock> someModule.directive("myDirective",function(){return{restrict:"E",link:function(scope, iElem,iAttrs){}}})
[06:57:33] *** Vice- has quit IRC
[06:57:38] <wafflejock> there we go :)
[06:57:58] *** nisonger has joined #angularjs
[06:58:08] *** jeffisabelle has joined #angularjs
[06:58:16] *** wa5ted has quit IRC
[06:58:17] *** wa5ted_ is now known as wa5ted
[06:58:23] <TheAceOfHearts> https://www.youtube.com/watch?v=BIWPU-VJ64I haha
[06:58:24] *** xmmp has joined #angularjs
[06:59:45] *** jdj_dk has quit IRC
[07:01:21] *** dhcar_AFK is now known as dhcar
[07:01:22] <ckboii89> http://stackoverflow.com/questions/24667041/delete-rows-from-ng-grid-table-from-button/24668132#24668132
[07:01:35] <ckboii89> anyone who is willing to consult or suggest ideas
[07:03:20] *** tomzx is now known as tomzx`afk
[07:04:07] *** arizzo has joined #angularjs
[07:04:52] *** balboah has joined #angularjs
[07:07:41] *** ojacobson has quit IRC
[07:07:42] <crocket> How do I get the scope of an HTML node?
[07:07:48] *** zumba_addict has joined #angularjs
[07:08:15] *** arizzo has quit IRC
[07:08:19] <crocket> Never mind
[07:08:23] <crocket> angular.element has scope()
[07:08:40] *** AviMarcus has quit IRC
[07:08:49] *** bsmithgall has quit IRC
[07:09:22] *** balboah has quit IRC
[07:09:30] *** bsmithgall has joined #angularjs
[07:10:01] *** bsmithgall has joined #angularjs
[07:11:21] <crocket> wafflejock, http://pastebin.com/E1syEuDp works fine.
[07:13:06] *** kalusn has joined #angularjs
[07:13:45] *** aviraldg has joined #angularjs
[07:14:15] *** Vice- has joined #angularjs
[07:14:33] *** bsmithgall has quit IRC
[07:14:47] *** arizzo has joined #angularjs
[07:16:24] *** Malone has quit IRC
[07:17:02] *** dekhaus has joined #angularjs
[07:17:18] *** chrisbirk has joined #angularjs
[07:17:45] *** Stephen has joined #angularjs
[07:17:56] *** kalusn has quit IRC
[07:18:03] <mogaj> I am trying to do ng-table pagination but getting this error "TypeError: undefined is not a function at Object.$scope.colorsTableParams.ngTableParams.getData" here is the code i am using http://pastebin.com/dJd7ynpe please can some one guide me here, thankyou
[07:19:01] *** dekhaus has quit IRC
[07:19:16] *** arizzo has quit IRC
[07:19:49] *** chrislerum has quit IRC
[07:19:50] *** dbouwman has quit IRC
[07:19:55] *** bayousoft has quit IRC
[07:19:57] *** cisox has quit IRC
[07:20:47] *** ngoyal_ has joined #angularjs
[07:21:09] *** richardbaker has quit IRC
[07:21:55] *** Voyage has joined #angularjs
[07:22:07] *** KernelCurry has quit IRC
[07:22:51] *** subnl2 has joined #angularjs
[07:23:54] *** mdedetrich has joined #angularjs
[07:23:57] *** ngoyal has quit IRC
[07:24:58] *** ngoyal_ has quit IRC
[07:25:39] *** mikaeldice has quit IRC
[07:25:46] *** subnl2 has quit IRC
[07:28:58] *** joshontheweb has joined #angularjs
[07:29:04] *** arizzo has joined #angularjs
[07:29:29] <sacho_> well, getData is not a function.
[07:29:43] *** DrMabuse has joined #angularjs
[07:30:23] *** H1FuelCell has joined #angularjs
[07:30:24] *** sigurding has joined #angularjs
[07:30:52] <sacho_> why are you passing two parameters to ngTableParams's constructor?
[07:32:04] *** chrisbirk is now known as chrisbirkisaway
[07:32:43] *** sigurding has quit IRC
[07:32:57] *** mennea has quit IRC
[07:33:16] *** arizzo has quit IRC
[07:33:35] *** rchavik has quit IRC
[07:33:39] *** lucasefe has quit IRC
[07:34:29] *** rchavik has joined #angularjs
[07:35:18] *** patrickarlt has quit IRC
[07:36:00] *** vintik has joined #angularjs
[07:36:01] *** Voyage has left #angularjs
[07:37:32] *** roymilder has joined #angularjs
[07:37:41] *** jnaour has quit IRC
[07:38:49] *** jnaour has joined #angularjs
[07:39:33] *** sigurding has joined #angularjs
[07:41:45] <beckyconning__> has anyone had any luck using share.js or any other operational transformation techniques with angular?
[07:41:50] *** roymilder has quit IRC
[07:41:50] <mogaj> ng-table pagination not working any pointers please
[07:42:08] *** subnl2 has joined #angularjs
[07:42:49] <TheAceOfHearts> fix it
[07:42:54] *** subnl2 has quit IRC
[07:43:23] *** JohnBat26 has joined #angularjs
[07:43:29] <beckyconning__> 1) identify the problem, 2) fix it, 3) repeat as necessary until its all fixed
[07:43:36] *** rchavik_ has joined #angularjs
[07:44:00] *** danielpquinn has joined #angularjs
[07:44:34] *** jbourassa has quit IRC
[07:45:18] *** schonert has joined #angularjs
[07:46:25] *** subnl2 has joined #angularjs
[07:46:33] *** rchavik has quit IRC
[07:46:38] *** subnl2 has quit IRC
[07:47:48] *** Jdubs has quit IRC
[07:48:05] *** dc_ has quit IRC
[07:48:45] *** danielpquinn has quit IRC
[07:48:46] <beckyconning__> sacho_: i think i know why
[07:49:22] <sacho_> ok?
[07:49:46] <beckyconning__> sacho_: try adding $scope.colors = [] outside your .success()
[07:49:47] <sacho_> mogaj, why are you passing two parameters to ngTableParams's constructor?
[07:49:56] <sacho_> beckyconning__, I haven't asked a question.
[07:49:59] <beckyconning__> oops wrong person sorry : P
[07:50:04] *** dc_ has joined #angularjs
[07:50:16] <beckyconning__> mogaj: try adding $scope.colors = [] outside your .success()
[07:51:34] *** zwacky has joined #angularjs
[07:51:46] *** Milanito has joined #angularjs
[07:51:53] <beckyconning__> because $scope.colors.slice is being called before your .get succeeds so $scope.colors.slice is undefined
[07:52:11] *** rchavik_ has quit IRC
[07:52:13] *** Guest79466 is now known as masak
[07:52:43] *** masak is now known as Guest40047
[07:53:06] *** Guest40047 is now known as masak_grr
[07:53:07] *** ldgood has joined #angularjs
[07:53:54] * beckyconning__ pokes mogaj
[07:54:54] *** Xethron has joined #angularjs
[07:54:54] *** Xethron has joined #angularjs
[07:55:32] *** chrisbirkisaway has quit IRC
[07:57:01] *** schonert has quit IRC
[07:57:36] *** Ch4rAss has joined #angularjs
[07:57:45] *** Evankhell has joined #angularjs
[07:59:09] *** arizzo has joined #angularjs
[07:59:26] *** lite_ has joined #angularjs
[08:00:54] *** krad has joined #angularjs
[08:01:10] <krad> hi. is there an angular module to send emails?
[08:01:35] *** frkout_ has joined #angularjs
[08:02:32] <sacho_> krad, no. Your browser can't send emails.
[08:02:34] <krad> essentially i want to send emails from the browser. i think this can be done using websockets.
[08:03:00] *** nkn has joined #angularjs
[08:03:16] *** arizzo has quit IRC
[08:03:44] <krad> well basically i'm adding a new functionality to my 'mock-up' which still exists on the client side only. (no server)
[08:03:55] <krad> and that is to be able to send emails
[08:04:11] <sacho_> that's nice.
[08:04:16] *** frkout has quit IRC
[08:05:01] <krad> i have no problem using any free server side api that allows me to send emails
[08:05:11] <krad> but i know of none
[08:05:41] *** balboah has joined #angularjs
[08:06:19] *** svycka has joined #angularjs
[08:06:25] *** DrMabuse has quit IRC
[08:06:38] <krad> "Sending mails through Postmark is as simple as sending HTTP Post request to the service. "
[08:06:47] <krad> hmmm. i'll look at this
[08:07:19] *** jk-5|gone is now known as jk-5
[08:07:48] <krad> i'm afriad it's not free
[08:07:50] <krad> afraid*
[08:09:11] *** rchavik_ has joined #angularjs
[08:09:25] *** foo-bar- has quit IRC
[08:09:32] *** arizzo has joined #angularjs
[08:09:47] *** balboah has quit IRC
[08:10:05] *** Click66___ has joined #angularjs
[08:10:15] *** ETBlue has quit IRC
[08:10:27] *** DerekPerkins_ has joined #angularjs
[08:10:32] *** foo-bar- has joined #angularjs
[08:10:55] *** waylon999 has quit IRC
[08:11:05] *** aviraldg has quit IRC
[08:11:13] *** zanea is now known as zanea|away
[08:11:39] *** TorchDragon has joined #angularjs
[08:12:32] *** conner_ has joined #angularjs
[08:12:44] *** Nijikokun has joined #angularjs
[08:13:03] *** HypnotiX has joined #angularjs
[08:13:46] *** arizzo has quit IRC
[08:14:05] *** cpciv1 has quit IRC
[08:14:19] *** cpciv has joined #angularjs
[08:14:23] *** DerekPerkins has quit IRC
[08:15:18] *** xmmp has quit IRC
[08:15:22] *** sigurding has quit IRC
[08:15:35] *** foo-bar- has quit IRC
[08:15:36] *** sdouglas has joined #angularjs
[08:16:02] *** TorchDragon has quit IRC
[08:16:38] *** conner_ has quit IRC
[08:16:54] *** dc_ has quit IRC
[08:17:23] *** H1FuelCell has quit IRC
[08:17:23] *** zbzzn has quit IRC
[08:17:39] *** roymilder has joined #angularjs
[08:17:43] *** zbzzn has joined #angularjs
[08:18:21] *** jerev_away is now known as jerev
[08:19:08] *** zbzzn_ has joined #angularjs
[08:19:08] *** zbzzn has quit IRC
[08:19:20] *** blueadept has quit IRC
[08:19:57] *** arizzo has joined #angularjs
[08:20:11] *** evilaliv3 has joined #angularjs
[08:20:37] *** bkuberek has joined #angularjs
[08:21:47] *** dc_ has joined #angularjs
[08:21:56] *** ckboii89 has quit IRC
[08:22:19] *** pdillinger1 has quit IRC
[08:22:56] *** combat has joined #angularjs
[08:23:48] *** senayar has joined #angularjs
[08:24:16] *** arizzo has quit IRC
[08:24:46] *** bkuberek has quit IRC
[08:25:23] *** Jdubs has joined #angularjs
[08:25:28] *** sdouglas has quit IRC
[08:25:55] *** jdj_dk has joined #angularjs
[08:25:55] *** aviraldg has joined #angularjs
[08:27:35] *** mtsr has joined #angularjs
[08:28:47] *** cpciv has quit IRC
[08:28:51] <beckyconning__> krad: the problem is that if you put the auth token for your http api into a web browser the user can use it to send unlimited emails and you get the bill.
[08:29:10] *** xmmp has joined #angularjs
[08:29:31] *** cpciv has joined #angularjs
[08:29:46] *** roymilder has quit IRC
[08:30:04] *** wilmoore has quit IRC
[08:30:15] *** LuxuryMode has quit IRC
[08:30:55] *** dhcar has left #angularjs
[08:32:10] *** roymilder has joined #angularjs
[08:32:15] *** sdouglas has joined #angularjs
[08:33:04] <Mattias> I'm trying to use angular with wordpress, and the ajax action I've created in wordpress returns 0 when angularjs calls it. This is how the code looks like: http://pastebin.com/LCJZKH1d
[08:33:29] *** mzehrer_ has joined #angularjs
[08:33:32] <BobbieBarker> why would you mix angular with word press
[08:33:52] <sacho_> Mattias, what makes you think it returns 0?
[08:34:06] <Mattias> sacho_: console.log
[08:34:22] <sacho_> please be more descriptive.
[08:34:26] *** arizzo has joined #angularjs
[08:34:31] <sacho_> I'm not here to dig information out of you
[08:34:33] <Mattias> BobbieBarker: Client-site is wordpress, I'm only using wordpress to create a dynamic forms, several forms, all dynamic
[08:34:37] <Mattias> Angular makes it easy
[08:34:50] *** sigurding has joined #angularjs
[08:34:58] <Mattias> sacho_: The data I get from the ajax call is "0"
[08:35:10] <Mattias> sacho_: wordpress returns 0 or -1 when something is wrong
[08:35:12] *** dc_ has quit IRC
[08:35:13] <BobbieBarker> why not console log data instead of success
[08:35:17] <Mattias> If only it could tell me what is wrong :/
[08:35:22] <BobbieBarker> nvm i misread
[08:35:30] <sacho_> Mattias, why is that an angular problem?
[08:35:39] <Mattias> sacho_: with jquery it works
[08:35:54] * Mattias will investigate more
[08:36:01] <Mattias> has to be a way to have wordpress tell me what's wrong..
[08:36:02] <sacho_> why don't you look at the request your jquery code makes
[08:36:08] <Mattias> sacho_: Good idea!
[08:36:10] *** umpc has joined #angularjs
[08:36:12] <sacho_> and then the request your angular code makes
[08:36:23] <BobbieBarker> ^^ what he said
[08:36:26] <sacho_> and ask a question about something that surpises you there
[08:36:31] <sacho_> surprises*
[08:36:52] *** sdouglas has quit IRC
[08:38:20] *** zz_Brocken has quit IRC
[08:38:46] *** arizzo has quit IRC
[08:39:44] *** jelle_ has joined #angularjs
[08:40:03] *** zz_Brocken has joined #angularjs
[08:40:12] *** zz_Brocken is now known as Brocken
[08:40:16] *** foo-bar- has joined #angularjs
[08:40:20] <BobbieBarker> someone ask a good question
[08:40:38] *** hannesvdvreken has joined #angularjs
[08:41:01] <BobbieBarker> i'm bored
[08:41:10] *** frkout_ has quit IRC
[08:41:41] *** foo-bar- has quit IRC
[08:41:42] *** frkout has joined #angularjs
[08:42:10] *** foo-bar- has joined #angularjs
[08:43:26] *** SomeKittens has quit IRC
[08:43:54] *** Ericx2x has joined #angularjs
[08:44:09] <wafflejock> BobbieBarker: do we really need daylight savings time, what about pennies, will humanity end in a nuclear wasteland or travel out into the cosmos as our star dies, is the universe going to forever expand into a freezing nothingness or will it one day collapse on itself
[08:44:15] <wafflejock> ?
[08:44:20] *** arizzo has joined #angularjs
[08:44:28] <BobbieBarker> lol smart ass
[08:44:37] <wafflejock> haha I thought they were good questions
[08:44:46] <BobbieBarker> i meant angular questions
[08:44:46] *** danielpquinn has joined #angularjs
[08:44:57] <BobbieBarker> i'm starting to feel like an angular wizard
[08:45:03] <wafflejock> thats good to hear
[08:45:17] <wafflejock> it's a nice feeling when you get a handle on this thing
[08:45:18] *** sdouglas has joined #angularjs
[08:46:03] *** skip1 has joined #angularjs
[08:46:09] <BobbieBarker> indeed
[08:46:09] <skip1> helloo
[08:46:16] *** foo-bar- has quit IRC
[08:46:32] <BobbieBarker> i've been writing some pretty legit directives the last couple days
[08:47:12] *** CptChaos has joined #angularjs
[08:47:44] <zumba_addict> hey folks, I have $scope.loading = false. However, ng-show="loading" is still showing up the div. What am I missing?
[08:47:50] <wafflejock> BobbieBarker: nice yeah if you're super bored start wrapping stuff up as bower components and get em out there
[08:47:58] <sacho_> zumba_addict, a test case.
[08:48:11] <BobbieBarker> they're really specific to my project/app modules
[08:48:13] <zumba_addict> you mean a plunker?
[08:48:17] <sacho_> sure.
[08:48:22] <wafflejock> zumba_addict: shouldn't be anything except maybe wrong scope being updated or if the $scope.loading=false part happens somewhere in async outside of angular context
[08:48:26] *** Milanito has quit IRC
[08:48:46] *** arizzo has quit IRC
[08:48:57] <zumba_addict> ok wafflejock
[08:49:11] <zumba_addict> i'll double check
[08:49:16] *** arek_deepinit has joined #angularjs
[08:49:56] *** arizzo has joined #angularjs
[08:50:05] *** danielpquinn has quit IRC
[08:50:21] *** skip1 has left #angularjs
[08:51:04] *** stodan has joined #angularjs
[08:52:39] *** pdillinger1 has joined #angularjs
[08:53:25] *** dutis has joined #angularjs
[08:54:15] <zumba_addict> I fixed it but it's weird
[08:54:16] *** arizzo has quit IRC
[08:54:22] *** InezK is now known as InezK_away
[08:54:33] <zumba_addict> i changed $scope.loading into $scope.loadingSpinner
[08:54:41] *** mchammer has joined #angularjs
[08:54:53] <zumba_addict> however, I don't have any $scope.loading somewhere in my controller
[08:54:58] *** tarnus has quit IRC
[08:55:03] <zumba_addict> is loading a built-in variable?
[08:55:32] *** tarnus has joined #angularjs
[08:55:38] *** Milanito has joined #angularjs
[08:55:47] *** chrisbirk has joined #angularjs
[08:58:05] *** oa_2 has quit IRC
[08:59:51] *** tarnus has quit IRC
[09:00:21] *** krad has quit IRC
[09:00:22] *** arizzo has joined #angularjs
[09:00:30] <dmg91> zumba_addict: the scope doesn't provide any "magical" built-in variables (except of these, starting with $/$$)
[09:00:41] <zumba_addict> k
[09:00:45] *** spencercarnage has quit IRC
[09:00:54] *** mguillec_ has quit IRC
[09:01:01] <zumba_addict> not sure why it's failing if i use $scope.loading. I'll double check again
[09:01:01] *** floorz has quit IRC
[09:01:20] *** dwightwatson has quit IRC
[09:01:30] *** Nizumzen has joined #angularjs
[09:01:34] *** night-owl-MBP has quit IRC
[09:01:34] <zumba_addict> just checked, there is no $scope.loading somewhere
[09:01:46] <dmg91> are you injecting anything?
[09:02:29] <zumba_addict> no
[09:02:43] *** umpc has left #angularjs
[09:02:44] <arek_deepinit> is there any way to access parent form from ngmodel?
[09:03:03] *** moritzs has joined #angularjs
[09:03:34] *** VeeWee has joined #angularjs
[09:03:36] <dmg91> zumba_addict: try to debug your scope with browser's bultin debugging tools https://developer.chrome.com/devtools/docs/javascript-debugging
[09:03:38] *** hychen has joined #angularjs
[09:03:53] <zumba_addict> will do
[09:03:57] *** mguillec_ has joined #angularjs
[09:03:58] *** crocket has left #angularjs
[09:04:07] *** dmg91 has left #angularjs
[09:04:16] *** dmg91 has joined #angularjs
[09:04:48] *** Ericx2x has quit IRC
[09:05:02] *** Jdubs has quit IRC
[09:05:09] *** Shrooms has quit IRC
[09:05:10] *** tfennelly has joined #angularjs
[09:05:24] *** Jdubs has joined #angularjs
[09:07:36] *** CptChaos has quit IRC
[09:08:39] *** peldan has joined #angularjs
[09:08:46] *** arizzo has quit IRC
[09:08:47] *** foofoobar has joined #angularjs
[09:08:59] *** DerekPerkins_ has quit IRC
[09:09:30] *** badon_ has joined #angularjs
[09:09:52] *** jstroem has joined #angularjs
[09:10:11] *** moritzs has quit IRC
[09:10:32] *** masak_grr is now known as masak
[09:11:01] <Mattias> The problem was, wordpress uses different ajax actions depending on if you are logged in or not... apparently I tried the jquery logged out because I had only specificed an action for non-logged in people. Now I'll just add the same callback to both private and non-private ajax actions in wordpress
[09:11:03] *** badon_ has quit IRC
[09:11:52] *** jelle_ has quit IRC
[09:12:45] *** mennea has joined #angularjs
[09:12:55] *** jelle_ has joined #angularjs
[09:13:12] *** badon has quit IRC
[09:13:21] *** nfroidure_ has joined #angularjs
[09:13:37] *** badon has joined #angularjs
[09:13:43] *** mkulke has joined #angularjs
[09:14:10] *** illume has joined #angularjs
[09:14:30] *** AciD`` has joined #angularjs
[09:15:12] *** Gambit- has quit IRC
[09:15:16] *** arizzo has joined #angularjs
[09:16:14] *** hekep has joined #angularjs
[09:16:28] *** katsh has joined #angularjs
[09:16:31] *** jonasrosenlind has joined #angularjs
[09:16:56] *** TheAceOfHearts has quit IRC
[09:17:22] *** sk87 has joined #angularjs
[09:17:29] *** Daven_ has joined #angularjs
[09:17:34] *** nisonger has quit IRC
[09:17:39] *** fbenoit has joined #angularjs
[09:18:03] *** bicranial has quit IRC
[09:18:24] *** Stephen has quit IRC
[09:18:54] *** Jae has quit IRC
[09:19:46] *** arizzo has quit IRC
[09:20:22] *** polka has joined #angularjs
[09:21:18] *** bkuberek has joined #angularjs
[09:21:29] *** ngoyal has joined #angularjs
[09:21:46] *** texinwien has joined #angularjs
[09:23:39] *** [n0b0dy] has quit IRC
[09:23:49] *** [n0b0dy] has joined #angularjs
[09:24:21] *** Stephen has joined #angularjs
[09:24:38] *** xmmp has quit IRC
[09:24:47] *** fataldecrease has quit IRC
[09:25:08] *** fataldecrease has joined #angularjs
[09:25:38] *** bkuberek has quit IRC
[09:25:43] <beckyconning__> ooh contentful uses angularjs and sharejs together
[09:26:16] *** ngoyal has quit IRC
[09:26:36] *** FesterCluck has joined #angularjs
[09:27:21] *** mdedetrich has quit IRC
[09:28:02] *** joshbrw has joined #angularjs
[09:28:02] *** kalusn has joined #angularjs
[09:29:13] *** sdouglas has quit IRC
[09:29:33] *** Stephen has quit IRC
[09:29:36] *** arizzo has joined #angularjs
[09:29:46] *** sdouglas has joined #angularjs
[09:29:59] *** kppullin has quit IRC
[09:30:40] *** DevAntoine has joined #angularjs
[09:31:07] *** Xliff has quit IRC
[09:33:46] *** arizzo has quit IRC
[09:33:57] *** sdouglas has quit IRC
[09:35:14] *** ustunozgur has quit IRC
[09:35:34] *** mewm has joined #angularjs
[09:36:31] *** nytrm has joined #angularjs
[09:36:32] *** jacuqesdancona_ has joined #angularjs
[09:37:30] *** neurix has joined #angularjs
[09:37:57] *** kppullin has joined #angularjs
[09:38:07] *** xmmp has joined #angularjs
[09:38:10] *** guilbep has joined #angularjs
[09:39:48] <neurix> I have a question regarding object.push(). I loaded an object from a json file, and would like to add a record. Does my function addCondition need to source the $scope or the json record? I have my sample code here: http://pastebin.com/9NZz2KiU
[09:40:18] *** arizzo has joined #angularjs
[09:42:03] *** Nizumzen has quit IRC
[09:42:07] *** mzehrer_ has quit IRC
[09:42:18] *** chrisbirk has quit IRC
[09:42:29] *** mzehrer_ has joined #angularjs
[09:42:43] *** Moon has joined #angularjs
[09:42:47] *** mehlah has joined #angularjs
[09:43:06] *** Moon is now known as Guest52008
[09:43:47] *** ceephax has quit IRC
[09:44:00] *** intellix has joined #angularjs
[09:44:46] *** arizzo has quit IRC
[09:45:13] *** davestone has joined #angularjs
[09:45:32] *** danielpquinn has joined #angularjs
[09:45:37] *** motionman has quit IRC
[09:46:39] *** tacajushi has joined #angularjs
[09:46:46] *** edzez has joined #angularjs
[09:47:53] *** Emperor_Earth has joined #angularjs
[09:47:55] *** nemothekid has quit IRC
[09:50:23] *** danielpquinn has quit IRC
[09:50:42] <dmg91> Q: my ng-repeat is iterating two times and I can't figure out, why. http://jsfiddle.net/hkx7Z/
[09:51:21] *** obert has joined #angularjs
[09:51:31] *** kalusn has quit IRC
[09:51:31] *** nytram has joined #angularjs
[09:51:39] *** dbouwman has joined #angularjs
[09:51:50] *** ineedarobot has joined #angularjs
[09:52:02] *** Emperor_Earth_ has joined #angularjs
[09:52:04] *** jelle___ has joined #angularjs
[09:52:26] *** waf has joined #angularjs
[09:53:36] *** nytrm has quit IRC
[09:53:40] *** cobakobodob has quit IRC
[09:53:43] *** AndyFTP has joined #angularjs
[09:53:46] *** Emperor_Earth has quit IRC
[09:54:00] *** FesterCluck has quit IRC
[09:54:13] *** cobakobodob has joined #angularjs
[09:54:31] *** InezK_away is now known as InezK
[09:54:38] *** fuzzy has joined #angularjs
[09:55:01] *** kalusn has joined #angularjs
[09:55:02] *** polka has quit IRC
[09:55:13] *** Joulse has joined #angularjs
[09:55:34] *** jelle_ has quit IRC
[09:56:23] *** dbouwman has quit IRC
[09:56:38] *** fouzko has joined #angularjs
[09:56:40] <tacajushi> I have the following code https://gist.github.com/anonymous/7453d45e7e563592da64 and it doesn't really work, previously I had $http.get('data/appointment.json').succes(function(data) .... and it worked great
[09:56:41] *** nytram is now known as nytrm
[09:56:47] *** Emperor_Earth has joined #angularjs
[09:57:04] *** fouzko has quit IRC
[09:57:32] *** mdedetrich has joined #angularjs
[09:57:42] *** Dimlock has joined #angularjs
[09:57:58] *** boule has joined #angularjs
[09:58:00] *** obert has quit IRC
[09:58:20] *** kppullin_ has joined #angularjs
[09:58:21] *** Emperor_Earth_ has quit IRC
[09:58:28] *** jelle___ has quit IRC
[09:58:29] *** kppullin has quit IRC
[09:58:47] *** TyrfingMjolnir has joined #angularjs
[09:58:53] *** ipalaus has joined #angularjs
[09:59:47] *** arek_deepinit has quit IRC
[10:00:07] *** TorchDragon has joined #angularjs
[10:00:08] *** Natsu- has joined #angularjs
[10:00:21] *** Ericx2x has joined #angularjs
[10:00:27] *** nytrm has quit IRC
[10:00:30] *** conner_ has joined #angularjs
[10:00:39] *** nytrm has joined #angularjs
[10:00:41] *** Ethix has joined #angularjs
[10:00:42] *** nytrm has quit IRC
[10:00:42] *** dbouwman has joined #angularjs
[10:00:45] <beckyconning__> tacajushi: you don't need to create that deferred as $http.get returns its own promise
[10:01:15] *** dve has joined #angularjs
[10:01:15] <tacajushi> oh
[10:01:52] *** geoid has joined #angularjs
[10:02:32] *** motionman has joined #angularjs
[10:02:32] *** motionman has joined #angularjs
[10:02:40] *** fbenoit has quit IRC
[10:03:04] *** xmmp has quit IRC
[10:03:20] *** arizzo has joined #angularjs
[10:03:55] *** nytrm has joined #angularjs
[10:04:24] *** InezK is now known as InezK_away
[10:04:33] *** mdedetrich has quit IRC
[10:04:33] *** conner_ has quit IRC
[10:04:43] *** mokush has joined #angularjs
[10:04:47] *** TorchDragon has quit IRC
[10:04:54] *** jelle_ has joined #angularjs
[10:05:27] *** dbouwman has quit IRC
[10:06:58] *** balboah has joined #angularjs
[10:07:04] *** pheze has quit IRC
[10:07:48] <beckyconning__> if i were you i would make 'RefreshData' a service rather than a factory rename it to 'appointmentsService' and add a function as a property called 'getAll' which returns the promise returned by $http.get('data/appointment.json')
[10:08:25] *** aviraldg has quit IRC
[10:08:33] *** Milanito has quit IRC
[10:09:17] <beckyconning__> so then in your controller you'd be like: $scope.appointments = []; appointmentsService.getAll().then(function (appointments) { $scope.appointments = angular.copy($scope.appointments, appointments); });
[10:09:23] <beckyconning__> actually its
[10:09:38] *** fuzzy has quit IRC
[10:09:50] <beckyconning__> $scope.appointments = []; appointmentsService.getAll().then(function (result) { $scope.appointments = angular.copy($scope.appointments, result.data); });
[10:10:32] *** fuzzy has joined #angularjs
[10:10:42] *** MuffinMan` has joined #angularjs
[10:10:47] *** fuzzy has quit IRC
[10:10:54] *** Sebastien-L has joined #angularjs
[10:10:59] *** JoshGlzBrk has quit IRC
[10:11:27] *** balboah has quit IRC
[10:11:32] *** Evankhell has quit IRC
[10:11:47] *** jonasrosenlind has quit IRC
[10:12:11] <beckyconning__> and then you can add a .catch(this.setDisconnectedState.bind(this)); and make this.setDisconnectedState set some stuff in your scope that ends up telling the user that they are disconnected and giving them the option to try again
[10:13:07] *** obert has joined #angularjs
[10:13:23] *** motionman has quit IRC
[10:13:24] *** evilaliv3 has quit IRC
[10:13:28] *** johnkevinmbasco has joined #angularjs
[10:13:29] *** kcccccc has joined #angularjs
[10:14:15] *** Nijikokun has quit IRC
[10:16:31] <johnkevinmbasco> hi guys, does it makes sense to create a plural and singular factory? Like BikeFactory and BikesFactory? does It have any advantage compared to using only a single factory like BikeFactory?
[10:16:31] *** Nijikokun has joined #angularjs
[10:16:31] *** milka has joined #angularjs
[10:16:32] *** zumba_addict has quit IRC
[10:16:32] *** frkout has quit IRC
[10:16:32] *** maxikon has quit IRC
[10:16:32] *** maxikon has joined #angularjs
[10:16:32] *** frkout has joined #angularjs
[10:16:32] *** JoshGlzBrk has joined #angularjs
[10:16:33] *** shabadoo has quit IRC
[10:16:37] *** arizzo has quit IRC
[10:17:08] *** arizzo has joined #angularjs
[10:17:12] *** xastey has quit IRC
[10:17:16] *** xmmp has joined #angularjs
[10:17:23] *** Mahonar has joined #angularjs
[10:17:38] *** jonasrosenlind has joined #angularjs
[10:18:05] *** mattwynne has joined #angularjs
[10:18:12] *** Blazedd has quit IRC
[10:18:33] *** shabadoo has joined #angularjs
[10:18:44] *** [n0b0dy] has quit IRC
[10:18:50] *** rchavik_ has quit IRC
[10:18:59] *** Click66___ has quit IRC
[10:19:11] *** Ethix has quit IRC
[10:19:22] *** mtsr has quit IRC
[10:19:48] *** Click66___ has joined #angularjs
[10:20:49] *** Deseaus has joined #angularjs
[10:21:08] *** Ericx2x has quit IRC
[10:21:18] *** sgnl has quit IRC
[10:21:54] *** rchavik has joined #angularjs
[10:22:02] *** bkuberek has joined #angularjs
[10:22:39] *** aviraldg has joined #angularjs
[10:23:23] *** sk87 has quit IRC
[10:23:34] *** Milanito has joined #angularjs
[10:24:30] *** sk87 has joined #angularjs
[10:25:06] *** motionman has joined #angularjs
[10:25:06] *** motionman has joined #angularjs
[10:25:18] *** arizzo has quit IRC
[10:25:57] *** night-owl-MBP has joined #angularjs
[10:26:38] <tacajushi> beckyconning__: what about this https://gist.github.com/anonymous/62fe90595570e55318c0 will it work (in context of autorefreshing) ?
[10:26:59] *** bkuberek has quit IRC
[10:27:26] *** maurycyg has joined #angularjs
[10:27:42] *** mtsr has joined #angularjs
[10:28:12] *** zrl has quit IRC
[10:28:53] <tacajushi> wait..
[10:29:10] *** KamalKaur has joined #angularjs
[10:29:17] <tacajushi> ok, I managed
[10:29:56] *** slainer68 has joined #angularjs
[10:30:08] *** Deseaus has quit IRC
[10:30:24] *** mange has quit IRC
[10:30:58] *** jelle_ has quit IRC
[10:34:11] *** J0514H has quit IRC
[10:35:03] *** iksik_ has joined #angularjs
[10:35:16] *** storresi has joined #angularjs
[10:37:05] *** jeffisabelle has quit IRC
[10:37:10] *** marr has joined #angularjs
[10:37:17] *** jstroem has quit IRC
[10:37:25] *** gunn has joined #angularjs
[10:37:50] *** jstroem has joined #angularjs
[10:38:07] *** iksik has quit IRC
[10:39:10] *** charuru has quit IRC
[10:40:00] *** arussel has joined #angularjs
[10:40:11] *** jcw has quit IRC
[10:40:59] *** eutheria has joined #angularjs
[10:41:22] *** Serdar has joined #angularjs
[10:41:50] <arussel> I have some external file in between my build:js / endbuild, they don't get concatenate by grunt (the local files are), is there a way to ask grunt to fetch them and concatenate ?
[10:41:58] *** jstroem has quit IRC
[10:42:51] *** foo-bar- has joined #angularjs
[10:42:53] *** tangorri has joined #angularjs
[10:46:17] *** danielpquinn has joined #angularjs
[10:47:24] *** foo-bar- has quit IRC
[10:47:45] *** Anticom has joined #angularjs
[10:48:17] *** bengillies has joined #angularjs
[10:48:57] *** obert has quit IRC
[10:49:05] *** krnflake has quit IRC
[10:49:10] *** Jdubs has quit IRC
[10:49:16] *** neurix has quit IRC
[10:49:18] *** ldgood has quit IRC
[10:49:23] *** cpciv has quit IRC
[10:50:37] *** danielpquinn has quit IRC
[10:50:44] <tangorri> anyone using angular-generator ? I've updated and still have jquery includes when using bootstrap sass & font path issue
[10:51:16] *** ppppaul has joined #angularjs
[10:51:52] *** ably has joined #angularjs
[10:52:03] <Anticom> hi all... i wanted to implement some kind of delayed $watch to be able to automatically persist model changes to pouchDB (and eventually replicate them to couch lateron). However i'm not able to access the models, that have been updated delayed properly http://jsbin.com/qunudelo/3/edit?js
[10:54:00] *** krnflake has joined #angularjs
[10:54:11] *** Sebastien-L has quit IRC
[10:54:14] *** jelle_ has joined #angularjs
[10:54:14] *** Ronyrun has joined #angularjs
[10:54:33] *** geoid has quit IRC
[10:54:41] <ppppaul> i was just thinking of you guys
[10:54:51] <ppppaul> what are your experiences with drag and drop with angular?
[10:55:20] <ppppaul> Anticom,
[10:55:27] *** InezK_away is now known as InezK
[10:55:29] *** Sebastien-L has joined #angularjs
[10:55:29] <ppppaul> ngModelOptions + ngChange
[10:55:41] <ppppaul> you can set a debouncer
[10:55:50] <Anticom> ppppaul why are you asking me? I'm an ng-newbie ;)
[10:55:56] *** arek_deepinit has joined #angularjs
[10:56:01] <ppppaul> i'm telling you
[10:56:03] <ppppaul> not asking
[10:56:10] *** tarnus has joined #angularjs
[10:56:13] <ppppaul> i'm not a noobie
[10:56:32] <ppppaul> if you are on angular 1.3 then try ngModelOptions
[10:56:41] <Anticom> ppppaul i've got no experiences with angular dnd whatsoever
[10:56:54] <ppppaul> otherwise, you can actually make your $watch callback a debounced fucntion
[10:57:26] <Anticom> ppppaul what do you mean by debounced function? that's what i've tried to achive using $timeout, didn't i?
[10:57:33] *** bengillies has quit IRC
[10:58:08] <ppppaul> i wouldn't make my own debounced function when they already exist and are actually built into ngModel
[10:58:29] <ppppaul> you can set a debounced time for ngModels view ngModelOptions
[10:58:34] <ppppaul> via*
[10:58:36] <Anticom> ppppaul ah okay... i'm still struggling with the angular docs
[10:58:56] <Anticom> i'll let you know if there are any further questions
[10:59:01] <Anticom> cheers for the help ppppaul
[11:00:04] <ppppaul> you may benifit from using $watchCollection
[11:00:26] <ppppaul> is your ngModel the actual collection?
[11:00:46] *** tarnus has quit IRC
[11:00:51] <ppppaul> i see that it's not
[11:01:38] *** dbouwman has joined #angularjs
[11:02:21] *** cswelin has quit IRC
[11:02:37] *** cswelin has joined #angularjs
[11:02:38] *** frkout has quit IRC
[11:02:54] <ppppaul> http://underscorejs.org/#debounce
[11:03:12] *** frkout has joined #angularjs
[11:03:23] *** Zeeshan_M has quit IRC
[11:03:52] <ppppaul> so, give your $watch callback a name, wrap it in a debounce, then set that as your actual $watch callback
[11:04:40] *** clkao_ is now known as clkao
[11:04:40] *** amb has joined #angularjs
[11:04:54] <ppppaul> unless you can use ngChange outside of the repeater
[11:04:57] *** daed has quit IRC
[11:05:02] <ppppaul> then you wont need a $watch at all
[11:05:04] *** Milanito has quit IRC
[11:05:09] *** amb has quit IRC
[11:05:11] *** InezK is now known as InezK_away
[11:05:20] *** vintik has quit IRC
[11:05:30] <TyrfingMjolnir> Hey, what is better ajax or socket.io? or can the 2 really compare?
[11:05:46] *** Daven_ has quit IRC
[11:05:51] *** kanzure has quit IRC
[11:06:00] *** InezK_away is now known as InezK
[11:06:05] *** dbouwman has quit IRC
[11:06:38] *** paddymahoney has quit IRC
[11:06:52] *** Zeeshan_M has joined #angularjs
[11:06:54] *** kanzure has joined #angularjs
[11:07:01] *** ingsoc has joined #angularjs
[11:07:48] *** storkme has joined #angularjs
[11:07:48] *** balboah has joined #angularjs
[11:08:09] *** Milanito has joined #angularjs
[11:08:17] *** jcw has joined #angularjs
[11:08:22] *** jcw has quit IRC
[11:09:07] *** Deseaus has joined #angularjs
[11:10:21] *** dc_ has joined #angularjs
[11:10:32] *** johnkevinmbasco has quit IRC
[11:10:48] *** Milanito1 has joined #angularjs
[11:11:18] *** KamalKaur has quit IRC
[11:11:46] *** wafflejock has quit IRC
[11:11:47] *** geoid has joined #angularjs
[11:11:49] *** fdrechsler has joined #angularjs
[11:12:17] *** balboah has quit IRC
[11:12:53] *** mzehrer_ has quit IRC
[11:13:00] *** wafflejock has joined #angularjs
[11:13:13] *** Milanito has quit IRC
[11:13:15] *** jcw has joined #angularjs
[11:13:47] *** daed has joined #angularjs
[11:15:45] *** InezK is now known as InezK_away
[11:15:53] *** Ericx2x has joined #angularjs
[11:17:31] *** mzehrer_ has joined #angularjs
[11:18:22] *** kalusn has quit IRC
[11:19:18] *** sigurding has quit IRC
[11:19:26] *** Milanito1 has quit IRC
[11:20:19] *** Milanito has joined #angularjs
[11:20:33] *** Ericx2x has quit IRC
[11:20:42] *** sigurding has joined #angularjs
[11:20:55] *** klaut has joined #angularjs
[11:21:02] *** CainVampyr has joined #angularjs
[11:22:12] *** jnaour has quit IRC
[11:22:14] *** ngoyal has joined #angularjs
[11:22:21] *** jnaour has joined #angularjs
[11:22:50] *** bkuberek has joined #angularjs
[11:23:18] *** texinwien has quit IRC
[11:23:23] *** phuh has joined #angularjs
[11:24:16] *** bkuberek has quit IRC
[11:24:19] *** mennea has quit IRC
[11:24:48] *** obert has joined #angularjs
[11:24:53] *** lordkryss has joined #angularjs
[11:26:15] *** Evankhell has joined #angularjs
[11:26:46] *** ngoyal has quit IRC
[11:27:38] *** geoid has quit IRC
[11:27:41] *** paddymahoney has joined #angularjs
[11:28:46] *** bengillies has joined #angularjs
[11:29:56] *** HelperW has joined #angularjs
[11:31:16] *** xmmp has quit IRC
[11:32:00] *** arizzo has joined #angularjs
[11:32:04] *** Evankhell has quit IRC
[11:32:18] *** phuh has quit IRC
[11:32:43] *** phuh has joined #angularjs
[11:33:14] *** Deseaus has quit IRC
[11:33:19] *** KamalKaur has joined #angularjs
[11:33:23] *** hychen has quit IRC
[11:33:32] *** night-owl-MBP has quit IRC
[11:34:07] *** ckboii89 has joined #angularjs
[11:34:57] *** kalusn has joined #angularjs
[11:35:06] *** titanomachy has quit IRC
[11:35:32] *** jstroem has joined #angularjs
[11:36:11] *** daslicht has joined #angularjs
[11:36:20] *** bengillies has quit IRC
[11:36:39] *** arizzo has quit IRC
[11:36:55] *** bengillies has joined #angularjs
[11:36:57] *** Aartsie has joined #angularjs
[11:39:05] *** pkayfire_ has quit IRC
[11:39:41] *** pkayfire has joined #angularjs
[11:39:44] *** bengillies has quit IRC
[11:40:10] *** bengillies has joined #angularjs
[11:40:53] *** KamalKaur has quit IRC
[11:41:29] *** pkayfire_ has joined #angularjs
[11:41:42] <tangorri> can I allow anydomain for $sce ?
[11:41:52] *** ckboii89 has quit IRC
[11:43:33] *** bbankes_ has quit IRC
[11:43:38] *** pkayfire has quit IRC
[11:44:15] *** xmmp has joined #angularjs
[11:46:18] *** Guest_ has joined #angularjs
[11:46:40] *** kalusn has quit IRC
[11:46:57] *** danielpquinn has joined #angularjs
[11:47:08] *** arizzo has joined #angularjs
[11:47:38] *** cpciv has joined #angularjs
[11:48:03] *** foofoobar has quit IRC
[11:48:50] *** conner_ has joined #angularjs
[11:48:51] *** TorchDragon has joined #angularjs
[11:48:55] *** Browser has joined #angularjs
[11:50:03] *** pkayfire has joined #angularjs
[11:50:21] *** XXOO has joined #angularjs
[11:51:26] *** bengillies has quit IRC
[11:51:35] *** arizzo has quit IRC
[11:51:45] *** danielpquinn has quit IRC
[11:51:52] *** arek_deepinit has quit IRC
[11:52:24] *** euskadi31 has joined #angularjs
[11:52:48] *** pkayfire_ has quit IRC
[11:52:54] *** drej has quit IRC
[11:53:03] *** Nizumzen has joined #angularjs
[11:53:07] *** conner_ has quit IRC
[11:53:22] *** XXOO has quit IRC
[11:53:23] *** Hounddog has joined #angularjs
[11:53:33] *** TorchDragon has quit IRC
[11:53:55] *** Milanito has quit IRC
[11:54:48] *** jkremser has joined #angularjs
[11:54:48] *** jkremser has joined #angularjs
[11:56:19] *** bengillies has joined #angularjs
[11:56:35] *** orion1111 has joined #angularjs
[11:56:42] *** jelle___ has joined #angularjs
[11:56:48] *** texinwien_ has joined #angularjs
[11:57:01] *** abc_ has joined #angularjs
[11:57:16] <abc_> abc
[11:57:23] *** arizzo has joined #angularjs
[11:57:51] *** nxf has joined #angularjs
[11:58:07] *** abc_ has quit IRC
[11:58:13] *** Milanito has joined #angularjs
[11:58:14] *** noobee has joined #angularjs
[11:58:17] <noobee> hello
[11:58:21] <noobee> may I ask a question please
[11:58:57] *** kalusn has joined #angularjs
[11:59:31] <nxf> Noob question... when is a service instantiated (i.e. its constructor called): 1) When I add it to a module with .service(string, function), 2) When I inject it into a controller etc. and that one gets instantiated or 3) When I actually access it in a controller etc. where it was injected?
[11:59:58] *** kalusn has quit IRC
[12:00:10] <nxf> noobee: In most channels just ask your question, imho :)
[12:00:35] *** jelle_ has quit IRC
[12:00:36] *** Willow has joined #angularjs
[12:00:36] <storkme> 2)
[12:00:36] *** mzehrer_ has quit IRC
[12:00:37] <noobee> thank you
[12:00:48] <noobee> im new to angularjs
[12:00:50] <nxf> storkme: Thank you
[12:00:55] <noobee> and trying to start it with proper structure
[12:01:01] <noobee> so im making each page as a module
[12:01:16] <noobee> and im using webpack
[12:01:17] *** mzehrer_ has joined #angularjs
[12:01:22] <noobee> so I have
[12:01:30] <Mattias> I have a few directives, one for each unique form. However, the submit is in only one place and it is outside the controller the directive uses Basically the directives uses controller: and has their own controllers. Now, only one of these form will be shown at a time on the frontpage. And you select which form to use with buttons on the top of the page. How can I have the submit button, which is outside
[12:01:32] <Mattias> the form and controller (probably in its own controller), submit the current visible form with the correct directive-controller submit method?
[12:01:36] <noobee> angular.module('app', 'app.page1')
[12:01:46] <noobee> how can i start app.page1 without any route?
[12:02:00] <noobee> i only have ng-view in the html from the server side
[12:02:08] *** arizzo has quit IRC
[12:02:09] *** bejames has joined #angularjs
[12:02:11] *** davestone has quit IRC
[12:02:16] <noobee> and im thinking to put the template in app.page1 into ng-view automatically
[12:02:22] <noobee> when i go to the first page
[12:02:25] <noobee> how can I do that?
[12:02:29] *** dbouwman has joined #angularjs
[12:02:45] *** firefly_ has joined #angularjs
[12:02:54] *** euskadi31_ has joined #angularjs
[12:02:55] <firefly_> hi
[12:03:11] <nxf> noobee: I assume you are using ngRoute?
[12:03:18] <noobee> yes
[12:03:24] <noobee> but if i put ngRoute
[12:03:24] *** AndyFTP_ has joined #angularjs
[12:03:25] *** aslate has joined #angularjs
[12:03:26] <noobee> in the dep
[12:03:28] <noobee> i got error
[12:03:28] *** dc__ has joined #angularjs
[12:03:30] <noobee> dont know why
[12:03:33] *** mehlah has quit IRC
[12:03:33] *** OddDuck` has joined #angularjs
[12:03:33] *** jacuqesdancona__ has joined #angularjs
[12:03:34] *** mattwynn_ has joined #angularjs
[12:03:40] <nxf> noobee: In that case you can use $routeProvider.otherwise() to set the default "page"
[12:03:49] *** daslicht_ has joined #angularjs
[12:03:51] *** aesinv`w_ has joined #angularjs
[12:03:55] <noobee> do i need to include angular-route.js?
[12:03:56] <nxf> noobee: Which error? Did you add ngroute.min.js to your index.html?
[12:04:02] <noobee> im using webpack
[12:04:03] <nxf> noobee: Yes :)
[12:04:16] *** lordkryss_ has joined #angularjs
[12:04:17] *** gregc2_ has joined #angularjs
[12:04:22] *** Joseph_Silber has joined #angularjs
[12:04:31] *** ioudas has quit IRC
[12:04:37] <nxf> noobee: Not sure about webpack. I just include my route provider's JS file in the HTML. I am using UI Router. It has a lot of advantages over ngRoute.
[12:04:44] *** cpciv has quit IRC
[12:04:48] *** jacuqesdancona_ has quit IRC
[12:04:49] *** aesinv`w has quit IRC
[12:04:49] *** aesinv`w_ is now known as aesinv`w
[12:04:56] <firefly_> guys is controllers talking to directives a good practice?
[12:04:59] <nxf> noobee: But you can achieve a "default" page with both of them
[12:05:02] <noobee> ok
[12:05:06] <noobee> the ngroute problem is solved
[12:05:17] *** wa5ted_ has joined #angularjs
[12:05:20] <noobee> but how can i put the template to ng-view now
[12:05:23] *** mehlah_ has joined #angularjs
[12:05:31] *** texinwien_ has quit IRC
[12:05:42] *** euskadi31 has quit IRC
[12:05:42] *** dc_ has quit IRC
[12:05:46] *** wa5ted has quit IRC
[12:05:51] <noobee> so how can i set the route
[12:05:53] <nxf> noobee: Please show some of your code using pastebin or similar
[12:06:04] <noobee> with template that is already installed in the module directive?
[12:06:09] *** AndyFTP has quit IRC
[12:06:09] *** aslate_ has quit IRC
[12:06:12] *** wa5ted_ is now known as wa5ted
[12:06:16] *** mehlah_ has quit IRC
[12:06:23] *** mehlah has joined #angularjs
[12:06:23] *** firefly_ has quit IRC
[12:06:36] *** daslicht has quit IRC
[12:06:37] *** mattwynne has quit IRC
[12:06:37] *** OddDuck has quit IRC
[12:06:38] *** bengillies has quit IRC
[12:06:45] *** InezK_away is now known as InezK
[12:07:06] *** bengillies has joined #angularjs
[12:07:11] *** dbouwman has quit IRC
[12:07:16] *** lordkryss has quit IRC
[12:07:17] *** JosephSilber has quit IRC
[12:07:35] *** aviraldg has quit IRC
[12:07:38] *** kalusn has joined #angularjs
[12:08:05] *** moritzs has joined #angularjs
[12:08:16] <nxf> noobee: can't harm
[12:08:17] *** Vinnyceptr has quit IRC
[12:09:56] *** Zaran has quit IRC
[12:10:03] *** nanashiRei has quit IRC
[12:10:03] <tangorri> $sceProvider.enable(false); crash my app's bootstrap ... anyone ?
[12:10:13] *** tacajushi has quit IRC
[12:10:18] *** Tuxity has quit IRC
[12:10:19] *** jdj_dk has quit IRC
[12:10:26] <noobee> https://gist.github.com/beeant/ca97adaa7dde2f330ed4
[12:10:29] <noobee> this one please
[12:10:39] *** D-Boy has quit IRC
[12:11:00] <tangorri> noobee : nice code ...
[12:11:08] *** theahindle has quit IRC
[12:11:09] *** jdj_dk has joined #angularjs
[12:11:16] <noobee> and i have single <ng-view></ng-view> in the html
[12:11:17] <noobee> really?
[12:11:18] <noobee> thanks
[12:11:27] <noobee> but the code doesnt work
[12:11:34] *** DevAntoine has quit IRC
[12:11:36] <noobee> it doesnt print anything on my page
[12:11:58] *** Vinnyceptr has joined #angularjs
[12:12:09] <noobee> why is this, something doesnt trigger it?
[12:12:12] *** benjamingr has joined #angularjs
[12:12:19] *** cpciv has joined #angularjs
[12:12:22] *** josh-k has joined #angularjs
[12:12:32] <tangorri> noobee : set templateUrl on / state
[12:12:59] <noobee> i dont have template url
[12:13:02] <noobee> only template
[12:13:05] <noobee> because im using jade
[12:13:17] <tangorri> what is supposed to load ng-view then ?
[12:13:18] *** Tuxity has joined #angularjs
[12:13:19] <noobee> it will make the template to be js string
[12:13:21] *** theahindle has joined #angularjs
[12:13:28] <noobee> the template inside js string
[12:13:38] <nxf> noobee: I am not sure but shouldn't the .config be on "app.building" module, does "app" module know about the name "BuildingCtrl" ?
[12:13:49] <tangorri> I don"'t think you can load js in a view
[12:13:51] *** josh-k has quit IRC
[12:14:02] *** Zaran has joined #angularjs
[12:14:02] *** Zaran has joined #angularjs
[12:14:40] *** moritzs has quit IRC
[12:14:43] *** nanashiRei has joined #angularjs
[12:14:44] <noobee> .config be on app.building?
[12:14:54] *** amedia has joined #angularjs
[12:15:17] <nxf> noobee: Just an idea. I'm new to this too. I specify all my routes on the modules that provide the controllers and it works for me. But not sure whether that is the problem or something else.
[12:15:21] *** krad has joined #angularjs
[12:15:22] *** krad has joined #angularjs
[12:15:56] <noobee> i tried to move the config to app.building module
[12:15:59] *** josh-k_ has joined #angularjs
[12:15:59] <noobee> and still doesnt work
[12:16:03] *** amedia has quit IRC
[12:16:11] <nxf> noobee: Ok, sorry, it was just a thought
[12:16:24] <noobee> so it needs templateUrl no matter what?
[12:16:30] *** InezK is now known as InezK_away
[12:16:32] <noobee> what if its a js string
[12:16:36] <noobee> can it be just template?
[12:16:38] *** Milanito has quit IRC
[12:16:41] *** arek_at_work has joined #angularjs
[12:16:45] <noobee> or use the template definition in directive?
[12:16:56] *** arizzo has joined #angularjs
[12:17:02] *** amedia has joined #angularjs
[12:17:08] <tangorri> noobee : ng-view load html content ...
[12:17:23] *** josh-k_ has quit IRC
[12:17:36] <tangorri> test first removing jade, directive etc
[12:17:43] *** sMitchell has joined #angularjs
[12:17:49] *** ably has quit IRC
[12:17:56] *** josh-k_ has joined #angularjs
[12:18:04] <tangorri> I would put jade compiling in a grunt workflow anyway
[12:18:18] <noobee> im too lazy to write html anymore >.<
[12:18:26] <nxf> noobee: I agree with tangorri, try to simplify it, put the template as a string directly into the route config
[12:18:31] *** sMitchell has quit IRC
[12:18:37] <tangorri> noobee : compile it with anytools then use the output html
[12:18:39] <nxf> noobee: then debug from there if that works
[12:18:49] <tangorri> if it works do the grunt task to auto it
[12:19:31] <tangorri> don't know about jade, too lazy to look at it
[12:19:44] *** joshontheweb has quit IRC
[12:19:48] *** aviraldg has joined #angularjs
[12:20:17] <tangorri> : noobee https://github.com/gruntjs/grunt-contrib-jade
[12:20:30] *** joshontheweb has joined #angularjs
[12:20:42] <noobee> it works if i have templateUrl
[12:21:03] <noobee> why cant I preload those template files into js string
[12:21:04] <tangorri> no templateUrl no loading
[12:21:19] <tangorri> because ng view only load html
[12:21:26] *** jonasrosenlind has quit IRC
[12:21:35] *** arizzo has quit IRC
[12:21:37] *** sigurding has quit IRC
[12:21:41] *** disorder20 has joined #angularjs
[12:21:42] <noobee> js string can be html too
[12:21:46] *** mtsr has quit IRC
[12:22:04] *** beckyconning__ has quit IRC
[12:22:14] <tangorri> js string differs from js
[12:22:21] *** josh-k_ has quit IRC
[12:22:22] *** arizzo has joined #angularjs
[12:22:49] <tangorri> noobee : use the good way : compile .jade to html, then load .html that's all
[12:22:49] *** D-Boy has joined #angularjs
[12:22:53] *** kcccccc has quit IRC
[12:24:38] *** tommmied has quit IRC
[12:25:21] *** bkuberek has joined #angularjs
[12:25:34] *** zwacky has quit IRC
[12:26:51] *** mennea has joined #angularjs
[12:26:51] *** arizzo has quit IRC
[12:27:11] *** Joulse has quit IRC
[12:29:35] *** k-dawg has joined #angularjs
[12:29:40] <noobee> but im using webpack
[12:29:50] *** bkuberek has quit IRC
[12:29:54] *** Sommr has joined #angularjs
[12:30:02] *** sk87 has quit IRC
[12:30:12] *** HardFu has joined #angularjs
[12:30:12] *** HardFu has joined #angularjs
[12:30:16] <nxf> I just looked at Jade. Would you guys recommend it for all Angular applications?
[12:30:52] *** fixl has joined #angularjs
[12:32:20] *** phuh has quit IRC
[12:32:45] *** phuh has joined #angularjs
[12:32:57] *** balboah has joined #angularjs
[12:33:45] *** motionman has quit IRC
[12:33:52] *** HelperW has quit IRC
[12:34:01] *** Left_Turn has joined #angularjs
[12:34:22] *** bsmithgall has joined #angularjs
[12:34:26] *** kalusn has quit IRC
[12:35:49] *** jstroem has quit IRC
[12:36:02] <Khruu> Once watched that syntax, doesnt get why should use it
[12:36:24] *** mennea has quit IRC
[12:36:37] *** jstroem has joined #angularjs
[12:37:01] *** juampy has joined #angularjs
[12:37:05] *** arizzo has joined #angularjs
[12:37:07] *** mennea has joined #angularjs
[12:37:43] *** earthquake has joined #angularjs
[12:38:47] *** Efrem has quit IRC
[12:38:56] *** zwacky has joined #angularjs
[12:39:00] *** bsmithgall has quit IRC
[12:40:04] *** disorder20 has quit IRC
[12:40:46] *** jstroem has quit IRC
[12:41:18] *** arizzo has quit IRC
[12:41:30] *** Deseaus has joined #angularjs
[12:44:14] *** fbenoit has joined #angularjs
[12:44:17] *** Serdar has quit IRC
[12:45:57] *** ant____ has joined #angularjs
[12:47:50] *** danielpquinn has joined #angularjs
[12:48:31] *** Alina-malina has quit IRC
[12:48:59] *** arizzo has joined #angularjs
[12:49:46] *** Alina-malina has joined #angularjs
[12:49:54] <noobee> oh
[12:49:57] <noobee> it works
[12:50:04] <noobee> with template: 'js string'
[12:50:11] <noobee> it doesnt have to be templateUrl
[12:50:14] <noobee> can be template only
[12:50:23] *** fold has quit IRC
[12:50:30] <noobee> angularjs is confusing
[12:50:34] <noobee> i hope its worth it
[12:50:54] *** Schtive has joined #angularjs
[12:51:03] *** lite_ has quit IRC
[12:52:05] <nxf> noobee: I'd still consider using UI Router instead of ngRoute. When I started with Angular a short while ago I quickly switched to that routing engine, because it appears more popular and mature. And I am really coming to like its nested views and stuff.
[12:52:47] *** danielpquinn has quit IRC
[12:52:50] <nxf> noobee: Sorry if you feel that was off-topic, just my two cents, I realize it doesn't solve your problem directly.
[12:53:15] *** sdouglas has joined #angularjs
[12:53:16] *** arizzo has quit IRC
[12:53:25] <Zerot> both are popular and mature, but both solve the routing problem in a different way. where ngRoute is just simple matching url's to routes, ui-router works with states
[12:53:44] <Zerot> if simple matching of urls is enough, then there is no reason to prefer ui-router over ngRoute
[12:53:57] *** th2389_ has quit IRC
[12:54:02] <Zerot> (that said, for a lot of webapps that is not enough :))
[12:54:03] *** fedenunez1 has joined #angularjs
[12:54:53] *** aviraldg has quit IRC
[12:55:03] *** remysharp has quit IRC
[12:55:25] *** jlyndon_ has quit IRC
[12:55:25] *** machty has quit IRC
[12:55:40] *** th2389_ has joined #angularjs
[12:55:46] *** ant____ has quit IRC
[12:55:49] *** TyrfingMjolnir has quit IRC
[12:56:38] *** jonasrosenlind has joined #angularjs
[12:56:44] *** fedenunez has quit IRC
[12:56:47] *** remysharp has joined #angularjs
[12:57:05] *** tarnus has joined #angularjs
[12:57:05] *** jlyndon_ has joined #angularjs
[12:57:38] *** sdouglas has quit IRC
[12:57:56] *** ustunozgur has joined #angularjs
[12:58:42] *** machty has joined #angularjs
[12:59:06] *** Aartsie has quit IRC
[12:59:20] *** Aartsie has joined #angularjs
[13:00:18] *** hugofirth has joined #angularjs
[13:00:52] *** bryte has joined #angularjs
[13:01:23] *** cityspirit has joined #angularjs
[13:01:27] *** tarnus has quit IRC
[13:03:42] *** moritzs has joined #angularjs
[13:03:44] *** lite_ has joined #angularjs
[13:04:20] *** CodeFriar has joined #angularjs
[13:04:28] *** Kallb123 has joined #angularjs
[13:06:32] *** mguillec_ is now known as mguillech
[13:06:32] *** mguillech has joined #angularjs
[13:06:35] *** lordkryss_ is now known as lordkryss
[13:06:40] *** DoubleAW has quit IRC
[13:06:41] *** bengillies has quit IRC
[13:06:57] *** maverick007 has joined #angularjs
[13:07:07] *** DoubleAW has joined #angularjs
[13:07:19] *** disorder20 has joined #angularjs
[13:07:24] *** InezK_away is now known as InezK
[13:07:47] *** juampy has quit IRC
[13:07:55] *** krnflake has quit IRC
[13:08:01] *** the_fog has joined #angularjs
[13:09:04] *** aviraldg has joined #angularjs
[13:09:47] *** xmmp has quit IRC
[13:10:16] *** krnflake has joined #angularjs
[13:10:51] *** gunn has quit IRC
[13:11:13] *** sigurding has joined #angularjs
[13:11:38] *** wartdev has joined #angularjs
[13:11:46] *** fedenunez1 has quit IRC
[13:12:03] *** dve has quit IRC
[13:12:46] *** disorder20 has quit IRC
[13:12:52] *** tfennelly has quit IRC
[13:13:09] *** evilaliv3 has joined #angularjs
[13:13:36] <Kallb123> Just wondering if anyone could take a glance at something I'm doing: http://pastebin.com/2kAzcgZZ . It works, but something just doesn't feel right about passing timeout and Data through and through, is that an ok thing to do?
[13:15:02] *** slainer68 has quit IRC
[13:15:02] *** jonasrosenlind has quit IRC
[13:15:16] *** jonasrosenlind has joined #angularjs
[13:15:24] *** shorne has joined #angularjs
[13:16:00] *** bryte has quit IRC
[13:16:58] *** Mahonar has quit IRC
[13:17:12] *** InezK is now known as InezK_away
[13:18:32] *** arizzo has joined #angularjs
[13:18:35] *** disorder20 has joined #angularjs
[13:18:58] *** teeray has joined #angularjs
[13:19:41] <Zerot> Kallb123: put that in a service. Then you have access to $timeout throughout the service
[13:20:14] <teeray> 'mornin angular
[13:20:28] <Kallb123> oh, so the function are defined inside the service?
[13:20:41] *** dbouwman has joined #angularjs
[13:21:01] *** kirfu has joined #angularjs
[13:21:13] <elxa> Kallb123: why the extra function in $timeout? I would just use checkFeed directly.
[13:21:16] *** Grokling_ has quit IRC
[13:21:27] *** Joulse has joined #angularjs
[13:21:35] *** balboah has quit IRC
[13:21:47] <Kallb123> timeout(checkFeed)?
[13:21:53] *** FunnyLookinHat has joined #angularjs
[13:22:25] <elxa> Kallb123: as Zerot said put fetch/checkFeed in a service (or maybe a controller, depends on what you want to do)
[13:22:29] <Kallb123> timeout(checkFeed(f, Data, timeout))? Going to mess around with it as a service
[13:22:39] *** Sebastien-L has quit IRC
[13:22:46] *** arizzo has quit IRC
[13:22:48] *** kalusn has joined #angularjs
[13:22:48] *** tommmied has joined #angularjs
[13:22:53] <Kallb123> thanks for the guidance, I'll try a service now :)
[13:23:16] *** ngoyal has joined #angularjs
[13:23:32] *** teeray has quit IRC
[13:23:50] <Zerot> Kallb123: also, why do you have those timeouts?
[13:23:53] *** teeray has joined #angularjs
[13:24:05] <elxa> Kallb123: yes, if you inject $timeout in the service or controller you can just use $timeout(checkFeed(f, Data, timeout), 5000);
[13:24:16] *** moritzs has quit IRC
[13:24:51] <Kallb123> Zerot, wanting to do it recursively every X seconds.
[13:25:00] <Zerot> for stuff that needs to be done in an interval, use $interval
[13:25:34] <Kallb123> elxa, I've injected it into the controller that first calls fetch()
[13:25:47] *** xmmp has joined #angularjs
[13:26:03] *** krnflake has quit IRC
[13:26:07] *** bkuberek has joined #angularjs
[13:26:16] *** Schtive has quit IRC
[13:26:29] *** Deseaus has quit IRC
[13:26:48] <Kallb123> Zerot, I know about intervals, but I kind of want it to be X seconds from the finishing of the function, I don't want them to overlap if a feed takes a long time to fetch or parse
[13:27:02] *** foo-bar- has joined #angularjs
[13:27:08] *** mtsr has joined #angularjs
[13:27:09] *** fold has joined #angularjs
[13:27:17] <elxa> Kallb123: I guess it's better to put everything in controllers/services/modules from a testing perspective instead of using global functions ;)
[13:27:42] *** ngoyal has quit IRC
[13:27:43] *** jpstone has quit IRC
[13:28:18] *** krnflake has joined #angularjs
[13:28:33] <Kallb123> elxa, sure thing, I'll build a service now. I'm only just starting angular development so trying to get out of old habits
[13:28:51] *** foo-bar- has quit IRC
[13:28:53] *** foo-bar-_ has joined #angularjs
[13:28:58] *** arizzo has joined #angularjs
[13:29:15] <elxa> Kallb123: cool, I started a few weeks ago ;)
[13:29:31] *** bmcgee has joined #angularjs
[13:29:48] <Kallb123> elxa, ah cool, hope it's going well for you :)
[13:30:12] *** arussel has left #angularjs
[13:30:16] *** bkuberek has quit IRC
[13:30:28] *** bsmithgall has joined #angularjs
[13:31:32] *** jstroem has joined #angularjs
[13:31:38] *** euskadi31_ has quit IRC
[13:31:42] *** sheperson has joined #angularjs
[13:32:21] *** phuh has quit IRC
[13:32:46] *** phuh has joined #angularjs
[13:32:48] *** intellix has quit IRC
[13:33:16] *** arizzo has quit IRC
[13:33:18] *** foo-bar-_ has quit IRC
[13:33:26] *** marcospgp_ has joined #angularjs
[13:33:48] <elxa> Kallb123: yes, check out http://ionicframework.com/ to develop angular mobile apps :)
[13:33:52] <marcospgp_> how can I implement API authentication for an angular SPA, possibly using passport?
[13:34:12] *** one_zero has quit IRC
[13:34:18] *** nkn has quit IRC
[13:34:20] *** Seich has quit IRC
[13:34:34] *** orion1111 has quit IRC
[13:34:36] <storkme> marcospgp_: http://www.frederiknakstad.com/2014/02/09/ui-router-in-angular-client-side-auth/ this helped me a lot.
[13:34:48] *** tfennelly has joined #angularjs
[13:35:06] *** rchavik has quit IRC
[13:35:30] *** tomzx`afk is now known as tomzx
[13:35:57] <marcospgp_> storkme, ty
[13:36:28] <storkme> if you have any more specific questions I can try to help out
[13:36:40] *** TyrfingMjolnir has joined #angularjs
[13:36:43] *** Joulse has quit IRC
[13:37:02] *** conner_ has joined #angularjs
[13:37:23] *** TorchDragon has joined #angularjs
[13:38:35] *** bengillies has joined #angularjs
[13:39:05] *** Cavallari has joined #angularjs
[13:39:23] *** arizzo has joined #angularjs
[13:39:43] <marcospgp_> storkme, thank you :) well I have a working app where you can login, but it's mostly server side and the pages are rendered by the server. I wanted to turn that into an SPA and do the whole authentication process via http calls, but i'm not sure how to do that. probably not using sessions
[13:40:18] *** lite_ has quit IRC
[13:41:33] *** conner_ has quit IRC
[13:41:56] *** Mahonar has joined #angularjs
[13:42:00] *** TorchDragon has quit IRC
[13:42:47] *** titanomachy has joined #angularjs
[13:43:41] *** fedenunez has joined #angularjs
[13:43:42] *** balboah has joined #angularjs
[13:43:42] *** Deseaus has joined #angularjs
[13:43:46] *** arizzo has quit IRC
[13:43:51] *** Seich has joined #angularjs
[13:44:09] *** tres_ has quit IRC
[13:44:40] *** quantax- has joined #angularjs
[13:44:55] *** elxa has quit IRC
[13:46:04] *** elxa has joined #angularjs
[13:46:24] *** mogaj has quit IRC
[13:46:43] *** Sommr has quit IRC
[13:47:24] *** michaelm has joined #angularjs
[13:47:28] <michaelm> hi
[13:47:46] *** Serdar has joined #angularjs
[13:48:25] <maverick007> hi
[13:48:29] *** hswolff has joined #angularjs
[13:48:35] *** danielpquinn has joined #angularjs
[13:49:11] <storkme> marcospgp_: I went with oauth 2.0-style password authentication
[13:49:40] *** CodeFriar has quit IRC
[13:49:45] <storkme> (POST username+password to /register, get back a <token>, send the <token> with every request (as the 'Authorization' http header)
[13:49:53] <storkme> ) oh god mismatched brackets
[13:50:03] <marcospgp_> hm and when does the token get replaced?
[13:50:12] *** balboah has quit IRC
[13:50:17] <Mattias> When using ng-if, can I get the elements attributes somehow?
[13:50:27] <Mattias> the element ng-if is on that is
[13:50:29] *** lsiv568 has joined #angularjs
[13:50:40] <marcospgp_> storkme, and could I also do that using facebook login for example? how?
[13:50:55] *** bejames has quit IRC
[13:51:31] <Mattias> nvm, figured it out
[13:52:20] <storkme> I have no idea :)
[13:52:26] *** SAPAN has joined #angularjs
[13:52:32] *** Joulse has joined #angularjs
[13:53:12] *** danielpquinn has quit IRC
[13:53:23] <marcospgp_> storkme, aha I'm very close to just going ahead and doing it in chunks of code and gluing them together
[13:53:34] *** arizzo has joined #angularjs
[13:56:11] *** evilaliv3 has quit IRC
[13:57:46] *** arizzo has quit IRC
[13:58:23] *** kirfu has quit IRC
[13:58:33] *** Grokling_ has joined #angularjs
[13:59:05] *** intellix has joined #angularjs
[13:59:06] *** ajk27 has quit IRC
[13:59:09] *** drej has joined #angularjs
[13:59:41] *** Nizumzen has quit IRC
[13:59:54] *** ajk27 has joined #angularjs
[14:00:45] *** tarnus has joined #angularjs
[14:01:02] *** Grokling_ has quit IRC
[14:01:40] *** apetro_ has joined #angularjs
[14:02:04] *** Sgeo has quit IRC
[14:02:19] *** dutis has quit IRC
[14:02:47] *** justinobney has joined #angularjs
[14:02:53] *** krnflake has quit IRC
[14:02:59] *** teeray has quit IRC
[14:03:28] *** jstroem has quit IRC
[14:04:09] *** arizzo has joined #angularjs
[14:04:24] *** kroogs has quit IRC
[14:05:22] *** krnflake has joined #angularjs
[14:05:29] *** xmmp has quit IRC
[14:06:59] *** evilaliv3 has joined #angularjs
[14:07:11] *** justinobney has quit IRC
[14:08:16] *** arizzo has quit IRC
[14:08:17] *** InezK_away is now known as InezK
[14:08:20] *** dutis has joined #angularjs
[14:08:45] *** eperez_ has joined #angularjs
[14:09:47] *** nytrm has quit IRC
[14:10:44] *** amedia has quit IRC
[14:11:14] *** ASUChander has joined #angularjs
[14:11:20] *** harvey203 has joined #angularjs
[14:13:32] <Kallb123> Total noob question... service has: "this.fetch = function() {...}" in it, how do I call that from inside the service? just fetch() won't work and this.fetch() won't work :/
[14:14:04] <Kallb123> outside I guess I would call "serviceName.fetch()"
[14:14:30] *** arizzo has joined #angularjs
[14:14:47] <Kallb123> Or should I not be calling one of it's functions from itself anyway? :/
[14:15:04] *** AviMarcus has joined #angularjs
[14:15:24] *** SAPAN has quit IRC
[14:15:28] *** bayousoft has joined #angularjs
[14:16:04] *** dutis has quit IRC
[14:16:28] *** hswolff has quit IRC
[14:16:39] *** hswolff has joined #angularjs
[14:17:03] <Kallb123> changed it from "this.fetch = ..." to "function fetch() {...}" and it works, I suppose I then expose it like: "this.fetch = fetch"
[14:17:03] *** apetro_ has quit IRC
[14:17:39] *** apetro_ has joined #angularjs
[14:17:51] <marcospgp_> Kallb123, first of all no you shouldn't be running a service function from the service initializer
[14:18:18] <marcospgp_> Kallb123, second if you really want to then the way to go is making it a local function and then doing function() as well as this.function = function
[14:18:34] *** xmmp has joined #angularjs
[14:18:55] <Kallb123> I've just done the second thing, why shouldn't I do it in the first place, marcospgp_?
[14:19:07] *** ineedarobot has quit IRC
[14:19:18] *** pkayfire has quit IRC
[14:19:46] *** InezK is now known as InezK_away
[14:19:48] *** mennea has quit IRC
[14:19:57] <marcospgp_> Kallb123, because the point of services' functions is to be called by controllers and other parts of the code, not the services themselves. Yes you can have some initialization code in services, but this shouldn't be calling its own functions
[14:20:16] *** jstroem has joined #angularjs
[14:20:23] *** dutis has joined #angularjs
[14:20:32] <Kallb123> Ok, shouldn't be too hard to shift that over to the controller
[14:20:59] *** jayrobot has quit IRC
[14:21:09] *** rangle has joined #angularjs
[14:21:21] *** cbeacock has joined #angularjs
[14:21:38] *** apetro_ has quit IRC
[14:21:51] *** mzehrer_ has quit IRC
[14:21:51] <marcospgp_> Yep that's what you should be doing. create the function in the service and then call it in the controller
[14:22:06] *** ngoyal has joined #angularjs
[14:22:21] *** mennea has joined #angularjs
[14:22:30] *** jk-5 has quit IRC
[14:22:45] *** sk87 has joined #angularjs
[14:22:46] *** arizzo has quit IRC
[14:23:00] *** slainer68 has joined #angularjs
[14:23:04] <Kallb123> ok, the controller now call the service's function. Is it then ok for the service's function to call one of it's brother functions, marcospgp_? :)
[14:23:45] <Kallb123> Just the service should do it during initialization I'm guessing?
[14:24:54] *** bejames has joined #angularjs
[14:24:59] *** jstroem has quit IRC
[14:26:27] <marcospgp_> hm
[14:26:42] <marcospgp_> not really
[14:27:06] <marcospgp_> maybe in the controller, after you call one of the controller's functions, that function returns some stuff, and you use that stuff to call the second function from the controller
[14:27:09] *** oisinh_ has joined #angularjs
[14:27:12] *** robteix has joined #angularjs
[14:27:14] <marcospgp_> make the controller call the functions, not the service
[14:27:15] *** jstroem has joined #angularjs
[14:27:29] <marcospgp_> or else you're making the service have dependencies (even if it's on itself)
[14:27:49] *** jk-5 has joined #angularjs
[14:27:58] *** pdillinger1 has quit IRC
[14:28:28] *** Deseaus has quit IRC
[14:29:35] *** sneakertack has joined #angularjs
[14:29:41] *** foo-bar- has joined #angularjs
[14:30:17] *** krad has quit IRC
[14:30:18] *** benjamingr has quit IRC
[14:30:59] *** mccarrontr1ck has joined #angularjs
[14:31:28] *** jangoh has joined #angularjs
[14:31:41] <shorne> ate
[14:31:44] *** ineedarobot has joined #angularjs
[14:31:47] *** jstroem has quit IRC
[14:31:57] *** AviMarcus has quit IRC
[14:32:23] *** mennea has quit IRC
[14:32:23] *** phuh has quit IRC
[14:32:26] *** teeray has joined #angularjs
[14:32:29] *** dutis has quit IRC
[14:32:41] *** teeray has quit IRC
[14:32:48] *** phuh has joined #angularjs
[14:33:04] *** storresi has quit IRC
[14:33:20] *** kroogs has joined #angularjs
[14:33:56] *** tomzx is now known as tomzx`afk
[14:34:00] *** J0514H has joined #angularjs
[14:36:18] *** Sebastien-L has joined #angularjs
[14:36:34] *** dutis has joined #angularjs
[14:36:59] *** mennea has joined #angularjs
[14:37:15] *** walden|afk is now known as walden
[14:38:35] *** jk-5 has quit IRC
[14:39:28] *** earthquake has quit IRC
[14:41:00] *** bmac has joined #angularjs
[14:41:08] *** lite_ has joined #angularjs
[14:41:39] *** drej has quit IRC
[14:41:41] *** krawchyk has joined #angularjs
[14:42:34] *** kroogs has quit IRC
[14:42:49] *** marcospgp_ has quit IRC
[14:43:20] *** kreeves has joined #angularjs
[14:43:38] *** SpearThruster has joined #angularjs
[14:43:58] *** OdinIncarnate has quit IRC
[14:44:02] *** nicholaswyoung has joined #angularjs
[14:44:13] *** elrabin has joined #angularjs
[14:44:49] *** evilaliv3 has quit IRC
[14:45:14] <intellix> there many people using Ionic in here? the ionic IRC room is pretty much dead -.-
[14:45:22] *** peldan has quit IRC
[14:45:41] *** daslicht_ has quit IRC
[14:45:41] *** lite_ has quit IRC
[14:45:54] *** peldan has joined #angularjs
[14:45:57] *** daslicht has joined #angularjs
[14:46:37] *** stainless has joined #angularjs
[14:46:45] *** peldan_ has joined #angularjs
[14:47:50] *** jk-5 has joined #angularjs
[14:47:56] *** kalusn has quit IRC
[14:48:03] *** rbs has joined #angularjs
[14:48:03] *** jangoh has quit IRC
[14:48:05] *** krawchyk has quit IRC
[14:48:38] *** the_fog has quit IRC
[14:49:21] *** danielpquinn has joined #angularjs
[14:49:38] *** bayousoft has quit IRC
[14:50:06] *** Vice- is now known as HoloPed
[14:50:16] *** peldan has quit IRC
[14:50:39] *** MuffinMan` has quit IRC
[14:51:39] <jelle___> intellix, true, dead room, but I'm using it :)
[14:51:56] <intellix> the touch events are killing me :P
[14:52:22] <Serdar> kill them first :P
[14:53:36] *** Fide has joined #angularjs
[14:53:39] *** nytrm has joined #angularjs
[14:53:53] *** danielpquinn has quit IRC
[14:55:14] *** jeffszusz has joined #angularjs
[14:55:32] *** Serdar has quit IRC
[14:56:44] *** selva_ has left #angularjs
[14:56:54] *** knownasilya has joined #angularjs
[14:57:12] *** selvait90 has joined #angularjs
[14:58:52] <intellix> they’re a nightmare because they’re doing some magic, stealing the events or something and there’s no documentation regarding it
[14:59:00] *** juanlas has joined #angularjs
[14:59:04] *** sheperson has quit IRC
[14:59:39] *** Fide is now known as Serdar
[15:00:33] *** apetro_ has joined #angularjs
[15:00:41] *** BillCriswell has joined #angularjs
[15:01:03] *** nfroidure_ has quit IRC
[15:01:14] *** danizord has joined #angularjs
[15:01:56] *** sheperson has joined #angularjs
[15:02:01] *** harvey203 has quit IRC
[15:02:30] *** TorchDragon has joined #angularjs
[15:02:32] <intellix> I’m kind of doing something non-angular, but need fine-details so need to attach events and change CSS in my directive. The tap stuff isn’t abstracted… if I use ionic.EventController then I’m tying myself into Ionic aand it seems to have other side-effects.. like I can’t use event.stopPropagation() to stop it going to another scroller -.-
[15:02:41] *** AngularUI has joined #angularjs
[15:02:41] <AngularUI> [bootstrap] thomaswinckell opened pull request #2438: Fix datepicker.js init-date attribute (master...master) http://git.io/s0lDZg
[15:02:41] *** AngularUI has left #angularjs
[15:03:05] *** ch3mical has quit IRC
[15:03:13] *** the_fog has joined #angularjs
[15:03:49] *** therealklanni has joined #angularjs
[15:04:23] *** oddalot has quit IRC
[15:04:40] *** bamyyyooo14335 has joined #angularjs
[15:04:47] *** Mahonar has quit IRC
[15:05:19] *** kalusn has joined #angularjs
[15:05:28] *** ecantin has joined #angularjs
[15:05:33] *** FunnyLookinHat has quit IRC
[15:05:38] *** fedenunez has quit IRC
[15:05:56] *** mfunkie_ has joined #angularjs
[15:06:23] *** _1_Arhaan2 has joined #angularjs
[15:06:29] *** imehesz has joined #angularjs
[15:06:46] *** sheperson has quit IRC
[15:07:34] *** beckyconning__ has joined #angularjs
[15:08:11] *** nytram has joined #angularjs
[15:08:35] *** Schtive has joined #angularjs
[15:08:55] *** fl0ppy has joined #angularjs
[15:09:04] *** brianturgeon has joined #angularjs
[15:09:09] *** jstroem has joined #angularjs
[15:09:10] *** hswolff has quit IRC
[15:09:19] *** evilaliv3 has joined #angularjs
[15:09:30] *** apetro_ has quit IRC
[15:09:45] *** roolo has joined #angularjs
[15:10:00] *** apetro_ has joined #angularjs
[15:10:03] *** _1_Arhaan2 has quit IRC
[15:10:04] *** ccohn has joined #angularjs
[15:10:24] *** bamyyyooo14335 has left #angularjs
[15:10:24] *** nytrm has quit IRC
[15:10:45] *** InezK_away is now known as InezK
[15:10:53] <jeffszusz> i'm using ui-router and I'm getting strange behavior - I have a state that works once, but then if i navigate away and navigate back, the template doesn't display. the controller does activate though.
[15:11:17] *** startupality has joined #angularjs
[15:12:08] *** milka_ has joined #angularjs
[15:12:14] *** darrin has joined #angularjs
[15:12:23] *** fl0ppy has quit IRC
[15:12:33] *** Fishy__ has quit IRC
[15:12:38] *** mtsr_ has joined #angularjs
[15:12:54] *** Efrem has joined #angularjs
[15:12:56] *** motionman has joined #angularjs
[15:13:01] <chovy> howdy
[15:13:07] *** aviraldg has quit IRC
[15:13:10] *** startupality has left #angularjs
[15:13:15] *** milka has quit IRC
[15:13:39] <sneakertack> jeffszusz: you navigate to another state with a template, and then navigate back?
[15:13:44] *** startupality has joined #angularjs
[15:13:49] *** kcccccc has joined #angularjs
[15:13:56] <sneakertack> jeffszusz: is there any error info in console or anything
[15:14:03] *** apetro_ has quit IRC
[15:14:14] *** fixl has quit IRC
[15:15:04] *** mtsr has quit IRC
[15:15:39] *** edy has joined #angularjs
[15:15:48] <jeffszusz> no errors, sneakertack
[15:16:10] *** MTGap has joined #angularjs
[15:16:20] <jeffszusz> if i switch the controller and template out for others, it has the same behaviour, so it must be something to do with my routing...let me make a gist
[15:16:21] *** Tidwell has joined #angularjs
[15:16:28] *** rangle has quit IRC
[15:17:07] <jeffszusz> https://gist.github.com/jeffszusz/ecca7f1dd375eaedd9c9
[15:17:35] *** livingstn has joined #angularjs
[15:17:37] *** cctom has joined #angularjs
[15:18:10] *** cthrax has joined #angularjs
[15:18:13] *** cboden has joined #angularjs
[15:18:13] *** Snugug has joined #angularjs
[15:18:20] *** rangle has joined #angularjs
[15:19:09] *** FIFOd[a] has joined #angularjs
[15:19:58] *** metasansana has quit IRC
[15:20:01] *** CodeFriar has joined #angularjs
[15:20:28] *** Guest_ has quit IRC
[15:20:32] *** InezK is now known as InezK_away
[15:20:40] *** shinnya has joined #angularjs
[15:22:03] *** anjumkaiser has joined #angularjs
[15:22:13] *** the_fog has quit IRC
[15:22:34] <jeffszusz> sneakertack, I wonder if it has anything to do with the fact that when I first go to the root "group" state, i see the URL flash for the 'logs' state briefly before it settles
[15:22:43] *** bsmithgall has joined #angularjs
[15:22:49] <jeffszusz> every time i click the button that invokes it
[15:23:22] *** maverick007 has quit IRC
[15:23:36] *** jtimon has joined #angularjs
[15:23:41] *** CodeFriar has quit IRC
[15:23:47] <sneakertack> disclaimer: no experience with views in ui-router
[15:23:58] <sneakertack> which states exhibit the broken behaviour? group.* states?
[15:24:14] *** james has joined #angularjs
[15:24:21] *** kcccccc has quit IRC
[15:24:30] <jeffszusz> the only one that is broken is the default, group.config
[15:24:36] <james> how to use multiple $http.get in same controller
[15:24:42] <james> can any one help ?
[15:24:46] *** james is now known as Guest17210
[15:25:15] <jeffszusz> james, create an angular service for each piece of information you want to retrieve from the server
[15:25:23] <jeffszusz> then inject both services into your controller
[15:25:38] <sneakertack> just trying random fixes: anything to do with presence or lack of preceding slash in templateUrl? dose tabs.html have a <ui-view>?
[15:25:46] <sneakertack> does*
[15:25:49] *** aviraldg has joined #angularjs
[15:25:51] <Guest17210> ok so i required to different controller
[15:26:06] <sneakertack> oh shouldnt group state be abstract?
[15:26:26] <Guest17210> actually i am doint it in jsp page
[15:26:38] <Guest17210> i integrate angularjs with spring mvc
[15:26:44] <jeffszusz> sneakertack, tabs.html shows up fine, it's group.html that dissappears
[15:26:57] <jeffszusz> I had abstract: true before, but it screwed something up... let me try
[15:26:58] *** bsmithgall has quit IRC
[15:27:05] *** teslanick has joined #angularjs
[15:27:09] <sneakertack> ok so i guess what is happening is that you are expecting the state to go to group.config by default but its not, its just staying on goup, and its probably intended
[15:27:14] *** elux has joined #angularjs
[15:27:20] *** Guest_ has joined #angularjs
[15:27:32] *** bmcgee has quit IRC
[15:27:35] <jeffszusz> ok so with abstract: true, it can't transition to group
[15:27:43] *** bkuberek has joined #angularjs
[15:27:45] *** motionman has quit IRC
[15:27:52] <jeffszusz> so i can't use group/id as a url
[15:28:00] <Mattias> I have a form inside of a directive, and I want to run the validation in another place, another controller. How can I give access to the controller to fully see the scope variable in the directive?
[15:28:13] *** darrin has quit IRC
[15:28:28] <Guest17210> jeffszusz can i have your email id
[15:28:30] <Guest17210> ?
[15:28:36] <Guest17210> i want some help
[15:29:34] *** Aartsie has quit IRC
[15:29:49] *** maurycyg has quit IRC
[15:29:56] *** darrin has joined #angularjs
[15:30:22] *** CodeFriar has joined #angularjs
[15:30:27] *** Billy_ has joined #angularjs
[15:30:32] <sneakertack> ok so in your code you want to be able to do like $state.go('group') i guess
[15:30:42] <Billy_> Hello, having a Controller, how is it possible that it is called 3-4 times?
[15:31:07] <sneakertack> what if you just do a line in your 'group' controller that does $state.go('group.config')?
[15:31:16] *** drej has joined #angularjs
[15:31:22] *** Nizumzen has joined #angularjs
[15:31:28] <Guest17210> so one controller have only one post and one get method
[15:31:31] <Guest17210> is it true?
[15:31:32] *** stainless has quit IRC
[15:31:39] <sneakertack> otherwise your app might not know it needs to go to group config
[15:31:55] *** motionman has joined #angularjs
[15:31:55] *** motionman has joined #angularjs
[15:32:02] *** icfantv has joined #angularjs
[15:32:05] *** daslicht has quit IRC
[15:32:19] <jeffszusz> ok sneakertack thanks
[15:32:23] *** bkuberek has quit IRC
[15:32:23] <jeffszusz> wait
[15:32:25] <jeffszusz> but
[15:32:25] *** phuh has quit IRC
[15:32:33] <jeffszusz> it is going to the right state, because groupctrl gets called at all
[15:32:40] <jeffszusz> it's just not displaying the template...
[15:32:47] *** phuh has joined #angularjs
[15:32:50] *** Aartsie_ has joined #angularjs
[15:33:02] *** daslicht has joined #angularjs
[15:33:10] <sneakertack> does tabs.html have a <ui-view>?
[15:33:11] <Mattias> Say I have a variable originating from a directive. How can I have my controller see this variable? The other way around seems simple. This is the form variable which contains validation data.
[15:33:32] <Mattias> This is a separate controller, not the controller attribute in a directive
[15:34:41] <sneakertack> well at least, in non-named-view ui-router behaviour parent states need a <ui-view> that their child states can display in. but im unfamiliar with named-view ui-router
[15:35:58] *** Guest17210 has quit IRC
[15:36:25] *** drej_ has joined #angularjs
[15:36:28] <sneakertack> and disregard what i said about state not knowing to go to group.config, since your controller proves it went there
[15:36:36] *** MuffinMan` has joined #angularjs
[15:36:46] *** jdj_dk has quit IRC
[15:37:03] *** mikehaas763 has joined #angularjs
[15:37:57] *** yoshokatana has joined #angularjs
[15:38:07] *** maurycyg has joined #angularjs
[15:38:11] <jeffszusz> sneakertack, yeah tabs.html has a ui-view called "tabs"
[15:38:16] *** jpinnix_____ has joined #angularjs
[15:38:17] *** Shadda has quit IRC
[15:38:29] *** drej has quit IRC
[15:38:42] *** mdedetrich has joined #angularjs
[15:38:48] *** FunnyLookinHat has joined #angularjs
[15:39:16] *** Limarson has joined #angularjs
[15:39:22] *** jpinnix_____ is now known as jpinnix
[15:39:25] *** bayousoft has joined #angularjs
[15:39:42] *** sesrgeyb has joined #angularjs
[15:40:02] *** sesrgeyb has quit IRC
[15:40:19] *** sergeyb has joined #angularjs
[15:40:24] *** ineedarobot has quit IRC
[15:40:29] *** rangle has quit IRC
[15:41:17] <jpinnix> Is there an alternative to https://github.com/angular/angularjs-batarang for AngularJS debugging in Chrome? It seems to be broken now and hasn't been updated in a year.
[15:41:38] <oniijin> ng-inspector
[15:41:38] *** ehynds has joined #angularjs
[15:41:46] *** drej_ is now known as drej
[15:41:51] *** jbourassa has joined #angularjs
[15:41:52] *** drej has quit IRC
[15:41:52] *** drej has joined #angularjs
[15:41:53] *** corban has joined #angularjs
[15:42:19] *** FNK has joined #angularjs
[15:43:59] <jeffszusz> thanks for the help sneakertack - it looks like putting abstract state and then expecting it to redirect to a child is not supported, and several folks have discussed it
[15:44:07] *** CodeFriar has quit IRC
[15:44:11] <jeffszusz> I'll have to use group.config explicitly
[15:44:18] <jpinnix> @oniijin: Thanks! That's perfect
[15:44:20] <jeffszusz> though I can inherit the default URL so that works ok
[15:44:26] <oniijin> yup
[15:44:40] *** Joulse has quit IRC
[15:44:46] *** easy has joined #angularjs
[15:46:13] *** apetro_ has joined #angularjs
[15:46:21] *** Joulse has joined #angularjs
[15:47:08] *** ineedarobot has joined #angularjs
[15:48:22] *** marcospgp has joined #angularjs
[15:48:26] *** CodeFriar has joined #angularjs
[15:48:30] <sneakertack> jeffszusz: yep ok, sorry i wasnt able to help more
[15:48:39] <marcospgp> hey guys, i need help
[15:48:48] <Kallb123> marcospgp, hey I was just looking to see if you were here :P
[15:49:02] <marcospgp> aha why?
[15:49:04] *** Shadda has joined #angularjs
[15:49:31] *** eperez_ has quit IRC
[15:49:32] *** CodeFriar has quit IRC
[15:49:41] <marcospgp> how can I make the code from this tutorial series work through http requests (ajax, spa-like) instead of exclusively server-side=
[15:49:42] <marcospgp> ?
[15:49:57] <marcospgp> tutorial is this http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local
[15:50:00] *** danielpquinn has joined #angularjs
[15:50:13] <Kallb123> I cannot think of how to pull dependency out of the service. I have everything working, but I want to try and stick to best practices and get the controller to call the service's functions :/
[15:50:23] *** wartdev has quit IRC
[15:50:41] *** shackleford has joined #angularjs
[15:50:46] <sneakertack> jeffszusz: if you make ui-view "tabs at group dot config" instead does it make it better?
[15:51:18] <marcospgp> can you show me some code?
[15:51:18] *** shackleford has quit IRC
[15:51:23] *** shacklef_ has joined #angularjs
[15:51:29] <sneakertack> no no wait, i think i misunderstood their docs
[15:51:32] <Kallb123> ye, just making pastebin
[15:51:51] *** orion1111 has joined #angularjs
[15:51:56] *** davidstump has joined #angularjs
[15:52:36] <Kallb123> http://pastebin.com/8BANW7Cb , So I call fetch from the controller, but I'm not sure how to then call checkFeed once it has finished
[15:52:40] *** jshultz has joined #angularjs
[15:52:42] *** hugofirth has quit IRC
[15:53:45] <Kallb123> it's feedpointer being async that's causing me trouble. If it wasn't I'd return true/false then I'd know whether to run checkFeed
[15:54:18] *** danielpquinn has quit IRC
[15:54:18] *** chrisbirk has joined #angularjs
[15:54:49] *** cboden has quit IRC
[15:54:50] *** lewdev has quit IRC
[15:55:10] *** hswolff has joined #angularjs
[15:56:01] <marcospgp> use a callback
[15:56:05] *** mac_ified has joined #angularjs
[15:56:30] <marcospgp> make the function fetch like this: function fetch(feed, callback)
[15:56:30] <Zerot> use promises
[15:56:36] <Zerot> don't use a callback
[15:56:36] <Kallb123> ok, I'll have a try
[15:56:42] <marcospgp> oor promises. i'm not sure how those work yet
[15:56:46] <jaawerth_> yeah, promises > callbacks woooo
[15:56:51] <Kallb123> I'm not sure about promises either
[15:56:52] *** Aartsie_ has quit IRC
[15:57:06] *** nihi|ist has joined #angularjs
[15:57:20] <marcospgp> maybe someone can explain how to use promises in this context?
[15:57:26] *** Aartsie has joined #angularjs
[15:57:41] <Zerot> have your fetch function return a promise that is resolved when it finishes. then in your controller you can do bla.fetch().then(onsuccessfunctionhere)
[15:58:03] *** Destos has joined #angularjs
[15:58:07] *** anjumkaiser has quit IRC
[15:58:11] *** chrisbirk has quit IRC
[15:58:24] *** Fishy__ has joined #angularjs
[15:58:36] *** arizzo has joined #angularjs
[15:58:50] <Kallb123> right, that makes sense, I'll give it shot
[15:58:56] *** chrisbirk has joined #angularjs
[15:58:59] *** Bade has joined #angularjs
[15:59:05] <Zerot> Kallb123: if i'm understanding you are saying correctly, then stop
[15:59:06] <jaawerth_> check out the documentation for $q as well, it should help
[15:59:20] <Kallb123> stop?
[15:59:21] *** LossFor has joined #angularjs
[15:59:29] <Zerot> Kallb123: you don't have to pull the call to checkfeed to the controller
[15:59:34] <Zerot> it can stay in the service
[15:59:36] *** eperez has joined #angularjs
[15:59:39] *** the_fog has joined #angularjs
[15:59:40] *** Serdar has quit IRC
[15:59:43] *** acconrad has quit IRC
[15:59:45] <Kallb123> haha, how come?
[15:59:47] <Zerot> checkfeed doesn't even need to be exposed in the service
[15:59:59] <Zerot> there is no need for it to be in the controller
[16:00:17] *** CodeFriar has joined #angularjs
[16:00:24] <Zerot> it doesn't make a lot of sense to have that control flow outside of the service
[16:00:26] <Kallb123> ok, I know it doesn't need to be exposed atm, but I exposed it just for if I tried to do these changes
[16:00:30] *** slainer6_ has joined #angularjs
[16:00:43] *** tpyo has joined #angularjs
[16:00:58] <Kallb123> right, well that's fine by me. I was kind of looking forward to messing with promises, but this works
[16:01:24] *** tomzx`afk is now known as tomzx
[16:01:26] <Zerot> well, promises might still be beneficial here
[16:01:54] *** badon_ has joined #angularjs
[16:02:00] <Zerot> if you want to know in the controller when fetch is finished
[16:02:01] *** Aartsie has quit IRC
[16:02:04] *** anjumkaiser has joined #angularjs
[16:02:05] *** bengillies has quit IRC
[16:02:08] <Zerot> (which you most likely do want to know)
[16:02:16] *** mmitchell has joined #angularjs
[16:02:30] *** lewdev has joined #angularjs
[16:02:34] <Kallb123> I don't think the controller needs to know, because the factory is updated and everything gets updated from that
[16:02:58] *** slainer68 has quit IRC
[16:03:11] *** bengillies has joined #angularjs
[16:03:41] *** badon has quit IRC
[16:03:48] <jeffszusz> sneakertack, what'd you misunderstand?
[16:04:04] *** cthrax_ has joined #angularjs
[16:04:05] *** aviraldg has quit IRC
[16:04:12] <jaawerth_> Kallb123: how are you handling failure states and such for the fetch?
[16:04:35] *** Fishy__ is now known as Fishy_
[16:04:37] <marcospgp> on faith
[16:04:40] <marcospgp> :D
[16:04:46] *** Ch4rAss has quit IRC
[16:04:56] *** jaequery has joined #angularjs
[16:05:02] *** Fishy_ is now known as Fishy
[16:05:03] *** badon_ is now known as badon
[16:05:07] <marcospgp> a good coder always handles failure states
[16:05:12] <marcospgp> a great coder can assume success
[16:05:13] <marcospgp> :D
[16:05:24] <jaawerth_> anything async in javascript pretty much needs to use callbacks, events, or promises. Promises are the most elegant from a programmer perspective because it allows you to do things like function chaining and you don't have to nest callbacks within callbacks within callbacks for your various states
[16:05:47] <Kallb123> atm, if GFeeds can't fetch it, console.error to let me know and then don't call checkFeed (since the feed didn't work). I may make it fetch the feed again after some time to see if it works
[16:06:20] *** foo-bar- has quit IRC
[16:06:23] *** bbankes has joined #angularjs
[16:06:28] *** mrded has joined #angularjs
[16:06:46] *** cthrax has quit IRC
[16:07:13] *** MuffinMan` has quit IRC
[16:07:33] <Kallb123> marcospgp, I like your good coder great coder thing :D
[16:07:40] *** jdj_dk has joined #angularjs
[16:07:53] <jaawerth_> basically you can do promise.then(function(result) { do stuff }); promise.catch(function(err) { do stuff }) and then in your async call you can have it resolve (triggering 'then') or reject (triggering 'catch') - basically it gives you both the benefits of callbacks and try/catch with one stone
[16:07:55] <marcospgp> Kallb123, just don't rely on it :)
[16:08:06] *** samhermes has joined #angularjs
[16:08:23] <marcospgp> jaawerth, what's up with that "then" function? is it included in angular?
[16:08:37] *** DigitallyBorn has joined #angularjs
[16:08:40] <apipkin> (continued from yesterday) I was hoping to get some insight on the use of `Controller as` and it’s term in AngularJs. Is it still considered “experimental” or is it well integrated and going no where?
[16:08:43] *** Milanito has joined #angularjs
[16:08:47] <marcospgp> my brain just froze...
[16:08:47] *** }SoMBrA{ has joined #angularjs
[16:08:52] *** cboden has joined #angularjs
[16:08:57] <}SoMBrA{> hello people
[16:09:00] <Kallb123> then is a function on the promise object isn't it?
[16:09:06] <jaawerth_> yep
[16:09:10] <marcospgp> you return an object with a then function?
[16:09:16] *** Click66___ has quit IRC
[16:09:16] <apipkin> Mainly curious because few (if any) of the angular docs talk about `Controller as`
[16:09:22] <Kallb123> you return a Promise
[16:09:27] <jaawerth_> marcospgp: https://docs.angularjs.org/api/ng/service/$q
[16:09:33] <marcospgp> yep that messed with my head aha. normally in jquery you would call functions from other places on returned objects
[16:09:36] *** encryptd_fractl has quit IRC
[16:09:37] <marcospgp> which were probably in the objects
[16:10:02] <marcospgp> my whole life is a lie
[16:10:03] *** ngoyal has quit IRC
[16:10:13] <Kallb123> lol :P
[16:10:15] *** iksik_ has quit IRC
[16:10:17] <}SoMBrA{> I have a question. How can I have a <option> element with a default placeholder? I tried it adding a <option value="" selected disabled> but instead of selecting that option, is selecting the first option rendered by ng-options. Anybody knows why?
[16:10:18] *** ngoyal has joined #angularjs
[16:10:37] *** anjumkaiser has quit IRC
[16:10:58] *** PeterMetz has joined #angularjs
[16:11:14] *** anjumkaiser has joined #angularjs
[16:11:18] <jaawerth_> }SoMBrA{: That can be confusing. Think about it this way: with the regular "selected" attribute, you're just selecting something on the DOM, but with angular it's all data driven. There are a couple of ways of doing this, but one data-driven way is just to set the initial value of the model from your controller
[16:11:28] *** InezK_away is now known as InezK
[16:11:31] *** Sna4x8 has quit IRC
[16:12:05] *** encryptd_fractl has joined #angularjs
[16:12:17] *** jdj_dk has quit IRC
[16:12:36] *** Sna4x8 has joined #angularjs
[16:12:37] *** conner_ has joined #angularjs
[16:13:29] *** DigitallyBorn has quit IRC
[16:13:56] *** fedenunez has joined #angularjs
[16:14:16] *** Guest_ has quit IRC
[16:14:30] *** Siecje has joined #angularjs
[16:14:52] *** Emperor_Earth_ has joined #angularjs
[16:15:11] *** Emperor_Earth has quit IRC
[16:15:13] *** FNK has quit IRC
[16:16:03] *** daslicht has quit IRC
[16:16:03] *** J0514H has quit IRC
[16:16:09] *** mdedetrich has quit IRC
[16:16:11] *** Aartsie has joined #angularjs
[16:16:17] *** iksik has joined #angularjs
[16:17:13] *** the_fog has quit IRC
[16:17:42] *** pkayfire has joined #angularjs
[16:17:56] *** mehlah has quit IRC
[16:18:09] *** aviraldg has joined #angularjs
[16:18:12] *** nerdfiles has joined #angularjs
[16:18:18] *** easy has quit IRC
[16:18:43] *** apetro_ has quit IRC
[16:19:12] *** marc_v92 has joined #angularjs
[16:19:24] *** jbourassa has quit IRC
[16:20:14] *** thomasreggi has joined #angularjs
[16:20:25] <marcospgp> ugh i don't understand passport.js
[16:20:42] <marcospgp> can someone either explain to me the serialization thing and some other sutff,
[16:20:43] <marcospgp> stuff*
[16:20:48] <marcospgp> or point me in the right direction?
[16:20:50] <marc_v92> (Disclaimer: Pretty new to Angular, this may be a dumb question) I’ve got a Controller that does a get() to pull the most recent “Alert” from a database, and it grabs it and puts it on the page without issue. However, when I add another item to the database, the page does not auto-update. Is that not what Angular’s 2-way data binding is supposed to do? Or am I misunderstanding?
[16:21:14] *** jbourassa has joined #angularjs
[16:21:17] *** InezK is now known as InezK_away
[16:21:30] *** mven_ has quit IRC
[16:21:31] <bd> the 2-way binding works between your view (ie html/dom) and your model (a javascript object)
[16:21:36] <bd> not between your model and the database
[16:21:37] *** spaceonline has joined #angularjs
[16:21:51] <bd> you can use a service like firebase if you want 2way binding magic when a database updates
[16:21:54] <marcospgp> yep man, if you want to see updates on the page, there have to be changes on the $scope object
[16:22:03] <marcospgp> I believe
[16:22:09] *** kalusn has quit IRC
[16:22:23] *** gnarMatix has joined #angularjs
[16:22:28] *** eperez has quit IRC
[16:23:44] *** justinobney has joined #angularjs
[16:23:53] *** sdouglas has joined #angularjs
[16:24:10] *** intellix has quit IRC
[16:24:18] *** chrisbirk has quit IRC
[16:24:20] <marcospgp> what is serializatiooon :c why is it used in passport.js
[16:24:39] <marc_v92> bd: I’ve also heard that WebSockets work well for similar situations. Would you recommend Firbase over Websockets? Or is that what Firebase uses?
[16:24:41] <marcospgp> i know this is probably not the right place but the other irc's are deserts. and this is angular's backend so it's somewhat related
[16:24:43] *** daslicht has joined #angularjs
[16:24:58] *** fbenoit has quit IRC
[16:25:18] *** mven_ has joined #angularjs
[16:26:18] <bd> marc_v92: you could use websockets, you'd have to write the code to push out notifications on db updates etc. firebase is a more high level approach, but it's a service and thus tied to their own db
[16:26:42] *** bc has quit IRC
[16:27:07] *** mvovchak has joined #angularjs
[16:27:10] *** DigitallyBorn has joined #angularjs
[16:27:36] <marc_v92> Hmm, unfortunately this is for an internal corporate project, so I think I’ll have to take the WS route.
[16:27:43] <marc_v92> But, it should be a good learning experience! Thanks, bd!
[16:27:51] *** ccohn has quit IRC
[16:28:04] *** sdouglas has quit IRC
[16:28:06] *** mven_ has quit IRC
[16:28:18] *** brianturgeon has quit IRC
[16:28:23] *** ccohn has joined #angularjs
[16:28:41] *** oddalot has joined #angularjs
[16:30:19] *** bc_ has joined #angularjs
[16:30:20] <mvovchak> What would be a nice way of adding left/right directions to my page slide animations (with ui-router). Right now it always slides to the right.
[16:30:26] *** Milanito has quit IRC
[16:30:49] <gnarMatix> marcospgp http://en.wikipedia.org/wiki/Serialization . In JS serialization usually means JSON serialization (encoding objects in JSON) or URL serialization (urlencoding some things http://api.jquery.com/serialize/). Correct me if I'm wrong people.
[16:31:28] *** fbenoit has joined #angularjs
[16:31:44] <marcospgp> gnarMatix, well ty but i think in passport.js serialization has something to do with session cookies
[16:32:08] *** Tomdarkness has joined #angularjs
[16:32:23] *** phuh has quit IRC
[16:32:26] *** amargherio has joined #angularjs
[16:32:48] *** ccohn has quit IRC
[16:33:07] <gnarMatix> marcospgp http://passportjs.org/guide/configure/ it just means they're storing the user object in a cookie
[16:33:18] *** phuh has joined #angularjs
[16:33:25] *** ccohn has joined #angularjs
[16:33:32] <marcospgp> gnarMatix, yea but for what? /:
[16:33:35] *** bejames has quit IRC
[16:33:43] *** J0514H has joined #angularjs
[16:33:55] *** nxf has quit IRC
[16:34:10] <gnarMatix> marcospgp: for continued use in the session?
[16:34:11] *** nerdfiles has quit IRC
[16:34:25] *** samhermes has left #angularjs
[16:34:52] *** Gu_______ has joined #angularjs
[16:35:14] *** mehlah has joined #angularjs
[16:35:22] *** kroogs has joined #angularjs
[16:35:30] <}SoMBrA{> jaawerth_
[16:35:37] <oniijin> sigh...java devs. smh
[16:35:42] <marcospgp> gnarMatix, what do you mean? so you can read the cookie to check for authentication status?
[16:35:53] *** the_fog has joined #angularjs
[16:35:53] <}SoMBrA{> I need to select the first option in the <select> is the model hasn't a value, if any value is set, then set the value
[16:35:59] <marcospgp> gnarMatic, I just don't get the big picture aha
[16:36:05] *** kalusn has joined #angularjs
[16:36:16] <gnarMatix> marcospgp: Sorry, I'm wrong.
[16:36:17] *** bengilli_ has joined #angularjs
[16:37:08] <marcospgp> gnarMatix, well I couldn't tell anyway :p
[16:37:30] *** bengillies has quit IRC
[16:37:42] <Kallb123> Is there a reason why ng-click="update(feed)" works but ng-click="update(feed,{{$index}})" doesn't work? As in, the second one doesn't actually call update()
[16:37:47] *** J0514H has quit IRC
[16:38:01] <gnarMatix> marcospgp: User sends login info to the server. Server authenticates & returns a session ID to the user, which is stored in a cookie. Every time the user makes a request, the session ID accompanies the request, and the session ID is used to retrieve the stored user.
[16:38:46] <marcospgp> gnarMatix, and that is the serialization?
[16:38:58] *** bc_ is now known as bc
[16:39:09] *** Tomdarkness has quit IRC
[16:39:16] <gnarMatix> marcospgp: http://en.wikipedia.org/wiki/Serialization just read that
[16:39:35] *** bsmithgall has joined #angularjs
[16:39:47] <marcospgp> gnarMatix, okay okay
[16:39:58] *** Circlefusion has quit IRC
[16:40:11] *** joshbrw has quit IRC
[16:40:20] *** ustunozgur has quit IRC
[16:40:26] <jaawerth_> Kallb123: Directives are already going to refer to the objects on scope, so they don't know what to do with {{ }} - the brackets are for inserting the scope data into your template
[16:40:37] *** ustunozgur has joined #angularjs
[16:40:38] *** peldan_ has quit IRC
[16:40:39] *** kroogs has quit IRC
[16:41:16] <Kallb123> {{$index}} is from ng-repeat though, not scope
[16:41:33] *** mrded has quit IRC
[16:41:38] *** ustunozgur has quit IRC
[16:41:46] *** HardFu has quit IRC
[16:41:55] <spaceonline> ng-click to move cursor header page, solution ?
[16:41:56] *** ustunozgur has joined #angularjs
[16:41:57] *** ojacobson has joined #angularjs
[16:42:31] *** cthrax_ has quit IRC
[16:42:34] *** selvait901 has joined #angularjs
[16:42:45] *** ustunozgur has quit IRC
[16:42:50] *** selvait90 has quit IRC
[16:43:11] <gnarMatix> ui.router question: If I have a results state & a view single result state, how can I transition from results -> single result & back to results without reloading all results?
[16:43:36] <jaawerth_> Kallb123: same logic applies though - once you've used that directive, you're in angular expression territory so you don't need to use {{ }} to force it
[16:43:40] <Mattias> If I add ng-if="" on a direct parent element to my form, the form validation object disappears. Is this a bug?
[16:43:43] *** Milanito has joined #angularjs
[16:43:53] <jaawerth_> (by that directive I mean the ng-click in this case)
[16:44:03] <marcospgp> https://github.com/jaredhanson/passport Here in the "sessions" part, when you do "done(err, user);" - what will this function do?
[16:44:49] <Kallb123> jaawerth_, ng-click="update(feed, $index)" doesn't work either though (removed {{}})
[16:44:51] *** Cavallari has quit IRC
[16:45:05] *** marcio_ has joined #angularjs
[16:45:12] <Mattias> ok, ng-show works, ng-if apparently creates a new scope...
[16:45:30] <Kallb123> The $index is being evaluated alright, but the function doesn't get called on click
[16:46:12] <jaawerth_> Mattias: yeah careful with ng-if, it's actually modifying the DOM and in general much more costly than using ng-show
[16:46:15] *** dcherman has joined #angularjs
[16:46:35] <jaawerth_> which doesn't mean don't use it, but - for example - bad idea to use it in an ng-repeat, and sometimes it can have surprising side effects
[16:46:39] *** spaceonline has quit IRC
[16:46:41] <jaawerth_> Kallb123: hm, let me take a look..
[16:47:04] *** xaxisx has joined #angularjs
[16:47:28] <Kallb123> not sure I can make a plunker atm, I'm going to try and get rid of the need for $index
[16:47:29] *** iateadonut has joined #angularjs
[16:48:05] *** cctom has quit IRC
[16:48:16] *** milka_ has quit IRC
[16:48:52] *** slainer6_ has quit IRC
[16:48:54] *** mattupstate has joined #angularjs
[16:49:04] *** waylon999 has joined #angularjs
[16:49:09] *** xaxisx has quit IRC
[16:49:29] <CainVampyr> Hello everyone
[16:49:45] *** }SoMBrA{ has quit IRC
[16:49:51] *** jdcasey has joined #angularjs
[16:50:52] <jaawerth_> Kallb123: no worries I've gotten pretty quick about throwing plunkrs together for very specific things ;-) http://plnkr.co/edit/NPkyJS0OYVFC1BpuhRDO?p=preview
[16:50:54] *** danielpquinn has joined #angularjs
[16:51:13] *** bkuberek has joined #angularjs
[16:51:22] <jaawerth_> Kallb123: I just had it pop up an alert with the index # when you click on any of the list items
[16:51:31] <CainVampyr> anyone knows how to make a form validate before any user input?
[16:51:34] *** mrogne_afk has quit IRC
[16:51:51] *** bkuberek_ has joined #angularjs
[16:52:07] *** nytram has quit IRC
[16:52:15] <Kallb123> yep, I see :/ Not sure why it won't work for me :/
[16:52:15] *** Deseaus has joined #angularjs
[16:52:50] <Kallb123> that's the exact setup I have: http://plnkr.co/edit/hxN39hPN0jHpwwkeQiqw?p=preview
[16:53:07] <Kallb123> but the function doesn't call in my app :(
[16:55:01] *** boule has quit IRC
[16:55:04] *** mokush has quit IRC
[16:55:07] <jaawerth_> Kallb123: probably something else going on then. That type of list are you iterating through, objects? Are they all unique?
[16:55:15] *** blueadept has joined #angularjs
[16:55:18] *** danielpquinn has quit IRC
[16:55:18] *** slainer68 has joined #angularjs
[16:55:26] *** geoid has joined #angularjs
[16:55:40] *** bkuberek has quit IRC
[16:55:41] *** xaxisx has joined #angularjs
[16:55:59] *** bmcgee has joined #angularjs
[16:56:01] <Kallb123> objects ye, all unique. Don't think it matters now, I'll just use array.indexOf().
[16:56:08] *** Circlefusion has joined #angularjs
[16:57:03] *** mrogne_afk has joined #angularjs
[16:57:44] *** thedodd has joined #angularjs
[16:57:45] <jaawerth_> It's up to you, but if $index isn't working it's entirely possible that something else is going on in your code that needs to be corrected. Also indexOf isn't going to work in IE8 (if that even matters)
[16:57:56] *** noobee has quit IRC
[16:57:58] *** pasquale has joined #angularjs
[16:58:24] *** Aartsie has quit IRC
[16:59:03] *** }SoMBrA{ has joined #angularjs
[16:59:03] *** combat has quit IRC
[16:59:07] *** combat1 has joined #angularjs
[16:59:09] <jaawerth_> it's also going to be less efficient because Array.prototype.indexOf actually searches the array for the item, so if you do that in an ng-repeat you're going to be running a search for every element in the array
[16:59:23] *** shinnya has quit IRC
[16:59:52] *** SomeKittens has joined #angularjs
[17:00:20] *** jelle___ has quit IRC
[17:00:40] *** scrollback4 has joined #angularjs
[17:01:11] *** nerdfiles has joined #angularjs
[17:01:51] *** stirlingw has joined #angularjs
[17:02:01] *** intellix has joined #angularjs
[17:02:06] *** jdj_dk has joined #angularjs
[17:02:08] *** dcherman2 has joined #angularjs
[17:02:39] *** bc has quit IRC
[17:03:05] *** bc has joined #angularjs
[17:04:38] *** dcherman has quit IRC
[17:05:18] *** jtimon has quit IRC
[17:05:24] *** Tomdarkness has joined #angularjs
[17:05:39] *** phuh has quit IRC
[17:05:40] *** apetro_ has joined #angularjs
[17:05:49] *** chipp has joined #angularjs
[17:06:02] <jaawerth_> Kallb123: in fact, if you use indexOf that way, you'll end up doing Σ(i+1) [0...n] extra evaluations - that could get messy as your n (length of array) increases
[17:06:18] *** jdj_dk has quit IRC
[17:06:19] *** selvait901 has quit IRC
[17:06:37] <Kallb123> I did think about that, the array won't get too long, maybe 20 objects top
[17:06:37] *** m1hael has left #angularjs
[17:07:04] <Guest52008> Hi, I need to make Dom manipulation from a directive, how can I fire function on template ready?
[17:07:44] *** apetro__ has joined #angularjs
[17:07:45] <CainVampyr> anyone knows how to have a form validate it's fields with it's initial values? instead of waiting for user interaction with each field?
[17:07:49] *** matiasow has joined #angularjs
[17:08:15] *** Dimlock has quit IRC
[17:08:16] *** CodeFriar has quit IRC
[17:08:51] *** cthrax_ has joined #angularjs
[17:08:55] *** greengriminal has joined #angularjs
[17:08:58] *** mrogne_afk is now known as mrogne
[17:09:05] *** mrogne has quit IRC
[17:09:05] *** mrogne has joined #angularjs
[17:09:23] *** jaequery has quit IRC
[17:09:32] *** conan_the_destro has joined #angularjs
[17:09:50] *** ipalaus has quit IRC
[17:09:53] *** bkuberek has joined #angularjs
[17:10:06] <CainVampyr> hummm is plunker down?
[17:10:11] *** apetro_ has quit IRC
[17:10:18] *** jonasrosenlind has quit IRC
[17:10:32] <mrogne> CainVampyr: is for me
[17:10:35] <jeffszusz> anyone familiar with why my ui-router might try to redirect calls to my root state to the last state defined?
[17:10:40] <icfantv> cainvampyr: i've found the site to be very spotty
[17:11:16] *** roymilder has quit IRC
[17:11:20] <CainVampyr> :(
[17:11:22] *** pkayfire has quit IRC
[17:11:34] <icfantv> it's down for me too
[17:11:49] *** eperez has joined #angularjs
[17:11:55] *** pkayfire has joined #angularjs
[17:12:02] <icfantv> it was up earlier b/c i have a tab that loaded from it earlier this morning
[17:12:04] *** beckyconning__ has quit IRC
[17:12:05] <CainVampyr> messing with forms in angular and i'm running agaisnt a wall at the moment
[17:12:11] *** HypnotiX has quit IRC
[17:12:11] *** InezK_away is now known as InezK
[17:12:19] *** bkuberek_ has quit IRC
[17:12:25] *** eperez has joined #angularjs
[17:12:27] *** Dimlock has joined #angularjs
[17:12:31] *** Dimlock has quit IRC
[17:12:53] *** hugofirth has joined #angularjs
[17:13:09] <CainVampyr> so i have some fields inside a form with are required and the controller sets initial values to some of these, but the form wont validate untill we type in each individual field.... any way to force it validate all fields when it's created with it's initial values?
[17:13:18] *** Oxelist has joined #angularjs
[17:13:53] *** Dimlock has joined #angularjs
[17:13:54] *** blueadept has quit IRC
[17:13:55] <CainVampyr> by validation i mean setting the proper css classes to each field
[17:14:09] *** Oxelist has joined #angularjs
[17:14:59] *** anjumkaiser has quit IRC
[17:15:16] <jaawerth_> CainVampyr: There are a couple of potential ways to tackle this. I'll be back in 10 minutes (quick meeting) but in the mean time I'd reocommend checking out ngModelController in the docs, it shows how you can do all sorts of manipulation on validity state and ng-model/forms
[17:15:52] <CainVampyr> kay i'll take a look then
[17:16:23] *** frankblizzar has joined #angularjs
[17:16:36] *** FIFOd[a] has quit IRC
[17:16:40] *** pkayfire has quit IRC
[17:16:42] *** raul782 has joined #angularjs
[17:16:54] *** FIFOd[a] has joined #angularjs
[17:17:25] *** arizzo has quit IRC
[17:17:25] *** chipp has quit IRC
[17:17:41] *** stodan has quit IRC
[17:17:54] *** Nizumzen has quit IRC
[17:17:58] *** arizzo has joined #angularjs
[17:18:00] *** mchammer has quit IRC
[17:18:01] *** bc__ has joined #angularjs
[17:20:05] *** ineedarobot has quit IRC
[17:20:35] *** cpitt has joined #angularjs
[17:20:40] *** digia|away is now known as digia
[17:20:46] *** bc has quit IRC
[17:21:37] *** tekky has joined #angularjs
[17:21:47] *** mrogne has quit IRC
[17:22:01] *** MTGap has quit IRC
[17:22:04] *** InezK is now known as InezK_away
[17:22:26] *** arizzo has quit IRC
[17:22:47] *** cctom_ has joined #angularjs
[17:23:03] *** dweave has joined #angularjs
[17:23:29] <dweave> hi i’m trying to understand some strange behavior i’m having when reuiring a parent controller
[17:23:47] *** Oxelist has quit IRC
[17:24:02] <dweave> could require:’^parent’ pick up a ‘sibling’ controller somehow?
[17:24:05] <dweave> in the dom tree
[17:24:09] *** francisl has joined #angularjs
[17:24:17] <dweave> that seems to be what i'm seeing
[17:24:17] *** karloboy has joined #angularjs
[17:24:33] *** cityspirit has quit IRC
[17:24:53] *** jtimon has joined #angularjs
[17:24:57] <tangorri> anyway to startdrag a element from a click event ?
[17:25:19] *** J0514H has joined #angularjs
[17:25:37] <karloboy> hi, im trying to use ui.bootstrap but i want to use the non tpls version and have the template folder in my solution. where should I put the template folder?
[17:26:59] *** mrogne_afk has joined #angularjs
[17:27:17] *** nfroidure_ has joined #angularjs
[17:27:22] *** brownbathrobe has joined #angularjs
[17:27:28] *** the_fog has quit IRC
[17:28:28] *** }SoMBrA{ has quit IRC
[17:28:56] *** eperez has quit IRC
[17:29:08] *** jaequery has joined #angularjs
[17:29:38] *** nemothekid has joined #angularjs
[17:29:51] *** jaequery has joined #angularjs
[17:29:57] *** pheze has joined #angularjs
[17:30:04] *** the_fog has joined #angularjs
[17:30:22] <karloboy> i can see that the templateUrl in ui.bootstrap is set to a folder template/xxxx/xxxx.html which is a relative location, I suppose. But I'm not sure where is it relative to? app.js? angular.js? /my-page-location ?
[17:30:23] *** patrickarlt has joined #angularjs
[17:30:35] *** Billy_ has quit IRC
[17:30:36] <gnarMatix> karloboy: index.html
[17:30:51] *** svycka has quit IRC
[17:30:53] <gnarMatix> karloboy: i think. don't shoot me if i'm wrong
[17:31:30] *** cthrax_ has quit IRC
[17:32:10] *** quartzmo has joined #angularjs
[17:32:22] *** chrisbirk has joined #angularjs
[17:32:29] *** bc_ has joined #angularjs
[17:32:47] *** Crelex has quit IRC
[17:32:50] *** eperez has joined #angularjs
[17:33:18] *** nerdfiles has quit IRC
[17:33:19] *** jaequery has quit IRC
[17:33:20] *** Crelex has joined #angularjs
[17:33:30] <cpitt> So is it wrong to call services that make rest calls directly from within a directive? It feels wrongs
[17:33:59] *** kalusn has quit IRC
[17:34:03] *** rocky_ has joined #angularjs
[17:34:07] <karloboy> @gnarMatix: hmmm, i'll try that but if ever that works it will not be an option for me. thanks
[17:34:07] <oniijin> y are u not making the request from the service
[17:34:18] *** cpciv has quit IRC
[17:34:33] *** apetro__ has quit IRC
[17:34:53] <andrew9183> https://gist.github.com/anonymous/b76029fdbb1ef69a5dbf
[17:34:54] <cpitt> The request is being made from the service but is being triggered from within a directive
[17:35:01] <andrew9183> is there a way to do this without the spans ?
[17:35:04] *** kroogs has joined #angularjs
[17:35:24] *** justinobney has quit IRC
[17:35:25] *** sk87 has quit IRC
[17:35:32] <drej> andrew9183 yes you can use <strong>
[17:35:33] <drej> :)
[17:35:43] *** phuh has joined #angularjs
[17:35:44] <andrew9183> well i don't want any tag at all
[17:35:50] <andrew9183> heh
[17:35:57] <dweave> hi i’m trying to understand some strange behavior i’m having when reuiring a parent controller
[17:35:59] *** bc__ has quit IRC
[17:36:06] <dweave> could require:’^parent’ pick up a ‘sibling’ controller somehow?
[17:36:10] <rocky_> Hi all...i have a question...i have a div in html page loaded with templateUrl in directive. I need to cancel class of a div in controller. I've solved the problem with [div element].className=''. Now my question is: is there a more elegant way to solve the problem?
[17:36:18] <drej> andrew9183 no way that i know of
[17:36:20] *** rho has joined #angularjs
[17:36:20] *** rho has joined #angularjs
[17:36:31] *** krnflake has quit IRC
[17:36:33] <dweave> i have a custom carousel directive and if there are 2 on a page the last one adds it’s ‘slides’ to the first
[17:36:34] *** chrisbirk has quit IRC
[17:36:45] *** arizzo has joined #angularjs
[17:36:56] *** danielpquinn has joined #angularjs
[17:37:09] <dweave> <div carousel><div slide=“link to image”</div></div>
[17:37:11] <dweave> something like that
[17:37:17] *** mewm has quit IRC
[17:37:45] *** krnflake has joined #angularjs
[17:37:49] <dweave> and i’m requiring the carousel controller from slide and calling carousel.addSlide()
[17:37:53] <dweave> etc.
[17:38:07] <gnarMatix> karloboy: why not just use the tpls version
[17:38:15] *** acconrad has joined #angularjs
[17:38:42] *** mchapman has joined #angularjs
[17:38:47] *** kalusn has joined #angularjs
[17:39:05] <rocky_> Hi all...i have a question...i have a div in html page loaded with templateUrl in directive. I need to cancel class of a div in controller. I've solved the problem with [div element].className=''. Now my question is: is there a more elegant way to solve the problem?
[17:39:10] *** motionman has quit IRC
[17:39:14] *** VeeWee has quit IRC
[17:39:22] *** hannesvdvreken has quit IRC
[17:39:34] <jaawerth_> CainVampyr: Here's a quick example I wrote up http://plnkr.co/edit/4N86Ral1glICfZwdcjeA?p=preview - basically I took the example of validation here https://docs.angularjs.org/guide/forms (under custom validation) and added a "formatter" identical to the "parser" for the top input
[17:39:39] <dweave> rocky_: can you just change it in the template
[17:39:43] *** bengillies has joined #angularjs
[17:39:58] *** kroogs has quit IRC
[17:40:14] <karloboy> gnarMatix: I need to have a different template for some of the directives. I know I can edit from the js file but I think I like it better working with .html templates because of intellisense
[17:40:20] <jaawerth_> CainVampyr: parsers handle (and validate, if you code them to do so) input from the DOM before it goes to the model, and formatters handle data from the model before you send it to the DOM, so you can do things like alter them or set validity state
[17:40:29] *** bengilli_ has quit IRC
[17:40:29] <ajk27> andrew9183: Instead of all the spans and ng-ifs, can you just have a {{ impact.toUpperCase() | translate }} ?
[17:40:34] *** hannesvdvreken has joined #angularjs
[17:40:41] *** hannesvdvreken has quit IRC
[17:40:49] *** cctom__ has joined #angularjs
[17:40:59] *** okdamn has joined #angularjs
[17:41:00] <rocky_> dweave i do an addClass on div dinamically because the class is parametric
[17:41:15] *** intellix has quit IRC
[17:41:23] *** encryptd_fractl has quit IRC
[17:41:24] *** cctom_ has quit IRC
[17:41:27] *** jerev is now known as jerev_away
[17:41:29] <andrew9183> ajk27: humph, you my sir are a genius, that worked
[17:41:30] <dweave> oh well in the template you could use ng-class then
[17:41:35] <jaawerth_> CainVampyr: However, if you do it this way it means it will validate the form not only for the initial state but also for any values you set from your code. If you want to validate the initial state only, you'd need to call $setValidity from your controller (as opposed to writing a custom directive) and do the validation manually once, so it doesn't validate every time
[17:41:39] *** gjvc has quit IRC
[17:41:40] *** gjvc has joined #angularjs
[17:41:44] <andrew9183> i forgot about the uppercase part
[17:41:44] <dweave> and get the parameter in the directives controller and add it to the scope
[17:41:46] <andrew9183> thanks
[17:41:48] *** k-dawg has quit IRC
[17:41:58] <dweave> $scope.myClass = $attr.myClassName
[17:42:00] *** brownbathrobe has quit IRC
[17:42:01] <dweave> that might be better
[17:42:51] <dweave> ng-class=“myClass || default”
[17:42:53] *** okdamn has left #angularjs
[17:43:25] <rocky_> unfortunatly i cannot use scope because the div is the result of $event.srcElement...i don't know if i can refer to div with $scope...i'm new in angular world
[17:43:58] *** eperez has quit IRC
[17:43:59] <dweave> hmm i dunno not sure what your trying to do
[17:44:08] *** disorder20 has quit IRC
[17:44:10] *** vintik has joined #angularjs
[17:44:28] *** cthrax_ has joined #angularjs
[17:44:36] *** walden is now known as walden|brb
[17:44:38] *** Sebastien-L has quit IRC
[17:44:44] <ajk27> andrew9183: Glad it worked!
[17:44:49] *** arizzo has quit IRC
[17:44:50] *** bc__ has joined #angularjs
[17:45:16] *** arizzo has joined #angularjs
[17:45:22] *** cctom__ has quit IRC
[17:45:29] <rocky_> mmm...i have ng-click="xxx($event) " and in controller $event.srcElement.addClass and then i need to do removeClass
[17:45:38] *** krawchyk has joined #angularjs
[17:45:48] <rocky_> done by className = ''
[17:46:17] *** eperez has joined #angularjs
[17:46:19] *** conan_the_destro has quit IRC
[17:47:03] *** encryptd_fractl has joined #angularjs
[17:47:20] *** conan_the_destro has joined #angularjs
[17:47:23] *** bc_ has quit IRC
[17:48:03] *** intellix has joined #angularjs
[17:48:03] *** mkulke has quit IRC
[17:48:11] *** Gambit- has joined #angularjs
[17:48:21] *** jobelenus has joined #angularjs
[17:49:13] *** fumblingfish has joined #angularjs
[17:49:14] <jaawerth_> rocky_: So you could go this route, but the 'angular way' tends towards having everything data-driven rather than DOM driven. In other words, the changing class happens automatically as a result of your data changing rather than being the point of the operating. You might have ng-class="{ isThisStateActive: 'active-class' }", for example, and then you can forget about the DOM and just have your ng-click set isThisStateActive to
[17:49:18] *** FrEaKmAn_ has joined #angularjs
[17:49:20] <dweave> guys i’m following the same pattern as angular-ui’s accordions where they add an accordion group to the parent accordion
[17:49:20] *** milka has joined #angularjs
[17:49:22] *** arizzo has quit IRC
[17:49:34] <FrEaKmAn_> hi.. I'm supper confused why $compile doesnt want to work. here is an example http://plnkr.co/edit/QkIUK0Y4NKfWaCUH38VL
[17:49:39] <dweave> trouble is when I have two accordions in the same page the second one add’s it’s group to the first
[17:49:43] <dweave> why is this happening
[17:50:09] *** nemothekid has quit IRC
[17:50:13] *** nerdfiles has joined #angularjs
[17:50:19] <rocky_> ok jaawert_ i try
[17:50:21] <rocky_> thanks
[17:50:28] *** sk87 has joined #angularjs
[17:50:40] <jobelenus> FrEaKmAn_: it looks like its working? what makes you think it isnt?
[17:50:54] <FrEaKmAn_> jobelenus: I get alerted {{ foo }}
[17:50:58] <FrEaKmAn_> instead of it works
[17:51:15] <jobelenus> oh sorry, was looking at the wrong thing..
[17:51:17] <dweave> FrEaKman_: i don’t think it will have an html() method
[17:51:25] <dweave> it returns a template function
[17:51:32] <dweave> not an $element
[17:51:35] <jobelenus> you dont need the {{}} i believe
[17:51:44] *** wxo has joined #angularjs
[17:51:54] <jobelenus> <div>foo</div> ought to work
[17:51:59] *** floorz has joined #angularjs
[17:52:03] <FrEaKmAn_> no?
[17:52:05] *** shabadoo has quit IRC
[17:52:18] <jobelenus> hrm
[17:52:18] *** beckyconning__ has joined #angularjs
[17:52:55] <jobelenus> i made a compile working yesterday.. im not sure what the issue here is :(
[17:53:01] <jobelenus> i also cant type
[17:53:54] <FrEaKmAn_> I'm ready confused
[17:54:17] *** pushbyte has joined #angularjs
[17:54:18] *** thedodd has quit IRC
[17:54:20] <FrEaKmAn_> if I print out only $compile('<div>{{ foo }}</div>')($scope) in console and check object
[17:54:22] *** spencercarnage has joined #angularjs
[17:54:26] <FrEaKmAn_> innerHTML contains it works
[17:54:35] *** shacklef_ has quit IRC
[17:54:43] <FrEaKmAn_> but when I write $compile(...)($scope).innerHTML is again get {{ foo }}
[17:54:44] *** icfantv1 has joined #angularjs
[17:54:46] *** mrogne_afk has quit IRC
[17:54:46] *** mrogne_afk has joined #angularjs
[17:54:53] *** mrogne_afk is now known as mrogne
[17:54:58] *** nerdfiles has quit IRC
[17:54:58] *** richardbaker has joined #angularjs
[17:55:16] <pushbyte> I have an object that I'm trying to remove some properties from, but the properties aren't remove if I use "delete obj['prop']". If I console.dir(obj) the properties are still there, if I console.log(JSON.stringify(obj)) the properties are not there.
[17:55:27] <pushbyte> any ideas? There is no .toJSON method on the object or its prototype.
[17:55:45] <dweave> freak what if you wrap the whole thing in angular.element()
[17:55:47] *** Billy_ has joined #angularjs
[17:55:51] <pushbyte> so it can't be sending a different object back when I stringify it…?
[17:56:03] *** jdowdle has joined #angularjs
[17:56:12] *** gr1nd has joined #angularjs
[17:56:17] *** jdj_dk has joined #angularjs
[17:56:22] *** rocky_ has quit IRC
[17:56:34] *** zwacky has quit IRC
[17:56:38] *** Limarson has quit IRC
[17:56:45] *** thedodd has joined #angularjs
[17:56:48] *** bmcgee has quit IRC
[17:57:17] *** icfantv has quit IRC
[17:57:19] *** arizzo has joined #angularjs
[17:57:33] *** chrisbirk has joined #angularjs
[17:57:44] *** robteix has quit IRC
[17:57:59] <FrEaKmAn_> dweave: nop
[17:58:03] *** edzez has quit IRC
[17:58:08] <dweave> this doesn’t work? alert($compile(angular.element('<div>{{ foo }}</div>'))($scope).html());
[17:58:23] *** anjumkaiser has joined #angularjs
[17:58:32] *** tilgovi has joined #angularjs
[17:58:32] *** Sebastien-L has joined #angularjs
[17:58:34] *** mtsr_ has quit IRC
[17:58:42] *** AndyFTP_ has quit IRC
[17:58:57] *** mguillec_ has joined #angularjs
[17:58:59] <FrEaKmAn_> dweave: no.. but think I know it
[17:59:08] <FrEaKmAn_> I think I need to attach it to the dom to work
[17:59:22] <davek> pushbyte, is the property present on the object's prototype?
[17:59:33] <dweave> yes i think ur right
[18:00:09] *** lsiv568 has quit IRC
[18:00:19] *** mguillech has quit IRC
[18:00:32] *** mennea has quit IRC
[18:00:33] *** jdj_dk has quit IRC
[18:00:36] *** JKL has joined #angularjs
[18:00:42] *** JKL is now known as _JKL
[18:00:56] <_JKL> hey
[18:01:25] *** jaequery has joined #angularjs
[18:01:27] *** snapwich has joined #angularjs
[18:01:29] *** katsh has quit IRC
[18:01:38] <pushbyte> davek: I don't think so… is there a simple way to check if the property is on the object itself or inherited from its prototype? Doing obj.hasOwnProperty('prop') results in 'false'
[18:01:52] <_JKL> with the new $touched, whats the best way to show validation errors AFTER moving from the input? sure you can ng-if $touched and $invalid. but if you then go back to it and change it, you're back to "show errors as you type"
[18:02:09] <_JKL> ideally you'd want it to hide errors when focused, show them after losing focus
[18:02:12] <pushbyte> and if it's the case that it's inheriting it from its prototype, is it possible to get an object's value without the inherited properties?
[18:02:27] *** JohnBat26 has quit IRC
[18:02:46] <CainVampyr> can someone help with this form? http://plnkr.co/edit/CgyJrT?p=preview my goal is to have the form fields to be validated with their initial values, as in oposed to have to wait for user interaction to change their background colors
[18:02:57] *** shackleford has joined #angularjs
[18:03:06] *** _JKL has quit IRC
[18:03:09] *** arizzo has quit IRC
[18:03:23] *** xaxisx has quit IRC
[18:03:45] *** arizzo has joined #angularjs
[18:04:01] *** fbenoit has quit IRC
[18:04:10] <dweave> hey how does require:’^parent’ work
[18:04:12] *** mac_ified has quit IRC
[18:04:15] <dweave> does it search up the dom tree?
[18:04:15] <davek> pushbyte, then it's inherited.
[18:04:22] <dweave> or down
[18:04:33] *** Anticom has quit IRC
[18:04:38] <Zerot> dweave: up
[18:04:47] *** lsiv568 has joined #angularjs
[18:04:48] <Zerot> it looks are parents in the dom for the directive
[18:04:49] *** walden|brb is now known as walden
[18:04:50] *** Ronyrun has quit IRC
[18:05:05] *** Maria__ has joined #angularjs
[18:05:08] <davek> And delete will have no effect (it will simply inherit the prototype's property). Since toJSON operates only on direct properties of the object.
[18:05:24] <davek> you don't see it in the output.
[18:05:40] <dweave> Zerot: i have a directive that requires a parent like this <carousel><slide></slide></carousel>
[18:05:45] <Maria__> Hi everyone.. I am looking for some help with angularjs.. I am a bit new to it...
[18:05:54] <dweave> funny thing is when there are 2 carousels on same page the second one finds the first
[18:05:57] <dweave> not it’s direct parent
[18:05:57] *** JohnBat26 has joined #angularjs
[18:06:08] <dweave> Zerot or anyone ever encountered this?
[18:06:20] <pushbyte> davek: I see--so is the only way to get a copy with the object's own properties to do JSON.parse(JSON.stringify(obj));
[18:06:33] *** geoid has quit IRC
[18:06:41] <Zerot> dweave: I doubt that. pastebin/plunker your directives
[18:06:42] *** nerdfiles has joined #angularjs
[18:06:47] *** dylukes has joined #angularjs
[18:06:58] <Maria__> I have a pretty large app.. Can we have different modules with lazy loading in a single page
[18:07:02] <pushbyte> or would angular.copy do the trick?
[18:07:14] *** sigurding has quit IRC
[18:07:21] *** hugofirth has quit IRC
[18:07:46] <dweave> Zerot: http://pastebin.com/Fv3dsYwy
[18:08:04] *** evilaliv3 has quit IRC
[18:08:15] *** arizzo has quit IRC
[18:08:15] <dweave> zerot: when I nest the first in another div so that it’s not a sibling of the second it works fine
[18:08:28] <dweave> that is what is making me think it’s finding the first one
[18:08:30] *** the_fog has quit IRC
[18:08:42] <intellix> just when I think I understand animations, I come back to it and it makes no sense again… there’s pretty much nothing on the documentation -.-
[18:08:53] *** vintik has quit IRC
[18:09:07] *** jbourassa has quit IRC
[18:09:16] <CainVampyr> jaawerth did you see my plunker regarding the forms?
[18:09:23] <davek> pushbyte, not sure off hand. Try it out.
[18:09:26] <Zerot> dweave: can you make a plunker showing the problem?
[18:09:28] <CainVampyr> jaawerth_ i mean
[18:09:47] <dweave> Zerot: I can try stand by
[18:09:56] *** matiasow has quit IRC
[18:10:03] *** ecantin has quit IRC
[18:10:51] *** ecantin has joined #angularjs
[18:11:35] *** kalusn has quit IRC
[18:11:56] *** futuredale has quit IRC
[18:12:34] *** badon has quit IRC
[18:12:36] <CainVampyr> hummm, lag again?
[18:12:46] *** kalusn has joined #angularjs
[18:12:47] *** nerdfiles has quit IRC
[18:13:17] *** InezK_away is now known as InezK
[18:13:36] *** Joulse has quit IRC
[18:13:49] <davek> Did someone here say that had recently implemented a timeago filter?
[18:13:56] <beckyconning__> intellix: what issue are you having?
[18:13:57] *** jsoverson has joined #angularjs
[18:14:24] <intellix> well the documentation doesn’t mention anything to do with the CSS classes required for detection
[18:14:55] *** kalusn has quit IRC
[18:15:07] *** disorder20 has joined #angularjs
[18:15:30] *** kalusn has joined #angularjs
[18:15:33] *** rho has quit IRC
[18:16:07] *** ineedarobot has joined #angularjs
[18:16:53] <intellix> I’m changing a -webkit-transform: translate3d and want to turn on animation when I’m changing it programmatically (it’s draggable as well so can’t have it on all the time)
[18:17:26] *** upsell5 has joined #angularjs
[18:18:12] *** jonashw has joined #angularjs
[18:18:16] <jonashw> howdy
[18:18:41] *** matiasow has joined #angularjs
[18:18:59] *** Click66___ has joined #angularjs
[18:19:18] *** bbankes has quit IRC
[18:21:01] *** badon has joined #angularjs
[18:21:35] *** jtimon has quit IRC
[18:21:42] *** pdillinger1 has joined #angularjs
[18:21:48] *** Shrooms has joined #angularjs
[18:21:56] *** foofoobar has joined #angularjs
[18:22:08] *** euskadi31 has joined #angularjs
[18:22:17] <CainVampyr> am i lagging?
[18:22:27] <jonashw> not to me, you're not ;)
[18:22:31] *** DerekPerkins has joined #angularjs
[18:22:33] <frege> is it possible to make multiple api calls for submitting a form? I want to know how to handle objects with relations on my backend
[18:22:39] <CainVampyr> he he
[18:22:45] *** InezK is now known as InezK_away
[18:22:46] <CainVampyr> jaawerth_: you still there mate?
[18:22:47] <jonashw> frege, yes, of course it is
[18:22:51] <frege> or should I receive a flat json object from the front end and then process it myself?
[18:23:02] *** arizzo has joined #angularjs
[18:23:11] <jonashw> frege, depends on the situation but both techniques are valid.
[18:23:19] *** Click66___ has quit IRC
[18:23:35] *** walden is now known as walden|lunch
[18:23:36] *** arizzo has quit IRC
[18:23:45] *** Click66___ has joined #angularjs
[18:23:46] <jonashw> I prefer doing individual calls myself.. sending more JSON to the server
[18:23:54] <frege> jonashw: what if they are dependent? like item-->images, item-->videos. and we have a form to submit and item with a place to upload images and videos
[18:24:20] <frege> so in this case Item must be created first right?
[18:24:21] *** richardbaker has quit IRC
[18:24:31] *** 1JTAAUFG4 has joined #angularjs
[18:24:40] *** arizzo has joined #angularjs
[18:24:46] <jonashw> frege, if you are doing two things from a submitted form, maybe you really want two forms
[18:25:00] *** fedenunez has quit IRC
[18:25:23] <jonashw> also, that kind of relationship (item -> image) might best be handeled on your backend
[18:26:13] <jonashw> unless it isn't your backend
[18:26:17] *** anjumkaiser has quit IRC
[18:26:22] *** DerekPerkins_ has joined #angularjs
[18:26:23] *** caitp has quit IRC
[18:26:34] <frege> jonashw: what if I do this: hit /api/account/<id>/item first to create the item, the when it's created you hit /api/account/<id>/item/<id>/image in a loop to create images , same for video
[18:26:37] *** sdouglas has joined #angularjs
[18:26:46] *** mattwynn_ has quit IRC
[18:27:09] <jonashw> frege, that sounds fine
[18:27:17] *** DerekPerkins has quit IRC
[18:27:23] *** kalusn has quit IRC
[18:27:32] <beckyconning__> intellix: to turn off an ngAnimation just change the class of the element with ng-class.
[18:27:52] <intellix> well I’m changing the CSS manually like:
[18:28:06] <intellix> inner.css({ '-webkit-transform': 'translate3d(' + currentX + 'px, 0, 0)' });
[18:28:11] *** rho has joined #angularjs
[18:28:28] <intellix> inside a function, snapTowards(item) {} I need to animate the movement towards it, so need to add a class and remove it after 100ms or something
[18:28:38] *** arizzo has quit IRC
[18:28:39] *** RaphaelRocca has joined #angularjs
[18:28:47] *** lordkryss has quit IRC
[18:28:48] *** AnthonyC has joined #angularjs
[18:28:48] *** brianturgeon has joined #angularjs
[18:29:10] *** arabot has joined #angularjs
[18:29:17] *** arabot has quit IRC
[18:29:18] *** sergeyb has quit IRC
[18:29:28] <jonashw> say I've got a controller WidgetCtrl that is normally used directly from a ui-router state, and as such it has a data dependency that is normally injected via 'resolve' in the state. ie. app.controller('invoiceListCtrl',['$scope','invoices',function($scope,invoices){}]);
[18:29:47] *** Billy_ has quit IRC
[18:29:49] <jonashw> how can I use that same controller via ng-controller, and still inject a value for `invoices`?
[18:29:52] <beckyconning__> intellix: that doesn't sound like something ngAnimate was designed for. i might be wrong but i've never seen that usecase. best to use your own directive and apply the transformation to the css directly.
[18:29:54] *** ineedarobot has quit IRC
[18:29:54] *** Billy_ has joined #angularjs
[18:30:19] *** cigarshark has joined #angularjs
[18:30:40] <intellix> mmyeah, I know I’m not being “angular”, but I need dragging of an element, so can’t have it bound by data and then do all that jazz :P needs to be precise
[18:30:48] *** dc__ has quit IRC
[18:30:55] *** Guest52008 has quit IRC
[18:30:56] <intellix> thought maybe I could just… animate part of my code. I have -100 transform, I need to move to -200, animate it
[18:31:12] <beckyconning__> intellix: thats fine just use a directive : )
[18:31:16] *** mchapman has quit IRC
[18:31:35] <intellix> so I suppose the best thing is to addClass which contains transform animation; change to -200 transform, wait so many milliseconds; removeClass;
[18:31:36] *** edy has quit IRC
[18:31:42] <intellix> yeah I am, it’s all contained, just wanted to use ngAnimate somehow
[18:31:48] *** sdouglas has quit IRC
[18:32:06] <RaphaelRocca> HI everyone.. i need some quick help... I'm start an angular app with "angular.bootstrap(document, ['chamados']);" everything works fine.. but.. i need to call a service function from outside..
[18:32:09] *** Nizumzen has joined #angularjs
[18:32:28] *** phuh has quit IRC
[18:32:44] <RaphaelRocca> on Google wi see a lot of different ways to do this.. but nothing work
[18:32:53] *** phuh has joined #angularjs
[18:33:04] *** blueadept has joined #angularjs
[18:33:32] *** xaxisx has joined #angularjs
[18:34:03] *** frankblizzar has quit IRC
[18:34:17] *** 1JTAAUFG4 has quit IRC
[18:34:26] *** tilgovi has quit IRC
[18:34:34] *** watsonkp has quit IRC
[18:34:35] *** mchapman has joined #angularjs
[18:34:39] *** richardbaker has joined #angularjs
[18:35:10] <beckyconning__> intellix: well you can wait for the transitionend event or you can use the jquery animate method
[18:35:19] <Zerot> dweave: I experimented with it a bit, and it looks like you get the normal scope and not the isolate scope in the controller. You can get the isolate scope if you add "transclude: true" to the directive definition. But in this case you don't need to use $scope at all. Just store the data in the controller.
[18:35:21] *** jstroem has quit IRC
[18:35:30] <dweave> ahhh
[18:35:37] <beckyconning__> intellix: rather than just waiting how long you'd expect it to take
[18:35:38] <dweave> i was just getting the plunker finished
[18:35:41] *** tilgovi has joined #angularjs
[18:35:48] *** t1mmen has joined #angularjs
[18:35:52] *** jstroem has joined #angularjs
[18:35:56] *** kroogs has joined #angularjs
[18:35:58] *** conner_ has quit IRC
[18:35:58] <dweave> transclude:true on parent or child dirs?
[18:36:23] *** matiasow has quit IRC
[18:36:45] *** ckboii89 has joined #angularjs
[18:36:55] <Zerot> on the parent
[18:37:11] *** gnarMatix has quit IRC
[18:37:25] *** robdubya has joined #angularjs
[18:37:27] *** discipolo has joined #angularjs
[18:37:53] <dweave> thanks Zerot
[18:38:10] <robdubya> hola all
[18:38:21] *** bobby__ has joined #angularjs
[18:38:32] *** Dimlock has quit IRC
[18:38:45] <oniijin> howdy
[18:38:58] *** encryptd_fractl has quit IRC
[18:39:10] <bobby__> howdy
[18:39:29] *** PeterMetz has quit IRC
[18:40:21] *** jstroem has quit IRC
[18:40:33] *** kroogs has quit IRC
[18:40:56] *** mewm has joined #angularjs
[18:41:58] *** intellix has quit IRC
[18:42:00] *** jacuqesdancona__ has quit IRC
[18:42:32] *** jacuqesdancona__ has joined #angularjs
[18:42:54] *** RangerRick has quit IRC
[18:43:19] *** sneakertack has quit IRC
[18:43:21] *** fumblingfish has quit IRC
[18:43:32] *** richar___ has joined #angularjs
[18:43:56] *** richar___ has quit IRC
[18:44:05] *** richardbaker has quit IRC
[18:44:20] *** roymilder has joined #angularjs
[18:44:29] *** mattt_ has quit IRC
[18:44:39] *** richardbaker has joined #angularjs
[18:44:42] *** thedodd has quit IRC
[18:44:58] *** shorne has quit IRC
[18:45:04] *** bc___ has joined #angularjs
[18:45:05] *** RangerRick has joined #angularjs
[18:45:20] *** bc___ is now known as bc_
[18:45:27] *** bc_ has joined #angularjs
[18:45:34] <jonashw> hawdy
[18:45:36] *** Illianthe has joined #angularjs
[18:45:41] *** rabaznaz has joined #angularjs
[18:45:58] *** Xethron has quit IRC
[18:46:01] *** phuh has quit IRC
[18:46:29] *** phuh has joined #angularjs
[18:46:38] *** jacuqesdancona__ has quit IRC
[18:47:11] *** phuh has quit IRC
[18:47:11] *** mattt_ has joined #angularjs
[18:47:19] *** futuredale has joined #angularjs
[18:47:23] *** phuh has joined #angularjs
[18:48:12] <Siecje> So everytime I change routes to this one route I have to re-request all of the data I need. So I created a factory to get the data once. But now my scope variables are empty lists. https://dpaste.de/Tfbp
[18:48:28] *** encryptd_fractl has joined #angularjs
[18:49:04] *** phuh has joined #angularjs
[18:49:14] <jonashw> that's weird
[18:49:23] <oniijin> you're prob assigning before the $http reqs return
[18:49:24] *** phuh has quit IRC
[18:49:29] <jonashw> yep
[18:49:34] *** phuh has joined #angularjs
[18:49:35] <jonashw> you need to read about promises
[18:49:37] *** roymilder has quit IRC
[18:49:55] *** spencerwi has joined #angularjs
[18:49:57] <jonashw> angular.copy(data.bundles, _data.deliveryCategories);
[18:50:01] <jonashw> that's completely unnecessary
[18:50:02] *** jdj_dk has joined #angularjs
[18:50:07] <jonashw> just return the promise
[18:50:27] *** gnarMatix has joined #angularjs
[18:50:41] <oniijin> that code looks smelly
[18:50:44] <jonashw> very
[18:50:48] <Siecje> so return the promise and then do Objects.objPromise.then( $scope.obj = Objects.objs;)?
[18:50:56] <jonashw> better yet, use resolve
[18:51:24] <jonashw> have bundles, products, technologies, industries, actors, deliveryCategories as controller dependencies
[18:51:29] *** ngbot has joined #angularjs
[18:51:29] <ngbot> [angular.js] ealtenho pushed 1 new commit to master: http://git.io/5A7EmA
[18:51:29] <ngbot> angular.js/master 38bdb40 Erin Altenhof-Long: docs(e2e-testing): fix broken protractor docs link
[18:51:29] *** ngbot has left #angularjs
[18:51:50] *** RobinBAwesome has joined #angularjs
[18:51:58] *** Joseph_Silber is now known as everyone
[18:52:02] <jonashw> then setup a resolve for each value, where the service is called for each individual value. because angular routes respect promises intrinsicly, your view won't be rendered until all data is available
[18:52:09] *** everyone is now known as JosephSilber
[18:52:14] *** brianturgeon has quit IRC
[18:52:17] <Siecje> jonashw so add Objects.bundles in the controller function parameter?
[18:52:36] *** caitp has joined #angularjs
[18:52:39] *** phuh has quit IRC
[18:52:43] <jonashw> Siecje, sorta.. let me show you some altered code
[18:52:56] *** roymilder has joined #angularjs
[18:53:14] *** phuh has joined #angularjs
[18:53:29] <jonashw> Siecje, so the objective of _data is to cache the data you grab from the server?
[18:53:45] *** conner_ has joined #angularjs
[18:53:46] *** spencercarnage has quit IRC
[18:53:51] <Siecje> yeah so that when I go back to that route I don't have to request it again.
[18:53:55] <jonashw> ok
[18:55:00] *** cthrax_ has quit IRC
[18:55:11] *** jdj_dk has quit IRC
[18:55:41] *** jtimon has joined #angularjs
[18:55:58] *** bkuberek_ has joined #angularjs
[18:56:18] *** RaphaelRocca has quit IRC
[18:56:31] <robdubya> austin is at a total standstill. OBAMA!!!
[18:56:40] *** DigitallyBorn has quit IRC
[18:56:44] <jonashw> robdubya, shush
[18:56:55] <oniijin> dont remind me robdubya
[18:57:03] <robdubya> but i want breaaakkkkfaaast
[18:57:05] *** tfennelly has quit IRC
[18:57:13] *** TheAceOfHearts has joined #angularjs
[18:57:21] *** OnkelTem has quit IRC
[18:57:35] *** caitp has quit IRC
[18:58:20] *** OnkelTem has joined #angularjs
[18:58:23] *** spencercarnage has joined #angularjs
[18:58:24] *** bkuberek has quit IRC
[18:58:26] *** thedodd has joined #angularjs
[18:58:27] *** bphogan is now known as bphogan_afk
[18:58:45] *** Johnny13371337 has joined #angularjs
[18:58:52] *** KernelCurry has joined #angularjs
[18:59:23] *** rodyhaddad has joined #angularjs
[18:59:33] *** bc_ has quit IRC
[18:59:33] *** bc__ has quit IRC
[18:59:35] *** wilmoore has joined #angularjs
[19:00:01] *** enigmarm has joined #angularjs
[19:00:06] *** tilgovi has quit IRC
[19:00:33] *** fedenunez has joined #angularjs
[19:01:00] *** cthrax_ has joined #angularjs
[19:01:23] *** mattwynne has joined #angularjs
[19:01:30] *** disorder20 has quit IRC
[19:01:35] <jonashw> Siecje, can you show me the code for your route?
[19:01:54] *** DigitallyBorn has joined #angularjs
[19:01:56] *** whunt has joined #angularjs
[19:02:10] <Siecje> jonashw: https://dpaste.de/3OWk
[19:02:16] *** vintik has joined #angularjs
[19:02:20] *** wallerdev has joined #angularjs
[19:02:26] *** klaut has quit IRC
[19:02:31] *** DigitallyBorn has quit IRC
[19:02:38] *** Bade has quit IRC
[19:03:12] *** ingsoc has quit IRC
[19:03:16] *** Gu_______ has quit IRC
[19:03:47] *** azureknight has joined #angularjs
[19:03:47] *** nicholaswyoung has quit IRC
[19:03:48] *** acconrad has quit IRC
[19:04:08] *** DigitallyBorn has joined #angularjs
[19:04:09] *** ccohn has quit IRC
[19:04:13] *** sk87 has quit IRC
[19:04:33] *** illume has quit IRC
[19:04:36] *** roolo has quit IRC
[19:04:39] <jonashw> Siecje, https://dpaste.de/V1GS#L
[19:04:43] *** ccohn has joined #angularjs
[19:04:47] *** bengillies has quit IRC
[19:04:48] *** johnstorey has joined #angularjs
[19:04:53] *** Jdubs has joined #angularjs
[19:05:06] <jonashw> basically, I restructured your service and added a resolve clause to your route definition
[19:05:31] *** guilbep has quit IRC
[19:05:36] <jonashw> I haven't run this code, so there are probably some typos
[19:05:43] *** bphogan_afk is now known as bphogan
[19:05:50] <jonashw> but it's the strategy I'm trying to convey to you anyway
[19:05:59] *** Aliks has joined #angularjs
[19:06:07] <Siecje> so every route that needs those objects I need to add to resolve.
[19:06:17] <jonashw> yep
[19:06:20] <Siecje> Also won't it wait till it has those objects before changing routes?
[19:06:22] <jonashw> it's not as bad as it sounds
[19:06:28] <jonashw> yes
[19:06:43] *** maurycyg has quit IRC
[19:06:44] <oniijin> think about the laternative
[19:06:49] <oniijin> alternative(
[19:07:05] <oniijin> you change routes before it resolves, and you end up with empty []
[19:07:14] *** matiasow has joined #angularjs
[19:07:14] <Siecje> I was also thinking of adding Objects to the Login controller so that it would retrieve the objects while the user was logging in
[19:07:19] <jonashw> otherwise, you have to resolve the promises in your controller... not DRY
[19:08:11] <Siecje> jonashw: Thanks for typing that up. I'm going to use it.
[19:08:14] *** Ericx2x has joined #angularjs
[19:08:20] *** Kismet010 has joined #angularjs
[19:08:20] *** bobby__ has quit IRC
[19:08:28] *** dc_ has joined #angularjs
[19:08:35] <jonashw> Siecje, that's fine. I just want to point out that you weren't using promises or services correctly... I recommend you read up on both
[19:08:43] *** storkme has left #angularjs
[19:08:47] <jonashw> here's a promise intro: http://andyshora.com/promises-angularjs-explained-as-cartoon.html
[19:08:50] <oniijin> +1 on reading rec
[19:09:03] *** CptChaos has joined #angularjs
[19:09:04] *** floorz has quit IRC
[19:09:08] *** ccohn has quit IRC
[19:09:20] <jonashw> if you don't understand promises and services thoroughly, you are going to have a rough time as your app grows
[19:09:30] *** kenjamin_ has joined #angularjs
[19:09:41] *** chrisbirk has quit IRC
[19:09:57] *** xaxisx has quit IRC
[19:10:11] *** mattwynne has quit IRC
[19:10:22] *** stirling_ has joined #angularjs
[19:10:31] <robdubya> promises ftw
[19:10:37] *** eutheria has quit IRC
[19:10:43] *** maulik has joined #angularjs
[19:10:46] *** Hounddog has quit IRC
[19:11:02] *** xaxisx has joined #angularjs
[19:11:07] *** Fishy__ has joined #angularjs
[19:11:16] *** Somatt_wrk has joined #angularjs
[19:11:30] <maulik> Hi
[19:11:44] *** maulik has left #angularjs
[19:11:46] *** xaxisx has quit IRC
[19:11:48] <davek> Sooo bout that timeago filter.
[19:11:54] *** endash has quit IRC
[19:11:54] *** Fishy__ has joined #angularjs
[19:12:16] *** Jdubs has quit IRC
[19:12:27] <Somatt_wrk> hi
[19:12:39] *** acconrad has joined #angularjs
[19:12:42] *** Nijikokun has quit IRC
[19:13:03] *** tsalb has joined #angularjs
[19:13:13] <Aliks> So how do you guys decide between using emit/broadcast vs a callback?
[19:13:15] *** matiasow_ has joined #angularjs
[19:13:21] <Somatt_wrk> is there a way to catch an exception that is thrown within a 'resolve' (in ui-router, but I guess same appliyes anywhere) ?
[19:13:37] *** matiasow has quit IRC
[19:13:38] *** brownbathrobe has joined #angularjs
[19:13:50] <jonashw> Aliks, in my opinion, emit/broadcast should only be used if a callback/promise won't work
[19:13:50] *** Fishy has quit IRC
[19:13:57] *** InezK_away is now known as InezK
[19:14:02] <Aliks> jonashw: when would they not work? I guess that's actually my question.
[19:14:04] *** bzitzow has joined #angularjs
[19:14:06] *** Jdubs has joined #angularjs
[19:14:06] *** stirlingw has quit IRC
[19:14:09] <Somatt_wrk> Aliks: depends on whether you want tight coupling or not
[19:14:11] <robdubya> pretty much never
[19:14:12] *** lite_ has joined #angularjs
[19:14:18] <Aliks> robdubya: yeah that's what I thought
[19:14:19] *** chrisbirk has joined #angularjs
[19:14:19] <robdubya> :D
[19:14:26] *** ccohn has joined #angularjs
[19:14:30] <Aliks> so is $emit/$broadcast considered harmful, generally?
[19:14:32] *** kbalderson has joined #angularjs
[19:14:41] <jonashw> in my opinion, yes
[19:14:43] <robdubya> perhaps not harmful, but typcially its ungular, yea
[19:14:48] <Somatt_wrk> not if many things could use that same hook
[19:14:56] <jonashw> it depends on the use case
[19:15:07] <jonashw> but of course, I find I never need $emit/$broadcast
[19:15:11] <oniijin> tight coupling sounds hawt
[19:15:11] *** mikehaas763 has quit IRC
[19:15:21] *** MTGap has joined #angularjs
[19:15:24] <oniijin> sounds like a lot of rope
[19:15:25] <robdubya> one thing about emit/broadcast is that it ties your code to angular very specifically
[19:15:25] <Aliks> Somatt_wrk: but even if 100 components are firing the same event, they could all just call the same callback as well
[19:15:33] *** jareddlc has joined #angularjs
[19:15:36] *** oisinh_ has quit IRC
[19:15:40] *** Serdar has joined #angularjs
[19:15:42] <robdubya> whereas callbacks / promses are interoperable
[19:15:48] *** Fishy has joined #angularjs
[19:16:07] <Aliks> robdubya: well in particular I mean things like <directive success-callback="something">
[19:16:09] <jonashw> Aliks, maybe an example would help. Do you have something in mind?
[19:16:11] *** stirling_ has quit IRC
[19:16:16] <Aliks> vs that directive just firing $emit
[19:16:22] *** mennea has joined #angularjs
[19:16:26] <Aliks> and the parent catching it and calling something() itself
[19:16:28] <jonashw> oh, definitely the first is better. it's explicit
[19:16:31] <robdubya> agreed
[19:16:47] *** stirlingw has joined #angularjs
[19:16:59] <jonashw> global events are magic, out-of-sight affairs that are prone to soupiness
[19:17:03] <Aliks> yeah, for a minute I was thinking that emit would be better for metaprogramming, less "hooking things up", but then I realized I would do the same amount of hooking things up within the $on
[19:17:23] *** Fishy__ has quit IRC
[19:17:30] *** artisangoose has joined #angularjs
[19:17:35] <Aliks> jonashw: well, one reasonable restriction would be to require the earliest possible parent to handle the event and then stop propogation
[19:17:37] <jonashw> favor explicit declarations over implicit.. you will thank yourself later
[19:18:21] <jonashw> Aliks, yes that is a valid use case for events
[19:18:36] <robdubya> if you're doing the typical "hook a widget up to a controller"
[19:18:49] *** jbourassa has joined #angularjs
[19:18:55] <Aliks> jonashw: but it seems metaprogramming could also be accomplished using explicit callbacks to a single handler that does the metaprogramming
[19:18:59] <robdubya> you want explicit callbacks
[19:19:07] <jonashw> Aliks, yes, but why?
[19:19:08] <Aliks> (which is basically what $emit does for all events with the same name)
[19:19:08] *** milka has quit IRC
[19:19:18] <Aliks> jonashw: explicitness
[19:19:25] <jonashw> haha, oh I misread your comment
[19:19:39] *** pkayfire has joined #angularjs
[19:19:45] *** chrisbirk has quit IRC
[19:20:10] <Aliks> so now I'm trying to wrap my head around why people ever use events... I guess it's mostly useful in UI when we just don't know what object knows how to handle something
[19:20:24] *** zaal_ has quit IRC
[19:20:30] <jonashw> that's true
[19:20:39] <Aliks> but it seems that when building Angular apps we always know who the eventual handler is
[19:20:43] <jonashw> angular eliminated most need for events with 2-way binding
[19:21:11] <oniijin> stop thinking about it from DOM, and think about it from data
[19:21:19] <jonashw> 100% agreed
[19:21:30] *** acconrad has quit IRC
[19:21:33] <oniijin> if you're looking at it the JQ way, then yeah, it won't make sense that you don't have events and callback orgies
[19:21:34] <jonashw> see http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background
[19:21:55] *** xaxisx has joined #angularjs
[19:21:59] <oniijin> mmm callback orgies. new party idea
[19:22:01] <wafflejock> I think the place for events is when you want to communicate out to parent components that something happened to some child and that's it really
[19:22:15] *** Milanito has quit IRC
[19:22:31] <davek> Broadcast and bubble up.
[19:22:53] <davek> Those are the critical features of events.
[19:22:57] <wafflejock> just like how browser events are generally just notifying you of some interaction that occurred on an element
[19:23:17] <robdubya> oly thing i use events for is ui-router errors
[19:23:29] <robdubya> and thats only cuz there's no other choice
[19:23:36] *** InezK is now known as InezK_away
[19:23:46] <oniijin> sweepunderrug.js
[19:23:49] <jonashw> robdubya, same here
[19:23:50] <wafflejock> yeah so far I can't think of a situation where I ended up landing on using events for communciation
[19:24:44] *** chrisbirk has joined #angularjs
[19:24:56] *** bkuberek_ has quit IRC
[19:25:05] <Aliks> yeah, I guess the reason I was thinking to use them was to avoid putting "wiring things up" code in my HTML, but that's just a vestige of avoiding putting JS in HTML...
[19:25:20] <jonashw> yep, I understand where you're coming from
[19:25:22] <Aliks> whereas in Angular the "HTML" is really "view code"
[19:25:34] <Aliks> in a DSL
[19:25:36] <jonashw> "don't ever use on-click, it's putting JS in your HTML. JS and HTML should be separate"
[19:25:42] *** zaal has joined #angularjs
[19:25:43] <Aliks> jonashw: exactly
[19:25:48] <jonashw> so, ng-click feels wrong, right?
[19:25:54] *** bkuberek_ has joined #angularjs
[19:25:59] *** vonnegut has joined #angularjs
[19:26:02] <Aliks> it does
[19:26:12] <jonashw> well, it's actually right
[19:26:14] <jonashw> more right than you know
[19:26:18] <nickeddy> ^
[19:26:18] <oniijin> lol
[19:26:21] <nickeddy> :P
[19:26:25] <Aliks> jonashw: care to explain?
[19:26:32] *** krawchyk_ has joined #angularjs
[19:26:37] *** Emperor_Earth has joined #angularjs
[19:26:38] <jonashw> it's the simplest way to declare what a button does when clicked
[19:26:44] *** narutimateum has joined #angularjs
[19:26:48] *** krawchyk_ has quit IRC
[19:26:57] *** slainer68 has quit IRC
[19:27:00] <Aliks> but so is on-click
[19:27:02] <nickeddy> jquery way would be doing it in javascript by getting some id of the button = :|
[19:27:13] *** Emperor_Earth_ has quit IRC
[19:27:16] *** karloboy has quit IRC
[19:27:35] *** krawchyk has quit IRC
[19:27:50] *** disorder20 has joined #angularjs
[19:28:07] <jonashw> Aliks, I argue that on-click could be valid too
[19:28:09] *** krawchyk_ has joined #angularjs
[19:28:16] <jonashw> but only if it's declarative
[19:28:19] *** krawchyk_ has quit IRC
[19:28:23] <jonashw> ie: on-click="addItem()"
[19:28:29] <Aliks> right
[19:28:36] <Aliks> yeah the one thing I don't like is when people do complicated logic in the view
[19:28:39] <jonashw> if you are doing anymore than just calling an API, you're doing it wrong
[19:28:51] <Aliks> agreed
[19:28:55] <Aliks> I suppose the other thing is, an explicit callback in a view template means we have 3 places that may need to change, vs 2...
[19:29:05] *** Maria__ has quit IRC
[19:29:06] <jonashw> example?
[19:29:07] <Aliks> for example, if you have $emit/$on you just have the name of the event in 2 places
[19:29:15] <Aliks> $emit('event'.... $on('event ...
[19:29:24] <nickeddy> wait what
[19:29:28] <jonashw> that's no example
[19:29:31] *** shackleford has quit IRC
[19:29:32] <Aliks> hang on
[19:29:32] <nickeddy> ng-click > $emit/$on
[19:29:35] *** krawchyk has joined #angularjs
[19:29:38] <nickeddy> don't do that
[19:29:39] <Aliks> I'm not talking about ng-click
[19:29:43] <Aliks> moved on to something else
[19:29:43] <nickeddy> please, for the sake of your children
[19:29:48] <nickeddy> oh okay
[19:29:53] <Aliks> this is back to the other conversation about $emit/$on vs callbacks
[19:29:56] <jonashw> think of the children
[19:29:58] *** mindlace has joined #angularjs
[19:30:08] *** Evanion has joined #angularjs
[19:30:12] *** krawchyk has quit IRC
[19:30:34] <Evanion> Hello, anyone have any experience with Restangular and ui-router?
[19:30:37] <Aliks> whereas otherwise you have <dir callback="callback">, in the controller you have somePromise.then(callback())... and you have to define the callback somewhere (in a parent scope)
[19:30:46] *** dweave has quit IRC
[19:30:53] <vonnegut> yeah.. what do people think of Restangular vs $resource
[19:30:55] <Aliks> so 3 places you see callback, vs 2 'event'
[19:30:59] <vonnegut> $resource seems more staight forward
[19:31:00] <vonnegut> to me
[19:31:10] <vonnegut> but, people keep singing the praises of restangular.
[19:31:15] <vonnegut> what say you?
[19:31:18] <jonashw> Aliks, that doesn't sound like a downside
[19:31:22] <nickeddy> vonnegut: restangular is good in my opinion
[19:31:27] <Aliks> jonashw: no?
[19:31:30] *** DrShoggoth has joined #angularjs
[19:31:31] *** whunt has quit IRC
[19:31:46] <Aliks> jonashw: I'm also thinking of shorter/less configured code as better
[19:31:49] <nickeddy> vonnegut: really easy to use if your API is restful and done right
[19:31:51] *** krawchyk has joined #angularjs
[19:31:54] <Aliks> jonashw: so in general giving preference to metaprogramminge tc.
[19:32:06] <vonnegut> hmm.. i think ill drop it in right now and start playing with it.
[19:32:20] <vonnegut> my api is restful (on wildfly, ie. resteasy)
[19:32:26] *** daslicht has quit IRC
[19:32:26] <jonashw> Aliks, yes generally. I'm still not sure what you are actually doing with your callback. maybe there is some other issue
[19:32:42] <Aliks> jonashw: this is all theoretical, just thinking about best practices
[19:32:45] <Evanion> Because we are experiencing some issues with Restangular and ui-router … they don’t seem to want to play nice together...
[19:32:55] <jonashw> well, there is no best practice for such a vague use case
[19:32:57] *** krawchyk has quit IRC
[19:32:58] *** RobinBAwesome_ has joined #angularjs
[19:33:05] <Aliks> jonashw: I was about to do something with $emit/$on, then realized I could use a callback, and then couldn't think of any cases where I couldn't do that
[19:33:07] *** stirling_ has joined #angularjs
[19:33:13] <jonashw> ok
[19:33:17] <Aliks> jonashw: so I thought maybe it was generalizable, which I thought I'd discuss here
[19:33:19] *** MagnusO has joined #angularjs
[19:33:23] *** tfennelly has joined #angularjs
[19:33:25] <Aliks> jonashw: and it sounds like that is a generalizable best practice
[19:33:27] <vonnegut> nickeddy, what do you think restangular does better then $resource?
[19:33:33] *** RobinBAwesome has quit IRC
[19:33:33] *** RobinBAwesome_ is now known as RobinBAwesome
[19:33:34] *** nicholaswyoung has joined #angularjs
[19:33:36] <jonashw> I see. Well, you are right in noticing the similarities in what can be achieved with the two approaches
[19:33:54] <Aliks> vonnegut: watch the video on the Restangular site by the creator of Restangular... he explains exactly this for about 30 minutes
[19:34:00] *** bberry has joined #angularjs
[19:34:03] *** mattwynne has joined #angularjs
[19:34:04] <jonashw> and noticing the differences in syntax/architecture required for each is important
[19:34:04] <nickeddy> vonnegut: i believe $resource isn't built on $http? or it does something weird with promises, i forget
[19:34:07] <nickeddy> there's some reason
[19:34:22] *** xaxisx has quit IRC
[19:34:28] <vonnegut> ok. will check it out. one thing i dont love about $reource is it seems to do some stuff by magic
[19:34:30] *** tfennelly has quit IRC
[19:34:32] <vonnegut> too black box
[19:34:39] <vonnegut> and im getting some wierd stuff i cant debug atm
[19:34:44] <Aliks> jonashw: the only thing that I wonder is, am I losing any kind of flexibility with the callbacks... any flexibility that I want or need...
[19:34:48] <jonashw> Aliks, I would say that best practice is to favor callbacks/promises until you have a situation that obviously calls for an event
[19:34:48] <Aliks> jonashw: but it seems like no...
[19:34:54] *** whunt has joined #angularjs
[19:35:02] <vonnegut> it makes we want to go back to $http
[19:35:07] <Aliks> jonashw: I can't think of a case where I would include a component and not know who should handle the component's events
[19:35:10] *** maverick007 has joined #angularjs
[19:35:13] <vonnegut> so, maybe restangular is a happy medium
[19:35:15] <jonashw> Aliks, in my experience, the vague desire for 'flexibility' is a red herring
[19:35:19] <vonnegut> bit i worry about bloat
[19:35:23] *** tfennelly has joined #angularjs
[19:35:23] <MagnusO> Hi I got a weird issue direlcy I adding var app = angular.module('sj-admin', [ 'ui.router', 'ui.utils', 'Restangular' ]); I getting unchaching object
[19:35:27] *** whalesalad has joined #angularjs
[19:35:27] *** mattwynne has quit IRC
[19:35:39] <nickeddy> vonnegut: actually it is based on $http and it does use promises, but the way you do the resource calls is wonky in my opinion. shouldn't have to make your requests to /blah/:id/someshit, restangular handles the URL building
[19:35:41] *** bc_ has joined #angularjs
[19:35:43] <MagnusO> any idea why
[19:35:47] *** stirlingw has quit IRC
[19:35:49] *** xaxisx has joined #angularjs
[19:35:54] *** bc___ has joined #angularjs
[19:35:57] *** kroogs has joined #angularjs
[19:36:01] *** brownbathrobe has quit IRC
[19:36:06] <vonnegut> hmm.. ok.. ill scale the restangular learning curve today.
[19:36:10] <jonashw> Aliks, you should try both approaches. do a project with only events and another with callbacks. compare
[19:36:19] <nickeddy> vonnegut: sure let me know if you need help
[19:36:24] <Aliks> jonashw: so for example if I was adding instrumentation, some click counter or something... I could do that using a service rather than emitting and handling things really high up..
[19:36:40] *** bbankes has joined #angularjs
[19:36:44] *** zouave has joined #angularjs
[19:36:46] <jonashw> Aliks, yeah
[19:36:47] <Aliks> jonashw: yeah unfortunately that may take a lot of time to get a good comparison... small projects don't necessarily show how things would be in large scale
[19:37:05] *** Nijikokun has joined #angularjs
[19:37:26] <jonashw> Aliks, it sounds to me that you already understand when to use each approach
[19:37:28] <zouave> Hey guys, I have a directive that needs to grab an attr but also establish a two-way data binding with a variable in the controller...I just cannot get it to work for the life of me
[19:37:58] <Aliks> jonashw: maybe, but I always like to question it even if I think I know the answer
[19:38:04] <Aliks> jonashw: sometimes I'm surprised how stupid I am
[19:38:07] <Aliks> :-P
[19:38:12] <MagnusO> I am trying using Restangular I getting whole time unchacing object direlcy when I adding Restangluar
[19:38:14] *** zumba_addict has joined #angularjs
[19:38:19] <jonashw> yeah, I know the feeling
[19:38:30] *** Natsu- has quit IRC
[19:38:45] *** xaxisx has joined #angularjs
[19:38:53] <MagnusO> do anyone have hint what have gone wrong ?
[19:39:05] <jonashw> I can't understand what you've written, so there's that
[19:39:14] <vonnegut> thanks nickeddy
[19:39:19] <oniijin> lol
[19:39:49] *** cthrax_ has quit IRC
[19:39:58] *** xaxisx has quit IRC
[19:40:06] <jonashw> MagnusO, your question is unintelligable. I think that's why nobody has tried to answer it
[19:40:10] *** dweave has joined #angularjs
[19:40:14] *** kalusn has joined #angularjs
[19:40:20] <jonashw> unintelligible*
[19:40:47] *** kroogs has quit IRC
[19:40:47] <nickeddy> yeah i can't decipher that either
[19:40:48] <oniijin> prob google translate
[19:40:51] *** intellix has joined #angularjs
[19:40:57] <zumba_addict> hi folks. Our backend is generated report as csv files. I make a POST to get the resourcedId which I will use to download the csv file. When I request it and the file isn't completed yet, I'll get a 404 with a message saying "Report is still being generated'. How can I keep on making the 2nd call retry?
[19:41:02] *** chrisbirk has quit IRC
[19:41:04] <MagnusO> I try exampain again then. I have install restangular I have put Restangular in my app config as u should when I run my angluarjs app I getting Uncaught object
[19:41:19] <oniijin> uncaught obj what
[19:41:27] *** Kenis has joined #angularjs
[19:41:28] <MagnusO> when I remove restangular it works fine
[19:41:28] <oniijin> usually tells u line number or something so you can reference
[19:41:31] <nickeddy> zumba_addict: this is probably an awful thing, i'd recommend just notifying them to try again later
[19:41:34] *** bc_ has quit IRC
[19:41:35] <oniijin> do u have all the deps
[19:41:36] *** bc___ is now known as bc_
[19:41:41] *** bc_ has quit IRC
[19:41:41] *** bc_ has joined #angularjs
[19:41:56] <MagnusO> oniijin: I think so yes
[19:42:02] <nickeddy> zumba_addict: otherwise, a for loop with a timeout for the request to go over and over until you don't get a 404? i don't know
[19:42:06] <zumba_addict> nickeddy: i remember seing a solution but I couldn't remember it
[19:42:08] *** snurfery has joined #angularjs
[19:42:09] *** Kenis has quit IRC
[19:42:13] <zumba_addict> no it's not loop
[19:42:15] <vonnegut> nickeddy? is this the video you recommeded? https://www.youtube.com/watch?v=eGrpnt2VQ3s
[19:42:27] <zumba_addict> ah, I think it's interceptinghttp traffic
[19:42:29] <nickeddy> vonnegut: https://github.com/mgonto/restangular#lets-code
[19:42:36] *** krawchyk has joined #angularjs
[19:42:48] <nickeddy> vonnegut: look at that first, and try something like that for your API
[19:43:00] *** waylon999 has quit IRC
[19:43:03] <MagnusO> oniijin: I can paste only the app.js file if it help figout why
[19:43:06] <vonnegut> k. ty. (yeah this is nice and straight forward)
[19:43:27] <nickeddy> np
[19:43:36] <oniijin> i havent used restangular so wouldnt really know.
[19:43:43] <jonashw> zumba_addict, what you describe isn't out of the question. it could be achieved with an async recursion using setTimeout
[19:43:52] <nickeddy> oniijin: shame on you! :P
[19:43:54] <MagnusO> I have same issue with ngcookies
[19:43:55] <zumba_addict> ok
[19:43:58] *** Sebastien-L has quit IRC
[19:44:05] *** walden|lunch is now known as walden
[19:44:34] <nickeddy> jonashw: don't use setTimeout, use $timeout
[19:44:42] <oniijin> MagnusO looks like only dep is lodash
[19:44:44] <jonashw> right, use $timeout
[19:44:51] *** patricka_ has joined #angularjs
[19:44:57] <jonashw> here's a potential solution without $timeout: http://stackoverflow.com/questions/19595886/angularjs-service-retry-when-promise-is-rejected
[19:45:00] *** mikedevita has joined #angularjs
[19:45:13] <oniijin> tho if it was dep issue it wouldnt say unknown obj
[19:45:15] *** AngularUI has joined #angularjs
[19:45:15] <AngularUI> [bootstrap] myitcv opened pull request #2440: Add Travis build against 1.3.0-beta.N (master...travis-two-builds) http://git.io/yTJVFg
[19:45:15] *** AngularUI has left #angularjs
[19:45:16] <jonashw> the reason I recommended $timeout is to avoid hammering your backend
[19:45:30] <jonashw> zumba_addict, see my link above
[19:45:32] <nickeddy> jonashw: yeah i agree with that zumba_addict
[19:45:38] <zumba_addict> awesome
[19:45:42] *** jkremser has quit IRC
[19:45:45] *** mikedevita is now known as ndboost[work]
[19:45:52] <zumba_addict> thanks a lot!!!
[19:45:58] *** narutimateum has quit IRC
[19:46:00] <snurfery> sup yall
[19:46:04] <jonashw> sup homie
[19:46:11] *** Schtive has quit IRC
[19:46:11] <nickeddy> yo snurfery
[19:46:12] *** Tomdarkness has quit IRC
[19:46:14] <snurfery> chillin.
[19:46:25] <oniijin> things that bounce thursday is what's up
[19:46:53] *** mikehaas763 has joined #angularjs
[19:47:01] *** richardbaker has quit IRC
[19:47:04] <Aliks> jonashw: ok here's a use of $emit in the real world... angular-file-upload... <ng-file-select> emits file:add... then adds $rootScope.on('file:add') to handle it
[19:47:30] <jonashw> this one? https://github.com/danialfarid/angular-file-upload
[19:47:35] <Aliks> jonashw: yes
[19:47:38] *** patrickarlt has quit IRC
[19:48:06] *** siddart has quit IRC
[19:48:25] <Aliks> jonashw: so apparently it's trying to take all the ng-file-selects anywhere on the page, and add all the files to upload to a single queue
[19:48:41] <jonashw> yeah, that makes sense
[19:48:43] <Aliks> but I wonder why they don't use a fileUploadService.addToQueue ??
[19:48:55] <Aliks> they could have some internal service for this
[19:48:57] <jonashw> what source file are you looking at?
[19:48:59] *** phuh has quit IRC
[19:49:01] <Aliks> angular-file-upload.js
[19:49:09] <jonashw> hmm, I don't find any $emit in there
[19:49:24] *** phuh has joined #angularjs
[19:49:27] <Aliks> maybe I have an old version...
[19:49:37] <Aliks> ~0.5
[19:49:42] <jonashw> I'm looking at 1.5
[19:49:51] *** dylukes has quit IRC
[19:49:54] <jonashw> maybe the author realized the event wasn't best in this circumstance
[19:50:00] <jonashw> https://raw.githubusercontent.com/danialfarid/angular-file-upload/master/dist/angular-file-upload.js
[19:50:10] <Aliks> yeah that's why...
[19:50:13] *** raghunayyar has joined #angularjs
[19:50:14] <Aliks> it's 1.5.0 now
[19:50:28] <Aliks> unless this is a different lib... so different now... wow
[19:50:37] <Aliks> ah yes
[19:50:38] <Aliks> https://github.com/nervgh/angular-file-upload
[19:50:42] <jonashw> ah, different
[19:50:45] *** mehlah has quit IRC
[19:50:49] *** startupality has quit IRC
[19:50:50] *** Nizumzen has quit IRC
[19:51:01] *** lordkryss has joined #angularjs
[19:51:02] *** maverick007 has quit IRC
[19:51:19] *** hecatonicosachor has joined #angularjs
[19:51:23] <jonashw> well, the libraries are comparable. one uses $emit and the other doesn't
[19:51:24] <Aliks> yeah this nervgh is using $emit/$on, but perhaps his library is not a good example
[19:51:38] *** krawchyk has quit IRC
[19:52:04] *** J0514H has quit IRC
[19:52:06] <jonashw> well, I wouldn't treat most code as scripture. just because someone did it doesn't mean they had a god-given reason to do it
[19:52:29] *** floorz has joined #angularjs
[19:52:31] <Aliks> jonashw: right... and it's pretty obvious how to use a service vs $emit/$on in nervgh's case
[19:52:36] *** Ericx2x has quit IRC
[19:52:43] *** mindlace has quit IRC
[19:52:44] <Aliks> emitting and handling on $rootScope seems really wasteful
[19:52:49] <jonashw> to me too
[19:53:06] <jonashw> especially if the scope of your problem isn't actually global
[19:53:20] *** caitp has joined #angularjs
[19:53:21] *** stirling_ has quit IRC
[19:53:53] *** stirlingw has joined #angularjs
[19:54:11] *** J0514H has joined #angularjs
[19:54:17] *** sacho_ has quit IRC
[19:54:19] *** siddart has joined #angularjs
[19:54:22] <Aliks> jonashw: angular-ui-router uses $emit/$on with '$viewContentLoading' etc.
[19:54:35] <jonashw> yep, it's a good example
[19:54:50] <jonashw> I subscribe to those events so I can display loading/error messages
[19:55:12] <jonashw> ie. $rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams){
[19:55:12] <jonashw> Messaging.error('Uh oh, there was a problem');
[19:55:13] <jonashw> console.log("State Change: Error!",event,toState,toParams,fromState,fromParams);
[19:55:13] <jonashw> });
[19:55:17] <MagnusO> oniijin: I install it now and config it did not work
[19:55:19] *** dbouwman has quit IRC
[19:55:43] <Aliks> jonashw: and the alternative would be to subscribe every directive that cares to a global publisher, which is exactly what $emit/$on provides
[19:55:46] <orion1111> Anyone got book Mastering AngularJS Directives ?
[19:56:02] <orion1111> It is worth buying?
[19:56:12] <Siecje> jonashw: I still need to do .data.bundles in the controller. https://dpaste.de/YVoW#L38,39
[19:56:14] <Aliks> jonashw: or using the callback approach, we'd need to litter every directive everywhere and all their children with on-view-loading, on-view-success, etc. in order to pass it down the hierarchy
[19:56:49] *** krawchyk has joined #angularjs
[19:57:14] <jonashw> yep
[19:57:33] <jonashw> events are great when the consumers are many and/or varied
[19:57:43] <Aliks> jonashw: yeah I was just realizing the same generalization...
[19:57:45] <jonashw> the coupling is really loose
[19:58:11] *** caitp has quit IRC
[19:58:13] <jonashw> it's so loose that if you use it improperly, you end up with even tighter coupling of another variety
[19:58:14] <Aliks> jonashw: so callbacks almost always, $emit/$broadcast/$on when unknown and potentially any objects on the page might want to know about the event
[19:58:17] *** lite_ has quit IRC
[19:58:28] <jonashw> Aliks, yeah, that's a pretty good general rule
[19:58:31] <Aliks> jonashw: if a large percentage of the views on the page might care about the event, we wouldn't want to litter our directives with handlers
[19:59:42] <jonashw> Aliks, note also that you can add your own implementation of the observer pattern on services... it gives some of the same benefits of $emit/$on but without being global
[19:59:55] *** ndboost[work] has quit IRC
[20:00:03] *** krawchyk has quit IRC
[20:00:04] *** JohnBat26 has quit IRC
[20:00:26] <Aliks> right, which I guess is the middle ground when a large number of objects might care about the event, but they're knowable in advance and few enough that hooking them up like that isn't a burden
[20:00:27] *** FIFOd[a] has quit IRC
[20:00:39] <jonashw> yeah
[20:00:40] *** kenjamin_ has quit IRC
[20:00:56] <Aliks> out of curiosity, are most people here from silicon valley?
[20:01:00] *** tangorri has quit IRC
[20:01:04] <jonashw> I find that the custom observer pattern is often a better fit than $rootscope.$emit/$on
[20:01:20] <jonashw> I live in northern california but not that exact location
[20:01:25] *** richardbaker has joined #angularjs
[20:01:26] <jonashw> by Sacramento
[20:01:34] <Aliks> jonashw: yeah, $broadcast and $emit would hit a large number of views that wouldn't care about the event
[20:01:48] <Aliks> jonashw: I'm actually from that area, but now I'm in the valley
[20:01:59] <Aliks> brb
[20:02:02] <Aliks> 5 min
[20:02:11] *** chrisbirk has joined #angularjs
[20:02:53] *** heidi has joined #angularjs
[20:03:08] *** apetro_ has joined #angularjs
[20:03:15] *** mikehaas763 has quit IRC
[20:03:17] *** olveraricardo72 has joined #angularjs
[20:03:36] *** hugorodrigues has joined #angularjs
[20:04:04] *** krawchyk has joined #angularjs
[20:04:08] *** whunt_ has joined #angularjs
[20:04:14] *** apetro_ has quit IRC
[20:04:27] *** krawchyk has quit IRC
[20:04:38] *** theSrge has joined #angularjs
[20:04:49] *** apetro_ has joined #angularjs
[20:05:22] *** bade has joined #angularjs
[20:05:33] *** Malone has joined #angularjs
[20:05:42] *** whalesalad has quit IRC
[20:06:34] *** whunt has quit IRC
[20:06:43] *** stevvooe has joined #angularjs
[20:07:14] *** akrikos has joined #angularjs
[20:07:18] *** krawchyk has joined #angularjs
[20:07:38] *** danizord has quit IRC
[20:07:44] *** krawchyk has quit IRC
[20:08:03] *** enigmarm has quit IRC
[20:08:12] *** Ericx2x has joined #angularjs
[20:08:30] *** djam90 has joined #angularjs
[20:09:06] *** shackleford has joined #angularjs
[20:09:35] *** apetro_ has quit IRC
[20:09:56] <theSrge> hey, is anyone able to help me figure out why data-binding isn't working? Here's my plunkr: http://plnkr.co/edit/9nLh2t7LiluPjvFbaSga
[20:10:06] *** danizord has joined #angularjs
[20:10:17] <jonashw> what isn't binding?
[20:10:30] *** jbarket has joined #angularjs
[20:11:04] <jonashw> woh, that's a big $watch fn
[20:11:05] <theSrge> everything lol!
[20:11:18] *** shackleford has quit IRC
[20:11:20] <jonashw> focus on one thing and I'll help you
[20:11:22] <theSrge> yeah plz tell me if I'm doing something wrong
[20:11:25] <jonashw> you are
[20:11:30] *** arizzo has joined #angularjs
[20:11:31] <theSrge> ...
[20:11:35] <jonashw> read above
[20:11:52] *** bkuberek has joined #angularjs
[20:12:02] *** t1mmen has quit IRC
[20:12:04] <jonashw> <jonashw> focus on one thing and I'll help you
[20:12:17] <jonashw> give me one variable that isn't binding like you'd expect and I'll tell you why
[20:12:18] <theSrge> alright
[20:12:38] *** sdarby has joined #angularjs
[20:12:39] <theSrge> how about getting total financing to be calculated every time property value is updated
[20:12:50] *** mac_ified has joined #angularjs
[20:13:04] <jonashw> totalFinancing?
[20:13:08] <jonashw> I don't see that
[20:13:16] *** krawchyk has joined #angularjs
[20:13:20] <theSrge> ah nm it's already working!
[20:13:29] <snurfery> heh
[20:13:31] *** krawchyk has quit IRC
[20:13:34] <jonashw> nailed it
[20:13:40] <jonashw> you're welcome
[20:13:52] *** matiasow_ has quit IRC
[20:14:05] *** Nek has joined #angularjs
[20:14:05] *** marcio_ has quit IRC
[20:14:18] <Aliks> back
[20:14:25] *** krawchyk has joined #angularjs
[20:14:26] <theSrge> what's the best way to bind several inputs to another input?
[20:14:30] <jonashw> Aliks, from an important silicon vallye meeting?
[20:14:36] *** krawchyk has quit IRC
[20:14:37] <theSrge> i saw "watchGroup" is coming in the new beta
[20:14:38] <Aliks> jonashw: not so important, but yeah
[20:14:44] *** bkuberek_ has quit IRC
[20:14:51] <jonashw> theSrge, with a function
[20:15:15] <jonashw> if the value you want is the combination of several others, you write a function that combines those values and returns one
[20:15:27] <theSrge> yeah, but I don't want to have to write a function every time, when one input depends on 5 others...
[20:15:27] <jonashw> you can't 2-way bind to that of course
[20:15:38] <jonashw> yeah, sorry you have to write code
[20:15:53] *** krawchyk has joined #angularjs
[20:15:57] *** orion1111 has quit IRC
[20:15:57] *** hecatonicosachor is now known as sacho
[20:16:08] <Aliks> jonashw: It actually occurred to me another reason to use $emit vs a pub/sub service
[20:16:25] *** Schtive has joined #angularjs
[20:16:26] <Aliks> $emit/$broadcast have the advantage of children/parents in the hierarchy being able to short-circuit the event propogation
[20:16:34] <jonashw> yeah, that's a big one
[20:16:34] <Aliks> so obvious that I wasn't thinking about it
[20:16:53] *** apetro_ has joined #angularjs
[20:17:05] *** pasquale has quit IRC
[20:17:23] *** nanoyak has joined #angularjs
[20:17:33] *** chrisbirk has quit IRC
[20:18:29] *** intellix has quit IRC
[20:18:39] *** zouave has quit IRC
[20:18:50] *** Illianthe2 has joined #angularjs
[20:18:52] *** fladder has joined #angularjs
[20:19:00] *** Evanion has quit IRC
[20:19:25] <apipkin> Talk went great!
[20:19:37] *** badon_ has joined #angularjs
[20:19:43] *** Illianthe has quit IRC
[20:20:04] *** badon has quit IRC
[20:20:13] *** gnarMatix has quit IRC
[20:20:23] *** lordkryss has quit IRC
[20:20:29] *** bphogan is now known as bphogan_afk
[20:20:29] *** chrisbirk has joined #angularjs
[20:20:41] <jonashw> apipkin, you just gave a talk?
[20:20:59] <apipkin> jonashw: aye! About angular at my company :)
[20:21:02] *** apetro_ has quit IRC
[20:21:21] <jonashw> nice, how'd it go?
[20:21:26] <jonashw> other than great
[20:21:27] <jonashw> lol
[20:21:31] *** MagnusO has quit IRC
[20:21:41] <apipkin> Haha It went really well. I didn’t throw up or anything :P
[20:22:01] <jobelenus> lol
[20:22:03] *** wallerdev has quit IRC
[20:22:12] *** nanoyak_ has joined #angularjs
[20:22:17] <apipkin> Some really good questions came out of it and I heard people afterwards saying “I think angular is going to be really good for <some other project>"
[20:22:43] *** badon_ is now known as badon
[20:22:59] <snurfery> nice
[20:22:59] <theSrge> @jonashw: so like this? http://plnkr.co/edit/9nLh2t7LiluPjvFbaSga
[20:23:18] *** nanoyak has quit IRC
[20:23:26] *** SomeKittens has quit IRC
[20:23:39] *** fladder has left #angularjs
[20:23:50] *** nicholaswyoung has quit IRC
[20:24:39] *** Click66___ has quit IRC
[20:25:12] *** bphogan_afk is now known as bphogan
[20:25:42] *** shackleford has joined #angularjs
[20:26:05] *** Ericx2x_ has joined #angularjs
[20:26:34] *** shackleford has quit IRC
[20:26:34] *** LossFor has quit IRC
[20:26:49] *** shackleford has joined #angularjs
[20:26:58] *** Ericx2x has quit IRC
[20:27:35] *** sigurding has joined #angularjs
[20:27:37] <jonashw> theSrge, what in particular?
[20:27:59] *** mtsr has joined #angularjs
[20:28:00] <theSrge> the way I just added a function to $scope
[20:28:03] *** krawchyk has quit IRC
[20:28:10] <theSrge> and then triggered that with different watchers...
[20:28:21] *** SomeKittens has joined #angularjs
[20:28:38] *** wallerdev has joined #angularjs
[20:28:57] <jonashw> yeah, which function?
[20:29:55] *** jbarket has quit IRC
[20:30:01] *** charuru has joined #angularjs
[20:30:05] *** krawchyk has joined #angularjs
[20:30:10] <theSrge> $scope.updateFinancing
[20:30:45] *** mtsr has quit IRC
[20:31:47] *** m0t0r has joined #angularjs
[20:31:53] *** blueadept` has joined #angularjs
[20:32:07] *** m0t0r has quit IRC
[20:33:03] <jonashw> so, you want to allow $scope.financing to be altered
[20:33:11] <jonashw> even though it's a calculated value?
[20:33:12] *** dylukes has joined #angularjs
[20:33:26] <apipkin> jonashw: (and others) Here’s a link to the deck if you were interested: https://speakerdeck.com/apipkin/introduction-to-angularjs
[20:34:04] <jonashw> apipkin, thanks for sharing. I'm glad you pitched angular to your company and that it went well!
[20:34:21] <apipkin> Me too
[20:34:24] *** amortimer has joined #angularjs
[20:34:24] <apipkin> !
[20:34:42] *** daryllxd has joined #angularjs
[20:34:45] *** Illianthe2 is now known as Illianthe
[20:34:45] *** FIFOd[a] has joined #angularjs
[20:34:49] *** gnarMatix has joined #angularjs
[20:34:53] *** spencerwi has quit IRC
[20:34:53] *** FIFOd[a] has joined #angularjs
[20:35:09] <jonashw> apipkin, so if you use angularjs, you don't need a server language?
[20:35:13] *** Malone_ has joined #angularjs
[20:35:31] *** kroogs has joined #angularjs
[20:35:33] *** TravisTX has quit IRC
[20:35:38] *** blueadept has quit IRC
[20:36:09] *** Malone has quit IRC
[20:36:13] *** cigarshark has quit IRC
[20:36:18] *** mattwynne has joined #angularjs
[20:36:30] <apipkin> jonashw: you don’t _need_ it. You can create an html file on your desktop and play with angular and it works just fine. It doesn’t really do too much good over all, but it still works :)
[20:36:35] *** dylukes has quit IRC
[20:36:57] *** whunt_ has quit IRC
[20:37:07] *** wxo has quit IRC
[20:37:14] *** tfennelly has quit IRC
[20:37:17] <jonashw> oh ok, I was just giving you a hard time
[20:37:22] *** tekky has quit IRC
[20:37:44] *** tfennelly has joined #angularjs
[20:37:44] *** lite_ has joined #angularjs
[20:37:46] *** tfennelly has quit IRC
[20:38:06] <jonashw> how did you decide to start your introduction of angular code with low-level concerns like including angular.js and bootstrapping the app?
[20:38:10] <apipkin> I mostly wanted them to know that those languages may help, but javascript is different and <strike>better</strike> beautiful ;)
[20:38:17] *** jdj_dk has joined #angularjs
[20:38:39] *** amortimer has quit IRC
[20:38:57] *** jsoverson has quit IRC
[20:39:58] *** kroogs has quit IRC
[20:40:04] *** intellix has joined #angularjs
[20:40:07] *** wilmoore has quit IRC
[20:40:24] <apipkin> jonashw: i think it was because that was the “scary” thing to me when I first started (a few months back). Reading “just put this in your markup and it works!” doesn’t really sit well with me and I want to know why. And talking to many people about angular, I usually hear “it’s too magical” and then it becomes an argument rather than a
[20:40:24] <apipkin> discussion. So I felt that an introduction to it by demystifying it would be a good approach and nip that in the bud before it got started
[20:40:44] *** roymilder has quit IRC
[20:40:54] <jonashw> oh, I see
[20:40:57] <jonashw> that's a good idea
[20:41:24] *** orion1111 has joined #angularjs
[20:41:32] *** mattwynne has quit IRC
[20:41:40] <jonashw> along those lines, it would probably be nice to compare an application written in jQuery to the same app written in angular
[20:42:23] <jonashw> I can imagine that really illustrating angular's strengths
[20:42:24] *** cigarshark has joined #angularjs
[20:42:31] *** mattt_ has quit IRC
[20:42:32] *** Click66___ has joined #angularjs
[20:42:47] <apipkin> I also went into $digest being the “heartbeat” of angular when i reached that slide about $scope because “yeah, but when and how does angular know when to update stuff?"
[20:42:49] *** tekky has joined #angularjs
[20:42:55] *** heidi has quit IRC
[20:43:02] <jonashw> that's a good analogy
[20:43:04] <jonashw> heartbeat
[20:43:06] <jonashw> apipkin, have you already used angular in a project at your company?
[20:43:11] *** jdj_dk has quit IRC
[20:43:26] <tommmied> what are some of the better authentication as a service provider out there right now?
[20:43:37] <apipkin> The presentation at https://slides.com/apipkin/introduction-to-angular-js/ has plunker examples in iframes that work to show that “i wasn’t lying when i said it was just that easy"
[20:44:03] <tommmied> I want to create a api service that uses api key (possible the smae thing as json web token)
[20:44:32] <apipkin> jonashw: yeah we did a small application rewrite, but that project is kind of shelved until other things "fall in line” around here haha
[20:44:40] *** Malone_ has quit IRC
[20:44:50] *** Foxandxss has joined #angularjs
[20:45:34] *** fedenunez1 has joined #angularjs
[20:45:35] *** fedenunez has quit IRC
[20:45:50] <jonashw> and I assume this talk was to fellow devs. are there a lot of devs at your company?
[20:46:30] *** Illianthe has quit IRC
[20:46:31] *** wilmoore has joined #angularjs
[20:46:54] <moogumbo> How can I poke around at my Angular app via the Chrome console? I found angular.element(whatever).scope() but what I really want to do is instantiate arbitrary services or singletons
[20:47:19] *** Jdubs has quit IRC
[20:47:19] *** mattt_ has joined #angularjs
[20:47:22] <jonashw> moogumbo, not sure but have you tried https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en
[20:47:27] <jonashw> (batarang)
[20:48:22] *** Xethron has joined #angularjs
[20:48:35] *** brianturgeon has joined #angularjs
[20:48:59] *** phuh has quit IRC
[20:49:21] *** kbalderson has quit IRC
[20:49:26] *** phuh has joined #angularjs
[20:49:38] *** lordkryss has joined #angularjs
[20:50:13] <apipkin> Fellow devs, designers, some business guys. I think there are about 100 devs at Manheim about 30 were able to attend the talk
[20:50:31] *** hugorodrigues has quit IRC
[20:50:40] <jonashw> ok, so you're trying to convince fellow devs to try angular at work
[20:50:44] <jonashw> cool
[20:50:46] <jonashw> good job!
[20:51:21] <apipkin> I’d really just like it if we were all using the same tech stack :) There are some things here that have Prototype && jQuery on the page o_O
[20:51:25] *** mattupstate has left #angularjs
[20:51:35] <jonashw> ick
[20:51:52] <jonashw> MooTools too?
[20:52:20] *** nagappan has quit IRC
[20:52:30] *** jbourassa has quit IRC
[20:52:32] <apipkin> haha that’s what I say! I also put in one of the slides “cdn.manheim.com” as a little shtick cause that’s a direction i’d _really_ like to see us head towards
[20:52:42] <apipkin> No I haven’t seen moo tools around here (yet)
[20:52:54] *** nagappan has joined #angularjs
[20:52:54] *** zouave has joined #angularjs
[20:52:58] <jonashw> good haha
[20:53:22] *** jelle_ has joined #angularjs
[20:53:26] <jonashw> well, sounds like you were well received
[20:53:54] *** orion1111 has quit IRC
[20:53:56] <apipkin> I think so. I’m hoping that ask for more talks. The next one I’m giving in a few weeks will be an intro to Node.js
[20:53:58] *** caitp has joined #angularjs
[20:54:00] *** bbankes has quit IRC
[20:54:01] *** vintik has quit IRC
[20:54:32] <jonashw> at my last job, I tried convincing my fellow devs that server-side MVC was better than spaghetti... they just didn't understand
[20:54:38] *** wilmoore has quit IRC
[20:54:45] <oniijin> but spaghetti is delicious
[20:54:49] *** dbouwman has joined #angularjs
[20:55:07] <jonashw> these same people generated javascript with the server language
[20:55:16] *** Jdubs has joined #angularjs
[20:55:23] <obert> spaghetti.js
[20:55:24] <snurfery> server-side mvc in general, or server-side mvc written in js?
[20:55:28] <apipkin> we have css generated within JSPs haha
[20:55:50] *** ckuehl has joined #angularjs
[20:55:56] *** markisonfire has joined #angularjs
[20:55:56] <jonashw> server-side MVC in general... just the idea of separating data access from business rules from view templates
[20:56:16] <apipkin> That needed “convincing”?
[20:56:20] <jonashw> yes
[20:56:30] <jonashw> brain damage
[20:56:43] <marcospgp> can anyone help me
[20:56:47] <jonashw> I'm still friends with one of those guys... I can't talk to him about programming much anymore
[20:56:52] <oniijin> do they like to stick their dingalings in jq holes
[20:57:03] <jonashw> "dingaling"
[20:57:04] <marcospgp> i have no idea how to make a $http login system using passport.js in the backend
[20:57:07] <apipkin> marcospgp: what’s up?
[20:57:15] <marcospgp> spent days on it already
[20:57:18] <jonashw> marcospgp, well, what have you tried?
[20:57:21] <jonashw> show us some code
[20:57:23] <marcospgp> have code working for server side and server-rendered pages
[20:57:36] <oniijin> WHYT +1
[20:57:44] <marcospgp> what im using is this, i barely changed it, wait a secon
[20:57:45] <marcospgp> d
[20:58:01] *** cthrax_ has joined #angularjs
[20:58:06] <marcospgp> https://github.com/scotch-io/easy-node-authentication
[20:58:13] <marcospgp> i have no idea how to make that spa-like
[20:58:19] <marcospgp> i mean, i do have a slight idea
[20:58:29] <marcospgp> but not enough to go ahead and start coding
[20:58:31] <jonashw> maybe you can narrow your question...
[20:58:41] <apipkin> marcospgp: did you view the scotch io blog about it?
[20:58:48] <marcospgp> yess i did
[20:58:57] <apipkin> It’s really good :)
[20:59:00] <marcospgp> read the whole thing
[20:59:00] *** InezK_away is now known as InezK
[20:59:08] <marcospgp> but they didnt even explain the serialization part
[20:59:09] *** lite__ has joined #angularjs
[20:59:19] <marcospgp> just say "here the user is serialized on session start bla bla
[20:59:23] *** caitp has quit IRC
[20:59:40] <marcospgp> and im like wtf is serialized? where are these parameters passed to done() going?
[20:59:51] *** apetro_ has joined #angularjs
[20:59:52] <jonashw> wtf is serialized?
[21:00:11] *** zouave has quit IRC
[21:00:14] *** JosephSilber has quit IRC
[21:00:19] <marcospgp> "serializeUser and deserializeUser functions to store our user in session."
[21:00:20] <jonashw> they probably mean converted to JSON
[21:00:24] <marcospgp> http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local
[21:00:31] *** ppppaul has quit IRC
[21:00:34] <jonashw> a javascript object conversion to JSON is typically called serialization
[21:00:37] <marcospgp> no they are passport.js functions
[21:00:46] <marcospgp> i think they send info for a session cookie
[21:00:48] <marcospgp> but wtf?
[21:01:04] <marcospgp> this is making my head hurt aha
[21:01:05] *** zouave has joined #angularjs
[21:01:15] *** Willow has quit IRC
[21:01:27] <marcospgp> im sorry to bother you guys, i just don't know what else to do, or where to look at even
[21:01:45] <marcospgp> all passport.js has is a guide, not even an api documentation for me to figure out wtf those functions are about
[21:01:46] *** bkuberek_ has joined #angularjs
[21:02:18] *** kayloos has joined #angularjs
[21:02:30] *** seydoggy has joined #angularjs
[21:02:38] <robdubya> marcospgp are you doing 3rd party auth/
[21:02:43] <robdubya> or just username / password
[21:02:49] *** Lingo has joined #angularjs
[21:02:55] *** Aliks has quit IRC
[21:02:58] <marcospgp> if i could manage to get one of them, i think from there i could do both
[21:03:08] *** Fishy__ has joined #angularjs
[21:03:11] <marcospgp> because they aren't that different
[21:03:14] <apipkin> marcospgp: but the main question should be this: How can I POST to passport.js to authenticate a user? Right?
[21:03:16] *** drej has quit IRC
[21:03:18] *** lite__ has quit IRC
[21:03:22] <marcospgp> yess
[21:03:27] <apipkin> Or is the tutorial you followed now working without angular involved?
[21:03:37] *** dk01 has joined #angularjs
[21:03:45] <marcospgp> it works, but the pages are rendered by the server
[21:03:49] *** Click66___ has quit IRC
[21:03:51] <marcospgp> there's no app - server communication going on
[21:03:55] <marcospgp> just server- user
[21:03:55] *** kalusn has quit IRC
[21:03:57] <robdubya> thats kinda the issue w/ passport + angular imo
[21:04:06] <marcospgp> what do I do then? aha
[21:04:15] *** Click66___ has joined #angularjs
[21:04:16] <apipkin> marcospgp: http://matthewtyler.io/handling-oauth2-with-node-js-and-angular-js-passport-to-the-rescue/
[21:04:22] <marcospgp> I think it can be changed
[21:04:34] *** rho has quit IRC
[21:04:45] *** bkuberek has quit IRC
[21:04:49] <robdubya> https://github.com/robwormald/node-jwt-demo there's a non passport token based JWT auth demo
[21:04:51] *** sacho_ has joined #angularjs
[21:04:54] *** jonashw has quit IRC
[21:04:55] <marcospgp> well guess i got some reading to do :)
[21:04:57] <robdubya> sessions ftmfl
[21:05:12] <apipkin> marcospgp: also http://stackoverflow.com/questions/21644443/authentication-in-passport-js-used-with-angular-js
[21:05:18] *** tarkus has quit IRC
[21:05:19] *** dk01 is now known as JimTheDev
[21:05:37] <apipkin> Oh and http://speakingaword.blogspot.com/2013/08/authentication-in-angularjs-nodejs-and.html
[21:05:38] <marcospgp> thank you guys
[21:05:44] <marcospgp> and again aha
[21:05:49] *** Fishy_ has joined #angularjs
[21:05:52] <bberry> Just started learning angular... Why do i always see <script src="angular.js"> included at the top of the <head> tag instead of the bottom of the <body>?
[21:05:56] <robdubya> see also https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
[21:05:57] <marcospgp> i wish i could use google like you :p
[21:06:03] <apipkin> I’m sure one of these has some good examples and you may be able to spot what the issue is
[21:06:03] *** Fishy has quit IRC
[21:06:11] *** apetro_ has quit IRC
[21:06:13] <marcospgp> thank you!
[21:06:13] *** Fishy_ is now known as Fishy
[21:06:16] <marcospgp> very much!
[21:06:21] <marcospgp> you should get paid for this aha
[21:06:24] <marcospgp> but hey
[21:06:26] <marcospgp> dont look at me
[21:06:27] <marcospgp> :p
[21:06:33] <marcospgp> <3
[21:06:36] <apipkin> bberry: because, generally, you want your libraries loaded as soon as possible
[21:06:43] <robdubya> bberry mostly so angular can do things like ng-cloak
[21:06:48] <robdubya> and also what apipkin said
[21:07:04] *** panchisco has joined #angularjs
[21:07:10] <bberry> mmk. im just so used to putting them at the bottom so the html loads asap w/o blocking
[21:07:20] <apipkin> But your app specific code (app.js) should go before your closing </body> tag
[21:07:30] <bberry> gotcha
[21:07:33] <robdubya> bberry doesn't do you a lot of good in an SPA app :D
[21:07:40] <bberry> SPA?
[21:07:43] <robdubya> err
[21:07:46] <apipkin> single page app
[21:07:47] <robdubya> single page app (app)
[21:07:47] *** sacho has quit IRC
[21:07:50] <bberry> ah. gotcha :P
[21:07:53] <robdubya> ATM machine
[21:07:53] <bberry> yeah thats true haha
[21:07:54] <robdubya> etc
[21:08:02] <apipkin> hahaha atm machine
[21:08:08] *** Fishy__ has quit IRC
[21:08:22] <mrogne> anyone here mess with cache manifest? The html page that has the manifest file specified is also being cached... but if I want to make changes to that file, I can't haha. It's not specified within the manifest...
[21:08:28] <bberry> thanks all :D
[21:08:35] *** brianturgeon has quit IRC
[21:09:06] <daryllxd> qq guys, is it actually a good idea to write angular in coffeescript? or should I just stick to JS
[21:09:13] *** wampwamp has joined #angularjs
[21:09:44] <apipkin> daryllxd: it’s good if you like to write/read coffescript
[21:09:55] *** mindlace has joined #angularjs
[21:09:58] *** upsell5 has quit IRC
[21:10:18] <robdubya> fwiw, angular 2 is all es6, which has most of the stuff from coffeescript
[21:10:24] <robdubya> and also isn't fucking coffeescript
[21:10:27] <apipkin> I don’t believe, other than the obvious syntax differences, you get any added benefit in using coffee script, but I could be really wrong
[21:10:50] * apipkin doesn’t know coffescript
[21:10:55] <robdubya> coffeescript classes are handy, but es6 has 'em
[21:11:18] <daryllxd> I feel like I still convert the coffee in my head to JS, plus most blog posts are in JS
[21:11:18] *** mtsr has joined #angularjs
[21:11:31] <vonnegut> i hate coffeescript
[21:11:38] *** richardbaker has quit IRC
[21:11:40] <apipkin> what’s the status on es6? has it stabilized or is it still in churn?
[21:11:43] <vonnegut> what a waste of time.
[21:11:47] <robdubya> stablish
[21:12:00] *** Evanion has joined #angularjs
[21:12:00] <vonnegut> (just one man's opinion)
[21:12:05] <Siecje> Is there going to be a AngularJS 2.0 Book when it comes out?
[21:12:08] <robdubya> if its good enough for the angular team, its good enough for me
[21:12:11] <apipkin> vonnegut: two men’s haha
[21:12:17] <robdubya> Siecje what is it with you and books? haha
[21:12:21] <vonnegut> :)
[21:12:38] *** mattwynne has joined #angularjs
[21:12:40] *** eperez has quit IRC
[21:12:50] <Siecje> What else did I say about books?
[21:13:09] <robdubya> okay, what is with everybody and books?
[21:13:14] <apipkin> Siecje: print the source code and let Kinkos do the binding on it! Bam, brand new, fresh 2.0 book!
[21:13:20] *** Click66___ has quit IRC
[21:13:22] <robdubya> tree killers!
[21:13:23] *** mikehaas763 has joined #angularjs
[21:13:27] <zumba_addict> hey guys, what http code do you return when data being requested is not available? I would like to correct ours because backend guys are returning me 404 which I think is wrong
[21:13:43] <apipkin> robdubya: print to PDF and load in on a tablet?
[21:13:44] <snurfery> 404 means doesn't exist
[21:13:45] <robdubya> zumba_addict depends on why its not available
[21:13:47] <snurfery> does it exist?
[21:13:53] *** whunt has joined #angularjs
[21:13:58] <zumba_addict> data is not there
[21:13:59] *** wampwamp has quit IRC
[21:14:02] <davek> Then it's a 404.
[21:14:03] <Siecje> robdubya: I like books because for the price I get good content without having to search online
[21:14:05] <zumba_addict> but i don't want 404 because it's wrong
[21:14:19] <snurfery> my question: does it "exist"
[21:14:20] <zumba_addict> 404 is for like a file or link doesn't exists
[21:14:20] <robdubya> apipkin print to PDF, print to paper, scan it, ???, profit?
[21:14:25] <davek> It's not wrong, that is the purpose of the 404.
[21:14:26] *** zouave has quit IRC
[21:14:35] <snurfery> yup, that's what 404 means
[21:14:36] <davek> zumba_addict, no its for if a _RESOURCE_ doesn't exist.
[21:14:42] <apipkin> zumba_addict: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
[21:14:48] <zumba_addict> i'm referring to a record on a database
[21:14:52] *** lyndsey has joined #angularjs
[21:14:57] <davek> Yes, that is a resource.
[21:15:01] <davek> Data is a resource.
[21:15:01] <zumba_addict> k
[21:15:03] *** zouave has joined #angularjs
[21:15:04] <davek> Files are also resources.
[21:15:10] <apipkin> robdubya: i like profit!
[21:15:19] <robdubya> your mom is a resource too
[21:15:21] <zumba_addict> so if a data or record doesn't exist, it's ok to return 404 back to the client?
[21:15:24] <snurfery> yep all my code tries to get something from a db, if it doesn't exist return 404
[21:15:35] *** drej has joined #angularjs
[21:15:38] <zumba_addict> k
[21:15:39] <snurfery> that's exactly what it's meant to be used for
[21:15:40] <robdubya> yep, that's the right code for missing stuffs
[21:15:40] <snurfery> =)
[21:15:47] *** hannesvdvreken has joined #angularjs
[21:15:56] *** Zesty has joined #angularjs
[21:15:58] *** zouave has quit IRC
[21:16:02] <apipkin> What about "410 Gone” :D
[21:16:05] *** eperez has joined #angularjs
[21:16:08] *** Aliks has joined #angularjs
[21:16:11] <zumba_addict> it's weird because Chrome is triggering an error meaning link does not exist
[21:16:11] <robdubya> gone baby gone
[21:16:36] <Zesty> i have an input text field that i want to make the value always look like this 0.00. it works if i set the initial value to a string but im not sure if thats the ideal way?
[21:16:38] *** eperez has joined #angularjs
[21:16:41] <apipkin> 449 Retry With (Microsoft) HAHA that makes me laugh
[21:16:44] <zumba_addict> if I was troubleshooting and I saw the link is red, i'll wonder why the link doesn't exist
[21:16:52] *** rho has joined #angularjs
[21:17:00] <robdubya> Zesty filters are good for this
[21:17:34] <Zesty> i didnt know i could filter the value of an input
[21:17:41] <apipkin> Zesty look at the number filter https://docs.angularjs.org/api/ng/filter/number
[21:17:44] <marc_v92> apipkin: Use error code 418 as much as possible
[21:17:55] *** theSrge has quit IRC
[21:17:59] <Zesty> i know that you can do that but i didnt know how to put it on an input which is using ng-model
[21:18:03] <apipkin> marc_v92: haha
[21:18:03] *** zbzzn_ has quit IRC
[21:18:14] <Zesty> PS robdubya thanks for your help.. youre in here often helping me answer my questions. i figure you deserve a huge thanks
[21:18:15] *** zbzzn has joined #angularjs
[21:18:30] <robdubya> no worries!
[21:18:49] <panchisco> Which routing module is in fashion these days with Angular?
[21:18:54] <robdubya> ui-router
[21:19:02] <robdubya> all the cool kids are doing it
[21:19:04] *** arek_at_work has quit IRC
[21:19:11] *** mattwynne has quit IRC
[21:19:59] <panchisco> ui-router it is
[21:20:16] <Zesty> one thing im finding myself doing a LOT is $filter('filter')($scope.Institution.list, { type: typeId })
[21:20:21] <Zesty> in order to query on associations of my services
[21:20:22] *** kenjamin_ has joined #angularjs
[21:20:26] <Zesty> is there a better way i should be doing this?
[21:20:41] <robdubya> Zesty doing sort of psuedo joins on the client?
[21:20:42] *** homsar has joined #angularjs
[21:21:08] <Zesty> not really joins, just simple associations. like i have a lot of 'type' columns, so currencyType (FIAT, Commodity, digital, etc)
[21:21:11] <Zesty> and then a large list of currencies
[21:21:26] <Zesty> and im always having to get properties of both the type and the currency, so im always finding the associations by id
[21:21:38] <Zesty> i just am doing this excessively, its almost like i need some kind of ORM 'finder' methods
[21:22:02] <robdubya> Zesty generally, when i fetch a listo f records, i cache it inside the service, in an object (or a map)
[21:22:12] <robdubya> then you can do lookups by the key
[21:22:22] <robdubya> which is a bit faster and cleaner than $filter
[21:22:27] *** MistahKurtz has joined #angularjs
[21:22:30] *** Jdubs has quit IRC
[21:22:44] <Zesty> i considered ordering things like this { 1: {}, 2: {} } however all the demos online show this [{id: 1, x: 'abc'}, {id: 2}]
[21:22:52] <Zesty> so i did it tehe second way
[21:22:59] <Zesty> its making it a lot harder than when i need to lookup by id
[21:23:04] *** Ericx2x has joined #angularjs
[21:23:11] <robdubya> if you dont use the object thing
[21:23:23] <robdubya> i suggest thrwoing in the es6 polyfill for array.find
[21:23:55] <Zesty> is this method reasonable to you? i didnt know if it was stupid to be doing angular like this: { 1: {}, 2: {} }
[21:23:56] <robdubya> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
[21:24:02] <Zesty> i didnt want it to bite me long down the road
[21:24:07] <robdubya> that's kinda stupid imo
[21:24:26] *** Ericx2x_ has quit IRC
[21:24:54] <robdubya> Zesty you're talking about what i would call a "valuelist" in java land, yeah?
[21:25:23] <Zesty> oh
[21:25:27] *** fedenunez1 has quit IRC
[21:26:29] *** thomasreggi has quit IRC
[21:26:30] *** ceephax has joined #angularjs
[21:26:44] *** RobinBAwesome has quit IRC
[21:26:49] <robdubya> Zesty one trick is doing it when you fetch the data for the first time
[21:26:56] <robdubya> res.data.map(connectStuffHere)
[21:26:57] *** apetro_ has joined #angularjs
[21:27:02] <Zesty> ahh
[21:27:05] <Zesty> i see
[21:27:17] *** sixr420 has joined #angularjs
[21:27:18] *** sixr420- has quit IRC
[21:27:18] <robdubya> sec, i think i have a plunk
[21:27:26] *** heidi has joined #angularjs
[21:27:41] *** whitsan has joined #angularjs
[21:28:03] <Zesty> sounds like a deuce
[21:28:25] *** elux has quit IRC
[21:29:16] *** elux has joined #angularjs
[21:29:34] *** dylukes has joined #angularjs
[21:29:37] *** azureknight has quit IRC
[21:29:42] <oniijin> that's what I think
[21:29:55] *** thedodd has quit IRC
[21:29:59] *** Aliks has quit IRC
[21:30:24] <homsar> unit testing question: should I be using multiple suites to test a single controller? I ask because it seems counterintuitive to expect an HTTP request (and flush it) when testing code that is basically unrelated.
[21:30:28] *** sdouglas has joined #angularjs
[21:30:59] *** jerev_away is now known as jerev
[21:31:27] *** apetro_ has quit IRC
[21:32:23] *** jdj_dk has joined #angularjs
[21:32:52] *** thedodd has joined #angularjs
[21:33:17] <robdubya> Zesty http://plnkr.co/edit/i4nsxWc9Eyrx3xMDbjtC?p=preview
[21:33:43] *** Serdar has quit IRC
[21:33:53] *** Ericx2x has quit IRC
[21:34:00] *** Jdubs has joined #angularjs
[21:34:12] *** elux has quit IRC
[21:34:15] <jeffszusz> I've enabled pushstate with $locationProvider.html5Mode(true) and am trying to rewrite my urls server-side via the grunt-connect and connect-middleware modules for development - anyone know how to do that? I've followed the instructions here http://stackoverflow.com/a/21175961 and no urls are rewriting it seems
[21:34:42] *** whunt has quit IRC
[21:34:47] *** CainVampyr has quit IRC
[21:34:57] *** Jdubs has quit IRC
[21:35:05] *** Xethron has quit IRC
[21:35:11] *** tfennelly has joined #angularjs
[21:35:17] *** Jdubs has joined #angularjs
[21:35:17] <robdubya> Zesty that polyfill is super useful, and will get faster as browsers implement it
[21:35:27] <Zesty> awesome!
[21:35:29] <Zesty> thanks a ton
[21:35:34] <robdubya> shonuff
[21:35:40] *** sdouglas has quit IRC
[21:35:51] *** kroogs has joined #angularjs
[21:36:07] <robdubya> i reckon as long as it happens inside the service (vs on the controller) whatever you feel comfortable with
[21:36:14] <Zesty> where would i put this code?
[21:36:19] <Zesty> if im following good project structure
[21:36:27] *** nerdfiles has joined #angularjs
[21:36:35] <robdubya> i tend to do:
[21:36:38] <robdubya> angular.js
[21:36:40] <robdubya> ui-router.js
[21:36:46] <robdubya> robdubyaFramework.js
[21:36:47] *** MistahKurtz has quit IRC
[21:36:48] <robdubya> app.js
[21:37:05] <robdubya> the polyfills n stuff live in robdubyaFramework.js
[21:37:20] <nickeddy> mine is angular.js > ui-router > shitload_of_controllers.js > modules.js
[21:37:36] <nickeddy> then states.js :P
[21:37:40] *** VictorBjelkholm has joined #angularjs
[21:38:02] *** anjumkaiser has joined #angularjs
[21:38:08] <nickeddy> errr\
[21:38:15] <nickeddy> modules > shitload_of_controllers.js > states.js
[21:38:17] *** arizzo has quit IRC
[21:38:18] <trippo> Hm, I've created a loading overlay thingie with ng-show etc. But now I have the issue that the element looses ng-hide when it should, but for some reason the device won't show the element until I click on it in the web inspector (remote debugging with safari). I've seen this before but can't remember what to do - and don't find anything good looking for a solution either (not really sure what to google for).
[21:38:43] <robdubya> trippo are you using a primitie value? eg ng-show="someString"
[21:38:49] <robdubya> or ng-show="someBoolean"
[21:38:50] *** arizzo has joined #angularjs
[21:38:54] <robdubya> *primitive
[21:39:05] *** Aliks has joined #angularjs
[21:39:06] *** dylukes has quit IRC
[21:40:12] *** kroogs has quit IRC
[21:41:07] *** encryptd_fractl has quit IRC
[21:42:04] *** beckyconning__ has quit IRC
[21:42:07] *** jdj_dk has quit IRC
[21:42:31] *** richardbaker has joined #angularjs
[21:43:18] *** J0514H has quit IRC
[21:43:43] <chexxor> <div ng-if="errors"> - This is visible for like 2 seconds when the view loads in Firefox
[21:43:52] <chexxor> But not in chrome. Any idea why?
[21:44:04] *** jelle_ has quit IRC
[21:44:05] <panchisco> Maybe you need to look into ng-clock
[21:44:09] *** cbeacock has quit IRC
[21:44:10] <panchisco> ng-cloak
[21:44:23] <chexxor> ng-cloak is for templates, no?
[21:44:27] <chexxor> I'll try it
[21:44:37] <panchisco> Seems like that’s what you need.
[21:44:45] *** seydoggy has quit IRC
[21:44:48] *** JimTheDev has quit IRC
[21:45:20] *** seydoggy has joined #angularjs
[21:45:27] *** jstroem has joined #angularjs
[21:45:28] *** dylukes has joined #angularjs
[21:45:32] <chexxor> yeah - that fixed it
[21:45:33] *** dk01 has joined #angularjs
[21:45:36] <trippo> robdubya: Hm, ng-show="loading" where $scope.loading is true or false
[21:45:59] <nickeddy> trippo: do an object, like $scope.isLoading = {loading: false};
[21:46:06] <nickeddy> trippo: then ng-show="isLoading.loading"
[21:46:14] <robdubya> ^
[21:46:32] *** Willow has joined #angularjs
[21:46:44] *** dk01 is now known as JimTheDev
[21:46:47] *** richardbaker has quit IRC
[21:46:56] *** tommmied has quit IRC
[21:47:00] <zumba_addict> hey folks, I found this code and tried it, it works. Now, I don't want to make the code dirty. Where is the best place to add code like during a failure, re-execute $http.get - https://gist.github.com/c0debreaker/5a3cd0230fe9c8ba0437 By the way, the server response error will be captured by the responseError function on line 33
[21:47:21] *** paperElectron has joined #angularjs
[21:47:27] *** Zesty has quit IRC
[21:47:34] <chexxor> httpInterceptor, huh?
[21:47:43] <zumba_addict> ?
[21:47:59] <zumba_addict> why chexxor?
[21:48:07] *** arizzo has quit IRC
[21:48:26] *** jamesshijie has joined #angularjs
[21:48:29] *** dylukes has quit IRC
[21:48:30] <chexxor> just posting a tag here - maybe someone is good at that
[21:48:40] <chexxor> your description didn't mention httpInterceptor
[21:48:50] <zumba_addict> or do you think guys that it's fine to add my code there for the retry?
[21:48:57] *** Drako_ has joined #angularjs
[21:49:03] *** phuh has quit IRC
[21:49:08] <dccc> on a similar note, how would you fix the flashing when one element uses ng-show, and the other ng-hide?
[21:49:15] *** mchapman has quit IRC
[21:49:17] *** seydoggy has quit IRC
[21:49:20] <robdubya> zumba_addict if its something you can retry without any extra information, then yes, interceptor might work
[21:49:22] <robdubya> otherwise inside the service
[21:49:27] *** phuh has joined #angularjs
[21:49:31] <zumba_addict> gotcha
[21:49:41] <chexxor> yeah, I would catch the failure in the $http request's failed promise.
[21:49:45] <trippo> nickeddy: Hm ok - what effect does that have? Why would it work I mean :) (I want to understand what I do - not just copy/paste every single bit hehe)
[21:49:48] <chexxor> does $http use promise?
[21:49:53] *** umib0zu has joined #angularjs
[21:49:57] <zumba_addict> I wanted to make this interceptor clean. I thought I can inject it but looks like we can't
[21:49:59] *** tilgovi has joined #angularjs
[21:50:02] <nickeddy> trippo: because then you're using an object and not a primitive
[21:50:19] <trippo> Ok - and why is that better?
[21:50:21] *** whitsan has quit IRC
[21:50:25] <nickeddy> robdubya: want to explain here
[21:50:30] <nickeddy> because my brain is farting
[21:50:32] <nickeddy> pretty hard
[21:50:49] <trippo> Hehe
[21:50:52] <zumba_addict> chexxor: intercepting is nice because you won't need to write a nested request
[21:51:02] *** richardbaker has joined #angularjs
[21:51:12] <trippo> Thanks for your anser and time though - I'll try it and look into the _why_ bit more later on.
[21:51:16] *** wachpwnski has joined #angularjs
[21:51:19] <robdubya> trippo short answer
[21:51:25] <chexxor> zumba_addict, that's true
[21:51:25] <zumba_addict> if it keeps on failing, keep retrying but set a maximum request limit like 15 times
[21:51:31] <robdubya> primitive values get copied when your scopes inherit
[21:51:39] <nickeddy> oh yeah
[21:51:41] <nickeddy> and never updated
[21:51:43] <robdubya> when they get copied, you lose reference
[21:51:49] <trippo> robdubya: Ah ok - great
[21:51:51] <TorchDragon> Can I set a name for a controller defined via shorthand within a directive?
[21:51:59] <nickeddy> objects are bound by reference
[21:52:01] <robdubya> trippo https://github.com/angular/angular.js/wiki/Understanding-Scopes
[21:52:07] <nickeddy> primitives aren't
[21:52:09] <nickeddy> yay robdubya
[21:52:19] <TorchDragon> And more specifically, can I access that controller from a Form inside my template?
[21:52:20] <robdubya> ther's a link in the 3rd paragraph to a best practice video
[21:52:28] <robdubya> its well worth 30 minutes of yours (and everybdoy's) time to watch it
[21:52:30] <trippo> But the thing is - when I was debugging the app I could see the class ng-hide was removed as it should be - just that the element didn't appear until I clicked in in the dom tree.
[21:52:36] *** apetro_ has joined #angularjs
[21:52:57] <robdubya> trippo by any chance are you changing it from some external source?
[21:53:02] *** Thorn has quit IRC
[21:53:05] <robdubya> like, uh, a jquery plugin or something?
[21:53:12] *** arizzo has joined #angularjs
[21:53:15] <chexxor> zumba_addict, Why is the http request failing?
[21:53:20] *** jamesshijie has left #angularjs
[21:53:24] *** seydoggy has joined #angularjs
[21:53:36] <trippo> Nope, I have one controller on <body (ng-controller="appCtrl"). In that controller I have two event watches, $scope.$on('appLoading') and $scope.$on('appNotLoading').
[21:53:38] <zumba_addict> it's because the data that I requested is still being generated
[21:53:48] <trippo> Those I call with $scope.$emit('appLoading') in different places through out the app.
[21:53:50] *** gorelative has joined #angularjs
[21:53:59] *** Brocken is now known as zz_Brocken
[21:54:10] <trippo> Inside those $scope.$on() I change the value for the loading property.
[21:54:21] <zumba_addict> chexxor: the data I requested is being processed from another server. It's the same thing as when we upload videos to YouTube
[21:54:22] <robdubya> trippo yeah, same issue with primitives there
[21:54:27] <robdubya> and also events are meh for this
[21:54:29] *** eperez has quit IRC
[21:54:59] <robdubya> trippo is this a initial loading screen, or a 'i'm making an ajax request' loading screen
[21:55:08] *** caitp has joined #angularjs
[21:55:10] <trippo> More of the second one.
[21:55:16] *** mayrop_ has quit IRC
[21:55:19] <robdubya> best thing to do:
[21:55:25] <trippo> I'm buidling a hybrid app and the responsiveness is shitty on iphone 4 and older android devices.
[21:55:30] <robdubya> define a ActivityIndicator service
[21:55:37] <trippo> So I'm building some kind of loading overlay that will indiciate that somethings is happening for the user.
[21:55:40] <chexxor> zumba_addict, and simply sending the same request again will produce different results?
[21:55:40] <robdubya> hook that up to your view
[21:55:44] *** lyndsey has quit IRC
[21:55:47] <zumba_addict> yes
[21:55:53] <robdubya> and then toggle it on and off from whereever (interceptors, for example)
[21:56:03] <zumba_addict> a different resourceid and I'm actually seeing an issue :)
[21:56:13] *** nicholaswyoung has joined #angularjs
[21:56:17] <zumba_addict> I can do denial of service by clicking it 1000 times
[21:56:27] *** dhcar has joined #angularjs
[21:56:28] *** mokush has joined #angularjs
[21:56:32] <robdubya> that way you're not relying on events (which are poopy)
[21:56:52] *** apetro_ has quit IRC
[21:56:58] *** slainer68 has joined #angularjs
[21:57:00] <zumba_addict> now the server will process the same request but assign to a different task
[21:57:03] <dhcar> first thing I see when I get in here: events = poopy
[21:57:06] *** whunt has joined #angularjs
[21:57:10] <nickeddy> events are poopy
[21:57:13] <nickeddy> for the most part
[21:57:16] <robdubya> that's the technical term
[21:57:36] <nickeddy> yes look it up in the oxford dictionary of technical computer science terms
[21:57:39] *** apetro_ has joined #angularjs
[21:57:44] *** Xethron has joined #angularjs
[21:57:45] <trippo> robdubya: Ok - thanks for your suggestion. I don't really have the time for that now though.
[21:57:54] <robdubya> ...
[21:57:57] <trippo> The app needs to be submitted to the app store in like 1 hour hehe..
[21:57:58] *** slainer6_ has joined #angularjs
[21:58:02] <trippo> So I'm just making final touches.
[21:58:08] <robdubya> it should take you < 5 minutes
[21:58:10] *** jsoverson has joined #angularjs
[21:58:20] <trippo> But I will definately look into that next.
[21:58:24] <nickeddy> trippo: http://labs.voronianski.com/ngActivityIndicator.js/
[21:58:31] *** seydoggy has quit IRC
[21:58:32] *** Asiajey has quit IRC
[21:58:33] *** nihi|ist has quit IRC
[21:58:36] *** boneskull has joined #angularjs
[21:58:48] <trippo> robdubya: Ok, sorry - I'm still very new to angularjs.
[21:59:06] *** seydoggy has joined #angularjs
[21:59:59] *** caitp has quit IRC
[22:00:06] *** apetro_ has quit IRC
[22:00:16] *** stirling_ has joined #angularjs
[22:00:20] <Aliks> alright, so another question for you guys...
[22:00:53] <Aliks> I tend to use = a lot for my isolated scope variables... even when I'm intending to treat the property as read-only... simply because I don't like how attr="{{blah}}" looks honestly... a lot of it is aesthetic...
[22:01:05] <Aliks> any thoughts on when using @ should be really emphasized?
[22:01:12] *** azureknight has joined #angularjs
[22:01:17] *** badon has quit IRC
[22:01:20] *** hugorodrigues has joined #angularjs
[22:01:25] <nickeddy> huh
[22:01:29] <mattt_> Anyone know if jasmine provides a way to run code after a suite has executed - for example, to remove users from a db?
[22:01:30] *** stirling_ has quit IRC
[22:01:38] *** sigurding has quit IRC
[22:01:39] *** stirlingw has quit IRC
[22:01:43] *** slainer68 has quit IRC
[22:01:52] <robdubya> trippo http://plnkr.co/edit/uxCByZ8idypS54wAp3DP?p=preview
[22:02:07] <Aliks> mattt_: after() I think, or maybe if you nest things you could use afterEach() to do it if there isn't an after
[22:02:24] *** stirlingw has joined #angularjs
[22:02:37] *** gorelative has quit IRC
[22:02:39] *** arek_deepinit has joined #angularjs
[22:02:54] *** mattt_ has quit IRC
[22:03:04] *** mattt_ has joined #angularjs
[22:03:18] *** fcor has joined #angularjs
[22:03:24] <Aliks> @mattt_: https://github.com/pivotal/jasmine/wiki/Before-and-After
[22:03:25] *** seydoggy has quit IRC
[22:03:34] <Aliks> @mattt_: search for this.after(function() { myPage.title = originalTitle; });
[22:03:36] <fcor> Hi
[22:03:40] *** matiasow has joined #angularjs
[22:03:50] <robdubya> Aliks i use = for all the things
[22:03:53] <robdubya> pretty much
[22:03:57] <Aliks> robdubya: same...
[22:03:58] *** hannesvdvreken has quit IRC
[22:04:03] <Aliks> robdubya: but I wonder, is that "wrong" somehow?
[22:04:08] *** TravisTX has joined #angularjs
[22:04:11] *** badon has joined #angularjs
[22:04:12] <Aliks> technically some things could be @ and that would make them "safer" / read-only
[22:04:19] <TorchDragon> Alright, google-fu is coming up with nothing...
[22:04:25] <mattt_> Aliks: I found that, but is it not for a spec (rather than entire ‘describe’ block)?
[22:04:29] <TorchDragon> I'm not sure how I can bind a form to a directive's controller...
[22:04:30] <robdubya> Aliks meh
[22:04:43] <TorchDragon> All the examples I'm finding are binding a form to an app.Controller.
[22:04:49] <TorchDragon> Is that the only way you can bind a form?
[22:04:53] <robdubya> TorchDragon when you say "bind a form"
[22:04:59] <robdubya> what you talking bout willis
[22:05:04] <nickeddy> lol
[22:05:05] <TorchDragon> robdubya: Validation specifically.
[22:05:15] <robdubya> TorchDragon doing form="foobar
[22:05:16] <robdubya> "
[22:05:19] <nickeddy> <form name="someForm"> $scope.someForm
[22:05:22] <Petazz> Hi! I'm using $resource to download stuff from the user like the userID, how could I save it perhaps in a global constant to be used lateron?
[22:05:23] *** eperez has joined #angularjs
[22:05:27] <robdubya> what nickeddy said
[22:05:35] *** eperez has quit IRC
[22:05:38] <Aliks> Petazz: some service would be good
[22:05:43] <robdubya> Petazz use $http, cahce in a service
[22:05:45] *** mtsr has quit IRC
[22:05:51] <Petazz> I found this but I can't see how it fits with $resource http://stackoverflow.com/questions/14206492/how-do-i-store-a-current-user-context-in-angular/14206567#14206567
[22:05:57] <TorchDragon> nickeddy: Is ng-controller optional then?
[22:06:07] <robdubya> TorchDragon you'd do that inside a controller's scope
[22:06:08] <nickeddy> what
[22:06:11] <nickeddy> yeah
[22:06:16] *** kayloos has quit IRC
[22:06:29] *** bkuberek has joined #angularjs
[22:06:30] *** eperez has joined #angularjs
[22:06:41] *** hannesvdvreken has joined #angularjs
[22:06:47] <TorchDragon> So if I have a directive with a controller and a form defined in a templateUrl, I don't need to manually define the controller, it's going to pick up the scope for the directive's controller?
[22:07:01] <Petazz> Aliks, robdubya could I build that in with the $resource in the same service somehow?
[22:07:12] <Aliks> Petazz: yes
[22:07:51] <robdubya> TorchDragon http://plnkr.co/edit/2OZzBPfnydmFc5mYKwf6?p=preview
[22:08:17] *** Efrem has quit IRC
[22:08:25] <robdubya> (no directives there, so perhaps explain how the directive fits in)
[22:08:52] *** wilmoore has joined #angularjs
[22:09:24] *** krawchyk_ has joined #angularjs
[22:09:32] <cthrax_> Hi All, I'm running into a scenario where an error is being thrown, as demonstrated here http://plnkr.co/edit/0d6wQ2wFGWxFsnDDlqeB?p=preview
[22:09:49] <cthrax_> basically because both parent and child ask for a replace:true, there is a conflict
[22:09:54] <TorchDragon> .directive("myDirective", [function() { return { ... }, controller : function() { ... } etc ] );
[22:10:08] *** mikedevita has joined #angularjs
[22:10:10] <nickeddy> robdubya knows what a directive is :P
[22:10:11] *** bkuberek_ has quit IRC
[22:10:11] *** sigurding has joined #angularjs
[22:10:16] *** upsell5 has joined #angularjs
[22:10:17] <cthrax_> what I've found online says that the conflict occurs if there are isolate scopes on each, so I'm wondering if this is a bug, or a misuse
[22:10:24] *** cthrax_ is now known as cthrax
[22:10:26] <zumba_addict> hey guys, why can't I inject my own Factory in line 3 or 6? https://gist.github.com/c0debreaker/5a3cd0230fe9c8ba0437
[22:10:34] *** seydoggy has joined #angularjs
[22:10:41] <TorchDragon> nickeddy: That's how the directive fits in. The directive has a controller and a partial view with a form in it.
[22:10:48] <robdubya> ahhhhhhh
[22:10:49] <robdubya> ok
[22:11:12] <robdubya> TorchDragon assuming you name the form inside the template, it should (i think) become avaiable on the controller's scope
[22:11:18] <nickeddy> should be able to do the same thing
[22:11:19] <nickeddy> yeah
[22:11:25] *** spencercarnage has quit IRC
[22:11:33] <TorchDragon> Hmm. Yeah, I'm seeing only bits of it.
[22:11:43] <TorchDragon> The form's being generated dynamically based off of a data model.
[22:11:52] *** Jdubs_ has joined #angularjs
[22:12:03] *** Evanion has quit IRC
[22:12:08] <TorchDragon> And so rather than seeing a bunch of full formed ids its showing the ng-repeat $index as a literal.
[22:12:15] *** drej has quit IRC
[22:12:17] *** krawchyk has quit IRC
[22:12:19] <robdubya> TorchDragon plunker time
[22:12:19] *** moritzs has joined #angularjs
[22:12:24] <nickeddy> ^
[22:12:37] <TorchDragon> So I think plunker doesn't work when I'm connected to the VPN that this client requires.
[22:12:38] <robdubya> i'm sure theres a way, bit difficult to grok
[22:12:42] <TorchDragon> Which is really, really wierd.
[22:12:52] <robdubya> sure but you should be able to replicate the basics
[22:13:01] <robdubya> otherwise yo shit is too coupled, son
[22:13:03] <TorchDragon> But then again this VPN software doesn't connect to a non-443 port site.
[22:13:08] <fcor> I try to Authenticate users with an Authentication service but i don't know where to save user data when he's authenticated (For example : in order to display the name of my user in my partials views)
[22:13:13] <TorchDragon> er SSL port site.
[22:13:20] <TorchDragon> :) Hooray Cisco.
[22:13:23] *** Jdubs__ has joined #angularjs
[22:13:30] *** jae has joined #angularjs
[22:13:35] *** tfennelly has quit IRC
[22:13:37] <nickeddy> https://plnkr.co/
[22:13:39] *** Jdubs has quit IRC
[22:13:43] *** encryptd_fractl has joined #angularjs
[22:13:45] <nickeddy> their ssl certificate is borked though
[22:13:45] <cthrax> fcor, try a service representing the current user
[22:13:46] <nickeddy> lol
[22:13:49] *** slainer6_ has quit IRC
[22:13:54] *** tfennelly has joined #angularjs
[22:13:56] *** Snugug has quit IRC
[22:14:07] <cthrax> fcor, inject it where you need it
[22:14:13] *** nicholaswyoung has quit IRC
[22:14:30] *** J0514H has joined #angularjs
[22:14:33] *** paperElectron is now known as Paper_bounced
[22:14:45] *** slainer68 has joined #angularjs
[22:14:55] *** apetro_ has joined #angularjs
[22:14:59] *** kalusn has joined #angularjs
[22:15:04] <fcor> @cthrax So, i had to inject my Authentication service in every controllers ???
[22:15:12] *** euskadi31 has quit IRC
[22:15:19] *** seydoggy has quit IRC
[22:15:26] *** illume has joined #angularjs
[22:15:27] *** Fishy has quit IRC
[22:15:38] <cthrax> fcor, not sure why you would need the current user in every controller
[22:15:52] *** seydoggy has joined #angularjs
[22:15:52] <cthrax> fcor, this might be helpful
[22:15:53] <cthrax> https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec
[22:15:59] *** CodeFriar has joined #angularjs
[22:16:19] <fcor> I'm currently save user data in $rootScope :$
[22:16:27] *** mokush has quit IRC
[22:16:32] <fcor> Thank you for url cthrax
[22:16:43] <nickeddy> fcor: you shouldn't be doing that
[22:16:47] *** Jdubs_ has quit IRC
[22:16:50] <cthrax> ^^
[22:16:50] *** dbouwman has quit IRC
[22:16:51] <nickeddy> fcor: use a service as suggested by cthrax
[22:17:01] *** wxo has joined #angularjs
[22:17:17] *** thebigredgeek has joined #angularjs
[22:17:18] *** apetro_ has quit IRC
[22:17:18] *** seydoggy_ has joined #angularjs
[22:17:25] *** seydoggy has quit IRC
[22:17:26] *** dbouwman has joined #angularjs
[22:17:31] *** dylukes has joined #angularjs
[22:18:33] <trippo> nickeddy and robdubya - thanks alot to both of you
[22:18:36] *** jae is now known as Jae
[22:18:53] <nickeddy> you're welcome
[22:19:17] <cthrax> So any thoughts on this? http://plnkr.co/edit/0d6wQ2wFGWxFsnDDlqeB?p=preview
[22:19:25] <fcor> but if i want to access user data in my all partial views, i had to inject my AuthService in every controllers ?
[22:19:29] <cthrax> a double replace causes an error to be thrown
[22:19:56] *** thebigredgeek has quit IRC
[22:20:05] <cthrax> fcor, if you use your user data in every controller, yes, you have to inject into every controller
[22:20:11] *** FIFOd[a] has quit IRC
[22:20:14] <cthrax> fcor, I still don't see why you would be in that situation though
[22:20:33] *** conner_ has quit IRC
[22:20:33] <fcor> Ok it seems be the best solution
[22:20:36] <nickeddy> fcor: sounds like you have too many controllers if you're worried about it :P
[22:21:03] *** Xethron has quit IRC
[22:21:04] <fcor> One controller per 'route'
[22:21:14] <nickeddy> what router are you using
[22:21:27] <fcor> ngRoute
[22:21:43] <nickeddy> fcor: highly recommend you switch to https://github.com/angular-ui/ui-router
[22:22:37] <fcor> What are the advantages ?
[22:23:43] <fcor> i had to use an Auth Service or Auth Factory
[22:23:44] <cthrax> nested views, named views, active view aware
[22:23:56] <fcor> ok
[22:24:01] <fcor> thank you
[22:24:38] *** Click66___ has joined #angularjs
[22:25:58] *** pushbyte has quit IRC
[22:26:31] *** Click66___ has quit IRC
[22:26:40] *** patricka_ has quit IRC
[22:27:45] *** davi has joined #angularjs
[22:27:55] <mattt_> How do people deal with changes to backend state as a result of e2e testing with protractor (records created in a db, for example)?
[22:28:21] *** rho has quit IRC
[22:28:37] *** AWAW has joined #angularjs
[22:29:38] *** J0514H has quit IRC
[22:29:53] *** terrykfwong has joined #angularjs
[22:30:25] *** endash has joined #angularjs
[22:30:47] *** mikedevita has quit IRC
[22:30:54] *** mguillec_ has quit IRC
[22:31:24] *** jsoverson has quit IRC
[22:31:28] *** mguillech has joined #angularjs
[22:31:44] *** Oxelist has joined #angularjs
[22:32:04] *** mennea has quit IRC
[22:32:04] *** jsoverson has joined #angularjs
[22:32:27] *** davi has quit IRC
[22:32:28] <chexxor> zumba_addict, making progress?
[22:32:47] *** nemothekid has joined #angularjs
[22:32:47] *** DoubleAW has quit IRC
[22:32:54] <cthrax> mattt_, I like my database to be in a known state, so typically I will reset-up the data, potentially on a per test basis
[22:33:01] <robdubya> ^
[22:33:09] *** jsoverson has quit IRC
[22:33:22] <mattt_> cthrax: using a set of scripts on the backend, or?
[22:33:28] *** homsar has quit IRC
[22:33:29] <robdubya> i started using codeship the other day, they have an immutable build server thingy i just got an email about
[22:33:41] <robdubya> i assume most of the test / CI type things do too
[22:33:47] *** jsoverson has joined #angularjs
[22:33:58] *** mehlah has joined #angularjs
[22:34:02] *** sigurding has quit IRC
[22:34:09] *** eperez has quit IRC
[22:34:18] <cthrax> mattt_, I actually like my scripts on the front the end, so I can keep the script and the test together
[22:34:51] <mattt_> cthrax: how do the frontend scripts alter the db?
[22:35:01] <cthrax> api calls
[22:35:03] *** patrickarlt has joined #angularjs
[22:35:09] *** jsoverson has quit IRC
[22:35:18] <cthrax> I might even load up an OOB call that will load a giant JSON file for me
[22:35:35] <cthrax> it varies from use project to project though
[22:35:44] <mattt_> hm.. i don’t have all the necessary endpoints in my api yet..
[22:35:48] *** jsoverson has joined #angularjs
[22:35:53] *** kroogs has joined #angularjs
[22:35:56] *** mguillech has quit IRC
[22:35:58] <cthrax> I've even been known to mock the backend entirely and let my tests run in a completely known state
[22:36:05] <robdubya> it is known
[22:36:14] <cthrax> prism is pretty cool for helping with that
[22:36:14] *** drej has joined #angularjs
[22:36:38] <cthrax> so let it be written, so let it be done.
[22:36:38] <mattt_> yeah I was just reading about mocking the backend, but someone made the point that that defeats the purpose of an e2e test..
[22:36:58] <robdubya> mattt_ whats your backend?
[22:37:02] *** jsoverson has quit IRC
[22:37:03] <mattt_> robdubya: node/express
[22:37:04] *** zwacky has joined #angularjs
[22:37:14] <cthrax> mattt_, I disagree, if your purpose is to verify that the backend and frontend talk properly, then yes. If your purpose is to verify that the frontend components work, then no.
[22:37:33] <robdubya> mattt_ using any CI stuff? or all local?
[22:37:41] *** jsoverson has joined #angularjs
[22:37:53] <mattt_> all local, my project is in its infancy, really
[22:38:15] <robdubya> great time to learn about CI then :D
[22:38:31] *** vintik has joined #angularjs
[22:38:37] <nickeddy> finally going to be doing CI stuff at work
[22:38:39] <robdubya> i resisted for a long time, but i really like it now, things are quite magical
[22:38:40] *** jdj_dk_ has joined #angularjs
[22:38:42] <nickeddy> excited to do it
[22:38:59] <mattt_> ughhh.. that’s going to be so much more reading and research on all the options :P
[22:39:02] <Petazz> How does this part of the tutorial work? Where does the 'Phone'-service get the 'phoneId' parameter since it is marked as the string 'phones'? https://docs.angularjs.org/tutorial/step_11
[22:39:35] <nickeddy> Petazz: :phoneId
[22:39:54] <robdubya> mattt_ real talk, an hour or two of learning time will be made up pretty quickly
[22:39:55] <nickeddy> Petazz: $routeParams.phoneId
[22:40:02] *** rho has joined #angularjs
[22:40:12] *** kroogs has quit IRC
[22:40:17] <mattt_> these things never take me an hour or two..
[22:40:26] <Petazz> nickeddy: But that is in the .get() right?
[22:40:33] <Petazz> That is the query
[22:40:41] <nickeddy> no no that's in the route
[22:40:52] *** braidn is now known as g3funk
[22:40:53] *** fcor has quit IRC
[22:41:04] <nickeddy> phonecatControllers.controller('PhoneDetailCtrl', ['$scope', '$routeParams', 'Phone',
[22:41:15] <Petazz> Hmm ok but why is there a params in the query-action?
[22:41:15] <nickeddy> it injects the $routeParams so you can see what the id is in the controller
[22:41:29] <nickeddy> where?
[22:41:52] <Petazz> Ah ok so that is done so the controller can get data and not to pass arguments to the service?
[22:42:07] <robdubya> mattt_ alternately, set up a grunt / gulp task, and just run it before your testes
[22:42:11] <robdubya> errr tests
[22:42:15] <mattt_> ya
[22:42:16] <nickeddy> Petazz: yep
[22:42:23] *** g3funk is now known as braidn
[22:42:44] *** RobinBAwesome has joined #angularjs
[22:42:54] <nickeddy> i don't know if you should be following this tutorial though
[22:42:56] <nickeddy> :P
[22:43:10] *** olso has joined #angularjs
[22:43:24] *** conner_ has joined #angularjs
[22:43:36] *** jacuqesdancona__ has joined #angularjs
[22:43:47] *** jdj_dk_ has quit IRC
[22:44:24] <robdubya> mattt_ http://programmerbuddy.blogspot.com/2014/03/full-automation-of-protractor-e2e-tests.html
[22:44:56] *** FrEaKmAn_ has quit IRC
[22:45:08] <olso> Hi! I am followed this guide https://medium.com/@dickeyxxx/best-practices-for-building-angular-js-apps-266c1a4a6917 Now I want to add gulp-rev to the process. How could I edit the index.html each time when there is new build. Or should I do some client side checking for new files? Thank you
[22:45:14] <mattt_> robdubya: thanks
[22:45:26] *** RandomStranger has joined #angularjs
[22:45:29] <mattt_> robdubya: you’re using codeship for CI?
[22:45:35] <robdubya> mattt_ yea
[22:45:39] <robdubya> i like boats
[22:46:00] *** darrin has quit IRC
[22:46:03] *** RandomStranger- has quit IRC
[22:46:10] <robdubya> i can't claim to be an expert at all
[22:46:13] <mattt_> heh, yarrr
[22:46:38] <robdubya> but its pretty sweet to do a commit, have a bunch of stuff happen magically, auto deploy and get an email when its all done
[22:47:38] *** jacuqesdancona__ has quit IRC
[22:47:45] *** lyndsey has joined #angularjs
[22:47:47] *** johnnyfive has quit IRC
[22:47:47] *** dutis has quit IRC
[22:48:15] <mattt_> fo’sho
[22:48:20] *** davidstump has quit IRC
[22:48:23] *** dutis has joined #angularjs
[22:49:02] *** phuh has quit IRC
[22:49:15] *** Stiles has quit IRC
[22:49:18] *** RobinBAwesome_ has joined #angularjs
[22:49:29] *** phuh has joined #angularjs
[22:49:52] *** RobinBAwesome has quit IRC
[22:49:52] *** RobinBAwesome_ is now known as RobinBAwesome
[22:49:53] <mikehaas763> It's probably a little overkill to try and control the state of a directive (a "widget") with ui-router?
[22:50:36] <mikehaas763> Example: I have a notes widget that lists the users notes. If there are no notes, it displays a message in place of the list of notes. If the user clicks + to add a note, an add note section takes place of the list of notes
[22:50:48] *** Oxelist has quit IRC
[22:51:17] <mikehaas763> I've never tried to utilize ui-router to this much detail
[22:51:28] <robdubya> mikehaas763 probably
[22:51:34] <robdubya> seems a bit ... counterintuitive
[22:52:40] *** shackleford has quit IRC
[22:52:42] <mikehaas763> robdubya: I've got this ui-router that I've been using for a while but sometimes I feel like I'm not using it for much, hence why I'm thinking about this
[22:53:14] *** Kallb123 has quit IRC
[22:53:48] *** icfantv1 has quit IRC
[22:53:49] <mikehaas763> Obviously when building a frontend app state is a huge part of it and I feel I'm constantly manually forging a state path etc and have wondered if I'm just not aware of all of ui-routers power
[22:53:58] <robdubya> you might be able to use a resolve
[22:54:18] *** charly_ has joined #angularjs
[22:54:23] <robdubya> eg, resolve the list of notes, which then injects the result into your controller (which would control your widget)
[22:54:47] *** charly_ has quit IRC
[22:54:54] *** dhcar is now known as dhcar_AFK
[22:54:58] *** shackleford has joined #angularjs
[22:55:31] *** marc_v92 has quit IRC
[22:55:31] *** shackleford has quit IRC
[22:55:44] *** caitp has joined #angularjs
[22:55:45] *** shackleford has joined #angularjs
[22:55:50] <mikehaas763> I have no problem with getting the notes. It just feels nasty when the rules are if A display X, else if B display Y, otherwise just display Z
[22:56:05] <mikehaas763> ... and that's a trivially example
[22:56:17] *** djam90 has quit IRC
[22:56:41] *** CodeFriar has quit IRC
[22:56:57] <robdubya> i generally do states like
[22:57:01] <robdubya> employees
[22:57:11] *** mikehaas763 has quit IRC
[22:57:13] <robdubya> employees.detail
[22:57:19] *** hugorodrigues has quit IRC
[22:57:20] <robdubya> employees.detail.someEmployeeStuff
[22:57:50] <robdubya> but that doesn't necessarily fit with your "widget" concept
[22:58:03] <robdubya> to me a widget would live on one state (and one view / controller)
[22:58:19] *** kenjamin_ has quit IRC
[22:58:28] *** nanoyak_ has quit IRC
[22:58:31] *** teslanick has quit IRC
[22:58:51] <gnarMatix> anyone know how to stub $scope methods that are run when a controller is instantiated?
[22:59:16] <robdubya> use a service instead
[22:59:32] *** mikehaas763 has joined #angularjs
[22:59:37] *** hannesvdvreken has quit IRC
[23:00:02] *** hoppi has joined #angularjs
[23:00:29] <gnarMatix> robdubya: okay fair.
[23:00:35] *** spencercarnage has joined #angularjs
[23:00:45] *** danizord has quit IRC
[23:00:48] <robdubya> gnarMatix kinda the point of services :D
[23:00:58] <hoppi> Hey, what's the syntax to put text instead of a reference to a model? Forgotten and can't find it anywhere
[23:01:20] <hoppi> eg ng-model="hello world" (obviously not ng-model, just an example)
[23:01:36] <gnarMatix> robdubya: actually now that i look at it, I've just wrapped all these service methods in init methods in my controller
[23:01:36] <robdubya> you're probably thinking ng-init
[23:01:37] *** illume has quit IRC
[23:01:38] *** Jae has quit IRC
[23:01:43] <robdubya> but you dont want to do that
[23:02:00] *** jae has joined #angularjs
[23:02:23] *** caitp has quit IRC
[23:02:34] *** mac_ifie_ has joined #angularjs
[23:02:53] *** azureknight has quit IRC
[23:03:00] *** apetro_ has joined #angularjs
[23:03:08] <robdubya> gnarMatix you can often use resolves for this sort of thing too
[23:03:20] <robdubya> instead of calling it on the controller
[23:03:31] <gnarMatix> robdubya: in the routing you mean?
[23:03:32] <Foxandxss> TheAceOfHearts: hey, what was the json gem?
[23:03:38] <Foxandxss> robdubya: hey brother
[23:03:47] <TheAceOfHearts> Foxandxss: https://github.com/chancancode/json_expressions
[23:03:49] <TheAceOfHearts> :D
[23:03:51] <gnarMatix> robdubya: never thought about that. does that run before anything is rendered?
[23:03:59] <robdubya> gnarMatix yep
[23:04:07] <gnarMatix> robdubya: is it possible to test resolves
[23:04:07] *** cthrax has quit IRC
[23:04:15] <gnarMatix> robdubya: i haven't discovered how to test configs yet
[23:04:30] <robdubya> we talking unit or e2e?
[23:04:33] <robdubya> hola Foxandxss
[23:04:36] <gnarMatix> robdubya: unit
[23:04:40] <Foxandxss> robdubya: https://github.com/chupipandi/jwt-rb
[23:04:43] *** Suparn has joined #angularjs
[23:04:50] *** Milanito has joined #angularjs
[23:04:50] <Foxandxss> I created with a friend a fully JWT compliant gem
[23:04:52] <Foxandxss> for ruby
[23:04:57] <robdubya> gnarMatix then you're really testing the service
[23:04:59] <Foxandxss> well, it needs maybe some bits yet
[23:04:59] <robdubya> no
[23:05:02] <robdubya> ?
[23:05:03] <Suparn> Hi, I had a small question if someone can help me.
[23:05:05] <Foxandxss> but usable
[23:05:17] <robdubya> Foxandxss nice one. no hablo ruby
[23:05:26] <robdubya> (been in mexico for a week, i'm all spanishy)
[23:05:32] *** kcjones_ has quit IRC
[23:05:44] *** hswolff has quit IRC
[23:05:44] <Suparn> I have a plugin to support some functionality on IntelliJ platform. Can I use the Angular JS logo in the icons?
[23:05:46] <Foxandxss> robdubya: I do, and we are going to do a project with ruby so we needed that :P
[23:05:57] *** cthrax has joined #angularjs
[23:05:58] *** mac_ified has quit IRC
[23:06:33] <robdubya> Suparn https://docs.angularjs.org/misc/faq
[23:06:43] *** D-Boy has quit IRC
[23:06:45] *** zanea|away is now known as zanea
[23:06:46] <dweave> anyone know where the js files for ng-html2js go?
[23:06:48] <Suparn> Thanks!!!
[23:06:53] <dweave> i’m having trouble running some tests against them
[23:06:58] *** apetro_ has quit IRC
[23:07:12] *** mac_ifie_ has quit IRC
[23:07:22] *** Suparn has quit IRC
[23:07:28] *** BillCriswell has quit IRC
[23:07:29] <dweave> i’m using it with karma
[23:07:47] <robdubya> dweave is that a grunt plugin?
[23:08:08] *** CodeFriar has joined #angularjs
[23:08:17] <dweave> no
[23:08:17] <dweave> https://github.com/karma-runner/karma-ng-html2js-preprocessor
[23:08:41] *** josh-k_ has joined #angularjs
[23:08:45] *** terrykfwong has quit IRC
[23:09:23] <robdubya> ah
[23:09:31] *** ngbot has joined #angularjs
[23:09:31] <ngbot> [angular.js] rodyhaddad pushed 3 new commits to master: http://git.io/ysAhkg
[23:09:32] <ngbot> angular.js/master 9c5b407 rodyhaddad: fix(jqLite): remove exposed dealoc method...
[23:09:32] <ngbot> angular.js/master 012ab1f rodyhaddad: fix(jqLite): correctly dealoc svg elements in IE...
[23:09:32] <ngbot> angular.js/master c61626f Jason Bedard: test(jqLite): adding and removing data from SVG elements
[23:09:32] *** ngbot has left #angularjs
[23:10:15] *** nicholaswyoung has joined #angularjs
[23:10:32] *** Johnny13371337 has quit IRC
[23:10:38] *** mfunkie_ has quit IRC
[23:10:45] *** olveraricardo72 has quit IRC
[23:10:55] <robdubya> Foxandxss https://github.com/robwormald/node-jwt-demo
[23:11:18] *** richardbaker has quit IRC
[23:12:33] *** livingstn has quit IRC
[23:12:38] <Foxandxss> robdubya: jwt is damn easy to implement in any framework
[23:12:52] *** listerine has joined #angularjs
[23:13:22] *** chasematterhorn has joined #angularjs
[23:13:30] *** chasematterhorn is now known as scarlioni
[23:13:32] *** ehynds has quit IRC
[23:13:47] *** drej has quit IRC
[23:13:50] *** seydoggy_ has quit IRC
[23:14:20] *** D-Boy has joined #angularjs
[23:14:23] *** seydoggy has joined #angularjs
[23:14:34] *** Siecje has quit IRC
[23:14:53] *** ngbot has joined #angularjs
[23:14:54] <ngbot> [angular.js] IgorMinar pushed 1 new commit to master: http://git.io/LK9XTA
[23:14:54] <ngbot> angular.js/master 81cd836 Michał Gołębiowski: docs(guide): switch from ngmin to ng-annotate...
[23:14:54] *** ngbot has left #angularjs
[23:15:10] <dweave> anyone using gulp instead of grunt here/
[23:15:11] <dweave> ?
[23:15:23] <nickeddy> dweave: nope but i want to
[23:15:52] <dweave> fun so far, just stuck on which angular template to js system is best
[23:15:53] *** pswizzle has quit IRC
[23:15:53] *** jbourassa has joined #angularjs
[23:16:46] *** patricka_ has joined #angularjs
[23:17:04] *** pswizzle has joined #angularjs
[23:17:08] <daryllxd> noobish question, for directives is there any bonus for using elements/classes instead of attributes? I have this idea that html classes are for css
[23:17:20] *** krawchyk_ has quit IRC
[23:17:44] *** jtimon has quit IRC
[23:17:57] *** listerine has quit IRC
[23:18:03] *** Lingo has quit IRC
[23:18:49] <ckuehl> daryllxd: from angular docs: "Best Practice: Prefer using directives via tag name and attributes over comment and class names. Doing so generally makes it easier to determine what directives a given element matches."
[23:19:01] *** seydoggy has quit IRC
[23:19:25] <robdubya> Foxandxss indeed
[23:19:55] *** krawchyk has joined #angularjs
[23:20:20] *** DrShoggoth has quit IRC
[23:20:29] *** patrickarlt has quit IRC
[23:20:53] *** krawchyk has quit IRC
[23:21:03] <daryllxd> thanks ckuehl/sorry if trivial. I find it hard to read the official docs so I check blog posts/the ng-book, probably have to read it now.
[23:21:29] *** m3l720 has joined #angularjs
[23:22:30] *** krawchyk has joined #angularjs
[23:23:24] *** akrikos has quit IRC
[23:23:27] *** disorder20 has quit IRC
[23:24:18] *** fdrechsler has quit IRC
[23:24:37] <jobelenus> hey all, quick question about the built in $watch… i did a test by manually changing a property (e.g. $scope.order.foo = 'HEY'), and on each of my controllers that all reference the order (which is originally on the $rootScope, and each child scope grabs it off the $rootScope) the binding works… however, when i go and do $rootScope.order = totally_new_order; none of the bindings on child scope updates… is this a limitation
[23:24:38] <jobelenus> $watch? am i just architecting this poorly (e.g. one model instance for many scopes)?
[23:24:58] *** arizzo has quit IRC
[23:25:00] <robdubya> jobelenus there's a number of architectural issues in that question
[23:25:05] <robdubya> imo
[23:25:08] <jobelenus> robdubya: fair
[23:25:18] <robdubya> $rootScope is generally a code smell
[23:25:25] *** TorchDra_ has joined #angularjs
[23:25:25] <robdubya> $watches are generally abused
[23:25:31] <jobelenus> im not writing any $watches
[23:25:34] *** arizzo has joined #angularjs
[23:25:35] <jobelenus> and i hope not to
[23:25:38] <robdubya> good man
[23:25:51] <robdubya> doing
[23:26:04] <robdubya> $scope.something = somethingElse generally is replacing the reference
[23:26:18] <jobelenus> so watch won't catch it, unless its native?
[23:26:23] <robdubya> but it sorta depends what you're trying to accomplish
[23:26:30] <robdubya> so i dont want to to say YOURE DOING IT WRONG
[23:26:38] <robdubya> even though that's like, my favorite thing to say
[23:26:46] <jobelenus> so favorite
[23:27:04] <robdubya> having a single instace of a model is the right thinking
[23:27:13] <robdubya> but typically those instances come from *services*
[23:27:15] <jobelenus> basically, i have ControllerA, B, …N, and they all reference a single service/resource… and i don't want N calls to the service to return the same effing thing..
[23:27:25] <robdubya> (vs doing it via rootscope)
[23:27:43] <zumba_addict> chexxor: no, I'm having issues injecting a factory to another factory. I'm not sure if that's allowed
[23:27:48] <robdubya> it is
[23:27:50] <robdubya> zumba_addict
[23:28:01] <zumba_addict> yes robdubya
[23:28:11] <robdubya> (it is allowed)
[23:28:12] <jobelenus> and if ControllerA does ServiceObj.change() *PUT*, returns a new JSON dict of all my good-stuff.. i want all the controllers to go: "oh, a new obj, let me use that"
[23:28:17] *** partikus has joined #angularjs
[23:28:28] <jobelenus> again, im sure im missing something simple and philosophical about how the services integrate
[23:28:33] <robdubya> jobelenus in the case of a put
[23:28:46] <robdubya> what you should do probably is angular.extend(oldObject,newData)
[23:28:53] <robdubya> or via lodash/etc
[23:28:57] *** TorchDragon has quit IRC
[23:29:04] <jobelenus> ill give that a whirl
[23:29:07] <robdubya> that way it will update the values without replacin the reference
[23:29:30] <robdubya> and if you do it inside the service, it works magically
[23:29:33] *** jeffisabelle has joined #angularjs
[23:29:34] *** arizzo has quit IRC
[23:29:34] *** bel3atar has joined #angularjs
[23:29:42] *** TorchDra_ has quit IRC
[23:29:42] <robdubya> typically i keep an identity map type thing
[23:29:50] <jobelenus> *inside the service*???? cue my zoolander impression
[23:29:54] <robdubya> aka an "instance cache"
[23:30:03] <robdubya> i have a plunk of this, sec
[23:30:05] <jobelenus> you have a handy example of one of those?
[23:30:06] <jobelenus> cool
[23:30:06] *** Fishy__ has joined #angularjs
[23:30:09] <zumba_addict> robdubya: when I inject it, this is what I get, http://i.imgur.com/u4itfim.png
[23:30:49] <zumba_addict> so I rewrote my factory as a service, I got the same
[23:31:03] *** moritzs has quit IRC
[23:31:20] <robdubya> jobelenus bah, can't find it, give me a second. are you using $resource or $http?
[23:31:33] <jobelenus> resource (djResource, which builds off that for django)
[23:31:46] <cthrax> alright, let's try a different question, why does the outermost tag find a parent controller (namely its own controller) http://plnkr.co/edit/aVmiA0KSZTij0tHTNvSt?p=preview
[23:32:21] <cthrax> I am using require to determine if this tag exists in the ancestry, and yet all my tags find an ancestor directive
[23:32:23] *** lyndsey has quit IRC
[23:32:25] *** ccohn has quit IRC
[23:32:27] <zumba_addict> but I believe robdubya that it is allowed because I have other codes where i inject a factory to another factory
[23:32:59] *** ccohn has joined #angularjs
[23:33:03] *** eutheria has joined #angularjs
[23:33:08] <linagee> does anyone want to please help me fix ui-mask? (part of angular-ui)
[23:33:32] <snurfery> oooo, just getting my feet wet with Autobahn
[23:33:33] <linagee> I'm getting a double keyup event on my Samsung S4 when using the Samsung (default) keyboard.
[23:33:41] <snurfery> this is purrrrrty dope
[23:33:44] <robdubya> jobelenus hrmm... okay
[23:33:59] *** Willow has quit IRC
[23:34:02] <robdubya> i can show you the concept in $http, but you'd have to extrapolate it to your thingy
[23:34:15] <jobelenus> sure
[23:34:16] <robdubya> i typically dislike $resource and its bastard children
[23:34:25] <jobelenus> lulz
[23:34:26] *** Willow has joined #angularjs
[23:34:39] <zumba_addict> robdubya: do you see any code error I did? https://gist.github.com/c0debreaker/40faca687fe6b08480c3 If I remove OdometerRestService on line 5, the app will load fine
[23:34:46] <robdubya> zumba_addict gimme a sec yo
[23:34:56] *** moritzs has joined #angularjs
[23:34:58] *** nemothekid has quit IRC
[23:35:01] <zumba_addict> thanks
[23:35:11] <robdubya> damn, i go on vacation for a week and my brain has turned to mush
[23:35:16] *** arizzo has joined #angularjs
[23:35:24] <jobelenus> haha
[23:35:40] <jobelenus> im trying not to leave the office b/c ill have lost everything by tmw!
[23:35:45] *** pvieira91 has joined #angularjs
[23:35:52] <pvieira91> someone there?
[23:36:10] <jobelenus> zumba_addict: seems like that dependency isn't being loaded (e.g. script tag??)
[23:36:24] <zumba_addict> I didn't get you jobelenus
[23:36:27] <robdubya> jobelenus http://plnkr.co/edit/hG1ctysSaAhVTfTiFTB4?p=info
[23:36:38] <pvieira91> I'm struggling in work because i choose angularJS instead of EXT
[23:36:39] <robdubya> that's an older one, but that's doing the instance cache concept
[23:36:39] *** richardbaker has joined #angularjs
[23:36:52] <robdubya> pvieira91 welcome to the future
[23:36:59] <pvieira91> Wich is better angularjs or ext?
[23:37:17] *** ccohn has quit IRC
[23:37:21] <robdubya> angular
[23:37:27] <jobelenus> pvieira91: really asking unbiased folk eh
[23:37:28] <zumba_addict> can you elaborate more jobelenus
[23:37:35] *** lsiv568 has quit IRC
[23:37:35] *** corban has quit IRC
[23:37:37] *** nemothekid has joined #angularjs
[23:37:46] <jobelenus> zumba_addict: it dies b/c it cant find `Odometer` e.g. is it even loaded?
[23:37:57] <robdubya> ext: "lets describe fucking everything with json"
[23:38:00] <robdubya> layout? json
[23:38:01] *** partikus has quit IRC
[23:38:02] *** dcherman2 has quit IRC
[23:38:22] *** ngbot has joined #angularjs
[23:38:22] <ngbot> [angular.js] IgorMinar pushed 1 new commit to master: http://git.io/_qc-vw
[23:38:23] <ngbot> angular.js/master 34dcc0f perek: fix($http) - add ability to remove default headers...
[23:38:23] *** ngbot has left #angularjs
[23:38:26] <zumba_addict> jobelenus: are you saying because of loading of js files in order?
[23:38:36] *** tommmied has joined #angularjs
[23:38:41] *** amargherio has quit IRC
[23:38:41] <jobelenus> im saying: angular can't find yer shit. are you sure yer shit is there
[23:38:50] <zumba_addict> yes, it's there
[23:38:57] <zumba_addict> i can use it in controller
[23:38:59] *** Willow has quit IRC
[23:39:17] <jobelenus> you sure its named correctly here? (i hate it when i do that)
[23:39:31] <robdubya> zumba_addict i find your github username hugely ironic
[23:39:35] <zumba_addict> yes, I'm very sure because i have it on a controller and it's working
[23:39:41] <zumba_addict> :)
[23:39:45] *** Circlefusion has quit IRC
[23:39:47] <gnarMatix> anyone know how to test $state.go ?
[23:39:48] *** arizzo has quit IRC
[23:39:53] *** drej has joined #angularjs
[23:39:56] <gnarMatix> nvm
[23:39:56] <sal1191> has anyone used Mobile Angular UI?
[23:40:05] *** DrMabuse has joined #angularjs
[23:40:13] <zumba_addict> is it bad to have many .config?
[23:40:19] *** mrkake has quit IRC
[23:40:34] <zumba_addict> should we only have one .config(...)
[23:40:36] <sal1191> with success or failure
[23:40:39] <robdubya> zumba_addict does it throw an errors?
[23:40:44] <robdubya> sal1191 check out ionic
[23:40:50] <zumba_addict> the error is only Uncaught object
[23:40:56] <zumba_addict> ah, let me try it in Firefox
[23:41:03] <zumba_addict> i'm sure we'll get more errors, one sec
[23:41:03] <sal1191> I did but Im making an actual web browser app
[23:41:17] <sal1191> ionic is like phonegap is it not?
[23:41:21] <robdubya> sal1191 still works, i use ionic in chrome apps
[23:41:35] <robdubya> its more CSS + JS + a wrapper around cordova for build
[23:41:43] <robdubya> you could happily use it in a browser app
[23:41:48] <sal1191> ohh excellent!
[23:41:51] <jobelenus> robdubya: so, how does the updating work in this example? i would do the update, then angular.extend() against the cached object?
[23:41:56] *** AlexZan has joined #angularjs
[23:42:03] <robdubya> yeah
[23:42:04] <zumba_addict> Error: [$injector:cdep] Circular dependency found: Restangular <- OdometerRestService <- HttpInterceptor <- $http <- $templateFactory <- $view <- $state
[23:42:11] *** nicholaswyoung has quit IRC
[23:42:29] <jobelenus> k
[23:42:35] <jobelenus> ill give that a whirl
[23:42:39] <robdubya> the idea being that the single instance of the model is what lives in the service
[23:42:39] <jobelenus> tx
[23:42:40] <zumba_addict> why is it doing that
[23:43:09] *** apetro_ has joined #angularjs
[23:43:12] <robdubya> zumba_addict because you're injecting a service which injects a service which injects the original servie that injects the service etc
[23:43:17] <zumba_addict> ok, if I don't inject, how will I make an http call?
[23:43:40] <zumba_addict> i want to add an http call in function errorResponse
[23:44:26] <robdubya> jobelenus this works really nicely with push/socket type things too. in real world stuff, i generally have a seperate service entirely (i call it "managedObjectContext", stolen from iOS)
[23:44:26] *** nanoyak has joined #angularjs
[23:44:44] <robdubya> all Model services inject it, and cache objects throuhg it
[23:44:50] *** ngbot has joined #angularjs
[23:44:50] <ngbot> [angular.js] petebacondarwin pushed 1 new commit to master: http://git.io/ZUonYw
[23:44:50] <ngbot> angular.js/master 20b0c24 Pete Bacon Darwin: docs(guide/migrate): add breaking changes for 1.3...
[23:44:50] *** ngbot has left #angularjs
[23:45:03] *** arizzo has joined #angularjs
[23:45:14] *** ojacobson has quit IRC
[23:45:30] *** bsmithgall has quit IRC
[23:45:33] *** itsananderson has joined #angularjs
[23:46:00] <zumba_addict> all I wanted to do is capture 404 which I can actually see now. If it's a 404, then do another http call
[23:46:04] *** krawek has joined #angularjs
[23:46:11] *** shinnya has joined #angularjs
[23:46:17] <zumba_addict> 404 is being captured by responseError function in line33
[23:46:19] *** walden is now known as walden|afk
[23:46:22] <sal1191> out of curiosity, has anyone used Polymer? another html5 programming kit
[23:46:25] <sal1191> by google
[23:46:38] *** pdillinger1 has quit IRC
[23:46:52] <robdubya> zumba_addict can you paste the other reelvant services?
[23:46:57] <zumba_addict> one sec
[23:48:10] *** apetro_ has quit IRC
[23:48:48] *** caitp has joined #angularjs
[23:49:05] *** phuh has quit IRC
[23:49:10] <zumba_addict> here it is, this is the original factory I was using. It was only few minutes ago that I created a service. It's almost the same as this - https://gist.github.com/c0debreaker/bf95f528f16380909a86
[23:49:17] *** arizzo has quit IRC
[23:49:30] *** phuh has joined #angularjs
[23:49:34] *** Ruckus has quit IRC
[23:50:17] *** CptChaos has quit IRC
[23:50:41] <dweave> anyone know a reason a compiled element wouldn’t append to the dom?
[23:50:50] <zumba_addict> refresh it robdubya since I updated it
[23:50:51] *** nanoyak has quit IRC
[23:51:01] <zumba_addict> you'll see the service which I put on my http interceptor
[23:51:07] <dweave> i’m trying to replicate part of anular-ui’s modal
[23:51:08] <dweave> var body = $document.find('body').eq(0);
[23:51:09] <dweave> var backdropNode = angular.element('<div modal-backdrop></div>');
[23:51:10] <dweave> backdropScope = $rootScope.$new(true);
[23:51:11] <dweave> backdropEl = $compile(backdropNode)(backdropScope);
[23:51:12] <dweave> body.append(backdropEl);
[23:51:16] <zumba_addict> but whichever i inject, i'll get circular
[23:51:23] <dweave> oops wrong thing on my clip board sorry
[23:51:23] <zumba_addict> dweave: don't flood please
[23:51:36] <dweave> accident
[23:51:38] *** kalusn has quit IRC
[23:52:03] *** kreeves has quit IRC
[23:52:41] *** heidi has quit IRC
[23:52:54] *** itsananderson has quit IRC
[23:52:59] <Aliks> can anyone recommend any Angular-based sites with particularly awesome source code that uses interesting techniques?
[23:53:09] <zumba_addict> I've updated it again robdubya. I added the http interceptor
[23:53:13] *** nemothekid has quit IRC
[23:53:20] *** dcherman has joined #angularjs
[23:53:35] *** itsananderson has joined #angularjs
[23:53:53] *** nanoyak has joined #angularjs
[23:54:06] <ckboii89> im assuming angular cant use the _.each method??
[23:54:13] <jobelenus> robdubya: why the hate for resources?
[23:54:15] <jobelenus> curious
[23:54:18] <sal1191> angular.each works
[23:54:35] *** dweave has left #angularjs
[23:54:46] <robdubya> Aliks question (not an answer)
[23:54:54] <ckboii89> whats the equivalet for
[23:54:56] <ckboii89> _.filter?
[23:54:58] <robdubya> would you be willing to pay a nominal monthly fee for something like that?
[23:55:08] *** francisl has quit IRC
[23:55:09] <ckboii89> angular.filter?
[23:55:10] *** nemothekid has joined #angularjs
[23:55:11] <Aliks> robdubya: yes
[23:55:18] <robdubya> say, $5 a month for super-awesome advanced stuff?
[23:55:25] <Aliks> robdubya: yep
[23:55:33] *** arizzo has joined #angularjs
[23:55:37] *** t1mmen has joined #angularjs
[23:55:48] *** obert has quit IRC
[23:56:07] <sal1191> sounds like a good deal
[23:56:29] <nickeddy> robdubya drumming up business in #angularjs
[23:56:31] *** foofoobar has quit IRC
[23:56:39] <robdubya> nickeddy merely a bit of market research
[23:56:40] <robdubya> :D
[23:56:42] *** moritzs has quit IRC
[23:56:49] <linagee> is there a way to undefine a certian angular module? (to turn off functionality of a sub-module)
[23:56:52] <nickeddy> hahahah
[23:57:11] <linagee> ngular.module('ui.mask', []).undefined_this_module_now(); ?
[23:57:13] <Aliks> robdubya: honestly I would probably pay substantially more if it were really fantastic stuff
[23:57:21] <robdubya> zumba_addict nothing looks obviously wrong there, but its hard to say with restangular
[23:57:25] *** digia is now known as digia|away
[23:57:30] <zumba_addict> ok
[23:57:31] <Aliks> robdubya: but at the same time, the value of that would probably be degraded quickly, because people would start to share it openly on the net
[23:57:33] <zumba_addict> thanks for looking robdubya
[23:57:46] <snapwich> linagee: why not just not include the module in the first place?
[23:57:49] <sal1191> not unless hekeeps it coming
[23:57:54] <Aliks> robdubya: so every random Joe would be looking at the same stuff for free that I'd be paying for... which would make me feel like a sucker
[23:57:59] *** mcmann has joined #angularjs
[23:57:59] <zumba_addict> i'll have to find another solution other than http interceptor
[23:58:09] <linagee> snapwich: aha. found it. (I think, still reading.) http://stackoverflow.com/questions/16734506/remove-a-directive-from-module-in-angular
[23:58:24] <robdubya> Aliks fair point. it would have to be fresh stuff pretty regularly
[23:58:28] *** Milanito has quit IRC
[23:58:34] <Aliks> robdubya: so I would propose a business model like "charge a significant amount and to a select group of people who you are pretty sure won't share it out"
[23:58:34] *** cctom_ has joined #angularjs
[23:58:50] <Foxandxss> well, I don't see egghead videos
[23:58:51] <Foxandxss> out there
[23:58:53] <Foxandxss> the pro one
[23:58:56] <Aliks> robdubya: you could also slightly modify the content given to each person to figure out who leaked it and then cut them off
[23:58:57] <Foxandxss> ones*
[23:59:13] <robdubya> Aliks feels a bit DRM'y to me, but i take your point
[23:59:37] <Aliks> robdubya: it can be argued that DRM is somewhat necessary in order to enforce agreements and preserve value
[23:59:48] <robdubya> Aliks goes against my religion really
top

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